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,29 @@
"use strict";
exports.isMonday = isMonday;
var _index = require("./toDate.cjs");
/**
* The {@link isMonday} function options.
*/
/**
* @name isMonday
* @category Weekday Helpers
* @summary Is the given date Monday?
*
* @description
* Is the given date Monday?
*
* @param date - The date to check
* @param options - An object with options
*
* @returns The date is Monday
*
* @example
* // Is 22 September 2014 Monday?
* const result = isMonday(new Date(2014, 8, 22))
* //=> true
*/
function isMonday(date, options) {
return (0, _index.toDate)(date, options?.in).getDay() === 1;
}

View File

@@ -0,0 +1,2 @@
const e=(e,t,n)=>()=>e===`GET`?{path:`/flows/trigger/${t}`,params:n??{},method:`GET`}:{path:`/flows/trigger/${t}`,body:JSON.stringify(n??{}),method:`POST`};export{e as triggerFlow};
//# sourceMappingURL=flows.js.map

View File

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

View File

@@ -0,0 +1,22 @@
import type { PayloadRequest } from '../../../types/index.js';
import type { TaskType } from '../../config/types/taskTypes.js';
import type { WorkflowTypes } from '../../config/types/workflowTypes.js';
/**
* Gets all queued jobs that can be run. This means they either:
* - failed but do not have a definitive error => can be retried
* - are currently processing
* - have not been started yet
*/
export declare function countRunnableOrActiveJobsForQueue({ onlyScheduled, queue, req, taskSlug, workflowSlug, }: {
/**
* If true, this counts only jobs that have been created through the scheduling system.
*
* @default false
*/
onlyScheduled?: boolean;
queue: string;
req: PayloadRequest;
taskSlug?: TaskType;
workflowSlug?: WorkflowTypes;
}): Promise<number>;
//# sourceMappingURL=countRunnableOrActiveJobsForQueue.d.ts.map

View File

@@ -0,0 +1,27 @@
import { jsx as _jsx } from "react/jsx-runtime";
import { useModal } from '@faceless-ui/modal';
import { XIcon } from '../../icons/X/index.js';
import { useTranslation } from '../../providers/Translation/index.js';
import './index.scss';
const baseClass = 'close-modal-button';
export function CloseModalButton({
slug,
className
}) {
const {
closeModal
} = useModal();
const {
t
} = useTranslation();
return /*#__PURE__*/_jsx("button", {
"aria-label": t('general:close'),
className: [baseClass, className].filter(Boolean).join(' '),
onClick: () => {
closeModal(slug);
},
type: "button",
children: /*#__PURE__*/_jsx(XIcon, {})
}, "close-button");
}
//# sourceMappingURL=index.js.map

View File

@@ -0,0 +1,27 @@
import type $RefParser from "./index";
import type { ParserOptions } from "./index";
import type { JSONSchema } from "./index";
export interface InventoryEntry {
$ref: any;
parent: any;
key: any;
pathFromRoot: any;
depth: any;
file: any;
hash: any;
value: any;
circular: any;
extended: any;
external: any;
indirections: any;
}
/**
* Bundles all external JSON references into the main JSON schema, thus resulting in a schema that
* only has *internal* references, not any *external* references.
* This method mutates the JSON schema object, adding new references and re-mapping existing ones.
*
* @param parser
* @param options
*/
declare function bundle<S extends object = JSONSchema, O extends ParserOptions<S> = ParserOptions<S>>(parser: $RefParser<S, O>, options: O): void;
export default bundle;

View File

@@ -0,0 +1,5 @@
function _classPrivateFieldBase(e, t) {
if (!{}.hasOwnProperty.call(e, t)) throw new TypeError("attempted to use private field on non-instance");
return e;
}
module.exports = _classPrivateFieldBase, module.exports.__esModule = true, module.exports["default"] = module.exports;

View File

@@ -0,0 +1,110 @@
# Functional Source License, Version 1.1, MIT Future License
## Abbreviation
FSL-1.1-MIT
## Notice
Copyright 2008-2025 Functional Software, Inc. dba Sentry
## Terms and Conditions
### Licensor ("We")
The party offering the Software under these Terms and Conditions.
### The Software
The "Software" is each version of the software that we make available under
these Terms and Conditions, as indicated by our inclusion of these Terms and
Conditions with the Software.
### License Grant
Subject to your compliance with this License Grant and the Patents,
Redistribution and Trademark clauses below, we hereby grant you the right to
use, copy, modify, create derivative works, publicly perform, publicly display
and redistribute the Software for any Permitted Purpose identified below.
### Permitted Purpose
A Permitted Purpose is any purpose other than a Competing Use. A Competing Use
means making the Software available to others in a commercial product or
service that:
1. substitutes for the Software;
2. substitutes for any other product or service we offer using the Software
that exists as of the date we make the Software available; or
3. offers the same or substantially similar functionality as the Software.
Permitted Purposes specifically include using the Software:
1. for your internal use and access;
2. for non-commercial education;
3. for non-commercial research; and
4. in connection with professional services that you provide to a licensee
using the Software in accordance with these Terms and Conditions.
### Patents
To the extent your use for a Permitted Purpose would necessarily infringe our
patents, the license grant above includes a license under our patents. If you
make a claim against any party that the Software infringes or contributes to
the infringement of any patent, then your patent license to the Software ends
immediately.
### Redistribution
The Terms and Conditions apply to all copies, modifications and derivatives of
the Software.
If you redistribute any copies, modifications or derivatives of the Software,
you must include a copy of or a link to these Terms and Conditions and not
remove any copyright notices provided in or with the Software.
### Disclaimer
THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR
PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.
IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE
SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES,
EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE.
### Trademarks
Except for displaying the License Details and identifying us as the origin of
the Software, you have no right under these Terms and Conditions to use our
trademarks, trade names, service marks or product names.
## Grant of Future License
We hereby irrevocably grant you an additional license to use the Software under
the MIT license that is effective on the second anniversary of the date we make
the Software available. On or after that date, you may use the Software under
the MIT license, in which case the following will apply:
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@@ -0,0 +1,7 @@
/**
* Returns the width of a given element.
*
* @param node the element
* @param client whether to use `clientWidth` if possible
*/
export default function getWidth(node: HTMLElement, client?: boolean): number;

View File

@@ -0,0 +1,262 @@
/**
* GraphQL.js provides a reference implementation for the GraphQL specification
* but is also a useful utility for operating on GraphQL files and building
* sophisticated tools.
*
* This primary module exports a general purpose function for fulfilling all
* steps of the GraphQL specification in a single operation, but also includes
* utilities for every part of the GraphQL specification:
*
* - Parsing the GraphQL language.
* - Building a GraphQL type schema.
* - Validating a GraphQL request against a type schema.
* - Executing a GraphQL request against a type schema.
*
* This also includes utility functions for operating on GraphQL types and
* GraphQL documents to facilitate building tools.
*
* You may also import from each sub-directory directly. For example, the
* following two import statements are equivalent:
*
* ```ts
* import { parse } from 'graphql';
* import { parse } from 'graphql/language';
* ```
*
* @packageDocumentation
*/
// The GraphQL.js version info.
export { version, versionInfo } from './version.mjs'; // The primary entry point into fulfilling a GraphQL request.
export { graphql, graphqlSync } from './graphql.mjs'; // Create and operate on GraphQL type definitions and schema.
export {
resolveObjMapThunk,
resolveReadonlyArrayThunk, // Definitions
GraphQLSchema,
GraphQLDirective,
GraphQLScalarType,
GraphQLObjectType,
GraphQLInterfaceType,
GraphQLUnionType,
GraphQLEnumType,
GraphQLInputObjectType,
GraphQLList,
GraphQLNonNull, // Standard GraphQL Scalars
specifiedScalarTypes,
GraphQLInt,
GraphQLFloat,
GraphQLString,
GraphQLBoolean,
GraphQLID, // Int boundaries constants
GRAPHQL_MAX_INT,
GRAPHQL_MIN_INT, // Built-in Directives defined by the Spec
specifiedDirectives,
GraphQLIncludeDirective,
GraphQLSkipDirective,
GraphQLDeprecatedDirective,
GraphQLSpecifiedByDirective,
GraphQLOneOfDirective, // "Enum" of Type Kinds
TypeKind, // Constant Deprecation Reason
DEFAULT_DEPRECATION_REASON, // GraphQL Types for introspection.
introspectionTypes,
__Schema,
__Directive,
__DirectiveLocation,
__Type,
__Field,
__InputValue,
__EnumValue,
__TypeKind, // Meta-field definitions.
SchemaMetaFieldDef,
TypeMetaFieldDef,
TypeNameMetaFieldDef, // Predicates
isSchema,
isDirective,
isType,
isScalarType,
isObjectType,
isInterfaceType,
isUnionType,
isEnumType,
isInputObjectType,
isListType,
isNonNullType,
isInputType,
isOutputType,
isLeafType,
isCompositeType,
isAbstractType,
isWrappingType,
isNullableType,
isNamedType,
isRequiredArgument,
isRequiredInputField,
isSpecifiedScalarType,
isIntrospectionType,
isSpecifiedDirective, // Assertions
assertSchema,
assertDirective,
assertType,
assertScalarType,
assertObjectType,
assertInterfaceType,
assertUnionType,
assertEnumType,
assertInputObjectType,
assertListType,
assertNonNullType,
assertInputType,
assertOutputType,
assertLeafType,
assertCompositeType,
assertAbstractType,
assertWrappingType,
assertNullableType,
assertNamedType, // Un-modifiers
getNullableType,
getNamedType, // Validate GraphQL schema.
validateSchema,
assertValidSchema, // Upholds the spec rules about naming.
assertName,
assertEnumValueName,
} from './type/index.mjs';
// Parse and operate on GraphQL language source files.
export {
Token,
Source,
Location,
OperationTypeNode,
getLocation, // Print source location.
printLocation,
printSourceLocation, // Lex
Lexer,
TokenKind, // Parse
parse,
parseValue,
parseConstValue,
parseType,
parseSchemaCoordinate, // Print
print, // Visit
visit,
visitInParallel,
getVisitFn,
getEnterLeaveForKind,
BREAK,
Kind,
DirectiveLocation, // Predicates
isDefinitionNode,
isExecutableDefinitionNode,
isSelectionNode,
isValueNode,
isConstValueNode,
isTypeNode,
isTypeSystemDefinitionNode,
isTypeDefinitionNode,
isTypeSystemExtensionNode,
isTypeExtensionNode,
isSchemaCoordinateNode,
} from './language/index.mjs';
// Execute GraphQL queries.
export {
execute,
executeSync,
defaultFieldResolver,
defaultTypeResolver,
responsePathAsArray,
getArgumentValues,
getVariableValues,
getDirectiveValues,
subscribe,
createSourceEventStream,
} from './execution/index.mjs';
// Validate GraphQL documents.
export {
validate,
ValidationContext, // All validation rules in the GraphQL Specification.
specifiedRules,
recommendedRules, // Individual validation rules.
ExecutableDefinitionsRule,
FieldsOnCorrectTypeRule,
FragmentsOnCompositeTypesRule,
KnownArgumentNamesRule,
KnownDirectivesRule,
KnownFragmentNamesRule,
KnownTypeNamesRule,
LoneAnonymousOperationRule,
NoFragmentCyclesRule,
NoUndefinedVariablesRule,
NoUnusedFragmentsRule,
NoUnusedVariablesRule,
OverlappingFieldsCanBeMergedRule,
PossibleFragmentSpreadsRule,
ProvidedRequiredArgumentsRule,
ScalarLeafsRule,
SingleFieldSubscriptionsRule,
UniqueArgumentNamesRule,
UniqueDirectivesPerLocationRule,
UniqueFragmentNamesRule,
UniqueInputFieldNamesRule,
UniqueOperationNamesRule,
UniqueVariableNamesRule,
ValuesOfCorrectTypeRule,
VariablesAreInputTypesRule,
VariablesInAllowedPositionRule,
MaxIntrospectionDepthRule, // SDL-specific validation rules
LoneSchemaDefinitionRule,
UniqueOperationTypesRule,
UniqueTypeNamesRule,
UniqueEnumValueNamesRule,
UniqueFieldDefinitionNamesRule,
UniqueArgumentDefinitionNamesRule,
UniqueDirectiveNamesRule,
PossibleTypeExtensionsRule, // Custom validation rules
NoDeprecatedCustomRule,
NoSchemaIntrospectionCustomRule,
} from './validation/index.mjs';
// Create, format, and print GraphQL errors.
export {
GraphQLError,
syntaxError,
locatedError,
printError,
formatError,
} from './error/index.mjs';
// Utilities for operating on GraphQL type schema and parsed sources.
export {
// Produce the GraphQL query recommended for a full schema introspection.
// Accepts optional IntrospectionOptions.
getIntrospectionQuery, // Gets the target Operation from a Document.
getOperationAST, // Gets the Type for the target Operation AST.
getOperationRootType, // Convert a GraphQLSchema to an IntrospectionQuery.
introspectionFromSchema, // Build a GraphQLSchema from an introspection result.
buildClientSchema, // Build a GraphQLSchema from a parsed GraphQL Schema language AST.
buildASTSchema, // Build a GraphQLSchema from a GraphQL schema language document.
buildSchema, // Extends an existing GraphQLSchema from a parsed GraphQL Schema language AST.
extendSchema, // Sort a GraphQLSchema.
lexicographicSortSchema, // Print a GraphQLSchema to GraphQL Schema language.
printSchema, // Print a GraphQLType to GraphQL Schema language.
printType, // Prints the built-in introspection schema in the Schema Language format.
printIntrospectionSchema, // Create a GraphQLType from a GraphQL language AST.
typeFromAST, // Create a JavaScript value from a GraphQL language AST with a Type.
valueFromAST, // Create a JavaScript value from a GraphQL language AST without a Type.
valueFromASTUntyped, // Create a GraphQL language AST from a JavaScript value.
astFromValue, // A helper to use within recursive-descent visitors which need to be aware of the GraphQL type system.
TypeInfo,
visitWithTypeInfo, // Coerces a JavaScript value to a GraphQL type, or produces errors.
coerceInputValue, // Concatenates multiple AST together.
concatAST, // Separates an AST into an AST per Operation.
separateOperations, // Strips characters that are not significant to the validity or execution of a GraphQL document.
stripIgnoredCharacters, // Comparators for types
isEqualType,
isTypeSubTypeOf,
doTypesOverlap, // Asserts a string is a valid GraphQL name.
assertValidName, // Determine if a string is a valid GraphQL name.
isValidNameError, // Compares two GraphQLSchemas and detects breaking changes.
BreakingChangeType,
DangerousChangeType,
findBreakingChanges,
findDangerousChanges, // Schema Coordinates
resolveSchemaCoordinate,
resolveASTSchemaCoordinate,
} from './utilities/index.mjs';

View File

@@ -0,0 +1,23 @@
/**
* @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 SlidersHorizontal = createLucideIcon("SlidersHorizontal", [
["line", { x1: "21", x2: "14", y1: "4", y2: "4", key: "obuewd" }],
["line", { x1: "10", x2: "3", y1: "4", y2: "4", key: "1q6298" }],
["line", { x1: "21", x2: "12", y1: "12", y2: "12", key: "1iu8h1" }],
["line", { x1: "8", x2: "3", y1: "12", y2: "12", key: "ntss68" }],
["line", { x1: "21", x2: "16", y1: "20", y2: "20", key: "14d8ph" }],
["line", { x1: "12", x2: "3", y1: "20", y2: "20", key: "m0wm8r" }],
["line", { x1: "14", x2: "14", y1: "2", y2: "6", key: "14e1ph" }],
["line", { x1: "8", x2: "8", y1: "10", y2: "14", key: "1i6ji0" }],
["line", { x1: "16", x2: "16", y1: "18", y2: "22", key: "1lctlv" }]
]);
export { SlidersHorizontal as default };
//# sourceMappingURL=sliders-horizontal.js.map

View File

@@ -0,0 +1,69 @@
import { IfNever, IsDateTime, IsNumber, IsString, Merge, UnpackList } from "./utils.js";
import { RelationalFields } from "./schema.js";
import { MappedFieldNames } from "./functions.js";
import { FieldOutputMap } from "./output.js";
//#region src/types/filters.d.ts
/**
* Filters
*/
type QueryFilter<Schema, Item> = WrapLogicalFilters<NestedQueryFilter<Schema, Item>>;
/**
* Query filters without logical filters
*/
type NestedQueryFilter<Schema, Item> = UnpackList<Item> extends infer FlatItem ? Partial<Merge<{ [Field in keyof FlatItem]?: NestedRelationalFilter<Schema, FlatItem, Field> }, MappedFieldNames<Schema, Item> extends infer Funcs ? { [Func in keyof Funcs]?: Funcs[Func] extends infer Field ? Field extends keyof FlatItem ? NestedRelationalFilter<Schema, FlatItem, Field> : never : never } : never>> : never;
/**
* Allow for relational filters
*/
type NestedRelationalFilter<Schema, Item, Field$1 extends keyof Item> = (Field$1 extends RelationalFields<Schema, Item> ? WrapRelationalFilters<NestedQueryFilter<Schema, Item[Field$1]>> : never) | FilterOperators<Item[Field$1]>;
/**
* All regular filter operators
*
* TODO would love to filter this based on field type but thats not accurate enough in the schema atm
*/
type FilterOperators<FieldType, T = (FieldType extends keyof FieldOutputMap ? FieldOutputMap[FieldType] : FieldType)> = MapFilterOperators<{
_eq: T;
_neq: T;
_gt: IsDateTime<FieldType, string, IsNumber<T, number, never>>;
_gte: IsDateTime<FieldType, string, IsNumber<T, number, never>>;
_lt: IsDateTime<FieldType, string, IsNumber<T, number, never>>;
_lte: IsDateTime<FieldType, string, IsNumber<T, number, never>>;
_in: T[];
_nin: T[];
_between: IsDateTime<FieldType, [T, T], IsNumber<T, [T, T], never>>;
_nbetween: IsDateTime<FieldType, [T, T], IsNumber<T, [T, T], never>>;
_contains: IsDateTime<FieldType, never, IsString<T, string, never>>;
_ncontains: IsDateTime<FieldType, never, IsString<T, string, never>>;
_icontains: IsDateTime<FieldType, never, IsString<T, string, never>>;
_starts_with: IsDateTime<FieldType, never, IsString<T, string, never>>;
_istarts_with: IsDateTime<FieldType, never, IsString<T, string, never>>;
_nstarts_with: IsDateTime<FieldType, never, IsString<T, string, never>>;
_nistarts_with: IsDateTime<FieldType, never, IsString<T, string, never>>;
_ends_with: IsDateTime<FieldType, never, IsString<T, string, never>>;
_iends_with: IsDateTime<FieldType, never, IsString<T, string, never>>;
_nends_with: IsDateTime<FieldType, never, IsString<T, string, never>>;
_niends_with: IsDateTime<FieldType, never, IsString<T, string, never>>;
_empty: boolean;
_nempty: boolean;
_nnull: boolean;
_null: boolean;
_intersects: T;
_nintersects: T;
_intersects_bbox: T;
_nintersects_bbox: T;
}>;
type MapFilterOperators<Filters extends object> = { [Key in keyof Filters as IfNever<Filters[Key], never, Key>]?: Filters[Key] };
/**
* Relational filter operators
*/
type RelationalFilterOperators = '_some' | '_none';
type WrapRelationalFilters<Filters> = { [Operator in RelationalFilterOperators]?: Filters } | Filters;
/**
* Logical filter operations
*/
type LogicalFilterOperators = '_or' | '_and';
type WrapLogicalFilters<Filters extends object> = { [Operator in LogicalFilterOperators]?: WrapLogicalFilters<Filters>[] } | Filters;
//#endregion
export { FilterOperators, LogicalFilterOperators, NestedQueryFilter, NestedRelationalFilter, QueryFilter, RelationalFilterOperators, WrapLogicalFilters, WrapRelationalFilters };
//# sourceMappingURL=filters.d.ts.map

View File

@@ -0,0 +1,558 @@
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);}(function (_window$dateFns) {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/ar/_lib/formatDistance.mjs
var formatDistanceLocale = {
lessThanXSeconds: {
one: "\u0623\u0642\u0644 \u0645\u0646 \u062B\u0627\u0646\u064A\u0629",
two: "\u0623\u0642\u0644 \u0645\u0646 \u062B\u0627\u0646\u064A\u062A\u064A\u0646",
threeToTen: "\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062B\u0648\u0627\u0646\u064A",
other: "\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062B\u0627\u0646\u064A\u0629"
},
xSeconds: {
one: "\u062B\u0627\u0646\u064A\u0629 \u0648\u0627\u062D\u062F\u0629",
two: "\u062B\u0627\u0646\u064A\u062A\u0627\u0646",
threeToTen: "{{count}} \u062B\u0648\u0627\u0646\u064A",
other: "{{count}} \u062B\u0627\u0646\u064A\u0629"
},
halfAMinute: "\u0646\u0635\u0641 \u062F\u0642\u064A\u0642\u0629",
lessThanXMinutes: {
one: "\u0623\u0642\u0644 \u0645\u0646 \u062F\u0642\u064A\u0642\u0629",
two: "\u0623\u0642\u0644 \u0645\u0646 \u062F\u0642\u064A\u0642\u062A\u064A\u0646",
threeToTen: "\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062F\u0642\u0627\u0626\u0642",
other: "\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062F\u0642\u064A\u0642\u0629"
},
xMinutes: {
one: "\u062F\u0642\u064A\u0642\u0629 \u0648\u0627\u062D\u062F\u0629",
two: "\u062F\u0642\u064A\u0642\u062A\u0627\u0646",
threeToTen: "{{count}} \u062F\u0642\u0627\u0626\u0642",
other: "{{count}} \u062F\u0642\u064A\u0642\u0629"
},
aboutXHours: {
one: "\u0633\u0627\u0639\u0629 \u0648\u0627\u062D\u062F\u0629 \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
two: "\u0633\u0627\u0639\u062A\u064A\u0646 \u062A\u0642\u0631\u064A\u0628\u0627",
threeToTen: "{{count}} \u0633\u0627\u0639\u0627\u062A \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
other: "{{count}} \u0633\u0627\u0639\u0629 \u062A\u0642\u0631\u064A\u0628\u0627\u064B"
},
xHours: {
one: "\u0633\u0627\u0639\u0629 \u0648\u0627\u062D\u062F\u0629",
two: "\u0633\u0627\u0639\u062A\u0627\u0646",
threeToTen: "{{count}} \u0633\u0627\u0639\u0627\u062A",
other: "{{count}} \u0633\u0627\u0639\u0629"
},
xDays: {
one: "\u064A\u0648\u0645 \u0648\u0627\u062D\u062F",
two: "\u064A\u0648\u0645\u0627\u0646",
threeToTen: "{{count}} \u0623\u064A\u0627\u0645",
other: "{{count}} \u064A\u0648\u0645"
},
aboutXWeeks: {
one: "\u0623\u0633\u0628\u0648\u0639 \u0648\u0627\u062D\u062F \u062A\u0642\u0631\u064A\u0628\u0627",
two: "\u0623\u0633\u0628\u0648\u0639\u064A\u0646 \u062A\u0642\u0631\u064A\u0628\u0627",
threeToTen: "{{count}} \u0623\u0633\u0627\u0628\u064A\u0639 \u062A\u0642\u0631\u064A\u0628\u0627",
other: "{{count}} \u0623\u0633\u0628\u0648\u0639\u0627 \u062A\u0642\u0631\u064A\u0628\u0627"
},
xWeeks: {
one: "\u0623\u0633\u0628\u0648\u0639 \u0648\u0627\u062D\u062F",
two: "\u0623\u0633\u0628\u0648\u0639\u0627\u0646",
threeToTen: "{{count}} \u0623\u0633\u0627\u0628\u064A\u0639",
other: "{{count}} \u0623\u0633\u0628\u0648\u0639\u0627"
},
aboutXMonths: {
one: "\u0634\u0647\u0631 \u0648\u0627\u062D\u062F \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
two: "\u0634\u0647\u0631\u064A\u0646 \u062A\u0642\u0631\u064A\u0628\u0627",
threeToTen: "{{count}} \u0623\u0634\u0647\u0631 \u062A\u0642\u0631\u064A\u0628\u0627",
other: "{{count}} \u0634\u0647\u0631\u0627 \u062A\u0642\u0631\u064A\u0628\u0627\u064B"
},
xMonths: {
one: "\u0634\u0647\u0631 \u0648\u0627\u062D\u062F",
two: "\u0634\u0647\u0631\u0627\u0646",
threeToTen: "{{count}} \u0623\u0634\u0647\u0631",
other: "{{count}} \u0634\u0647\u0631\u0627"
},
aboutXYears: {
one: "\u0633\u0646\u0629 \u0648\u0627\u062D\u062F\u0629 \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
two: "\u0633\u0646\u062A\u064A\u0646 \u062A\u0642\u0631\u064A\u0628\u0627",
threeToTen: "{{count}} \u0633\u0646\u0648\u0627\u062A \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
other: "{{count}} \u0633\u0646\u0629 \u062A\u0642\u0631\u064A\u0628\u0627\u064B"
},
xYears: {
one: "\u0633\u0646\u0629 \u0648\u0627\u062D\u062F",
two: "\u0633\u0646\u062A\u0627\u0646",
threeToTen: "{{count}} \u0633\u0646\u0648\u0627\u062A",
other: "{{count}} \u0633\u0646\u0629"
},
overXYears: {
one: "\u0623\u0643\u062B\u0631 \u0645\u0646 \u0633\u0646\u0629",
two: "\u0623\u0643\u062B\u0631 \u0645\u0646 \u0633\u0646\u062A\u064A\u0646",
threeToTen: "\u0623\u0643\u062B\u0631 \u0645\u0646 {{count}} \u0633\u0646\u0648\u0627\u062A",
other: "\u0623\u0643\u062B\u0631 \u0645\u0646 {{count}} \u0633\u0646\u0629"
},
almostXYears: {
one: "\u0645\u0627 \u064A\u0642\u0627\u0631\u0628 \u0633\u0646\u0629 \u0648\u0627\u062D\u062F\u0629",
two: "\u0645\u0627 \u064A\u0642\u0627\u0631\u0628 \u0633\u0646\u062A\u064A\u0646",
threeToTen: "\u0645\u0627 \u064A\u0642\u0627\u0631\u0628 {{count}} \u0633\u0646\u0648\u0627\u062A",
other: "\u0645\u0627 \u064A\u0642\u0627\u0631\u0628 {{count}} \u0633\u0646\u0629"
}
};
var formatDistance = function formatDistance(token, count, options) {
var usageGroup = formatDistanceLocale[token];
var result;
if (typeof usageGroup === "string") {
result = usageGroup;
} else if (count === 1) {
result = usageGroup.one;
} else if (count === 2) {
result = usageGroup.two;
} else if (count <= 10) {
result = usageGroup.threeToTen.replace("{{count}}", String(count));
} else {
result = usageGroup.other.replace("{{count}}", String(count));
}
if (options !== null && options !== void 0 && options.addSuffix) {
if (options.comparison && options.comparison > 0) {
return "\u062E\u0644\u0627\u0644 " + result;
} else {
return "\u0645\u0646\u0630 " + result;
}
}
return result;
};
// lib/locale/_lib/buildFormatLongFn.mjs
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/ar/_lib/formatLong.mjs
var dateFormats = {
full: "EEEE\u060C do MMMM y",
long: "do MMMM y",
medium: "d MMM y",
short: "dd/MM/yyyy"
};
var timeFormats = {
full: "HH:mm:ss",
long: "HH:mm:ss",
medium: "HH:mm:ss",
short: "HH:mm"
};
var dateTimeFormats = {
full: "{{date}} '\u0639\u0646\u062F \u0627\u0644\u0633\u0627\u0639\u0629' {{time}}",
long: "{{date}} '\u0639\u0646\u062F \u0627\u0644\u0633\u0627\u0639\u0629' {{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/ar/_lib/formatRelative.mjs
var formatRelativeLocale = {
lastWeek: "eeee '\u0627\u0644\u0645\u0627\u0636\u064A \u0639\u0646\u062F \u0627\u0644\u0633\u0627\u0639\u0629' p",
yesterday: "'\u0627\u0644\u0623\u0645\u0633 \u0639\u0646\u062F \u0627\u0644\u0633\u0627\u0639\u0629' p",
today: "'\u0627\u0644\u064A\u0648\u0645 \u0639\u0646\u062F \u0627\u0644\u0633\u0627\u0639\u0629' p",
tomorrow: "'\u063A\u062F\u0627 \u0639\u0646\u062F \u0627\u0644\u0633\u0627\u0639\u0629' p",
nextWeek: "eeee '\u0627\u0644\u0642\u0627\u062F\u0645 \u0639\u0646\u062F \u0627\u0644\u0633\u0627\u0639\u0629' p",
other: "P"
};
var formatRelative = function formatRelative(token) {return formatRelativeLocale[token];};
// lib/locale/_lib/buildLocalizeFn.mjs
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/ar/_lib/localize.mjs
var eraValues = {
narrow: ["\u0642", "\u0628"],
abbreviated: ["\u0642.\u0645.", "\u0628.\u0645."],
wide: ["\u0642\u0628\u0644 \u0627\u0644\u0645\u064A\u0644\u0627\u062F", "\u0628\u0639\u062F \u0627\u0644\u0645\u064A\u0644\u0627\u062F"]
};
var quarterValues = {
narrow: ["1", "2", "3", "4"],
abbreviated: ["\u06311", "\u06312", "\u06313", "\u06314"],
wide: ["\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u0623\u0648\u0644", "\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u062B\u0627\u0646\u064A", "\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u062B\u0627\u0644\u062B", "\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u0631\u0627\u0628\u0639"]
};
var monthValues = {
narrow: ["\u064A", "\u0641", "\u0645", "\u0623", "\u0645", "\u064A", "\u064A", "\u0623", "\u0633", "\u0623", "\u0646", "\u062F"],
abbreviated: [
"\u064A\u0646\u0627\u064A\u0631",
"\u0641\u0628\u0631\u0627\u064A\u0631",
"\u0645\u0627\u0631\u0633",
"\u0623\u0628\u0631\u064A\u0644",
"\u0645\u0627\u064A\u0648",
"\u064A\u0648\u0646\u064A\u0648",
"\u064A\u0648\u0644\u064A\u0648",
"\u0623\u063A\u0633\u0637\u0633",
"\u0633\u0628\u062A\u0645\u0628\u0631",
"\u0623\u0643\u062A\u0648\u0628\u0631",
"\u0646\u0648\u0641\u0645\u0628\u0631",
"\u062F\u064A\u0633\u0645\u0628\u0631"],
wide: [
"\u064A\u0646\u0627\u064A\u0631",
"\u0641\u0628\u0631\u0627\u064A\u0631",
"\u0645\u0627\u0631\u0633",
"\u0623\u0628\u0631\u064A\u0644",
"\u0645\u0627\u064A\u0648",
"\u064A\u0648\u0646\u064A\u0648",
"\u064A\u0648\u0644\u064A\u0648",
"\u0623\u063A\u0633\u0637\u0633",
"\u0633\u0628\u062A\u0645\u0628\u0631",
"\u0623\u0643\u062A\u0648\u0628\u0631",
"\u0646\u0648\u0641\u0645\u0628\u0631",
"\u062F\u064A\u0633\u0645\u0628\u0631"]
};
var dayValues = {
narrow: ["\u062D", "\u0646", "\u062B", "\u0631", "\u062E", "\u062C", "\u0633"],
short: ["\u0623\u062D\u062F", "\u0627\u062B\u0646\u064A\u0646", "\u062B\u0644\u0627\u062B\u0627\u0621", "\u0623\u0631\u0628\u0639\u0627\u0621", "\u062E\u0645\u064A\u0633", "\u062C\u0645\u0639\u0629", "\u0633\u0628\u062A"],
abbreviated: ["\u0623\u062D\u062F", "\u0627\u062B\u0646\u064A\u0646", "\u062B\u0644\u0627\u062B\u0627\u0621", "\u0623\u0631\u0628\u0639\u0627\u0621", "\u062E\u0645\u064A\u0633", "\u062C\u0645\u0639\u0629", "\u0633\u0628\u062A"],
wide: [
"\u0627\u0644\u0623\u062D\u062F",
"\u0627\u0644\u0627\u062B\u0646\u064A\u0646",
"\u0627\u0644\u062B\u0644\u0627\u062B\u0627\u0621",
"\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621",
"\u0627\u0644\u062E\u0645\u064A\u0633",
"\u0627\u0644\u062C\u0645\u0639\u0629",
"\u0627\u0644\u0633\u0628\u062A"]
};
var dayPeriodValues = {
narrow: {
am: "\u0635",
pm: "\u0645",
morning: "\u0627\u0644\u0635\u0628\u0627\u062D",
noon: "\u0627\u0644\u0638\u0647\u0631",
afternoon: "\u0628\u0639\u062F \u0627\u0644\u0638\u0647\u0631",
evening: "\u0627\u0644\u0645\u0633\u0627\u0621",
night: "\u0627\u0644\u0644\u064A\u0644",
midnight: "\u0645\u0646\u062A\u0635\u0641 \u0627\u0644\u0644\u064A\u0644"
},
abbreviated: {
am: "\u0635",
pm: "\u0645",
morning: "\u0627\u0644\u0635\u0628\u0627\u062D",
noon: "\u0627\u0644\u0638\u0647\u0631",
afternoon: "\u0628\u0639\u062F \u0627\u0644\u0638\u0647\u0631",
evening: "\u0627\u0644\u0645\u0633\u0627\u0621",
night: "\u0627\u0644\u0644\u064A\u0644",
midnight: "\u0645\u0646\u062A\u0635\u0641 \u0627\u0644\u0644\u064A\u0644"
},
wide: {
am: "\u0635",
pm: "\u0645",
morning: "\u0627\u0644\u0635\u0628\u0627\u062D",
noon: "\u0627\u0644\u0638\u0647\u0631",
afternoon: "\u0628\u0639\u062F \u0627\u0644\u0638\u0647\u0631",
evening: "\u0627\u0644\u0645\u0633\u0627\u0621",
night: "\u0627\u0644\u0644\u064A\u0644",
midnight: "\u0645\u0646\u062A\u0635\u0641 \u0627\u0644\u0644\u064A\u0644"
}
};
var formattingDayPeriodValues = {
narrow: {
am: "\u0635",
pm: "\u0645",
morning: "\u0641\u064A \u0627\u0644\u0635\u0628\u0627\u062D",
noon: "\u0627\u0644\u0638\u0647\u0631",
afternoon: "\u0628\u0639\u062F \u0627\u0644\u0638\u0647\u0631",
evening: "\u0641\u064A \u0627\u0644\u0645\u0633\u0627\u0621",
night: "\u0641\u064A \u0627\u0644\u0644\u064A\u0644",
midnight: "\u0645\u0646\u062A\u0635\u0641 \u0627\u0644\u0644\u064A\u0644"
},
abbreviated: {
am: "\u0635",
pm: "\u0645",
morning: "\u0641\u064A \u0627\u0644\u0635\u0628\u0627\u062D",
noon: "\u0627\u0644\u0638\u0647\u0631",
afternoon: "\u0628\u0639\u062F \u0627\u0644\u0638\u0647\u0631",
evening: "\u0641\u064A \u0627\u0644\u0645\u0633\u0627\u0621",
night: "\u0641\u064A \u0627\u0644\u0644\u064A\u0644",
midnight: "\u0645\u0646\u062A\u0635\u0641 \u0627\u0644\u0644\u064A\u0644"
},
wide: {
am: "\u0635",
pm: "\u0645",
morning: "\u0641\u064A \u0627\u0644\u0635\u0628\u0627\u062D",
noon: "\u0627\u0644\u0638\u0647\u0631",
afternoon: "\u0628\u0639\u062F \u0627\u0644\u0638\u0647\u0631",
evening: "\u0641\u064A \u0627\u0644\u0645\u0633\u0627\u0621",
night: "\u0641\u064A \u0627\u0644\u0644\u064A\u0644",
midnight: "\u0645\u0646\u062A\u0635\u0641 \u0627\u0644\u0644\u064A\u0644"
}
};
var ordinalNumber = function ordinalNumber(num) {return String(num);};
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/buildMatchPatternFn.mjs
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/_lib/buildMatchFn.mjs
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 };
};
}
var findKey = function findKey(object, predicate) {
for (var key in object) {
if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) {
return key;
}
}
return;
};
var findIndex = function findIndex(array, predicate) {
for (var key = 0; key < array.length; key++) {
if (predicate(array[key])) {
return key;
}
}
return;
};
// lib/locale/ar/_lib/match.mjs
var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
var parseOrdinalNumberPattern = /\d+/i;
var matchEraPatterns = {
narrow: /[قب]/,
abbreviated: /[قب]\.م\./,
wide: /(قبل|بعد) الميلاد/
};
var parseEraPatterns = {
any: [/قبل/, /بعد/]
};
var matchQuarterPatterns = {
narrow: /^[1234]/i,
abbreviated: /ر[1234]/,
wide: /الربع (الأول|الثاني|الثالث|الرابع)/
};
var parseQuarterPatterns = {
any: [/1/i, /2/i, /3/i, /4/i]
};
var matchMonthPatterns = {
narrow: /^[أيفمسند]/,
abbreviated: /^(يناير|فبراير|مارس|أبريل|مايو|يونيو|يوليو|أغسطس|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/,
wide: /^(يناير|فبراير|مارس|أبريل|مايو|يونيو|يوليو|أغسطس|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/
};
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: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,
abbreviated: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,
wide: /^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i
};
var parseDayPatterns = {
narrow: [/^ح/i, /^ن/i, /^ث/i, /^ر/i, /^خ/i, /^ج/i, /^س/i],
wide: [
/^الأحد/i,
/^الاثنين/i,
/^الثلاثاء/i,
/^الأربعاء/i,
/^الخميس/i,
/^الجمعة/i,
/^السبت/i],
any: [/^أح/i, /^اث/i, /^ث/i, /^أر/i, /^خ/i, /^ج/i, /^س/i]
};
var matchDayPeriodPatterns = {
narrow: /^(ص|م|منتصف الليل|الظهر|بعد الظهر|في الصباح|في المساء|في الليل)/,
any: /^(ص|م|منتصف الليل|الظهر|بعد الظهر|في الصباح|في المساء|في الليل)/
};
var parseDayPeriodPatterns = {
any: {
am: /^ص/,
pm: /^م/,
midnight: /منتصف الليل/,
noon: /الظهر/,
afternoon: /بعد الظهر/,
morning: /في الصباح/,
evening: /في المساء/,
night: /في الليل/
}
};
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/ar.mjs
var ar = {
code: "ar",
formatDistance: formatDistance,
formatLong: formatLong,
formatRelative: formatRelative,
localize: localize,
match: match,
options: {
weekStartsOn: 6,
firstWeekContainsDate: 1
}
};
// lib/locale/ar/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), {}, {
ar: ar }) });
//# debugId=B5D9520E7A8601A864756e2164756e21
})();
//# sourceMappingURL=cdn.js.map

View File

@@ -0,0 +1,137 @@
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
const { compareIds } = require("../util/comparators");
/** @typedef {import("../Chunk")} Chunk */
/** @typedef {import("../Chunk").ChunkId} ChunkId */
/** @typedef {import("../Compiler")} Compiler */
/** @typedef {import("../Module")} Module */
const PLUGIN_NAME = "FlagIncludedChunksPlugin";
class FlagIncludedChunksPlugin {
/**
* Apply the plugin
* @param {Compiler} compiler the compiler instance
* @returns {void}
*/
apply(compiler) {
compiler.hooks.compilation.tap(PLUGIN_NAME, (compilation) => {
compilation.hooks.optimizeChunkIds.tap(PLUGIN_NAME, (chunks) => {
const chunkGraph = compilation.chunkGraph;
// prepare two bit integers for each module
// 2^31 is the max number represented as SMI in v8
// we want the bits distributed this way:
// the bit 2^31 is pretty rar and only one module should get it
// so it has a probability of 1 / modulesCount
// the first bit (2^0) is the easiest and every module could get it
// if it doesn't get a better bit
// from bit 2^n to 2^(n+1) there is a probability of p
// so 1 / modulesCount == p^31
// <=> p = sqrt31(1 / modulesCount)
// so we use a modulo of 1 / sqrt31(1 / modulesCount)
/** @type {WeakMap<Module, number>} */
const moduleBits = new WeakMap();
const modulesCount = compilation.modules.size;
// precalculate the modulo values for each bit
const modulo = 1 / (1 / modulesCount) ** (1 / 31);
/** @type {number[]} */
const modulos = Array.from(
{ length: 31 },
/**
* @param {number} x x
* @param {number} i i
* @returns {number} result
*/
(x, i) => (modulo ** i) | 0
);
// iterate all modules to generate bit values
let i = 0;
for (const module of compilation.modules) {
let bit = 30;
while (i % modulos[bit] !== 0) {
bit--;
}
moduleBits.set(module, 1 << bit);
i++;
}
// iterate all chunks to generate bitmaps
/** @type {WeakMap<Chunk, number>} */
const chunkModulesHash = new WeakMap();
for (const chunk of chunks) {
let hash = 0;
for (const module of chunkGraph.getChunkModulesIterable(chunk)) {
hash |= /** @type {number} */ (moduleBits.get(module));
}
chunkModulesHash.set(chunk, hash);
}
for (const chunkA of chunks) {
const chunkAHash =
/** @type {number} */
(chunkModulesHash.get(chunkA));
const chunkAModulesCount = chunkGraph.getNumberOfChunkModules(chunkA);
if (chunkAModulesCount === 0) continue;
/** @type {undefined | Module} */
let bestModule;
for (const module of chunkGraph.getChunkModulesIterable(chunkA)) {
if (
bestModule === undefined ||
chunkGraph.getNumberOfModuleChunks(bestModule) >
chunkGraph.getNumberOfModuleChunks(module)
) {
bestModule = module;
}
}
loopB: for (const chunkB of chunkGraph.getModuleChunksIterable(
/** @type {Module} */ (bestModule)
)) {
// as we iterate the same iterables twice
// skip if we find ourselves
if (chunkA === chunkB) continue;
const chunkBModulesCount =
chunkGraph.getNumberOfChunkModules(chunkB);
// ids for empty chunks are not included
if (chunkBModulesCount === 0) continue;
// instead of swapping A and B just bail
// as we loop twice the current A will be B and B then A
if (chunkAModulesCount > chunkBModulesCount) continue;
// is chunkA in chunkB?
// we do a cheap check for the hash value
const chunkBHash =
/** @type {number} */
(chunkModulesHash.get(chunkB));
if ((chunkBHash & chunkAHash) !== chunkAHash) continue;
// compare all modules
for (const m of chunkGraph.getChunkModulesIterable(chunkA)) {
if (!chunkGraph.isModuleInChunk(m, chunkB)) continue loopB;
}
/** @type {ChunkId[]} */
(chunkB.ids).push(/** @type {ChunkId} */ (chunkA.id));
// https://github.com/webpack/webpack/issues/18837
/** @type {ChunkId[]} */
(chunkB.ids).sort(compareIds);
}
}
});
});
}
}
module.exports = FlagIncludedChunksPlugin;

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.js","names":["ListDrawerCreateNewDocButton"],"sources":["../../../../src/elements/ListHeader/DrawerTitleActions/index.tsx"],"sourcesContent":["export { ListDrawerCreateNewDocButton } from './ListDrawerCreateNewDocButton.js'\n"],"mappings":"AAAA,SAASA,4BAA4B,QAAQ","ignoreList":[]}

View File

@@ -0,0 +1 @@
{"version":3,"file":"streaming.d.ts","sourceRoot":"","sources":["../../../../src/tracing/anthropic-ai/streaming.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAUnD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AA2PzD;;;;GAIG;AACH,wBAAuB,6BAA6B,CAClD,MAAM,EAAE,aAAa,CAAC,yBAAyB,CAAC,EAChD,IAAI,EAAE,IAAI,EACV,aAAa,EAAE,OAAO,GACrB,cAAc,CAAC,yBAAyB,EAAE,IAAI,EAAE,OAAO,CAAC,CAiE1D;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,SAAS;IAAE,EAAE,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAA;CAAE,EACpF,MAAM,EAAE,CAAC,EACT,IAAI,EAAE,IAAI,EACV,aAAa,EAAE,OAAO,GACrB,CAAC,CAuCH"}

View File

@@ -0,0 +1,67 @@
import { executeAccess } from '../../auth/executeAccess.js';
import { combineQueries } from '../../database/combineQueries.js';
import { validateQueryPaths } from '../../database/queryValidation/validateQueryPaths.js';
import { buildVersionGlobalFields } from '../../index.js';
import { killTransaction } from '../../utilities/killTransaction.js';
// eslint-disable-next-line @typescript-eslint/no-unused-vars
export const countGlobalVersionsOperation = async (args)=>{
try {
const { disableErrors, global, overrideAccess, where } = args;
const req = args.req;
const { payload } = req;
// /////////////////////////////////////
// beforeOperation - Global
// /////////////////////////////////////
if (global.hooks?.beforeOperation?.length) {
for (const hook of global.hooks.beforeOperation){
args = await hook({
args,
context: req.context,
global,
operation: 'countVersions',
overrideAccess,
req
}) || args;
}
}
// /////////////////////////////////////
// Access
// /////////////////////////////////////
let accessResult;
if (!overrideAccess) {
accessResult = await executeAccess({
disableErrors,
req
}, global.access.readVersions);
// If errors are disabled, and access returns false, return empty results
if (accessResult === false) {
return {
totalDocs: 0
};
}
}
const fullWhere = combineQueries(where, accessResult);
const versionFields = buildVersionGlobalFields(payload.config, global, true);
await validateQueryPaths({
globalConfig: global,
overrideAccess: overrideAccess,
req,
versionFields,
where: where
});
const result = await payload.db.countGlobalVersions({
global: global.slug,
req,
where: fullWhere
});
// /////////////////////////////////////
// Return results
// /////////////////////////////////////
return result;
} catch (error) {
await killTransaction(args.req);
throw error;
}
};
//# sourceMappingURL=countGlobalVersions.js.map

View File

@@ -0,0 +1,23 @@
import type { AnyColumn, Column } from "./column.cjs";
import type { SQL } from "./sql/sql.cjs";
import type { Table } from "./table.cjs";
export type RequiredKeyOnly<TKey extends string, T extends Column> = T extends AnyColumn<{
notNull: true;
hasDefault: false;
}> ? TKey : never;
export type OptionalKeyOnly<TKey extends string, T extends Column, OverrideT extends boolean | undefined = false> = TKey extends RequiredKeyOnly<TKey, T> ? never : T extends {
_: {
generated: undefined;
};
} ? (T extends {
_: {
identity: undefined;
};
} ? TKey : T['_']['identity'] extends 'always' ? OverrideT extends true ? TKey : never : TKey) : never;
export type SelectedFieldsFlat<TColumn extends Column> = Record<string, TColumn | SQL | SQL.Aliased>;
export type SelectedFieldsFlatFull<TColumn extends Column> = Record<string, TColumn | SQL | SQL.Aliased>;
export type SelectedFields<TColumn extends Column, TTable extends Table> = Record<string, SelectedFieldsFlat<TColumn>[string] | TTable | SelectedFieldsFlat<TColumn>>;
export type SelectedFieldsOrdered<TColumn extends Column> = {
path: string[];
field: TColumn | SQL | SQL.Aliased;
}[];

View File

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

View File

@@ -0,0 +1 @@
{"version":3,"file":"browseroptions.d.ts","sourceRoot":"","sources":["../../../src/types-hoist/browseroptions.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC;;;OAGG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAElC;;;;OAIG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B;;;;;;OAMG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAElC;;;;;;;;;OASG;IACH,gBAAgB,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;CACvC,CAAC"}

View File

@@ -0,0 +1,3 @@
export declare const SAFE_STRING_REGEX: RegExp;
export declare const escapeSQLValue: (value: unknown) => boolean | null | number | string;
//# sourceMappingURL=escapeSQLValue.d.ts.map

View File

@@ -0,0 +1,74 @@
# signal-exit
When you want to fire an event no matter how a process exits:
- reaching the end of execution.
- explicitly having `process.exit(code)` called.
- having `process.kill(pid, sig)` called.
- receiving a fatal signal from outside the process
Use `signal-exit`.
```js
// Hybrid module, either works
import { onExit } from 'signal-exit'
// or:
// const { onExit } = require('signal-exit')
onExit((code, signal) => {
console.log('process exited!', code, signal)
})
```
## API
`remove = onExit((code, signal) => {}, options)`
The return value of the function is a function that will remove
the handler.
Note that the function _only_ fires for signals if the signal
would cause the process to exit. That is, there are no other
listeners, and it is a fatal signal.
If the global `process` object is not suitable for this purpose
(ie, it's unset, or doesn't have an `emit` method, etc.) then the
`onExit` function is a no-op that returns a no-op `remove` method.
### Options
- `alwaysLast`: Run this handler after any other signal or exit
handlers. This causes `process.emit` to be monkeypatched.
### Capturing Signal Exits
If the handler returns an exact boolean `true`, and the exit is a
due to signal, then the signal will be considered handled, and
will _not_ trigger a synthetic `process.kill(process.pid,
signal)` after firing the `onExit` handlers.
In this case, it your responsibility as the caller to exit with a
signal (for example, by calling `process.kill()`) if you wish to
preserve the same exit status that would otherwise have occurred.
If you do not, then the process will likely exit gracefully with
status 0 at some point, assuming that no other terminating signal
or other exit trigger occurs.
Prior to calling handlers, the `onExit` machinery is unloaded, so
any subsequent exits or signals will not be handled, even if the
signal is captured and the exit is thus prevented.
Note that numeric code exits may indicate that the process is
already committed to exiting, for example due to a fatal
exception or unhandled promise rejection, and so there is no way to
prevent it safely.
### Browser Fallback
The `'signal-exit/browser'` module is the same fallback shim that
just doesn't do anything, but presents the same function
interface.
Patches welcome to add something that hooks onto
`window.onbeforeunload` or similar, but it might just not be a
thing that makes sense there.

View File

@@ -0,0 +1 @@
{"version":3,"file":"receipt-cent.js","sources":["../../../src/icons/receipt-cent.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name ReceiptCent\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNNCAydjIwbDItMSAyIDEgMi0xIDIgMSAyLTEgMiAxIDItMSAyIDFWMmwtMiAxLTItMS0yIDEtMi0xLTIgMS0yLTEtMiAxWiIgLz4KICA8cGF0aCBkPSJNMTIgNi41djExIiAvPgogIDxwYXRoIGQ9Ik0xNSA5LjRhNCA0IDAgMSAwIDAgNS4yIiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/receipt-cent\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 ReceiptCent = createLucideIcon('ReceiptCent', [\n [\n 'path',\n { d: 'M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z', key: 'q3az6g' },\n ],\n ['path', { d: 'M12 6.5v11', key: 'ecfhkf' }],\n ['path', { d: 'M15 9.4a4 4 0 1 0 0 5.2', key: '1makmb' }],\n]);\n\nexport default ReceiptCent;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAc,iBAAiB,aAAe,CAAA,CAAA,CAAA;AAAA,CAClD,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,CAAA,CAA2E,EAAA,CAAA,CAAA,CAAA,CAAA,CAAK,QAAS,CAAA,CAAA;AAAA,CAChG,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,CAA2B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,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;AAC1D,CAAC,CAAA,CAAA;;"}

View File

@@ -0,0 +1 @@
module.exports={A:{A:{"1":"A B","2":"K D E F 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 VC J bB K D E F A B C L M G N O P cB AB BB CB DB EB FB GB HB IB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B WC 6B XC 7B 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 4C 5C","2":"0C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 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","2":"J","4":"bB K D"},E:{"1":"K D E F A B C L M G 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 bB 6C bC 7C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P cB AB BB CB DB EB FB GB HB IB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC 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 JD KD LD MD PC xC ND QC"},G:{"1":"E 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 tC uC vC wC","2":"bC OD yC PD"},H:{"1":"mD"},I:{"1":"I rD sD","2":"VC J nD oD pD qD yC"},J:{"1":"A","2":"D"},K:{"1":"A B C H PC xC QC"},L:{"1":"I"},M:{"1":"OC"},N:{"1":"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:2,C:"SVG filters",D:true};

View File

@@ -0,0 +1 @@
module.exports={A:{A:{"2":"K D E F A B zC"},B:{"1":"0 1 2 3 4 5 6 7 8 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 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","16":"0C","33":"9 VC J bB K D E F A B C L M G N O P cB AB BB CB DB EB FB GB HB IB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB 4C 5C"},D:{"1":"0 1 2 3 4 5 6 7 8 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","16":"J bB K D E F A B C L M","33":"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 WC 6B XC 7B 8B 9B"},E:{"1":"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","16":"J bB K 6C bC 7C","33":"D E 8C 9C"},F:{"1":"0 1 2 3 4 5 6 7 8 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","33":"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"},G:{"1":"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","16":"bC OD yC PD","33":"E QD RD SD"},H:{"2":"mD"},I:{"1":"I","16":"VC J nD oD pD qD yC","33":"rD sD"},J:{"16":"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 AB BB CB DB EB FB GB HB IB xD cC yD zD 0D 1D 2D SC TC UC 3D","16":"J","33":"tD uD vD wD"},Q:{"1":"4D"},R:{"1":"5D"},S:{"1":"7D","33":"6D"}},B:5,C:"CSS :any-link selector",D:true};

View File

@@ -0,0 +1,7 @@
import { Scope } from '@sentry/core';
/**
* Update the active isolation scope.
* Should be used with caution!
*/
export declare function setIsolationScope(isolationScope: Scope): void;
//# sourceMappingURL=scope.d.ts.map

View File

@@ -0,0 +1,46 @@
import { millisecondsInWeek } from "./constants.mjs";
import { startOfISOWeek } from "./startOfISOWeek.mjs";
import { getTimezoneOffsetInMilliseconds } from "./_lib/getTimezoneOffsetInMilliseconds.mjs";
/**
* @name differenceInCalendarISOWeeks
* @category ISO Week Helpers
* @summary Get the number of calendar ISO weeks between the given dates.
*
* @description
* Get the number of calendar ISO weeks between the given dates.
*
* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
*
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
*
* @param dateLeft - The later date
* @param dateRight - The earlier date
*
* @returns The number of calendar ISO weeks
*
* @example
* // How many calendar ISO weeks are between 6 July 2014 and 21 July 2014?
* const result = differenceInCalendarISOWeeks(
* new Date(2014, 6, 21),
* new Date(2014, 6, 6)
* )
* //=> 3
*/
export function differenceInCalendarISOWeeks(dateLeft, dateRight) {
const startOfISOWeekLeft = startOfISOWeek(dateLeft);
const startOfISOWeekRight = startOfISOWeek(dateRight);
const timestampLeft =
+startOfISOWeekLeft - getTimezoneOffsetInMilliseconds(startOfISOWeekLeft);
const timestampRight =
+startOfISOWeekRight - getTimezoneOffsetInMilliseconds(startOfISOWeekRight);
// Round the number of weeks to the nearest integer because the number of
// milliseconds in a week is not constant (e.g. it's different in the week of
// the daylight saving time clock shift).
return Math.round((timestampLeft - timestampRight) / millisecondsInWeek);
}
// Fallback for modularized imports:
export default differenceInCalendarISOWeeks;

View File

@@ -0,0 +1,32 @@
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/**
* Tagged template function which returns parameterized representation of the message
* For example: parameterize`This is a log statement with ${x} and ${y} params`, would return:
* "__sentry_template_string__": 'This is a log statement with %s and %s params',
* "__sentry_template_values__": ['first', 'second']
*
* @param strings An array of string values splitted between expressions
* @param values Expressions extracted from template string
*
* @returns A `ParameterizedString` object that can be passed into `captureMessage` or Sentry.logger.X methods.
*/
function parameterize(strings, ...values) {
const formatted = new String(String.raw(strings, ...values)) ;
formatted.__sentry_template_string__ = strings.join('\x00').replace(/%/g, '%%').replace(/\0/g, '%s');
formatted.__sentry_template_values__ = values;
return formatted;
}
/**
* Tagged template function which returns parameterized representation of the message.
*
* @param strings An array of string values splitted between expressions
* @param values Expressions extracted from template string
* @returns A `ParameterizedString` object that can be passed into `captureMessage` or Sentry.logger.X methods.
*/
const fmt = parameterize;
exports.fmt = fmt;
exports.parameterize = parameterize;
//# sourceMappingURL=parameterize.js.map

View File

@@ -0,0 +1,9 @@
import { _ as _array_with_holes } from "./_array_with_holes.js";
import { _ as _iterable_to_array } from "./_iterable_to_array.js";
import { _ as _non_iterable_rest } from "./_non_iterable_rest.js";
import { _ as _unsupported_iterable_to_array } from "./_unsupported_iterable_to_array.js";
function _to_array(arr) {
return _array_with_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_rest();
}
export { _to_array as _ };

View File

@@ -0,0 +1,37 @@
var baseCreate = require('./_baseCreate'),
isObject = require('./isObject');
/**
* Creates a function that produces an instance of `Ctor` regardless of
* whether it was invoked as part of a `new` expression or by `call` or `apply`.
*
* @private
* @param {Function} Ctor The constructor to wrap.
* @returns {Function} Returns the new wrapped function.
*/
function createCtor(Ctor) {
return function() {
// Use a `switch` statement to work with class constructors. See
// http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist
// for more details.
var args = arguments;
switch (args.length) {
case 0: return new Ctor;
case 1: return new Ctor(args[0]);
case 2: return new Ctor(args[0], args[1]);
case 3: return new Ctor(args[0], args[1], args[2]);
case 4: return new Ctor(args[0], args[1], args[2], args[3]);
case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]);
case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);
case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);
}
var thisBinding = baseCreate(Ctor.prototype),
result = Ctor.apply(thisBinding, args);
// Mimic the constructor's `return` behavior.
// See https://es5.github.io/#x13.2.2 for more details.
return isObject(result) ? result : thisBinding;
};
}
module.exports = createCtor;

View File

@@ -0,0 +1,122 @@
import { syntaxError } from '../error/syntaxError.mjs';
import { Token } from './ast.mjs';
import { isNameStart } from './characterClasses.mjs';
import { createToken, printCodePointAt, readName } from './lexer.mjs';
import { TokenKind } from './tokenKind.mjs';
/**
* Given a Source schema coordinate, creates a Lexer for that source.
* A SchemaCoordinateLexer is a stateful stream generator in that every time
* it is advanced, it returns the next token in the Source. Assuming the
* source lexes, the final Token emitted by the lexer will be of kind
* EOF, after which the lexer will repeatedly return the same EOF token
* whenever called.
*/
export class SchemaCoordinateLexer {
/**
* The previously focused non-ignored token.
*/
/**
* The currently focused non-ignored token.
*/
/**
* The (1-indexed) line containing the current token.
* Since a schema coordinate may not contain newline, this value is always 1.
*/
line = 1;
/**
* The character offset at which the current line begins.
* Since a schema coordinate may not contain newline, this value is always 0.
*/
lineStart = 0;
constructor(source) {
const startOfFileToken = new Token(TokenKind.SOF, 0, 0, 0, 0);
this.source = source;
this.lastToken = startOfFileToken;
this.token = startOfFileToken;
}
get [Symbol.toStringTag]() {
return 'SchemaCoordinateLexer';
}
/**
* Advances the token stream to the next non-ignored token.
*/
advance() {
this.lastToken = this.token;
const token = (this.token = this.lookahead());
return token;
}
/**
* Looks ahead and returns the next non-ignored token, but does not change
* the current Lexer token.
*/
lookahead() {
let token = this.token;
if (token.kind !== TokenKind.EOF) {
// Read the next token and form a link in the token linked-list.
const nextToken = readNextToken(this, token.end); // @ts-expect-error next is only mutable during parsing.
token.next = nextToken; // @ts-expect-error prev is only mutable during parsing.
nextToken.prev = token;
token = nextToken;
}
return token;
}
}
/**
* Gets the next token from the source starting at the given position.
*/
function readNextToken(lexer, start) {
const body = lexer.source.body;
const bodyLength = body.length;
const position = start;
if (position < bodyLength) {
const code = body.charCodeAt(position);
switch (code) {
case 0x002e:
// .
return createToken(lexer, TokenKind.DOT, position, position + 1);
case 0x0028:
// (
return createToken(lexer, TokenKind.PAREN_L, position, position + 1);
case 0x0029:
// )
return createToken(lexer, TokenKind.PAREN_R, position, position + 1);
case 0x003a:
// :
return createToken(lexer, TokenKind.COLON, position, position + 1);
case 0x0040:
// @
return createToken(lexer, TokenKind.AT, position, position + 1);
} // Name
if (isNameStart(code)) {
return readName(lexer, position);
}
throw syntaxError(
lexer.source,
position,
`Invalid character: ${printCodePointAt(lexer, position)}.`,
);
}
return createToken(lexer, TokenKind.EOF, bodyLength, bodyLength);
}

View File

@@ -0,0 +1,126 @@
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const core = require('@sentry/core');
const debugBuild = require('./debug-build.js');
const types = require('./types.js');
/**
* We generally want to use window.fetch / window.setTimeout.
* However, in some cases this may be wrapped (e.g. by Zone.js for Angular),
* so we try to get an unpatched version of this from a sandboxed iframe.
*/
const cachedImplementations = {};
/**
* Get the native implementation of a browser function.
*
* This can be used to ensure we get an unwrapped version of a function, in cases where a wrapped function can lead to problems.
*
* The following methods can be retrieved:
* - `setTimeout`: This can be wrapped by e.g. Angular, causing change detection to be triggered.
* - `fetch`: This can be wrapped by e.g. ad-blockers, causing an infinite loop when a request is blocked.
*/
function getNativeImplementation(
name,
) {
const cached = cachedImplementations[name];
if (cached) {
return cached;
}
let impl = types.WINDOW[name] ;
// Fast path to avoid DOM I/O
if (core.isNativeFunction(impl)) {
return (cachedImplementations[name] = impl.bind(types.WINDOW) );
}
const document = types.WINDOW.document;
// eslint-disable-next-line deprecation/deprecation
if (document && typeof document.createElement === 'function') {
try {
const sandbox = document.createElement('iframe');
sandbox.hidden = true;
document.head.appendChild(sandbox);
const contentWindow = sandbox.contentWindow;
if (contentWindow?.[name]) {
impl = contentWindow[name] ;
}
document.head.removeChild(sandbox);
} catch (e) {
// Could not create sandbox iframe, just use window.xxx
debugBuild.DEBUG_BUILD && core.debug.warn(`Could not create sandbox iframe for ${name} check, bailing to window.${name}: `, e);
}
}
// Sanity check: This _should_ not happen, but if it does, we just skip caching...
// This can happen e.g. in tests where fetch may not be available in the env, or similar.
if (!impl) {
return impl;
}
return (cachedImplementations[name] = impl.bind(types.WINDOW) );
}
/** Clear a cached implementation. */
function clearCachedImplementation(name) {
cachedImplementations[name] = undefined;
}
/**
* A special usecase for incorrectly wrapped Fetch APIs in conjunction with ad-blockers.
* Whenever someone wraps the Fetch API and returns the wrong promise chain,
* this chain becomes orphaned and there is no possible way to capture it's rejections
* other than allowing it bubble up to this very handler. eg.
*
* const f = window.fetch;
* window.fetch = function () {
* const p = f.apply(this, arguments);
*
* p.then(function() {
* console.log('hi.');
* });
*
* return p;
* }
*
* `p.then(function () { ... })` is producing a completely separate promise chain,
* however, what's returned is `p` - the result of original `fetch` call.
*
* This mean, that whenever we use the Fetch API to send our own requests, _and_
* some ad-blocker blocks it, this orphaned chain will _always_ reject,
* effectively causing another event to be captured.
* This makes a whole process become an infinite loop, which we need to somehow
* deal with, and break it in one way or another.
*
* To deal with this issue, we are making sure that we _always_ use the real
* browser Fetch API, instead of relying on what `window.fetch` exposes.
* The only downside to this would be missing our own requests as breadcrumbs,
* but because we are already not doing this, it should be just fine.
*
* Possible failed fetch error messages per-browser:
*
* Chrome: Failed to fetch
* Edge: Failed to Fetch
* Firefox: NetworkError when attempting to fetch resource
* Safari: resource blocked by content blocker
*/
function fetch(...rest) {
return getNativeImplementation('fetch')(...rest);
}
/**
* Get an unwrapped `setTimeout` method.
* This ensures that even if e.g. Angular wraps `setTimeout`, we get the native implementation,
* avoiding triggering change detection.
*/
function setTimeout(...rest) {
return getNativeImplementation('setTimeout')(...rest);
}
exports.clearCachedImplementation = clearCachedImplementation;
exports.fetch = fetch;
exports.getNativeImplementation = getNativeImplementation;
exports.setTimeout = setTimeout;
//# sourceMappingURL=getNativeImplementation.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../src/gel/index.ts"],"sourcesContent":["export * from './driver.ts';\nexport * from './session.ts';\n"],"mappings":"AAAA,cAAc;AACd,cAAc;","names":[]}

View File

@@ -0,0 +1,36 @@
import { expectType } from 'tsd'
import { createWarning, createDeprecation } from '..'
const WarnInstance = createWarning({
name: 'TypeScriptWarning',
code: 'CODE',
message: 'message'
})
expectType<string>(WarnInstance.code)
expectType<string>(WarnInstance.message)
expectType<string>(WarnInstance.name)
expectType<boolean>(WarnInstance.emitted)
expectType<boolean>(WarnInstance.unlimited)
expectType<void>(WarnInstance())
expectType<void>(WarnInstance('foo'))
expectType<void>(WarnInstance('foo', 'bar'))
const buildWarnUnlimited = createWarning({
name: 'TypeScriptWarning',
code: 'CODE',
message: 'message',
unlimited: true
})
expectType<boolean>(buildWarnUnlimited.unlimited)
const DeprecationInstance = createDeprecation({
code: 'CODE',
message: 'message'
})
expectType<string>(DeprecationInstance.code)
DeprecationInstance()
DeprecationInstance('foo')
DeprecationInstance('foo', 'bar')

View File

@@ -0,0 +1,3 @@
export { GRAPHQL_PLAYGROUND_GET, GRAPHQL_POST } from '../routes/graphql/index.js';
export { DELETE as REST_DELETE, GET as REST_GET, OPTIONS as REST_OPTIONS, PATCH as REST_PATCH, POST as REST_POST, PUT as REST_PUT } from '../routes/rest/index.js';
//# sourceMappingURL=routes.js.map

View File

@@ -0,0 +1,102 @@
import { SpanLink } from '../types-hoist/link';
import { SentrySpanArguments, Span, SpanAttributes, SpanAttributeValue, SpanContextData, SpanJSON, SpanTimeInput } from '../types-hoist/span';
import { SpanStatus } from '../types-hoist/spanStatus';
import { TimedEvent } from '../types-hoist/timedEvent';
/**
* Span contains all data about a span
*/
export declare class SentrySpan implements Span {
protected _traceId: string;
protected _spanId: string;
protected _parentSpanId?: string | undefined;
protected _sampled: boolean | undefined;
protected _name?: string | undefined;
protected _attributes: SpanAttributes;
protected _links?: SpanLink[];
/** Epoch timestamp in seconds when the span started. */
protected _startTime: number;
/** Epoch timestamp in seconds when the span ended. */
protected _endTime?: number | undefined;
/** Internal keeper of the status */
protected _status?: SpanStatus;
/** The timed events added to this span. */
protected _events: TimedEvent[];
/** if true, treat span as a standalone span (not part of a transaction) */
private _isStandaloneSpan?;
/**
* You should never call the constructor manually, always use `Sentry.startSpan()`
* or other span methods.
* @internal
* @hideconstructor
* @hidden
*/
constructor(spanContext?: SentrySpanArguments);
/** @inheritDoc */
addLink(link: SpanLink): this;
/** @inheritDoc */
addLinks(links: SpanLink[]): this;
/**
* This should generally not be used,
* but it is needed for being compliant with the OTEL Span interface.
*
* @hidden
* @internal
*/
recordException(_exception: unknown, _time?: number | undefined): void;
/** @inheritdoc */
spanContext(): SpanContextData;
/** @inheritdoc */
setAttribute(key: string, value: SpanAttributeValue | undefined): this;
/** @inheritdoc */
setAttributes(attributes: SpanAttributes): this;
/**
* This should generally not be used,
* but we need it for browser tracing where we want to adjust the start time afterwards.
* USE THIS WITH CAUTION!
*
* @hidden
* @internal
*/
updateStartTime(timeInput: SpanTimeInput): void;
/**
* @inheritDoc
*/
setStatus(value: SpanStatus): this;
/**
* @inheritDoc
*/
updateName(name: string): this;
/** @inheritdoc */
end(endTimestamp?: SpanTimeInput): void;
/**
* Get JSON representation of this span.
*
* @hidden
* @internal This method is purely for internal purposes and should not be used outside
* of SDK code. If you need to get a JSON representation of a span,
* use `spanToJSON(span)` instead.
*/
getSpanJSON(): SpanJSON;
/** @inheritdoc */
isRecording(): boolean;
/**
* @inheritdoc
*/
addEvent(name: string, attributesOrStartTime?: SpanAttributes | SpanTimeInput, startTime?: SpanTimeInput): this;
/**
* This method should generally not be used,
* but for now we need a way to publicly check if the `_isStandaloneSpan` flag is set.
* USE THIS WITH CAUTION!
* @internal
* @hidden
* @experimental
*/
isStandaloneSpan(): boolean;
/** Emit `spanEnd` when the span is ended. */
private _onSpanEnded;
/**
* Finish the transaction & prepare the event to send to Sentry.
*/
private _convertSpanToTransaction;
}
//# sourceMappingURL=sentrySpan.d.ts.map

View File

@@ -0,0 +1,11 @@
const formatRelativeLocale = {
lastWeek: "'өнгөрсөн' eeee 'гарагийн' p 'цагт'",
yesterday: "'өчигдөр' p 'цагт'",
today: "'өнөөдөр' p 'цагт'",
tomorrow: "'маргааш' p 'цагт'",
nextWeek: "'ирэх' eeee 'гарагийн' p 'цагт'",
other: "P",
};
export const formatRelative = (token, _date, _baseDate, _options) =>
formatRelativeLocale[token];

View File

@@ -0,0 +1,6 @@
interface Options {
readonly isEnabled: boolean;
readonly accountForScrollbars?: boolean;
}
export default function useScrollLock({ isEnabled, accountForScrollbars, }: Options): (element: HTMLElement | null) => void;
export {};

View File

@@ -0,0 +1 @@
{"version":3,"file":"file-x.js","sources":["../../../src/icons/file-x.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name FileX\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTUgMkg2YTIgMiAwIDAgMC0yIDJ2MTZhMiAyIDAgMCAwIDIgMmgxMmEyIDIgMCAwIDAgMi0yVjdaIiAvPgogIDxwYXRoIGQ9Ik0xNCAydjRhMiAyIDAgMCAwIDIgMmg0IiAvPgogIDxwYXRoIGQ9Im0xNC41IDEyLjUtNSA1IiAvPgogIDxwYXRoIGQ9Im05LjUgMTIuNSA1IDUiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/file-x\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 FileX = createLucideIcon('FileX', [\n ['path', { d: 'M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z', key: '1rqfz7' }],\n ['path', { d: 'M14 2v4a2 2 0 0 0 2 2h4', key: 'tnqrlb' }],\n ['path', { d: 'm14.5 12.5-5 5', key: 'b62r18' }],\n ['path', { d: 'm9.5 12.5 5 5', key: '1rk7el' }],\n]);\n\nexport default FileX;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,iBAAiB,OAAS,CAAA,CAAA,CAAA;AAAA,CAAA,CACtC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAA8D,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,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,CAC3F,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAA2B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,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,CACxD,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAkB,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,CAC/C,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAiB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA;AAChD,CAAC,CAAA,CAAA;;"}

View File

@@ -0,0 +1,101 @@
const formatDistanceLocale = {
lessThanXSeconds: {
one: "mens duna segonda",
other: "mens de {{count}} segondas",
},
xSeconds: {
one: "1 segonda",
other: "{{count}} segondas",
},
halfAMinute: "30 segondas",
lessThanXMinutes: {
one: "mens duna minuta",
other: "mens de {{count}} minutas",
},
xMinutes: {
one: "1 minuta",
other: "{{count}} minutas",
},
aboutXHours: {
one: "environ 1 ora",
other: "environ {{count}} oras",
},
xHours: {
one: "1 ora",
other: "{{count}} oras",
},
xDays: {
one: "1 jorn",
other: "{{count}} jorns",
},
aboutXWeeks: {
one: "environ 1 setmana",
other: "environ {{count}} setmanas",
},
xWeeks: {
one: "1 setmana",
other: "{{count}} setmanas",
},
aboutXMonths: {
one: "environ 1 mes",
other: "environ {{count}} meses",
},
xMonths: {
one: "1 mes",
other: "{{count}} meses",
},
aboutXYears: {
one: "environ 1 an",
other: "environ {{count}} ans",
},
xYears: {
one: "1 an",
other: "{{count}} ans",
},
overXYears: {
one: "mai dun an",
other: "mai de {{count}} ans",
},
almostXYears: {
one: "gaireben un an",
other: "gaireben {{count}} ans",
},
};
export const formatDistance = (token, count, options) => {
let result;
const tokenValue = formatDistanceLocale[token];
if (typeof tokenValue === "string") {
result = tokenValue;
} else if (count === 1) {
result = tokenValue.one;
} else {
result = tokenValue.other.replace("{{count}}", String(count));
}
if (options?.addSuffix) {
if (options.comparison && options.comparison > 0) {
return "daquí " + result;
} else {
return "fa " + result;
}
}
return result;
};

View File

@@ -0,0 +1,30 @@
import { fieldAffectsData, fieldHasSubFields, fieldShouldBeLocalized } from 'payload/shared';
export const hasLocalesTable = ({ fields, parentIsLocalized })=>{
return fields.some((field)=>{
// arrays always get a separate table
if (field.type === 'array') {
return false;
}
if (fieldAffectsData(field) && fieldShouldBeLocalized({
field,
parentIsLocalized
})) {
return true;
}
if (fieldHasSubFields(field)) {
return hasLocalesTable({
fields: field.fields,
parentIsLocalized: parentIsLocalized || 'localized' in field && field.localized
});
}
if (field.type === 'tabs') {
return field.tabs.some((tab)=>hasLocalesTable({
fields: tab.fields,
parentIsLocalized: parentIsLocalized || tab.localized
}));
}
return false;
});
};
//# sourceMappingURL=hasLocalesTable.js.map

View File

@@ -0,0 +1,602 @@
export const hrTranslations = {
authentication: {
account: 'Račun',
accountOfCurrentUser: 'Račun trenutnog korisnika',
accountVerified: 'Račun je uspješno verificiran.',
alreadyActivated: 'Već aktivirano',
alreadyLoggedIn: 'Već prijavljeni',
apiKey: 'API ključ',
authenticated: 'Autenticiran',
backToLogin: 'Natrag na prijavu',
beginCreateFirstUser: 'Za početak, izradite prvog korisnika.',
changePassword: 'Promijeni lozinku',
checkYourEmailForPasswordReset: 'Ako je e-mail adresa povezana s računom, uskoro ćete primiti upute za resetiranje lozinke. Molimo provjerite svoju mapu za neželjenu poštu ili spam ako ne vidite e-mail u svojoj pristigloj pošti.',
confirmGeneration: 'Potvrdi generiranje',
confirmPassword: 'Potvrdi lozinku',
createFirstUser: 'Izradi prvog korisnika',
emailNotValid: 'E-mail nije ispravan',
emailOrUsername: 'E-mail ili korisničko ime',
emailSent: 'E-mail poslan',
emailVerified: 'E-mail uspješno verificiran.',
enableAPIKey: 'Omogući API ključ',
failedToUnlock: 'Otključavanje nije uspjelo.',
forceUnlock: 'Prisilno otključaj',
forgotPassword: 'Zaboravljena lozinka',
forgotPasswordEmailInstructions: 'Molimo unesite svoju e-mail adresu. Primit ćete poruku s uputama za ponovno postavljanje lozinke.',
forgotPasswordQuestion: 'Zaboravljena lozinka?',
forgotPasswordUsernameInstructions: 'Molimo unesite vaše korisničko ime ispod. Upute o tome kako resetirati vašu lozinku bit će poslane na e-adresu povezanu s vašim korisničkim imenom.',
generate: 'Generiraj',
generateNewAPIKey: 'Generiraj novi API ključ',
generatingNewAPIKeyWillInvalidate: 'Generiranje novog API ključa će <1>poništiti</1> prethodni ključ. Jeste li sigurni da želite nastaviti?',
lockUntil: 'Zaključaj dok',
logBackIn: 'Ponovno se prijavite',
loggedIn: 'Za prijavu s drugim korisničkim računom potrebno je prvo <0>odjaviti se</0>',
loggedInChangePassword: 'Da biste promijenili lozinku, otvorite svoj <0>račun</0> i promijenite je tamo.',
loggedOutInactivity: 'Odjavljeni ste zbog neaktivnosti.',
loggedOutSuccessfully: 'Uspješno ste odjavljeni.',
loggingOut: 'Odjava u tijeku...',
login: 'Prijava',
loginAttempts: 'Pokušaji prijave',
loginUser: 'Prijava korisnika',
loginWithAnotherUser: 'Za prijavu s drugim korisničkim računom potrebno je prvo <0>odjaviti se</0>',
logOut: 'Odjava',
logout: 'Odjava',
logoutSuccessful: 'Odjava uspješna.',
logoutUser: 'Odjava korisnika',
newAccountCreated: 'Novi račun je izrađen. Pristupite računu klikom na: <a href="{{serverURL}}">{{serverURL}}</a>. Molimo kliknite na sljedeću poveznicu ili zalijepite URL, koji se nalazi ispod, u preglednik da biste potvrdili svoju e-mail adresu: <a href="{{verificationURL}}">{{verificationURL}}</a><br> Nakon što potvrdite e-mail adresu, moći ćete se prijaviti.',
newAPIKeyGenerated: 'New API ključ generiran.',
newPassword: 'Nova lozinka',
passed: 'Autentifikacija je prošla',
passwordResetSuccessfully: 'Lozinka uspješno resetirana.',
resetPassword: 'Resetiranje lozinke',
resetPasswordExpiration: 'Rok trajanja resetiranja lozinke',
resetPasswordToken: 'Resetiranje tokena lozinke',
resetYourPassword: 'Resetirajte svoju lozinku',
stayLoggedIn: 'Ostanite prijavljeni',
successfullyRegisteredFirstUser: 'Uspješno registriran prvi korisnik.',
successfullyUnlocked: 'Uspješno otključano',
tokenRefreshSuccessful: 'Osvježavanje tokena uspješno.',
unableToVerify: 'Nije moguće potvrditi',
username: 'Korisničko ime',
usernameNotValid: 'Uneseno korisničko ime nije valjano.',
verified: 'Potvrđeno',
verifiedSuccessfully: 'Uspješno potvrđeno',
verify: 'Potvrdi',
verifyUser: 'Potvrdi korisnika',
verifyYourEmail: 'Potvrdi svoju e-mail adresu',
youAreInactive: 'Neaktivni ste već neko vrijeme i uskoro ćete biti automatski odjavljeni zbog vlastite sigurnosti. Želite li ostati prijavljeni?',
youAreReceivingResetPassword: 'Primili ste ovo jer ste Vi (ili netko drugi) zatražili promjenu lozinke za Vaš račun. Molimo kliknite na poveznicu ili zalijepite ovo u svoje preglednik da biste završili proces:',
youDidNotRequestPassword: 'Ako niste zatražili ovo, molimo ignorirajte ovaj e-mail i Vaša će lozinka ostati nepromijenjena.'
},
dashboard: {
addWidget: 'Dodaj widget',
deleteWidget: 'Izbriši widget {{id}}',
searchWidgets: 'Pretraži widgete...'
},
error: {
accountAlreadyActivated: 'Ovaj račun je već aktiviran.',
autosaving: 'Nastao je problem pri automatskom spremanju ovog dokumenta.',
correctInvalidFields: 'Molimo ispravite neispravna polja.',
deletingFile: 'Dogodila se pogreška pri brisanju datoteke.',
deletingTitle: 'Dogodila se pogreška pri brisanju {{title}}. Molimo provjerite svoju internet vezu i pokušajte ponovno.',
documentNotFound: 'Dokument s ID-om {{id}} nije mogao biti pronađen. Možda je izbrisan ili nikad nije postojao, ili možda nemate pristup njemu.',
emailOrPasswordIncorrect: 'E-mail adresa ili lozinka netočni.',
followingFieldsInvalid_one: 'Ovo polje je neispravno:',
followingFieldsInvalid_other: 'Ova polja su neispravna:',
incorrectCollection: 'Neispravna kolekcija',
insufficientClipboardPermissions: 'Pristup međuspremniku odbijen. Provjerite svoja dopuštenja za međuspremnik.',
invalidClipboardData: 'Nevažeći podaci u međuspremniku.',
invalidFileType: 'Neispravan tip datoteke',
invalidFileTypeValue: 'Neispravan tip datoteke: {{value}}',
invalidRequestArgs: 'Nevažeći argumenti u zahtjevu: {{args}}',
loadingDocument: 'Došlo je do problema pri učitavanju dokumenta čiji je ID {{id}}.',
localesNotSaved_one: 'Sljedeću lokalnu postavku nije bilo moguće spremiti:',
localesNotSaved_other: 'Sljedeće lokalne postavke nije bilo moguće spremiti:',
logoutFailed: 'Odjava nije uspjela.',
missingEmail: 'Nedostaje e-mail.',
missingIDOfDocument: 'Nedostaje ID dokumenta da bi se ažurirao.',
missingIDOfVersion: 'Nedostaje ID verzije.',
missingRequiredData: 'Nedostaju obvezni podaci.',
noFilesUploaded: 'Nijedna datoteka nije učitana.',
noMatchedField: 'Nema podudarajućih polja za "{{label}}"',
notAllowedToAccessPage: 'Nemate dopuštenje pristupiti ovoj stranici.',
notAllowedToPerformAction: 'Nemate dopuštenje izvršiti ovu radnju.',
notFound: 'Traženi resurs nije pronađen.',
noUser: 'Nema korisnika',
previewing: 'Došlo je do problema pri pregledavanju ovog dokumenta.',
problemUploadingFile: 'Došlo je do problema pri učitavanju datoteke.',
restoringTitle: 'Došlo je do pogreške prilikom vraćanja {{title}}. Provjerite svoju vezu i pokušajte ponovno.',
revertingDocument: 'Došlo je do problema prilikom vraćanja ovog dokumenta.',
tokenInvalidOrExpired: 'Token je neispravan ili je istekao.',
tokenNotProvided: 'Token nije pružen.',
unableToCopy: 'Nije moguće kopirati.',
unableToDeleteCount: 'Nije moguće izbrisati {{count}} od {{total}} {{label}}.',
unableToReindexCollection: 'Pogreška pri ponovnom indeksiranju kolekcije {{collection}}. Operacija je prekinuta.',
unableToUpdateCount: 'Nije moguće ažurirati {{count}} od {{total}} {{label}}.',
unauthorized: 'Neovlašteno, morate biti prijavljeni da biste uputili ovaj zahtjev.',
unauthorizedAdmin: 'Neovlašteno, ovaj korisnik nema pristup administratorskom panelu.',
unknown: 'Došlo je do nepoznate pogreške.',
unPublishingDocument: 'Došlo je do problema pri poništavanju objave ovog dokumenta.',
unspecific: 'Došlo je do pogreške.',
unverifiedEmail: 'Molimo potvrdite svoju e-mail adresu prije prijave.',
userEmailAlreadyRegistered: 'Korisnik s navedenom e-mail adresom je već registriran.',
userLocked: 'Ovaj korisnik je zaključan zbog previše neuspješnih pokušaja prijave.',
usernameAlreadyRegistered: 'Korisnik s navedenim korisničkim imenom već je registriran.',
usernameOrPasswordIncorrect: 'Korisničko ime ili lozinka koju ste unijeli su netočni.',
valueMustBeUnique: 'Vrijednost mora biti jedinstvena.',
verificationTokenInvalid: 'Verifikacijski token je neispravan.'
},
fields: {
addLabel: 'Dodaj {{label}}',
addLink: 'Dodaj poveznicu',
addNew: 'Dodaj novi',
addNewLabel: 'Dodaj novi {{label}}',
addRelationship: 'Dodaj odnos',
addUpload: 'Dodaj učitavanje',
block: 'Blokiranje',
blocks: 'blokiranja',
blockType: 'Vrsta blokiranja',
chooseBetweenCustomTextOrDocument: 'Izaberite između unošenja prilagođenog teksta URL ili poveznice na drugi dokument.',
chooseDocumentToLink: 'Odaberite dokument koji želite povezati.',
chooseFromExisting: 'Odaberite iz postojećih.',
chooseLabel: 'Odaberite {{label}}',
collapseAll: 'Sažmi sve',
customURL: 'Prilagođeni URL',
editLabelData: 'Uredi {{label}} podatke',
editLink: 'Uredi poveznicu',
editRelationship: 'Uredi odnos',
enterURL: 'Unesi URL',
internalLink: 'Interna poveznika',
itemsAndMore: '{{items}} i {{count}} više',
labelRelationship: '{{label}} veza',
latitude: 'Zemljopisna širina',
linkedTo: 'Povezan s <0>{{label}}</0>',
linkType: 'Tip poveznce',
longitude: 'Zemljopisna dužina',
newLabel: 'Novo {{label}}',
openInNewTab: 'Otvori u novoj kartici.',
passwordsDoNotMatch: 'Lozinke nisu iste.',
relatedDocument: 'Povezani dokument',
relationTo: 'Veza sa',
removeRelationship: 'Ukloni vezu',
removeUpload: 'Ukloni prijenos',
saveChanges: 'Spremi promjene',
searchForBlock: 'Potraži blok',
searchForLanguage: 'Pretraži jezik',
selectExistingLabel: 'Odaberi postojeće {{label}}',
selectFieldsToEdit: 'Odaberite polja za uređivanje',
showAll: 'Pokaži sve',
swapRelationship: 'Zamijeni vezu',
swapUpload: 'Zamijeni prijenos',
textToDisplay: 'Tekst za prikaz',
toggleBlock: 'Prebaci blok',
uploadNewLabel: 'Učitaj novi {{label}}'
},
folder: {
browseByFolder: 'Pregledajte po mapi',
byFolder: 'Po mapi',
deleteFolder: 'Izbriši mapu',
folderName: 'Naziv mape',
folders: 'Mape',
folderTypeDescription: 'Odaberite koja vrsta dokumenata kolekcije treba biti dozvoljena u ovoj mapi.',
itemHasBeenMoved: '{{title}} je premješten u {{folderName}}',
itemHasBeenMovedToRoot: '{{title}} je premješten u korijensku mapu.',
itemsMovedToFolder: '{{title}} premješteno u {{folderName}}',
itemsMovedToRoot: '{{title}} premješten u korijensku mapu',
moveFolder: 'Premjesti mapu',
moveItemsToFolderConfirmation: 'Upravo se spremate premjestiti <1>{{count}} {{label}}</1> u <2>{{toFolder}}</2>. Jeste li sigurni?',
moveItemsToRootConfirmation: 'Na korak ste da premjestite <1>{{count}} {{label}}</1> u korijensku mapu. Jeste li sigurni?',
moveItemToFolderConfirmation: 'Upravo ćete premjestiti <1>{{title}}</1> u <2>{{toFolder}}</2>. Jeste li sigurni?',
moveItemToRootConfirmation: 'Upravo ćete premjestiti <1>{{title}}</1> u osnovnu mapu. Jeste li sigurni?',
movingFromFolder: 'Premještanje {{title}} iz {{fromFolder}}',
newFolder: 'Nova mapa',
noFolder: 'Nema mape',
renameFolder: 'Preimenuj mapu',
searchByNameInFolder: 'Pretraživanje po imenu u {{folderName}}',
selectFolderForItem: 'Odaberite mapu za {{title}}'
},
general: {
name: 'Ime',
aboutToDelete: 'Izbrisat ćete {{label}} <1>{{title}}</1>. Jeste li sigurni?',
aboutToDeleteCount_many: 'Upravo ćete izbrisati {{count}} {{label}}',
aboutToDeleteCount_one: 'Upravo ćete izbrisati {{count}} {{label}}',
aboutToDeleteCount_other: 'Upravo ćete izbrisati {{count}} {{label}}',
aboutToPermanentlyDelete: 'Na rubu ste trajnog brisanja {{label}} <1>{{title}}</1>. Jeste li sigurni?',
aboutToPermanentlyDeleteTrash: 'Na rubu ste trajnog brisanja <0>{{count}}</0> <1>{{label}}</1> iz smeća. Jeste li sigurni?',
aboutToRestore: 'Na rubu ste obnoviti {{label}} <1>{{title}}</1>. Jeste li sigurni?',
aboutToRestoreAsDraft: 'Uskoro ćete vratiti {{label}} <1>{{title}}</1> kao skicu. Jeste li sigurni?',
aboutToRestoreAsDraftCount: 'Uskoro ćete obnoviti {{count}} {{label}} kao nacrt',
aboutToRestoreCount: 'Uskoro ćete obnoviti {{count}} {{label}}',
aboutToTrash: 'Na rubu ste premještanja {{label}} <1>{{title}}</1> u otpad. Jeste li sigurni?',
aboutToTrashCount: 'Na korak ste od premještanja {{count}} {{label}} u smeće',
addBelow: 'Dodaj ispod',
addFilter: 'Dodaj filter',
adminTheme: 'Administratorska tema',
all: 'Svi',
allCollections: 'Sve kolekcije',
allLocales: 'Sve lokalne postavke',
and: 'i',
anotherUser: 'Drugi korisnik',
anotherUserTakenOver: 'Drugi korisnik je preuzeo uređivanje ovog dokumenta.',
applyChanges: 'Primijeni promjene',
ascending: 'Uzlazno',
automatic: 'Automatsko',
backToDashboard: 'Natrag na nadzornu ploču',
cancel: 'Otkaži',
changesNotSaved: 'Vaše promjene nisu spremljene. Ako izađete sada, izgubit ćete promjene.',
clear: 'Jasan',
clearAll: 'Očisti sve',
close: 'Zatvori',
collapse: 'Sažmi',
collections: 'Kolekcije',
columns: 'Stupci',
columnToSort: 'Stupac za sortiranje',
confirm: 'Potvrdi',
confirmCopy: 'Potvrdi kopiju',
confirmDeletion: 'Potvrdi brisanje',
confirmDuplication: 'Potvrdi duplikaciju',
confirmMove: 'Potvrdi premještanje',
confirmReindex: 'Ponovno indeksirati sve {{collections}}?',
confirmReindexAll: 'Ponovno indeksirati sve kolekcije?',
confirmReindexDescription: 'Ovo će ukloniti postojeće indekse i ponovno indeksirati dokumente u {{collections}} kolekcijama.',
confirmReindexDescriptionAll: 'Ovo će ukloniti postojeće indekse i ponovno indeksirati dokumente u svim kolekcijama.',
confirmRestoration: 'Potvrdite obnovu',
copied: 'Kopirano',
copy: 'Kopiraj',
copyField: 'Kopiraj polje',
copying: 'Kopiranje',
copyRow: 'Kopiraj redak',
copyWarning: 'Na rubu ste prepisivanja {{to}} s {{from}} za {{label}} {{title}}. Jeste li sigurni?',
create: 'Izradi',
created: 'Kreirano',
createdAt: 'Izrađeno u',
createNew: 'Izradi novo',
createNewLabel: 'Izradi novo {{label}}',
creating: 'U izradi',
creatingNewLabel: 'Izrađivanje novog {{label}}',
currentlyEditing: 'trenutno uređuje ovaj dokument. Ako preuzmete, bit će im onemogućeno daljnje uređivanje i mogu izgubiti nespremljene promjene.',
custom: 'Prilagođen',
dark: 'Tamno',
dashboard: 'Nadzorna ploča',
delete: 'Izbriši',
deleted: 'Izbrisano',
deletedAt: 'Izbrisano U',
deletedCountSuccessfully: 'Uspješno izbrisano {{count}} {{label}}.',
deletedSuccessfully: 'Uspješno izbrisano.',
deleteLabel: 'Izbriši {{label}}',
deletePermanently: 'Preskoči koš i trajno izbriši',
deleting: 'Brisanje...',
depth: 'Dubina',
descending: 'Silazno',
deselectAllRows: 'Odznači sve redove',
document: 'Dokument',
documentIsTrashed: 'Ova {{label}} je u smeću i dostupna je samo za čitanje.',
documentLocked: 'Dokument je zaključan',
documents: 'Dokumenti',
duplicate: 'Duplikat',
duplicateWithoutSaving: 'Dupliciraj bez spremanja promjena',
edit: 'Uredi',
editAll: 'Uredi sve',
editedSince: 'Uređeno od',
editing: 'Uređivanje',
editingLabel_many: 'Uređivanje {{count}} {{label}}',
editingLabel_one: 'Uređivanje {{count}} {{label}}',
editingLabel_other: 'Uređivanje {{count}} {{label}}',
editingTakenOver: 'Uređivanje preuzeto',
editLabel: 'Uredi {{label}}',
email: 'Email',
emailAddress: 'Email adresa',
emptyTrash: 'Isprazni smeće',
emptyTrashLabel: 'Isprazni {{label}} kantu za smeće',
enterAValue: 'Unesi vrijednost',
error: 'Greška',
errors: 'Greške',
exitLivePreview: 'Izađi iz Pregleda uživo',
export: 'Izvoz',
fallbackToDefaultLocale: 'Vraćanje na zadani jezik',
false: 'Netočno',
filter: 'Filter',
filters: 'Filteri',
filterWhere: 'Filter {{label}} gdje',
globals: 'Globali',
goBack: 'Vrati se',
groupByLabel: 'Grupiraj po {{label}}',
import: 'Uvoz',
isEditing: 'uređuje',
item: 'Stavka',
items: 'stavke',
language: 'Jezik',
lastModified: 'Zadnja promjena',
layout: 'Izgled',
leaveAnyway: 'Svejedno napusti',
leaveWithoutSaving: 'Napusti bez spremanja',
light: 'Svijetlo',
livePreview: 'Pregled',
loading: 'Učitavanje',
locale: 'Jezik',
locales: 'Prijevodi',
lock: 'Brava',
menu: 'Izbornik',
moreOptions: 'Više opcija',
move: 'Pomakni',
moveConfirm: 'Upravo ćete premjestiti {{count}} {{label}} u <1>{{destination}}</1>. Jeste li sigurni?',
moveCount: 'Pomakni {{count}} {{label}}',
moveDown: 'Pomakni dolje',
moveUp: 'Pomakni gore',
moving: 'Pomicanje',
movingCount: 'Pomicanje {{count}} {{label}}',
newLabel: 'Novi {{label}}',
newPassword: 'Nova lozinka',
next: 'Sljedeće',
no: 'Ne',
noDateSelected: 'Nije odabran datum',
noFiltersSet: 'Nema postavljenih filtera',
noLabel: '<Nema {{label}}>',
none: 'Nijedan',
noOptions: 'Nema opcija',
noResults: 'Nije pronađen nijedan {{label}}. Ili {{label}} još uvijek ne postoji ili nijedan od odgovara postavljenim filterima.',
noResultsDescription: 'Ili ne postoje ili se nijedan ne podudara s filterima koje ste gore odredili.',
noResultsFound: 'Nema rezultata.',
notFound: 'Nije pronađeno',
nothingFound: 'Ništa nije pronađeno',
noTrashResults: 'Nema {{label}} u smeću.',
noUpcomingEventsScheduled: 'Nema zakazanih nadolazećih događanja.',
noValue: 'Bez vrijednosti',
of: 'od',
only: 'Samo',
open: 'Otvori',
or: 'ili',
order: 'Poredak',
overwriteExistingData: 'Prepišite postojeće podatke u polju',
pageNotFound: 'Stranica nije pronađena',
password: 'Lozinka',
pasteField: 'Zalijepi polje',
pasteRow: 'Zalijepi redak',
payloadSettings: 'Payload postavke',
permanentlyDelete: 'Trajno izbriši',
permanentlyDeletedCountSuccessfully: 'Trajno izbrisano {{count}} {{label}} uspješno.',
perPage: 'Po stranici: {{limit}}',
previous: 'Prethodni',
reindex: 'Ponovno indeksiraj',
reindexingAll: 'Ponovno indeksiranje svih {{collections}}.',
remove: 'Ukloni',
rename: 'Preimenuj',
reset: 'Ponovno postavi',
resetPreferences: 'Ponovno postavljanje postavki',
resetPreferencesDescription: 'Ovo će vratiti sve vaše postavke na zadane vrijednosti.',
resettingPreferences: 'Ponovno postavljanje postavki.',
restore: 'Obnovi',
restoreAsPublished: 'Vrati kao objavljenu verziju',
restoredCountSuccessfully: 'Uspješno obnovljeno {{count}} {{label}}.',
restoring: 'Poštujte značenje izvornog teksta unutar konteksta Payloada. Evo popisa uobičajenih pojmova Payloada koji imaju vrlo specifična značenja:\n - Kolekcija: Kolekcija je skup dokumenata koji dijele zajedničku strukturu i svrhu. Kolekcije se koriste za organiziranje i upravljanje sadržajem u Payloadu.\n - Polje: Polje je specifičan dio podataka unutar dokumenta u kolekciji. Polja definiraju strukturu i vrstu podataka koji',
row: 'Red',
rows: 'Redovi',
save: 'Spremi',
saveChanges: 'Spremi promjene',
saving: 'Spremanje...',
schedulePublishFor: 'Zakazano objavljivanje za {{title}}',
searchBy: 'Traži po {{label}}',
select: 'Odaberite',
selectAll: 'Odaberite sve {{count}} {{label}}',
selectAllRows: 'Odaberite sve redove',
selectedCount: '{{count}} {{label}} odabrano',
selectLabel: 'Odaberite {{label}}',
selectValue: 'Odaberi vrijednost',
showAllLabel: 'Prikaži sve {{label}}',
sorryNotFound: 'Nažalost, ne postoji ništa što odgovara vašem zahtjevu.',
sort: 'Sortiraj',
sortByLabelDirection: 'Sortiraj prema {{label}} {{direction}}',
stayOnThisPage: 'Ostani na ovoj stranici',
submissionSuccessful: 'Uspješno slanje',
submit: 'Podnesi',
submitting: 'Podnošenje...',
success: 'Uspjeh',
successfullyCreated: '{{label}} uspješno izrađeno.',
successfullyDuplicated: '{{label}} uspješno duplicirano.',
successfullyReindexed: 'Uspješno je reindeksirano {{count}} od {{total}} dokumenata iz {{collections}}, a {{skips}} nacrta je preskočeno.',
takeOver: 'Preuzmi',
thisLanguage: 'Hrvatski',
time: 'Vrijeme',
timezone: 'Vremenska zona',
titleDeleted: '{{label}} "{{title}}" uspješno izbrisano.',
titleRestored: '{{label}} "{{title}}" uspješno je obnovljeno.',
titleTrashed: '{{label}} "{{title}}" premješteno u smeće.',
trash: 'Otpad',
trashedCountSuccessfully: '{{count}} {{label}} premješteno u smeće.',
true: 'Istinito',
unauthorized: 'Neovlašteno',
unlock: 'Otključaj',
unsavedChanges: 'Imate nespremljene promjene. Spremite ili odbacite prije nastavka.',
unsavedChangesDuplicate: 'Imate nespremljene promjene. Želite li nastaviti s dupliciranjem?',
untitled: 'Bez naslova',
upcomingEvents: 'Nadolazeći događaji',
updatedAt: 'Ažurirano u',
updatedCountSuccessfully: 'Uspješno ažurirano {{count}} {{label}}.',
updatedLabelSuccessfully: 'Uspješno ažurirano {{label}}.',
updatedSuccessfully: 'Uspješno ažurirano.',
updateForEveryone: 'Ažuriranje za sve',
updating: 'Ažuriranje',
uploading: 'Prijenos',
uploadingBulk: 'Prenosim {{current}} od {{total}}',
user: 'Korisnik',
username: 'Korisničko ime',
users: 'Korisnici',
value: 'Vrijednost',
viewing: 'Pregledavanje',
viewReadOnly: 'Pogledaj samo za čitanje',
welcome: 'Dobrodošli',
yes: 'Da'
},
localization: {
cannotCopySameLocale: 'Ne može se kopirati na istu lokaciju',
copyFrom: 'Kopiraj iz',
copyFromTo: 'Kopiranje iz {{from}} u {{to}}',
copyTo: 'Kopiraj na',
copyToLocale: 'Kopiraj na lokaciju',
localeToPublish: 'Lokacija za objavu',
selectedLocales: 'Odabrane lokalizacije',
selectLocaleToCopy: 'Odaberite mjesto za kopiranje',
selectLocaleToDuplicate: 'Odaberite lokacije za duplikaciju'
},
operators: {
contains: 'sadrži',
equals: 'jednako',
exists: 'postoji',
intersects: 'presijeca',
isGreaterThan: 'je veće od',
isGreaterThanOrEqualTo: 'je veće od ili jednako',
isIn: 'je u',
isLessThan: 'manje je od',
isLessThanOrEqualTo: 'manje je ili jednako',
isLike: 'je kao',
isNotEqualTo: 'nije jednako',
isNotIn: 'nije unutra',
isNotLike: 'nije kao',
near: 'blizu',
within: 'unutar'
},
upload: {
addFile: 'Dodaj datoteku',
addFiles: 'Dodaj datoteke',
bulkUpload: 'Masovno dodavanje',
crop: 'Izreži',
cropToolDescription: 'Povucite kutove odabranog područja, nacrtajte novo područje ili prilagodite vrijednosti ispod.',
download: 'Preuzmi',
dragAndDrop: 'Povucite i ispustite datoteku',
dragAndDropHere: 'ili povucite i ispustite datoteku ovdje',
editImage: 'Uredi sliku',
fileName: 'Ime datoteke',
fileSize: 'Veličina datoteke',
filesToUpload: 'Datoteke za učitavanje',
fileToUpload: 'Datoteka za prijenos',
focalPoint: 'Središnja točka',
focalPointDescription: 'Povucite središnju točku izravno na pregledu ili prilagodite vrijednosti ispod.',
height: 'Visina',
lessInfo: 'Manje informacija',
moreInfo: 'Više informacija',
noFile: 'Nema datoteke',
pasteURL: 'Zalijepi URL',
previewSizes: 'Veličine pregleda',
selectCollectionToBrowse: 'Odaberite kolekciju za pregled',
selectFile: 'Odaberite datoteku',
setCropArea: 'Postavi područje usjeva',
setFocalPoint: 'Postavi fokusnu točku',
sizes: 'Veličine',
sizesFor: 'Veličine za {{label}}',
width: 'Širina'
},
validation: {
emailAddress: 'Molimo unesite valjanu e-mail adresu.',
enterNumber: 'Molimo unesite valjani broj.',
fieldHasNo: 'Ovo polje nema {{label}}',
greaterThanMax: '{{value}} exceeds the maximum allowable {{label}} limit of {{max}}.',
invalidBlock: 'Blok "{{block}}" nije dopušten.',
invalidBlocks: 'Ovo polje sadrži blokove koji više nisu dozvoljeni: {{blocks}}.',
invalidInput: 'Ovo polje ima neispravan unos.',
invalidSelection: 'Ovo polje ima neispravan odabir.',
invalidSelections: 'Ovo polje ima sljedeće neispravne odabire:',
latitudeOutOfBounds: 'Geografska širina mora biti između -90 i 90.',
lessThanMin: '{{value}} is below the minimum allowable {{label}} limit of {{min}}.',
limitReached: 'Dosegnut je limit, može se dodati samo {{max}} stavki.',
longerThanMin: 'Ova vrijednost mora biti duža od minimalne dužine od {{minLength}} znakova',
longitudeOutOfBounds: 'Geografska dužina mora biti između -180 i 180.',
notValidDate: '"{{value}}" nije valjan datum.',
required: 'Ovo polje je obvezno.',
requiresAtLeast: 'Ovo polje zahtjeva minimalno {{count}} {{label}}.',
requiresNoMoreThan: 'Ovo polje zahtjeva ne više od {{count}} {{label}}.',
requiresTwoNumbers: 'Ovo polje zahtjeva dva broja.',
shorterThanMax: 'Ova vrijednost mora biti kraća od maksimalne dužine od {{maxLength}} znakova',
timezoneRequired: 'Potrebna je vremenska zona.',
trueOrFalse: 'Ovo polje može biti samo točno ili netočno',
username: 'Unesite važeće korisničko ime. Može sadržavati slova, brojeve, crtice, točke i donje crte.',
validUploadID: 'Ovo polje nije valjani ID prijenosa.'
},
version: {
type: 'Tip',
aboutToPublishSelection: 'Upravo ćete objaviti sve {{label}} u izboru. Jeste li sigurni?',
aboutToRestore: 'Vratit ćete {{label}} dokument u stanje u kojem je bio {{versionDate}}',
aboutToRestoreGlobal: 'Vratit ćete globalni {{label}} u stanje u kojem je bio {{versionDate}}.',
aboutToRevertToPublished: 'Vratit ćete promjene u dokumentu u objavljeno stanje. Jeste li sigurni? ',
aboutToUnpublish: 'Poništit ćete objavu ovog dokumenta. Jeste li sigurni?',
aboutToUnpublishIn: 'Na rubu ste povlačenja objave ovog dokumenta na {{locale}}. Jeste li sigurni?',
aboutToUnpublishSelection: 'Upravo ćete poništiti objavu svih {{label}} u odabiru. Jeste li sigurni?',
autosave: 'Automatsko spremanje',
autosavedSuccessfully: 'Automatsko spremanje uspješno.',
autosavedVersion: 'Verzija automatski spremljenog dokumenta',
changed: 'Promijenjeno',
changedFieldsCount_one: '{{count}} promijenjeno polje',
changedFieldsCount_other: '{{count}} promijenjena polja',
compareVersion: 'Usporedi verziju sa:',
compareVersions: 'Usporedi verzije',
comparingAgainst: 'U usporedbi s',
confirmPublish: 'Potvrdi objavu',
confirmRevertToSaved: 'Potvrdite vraćanje na spremljeno',
confirmUnpublish: 'Potvrdite poništavanje objave',
confirmVersionRestoration: 'Potvrdite vraćanje verzije',
currentDocumentStatus: 'Trenutni {{docStatus}} dokumenta',
currentDraft: 'Trenutni Nacrt',
currentlyPublished: 'Trenutno objavljeno',
currentlyViewing: 'Trenutno pregledavate',
currentPublishedVersion: 'Trenutno Objavljena Verzija',
draft: 'Nacrt',
draftHasPublishedVersion: 'Nacrt (ima objavljenu verziju)',
draftSavedSuccessfully: 'Nacrt uspješno spremljen.',
lastSavedAgo: 'Zadnji put spremljeno prije {{distance}',
modifiedOnly: 'Samo modificirano',
moreVersions: 'Više verzija...',
noFurtherVersionsFound: 'Nisu pronađene daljnje verzije',
noLabelGroup: 'Poštujte značenje izvornog teksta unutar konteksta Payloada. Evo popisa uobičajenih Payload izraza koji nose vrlo specifična značenja:\n - Zbirka: Zbirka je skupina dokumenata koji dijele zajedničku strukturu i svrhu. Zbirke se koriste za organiziranje i upravljanje sadržajem u Payloadu.\n - Polje: Polje je specifičan dio podataka unutar dokumenta u zbirci. Polja definiraju strukturu i vrstu podataka koji se mogu p',
noRowsFound: '{{label}} nije pronađeno',
noRowsSelected: 'Nije odabrana {{oznaka}}',
preview: 'Pregled',
previouslyDraft: 'Prethodno Nacrt',
previouslyPublished: 'Prethodno objavljeno',
previousVersion: 'Prethodna verzija',
problemRestoringVersion: 'Nastao je problem pri vraćanju ove verzije',
publish: 'Objaviti',
publishAllLocales: 'Objavi sve lokalne postavke',
publishChanges: 'Objavi promjene',
published: 'Objavljeno',
publishIn: 'Objavi na {{locale}}',
publishing: 'Objavljivanje',
restoreAsDraft: 'Vrati kao skicu',
restoredSuccessfully: 'Uspješno vraćeno.',
restoreThisVersion: 'Vrati ovu verziju',
restoring: 'Vraćanje...',
reverting: 'Vraćanje...',
revertToPublished: 'Vrati na objavljeno',
revertUnsuccessful: 'Povratak neuspješan. Nije pronađena prethodno objavljena verzija.',
saveDraft: 'Sačuvaj nacrt',
scheduledSuccessfully: 'Uspješno zakazano.',
schedulePublish: 'Raspored objavljivanja',
selectLocales: 'Odaberite jezike',
selectVersionToCompare: 'Odaberite verziju za usporedbu',
showingVersionsFor: 'Pokazujem verzije za:',
showLocales: 'Prikaži jezike:',
specificVersion: 'Specifična verzija',
status: 'Status',
unpublish: 'Poništi objavu',
unpublished: 'Neobjavljeno',
unpublishedSuccessfully: 'Uspješno nepobjavljeno.',
unpublishIn: 'Povuci objavljivanje na {{locale}}',
unpublishing: 'Poništavanje objave...',
version: 'Verzija',
versionAgo: 'prije {{distance}}',
versionCount_many: '{{count}} pronađenih verzija',
versionCount_none: 'Nema pronađenih verzija',
versionCount_one: '{{count}} pronađena verzija',
versionCount_other: '{{count}} pronađenih verzija',
versionID: 'ID verzije',
versions: 'Verzije',
viewingVersion: 'Pregled verzije za {{entityLabel}} {{documentTitle}}',
viewingVersionGlobal: 'Pregled verzije za globalni {{entityLabel}}',
viewingVersions: 'Pregled verzija za {{entityLabel}} {{documentTitle}}',
viewingVersionsGlobal: 'Pregled verzije za globalni {{entityLabel}}'
}
};
export const hr = {
dateFNSKey: 'hr',
translations: hrTranslations
};
//# sourceMappingURL=hr.js.map

View File

@@ -0,0 +1,40 @@
"use strict";
exports.isDate = isDate; /**
* @name isDate
* @category Common Helpers
* @summary Is the given value a date?
*
* @description
* Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.
*
* @param value - The value to check
*
* @returns True if the given value is a date
*
* @example
* // For a valid date:
* const result = isDate(new Date())
* //=> true
*
* @example
* // For an invalid date:
* const result = isDate(new Date(NaN))
* //=> true
*
* @example
* // For some value:
* const result = isDate('2014-02-31')
* //=> false
*
* @example
* // For an object:
* const result = isDate({})
* //=> false
*/
function isDate(value) {
return (
value instanceof Date ||
(typeof value === "object" &&
Object.prototype.toString.call(value) === "[object Date]")
);
}

View File

@@ -0,0 +1,80 @@
/**
* Deprecated, use `server.address`, `server.port` attributes instead.
*
* @example "Server=(localdb)\\v11.0;Integrated Security=true;"
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*
* @deprecated Replaced by `server.address` and `server.port`.
*/
export declare const ATTR_DB_CONNECTION_STRING: "db.connection_string";
/**
* Deprecated, use `db.namespace` instead.
*
* @example customers
* @example main
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*
* @deprecated Replaced by `db.namespace`.
*/
export declare const ATTR_DB_NAME: "db.name";
/**
* The database statement being executed.
*
* @example SELECT * FROM wuser_table
* @example SET mykey "WuValue"
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*
* @deprecated Replaced by `db.query.text`.
*/
export declare const ATTR_DB_STATEMENT: "db.statement";
/**
* Deprecated, use `db.system.name` instead.
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*
* @deprecated Replaced by `db.system.name`.
*/
export declare const ATTR_DB_SYSTEM: "db.system";
/**
* Deprecated, no replacement at this time.
*
* @example readonly_user
* @example reporting_user
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*
* @deprecated Removed, no replacement at this time.
*/
export declare const ATTR_DB_USER: "db.user";
/**
* 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";
/**
* Enum value "mysql" for attribute {@link ATTR_DB_SYSTEM}.
*
* MySQL
*
* @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*/
export declare const DB_SYSTEM_VALUE_MYSQL: "mysql";
//# sourceMappingURL=semconv.d.ts.map

View File

@@ -0,0 +1,214 @@
import {
AnyClassGroupIds,
AnyConfig,
AnyThemeGroupIds,
ClassGroup,
ClassValidator,
Config,
ThemeGetter,
ThemeObject,
} from './types'
export interface ClassPartObject {
nextPart: Map<string, ClassPartObject>
validators: ClassValidatorObject[]
classGroupId?: AnyClassGroupIds
}
interface ClassValidatorObject {
classGroupId: AnyClassGroupIds
validator: ClassValidator
}
const CLASS_PART_SEPARATOR = '-'
export const createClassGroupUtils = (config: AnyConfig) => {
const classMap = createClassMap(config)
const { conflictingClassGroups, conflictingClassGroupModifiers } = config
const getClassGroupId = (className: string) => {
const classParts = className.split(CLASS_PART_SEPARATOR)
// Classes like `-inset-1` produce an empty string as first classPart. We assume that classes for negative values are used correctly and remove it from classParts.
if (classParts[0] === '' && classParts.length !== 1) {
classParts.shift()
}
return getGroupRecursive(classParts, classMap) || getGroupIdForArbitraryProperty(className)
}
const getConflictingClassGroupIds = (
classGroupId: AnyClassGroupIds,
hasPostfixModifier: boolean,
) => {
const conflicts = conflictingClassGroups[classGroupId] || []
if (hasPostfixModifier && conflictingClassGroupModifiers[classGroupId]) {
return [...conflicts, ...conflictingClassGroupModifiers[classGroupId]!]
}
return conflicts
}
return {
getClassGroupId,
getConflictingClassGroupIds,
}
}
const getGroupRecursive = (
classParts: string[],
classPartObject: ClassPartObject,
): AnyClassGroupIds | undefined => {
if (classParts.length === 0) {
return classPartObject.classGroupId
}
const currentClassPart = classParts[0]!
const nextClassPartObject = classPartObject.nextPart.get(currentClassPart)
const classGroupFromNextClassPart = nextClassPartObject
? getGroupRecursive(classParts.slice(1), nextClassPartObject)
: undefined
if (classGroupFromNextClassPart) {
return classGroupFromNextClassPart
}
if (classPartObject.validators.length === 0) {
return undefined
}
const classRest = classParts.join(CLASS_PART_SEPARATOR)
return classPartObject.validators.find(({ validator }) => validator(classRest))?.classGroupId
}
const arbitraryPropertyRegex = /^\[(.+)\]$/
const getGroupIdForArbitraryProperty = (className: string) => {
if (arbitraryPropertyRegex.test(className)) {
const arbitraryPropertyClassName = arbitraryPropertyRegex.exec(className)![1]
const property = arbitraryPropertyClassName?.substring(
0,
arbitraryPropertyClassName.indexOf(':'),
)
if (property) {
// I use two dots here because one dot is used as prefix for class groups in plugins
return 'arbitrary..' + property
}
}
}
/**
* Exported for testing only
*/
export const createClassMap = (config: Config<AnyClassGroupIds, AnyThemeGroupIds>) => {
const { theme, prefix } = config
const classMap: ClassPartObject = {
nextPart: new Map<string, ClassPartObject>(),
validators: [],
}
const prefixedClassGroupEntries = getPrefixedClassGroupEntries(
Object.entries(config.classGroups),
prefix,
)
prefixedClassGroupEntries.forEach(([classGroupId, classGroup]) => {
processClassesRecursively(classGroup, classMap, classGroupId, theme)
})
return classMap
}
const processClassesRecursively = (
classGroup: ClassGroup<AnyThemeGroupIds>,
classPartObject: ClassPartObject,
classGroupId: AnyClassGroupIds,
theme: ThemeObject<AnyThemeGroupIds>,
) => {
classGroup.forEach((classDefinition) => {
if (typeof classDefinition === 'string') {
const classPartObjectToEdit =
classDefinition === '' ? classPartObject : getPart(classPartObject, classDefinition)
classPartObjectToEdit.classGroupId = classGroupId
return
}
if (typeof classDefinition === 'function') {
if (isThemeGetter(classDefinition)) {
processClassesRecursively(
classDefinition(theme),
classPartObject,
classGroupId,
theme,
)
return
}
classPartObject.validators.push({
validator: classDefinition,
classGroupId,
})
return
}
Object.entries(classDefinition).forEach(([key, classGroup]) => {
processClassesRecursively(
classGroup,
getPart(classPartObject, key),
classGroupId,
theme,
)
})
})
}
const getPart = (classPartObject: ClassPartObject, path: string) => {
let currentClassPartObject = classPartObject
path.split(CLASS_PART_SEPARATOR).forEach((pathPart) => {
if (!currentClassPartObject.nextPart.has(pathPart)) {
currentClassPartObject.nextPart.set(pathPart, {
nextPart: new Map(),
validators: [],
})
}
currentClassPartObject = currentClassPartObject.nextPart.get(pathPart)!
})
return currentClassPartObject
}
const isThemeGetter = (func: ClassValidator | ThemeGetter): func is ThemeGetter =>
(func as ThemeGetter).isThemeGetter
const getPrefixedClassGroupEntries = (
classGroupEntries: Array<[classGroupId: string, classGroup: ClassGroup<AnyThemeGroupIds>]>,
prefix: string | undefined,
): Array<[classGroupId: string, classGroup: ClassGroup<AnyThemeGroupIds>]> => {
if (!prefix) {
return classGroupEntries
}
return classGroupEntries.map(([classGroupId, classGroup]) => {
const prefixedClassGroup = classGroup.map((classDefinition) => {
if (typeof classDefinition === 'string') {
return prefix + classDefinition
}
if (typeof classDefinition === 'object') {
return Object.fromEntries(
Object.entries(classDefinition).map(([key, value]) => [prefix + key, value]),
)
}
return classDefinition
})
return [classGroupId, prefixedClassGroup]
})
}

View File

@@ -0,0 +1,73 @@
import type TimeZone from './TimeZone.js';
/**
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat
*/
type DateTimeFormatOptions = Intl.DateTimeFormatOptions & {
/**
* Examples:
* - numeric: "2021"
* - 2-digit: "21"
*/
year?: 'numeric' | '2-digit';
/** Examples:
* - numeric: "3"
* - 2-digit: "03"
* - long: "March"
* - short: "Mar"
* - narrow: "M"
*/
month?: 'numeric' | '2-digit' | 'long' | 'short' | 'narrow';
/** Examples:
* - numeric: "2"
* - 2-digit: "02"
*/
day?: 'numeric' | '2-digit';
/** Examples:
* - numeric: "2"
* - 2-digit: "02"
*/
hour?: 'numeric' | '2-digit';
/** Examples:
* - numeric: "2"
* - 2-digit: "02"
*/
minute?: 'numeric' | '2-digit';
/** Examples:
* - numeric: "2"
* - 2-digit: "02"
*/
second?: 'numeric' | '2-digit';
/** Examples:
* - long: "Thursday"
* - short: "Thu"
* - narrow: "T"
*/
weekday?: 'long' | 'short' | 'narrow';
/** Examples:
* - long: "Anno Domini"
* - short: "AD", narrow "A"
*/
era?: 'long' | 'short' | 'narrow';
/** If this is set to `true`, a 12-hour am/pm format is used. Otherwise a 24-hour time.
*
*/
hour12?: boolean;
/** Examples:
* - long: "Pacific Daylight Time"
* - short: "PDT"
*/
timeZoneName?: 'long' | 'short';
/**
* One of the [database names from the TZ database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List).
*/
timeZone?: TimeZone;
localeMatcher?: 'best fit' | 'lookup';
formatMatcher?: 'best fit' | 'basic';
dateStyle?: 'full' | 'long' | 'medium' | 'short';
timeStyle?: 'full' | 'long' | 'medium' | 'short';
calendar?: 'buddhist' | 'chinese' | 'coptic' | 'ethiopia' | 'ethiopic' | 'gregory' | 'hebrew' | 'indian' | 'islamic' | 'iso8601' | 'japanese' | 'persian' | 'roc';
dayPeriod?: 'narrow' | 'short' | 'long';
numberingSystem?: 'arab' | 'arabext' | 'bali' | 'beng' | 'deva' | 'fullwide' | 'gujr' | 'guru' | 'hanidec' | 'khmr' | 'knda' | 'laoo' | 'latn' | 'limb' | 'mlym' | 'mong' | 'mymr' | 'orya' | 'tamldec' | 'telu' | 'thai' | 'tibt';
hourCycle?: 'h11' | 'h12' | 'h23' | 'h24';
};
export default DateTimeFormatOptions;

View File

@@ -0,0 +1,24 @@
/**
* @license lucide-react v0.441.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const Earth = createLucideIcon("Earth", [
["path", { d: "M21.54 15H17a2 2 0 0 0-2 2v4.54", key: "1djwo0" }],
[
"path",
{
d: "M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",
key: "1tzkfa"
}
],
["path", { d: "M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05", key: "14pb5j" }],
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]
]);
export { Earth as default };
//# sourceMappingURL=earth.js.map

View File

@@ -0,0 +1,34 @@
module.exports = {
indexOf: function (arr, item) {
var i, j;
if (Array.prototype.indexOf) {
return arr.indexOf(item);
}
for (i = 0, j = arr.length; i < j; i++) {
if (arr[i] === item) {
return i;
}
}
return -1;
},
forEach: function (arr, fn, scope) {
var i, j;
if (Array.prototype.forEach) {
return arr.forEach(fn, scope);
}
for (i = 0, j = arr.length; i < j; i++) {
fn.call(scope, arr[i], i, arr);
}
},
trim: function (str) {
if (String.prototype.trim) {
return str.trim();
}
return str.replace(/(^\s*)|(\s*$)/g, "");
},
spaceIndex: function (str) {
var reg = /\s|\n|\t/;
var match = reg.exec(str);
return match ? match.index : -1;
},
};

View File

@@ -0,0 +1,23 @@
/**
* @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 DiamondPlus = createLucideIcon("DiamondPlus", [
["path", { d: "M12 8v8", key: "napkw2" }],
[
"path",
{
d: "M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41L13.7 2.71a2.41 2.41 0 0 0-3.41 0z",
key: "1ey20j"
}
],
["path", { d: "M8 12h8", key: "1wcyev" }]
]);
export { DiamondPlus as default };
//# sourceMappingURL=diamond-plus.js.map

View File

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

View File

@@ -0,0 +1,119 @@
"use strict";
exports.formatDistance = void 0;
const formatDistanceLocale = {
lessThanXSeconds: {
one: "1びょうみまん",
other: "{{count}}びょうみまん",
oneWithSuffix: "やく1びょう",
otherWithSuffix: "やく{{count}}びょう",
},
xSeconds: {
one: "1びょう",
other: "{{count}}びょう",
},
halfAMinute: "30びょう",
lessThanXMinutes: {
one: "1ぷんみまん",
other: "{{count}}ふんみまん",
oneWithSuffix: "やく1ぷん",
otherWithSuffix: "やく{{count}}ふん",
},
xMinutes: {
one: "1ぷん",
other: "{{count}}ふん",
},
aboutXHours: {
one: "やく1じかん",
other: "やく{{count}}じかん",
},
xHours: {
one: "1じかん",
other: "{{count}}じかん",
},
xDays: {
one: "1にち",
other: "{{count}}にち",
},
aboutXWeeks: {
one: "やく1しゅうかん",
other: "やく{{count}}しゅうかん",
},
xWeeks: {
one: "1しゅうかん",
other: "{{count}}しゅうかん",
},
aboutXMonths: {
one: "やく1かげつ",
other: "やく{{count}}かげつ",
},
xMonths: {
one: "1かげつ",
other: "{{count}}かげつ",
},
aboutXYears: {
one: "やく1ねん",
other: "やく{{count}}ねん",
},
xYears: {
one: "1ねん",
other: "{{count}}ねん",
},
overXYears: {
one: "1ねんいじょう",
other: "{{count}}ねんいじょう",
},
almostXYears: {
one: "1ねんちかく",
other: "{{count}}ねんちかく",
},
};
const formatDistance = (token, count, options) => {
options = options || {};
let result;
const tokenValue = formatDistanceLocale[token];
if (typeof tokenValue === "string") {
result = tokenValue;
} else if (count === 1) {
if (options.addSuffix && tokenValue.oneWithSuffix) {
result = tokenValue.oneWithSuffix;
} else {
result = tokenValue.one;
}
} else {
if (options.addSuffix && tokenValue.otherWithSuffix) {
result = tokenValue.otherWithSuffix.replace("{{count}}", String(count));
} else {
result = tokenValue.other.replace("{{count}}", String(count));
}
}
if (options.addSuffix) {
if (options.comparison && options.comparison > 0) {
return result + "あと";
} else {
return result + "まえ";
}
}
return result;
};
exports.formatDistance = formatDistance;

View File

@@ -0,0 +1 @@
{"version":3,"file":"circle-arrow-out-up-right.js","sources":["../../../src/icons/circle-arrow-out-up-right.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name CircleArrowOutUpRight\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMjIgMTJBMTAgMTAgMCAxIDEgMTIgMiIgLz4KICA8cGF0aCBkPSJNMjIgMiAxMiAxMiIgLz4KICA8cGF0aCBkPSJNMTYgMmg2djYiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/circle-arrow-out-up-right\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 CircleArrowOutUpRight = createLucideIcon('CircleArrowOutUpRight', [\n ['path', { d: 'M22 12A10 10 0 1 1 12 2', key: '1fm58d' }],\n ['path', { d: 'M22 2 12 12', key: 'yg2myt' }],\n ['path', { d: 'M16 2h6v6', key: 'zan5cs' }],\n]);\n\nexport default CircleArrowOutUpRight;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAwB,iBAAiB,uBAAyB,CAAA,CAAA,CAAA;AAAA,CAAA,CACtE,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAA2B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,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,CACxD,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAe,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CAC5C,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA;AAC5C,CAAC,CAAA,CAAA;;"}

View File

@@ -0,0 +1,20 @@
/**
* @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 Group = createLucideIcon("Group", [
["path", { d: "M3 7V5c0-1.1.9-2 2-2h2", key: "adw53z" }],
["path", { d: "M17 3h2c1.1 0 2 .9 2 2v2", key: "an4l38" }],
["path", { d: "M21 17v2c0 1.1-.9 2-2 2h-2", key: "144t0e" }],
["path", { d: "M7 21H5c-1.1 0-2-.9-2-2v-2", key: "rtnfgi" }],
["rect", { width: "7", height: "5", x: "7", y: "7", rx: "1", key: "1eyiv7" }],
["rect", { width: "7", height: "5", x: "10", y: "12", rx: "1", key: "1qlmkx" }]
]);
export { Group as default };
//# sourceMappingURL=group.js.map

View File

@@ -0,0 +1,106 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const code_1 = require("../code");
const codegen_1 = require("../../compile/codegen");
const names_1 = require("../../compile/names");
const util_1 = require("../../compile/util");
const error = {
message: "must NOT have additional properties",
params: ({ params }) => (0, codegen_1._) `{additionalProperty: ${params.additionalProperty}}`,
};
const def = {
keyword: "additionalProperties",
type: ["object"],
schemaType: ["boolean", "object"],
allowUndefined: true,
trackErrors: true,
error,
code(cxt) {
const { gen, schema, parentSchema, data, errsCount, it } = cxt;
/* istanbul ignore if */
if (!errsCount)
throw new Error("ajv implementation error");
const { allErrors, opts } = it;
it.props = true;
if (opts.removeAdditional !== "all" && (0, util_1.alwaysValidSchema)(it, schema))
return;
const props = (0, code_1.allSchemaProperties)(parentSchema.properties);
const patProps = (0, code_1.allSchemaProperties)(parentSchema.patternProperties);
checkAdditionalProperties();
cxt.ok((0, codegen_1._) `${errsCount} === ${names_1.default.errors}`);
function checkAdditionalProperties() {
gen.forIn("key", data, (key) => {
if (!props.length && !patProps.length)
additionalPropertyCode(key);
else
gen.if(isAdditional(key), () => additionalPropertyCode(key));
});
}
function isAdditional(key) {
let definedProp;
if (props.length > 8) {
// TODO maybe an option instead of hard-coded 8?
const propsSchema = (0, util_1.schemaRefOrVal)(it, parentSchema.properties, "properties");
definedProp = (0, code_1.isOwnProperty)(gen, propsSchema, key);
}
else if (props.length) {
definedProp = (0, codegen_1.or)(...props.map((p) => (0, codegen_1._) `${key} === ${p}`));
}
else {
definedProp = codegen_1.nil;
}
if (patProps.length) {
definedProp = (0, codegen_1.or)(definedProp, ...patProps.map((p) => (0, codegen_1._) `${(0, code_1.usePattern)(cxt, p)}.test(${key})`));
}
return (0, codegen_1.not)(definedProp);
}
function deleteAdditional(key) {
gen.code((0, codegen_1._) `delete ${data}[${key}]`);
}
function additionalPropertyCode(key) {
if (opts.removeAdditional === "all" || (opts.removeAdditional && schema === false)) {
deleteAdditional(key);
return;
}
if (schema === false) {
cxt.setParams({ additionalProperty: key });
cxt.error();
if (!allErrors)
gen.break();
return;
}
if (typeof schema == "object" && !(0, util_1.alwaysValidSchema)(it, schema)) {
const valid = gen.name("valid");
if (opts.removeAdditional === "failing") {
applyAdditionalSchema(key, valid, false);
gen.if((0, codegen_1.not)(valid), () => {
cxt.reset();
deleteAdditional(key);
});
}
else {
applyAdditionalSchema(key, valid);
if (!allErrors)
gen.if((0, codegen_1.not)(valid), () => gen.break());
}
}
}
function applyAdditionalSchema(key, valid, errors) {
const subschema = {
keyword: "additionalProperties",
dataProp: key,
dataPropType: util_1.Type.Str,
};
if (errors === false) {
Object.assign(subschema, {
compositeRule: true,
createErrors: false,
allErrors: false,
});
}
cxt.subschema(subschema, valid);
}
},
};
exports.default = def;
//# sourceMappingURL=additionalProperties.js.map

View File

@@ -0,0 +1,5 @@
var convert = require('./convert'),
func = convert('over', require('../over'));
func.placeholder = require('./placeholder');
module.exports = func;

View File

@@ -0,0 +1,2 @@
import { isTypedArray } from "../fp";
export = isTypedArray;

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.js","sources":["../../../../../src/integrations/tracing/openai/index.ts"],"sourcesContent":["import type { IntegrationFn, OpenAiOptions } from '@sentry/core';\nimport { defineIntegration, OPENAI_INTEGRATION_NAME } from '@sentry/core';\nimport { generateInstrumentOnce } from '@sentry/node-core';\nimport { SentryOpenAiInstrumentation } from './instrumentation';\n\nexport const instrumentOpenAi = generateInstrumentOnce<OpenAiOptions>(\n OPENAI_INTEGRATION_NAME,\n options => new SentryOpenAiInstrumentation(options),\n);\n\nconst _openAiIntegration = ((options: OpenAiOptions = {}) => {\n return {\n name: OPENAI_INTEGRATION_NAME,\n setupOnce() {\n instrumentOpenAi(options);\n },\n };\n}) satisfies IntegrationFn;\n\n/**\n * Adds Sentry tracing instrumentation for the OpenAI SDK.\n *\n * This integration is enabled by default.\n *\n * When configured, this integration automatically instruments OpenAI SDK client instances\n * to capture telemetry data following OpenTelemetry Semantic Conventions for Generative AI.\n *\n * @example\n * ```javascript\n * import * as Sentry from '@sentry/node';\n *\n * Sentry.init({\n * integrations: [Sentry.openAIIntegration()],\n * });\n * ```\n *\n * ## Options\n *\n * - `recordInputs`: Whether to record prompt messages (default: respects `sendDefaultPii` client option)\n * - `recordOutputs`: Whether to record response text (default: respects `sendDefaultPii` client option)\n *\n * ### Default Behavior\n *\n * By default, the integration will:\n * - Record inputs and outputs ONLY if `sendDefaultPii` is set to `true` in your Sentry client options\n * - Otherwise, inputs and outputs are NOT recorded unless explicitly enabled\n *\n * @example\n * ```javascript\n * // Record inputs and outputs when sendDefaultPii is false\n * Sentry.init({\n * integrations: [\n * Sentry.openAIIntegration({\n * recordInputs: true,\n * recordOutputs: true\n * })\n * ],\n * });\n *\n * // Never record inputs/outputs regardless of sendDefaultPii\n * Sentry.init({\n * sendDefaultPii: true,\n * integrations: [\n * Sentry.openAIIntegration({\n * recordInputs: false,\n * recordOutputs: false\n * })\n * ],\n * });\n * ```\n *\n */\nexport const openAIIntegration = defineIntegration(_openAiIntegration);\n"],"names":[],"mappings":";;;;AAKO,MAAM,gBAAA,GAAmB,sBAAsB;AACtD,EAAE,uBAAuB;AACzB,EAAE,WAAW,IAAI,2BAA2B,CAAC,OAAO,CAAC;AACrD;;AAEA,MAAM,kBAAA,IAAsB,CAAC,OAAO,GAAkB,EAAE,KAAK;AAC7D,EAAE,OAAO;AACT,IAAI,IAAI,EAAE,uBAAuB;AACjC,IAAI,SAAS,GAAG;AAChB,MAAM,gBAAgB,CAAC,OAAO,CAAC;AAC/B,IAAI,CAAC;AACL,GAAG;AACH,CAAC,CAAA;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;MACa,iBAAA,GAAoB,iBAAiB,CAAC,kBAAkB;;;;"}

View File

@@ -0,0 +1,22 @@
import type { Collection } from '../collections/config/types.js';
import type { SanitizedConfig } from '../config/types.js';
import type { PayloadRequest } from '../types/index.js';
import type { FileToSave } from './types.js';
type Args<T> = {
collection: Collection;
config: SanitizedConfig;
data: T;
isDuplicating?: boolean;
operation: 'create' | 'update';
originalDoc?: T;
overwriteExistingFiles?: boolean;
req: PayloadRequest;
throwOnMissingFile?: boolean;
};
type Result<T> = Promise<{
data: T;
files: FileToSave[];
}>;
export declare const generateFileData: <T>({ collection: { config: collectionConfig }, data, isDuplicating, operation, originalDoc, overwriteExistingFiles, req, throwOnMissingFile, }: Args<T>) => Result<T>;
export {};
//# sourceMappingURL=generateFileData.d.ts.map

View File

@@ -0,0 +1,22 @@
import { NestedPartial } from "../../../types/utils.js";
import { CollectionType, SingletonCollections } from "../../../types/schema.js";
import { ApplyQueryFields } from "../../../types/output.js";
import { Query } from "../../../types/query.js";
import { RestCommand } from "../../types.js";
//#region src/rest/commands/update/singleton.d.ts
type UpdateSingletonOutput<Schema, Collection extends SingletonCollections<Schema>, TQuery extends Query<Schema, Schema[Collection]>> = ApplyQueryFields<Schema, CollectionType<Schema, Collection>, TQuery['fields']>;
/**
* Update a singleton item
*
* @param collection The collection of the items
* @param query The query parameters
*
* @returns An array of up to limit item objects. If no items are available, data will be an empty array.
* @throws Will throw if collection is a core collection
* @throws Will throw if collection is empty
*/
declare const updateSingleton: <Schema, Collection extends SingletonCollections<Schema>, const TQuery extends Query<Schema, Schema[Collection]>, Item = Schema[Collection]>(collection: Collection, item: NestedPartial<Item>, query?: TQuery) => RestCommand<UpdateSingletonOutput<Schema, Collection, TQuery>, Schema>;
//#endregion
export { UpdateSingletonOutput, updateSingleton };
//# sourceMappingURL=singleton.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/context/types.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG","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 */\n\nexport interface Context {\n /**\n * Get a value from the context.\n *\n * @param key key which identifies a context value\n */\n getValue(key: symbol): unknown;\n\n /**\n * Create a new context which inherits from this context and has\n * the given key set to the given value.\n *\n * @param key context key for which to set the value\n * @param value value to set for the given key\n */\n setValue(key: symbol, value: unknown): Context;\n\n /**\n * Return a new context which inherits from this context but does\n * not contain a value for the given key.\n *\n * @param key context key for which to clear a value\n */\n deleteValue(key: symbol): Context;\n}\n\nexport interface ContextManager {\n /**\n * Get the current active context\n */\n active(): Context;\n\n /**\n * Run the fn callback with object set as the current active context\n * @param context Any object to set as the current active context\n * @param fn A callback to be immediately run within a specific context\n * @param thisArg optional receiver to be used for calling fn\n * @param args optional arguments forwarded to fn\n */\n with<A extends unknown[], F extends (...args: A) => ReturnType<F>>(\n context: Context,\n fn: F,\n thisArg?: ThisParameterType<F>,\n ...args: A\n ): ReturnType<F>;\n\n /**\n * Bind an object as the current context (or a specific one)\n * @param [context] Optionally specify the context which you want to assign\n * @param target Any object to which a context need to be set\n */\n bind<T>(context: Context, target: T): T;\n\n /**\n * Enable context management\n */\n enable(): this;\n\n /**\n * Disable context management\n */\n disable(): this;\n}\n"]}

View File

@@ -0,0 +1 @@
{"version":3,"file":"rowHelpers.d.ts","sourceRoot":"","sources":["../../../src/forms/Form/rowHelpers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,SAAS,CAAA;AAElC,eAAO,MAAM,0BAA0B,gCAIpC;IACD,SAAS,EAAE,OAAO,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,GAAG,EAAE,CAAA;CACZ,KAAG;IACF,YAAY,EAAE,MAAM,EAAE,CAAA;IACtB,WAAW,EAAE,GAAG,EAAE,CAAA;CAkBnB,CAAA;AAED,eAAO,MAAM,aAAa;;;MAGtB;IACF,YAAY,EAAE,MAAM,EAAE,CAAA;IACtB,WAAW,EAAE,GAAG,EAAE,CAAA;CAgBnB,CAAA"}

View File

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

View File

@@ -0,0 +1,41 @@
"use strict";
exports.formatLong = void 0;
var _index = require("../../_lib/buildFormatLongFn.cjs");
const dateFormats = {
full: "EEEE, MMMM do, y",
long: "MMMM do, y",
medium: "MMM d, y",
short: "MM/dd/yyyy",
};
const timeFormats = {
full: "h:mm:ss a zzzz",
long: "h:mm:ss a z",
medium: "h:mm:ss a",
short: "h:mm a",
};
const dateTimeFormats = {
full: "{{date}} 'në' {{time}}",
long: "{{date}} 'në' {{time}}",
medium: "{{date}}, {{time}}",
short: "{{date}}, {{time}}",
};
const formatLong = (exports.formatLong = {
date: (0, _index.buildFormatLongFn)({
formats: dateFormats,
defaultWidth: "full",
}),
time: (0, _index.buildFormatLongFn)({
formats: timeFormats,
defaultWidth: "full",
}),
dateTime: (0, _index.buildFormatLongFn)({
formats: dateTimeFormats,
defaultWidth: "full",
}),
});

View File

@@ -0,0 +1,38 @@
import type { AnyColumn } from "../../column.js";
import type { SQL, SQLWrapper } from "../sql.js";
/**
* Used in sorting, this specifies that the given
* column or expression should be sorted in ascending
* order. By the SQL standard, ascending order is the
* default, so it is not usually necessary to specify
* ascending sort order.
*
* ## Examples
*
* ```ts
* // Return cars, starting with the oldest models
* // and going in ascending order to the newest.
* db.select().from(cars)
* .orderBy(asc(cars.year));
* ```
*
* @see desc to sort in descending order
*/
export declare function asc(column: AnyColumn | SQLWrapper): SQL;
/**
* Used in sorting, this specifies that the given
* column or expression should be sorted in descending
* order.
*
* ## Examples
*
* ```ts
* // Select users, with the most recently created
* // records coming first.
* db.select().from(users)
* .orderBy(desc(users.createdAt));
* ```
*
* @see asc to sort in ascending order
*/
export declare function desc(column: AnyColumn | SQLWrapper): SQL;

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 './square-plus.js';
//# sourceMappingURL=plus-square.js.map

View File

@@ -0,0 +1,59 @@
import { entityKind } from "../entity.cjs";
import type { SQL } from "../sql/sql.cjs";
import type { AnyMySqlColumn, MySqlColumn } from "./columns/index.cjs";
import type { MySqlTable } from "./table.cjs";
interface IndexConfig {
name: string;
columns: IndexColumn[];
/**
* If true, the index will be created as `create unique index` instead of `create index`.
*/
unique?: boolean;
/**
* If set, the index will be created as `create index ... using { 'btree' | 'hash' }`.
*/
using?: 'btree' | 'hash';
/**
* If set, the index will be created as `create index ... algorythm { 'default' | 'inplace' | 'copy' }`.
*/
algorythm?: 'default' | 'inplace' | 'copy';
/**
* If set, adds locks to the index creation.
*/
lock?: 'default' | 'none' | 'shared' | 'exclusive';
}
export type IndexColumn = MySqlColumn | SQL;
export declare class IndexBuilderOn {
private name;
private unique;
static readonly [entityKind]: string;
constructor(name: string, unique: boolean);
on(...columns: [IndexColumn, ...IndexColumn[]]): IndexBuilder;
}
export interface AnyIndexBuilder {
build(table: MySqlTable): Index;
}
export interface IndexBuilder extends AnyIndexBuilder {
}
export declare class IndexBuilder implements AnyIndexBuilder {
static readonly [entityKind]: string;
constructor(name: string, columns: IndexColumn[], unique: boolean);
using(using: IndexConfig['using']): this;
algorythm(algorythm: IndexConfig['algorythm']): this;
lock(lock: IndexConfig['lock']): this;
}
export declare class Index {
static readonly [entityKind]: string;
readonly config: IndexConfig & {
table: MySqlTable;
};
constructor(config: IndexConfig, table: MySqlTable);
}
export type GetColumnsTableName<TColumns> = TColumns extends AnyMySqlColumn<{
tableName: infer TTableName extends string;
}> | AnyMySqlColumn<{
tableName: infer TTableName extends string;
}>[] ? TTableName : never;
export declare function index(name: string): IndexBuilderOn;
export declare function uniqueIndex(name: string): IndexBuilderOn;
export {};

View File

@@ -0,0 +1,65 @@
{
"root": true,
"extends": "@ljharb",
"rules": {
"indent": [2, 4],
"strict": 0,
"complexity": 0,
"consistent-return": 0,
"curly": 0,
"dot-notation": [2, { "allowKeywords": true }],
"func-name-matching": 0,
"func-style": 0,
"global-require": 1,
"id-length": [2, { "min": 1, "max": 40 }],
"max-lines": [2, 360],
"max-lines-per-function": 0,
"max-nested-callbacks": 0,
"max-params": 0,
"max-statements-per-line": [2, { "max": 2 }],
"max-statements": 0,
"no-magic-numbers": 0,
"no-shadow": 0,
"no-use-before-define": 0,
"sort-keys": 0,
},
"overrides": [
{
"files": "bin/**",
"rules": {
"no-process-exit": "off",
},
},
{
"files": "example/**",
"rules": {
"no-console": 0,
},
},
{
"files": "test/resolver/nested_symlinks/mylib/*.js",
"rules": {
"no-throw-literal": 0,
},
},
{
"files": "test/**",
"parserOptions": {
"ecmaVersion": 5,
"allowReserved": false,
},
"rules": {
"dot-notation": [2, { "allowPattern": "throws" }],
"max-lines": 0,
"max-lines-per-function": 0,
"no-unused-vars": [2, { "vars": "all", "args": "none" }],
},
},
],
"ignorePatterns": [
"./test/resolver/malformed_package_json/package.json",
],
}

View File

@@ -0,0 +1 @@
{"version":3,"file":"hy.d.ts","sourceRoot":"","sources":["../../../src/exports/i18n/hy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,uCAAuC,CAAA"}

View File

@@ -0,0 +1,61 @@
/**
* NOTE: In order to avoid circular dependencies, if you add a function to this module and it needs to print something,
* you must either a) use `console.log` rather than the `debug` singleton, or b) put your function elsewhere.
*
* Note: This file was originally called `global.ts`, but was changed to unblock users which might be doing
* string replaces with bundlers like Vite for `global` (would break imports that rely on importing from utils/src/global).
*
* Why worldwide?
*
* Why not?
*/
import { Carrier } from '../carrier';
import { SdkSource } from './env';
/** Internal global with common properties and Sentry extensions */
export type InternalGlobal = {
navigator?: {
userAgent?: string;
maxTouchPoints?: number;
};
console: Console;
PerformanceObserver?: any;
Sentry?: any;
onerror?: {
(event: object | string, source?: string, lineno?: number, colno?: number, error?: Error): any;
__SENTRY_INSTRUMENTED__?: true;
};
onunhandledrejection?: {
(event: unknown): boolean;
__SENTRY_INSTRUMENTED__?: true;
};
SENTRY_ENVIRONMENT?: string;
SENTRY_DSN?: string;
SENTRY_RELEASE?: {
id?: string;
};
SENTRY_SDK_SOURCE?: SdkSource;
/**
* Debug IDs are indirectly injected by Sentry CLI or bundler plugins to directly reference a particular source map
* for resolving of a source file. The injected code will place an entry into the record for each loaded bundle/JS
* file.
*/
_sentryDebugIds?: Record<string, string>;
/**
* Native debug IDs implementation (e.g., from Vercel).
* This uses the same format as _sentryDebugIds but with a different global name.
* Keys are `error.stack` strings, values are debug IDs.
*/
_debugIds?: Record<string, string>;
/**
* Raw module metadata that is injected by bundler plugins.
*
* Keys are `error.stack` strings, values are the metadata.
*/
_sentryModuleMetadata?: Record<string, any>;
_sentryEsmLoaderHookRegistered?: boolean;
_sentryInjectLoaderHookRegister?: () => void;
_sentryInjectLoaderHookRegistered?: boolean;
} & Carrier;
/** Get's the global object for the current JavaScript runtime */
export declare const GLOBAL_OBJ: InternalGlobal;
//# sourceMappingURL=worldwide.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"pizza.js","sources":["../../../src/icons/pizza.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name Pizza\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTUgMTFoLjAxIiAvPgogIDxwYXRoIGQ9Ik0xMSAxNWguMDEiIC8+CiAgPHBhdGggZD0iTTE2IDE2aC4wMSIgLz4KICA8cGF0aCBkPSJtMiAxNiAyMCA2LTYtMjBBMjAgMjAgMCAwIDAgMiAxNiIgLz4KICA8cGF0aCBkPSJNNS43MSAxNy4xMWExNy4wNCAxNy4wNCAwIDAgMSAxMS40LTExLjQiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/pizza\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 Pizza = createLucideIcon('Pizza', [\n ['path', { d: 'M15 11h.01', key: 'rns66s' }],\n ['path', { d: 'M11 15h.01', key: 'k85uqc' }],\n ['path', { d: 'M16 16h.01', key: '1f9h7w' }],\n ['path', { d: 'm2 16 20 6-6-20A20 20 0 0 0 2 16', key: 'e4slt2' }],\n ['path', { d: 'M5.71 17.11a17.04 17.04 0 0 1 11.4-11.4', key: 'rerf8f' }],\n]);\n\nexport default Pizza;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,iBAAiB,OAAS,CAAA,CAAA,CAAA;AAAA,CAAA,CACtC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,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,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,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,CAAoC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,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,CACjE,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAA2C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,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;AAC1E,CAAC,CAAA,CAAA;;"}

View File

@@ -0,0 +1,34 @@
import type { INPMetric, INPReportOpts, MetricRatingThresholds } from './types';
/** Thresholds for INP. See https://web.dev/articles/inp#what_is_a_good_inp_score */
export declare const INPThresholds: MetricRatingThresholds;
/**
* Calculates the [INP](https://web.dev/articles/inp) value for the current
* page and calls the `callback` function once the value is ready, along with
* the `event` performance entries reported for that interaction. The reported
* value is a `DOMHighResTimeStamp`.
*
* A custom `durationThreshold` configuration option can optionally be passed
* to control what `event-timing` entries are considered for INP reporting. The
* default threshold is `40`, which means INP scores of less than 40 will not
* be reported. To avoid reporting no interactions in these cases, the library
* will fall back to the input delay of the first interaction. Note that this
* will not affect your 75th percentile INP value unless that value is also
* less than 40 (well below the recommended
* [good](https://web.dev/articles/inp#what_is_a_good_inp_score) threshold).
*
* If the `reportAllChanges` configuration option is set to `true`, the
* `callback` function will be called as soon as the value is initially
* determined as well as any time the value changes throughout the page
* lifespan.
*
* _**Important:** INP should be continually monitored for changes throughout
* the entire lifespan of a page—including if the user returns to the page after
* it's been hidden/backgrounded. However, since browsers often [will not fire
* additional callbacks once the user has backgrounded a
* page](https://developer.chrome.com/blog/page-lifecycle-api/#advice-hidden),
* `callback` is always called when the page's visibility state changes to
* hidden. As a result, the `callback` function might be called multiple times
* during the same page load._
*/
export declare const onINP: (onReport: (metric: INPMetric) => void, opts?: INPReportOpts) => void;
//# sourceMappingURL=getINP.d.ts.map

View File

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

View File

@@ -0,0 +1,50 @@
var unsupportedIterableToArray = require("./unsupportedIterableToArray.js");
function _createForOfIteratorHelper(r, e) {
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
if (!t) {
if (Array.isArray(r) || (t = unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
t && (r = t);
var _n = 0,
F = function F() {};
return {
s: F,
n: function n() {
return _n >= r.length ? {
done: !0
} : {
done: !1,
value: r[_n++]
};
},
e: function e(r) {
throw r;
},
f: F
};
}
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
var o,
a = !0,
u = !1;
return {
s: function s() {
t = t.call(r);
},
n: function n() {
var r = t.next();
return a = r.done, r;
},
e: function e(r) {
u = !0, o = r;
},
f: function f() {
try {
a || null == t["return"] || t["return"]();
} finally {
if (u) throw o;
}
}
};
}
module.exports = _createForOfIteratorHelper, module.exports.__esModule = true, module.exports["default"] = module.exports;

View File

@@ -0,0 +1,66 @@
import { defineIntegration } from '../../integration.js';
import { _INTERNAL_copyFlagsFromScopeToEvent, _INTERNAL_insertFlagToScope, _INTERNAL_addFeatureFlagToActiveSpan } from '../../utils/featureFlags.js';
import { fill } from '../../utils/object.js';
/**
* Sentry integration for capturing feature flag evaluations from GrowthBook.
*
* Only boolean results are captured at this time.
*
* @example
* ```typescript
* import { GrowthBook } from '@growthbook/growthbook';
* import * as Sentry from '@sentry/browser'; // or '@sentry/node'
*
* Sentry.init({
* dsn: 'your-dsn',
* integrations: [
* Sentry.growthbookIntegration({ growthbookClass: GrowthBook })
* ]
* });
* ```
*/
const growthbookIntegration = defineIntegration(
({ growthbookClass }) => {
return {
name: 'GrowthBook',
setupOnce() {
const proto = growthbookClass.prototype ;
// Type guard and wrap isOn
if (typeof proto.isOn === 'function') {
fill(proto, 'isOn', _wrapAndCaptureBooleanResult);
}
// Type guard and wrap getFeatureValue
if (typeof proto.getFeatureValue === 'function') {
fill(proto, 'getFeatureValue', _wrapAndCaptureBooleanResult);
}
},
processEvent(event, _hint, _client) {
return _INTERNAL_copyFlagsFromScopeToEvent(event);
},
};
},
);
function _wrapAndCaptureBooleanResult(
original,
) {
return function ( ...args) {
const flagName = args[0];
const result = original.apply(this, args);
if (typeof flagName === 'string' && typeof result === 'boolean') {
_INTERNAL_insertFlagToScope(flagName, result);
_INTERNAL_addFeatureFlagToActiveSpan(flagName, result);
}
return result;
};
}
export { growthbookIntegration };
//# sourceMappingURL=growthbook.js.map

View File

@@ -0,0 +1,31 @@
import fs from 'fs/promises';
import path from 'path';
import SourceFileFilter from './SourceFileFilter.js';
class SourceFileScanner {
static async walkSourceFiles(dir, srcPaths, acc = []) {
const entries = await fs.readdir(dir, {
withFileTypes: true
});
for (const entry of entries) {
const entryPath = path.join(dir, entry.name);
if (entry.isDirectory()) {
if (!SourceFileFilter.shouldEnterDirectory(entryPath, srcPaths)) {
continue;
}
await SourceFileScanner.walkSourceFiles(entryPath, srcPaths, acc);
} else {
if (SourceFileFilter.isSourceFile(entry.name)) {
acc.push(entryPath);
}
}
}
return acc;
}
static async getSourceFiles(srcPaths) {
const files = (await Promise.all(srcPaths.map(srcPath => SourceFileScanner.walkSourceFiles(srcPath, srcPaths)))).flat();
return new Set(files);
}
}
export { SourceFileScanner as default };

View File

@@ -0,0 +1,4 @@
import type { SelectFieldDiffClientComponent } from 'payload';
import './index.scss';
export declare const Select: SelectFieldDiffClientComponent;
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1,16 @@
import type { AuthOperationsFromCollectionSlug, Collection } from '../../collections/config/types.js';
import type { AuthCollectionSlug } from '../../index.js';
import type { PayloadRequest } from '../../types/index.js';
export type Arguments<TSlug extends AuthCollectionSlug> = {
collection: Collection;
data: {
[key: string]: unknown;
} & AuthOperationsFromCollectionSlug<TSlug>['forgotPassword'];
disableEmail?: boolean;
expiration?: number;
overrideAccess?: boolean;
req: PayloadRequest;
};
export type Result = string;
export declare const forgotPasswordOperation: <TSlug extends AuthCollectionSlug>(incomingArgs: Arguments<TSlug>) => Promise<null | string>;
//# sourceMappingURL=forgotPassword.d.ts.map

View File

@@ -0,0 +1,36 @@
import type { ContextOptions, DateArg } from "./types.js";
/**
* The {@link subWeeks} function options.
*/
export interface SubWeeksOptions<DateType extends Date = Date>
extends ContextOptions<DateType> {}
/**
* @name subWeeks
* @category Week Helpers
* @summary Subtract the specified number of weeks from the given date.
*
* @description
* Subtract the specified number of weeks from the given date.
*
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
*
* @param date - The date to be changed
* @param amount - The amount of weeks to be subtracted.
* @param options - An object with options
*
* @returns The new date with the weeks subtracted
*
* @example
* // Subtract 4 weeks from 1 September 2014:
* const result = subWeeks(new Date(2014, 8, 1), 4)
* //=> Mon Aug 04 2014 00:00:00
*/
export declare function subWeeks<
DateType extends Date,
ResultDate extends Date = DateType,
>(
date: DateArg<DateType>,
amount: number,
options?: SubWeeksOptions<ResultDate> | undefined,
): ResultDate;

View File

@@ -0,0 +1,18 @@
import { entityKind } from "../entity.cjs";
import type { SQL } from "../sql/sql.cjs";
import type { MySqlTable } from "./table.cjs";
export declare class CheckBuilder {
name: string;
value: SQL;
static readonly [entityKind]: string;
protected brand: 'MySqlConstraintBuilder';
constructor(name: string, value: SQL);
}
export declare class Check {
table: MySqlTable;
static readonly [entityKind]: string;
readonly name: string;
readonly value: SQL;
constructor(table: MySqlTable, builder: CheckBuilder);
}
export declare function check(name: string, value: SQL): CheckBuilder;

View File

@@ -0,0 +1 @@
{"version":3,"file":"eventProcessors.js","sources":["../../src/eventProcessors.ts"],"sourcesContent":["import { DEBUG_BUILD } from './debug-build';\nimport type { Event, EventHint } from './types-hoist/event';\nimport type { EventProcessor } from './types-hoist/eventprocessor';\nimport { debug } from './utils/debug-logger';\nimport { isThenable } from './utils/is';\nimport { rejectedSyncPromise, resolvedSyncPromise } from './utils/syncpromise';\n\n/**\n * Process an array of event processors, returning the processed event (or `null` if the event was dropped).\n */\nexport function notifyEventProcessors(\n processors: EventProcessor[],\n event: Event | null,\n hint: EventHint,\n index: number = 0,\n): PromiseLike<Event | null> {\n try {\n const result = _notifyEventProcessors(event, hint, processors, index);\n return isThenable(result) ? result : resolvedSyncPromise(result);\n } catch (error) {\n return rejectedSyncPromise(error);\n }\n}\n\nfunction _notifyEventProcessors(\n event: Event | null,\n hint: EventHint,\n processors: EventProcessor[],\n index: number,\n): Event | null | PromiseLike<Event | null> {\n const processor = processors[index];\n\n if (!event || !processor) {\n return event;\n }\n\n const result = processor({ ...event }, hint);\n\n DEBUG_BUILD && result === null && debug.log(`Event processor \"${processor.id || '?'}\" dropped event`);\n\n if (isThenable(result)) {\n return result.then(final => _notifyEventProcessors(final, hint, processors, index + 1));\n }\n\n return _notifyEventProcessors(result, hint, processors, index + 1);\n}\n"],"names":["isThenable","resolvedSyncPromise","rejectedSyncPromise","DEBUG_BUILD","debug"],"mappings":";;;;;;;AAOA;AACA;AACA;AACO,SAAS,qBAAqB;AACrC,EAAE,UAAU;AACZ,EAAE,KAAK;AACP,EAAE,IAAI;AACN,EAAE,KAAK,GAAW,CAAC;AACnB,EAA6B;AAC7B,EAAE,IAAI;AACN,IAAI,MAAM,MAAA,GAAS,sBAAsB,CAAC,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,CAAC;AACzE,IAAI,OAAOA,aAAU,CAAC,MAAM,CAAA,GAAI,MAAA,GAASC,+BAAmB,CAAC,MAAM,CAAC;AACpE,EAAE,CAAA,CAAE,OAAO,KAAK,EAAE;AAClB,IAAI,OAAOC,+BAAmB,CAAC,KAAK,CAAC;AACrC,EAAE;AACF;;AAEA,SAAS,sBAAsB;AAC/B,EAAE,KAAK;AACP,EAAE,IAAI;AACN,EAAE,UAAU;AACZ,EAAE,KAAK;AACP,EAA4C;AAC5C,EAAE,MAAM,SAAA,GAAY,UAAU,CAAC,KAAK,CAAC;;AAErC,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE;AAC5B,IAAI,OAAO,KAAK;AAChB,EAAE;;AAEF,EAAE,MAAM,MAAA,GAAS,SAAS,CAAC,EAAE,GAAG,KAAA,EAAO,EAAE,IAAI,CAAC;;AAE9C,EAAEC,sBAAA,IAAe,MAAA,KAAW,QAAQC,iBAAK,CAAC,GAAG,CAAC,CAAC,iBAAiB,EAAE,SAAS,CAAC,EAAA,IAAM,GAAG,CAAC,eAAe,CAAC,CAAC;;AAEvG,EAAE,IAAIJ,aAAU,CAAC,MAAM,CAAC,EAAE;AAC1B,IAAI,OAAO,MAAM,CAAC,IAAI,CAAC,KAAA,IAAS,sBAAsB,CAAC,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;AAC3F,EAAE;;AAEF,EAAE,OAAO,sBAAsB,CAAC,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,KAAA,GAAQ,CAAC,CAAC;AACpE;;;;"}

View File

@@ -0,0 +1,11 @@
import type { ValueWithRelation } from 'payload';
import type { Option } from '../../elements/ReactSelect/types.js';
import type { OptionGroup } from './types.js';
type Args = {
allowEdit: boolean;
options: OptionGroup[];
value: ValueWithRelation | ValueWithRelation[];
};
export declare const findOptionsByValue: ({ allowEdit, options, value }: Args) => Option | Option[];
export {};
//# sourceMappingURL=findOptionsByValue.d.ts.map

View File

@@ -0,0 +1,190 @@
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true,
});
exports.astFromValue = astFromValue;
var _inspect = require('../jsutils/inspect.js');
var _invariant = require('../jsutils/invariant.js');
var _isIterableObject = require('../jsutils/isIterableObject.js');
var _isObjectLike = require('../jsutils/isObjectLike.js');
var _kinds = require('../language/kinds.js');
var _definition = require('../type/definition.js');
var _scalars = require('../type/scalars.js');
/**
* Produces a GraphQL Value AST given a JavaScript object.
* Function will match JavaScript/JSON values to GraphQL AST schema format
* by using suggested GraphQLInputType. For example:
*
* astFromValue("value", GraphQLString)
*
* A GraphQL type must be provided, which will be used to interpret different
* JavaScript values.
*
* | JSON Value | GraphQL Value |
* | ------------- | -------------------- |
* | Object | Input Object |
* | Array | List |
* | Boolean | Boolean |
* | String | String / Enum Value |
* | Number | Int / Float |
* | Unknown | Enum Value |
* | null | NullValue |
*
*/
function astFromValue(value, type) {
if ((0, _definition.isNonNullType)(type)) {
const astValue = astFromValue(value, type.ofType);
if (
(astValue === null || astValue === void 0 ? void 0 : astValue.kind) ===
_kinds.Kind.NULL
) {
return null;
}
return astValue;
} // only explicit null, not undefined, NaN
if (value === null) {
return {
kind: _kinds.Kind.NULL,
};
} // undefined
if (value === undefined) {
return null;
} // Convert JavaScript array to GraphQL list. If the GraphQLType is a list, but
// the value is not an array, convert the value using the list's item type.
if ((0, _definition.isListType)(type)) {
const itemType = type.ofType;
if ((0, _isIterableObject.isIterableObject)(value)) {
const valuesNodes = [];
for (const item of value) {
const itemNode = astFromValue(item, itemType);
if (itemNode != null) {
valuesNodes.push(itemNode);
}
}
return {
kind: _kinds.Kind.LIST,
values: valuesNodes,
};
}
return astFromValue(value, itemType);
} // Populate the fields of the input object by creating ASTs from each value
// in the JavaScript object according to the fields in the input type.
if ((0, _definition.isInputObjectType)(type)) {
if (!(0, _isObjectLike.isObjectLike)(value)) {
return null;
}
const fieldNodes = [];
for (const field of Object.values(type.getFields())) {
const fieldValue = astFromValue(value[field.name], field.type);
if (fieldValue) {
fieldNodes.push({
kind: _kinds.Kind.OBJECT_FIELD,
name: {
kind: _kinds.Kind.NAME,
value: field.name,
},
value: fieldValue,
});
}
}
return {
kind: _kinds.Kind.OBJECT,
fields: fieldNodes,
};
}
if ((0, _definition.isLeafType)(type)) {
// Since value is an internally represented value, it must be serialized
// to an externally represented value before converting into an AST.
const serialized = type.serialize(value);
if (serialized == null) {
return null;
} // Others serialize based on their corresponding JavaScript scalar types.
if (typeof serialized === 'boolean') {
return {
kind: _kinds.Kind.BOOLEAN,
value: serialized,
};
} // JavaScript numbers can be Int or Float values.
if (typeof serialized === 'number' && Number.isFinite(serialized)) {
const stringNum = String(serialized);
return integerStringRegExp.test(stringNum)
? {
kind: _kinds.Kind.INT,
value: stringNum,
}
: {
kind: _kinds.Kind.FLOAT,
value: stringNum,
};
}
if (typeof serialized === 'string') {
// Enum types use Enum literals.
if ((0, _definition.isEnumType)(type)) {
return {
kind: _kinds.Kind.ENUM,
value: serialized,
};
} // ID types can use Int literals.
if (type === _scalars.GraphQLID && integerStringRegExp.test(serialized)) {
return {
kind: _kinds.Kind.INT,
value: serialized,
};
}
return {
kind: _kinds.Kind.STRING,
value: serialized,
};
}
throw new TypeError(
`Cannot convert value to AST: ${(0, _inspect.inspect)(serialized)}.`,
);
}
/* c8 ignore next 3 */
// Not reachable, all possible types have been considered.
false ||
(0, _invariant.invariant)(
false,
'Unexpected input type: ' + (0, _inspect.inspect)(type),
);
}
/**
* IntValue:
* - NegativeSign? 0
* - NegativeSign? NonZeroDigit ( Digit+ )?
*/
const integerStringRegExp = /^-?(?:0|[1-9][0-9]*)$/;

View File

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

View File

@@ -0,0 +1,3 @@
export * from "../../dist/declarations/src/async/index.js";
export { _default as default } from "./react-select-async.cjs.default.js";
//# sourceMappingURL=react-select-async.cjs.d.mts.map

View File

@@ -0,0 +1,341 @@
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const currentScopes = require('../../currentScopes.js');
const _exports = require('../../exports.js');
const semanticAttributes = require('../../semanticAttributes.js');
const spanstatus = require('../spanstatus.js');
const trace = require('../trace.js');
const handleCallbackErrors = require('../../utils/handleCallbackErrors.js');
const genAiAttributes = require('../ai/gen-ai-attributes.js');
const utils$1 = require('../ai/utils.js');
const streaming = require('./streaming.js');
const utils = require('./utils.js');
/**
* Extract request attributes from method arguments
*/
function extractRequestAttributes(args, methodPath) {
const attributes = {
[genAiAttributes.GEN_AI_SYSTEM_ATTRIBUTE]: 'anthropic',
[genAiAttributes.GEN_AI_OPERATION_NAME_ATTRIBUTE]: utils$1.getFinalOperationName(methodPath),
[semanticAttributes.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.ai.anthropic',
};
if (args.length > 0 && typeof args[0] === 'object' && args[0] !== null) {
const params = args[0] ;
if (params.tools && Array.isArray(params.tools)) {
attributes[genAiAttributes.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE] = JSON.stringify(params.tools);
}
attributes[genAiAttributes.GEN_AI_REQUEST_MODEL_ATTRIBUTE] = params.model ?? 'unknown';
if ('temperature' in params) attributes[genAiAttributes.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE] = params.temperature;
if ('top_p' in params) attributes[genAiAttributes.GEN_AI_REQUEST_TOP_P_ATTRIBUTE] = params.top_p;
if ('stream' in params) attributes[genAiAttributes.GEN_AI_REQUEST_STREAM_ATTRIBUTE] = params.stream;
if ('top_k' in params) attributes[genAiAttributes.GEN_AI_REQUEST_TOP_K_ATTRIBUTE] = params.top_k;
if ('frequency_penalty' in params)
attributes[genAiAttributes.GEN_AI_REQUEST_FREQUENCY_PENALTY_ATTRIBUTE] = params.frequency_penalty;
if ('max_tokens' in params) attributes[genAiAttributes.GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE] = params.max_tokens;
} else {
if (methodPath === 'models.retrieve' || methodPath === 'models.get') {
// models.retrieve(model-id) and models.get(model-id)
attributes[genAiAttributes.GEN_AI_REQUEST_MODEL_ATTRIBUTE] = args[0];
} else {
attributes[genAiAttributes.GEN_AI_REQUEST_MODEL_ATTRIBUTE] = 'unknown';
}
}
return attributes;
}
/**
* Add private request attributes to spans.
* This is only recorded if recordInputs is true.
*/
function addPrivateRequestAttributes(span, params) {
const messages = utils.messagesFromParams(params);
utils.setMessagesAttribute(span, messages);
if ('prompt' in params) {
span.setAttributes({ [genAiAttributes.GEN_AI_PROMPT_ATTRIBUTE]: JSON.stringify(params.prompt) });
}
}
/**
* Add content attributes when recordOutputs is enabled
*/
function addContentAttributes(span, response) {
// Messages.create
if ('content' in response) {
if (Array.isArray(response.content)) {
span.setAttributes({
[genAiAttributes.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]: response.content
.map((item) => item.text)
.filter(text => !!text)
.join(''),
});
const toolCalls = [];
for (const item of response.content) {
if (item.type === 'tool_use' || item.type === 'server_tool_use') {
toolCalls.push(item);
}
}
if (toolCalls.length > 0) {
span.setAttributes({ [genAiAttributes.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]: JSON.stringify(toolCalls) });
}
}
}
// Completions.create
if ('completion' in response) {
span.setAttributes({ [genAiAttributes.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]: response.completion });
}
// Models.countTokens
if ('input_tokens' in response) {
span.setAttributes({ [genAiAttributes.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]: JSON.stringify(response.input_tokens) });
}
}
/**
* Add basic metadata attributes from the response
*/
function addMetadataAttributes(span, response) {
if ('id' in response && 'model' in response) {
span.setAttributes({
[genAiAttributes.GEN_AI_RESPONSE_ID_ATTRIBUTE]: response.id,
[genAiAttributes.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]: response.model,
});
if ('created' in response && typeof response.created === 'number') {
span.setAttributes({
[genAiAttributes.ANTHROPIC_AI_RESPONSE_TIMESTAMP_ATTRIBUTE]: new Date(response.created * 1000).toISOString(),
});
}
if ('created_at' in response && typeof response.created_at === 'number') {
span.setAttributes({
[genAiAttributes.ANTHROPIC_AI_RESPONSE_TIMESTAMP_ATTRIBUTE]: new Date(response.created_at * 1000).toISOString(),
});
}
if ('usage' in response && response.usage) {
utils$1.setTokenUsageAttributes(
span,
response.usage.input_tokens,
response.usage.output_tokens,
response.usage.cache_creation_input_tokens,
response.usage.cache_read_input_tokens,
);
}
}
}
/**
* Add response attributes to spans
*/
function addResponseAttributes(span, response, recordOutputs) {
if (!response || typeof response !== 'object') return;
// capture error, do not add attributes if error (they shouldn't exist)
if ('type' in response && response.type === 'error') {
utils.handleResponseError(span, response);
return;
}
// Private response attributes that are only recorded if recordOutputs is true.
if (recordOutputs) {
addContentAttributes(span, response);
}
// Add basic metadata attributes
addMetadataAttributes(span, response);
}
/**
* Handle common error catching and reporting for streaming requests
*/
function handleStreamingError(error, span, methodPath) {
_exports.captureException(error, {
mechanism: { handled: false, type: 'auto.ai.anthropic', data: { function: methodPath } },
});
if (span.isRecording()) {
span.setStatus({ code: spanstatus.SPAN_STATUS_ERROR, message: 'internal_error' });
span.end();
}
throw error;
}
/**
* Handle streaming cases with common logic
*/
function handleStreamingRequest(
originalMethod,
target,
context,
args,
requestAttributes,
operationName,
methodPath,
params,
options,
isStreamRequested,
isStreamingMethod,
) {
const model = requestAttributes[genAiAttributes.GEN_AI_REQUEST_MODEL_ATTRIBUTE] ?? 'unknown';
const spanConfig = {
name: `${operationName} ${model} stream-response`,
op: utils$1.getSpanOperation(methodPath),
attributes: requestAttributes ,
};
// messages.stream() always returns a sync MessageStream, even with stream: true param
if (isStreamRequested && !isStreamingMethod) {
return trace.startSpanManual(spanConfig, async span => {
try {
if (options.recordInputs && params) {
addPrivateRequestAttributes(span, params);
}
const result = await originalMethod.apply(context, args);
return streaming.instrumentAsyncIterableStream(
result ,
span,
options.recordOutputs ?? false,
) ;
} catch (error) {
return handleStreamingError(error, span, methodPath);
}
});
} else {
return trace.startSpanManual(spanConfig, span => {
try {
if (options.recordInputs && params) {
addPrivateRequestAttributes(span, params);
}
const messageStream = target.apply(context, args);
return streaming.instrumentMessageStream(messageStream, span, options.recordOutputs ?? false);
} catch (error) {
return handleStreamingError(error, span, methodPath);
}
});
}
}
/**
* Instrument a method with Sentry spans
* Following Sentry AI Agents Manual Instrumentation conventions
* @see https://docs.sentry.io/platforms/javascript/guides/node/tracing/instrumentation/ai-agents-module/#manual-instrumentation
*/
function instrumentMethod(
originalMethod,
methodPath,
context,
options,
) {
return new Proxy(originalMethod, {
apply(target, thisArg, args) {
const requestAttributes = extractRequestAttributes(args, methodPath);
const model = requestAttributes[genAiAttributes.GEN_AI_REQUEST_MODEL_ATTRIBUTE] ?? 'unknown';
const operationName = utils$1.getFinalOperationName(methodPath);
const params = typeof args[0] === 'object' ? (args[0] ) : undefined;
const isStreamRequested = Boolean(params?.stream);
const isStreamingMethod = methodPath === 'messages.stream';
if (isStreamRequested || isStreamingMethod) {
return handleStreamingRequest(
originalMethod,
target,
context,
args,
requestAttributes,
operationName,
methodPath,
params,
options,
isStreamRequested,
isStreamingMethod,
);
}
return trace.startSpan(
{
name: `${operationName} ${model}`,
op: utils$1.getSpanOperation(methodPath),
attributes: requestAttributes ,
},
span => {
if (options.recordInputs && params) {
addPrivateRequestAttributes(span, params);
}
return handleCallbackErrors.handleCallbackErrors(
() => target.apply(context, args),
error => {
_exports.captureException(error, {
mechanism: {
handled: false,
type: 'auto.ai.anthropic',
data: {
function: methodPath,
},
},
});
},
() => {},
result => addResponseAttributes(span, result , options.recordOutputs),
);
},
);
},
}) ;
}
/**
* Create a deep proxy for Anthropic AI client instrumentation
*/
function createDeepProxy(target, currentPath = '', options) {
return new Proxy(target, {
get(obj, prop) {
const value = (obj )[prop];
const methodPath = utils$1.buildMethodPath(currentPath, String(prop));
if (typeof value === 'function' && utils.shouldInstrument(methodPath)) {
return instrumentMethod(value , methodPath, obj, options);
}
if (typeof value === 'function') {
// Bind non-instrumented functions to preserve the original `this` context,
return value.bind(obj);
}
if (value && typeof value === 'object') {
return createDeepProxy(value, methodPath, options);
}
return value;
},
}) ;
}
/**
* Instrument an Anthropic AI client with Sentry tracing
* Can be used across Node.js, Cloudflare Workers, and Vercel Edge
*
* @template T - The type of the client that extends object
* @param client - The Anthropic AI client to instrument
* @param options - Optional configuration for recording inputs and outputs
* @returns The instrumented client with the same type as the input
*/
function instrumentAnthropicAiClient(anthropicAiClient, options) {
const sendDefaultPii = Boolean(currentScopes.getClient()?.getOptions().sendDefaultPii);
const _options = {
recordInputs: sendDefaultPii,
recordOutputs: sendDefaultPii,
...options,
};
return createDeepProxy(anthropicAiClient, '', _options);
}
exports.instrumentAnthropicAiClient = instrumentAnthropicAiClient;
//# sourceMappingURL=index.js.map

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