docs: 仓库链接指向本镜像仓库
Build NapCat Artifacts / Type Check & Test (push) Waiting to run

This commit is contained in:
TanTan committed 2026-11-13 09:25:58 +08:00
1 parent f954252a34
commit e311ca3275
35554 files changed
+6229626 -4

No files matched your search

@@ -0,0 +1,5 @@
import type { TSchema } from '../../type/schema/index.mjs';
/** `[Mutable]` Generates missing properties on a value using default schema annotations if available. This function does not check the value and returns an unknown type. You should Check the result before use. Default is a mutable operation. To avoid mutation, Clone the value first. */
export declare function Default(schema: TSchema, references: TSchema[], value: unknown): unknown;
/** `[Mutable]` Generates missing properties on a value using default schema annotations if available. This function does not check the value and returns an unknown type. You should Check the result before use. Default is a mutable operation. To avoid mutation, Clone the value first. */
export declare function Default(schema: TSchema, value: unknown): unknown;
@@ -0,0 +1,16 @@
export { default as AccordionItem, AccordionItemIndicatorProps, AccordionItemBaseProps as AccordionItemProps } from './base/accordion-item-base.js';
export { default as Accordion, AccordionProps } from './accordion.js';
export { useAccordionItem } from './use-accordion-item.js';
export { useAccordion } from './use-accordion.js';
import '@heroui/theme';
import '@heroui/system';
import '@heroui/aria-utils';
import '@react-types/shared';
import 'react';
import 'framer-motion';
import '@react-types/accordion';
import '@heroui/react-utils';
import '@react-stately/tree';
import '@heroui/divider';
import './accordion-item.js';
import 'tailwind-variants';
@@ -0,0 +1,57 @@
/*
* Demonstrates some wrapping behaviors of the new Windows 10 console.
*/
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include "TestUtil.cc"
int main(int argc, char *argv[]) {
if (argc == 1) {
startChildProcess(L"CHILD");
return 0;
}
setWindowPos(0, 0, 1, 1);
setBufferSize(40, 20);
setWindowPos(0, 0, 40, 20);
system("cls");
repeatChar(39, 'A'); repeatChar(1, ' ');
repeatChar(39, 'B'); repeatChar(1, ' ');
printf("\n");
repeatChar(39, 'C'); repeatChar(1, ' ');
repeatChar(39, 'D'); repeatChar(1, ' ');
printf("\n");
repeatChar(40, 'E');
repeatChar(40, 'F');
printf("\n");
repeatChar(39, 'G'); repeatChar(1, ' ');
repeatChar(39, 'H'); repeatChar(1, ' ');
printf("\n");
Sleep(2000);
setChar(39, 0, '*', 0x24);
setChar(39, 1, '*', 0x24);
setChar(39, 3, ' ', 0x24);
setChar(39, 4, ' ', 0x24);
setChar(38, 6, ' ', 0x24);
setChar(38, 7, ' ', 0x24);
Sleep(2000);
setWindowPos(0, 0, 35, 20);
setBufferSize(35, 20);
trace("DONE");
printf("Sleeping forever...\n");
while(true) { Sleep(1000); }
}
@@ -0,0 +1,18 @@
import baseClamp from './_baseClamp.js';
import shuffleSelf from './_shuffleSelf.js';
import values from './values.js';
/**
* The base implementation of `_.sampleSize` without param guards.
*
* @private
* @param {Array|Object} collection The collection to sample.
* @param {number} n The number of elements to sample.
* @returns {Array} Returns the random elements.
*/
function baseSampleSize(collection, n) {
var array = values(collection);
return shuffleSelf(array, baseClamp(n, 0, array.length));
}
export default baseSampleSize;
@@ -0,0 +1,38 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = pathToPattern;
function _path() {
const data = require("path");
_path = function () {
return data;
};
return data;
}
const sep = `\\${_path().sep}`;
const endSep = `(?:${sep}|$)`;
const substitution = `[^${sep}]+`;
const starPat = `(?:${substitution}${sep})`;
const starPatLast = `(?:${substitution}${endSep})`;
const starStarPat = `${starPat}*?`;
const starStarPatLast = `${starPat}*?${starPatLast}?`;
function escapeRegExp(string) {
return string.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&");
}
function pathToPattern(pattern, dirname) {
const parts = _path().resolve(dirname, pattern).split(_path().sep);
return new RegExp(["^", ...parts.map((part, i) => {
const last = i === parts.length - 1;
if (part === "**") return last ? starStarPatLast : starStarPat;
if (part === "*") return last ? starPatLast : starPat;
if (part.indexOf("*.") === 0) {
return substitution + escapeRegExp(part.slice(1)) + (last ? endSep : sep);
}
return escapeRegExp(part) + (last ? endSep : sep);
})].join(""));
}
0 && 0;
//# sourceMappingURL=pattern-to-regex.js.map
@@ -0,0 +1,616 @@
export default `flf2a$ 6 5 10 -1 2
Lcd by Karl von Laudermann 11/93
$$$$$$@
$$$$$$@
$$$$$$@
$$$$$$@
$$$$$$@
$$$$$$@@
$ $@
$ | $@
$ + $@
$ $@
$ - $@
$ $@@
$ $@
$ | |$@
$ $@
$ $@
$ $@
$ $@@
$___ $@
| | |$@
|-+-|$@
| | |$@
$--- $@
$ $@@
$___ $@
| | $@
-+- $@
$ | |$@
$--- $@
$ $@@
$_ $@
| |/ $@
-+- $@
$/| |$@
$ - $@
$ $@@
$ _ $@
$ | |$@
-+- $@
| | $@
$--- $@
$ $@@
$ $@
$ / $@
$ $@
$ $@
$ $@
$ $@@
$ _ $@
$ | $@
$ + $@
$ | $@
$ - $@
$ $@@
$_ $@
$ | $@
$ + $@
$ | $@
$- $@
$ $@@
$ $@
$\\|/ $@
$-+- $@
$/|\\ $@
$ $@
$ $@@
$ $@
$ | $@
$-+- $@
$ | $@
$ $@
$ $@@
$ $@
$ $@
$ $@
$/ $@
$ $@
$ $@@
$ $@
$ $@
$-+- $@
$ $@
$ $@
$ $@@
$ $@
$ $@
$ $@
$ $@
$ - $@
$ $@@
$ $@
$ / $@
$ + $@
$/ $@
$ $@
$ $@@
$___ $@
| /|$@
| + |$@
|/ |$@
$--- $@
$ $@@
$_ $@
$ | $@
$ + $@
$ | $@
$--- $@
$ $@@
$___ $@
$ |$@
$-+- $@
| $@
$--- $@
$ $@@
$___ $@
$ |$@
$-+- $@
$ |$@
$--- $@
$ $@@
$ $@
| | $@
$-+- $@
$ | $@
$ $@
$ $@@
$___ $@
| $@
$-+- $@
$ |$@
$--- $@
$ $@@
$___ $@
| $@
|-+- $@
| |$@
$--- $@
$ $@@
$___ $@
$ / $@
$ + $@
$/ $@
$ $@
$ $@@
$___ $@
| |$@
-+- $@
| |$@
$--- $@
$ $@@
$___ $@
| |$@
$-+-|$@
$ |$@
$--- $@
$ $@@
$ $@
$ | $@
$ $@
$ | $@
$ $@
$ $@@
$ $@
$ | $@
$ $@
$/ $@
$ $@
$ $@@
$ $@
$ / $@
$ + $@
$ \\ $@
$ $@
$ $@@
$ $@
$ $@
$-+- $@
$ $@
$--- $@
$ $@@
$ $@
$\\ $@
$ + $@
$/ $@
$ $@
$ $@@
$___ $@
| |$@
$ +- $@
$ | $@
$ - $@
$ $@@
$___ $@
$ |$@
$- |$@
| | |$@
$--- $@
$ $@@
$___ $@
| |$@
|-+-|$@
| |$@
$ $@
$ $@@
$___ $@
$ | |$@
$ +- $@
$ | |$@
$--- $@
$ $@@
$___ $@
| $@
| $@
| $@
$--- $@
$ $@@
$___ $@
$ | |$@
$ + |$@
$ | |$@
$--- $@
$ $@@
$___ $@
| $@
|-+- $@
| $@
$--- $@
$ $@@
$___ $@
| $@
|-+- $@
| $@
$ $@
$ $@@
$___ $@
| $@
| +- $@
| |$@
$--- $@
$ $@@
$ $@
| |$@
|-+-|$@
| |$@
$ $@
$ $@@
$___ $@
$ | $@
$ + $@
$ | $@
$--- $@
$ $@@
$ $@
$ |$@
$ |$@
| |$@
$--- $@
$ $@@
$ $@
| / $@
|-+ $@
| \\ $@
$ $@
$ $@@
$ $@
| $@
| $@
| $@
$--- $@
$ $@@
$ $@
|\\ /|$@
| + |$@
| |$@
$ $@
$ $@@
$ $@
|\\ |$@
| + |$@
| \\|$@
$ $@
$ $@@
$___ $@
| |$@
| |$@
| |$@
$--- $@
$ $@@
$___ $@
| |$@
|-+- $@
| $@
$ $@
$ $@@
$___ $@
| |$@
| |$@
| \\|$@
$--- $@
$ $@@
$___ $@
| |$@
|-+- $@
| \\ $@
$ $@
$ $@@
$___ $@
| $@
$-+- $@
$ |$@
$--- $@
$ $@@
$___ $@
$ | $@
$ + $@
$ | $@
$ $@
$ $@@
$ $@
| |$@
| |$@
| |$@
$--- $@
$ $@@
$ $@
| / $@
| + $@
|/ $@
$ $@
$ $@@
$ $@
| |$@
| + |$@
|/ \\|$@
$ $@
$ $@@
$ $@
$\\ / $@
$ + $@
$/ \\ $@
$ $@
$ $@@
$ $@
$\\ / $@
$ + $@
$ | $@
$ $@
$ $@@
$___ $@
$ / $@
$ + $@
$/ $@
$--- $@
$ $@@
$ __ $@
$ | $@
$ + $@
$ | $@
$ -- $@
$ $@@
$ $@
$\\ $@
$ + $@
$ \\ $@
$ $@
$ $@@
$__ $@
$ | $@
$ + $@
$ | $@
$-- $@
$ $@@
$ $@
$ /|$@
$ $@
$ $@
$ $@
$ $@@
$ $@
$ $@
$ $@
$ $@
$--- $@
$ $@@
$ $@
$\\ $@
$ $@
$ $@
$ $@
$ $@@
$ $@
$ $@
$- $@
| | $@
$-- $@
$ $@@
$ $@
| $@
|- $@
| | $@
$- $@
$ $@@
$ $@
$ $@
$- $@
| $@
$- $@
$ $@@
$ $@
$ |$@
$ -|$@
$ | |$@
$ - $@
$ $@@
$ $@
$ $@
$- $@
|/ $@
$-- $@
$ $@@
$ _ $@
$ | $@
$-+- $@
$ | $@
$ $@
$ $@@
$ _ $@
$ | |$@
$ -|$@
$ |$@
$ - $@
$ $@@
$ $@
| $@
|- $@
| | $@
$ $@
$ $@@
$ _ $@
$ $@
$ + $@
$ | $@
$ $@
$ $@@
$ _ $@
$ $@
$ + $@
| | $@
$- $@
$ $@@
$ $@
$ | $@
$ +- $@
$ |\\ $@
$ $@
$ $@@
$ $@
$ | $@
$ + $@
$ | $@
$ - $@
$ $@@
$ $@
$ $@
|- - $@
| | |$@
$ $@
$ $@@
$ $@
$ $@
|- $@
| | $@
$ $@
$ $@@
$ $@
$ $@
$- $@
| | $@
$- $@
$ $@@
$_ $@
| | $@
|- $@
| $@
$ $@
$ $@@
$ _ $@
$ | |$@
$ -|$@
$ |$@
$ $@
$ $@@
$ $@
$ $@
|- $@
| $@
$ $@
$ $@@
$ $@
$ $@
$ - $@
$ \\ $@
$ - $@
$ $@@
$ $@
$ | $@
$-+- $@
$ | $@
$ - $@
$ $@@
$ $@
$ $@
$ $@
| | $@
$-- $@
$ $@@
$ $@
$ $@
$ $@
|/ $@
$ $@
$ $@@
$ $@
$ $@
| + |$@
|/ \\|$@
$ $@
$ $@@
$ $@
$ $@
$- - $@
$ | $@
$- - $@
$ $@@
$ $@
$\\ / $@
$ + $@
$/ $@
$ $@
$ $@@
$ $@
$ $@
$- $@
$/ $@
$- $@
$ $@@
$ _ $@
$ | $@
$-+ $@
$ | $@
$ - $@
$ $@@
$ $@
$ | $@
$ + $@
$ | $@
$ $@
$ $@@
$_ $@
$ | $@
$ +- $@
$ | $@
$- $@
$ $@@
$ $@
|\\| $@
$ $@
$ $@
$ $@
$ $@@
$_ _ $@
|\\ $@
|-+ $@
| \\ $@
$ $@
$ $@@
$_ _ $@
$@
-+- $@
| |$@
$--- $@
$ $@@
$_ _ $@
$ $@
| |$@
| |$@
$--- $@
$ $@@
$_ _ $@
$ $@
$- $@
| | $@
$-- $@
$ $@@
$_ _ $@
$ $@
$- $@
| | $@
$- $@
$ $@@
$_ _ $@
$ $@
$ $@
| | $@
$-- $@
$ $@@
$___ $@
| |$@
| - $@
| |$@
$ - $@
$ $@@
`
@@ -0,0 +1,13 @@
{
"all": true,
"check-coverage": false,
"reporter": ["text-summary", "text", "html", "json"],
"lines": 86,
"statements": 85.93,
"functions": 82.43,
"branches": 76.06,
"exclude": [
"coverage",
"dist"
]
}
@@ -0,0 +1 @@
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../src/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["import { PathCache, TrieNode } from './utils';\n\nexport interface ITSCAliasConfig {\n replacers?: ReplacerOptions;\n resolveFullPaths?: boolean;\n verbose?: boolean;\n fileExtensions?: Partial<FileExtensions>;\n}\n\nexport type PathLike = {\n [key: string]: string[];\n};\n\nexport type StringReplacer = (importStatement: string) => string;\n\nexport interface FileExtensions {\n inputGlob: string;\n outputCheck: string[];\n}\n\nexport interface ITSConfig {\n baseUrl?: string;\n outDir?: string;\n declarationDir?: string;\n paths?: PathLike;\n replacers?: ReplacerOptions;\n resolveFullPaths?: boolean;\n verbose?: boolean;\n fileExtensions?: Partial<FileExtensions>;\n}\n\nexport interface IProjectConfig {\n configFile: string;\n baseUrl: string;\n outDir: string;\n configDir: string;\n outPath: string;\n confDirParentFolderName: string;\n hasExtraModule: boolean;\n configDirInOutPath: string;\n relConfDirPathInOutPath: string;\n pathCache: PathCache;\n inputGlob: string;\n}\n\nexport interface IConfig extends IProjectConfig {\n output: IOutput;\n aliasTrie: TrieNode<Alias>;\n replacers: AliasReplacer[];\n}\n\nexport interface ReplaceTscAliasPathsOptions {\n configFile?: string;\n outDir?: string;\n declarationDir?: string;\n watch?: boolean;\n verbose?: boolean;\n debug?: boolean;\n resolveFullPaths?: boolean;\n resolveFullExtension?: '.js' | '.mjs' | '.cjs';\n replacers?: string[];\n output?: IOutput;\n aliasTrie?: TrieNode<Alias>;\n fileExtensions?: Partial<FileExtensions>;\n}\n\nexport interface Alias {\n shouldPrefixMatchWildly: boolean;\n prefix: string;\n paths: AliasPath[];\n}\n\nexport interface AliasPath {\n basePath: string;\n path: string;\n isExtra: boolean;\n}\n\nexport interface AliasReplacerArguments {\n orig: string;\n file: string;\n config: IConfig;\n}\n\nexport type AliasReplacer = (args: AliasReplacerArguments) => string;\n\nexport interface ReplacerOptions {\n [key: string]: {\n enabled: boolean;\n file?: string;\n };\n}\n\nexport interface IOutput {\n /**\n * verbose value sets if the output should act verbose.\n */\n verbose: boolean;\n /**\n * debug logs a message on the debug level.\n * @param {string} message message to log.\n */\n debug: (message: string, obj?: unknown) => void;\n /**\n * info logs a message on the info level.\n * @param {string} message message to log.\n */\n info(message: string): void;\n /**\n * error logs a message on the error level and may exit the process.\n * @param {string} message message to log.\n * @param {boolean} exitProcess if process should exit after this error.\n */\n error(message: string, exitProcess?: boolean): void;\n /**\n * clear clears the displayed logs.\n */\n clear(): void;\n /**\n * assert claim an assertion when it fails an error is logged\n * and the process exited.\n * @param {unknown} claim assertion that is being claimed.\n * @param {string} message message to log when claim fails.\n */\n assert(claim: unknown, message: string): void;\n}\n"]}
@@ -0,0 +1 @@
{"version":3,"names":["_identifier","require","_keyword"],"sources":["../src/index.ts"],"sourcesContent":["export {\n isIdentifierName,\n isIdentifierChar,\n isIdentifierStart,\n} from \"./identifier.ts\";\nexport {\n isReservedWord,\n isStrictBindOnlyReservedWord,\n isStrictBindReservedWord,\n isStrictReservedWord,\n isKeyword,\n} from \"./keyword.ts\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AAKA,IAAAC,QAAA,GAAAD,OAAA","ignoreList":[]}
@@ -0,0 +1 @@
{"mappings":";;AAAA;;;;;;;;;;CAUC","sources":["packages/@react-aria/toggle/src/index.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport {useToggle} from './useToggle';\nexport type {AriaToggleProps} from '@react-types/checkbox';\nexport type {ToggleAria} from './useToggle';\n"],"names":[],"version":3,"file":"module.js.map"}
@@ -0,0 +1,14 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Decode = Decode;
const index_1 = require("../transform/index");
const index_2 = require("../check/index");
const index_3 = require("../../errors/index");
/** Decodes a value or throws if error */
function Decode(...args) {
const [schema, references, value] = args.length === 3 ? [args[0], args[1], args[2]] : [args[0], [], args[1]];
if (!(0, index_2.Check)(schema, references, value))
throw new index_1.TransformDecodeCheckError(schema, value, (0, index_3.Errors)(schema, references, value).First());
return (0, index_1.HasTransform)(schema, references) ? (0, index_1.TransformDecode)(schema, references, value) : value;
}
@@ -0,0 +1,20 @@
declare function deepmerge<T>(x: Partial<T>, y: Partial<T>, options?: deepmerge.Options): T;
declare function deepmerge<T1, T2>(x: Partial<T1>, y: Partial<T2>, options?: deepmerge.Options): T1 & T2;
declare namespace deepmerge {
export interface Options {
arrayMerge?(target: any[], source: any[], options?: ArrayMergeOptions): any[];
clone?: boolean;
customMerge?: (key: string, options?: Options) => ((x: any, y: any) => any) | undefined;
isMergeableObject?(value: object): boolean;
}
export interface ArrayMergeOptions {
isMergeableObject(value: object): boolean;
cloneUnlessOtherwiseSpecified(value: object, options?: Options): object;
}
export function all (objects: object[], options?: Options): object;
export function all<T> (objects: Partial<T>[], options?: Options): T;
}
export = deepmerge;
@@ -0,0 +1,3 @@
import type { Coordinates, ClientRect } from '../../types';
export declare function createRectAdjustmentFn(modifier: number): (rect: ClientRect, ...adjustments: Coordinates[]) => ClientRect;
export declare const getAdjustedRect: (rect: ClientRect, ...adjustments: Coordinates[]) => ClientRect;
@@ -0,0 +1,65 @@
{
"ak": 4,
"ar": 7,
"ay": 10,
"az": 11,
"cr": 26,
"et": 40,
"fa": 42,
"ff": 43,
"gn": 52,
"ik": 69,
"iu": 74,
"kg": 81,
"kr": 89,
"ku": 91,
"kv": 92,
"lv": 103,
"mg": 104,
"mn": 109,
"ms": 112,
"ne": 118,
"no": 122,
"oj": 127,
"om": 128,
"or": 129,
"ps": 134,
"qu": 136,
"sa": 142,
"sc": 143,
"sh": 147,
"sq": 154,
"sw": 160,
"uz": 178,
"yi": 185,
"za": 187,
"zh": 188,
"bal": 721,
"bik": 919,
"bnc": 1038,
"bua": 1209,
"chm": 1460,
"del": 1766,
"den": 1768,
"din": 1820,
"doi": 1899,
"gba": 2253,
"gon": 2451,
"grb": 2473,
"hai": 2584,
"hmn": 2663,
"jrb": 3054,
"kln": 3368,
"kok": 3441,
"kpe": 3458,
"lah": 3742,
"luy": 4057,
"man": 4094,
"mwr": 4644,
"raj": 5833,
"rom": 5940,
"syr": 6495,
"tmh": 6768,
"zap": 8088,
"zza": 8261
}
@@ -0,0 +1,44 @@
import { Transition, Target, TargetAndTransition } from 'framer-motion';
type WithMotionState<P> = Partial<Record<"enter" | "exit", P>>;
type TransitionConfig = WithMotionState<Transition>;
type TransitionEndConfig = WithMotionState<Target>;
type TransitionProperties = {
/**
* Custom `transition` definition for `enter` and `exit`
*/
transition?: TransitionConfig;
/**
* Custom `transitionEnd` definition for `enter` and `exit`
*/
transitionEnd?: TransitionEndConfig;
};
type TargetResolver<P = {}> = (props: P & TransitionProperties) => TargetAndTransition;
type Variant<P = {}> = TargetAndTransition | TargetResolver<P>;
type Variants<P = {}> = Record<string, {
enter: Variant<P>;
exit: Variant<P>;
initial?: Variant<P>;
}>;
declare const TRANSITION_EASINGS: {
readonly ease: readonly [0.36, 0.66, 0.4, 1];
readonly easeIn: readonly [0.4, 0, 1, 1];
readonly easeOut: readonly [0, 0, 0.2, 1];
readonly easeInOut: readonly [0.4, 0, 0.2, 1];
readonly spring: readonly [0.155, 1.105, 0.295, 1.12];
readonly springOut: readonly [0.57, -0.15, 0.62, 0.07];
readonly softSpring: readonly [0.16, 1.11, 0.3, 1.02];
};
declare const TRANSITION_DEFAULTS: {
readonly enter: {
readonly duration: 0.2;
readonly ease: readonly [0, 0, 0.2, 1];
};
readonly exit: {
readonly duration: 0.1;
readonly ease: readonly [0.4, 0, 1, 1];
};
};
declare const TRANSITION_VARIANTS: Variants;
export { TRANSITION_DEFAULTS, TRANSITION_EASINGS, TRANSITION_VARIANTS, TransitionConfig, TransitionEndConfig, TransitionProperties, Variants };
@@ -0,0 +1,14 @@
module.exports = {
"ascending": `vzostupne`,
"ascendingSort": (args)=>`zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${args.columnName}`,
"columnSize": (args)=>`Po\u{10D}et pixelov: ${args.value}`,
"descending": `zostupne`,
"descendingSort": (args)=>`zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${args.columnName}`,
"resizerDescription": `Stla\u{10D}en\xedm kl\xe1vesu Enter za\u{10D}nete zmenu ve\u{13E}kosti`,
"select": `Vybra\u{165}`,
"selectAll": `Vybra\u{165} v\u{161}etko`,
"sortable": `zoradite\u{13E}n\xfd st\u{13A}pec`
};
//# sourceMappingURL=sk-SK.main.js.map
@@ -0,0 +1,23 @@
const { it, describe } = require('mocha');
const assume = require('assume');
const kuler = require('./');
describe('kuler', function () {
it('renders colors in the terminal', function () {
console.log(' VISUAL INSPECTION');
console.log(' '+ kuler('red').style('F00'));
console.log(' '+ kuler('black').style('#000'));
console.log(' '+ kuler('white').style('#FFFFFF'));
console.log(' '+ kuler('lime').style('AAFF5B'));
console.log(' '+ kuler('violet').style('#ee82ee'));
console.log(' '+ kuler('purple').style('#800080'));
console.log(' '+ kuler('purple').style('#800080'), 'correctly reset to normal color');
console.log(' '+ kuler('green', '#008000'));
});
describe('#style', function () {
it('has a style method', function () {
assume(kuler('what').style).is.a('function');
});
});
});
@@ -0,0 +1,3 @@
declare const _default: () => string;
export default _default;
//# sourceMappingURL=generateId.d.ts.map
@@ -0,0 +1,15 @@
The ISC License
Copyright (c) 2011-2023 Isaac Z. Schlueter and Contributors
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -0,0 +1,25 @@
const { EOL } = require('os')
const getFirstRegexpMatchOrDefault = (text, regexp, defaultValue) => {
regexp.lastIndex = 0 // https://stackoverflow.com/a/11477448/4536543
let match = regexp.exec(text)
if (match !== null) {
return match[1]
} else {
return defaultValue
}
}
const DEFAULT_INDENT = ' '
const INDENT_REGEXP = /^([ \t]+)[^\s]/m
module.exports.detectIndent = text =>
getFirstRegexpMatchOrDefault(text, INDENT_REGEXP, DEFAULT_INDENT)
module.exports.DEFAULT_INDENT = DEFAULT_INDENT
const DEFAULT_EOL = EOL
const EOL_REGEXP = /(\r\n|\n|\r)/g
module.exports.detectEOL = text =>
getFirstRegexpMatchOrDefault(text, EOL_REGEXP, DEFAULT_EOL)
module.exports.DEFAULT_EOL = DEFAULT_EOL
@@ -0,0 +1,4 @@
import { DateTimeSkeleton, MessageFormatElement } from './types';
export declare function printAST(ast: MessageFormatElement[]): string;
export declare function doPrintAST(ast: MessageFormatElement[], isInPlural: boolean): string;
export declare function printDateTimeSkeleton(style: DateTimeSkeleton): string;
@@ -0,0 +1,36 @@
'use strict';
var $TypeError = require('es-errors/type');
var hasOwn = require('hasown');
var allowed = {
__proto__: null,
'[[Configurable]]': true,
'[[Enumerable]]': true,
'[[Get]]': true,
'[[Set]]': true,
'[[Value]]': true,
'[[Writable]]': true
};
// https://262.ecma-international.org/6.0/#sec-property-descriptor-specification-type
module.exports = function isPropertyDescriptor(Desc) {
if (!Desc || typeof Desc !== 'object') {
return false;
}
for (var key in Desc) { // eslint-disable-line
if (hasOwn(Desc, key) && !allowed[key]) {
return false;
}
}
var isData = hasOwn(Desc, '[[Value]]') || hasOwn(Desc, '[[Writable]]');
var IsAccessor = hasOwn(Desc, '[[Get]]') || hasOwn(Desc, '[[Set]]');
if (isData && IsAccessor) {
throw new $TypeError('Property Descriptors may not be both accessor and data descriptors');
}
return true;
};
@@ -0,0 +1,51 @@
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/common/text.ts
var text_exports = {};
__export(text_exports, {
safeAriaLabel: () => safeAriaLabel,
safeInitials: () => safeInitials,
safeText: () => safeText
});
module.exports = __toCommonJS(text_exports);
var safeText = (text) => {
if ((text == null ? void 0 : text.length) <= 4) return text;
return text == null ? void 0 : text.slice(0, 3);
};
var safeInitials = (text) => {
const initials = (text == null ? void 0 : text.trim().split(/[\s\-_.]+/).filter(Boolean).map((word) => word.charAt(0).toUpperCase()).join("")) || "";
return safeText(initials);
};
var safeAriaLabel = (...texts) => {
let ariaLabel = " ";
for (const text of texts) {
if (typeof text === "string" && text.length > 0) {
ariaLabel = text;
break;
}
}
return ariaLabel;
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
safeAriaLabel,
safeInitials,
safeText
});
@@ -0,0 +1,101 @@
/**
* @fileoverview Rule to disallow assignments to native objects or read-only global variables
* @author Ilya Volodin
*/
"use strict";
//------------------------------------------------------------------------------
// Rule Definition
//------------------------------------------------------------------------------
/** @type {import('../types').Rule.RuleModule} */
module.exports = {
meta: {
type: "suggestion",
defaultOptions: [{ exceptions: [] }],
docs: {
description:
"Disallow assignments to native objects or read-only global variables",
recommended: true,
url: "https://eslint.org/docs/latest/rules/no-global-assign",
},
schema: [
{
type: "object",
properties: {
exceptions: {
type: "array",
items: { type: "string" },
uniqueItems: true,
},
},
additionalProperties: false,
},
],
messages: {
globalShouldNotBeModified:
"Read-only global '{{name}}' should not be modified.",
},
},
create(context) {
const sourceCode = context.sourceCode;
const [{ exceptions }] = context.options;
/**
* Reports write references.
* @param {Reference} reference A reference to check.
* @param {number} index The index of the reference in the references.
* @param {Reference[]} references The array that the reference belongs to.
* @returns {void}
*/
function checkReference(reference, index, references) {
const identifier = reference.identifier;
if (
reference.init === false &&
reference.isWrite() &&
/*
* Destructuring assignments can have multiple default value,
* so possibly there are multiple writeable references for the same identifier.
*/
(index === 0 || references[index - 1].identifier !== identifier)
) {
context.report({
node: identifier,
messageId: "globalShouldNotBeModified",
data: {
name: identifier.name,
},
});
}
}
/**
* Reports write references if a given variable is read-only builtin.
* @param {Variable} variable A variable to check.
* @returns {void}
*/
function checkVariable(variable) {
if (
variable.writeable === false &&
!exceptions.includes(variable.name)
) {
variable.references.forEach(checkReference);
}
}
return {
Program(node) {
const globalScope = sourceCode.getScope(node);
globalScope.variables.forEach(checkVariable);
},
};
},
};
@@ -0,0 +1,2 @@
/** Returns true if the left value deep-equals the right */
export declare function Equal<T>(left: T, right: unknown): right is T;
@@ -0,0 +1,93 @@
{
"name": "@vitest/ui",
"type": "module",
"version": "4.0.9",
"description": "UI for Vitest",
"license": "MIT",
"funding": "https://opencollective.com/vitest",
"homepage": "https://github.com/vitest-dev/vitest/tree/main/packages/ui#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/vitest-dev/vitest.git",
"directory": "packages/ui"
},
"bugs": {
"url": "https://github.com/vitest-dev/vitest/issues"
},
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./reporter": {
"types": "./reporter.d.ts",
"default": "./dist/reporter.js"
},
"./*": "./*"
},
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"*.d.ts",
"dist"
],
"peerDependencies": {
"vitest": "4.0.9"
},
"dependencies": {
"fflate": "^0.8.2",
"flatted": "^3.3.3",
"pathe": "^2.0.3",
"sirv": "^3.0.2",
"tinyglobby": "^0.2.15",
"tinyrainbow": "^3.0.3",
"@vitest/utils": "4.0.9"
},
"devDependencies": {
"@faker-js/faker": "^10.1.0",
"@iconify-json/carbon": "^1.2.14",
"@iconify-json/logos": "^1.2.10",
"@types/codemirror": "^5.60.17",
"@types/d3-force": "^3.0.10",
"@types/d3-selection": "^3.0.11",
"@types/ws": "^8.18.1",
"@unocss/reset": "^66.5.5",
"@vitejs/plugin-vue": "^6.0.1",
"@vue/test-utils": "^2.4.6",
"@vueuse/core": "^12.8.2",
"ansi-to-html": "^0.7.2",
"birpc": "^2.8.0",
"codemirror": "^5.65.18",
"codemirror-theme-vars": "^0.1.2",
"d3-graph-controller": "^3.1.6",
"floating-vue": "^5.2.2",
"mime": "^4.1.0",
"rollup": "^4.53.1",
"splitpanes": "^4.0.4",
"typescript": "^5.9.3",
"unocss": "^66.5.5",
"vite": "^5.0.0",
"vite-plugin-pages": "^0.33.1",
"vitest-browser-vue": "2.0.1",
"vue": "^3.5.24",
"vue-router": "^4.6.3",
"vue-tsc": "^3.1.3",
"vue-virtual-scroller": "2.0.0-beta.8",
"@vitest/browser-playwright": "4.0.9",
"@vitest/runner": "4.0.9",
"@vitest/ws-client": "4.0.9"
},
"scripts": {
"build": "premove dist && pnpm build:node && pnpm build:client",
"build:client": "vite build",
"build:node": "rollup -c",
"typecheck": "tsc --noEmit",
"typecheck:client": "vue-tsc --noEmit",
"dev:client": "vite",
"dev": "rollup -c --watch --watch.include 'node/**'",
"dev:ui": "pnpm run --stream '/^(dev|dev:client)$/'",
"test:ui": "vitest --browser"
}
}
@@ -0,0 +1 @@
{"mappings":";AAAA,4BAAiB;IAAG,eAAe,CAAC,UAAU,CAAC;AAC/C","sources":["packages/@react-aria/breadcrumbs/intl/pt-PT.json"],"sourcesContent":["{\n \"breadcrumbs\": \"Categorias\"\n}\n"],"names":[],"version":3,"file":"pt-PT.module.js.map"}
@@ -0,0 +1,90 @@
'use strict'
const http = require('http')
const { STATUS_CODES } = http
const Headers = require('./headers.js')
const Body = require('./body.js')
const { clone, extractContentType } = Body
const INTERNALS = Symbol('Response internals')
class Response extends Body {
constructor (body = null, opts = {}) {
super(body, opts)
const status = opts.status || 200
const headers = new Headers(opts.headers)
if (body !== null && body !== undefined && !headers.has('Content-Type')) {
const contentType = extractContentType(body)
if (contentType) {
headers.append('Content-Type', contentType)
}
}
this[INTERNALS] = {
url: opts.url,
status,
statusText: opts.statusText || STATUS_CODES[status],
headers,
counter: opts.counter,
trailer: Promise.resolve(opts.trailer || new Headers()),
}
}
get trailer () {
return this[INTERNALS].trailer
}
get url () {
return this[INTERNALS].url || ''
}
get status () {
return this[INTERNALS].status
}
get ok () {
return this[INTERNALS].status >= 200 && this[INTERNALS].status < 300
}
get redirected () {
return this[INTERNALS].counter > 0
}
get statusText () {
return this[INTERNALS].statusText
}
get headers () {
return this[INTERNALS].headers
}
clone () {
return new Response(clone(this), {
url: this.url,
status: this.status,
statusText: this.statusText,
headers: this.headers,
ok: this.ok,
redirected: this.redirected,
trailer: this.trailer,
})
}
get [Symbol.toStringTag] () {
return 'Response'
}
}
module.exports = Response
Object.defineProperties(Response.prototype, {
url: { enumerable: true },
status: { enumerable: true },
ok: { enumerable: true },
redirected: { enumerable: true },
statusText: { enumerable: true },
headers: { enumerable: true },
clone: { enumerable: true },
})
@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2020 Suren Atoyan
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.
@@ -0,0 +1,78 @@
/**
* Copyright (c) 2019 The xterm.js authors. All rights reserved.
* @license MIT
*/
import { IDisposable } from 'common/Types';
interface IListener<T, U = void> {
(arg1: T, arg2: U): void;
}
export interface IEvent<T, U = void> {
(listener: (arg1: T, arg2: U) => any): IDisposable;
}
export interface IEventEmitter<T, U = void> {
event: IEvent<T, U>;
fire(arg1: T, arg2: U): void;
dispose(): void;
}
export class EventEmitter<T, U = void> implements IEventEmitter<T, U> {
private _listeners: IListener<T, U>[] = [];
private _event?: IEvent<T, U>;
private _disposed: boolean = false;
public get event(): IEvent<T, U> {
if (!this._event) {
this._event = (listener: (arg1: T, arg2: U) => any) => {
this._listeners.push(listener);
const disposable = {
dispose: () => {
if (!this._disposed) {
for (let i = 0; i < this._listeners.length; i++) {
if (this._listeners[i] === listener) {
this._listeners.splice(i, 1);
return;
}
}
}
}
};
return disposable;
};
}
return this._event;
}
public fire(arg1: T, arg2: U): void {
const queue: IListener<T, U>[] = [];
for (let i = 0; i < this._listeners.length; i++) {
queue.push(this._listeners[i]);
}
for (let i = 0; i < queue.length; i++) {
queue[i].call(undefined, arg1, arg2);
}
}
public dispose(): void {
this.clearListeners();
this._disposed = true;
}
public clearListeners(): void {
if (this._listeners) {
this._listeners.length = 0;
}
}
}
export function forwardEvent<T>(from: IEvent<T>, to: IEventEmitter<T>): IDisposable {
return from(e => to.fire(e));
}
export function runAndSubscribe<T>(event: IEvent<T>, handler: (e: T | undefined) => any): IDisposable {
handler(undefined);
return event(e => handler(e));
}
@@ -0,0 +1,2 @@
import "./react-textarea-autosize.edge-light.cjs.js";
export { _default as default } from "./react-textarea-autosize.edge-light.cjs.default.js";
@@ -0,0 +1 @@
{"version":3,"file":"post_construct.int.spec.d.ts","sourceRoot":"","sources":["../../../../src/test/annotation/post_construct.int.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
{"version":3,"file":"inline-code.d.ts","sourceRoot":"","sources":["inline-code.js"],"names":[],"mappings":"AAOA;;;;;GAKG;AACH,iCALW,UAAU,KACV,OAAO,GAAG,SAAS,SACnB,KAAK,GACH,MAAM,CAyDlB;;;;gCAlEqC,OAAO;6BAAP,OAAO;2BADrB,wBAAwB;AAqEhD;;GAEG;AACH,mCAFa,MAAM,CAIlB"}
@@ -0,0 +1,56 @@
{
"name": "@heroui/use-intersection-observer",
"version": "2.2.14",
"description": "Tracks the intersection of a DOM element and its containing element or the viewport.",
"keywords": [
"use-intersection-observer"
],
"author": "HeroUI <support@heroui.com>",
"homepage": "https://heroui.com",
"license": "MIT",
"main": "dist/index.js",
"sideEffects": false,
"files": [
"dist"
],
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/heroui-inc/heroui.git",
"directory": "packages/hooks/use-intersection-observer"
},
"bugs": {
"url": "https://github.com/heroui-inc/heroui/issues"
},
"peerDependencies": {
"react": ">=18 || >=19.0.0-rc.0"
},
"clean-package": "../../../clean-package.config.json",
"tsup": {
"clean": true,
"target": "es2019",
"format": [
"cjs",
"esm"
]
},
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"./package.json": "./package.json"
},
"scripts": {
"build": "tsup src --dts",
"build:fast": "tsup src",
"dev": "pnpm build:fast --watch",
"clean": "rimraf dist .turbo",
"typecheck": "tsc --noEmit"
}
}
@@ -0,0 +1,8 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getReflectMetadata = getReflectMetadata;
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
function getReflectMetadata(target, metadataKey, propertyKey) {
return Reflect.getMetadata(metadataKey, target, propertyKey);
}
//# sourceMappingURL=getReflectMetadata.js.map
@@ -0,0 +1,29 @@
"use client";
// src/link-icon.tsx
import { jsx, jsxs } from "react/jsx-runtime";
var LinkIcon = () => /* @__PURE__ */ jsxs(
"svg",
{
"aria-hidden": "true",
className: "flex mx-1 text-current self-center",
fill: "none",
height: "1em",
shapeRendering: "geometricPrecision",
stroke: "currentColor",
strokeLinecap: "round",
strokeLinejoin: "round",
strokeWidth: "1.5",
viewBox: "0 0 24 24",
width: "1em",
children: [
/* @__PURE__ */ jsx("path", { d: "M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6" }),
/* @__PURE__ */ jsx("path", { d: "M15 3h6v6" }),
/* @__PURE__ */ jsx("path", { d: "M10 14L21 3" })
]
}
);
export {
LinkIcon
};
@@ -0,0 +1,108 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _ariaQuery = require("aria-query");
var _jsxAstUtils = require("jsx-ast-utils");
var _arrayIncludes = _interopRequireDefault(require("array-includes"));
var _getElementType = _interopRequireDefault(require("../util/getElementType"));
var _isInteractiveElement = _interopRequireDefault(require("../util/isInteractiveElement"));
var _isInteractiveRole = _interopRequireDefault(require("../util/isInteractiveRole"));
var _isNonLiteralProperty = _interopRequireDefault(require("../util/isNonLiteralProperty"));
var _schemas = require("../util/schemas");
var _getTabIndex = _interopRequireDefault(require("../util/getTabIndex"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
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(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : 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); } /**
* @fileoverview Disallow tabindex on static and noninteractive elements
* @author jessebeach
*
*/ // ----------------------------------------------------------------------------
// Rule Definition
// ----------------------------------------------------------------------------
var errorMessage = '`tabIndex` should only be declared on interactive elements.';
var schema = (0, _schemas.generateObjSchema)({
roles: _objectSpread(_objectSpread({}, _schemas.arraySchema), {}, {
description: 'An array of ARIA roles'
}),
tags: _objectSpread(_objectSpread({}, _schemas.arraySchema), {}, {
description: 'An array of HTML tag names'
})
});
var _default = exports["default"] = {
meta: {
docs: {
url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/no-noninteractive-tabindex.md',
description: '`tabIndex` should only be declared on interactive elements.'
},
schema: [schema]
},
create: function create(context) {
var options = context.options;
var elementType = (0, _getElementType["default"])(context);
return {
JSXOpeningElement: function (_JSXOpeningElement) {
function JSXOpeningElement(_x) {
return _JSXOpeningElement.apply(this, arguments);
}
JSXOpeningElement.toString = function () {
return _JSXOpeningElement.toString();
};
return JSXOpeningElement;
}(function (node) {
var type = elementType(node);
var attributes = node.attributes;
var tabIndexProp = (0, _jsxAstUtils.getProp)(attributes, 'tabIndex');
var tabIndex = (0, _getTabIndex["default"])(tabIndexProp);
// Early return;
if (typeof tabIndex === 'undefined') {
return;
}
var role = (0, _jsxAstUtils.getLiteralPropValue)((0, _jsxAstUtils.getProp)(node.attributes, 'role'));
if (!_ariaQuery.dom.has(type)) {
// Do not test higher level JSX components, as we do not know what
// low-level DOM element this maps to.
return;
}
// Allow for configuration overrides.
var _ref = options[0] || {},
tags = _ref.tags,
roles = _ref.roles,
allowExpressionValues = _ref.allowExpressionValues;
if (tags && (0, _arrayIncludes["default"])(tags, type)) {
return;
}
if (roles && (0, _arrayIncludes["default"])(roles, role)) {
return;
}
if (allowExpressionValues === true && (0, _isNonLiteralProperty["default"])(attributes, 'role')) {
// Special case if role is assigned using ternary with literals on both side
var roleProp = (0, _jsxAstUtils.getProp)(attributes, 'role');
if (roleProp && roleProp.type === 'JSXAttribute' && roleProp.value.type === 'JSXExpressionContainer') {
if (roleProp.value.expression.type === 'ConditionalExpression') {
if (roleProp.value.expression.consequent.type === 'Literal' && roleProp.value.expression.alternate.type === 'Literal') {
return;
}
}
}
return;
}
if ((0, _isInteractiveElement["default"])(type, attributes) || (0, _isInteractiveRole["default"])(type, attributes)) {
return;
}
if (tabIndex >= 0) {
context.report({
node: tabIndexProp,
message: errorMessage
});
}
})
};
}
};
module.exports = exports.default;
@@ -0,0 +1,109 @@
import {gridIds as $2140fb2337097f2d$export$552312adfd451dab} from "./utils.module.js";
import $dDeJM$intlStringsmodulejs from "./intlStrings.module.js";
import {TableKeyboardDelegate as $0ba3c81c7f1caedd$export$da43f8f5cb04028d} from "./TableKeyboardDelegate.module.js";
import {announce as $dDeJM$announce} from "@react-aria/live-announcer";
import {useGrid as $dDeJM$useGrid} from "@react-aria/grid";
import {useId as $dDeJM$useId, useDescription as $dDeJM$useDescription, useUpdateEffect as $dDeJM$useUpdateEffect, mergeProps as $dDeJM$mergeProps} from "@react-aria/utils";
import {tableNestedRows as $dDeJM$tableNestedRows} from "@react-stately/flags";
import {useCollator as $dDeJM$useCollator, useLocale as $dDeJM$useLocale, useLocalizedStringFormatter as $dDeJM$useLocalizedStringFormatter} from "@react-aria/i18n";
import {useMemo as $dDeJM$useMemo} from "react";
function $parcel$interopDefault(a) {
return a && a.__esModule ? a.default : a;
}
/*
* Copyright 2020 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
function $6e31608fbba75bab$export$25bceaac3c7e4dc7(props, state, ref) {
let { keyboardDelegate: keyboardDelegate, isVirtualized: isVirtualized, layoutDelegate: layoutDelegate, layout: layout } = props;
// By default, a KeyboardDelegate is provided which uses the DOM to query layout information (e.g. for page up/page down).
// When virtualized, the layout object will be passed in as a prop and override this.
let collator = (0, $dDeJM$useCollator)({
usage: 'search',
sensitivity: 'base'
});
let { direction: direction } = (0, $dDeJM$useLocale)();
let disabledBehavior = state.selectionManager.disabledBehavior;
let delegate = (0, $dDeJM$useMemo)(()=>keyboardDelegate || new (0, $0ba3c81c7f1caedd$export$da43f8f5cb04028d)({
collection: state.collection,
disabledKeys: state.disabledKeys,
disabledBehavior: disabledBehavior,
ref: ref,
direction: direction,
collator: collator,
layoutDelegate: layoutDelegate,
layout: layout
}), [
keyboardDelegate,
state.collection,
state.disabledKeys,
disabledBehavior,
ref,
direction,
collator,
layoutDelegate,
layout
]);
let id = (0, $dDeJM$useId)(props.id);
(0, $2140fb2337097f2d$export$552312adfd451dab).set(state, id);
let { gridProps: gridProps } = (0, $dDeJM$useGrid)({
...props,
id: id,
keyboardDelegate: delegate
}, state, ref);
// Override to include header rows
if (isVirtualized) gridProps['aria-rowcount'] = state.collection.size + state.collection.headerRows.length;
if ((0, $dDeJM$tableNestedRows)() && 'expandedKeys' in state) gridProps.role = 'treegrid';
let { column: column, direction: sortDirection } = state.sortDescriptor || {};
let stringFormatter = (0, $dDeJM$useLocalizedStringFormatter)((0, ($parcel$interopDefault($dDeJM$intlStringsmodulejs))), '@react-aria/table');
let sortDescription = (0, $dDeJM$useMemo)(()=>{
var _state_collection_columns_find;
var _state_collection_columns_find_textValue;
let columnName = (_state_collection_columns_find_textValue = (_state_collection_columns_find = state.collection.columns.find((c)=>c.key === column)) === null || _state_collection_columns_find === void 0 ? void 0 : _state_collection_columns_find.textValue) !== null && _state_collection_columns_find_textValue !== void 0 ? _state_collection_columns_find_textValue : '';
return sortDirection && column ? stringFormatter.format(`${sortDirection}Sort`, {
columnName: columnName
}) : undefined;
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [
sortDirection,
column,
state.collection.columns
]);
let descriptionProps = (0, $dDeJM$useDescription)(sortDescription);
// Only announce after initial render, tabbing to the table will tell you the initial sort info already
(0, $dDeJM$useUpdateEffect)(()=>{
if (sortDescription) (0, $dDeJM$announce)(sortDescription, 'assertive', 500);
}, [
sortDescription
]);
return {
gridProps: (0, $dDeJM$mergeProps)(gridProps, descriptionProps, {
// merge sort description with long press information
'aria-describedby': [
descriptionProps['aria-describedby'],
gridProps['aria-describedby']
].filter(Boolean).join(' ')
})
};
}
export {$6e31608fbba75bab$export$25bceaac3c7e4dc7 as useTable};
//# sourceMappingURL=useTable.module.js.map
@@ -0,0 +1,59 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const fsScandir = require("@nodelib/fs.scandir");
const common = require("./common");
const reader_1 = require("./reader");
class SyncReader extends reader_1.default {
constructor() {
super(...arguments);
this._scandir = fsScandir.scandirSync;
this._storage = [];
this._queue = new Set();
}
read() {
this._pushToQueue(this._root, this._settings.basePath);
this._handleQueue();
return this._storage;
}
_pushToQueue(directory, base) {
this._queue.add({ directory, base });
}
_handleQueue() {
for (const item of this._queue.values()) {
this._handleDirectory(item.directory, item.base);
}
}
_handleDirectory(directory, base) {
try {
const entries = this._scandir(directory, this._settings.fsScandirSettings);
for (const entry of entries) {
this._handleEntry(entry, base);
}
}
catch (error) {
this._handleError(error);
}
}
_handleError(error) {
if (!common.isFatalError(this._settings, error)) {
return;
}
throw error;
}
_handleEntry(entry, base) {
const fullpath = entry.path;
if (base !== undefined) {
entry.path = common.joinPathSegments(base, entry.name, this._settings.pathSegmentSeparator);
}
if (common.isAppliedFilter(this._settings.entryFilter, entry)) {
this._pushToStorage(entry);
}
if (entry.dirent.isDirectory() && common.isAppliedFilter(this._settings.deepFilter, entry)) {
this._pushToQueue(fullpath, base === undefined ? undefined : entry.path);
}
}
_pushToStorage(entry) {
this._storage.push(entry);
}
}
exports.default = SyncReader;
@@ -0,0 +1,4 @@
import type { Document } from '../doc/Document';
import type { Node } from '../nodes/Node';
import type { ToStringOptions } from '../options';
export declare function stringifyDocument(doc: Readonly<Document<Node, boolean>>, options: ToStringOptions): string;
@@ -0,0 +1,15 @@
import type * as errors from "./errors.js";
export interface $ZodConfig {
/** Custom error map. Overrides `config().localeError`. */
customError?: errors.$ZodErrorMap | undefined;
/** Localized error map. Lowest priority. */
localeError?: errors.$ZodErrorMap | undefined;
}
export const globalConfig: $ZodConfig = {};
export function config(config?: Partial<$ZodConfig>): $ZodConfig {
if (config) Object.assign(globalConfig, config);
return globalConfig;
}
@@ -0,0 +1,86 @@
function $parcel$export(e, n, v, s) {
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
}
$parcel$export(module.exports, "TreeCollection", () => $fae56b53b03726ff$export$863faf230ee2118a);
/*
* Copyright 2020 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/ class $fae56b53b03726ff$export$863faf230ee2118a {
*[Symbol.iterator]() {
yield* this.iterable;
}
get size() {
return this.keyMap.size;
}
getKeys() {
return this.keyMap.keys();
}
getKeyBefore(key) {
let node = this.keyMap.get(key);
var _node_prevKey;
return node ? (_node_prevKey = node.prevKey) !== null && _node_prevKey !== void 0 ? _node_prevKey : null : null;
}
getKeyAfter(key) {
let node = this.keyMap.get(key);
var _node_nextKey;
return node ? (_node_nextKey = node.nextKey) !== null && _node_nextKey !== void 0 ? _node_nextKey : null : null;
}
getFirstKey() {
return this.firstKey;
}
getLastKey() {
return this.lastKey;
}
getItem(key) {
var _this_keyMap_get;
return (_this_keyMap_get = this.keyMap.get(key)) !== null && _this_keyMap_get !== void 0 ? _this_keyMap_get : null;
}
at(idx) {
const keys = [
...this.getKeys()
];
return this.getItem(keys[idx]);
}
constructor(nodes, { expandedKeys: expandedKeys } = {}){
this.keyMap = new Map();
this.firstKey = null;
this.lastKey = null;
this.iterable = nodes;
expandedKeys = expandedKeys || new Set();
let visit = (node)=>{
this.keyMap.set(node.key, node);
if (node.childNodes && (node.type === 'section' || expandedKeys.has(node.key))) for (let child of node.childNodes)visit(child);
};
for (let node of nodes)visit(node);
let last = null;
let index = 0;
for (let [key, node] of this.keyMap){
if (last) {
last.nextKey = key;
node.prevKey = last.key;
} else {
this.firstKey = key;
node.prevKey = undefined;
}
if (node.type === 'item') node.index = index++;
last = node;
// Set nextKey as undefined since this might be the last node
// If it isn't the last node, last.nextKey will properly set at start of new loop
last.nextKey = undefined;
}
var _last_key;
this.lastKey = (_last_key = last === null || last === void 0 ? void 0 : last.key) !== null && _last_key !== void 0 ? _last_key : null;
}
}
//# sourceMappingURL=TreeCollection.main.js.map
@@ -0,0 +1,34 @@
import {useTable as $6e31608fbba75bab$export$25bceaac3c7e4dc7} from "./useTable.mjs";
import {useTableColumnHeader as $f329116d8ad0aba0$export$9514819a8c81e960} from "./useTableColumnHeader.mjs";
import {useTableRow as $b2db214c022798eb$export$7f2f6ae19e707aa5} from "./useTableRow.mjs";
import {useTableHeaderRow as $f917ee10f4c32dab$export$1b95a7d2d517b841} from "./useTableHeaderRow.mjs";
import {useTableCell as $7713593715703b24$export$49571c903d73624c} from "./useTableCell.mjs";
import {useTableSelectAllCheckbox as $2a795c53a101c542$export$1003db6a7e384b99, useTableSelectionCheckbox as $2a795c53a101c542$export$16ea7f650bd7c1bb} from "./useTableSelectionCheckbox.mjs";
import {useTableColumnResize as $e91ef4e5004e3774$export$52994e973806c219} from "./useTableColumnResize.mjs";
import {useGridRowGroup as $lJcFS$useGridRowGroup} from "@react-aria/grid";
/*
* Copyright 2020 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
function $0047e6c294ea075f$export$6fb1613bd7b28198() {
return (0, $lJcFS$useGridRowGroup)();
}
export {$0047e6c294ea075f$export$6fb1613bd7b28198 as useTableRowGroup, $6e31608fbba75bab$export$25bceaac3c7e4dc7 as useTable, $f329116d8ad0aba0$export$9514819a8c81e960 as useTableColumnHeader, $b2db214c022798eb$export$7f2f6ae19e707aa5 as useTableRow, $f917ee10f4c32dab$export$1b95a7d2d517b841 as useTableHeaderRow, $7713593715703b24$export$49571c903d73624c as useTableCell, $2a795c53a101c542$export$16ea7f650bd7c1bb as useTableSelectionCheckbox, $2a795c53a101c542$export$1003db6a7e384b99 as useTableSelectAllCheckbox, $e91ef4e5004e3774$export$52994e973806c219 as useTableColumnResize};
//# sourceMappingURL=module.js.map
@@ -0,0 +1,27 @@
var $8d8fdfab47455712$exports = require("./useControlledState.main.js");
var $ac8e4d4816275668$exports = require("./number.main.js");
function $parcel$export(e, n, v, s) {
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
}
$parcel$export(module.exports, "useControlledState", () => $8d8fdfab47455712$exports.useControlledState);
$parcel$export(module.exports, "clamp", () => $ac8e4d4816275668$exports.clamp);
$parcel$export(module.exports, "snapValueToStep", () => $ac8e4d4816275668$exports.snapValueToStep);
$parcel$export(module.exports, "toFixedNumber", () => $ac8e4d4816275668$exports.toFixedNumber);
/*
* Copyright 2020 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
//# sourceMappingURL=main.js.map
@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,qDAAqD,CAAC;AAClG,OAAO,EAAE,6BAA6B,EAAE,MAAM,uDAAuD,CAAC;AACtG,OAAO,EAAE,2BAA2B,EAAE,MAAM,qDAAqD,CAAC;AAClG,OAAO,EAAE,uBAAuB,EAAE,MAAM,iDAAiD,CAAC;AAC1F,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AACtF,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AACtF,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,EAAE,wBAAwB,EAAE,MAAM,kDAAkD,CAAC;AAC5F,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AACtF,OAAO,EAAE,yBAAyB,EAAE,MAAM,mDAAmD,CAAC;AAE9F,OAAO,EACL,2BAA2B,EAC3B,6BAA6B,EAC7B,2BAA2B,EAC3B,uBAAuB,EACvB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,kBAAkB,EAClB,wBAAwB,EACxB,qBAAqB,EACrB,yBAAyB,GAC1B,CAAC"}
@@ -0,0 +1 @@
{"name":"b3b","version":"0.0.1","requiresBuild":false,"files":{"package.json":{"checkedAt":1794532118747,"integrity":"sha512-MOamZvy+vhFhhHdxmg/kUMohb7xpcyBDJmos+PI7qZezqRxIIaiBK7QcMlevprLDMUhpk62EFurU9lVaN/9UEg==","mode":420,"size":612},".npmignore":{"checkedAt":1794532118747,"integrity":"sha512-ywxgNMgdLYjeAObOBwznGbnDm1HCBkEZNoLUWMxl52UBtAz3aHyaQfH7LFHpi7c0MjT71Jh7d4J19t14sMbHPQ==","mode":420,"size":58},"README.md":{"checkedAt":1794532118747,"integrity":"sha512-aft+b3dHqr4nQVBO6G7+Dl24dboFHDebkFlDWLCHa/H/QiBY6uvXo3THVs0D+i+rOdIA83U9A3H5pwMFZ1XHpg==","mode":420,"size":1648},"index.js":{"checkedAt":1794532118747,"integrity":"sha512-IAZD4cUVMIKa+aXj3nwogRZ4n7TKEV0/AEeLoJtdz5dsyiaHr50C8xRNnS0p4b0wi59OSVGBsCGFaTmEs4Q14g==","mode":420,"size":2392}}}
@@ -0,0 +1,115 @@
import { Action, UnknownAction } from './actions'
/* reducers */
/**
* A *reducer* is a function that accepts
* an accumulation and a value and returns a new accumulation. They are used
* to reduce a collection of values down to a single value
*
* Reducers are not unique to Redux—they are a fundamental concept in
* functional programming. Even most non-functional languages, like
* JavaScript, have a built-in API for reducing. In JavaScript, it's
* `Array.prototype.reduce()`.
*
* In Redux, the accumulated value is the state object, and the values being
* accumulated are actions. Reducers calculate a new state given the previous
* state and an action. They must be *pure functions*—functions that return
* the exact same output for given inputs. They should also be free of
* side-effects. This is what enables exciting features like hot reloading and
* time travel.
*
* Reducers are the most important concept in Redux.
*
* *Do not put API calls into reducers.*
*
* @template S The type of state consumed and produced by this reducer.
* @template A The type of actions the reducer can potentially respond to.
* @template PreloadedState The type of state consumed by this reducer the first time it's called.
*/
export type Reducer<
S = any,
A extends Action = UnknownAction,
PreloadedState = S
> = (state: S | PreloadedState | undefined, action: A) => S
/**
* Object whose values correspond to different reducer functions.
*
* @template S The combined state of the reducers.
* @template A The type of actions the reducers can potentially respond to.
* @template PreloadedState The combined preloaded state of the reducers.
*/
export type ReducersMapObject<
S = any,
A extends Action = UnknownAction,
PreloadedState = S
> = keyof PreloadedState extends keyof S
? {
[K in keyof S]: Reducer<
S[K],
A,
K extends keyof PreloadedState ? PreloadedState[K] : never
>
}
: never
/**
* Infer a combined state shape from a `ReducersMapObject`.
*
* @template M Object map of reducers as provided to `combineReducers(map: M)`.
*/
export type StateFromReducersMapObject<M> = M[keyof M] extends
| Reducer<any, any, any>
| undefined
? {
[P in keyof M]: M[P] extends Reducer<infer S, any, any> ? S : never
}
: never
/**
* Infer reducer union type from a `ReducersMapObject`.
*
* @template M Object map of reducers as provided to `combineReducers(map: M)`.
*/
export type ReducerFromReducersMapObject<M> = M[keyof M] extends
| Reducer<any, any, any>
| undefined
? M[keyof M]
: never
/**
* Infer action type from a reducer function.
*
* @template R Type of reducer.
*/
export type ActionFromReducer<R> = R extends Reducer<any, infer A, any>
? A
: never
/**
* Infer action union type from a `ReducersMapObject`.
*
* @template M Object map of reducers as provided to `combineReducers(map: M)`.
*/
export type ActionFromReducersMapObject<M> = ActionFromReducer<
ReducerFromReducersMapObject<M>
>
/**
* Infer a combined preloaded state shape from a `ReducersMapObject`.
*
* @template M Object map of reducers as provided to `combineReducers(map: M)`.
*/
export type PreloadedStateShapeFromReducersMapObject<M> = M[keyof M] extends
| Reducer<any, any, any>
| undefined
? {
[P in keyof M]: M[P] extends (
inputState: infer InputState,
action: UnknownAction
) => any
? InputState
: never
}
: never
@@ -0,0 +1 @@
{"mappings":"AAcA,6BAA6B,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,eAAe,IAAI;IAC1E,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;CAC7B,CAAC;AAMF;;;GAGG;AACH,uCAAuC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,CAAC,SAAS,eAAe,GAAG,MAAM;gBAItF,QAAQ,EAAE,iBAAiB,CAAC,EAAE,CAAC,CAAC,EAAE,aAAa,GAAE,MAAgB;IAS7E,+DAA+D;IAC/D,kBAAkB,CAAC,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,GAAG,CAAC;IAU7C,0DAA0D;IAC1D,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC;IAUjD,MAAM,CAAC,6BAA6B,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,CAAC,SAAS,eAAe,GAAG,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,0BAA0B,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI;CAyBjK;ACxED,wBAAwB,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,GAAG,SAAS,CAAC;AAC9E,8BAA8B,MAAM,GAAG,CAAC,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,CAAC,EAAE,yBAAyB,GAAG,EAAE,GAAG,CAAC,KAAK,MAAM,CAAC,CAAC;AACrH,sBAAsB,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,CAAC;AAK9C;;;GAGG;AACH,sCAAsC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,CAAC,SAAS,eAAe,GAAG,MAAM;gBAIrF,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,0BAA0B,CAAC,EAAE,CAAC,CAAC;IAKpE,gFAAgF;IAChF,MAAM,CAAC,GAAG,EAAE,CAAC,EAAE,SAAS,CAAC,EAAE,SAAS,GAAG,MAAM;IAK7C,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,EAAE,IAAI,GAAE,KAAK,cAA2B,GAAG,MAAM;IAkBxH,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IASvC,SAAS,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM;CAIjF","sources":["packages/@internationalized/string/src/packages/@internationalized/string/src/LocalizedStringDictionary.ts","packages/@internationalized/string/src/packages/@internationalized/string/src/LocalizedStringFormatter.ts","packages/@internationalized/string/src/packages/@internationalized/string/src/index.ts","packages/@internationalized/string/src/index.ts"],"sourcesContent":[null,null,null,"/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport type {Variables, LocalizedString} from './LocalizedStringFormatter';\nexport type {LocalizedStrings} from './LocalizedStringDictionary';\nexport {LocalizedStringDictionary} from './LocalizedStringDictionary';\nexport {LocalizedStringFormatter} from './LocalizedStringFormatter';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
@@ -0,0 +1,17 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.digest = digest;
const mapCoseAlgToWebCryptoAlg_js_1 = require("./mapCoseAlgToWebCryptoAlg.js");
const getWebCrypto_js_1 = require("./getWebCrypto.js");
/**
* Generate a digest of the provided data.
*
* @param data The data to generate a digest of
* @param algorithm A COSE algorithm ID that maps to a desired SHA algorithm
*/
async function digest(data, algorithm) {
const WebCrypto = await (0, getWebCrypto_js_1.getWebCrypto)();
const subtleAlgorithm = (0, mapCoseAlgToWebCryptoAlg_js_1.mapCoseAlgToWebCryptoAlg)(algorithm);
const hashed = await WebCrypto.subtle.digest(subtleAlgorithm, data);
return new Uint8Array(hashed);
}
@@ -0,0 +1,360 @@
/*********************************************************************
* NAN - Native Abstractions for Node.js
*
* Copyright (c) 2018 NAN contributors
*
* MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
********************************************************************/
#ifndef NAN_MAYBE_43_INL_H_
#define NAN_MAYBE_43_INL_H_
template<typename T>
using MaybeLocal = v8::MaybeLocal<T>;
inline
MaybeLocal<v8::String> ToDetailString(v8::Local<v8::Value> val) {
v8::Isolate *isolate = v8::Isolate::GetCurrent();
v8::EscapableHandleScope scope(isolate);
return scope.Escape(val->ToDetailString(isolate->GetCurrentContext())
.FromMaybe(v8::Local<v8::String>()));
}
inline
MaybeLocal<v8::Uint32> ToArrayIndex(v8::Local<v8::Value> val) {
v8::Isolate *isolate = v8::Isolate::GetCurrent();
v8::EscapableHandleScope scope(isolate);
return scope.Escape(val->ToArrayIndex(isolate->GetCurrentContext())
.FromMaybe(v8::Local<v8::Uint32>()));
}
inline
Maybe<bool> Equals(v8::Local<v8::Value> a, v8::Local<v8::Value>(b)) {
v8::Isolate *isolate = v8::Isolate::GetCurrent();
v8::HandleScope scope(isolate);
return a->Equals(isolate->GetCurrentContext(), b);
}
inline
MaybeLocal<v8::Object> NewInstance(v8::Local<v8::Function> h) {
v8::Isolate *isolate = v8::Isolate::GetCurrent();
v8::EscapableHandleScope scope(isolate);
return scope.Escape(h->NewInstance(isolate->GetCurrentContext())
.FromMaybe(v8::Local<v8::Object>()));
}
inline
MaybeLocal<v8::Object> NewInstance(
v8::Local<v8::Function> h
, int argc
, v8::Local<v8::Value> argv[]) {
v8::Isolate *isolate = v8::Isolate::GetCurrent();
v8::EscapableHandleScope scope(isolate);
return scope.Escape(h->NewInstance(isolate->GetCurrentContext(), argc, argv)
.FromMaybe(v8::Local<v8::Object>()));
}
inline
MaybeLocal<v8::Object> NewInstance(v8::Local<v8::ObjectTemplate> h) {
v8::Isolate *isolate = v8::Isolate::GetCurrent();
v8::EscapableHandleScope scope(isolate);
return scope.Escape(h->NewInstance(isolate->GetCurrentContext())
.FromMaybe(v8::Local<v8::Object>()));
}
inline MaybeLocal<v8::Function> GetFunction(
v8::Local<v8::FunctionTemplate> t) {
v8::Isolate *isolate = v8::Isolate::GetCurrent();
v8::EscapableHandleScope scope(isolate);
return scope.Escape(t->GetFunction(isolate->GetCurrentContext())
.FromMaybe(v8::Local<v8::Function>()));
}
inline Maybe<bool> Set(
v8::Local<v8::Object> obj
, v8::Local<v8::Value> key
, v8::Local<v8::Value> value) {
v8::Isolate *isolate = v8::Isolate::GetCurrent();
v8::HandleScope scope(isolate);
return obj->Set(isolate->GetCurrentContext(), key, value);
}
inline Maybe<bool> Set(
v8::Local<v8::Object> obj
, uint32_t index
, v8::Local<v8::Value> value) {
v8::Isolate *isolate = v8::Isolate::GetCurrent();
v8::HandleScope scope(isolate);
return obj->Set(isolate->GetCurrentContext(), index, value);
}
#if NODE_MODULE_VERSION < NODE_4_0_MODULE_VERSION
#include "nan_define_own_property_helper.h" // NOLINT(build/include_subdir)
#endif
inline Maybe<bool> DefineOwnProperty(
v8::Local<v8::Object> obj
, v8::Local<v8::String> key
, v8::Local<v8::Value> value
, v8::PropertyAttribute attribs = v8::None) {
v8::Isolate *isolate = v8::Isolate::GetCurrent();
v8::HandleScope scope(isolate);
#if NODE_MODULE_VERSION >= NODE_4_0_MODULE_VERSION
return obj->DefineOwnProperty(isolate->GetCurrentContext(), key, value,
attribs);
#else
Maybe<v8::PropertyAttribute> maybeCurrent =
obj->GetPropertyAttributes(isolate->GetCurrentContext(), key);
if (maybeCurrent.IsNothing()) {
return Nothing<bool>();
}
v8::PropertyAttribute current = maybeCurrent.FromJust();
return imp::DefineOwnPropertyHelper(current, obj, key, value, attribs);
#endif
}
NAN_DEPRECATED inline Maybe<bool> ForceSet(
v8::Local<v8::Object> obj
, v8::Local<v8::Value> key
, v8::Local<v8::Value> value
, v8::PropertyAttribute attribs = v8::None) {
v8::Isolate *isolate = v8::Isolate::GetCurrent();
v8::HandleScope scope(isolate);
#if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
return key->IsName()
? obj->DefineOwnProperty(isolate->GetCurrentContext(),
key.As<v8::Name>(), value, attribs)
: Nothing<bool>();
#else
return obj->ForceSet(isolate->GetCurrentContext(), key, value, attribs);
#endif
}
inline MaybeLocal<v8::Value> Get(
v8::Local<v8::Object> obj
, v8::Local<v8::Value> key) {
v8::Isolate *isolate = v8::Isolate::GetCurrent();
v8::EscapableHandleScope scope(isolate);
return scope.Escape(obj->Get(isolate->GetCurrentContext(), key)
.FromMaybe(v8::Local<v8::Value>()));
}
inline
MaybeLocal<v8::Value> Get(v8::Local<v8::Object> obj, uint32_t index) {
v8::Isolate *isolate = v8::Isolate::GetCurrent();
v8::EscapableHandleScope scope(isolate);
return scope.Escape(obj->Get(isolate->GetCurrentContext(), index)
.FromMaybe(v8::Local<v8::Value>()));
}
inline v8::PropertyAttribute GetPropertyAttributes(
v8::Local<v8::Object> obj
, v8::Local<v8::Value> key) {
v8::Isolate *isolate = v8::Isolate::GetCurrent();
v8::HandleScope scope(isolate);
return obj->GetPropertyAttributes(isolate->GetCurrentContext(), key)
.FromJust();
}
inline Maybe<bool> Has(
v8::Local<v8::Object> obj
, v8::Local<v8::String> key) {
v8::Isolate *isolate = v8::Isolate::GetCurrent();
v8::HandleScope scope(isolate);
return obj->Has(isolate->GetCurrentContext(), key);
}
inline Maybe<bool> Has(v8::Local<v8::Object> obj, uint32_t index) {
v8::Isolate *isolate = v8::Isolate::GetCurrent();
v8::HandleScope scope(isolate);
return obj->Has(isolate->GetCurrentContext(), index);
}
inline Maybe<bool> Delete(
v8::Local<v8::Object> obj
, v8::Local<v8::String> key) {
v8::Isolate *isolate = v8::Isolate::GetCurrent();
v8::HandleScope scope(isolate);
return obj->Delete(isolate->GetCurrentContext(), key);
}
inline
Maybe<bool> Delete(v8::Local<v8::Object> obj, uint32_t index) {
v8::Isolate *isolate = v8::Isolate::GetCurrent();
v8::HandleScope scope(isolate);
return obj->Delete(isolate->GetCurrentContext(), index);
}
inline
MaybeLocal<v8::Array> GetPropertyNames(v8::Local<v8::Object> obj) {
v8::Isolate *isolate = v8::Isolate::GetCurrent();
v8::EscapableHandleScope scope(isolate);
return scope.Escape(obj->GetPropertyNames(isolate->GetCurrentContext())
.FromMaybe(v8::Local<v8::Array>()));
}
inline
MaybeLocal<v8::Array> GetOwnPropertyNames(v8::Local<v8::Object> obj) {
v8::Isolate *isolate = v8::Isolate::GetCurrent();
v8::EscapableHandleScope scope(isolate);
return scope.Escape(obj->GetOwnPropertyNames(isolate->GetCurrentContext())
.FromMaybe(v8::Local<v8::Array>()));
}
inline Maybe<bool> SetPrototype(
v8::Local<v8::Object> obj
, v8::Local<v8::Value> prototype) {
v8::Isolate *isolate = v8::Isolate::GetCurrent();
v8::HandleScope scope(isolate);
#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION >= 14)
return obj->SetPrototypeV2(isolate->GetCurrentContext(), prototype);
#else
return obj->SetPrototype(isolate->GetCurrentContext(), prototype);
#endif
}
inline MaybeLocal<v8::String> ObjectProtoToString(
v8::Local<v8::Object> obj) {
v8::Isolate *isolate = v8::Isolate::GetCurrent();
v8::EscapableHandleScope scope(isolate);
return scope.Escape(obj->ObjectProtoToString(isolate->GetCurrentContext())
.FromMaybe(v8::Local<v8::String>()));
}
inline Maybe<bool> HasOwnProperty(
v8::Local<v8::Object> obj
, v8::Local<v8::String> key) {
v8::Isolate *isolate = v8::Isolate::GetCurrent();
v8::HandleScope scope(isolate);
return obj->HasOwnProperty(isolate->GetCurrentContext(), key);
}
inline Maybe<bool> HasRealNamedProperty(
v8::Local<v8::Object> obj
, v8::Local<v8::String> key) {
v8::Isolate *isolate = v8::Isolate::GetCurrent();
v8::HandleScope scope(isolate);
return obj->HasRealNamedProperty(isolate->GetCurrentContext(), key);
}
inline Maybe<bool> HasRealIndexedProperty(
v8::Local<v8::Object> obj
, uint32_t index) {
v8::Isolate *isolate = v8::Isolate::GetCurrent();
v8::HandleScope scope(isolate);
return obj->HasRealIndexedProperty(isolate->GetCurrentContext(), index);
}
inline Maybe<bool> HasRealNamedCallbackProperty(
v8::Local<v8::Object> obj
, v8::Local<v8::String> key) {
v8::Isolate *isolate = v8::Isolate::GetCurrent();
v8::HandleScope scope(isolate);
return obj->HasRealNamedCallbackProperty(isolate->GetCurrentContext(), key);
}
inline MaybeLocal<v8::Value> GetRealNamedPropertyInPrototypeChain(
v8::Local<v8::Object> obj
, v8::Local<v8::String> key) {
v8::Isolate *isolate = v8::Isolate::GetCurrent();
v8::EscapableHandleScope scope(isolate);
return scope.Escape(obj->GetRealNamedPropertyInPrototypeChain(
isolate->GetCurrentContext(), key)
.FromMaybe(v8::Local<v8::Value>()));
}
inline MaybeLocal<v8::Value> GetRealNamedProperty(
v8::Local<v8::Object> obj
, v8::Local<v8::String> key) {
v8::Isolate *isolate = v8::Isolate::GetCurrent();
v8::EscapableHandleScope scope(isolate);
return scope.Escape(
obj->GetRealNamedProperty(isolate->GetCurrentContext(), key)
.FromMaybe(v8::Local<v8::Value>()));
}
inline MaybeLocal<v8::Value> CallAsFunction(
v8::Local<v8::Object> obj
, v8::Local<v8::Object> recv
, int argc
, v8::Local<v8::Value> argv[]) {
v8::Isolate *isolate = v8::Isolate::GetCurrent();
v8::EscapableHandleScope scope(isolate);
return scope.Escape(
obj->CallAsFunction(isolate->GetCurrentContext(), recv, argc, argv)
.FromMaybe(v8::Local<v8::Value>()));
}
inline MaybeLocal<v8::Value> CallAsConstructor(
v8::Local<v8::Object> obj
, int argc, v8::Local<v8::Value> argv[]) {
v8::Isolate *isolate = v8::Isolate::GetCurrent();
v8::EscapableHandleScope scope(isolate);
return scope.Escape(
obj->CallAsConstructor(isolate->GetCurrentContext(), argc, argv)
.FromMaybe(v8::Local<v8::Value>()));
}
inline
MaybeLocal<v8::String> GetSourceLine(v8::Local<v8::Message> msg) {
v8::Isolate *isolate = v8::Isolate::GetCurrent();
v8::EscapableHandleScope scope(isolate);
return scope.Escape(msg->GetSourceLine(isolate->GetCurrentContext())
.FromMaybe(v8::Local<v8::String>()));
}
inline Maybe<int> GetLineNumber(v8::Local<v8::Message> msg) {
v8::Isolate *isolate = v8::Isolate::GetCurrent();
v8::HandleScope scope(isolate);
return msg->GetLineNumber(isolate->GetCurrentContext());
}
inline Maybe<int> GetStartColumn(v8::Local<v8::Message> msg) {
v8::Isolate *isolate = v8::Isolate::GetCurrent();
v8::HandleScope scope(isolate);
return msg->GetStartColumn(isolate->GetCurrentContext());
}
inline Maybe<int> GetEndColumn(v8::Local<v8::Message> msg) {
v8::Isolate *isolate = v8::Isolate::GetCurrent();
v8::HandleScope scope(isolate);
return msg->GetEndColumn(isolate->GetCurrentContext());
}
inline MaybeLocal<v8::Object> CloneElementAt(
v8::Local<v8::Array> array
, uint32_t index) {
#if (NODE_MODULE_VERSION >= NODE_6_0_MODULE_VERSION)
v8::Isolate *isolate = v8::Isolate::GetCurrent();
v8::EscapableHandleScope scope(isolate);
v8::Local<v8::Context> context = isolate->GetCurrentContext();
v8::Local<v8::Value> elem;
v8::Local<v8::Object> obj;
if (!array->Get(context, index).ToLocal(&elem)) {
return scope.Escape(obj);
}
if (!elem->ToObject(context).ToLocal(&obj)) {
return scope.Escape(v8::Local<v8::Object>());
}
return scope.Escape(obj->Clone());
#else
v8::Isolate *isolate = v8::Isolate::GetCurrent();
v8::EscapableHandleScope scope(isolate);
return scope.Escape(array->CloneElementAt(isolate->GetCurrentContext(), index)
.FromMaybe(v8::Local<v8::Object>()));
#endif
}
inline MaybeLocal<v8::Value> Call(
v8::Local<v8::Function> fun
, v8::Local<v8::Object> recv
, int argc
, v8::Local<v8::Value> argv[]) {
v8::Isolate *isolate = v8::Isolate::GetCurrent();
v8::EscapableHandleScope scope(isolate);
return scope.Escape(fun->Call(isolate->GetCurrentContext(), recv, argc, argv)
.FromMaybe(v8::Local<v8::Value>()));
}
#endif // NAN_MAYBE_43_INL_H_
@@ -0,0 +1,39 @@
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _eachOfLimit = require('./eachOfLimit.js');
var _eachOfLimit2 = _interopRequireDefault(_eachOfLimit);
var _awaitify = require('./internal/awaitify.js');
var _awaitify2 = _interopRequireDefault(_awaitify);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/**
* The same as [`eachOf`]{@link module:Collections.eachOf} but runs only a single async operation at a time.
*
* @name eachOfSeries
* @static
* @memberOf module:Collections
* @method
* @see [async.eachOf]{@link module:Collections.eachOf}
* @alias forEachOfSeries
* @category Collection
* @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.
* @param {AsyncFunction} iteratee - An async function to apply to each item in
* `coll`.
* Invoked with (item, key, callback).
* @param {Function} [callback] - A callback which is called when all `iteratee`
* functions have finished, or an error occurs. Invoked with (err).
* @returns {Promise} a promise, if a callback is omitted
*/
function eachOfSeries(coll, iteratee, callback) {
return (0, _eachOfLimit2.default)(coll, 1, iteratee, callback);
}
exports.default = (0, _awaitify2.default)(eachOfSeries, 3);
module.exports = exports.default;
@@ -0,0 +1,246 @@
'use strict'
// tar -r
const hlo = require('./high-level-opt.js')
const Pack = require('./pack.js')
const fs = require('fs')
const fsm = require('fs-minipass')
const t = require('./list.js')
const path = require('path')
// starting at the head of the file, read a Header
// If the checksum is invalid, that's our position to start writing
// If it is, jump forward by the specified size (round up to 512)
// and try again.
// Write the new Pack stream starting there.
const Header = require('./header.js')
module.exports = (opt_, files, cb) => {
const opt = hlo(opt_)
if (!opt.file) {
throw new TypeError('file is required')
}
if (opt.gzip || opt.brotli || opt.file.endsWith('.br') || opt.file.endsWith('.tbr')) {
throw new TypeError('cannot append to compressed archives')
}
if (!files || !Array.isArray(files) || !files.length) {
throw new TypeError('no files or directories specified')
}
files = Array.from(files)
return opt.sync ? replaceSync(opt, files)
: replace(opt, files, cb)
}
const replaceSync = (opt, files) => {
const p = new Pack.Sync(opt)
let threw = true
let fd
let position
try {
try {
fd = fs.openSync(opt.file, 'r+')
} catch (er) {
if (er.code === 'ENOENT') {
fd = fs.openSync(opt.file, 'w+')
} else {
throw er
}
}
const st = fs.fstatSync(fd)
const headBuf = Buffer.alloc(512)
POSITION: for (position = 0; position < st.size; position += 512) {
for (let bufPos = 0, bytes = 0; bufPos < 512; bufPos += bytes) {
bytes = fs.readSync(
fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos
)
if (position === 0 && headBuf[0] === 0x1f && headBuf[1] === 0x8b) {
throw new Error('cannot append to compressed archives')
}
if (!bytes) {
break POSITION
}
}
const h = new Header(headBuf)
if (!h.cksumValid) {
break
}
const entryBlockSize = 512 * Math.ceil(h.size / 512)
if (position + entryBlockSize + 512 > st.size) {
break
}
// the 512 for the header we just parsed will be added as well
// also jump ahead all the blocks for the body
position += entryBlockSize
if (opt.mtimeCache) {
opt.mtimeCache.set(h.path, h.mtime)
}
}
threw = false
streamSync(opt, p, position, fd, files)
} finally {
if (threw) {
try {
fs.closeSync(fd)
} catch (er) {}
}
}
}
const streamSync = (opt, p, position, fd, files) => {
const stream = new fsm.WriteStreamSync(opt.file, {
fd: fd,
start: position,
})
p.pipe(stream)
addFilesSync(p, files)
}
const replace = (opt, files, cb) => {
files = Array.from(files)
const p = new Pack(opt)
const getPos = (fd, size, cb_) => {
const cb = (er, pos) => {
if (er) {
fs.close(fd, _ => cb_(er))
} else {
cb_(null, pos)
}
}
let position = 0
if (size === 0) {
return cb(null, 0)
}
let bufPos = 0
const headBuf = Buffer.alloc(512)
const onread = (er, bytes) => {
if (er) {
return cb(er)
}
bufPos += bytes
if (bufPos < 512 && bytes) {
return fs.read(
fd, headBuf, bufPos, headBuf.length - bufPos,
position + bufPos, onread
)
}
if (position === 0 && headBuf[0] === 0x1f && headBuf[1] === 0x8b) {
return cb(new Error('cannot append to compressed archives'))
}
// truncated header
if (bufPos < 512) {
return cb(null, position)
}
const h = new Header(headBuf)
if (!h.cksumValid) {
return cb(null, position)
}
const entryBlockSize = 512 * Math.ceil(h.size / 512)
if (position + entryBlockSize + 512 > size) {
return cb(null, position)
}
position += entryBlockSize + 512
if (position >= size) {
return cb(null, position)
}
if (opt.mtimeCache) {
opt.mtimeCache.set(h.path, h.mtime)
}
bufPos = 0
fs.read(fd, headBuf, 0, 512, position, onread)
}
fs.read(fd, headBuf, 0, 512, position, onread)
}
const promise = new Promise((resolve, reject) => {
p.on('error', reject)
let flag = 'r+'
const onopen = (er, fd) => {
if (er && er.code === 'ENOENT' && flag === 'r+') {
flag = 'w+'
return fs.open(opt.file, flag, onopen)
}
if (er) {
return reject(er)
}
fs.fstat(fd, (er, st) => {
if (er) {
return fs.close(fd, () => reject(er))
}
getPos(fd, st.size, (er, position) => {
if (er) {
return reject(er)
}
const stream = new fsm.WriteStream(opt.file, {
fd: fd,
start: position,
})
p.pipe(stream)
stream.on('error', reject)
stream.on('close', resolve)
addFilesAsync(p, files)
})
})
}
fs.open(opt.file, flag, onopen)
})
return cb ? promise.then(cb, cb) : promise
}
const addFilesSync = (p, files) => {
files.forEach(file => {
if (file.charAt(0) === '@') {
t({
file: path.resolve(p.cwd, file.slice(1)),
sync: true,
noResume: true,
onentry: entry => p.add(entry),
})
} else {
p.add(file)
}
})
p.end()
}
const addFilesAsync = (p, files) => {
while (files.length) {
const file = files.shift()
if (file.charAt(0) === '@') {
return t({
file: path.resolve(p.cwd, file.slice(1)),
noResume: true,
onentry: entry => p.add(entry),
}).then(_ => addFilesAsync(p, files))
} else {
p.add(file)
}
}
p.end()
}
@@ -0,0 +1,108 @@
{{# def.definitions }}
{{# def.errors }}
{{# def.missing }}
{{# def.setupKeyword }}
{{# def.$data }}
{{ var $vSchema = 'schema' + $lvl; }}
{{## def.setupLoop:
{{? !$isData }}
var {{=$vSchema}} = validate.schema{{=$schemaPath}};
{{?}}
{{
var $i = 'i' + $lvl
, $propertyPath = 'schema' + $lvl + '[' + $i + ']'
, $missingProperty = '\' + ' + $propertyPath + ' + \'';
if (it.opts._errorDataPathProperty) {
it.errorPath = it.util.getPathExpr($currentErrorPath, $propertyPath, it.opts.jsonPointers);
}
}}
#}}
{{## def.isRequiredOwnProperty:
Object.prototype.hasOwnProperty.call({{=$data}}, {{=$vSchema}}[{{=$i}}])
#}}
{{? !$isData }}
{{? $schema.length < it.opts.loopRequired &&
it.schema.properties && Object.keys(it.schema.properties).length }}
{{ var $required = []; }}
{{~ $schema:$property }}
{{ var $propertySch = it.schema.properties[$property]; }}
{{? !($propertySch && {{# def.nonEmptySchema:$propertySch}}) }}
{{ $required[$required.length] = $property; }}
{{?}}
{{~}}
{{??}}
{{ var $required = $schema; }}
{{?}}
{{?}}
{{? $isData || $required.length }}
{{
var $currentErrorPath = it.errorPath
, $loopRequired = $isData || $required.length >= it.opts.loopRequired
, $ownProperties = it.opts.ownProperties;
}}
{{? $breakOnError }}
var missing{{=$lvl}};
{{? $loopRequired }}
{{# def.setupLoop }}
var {{=$valid}} = true;
{{?$isData}}{{# def.check$dataIsArray }}{{?}}
for (var {{=$i}} = 0; {{=$i}} < {{=$vSchema}}.length; {{=$i}}++) {
{{=$valid}} = {{=$data}}[{{=$vSchema}}[{{=$i}}]] !== undefined
{{? $ownProperties }}
&& {{# def.isRequiredOwnProperty }}
{{?}};
if (!{{=$valid}}) break;
}
{{? $isData }} } {{?}}
{{# def.checkError:'required' }}
else {
{{??}}
if ({{# def.checkMissingProperty:$required }}) {
{{# def.errorMissingProperty:'required' }}
} else {
{{?}}
{{??}}
{{? $loopRequired }}
{{# def.setupLoop }}
{{? $isData }}
if ({{=$vSchema}} && !Array.isArray({{=$vSchema}})) {
{{# def.addError:'required' }}
} else if ({{=$vSchema}} !== undefined) {
{{?}}
for (var {{=$i}} = 0; {{=$i}} < {{=$vSchema}}.length; {{=$i}}++) {
if ({{=$data}}[{{=$vSchema}}[{{=$i}}]] === undefined
{{? $ownProperties }}
|| !{{# def.isRequiredOwnProperty }}
{{?}}) {
{{# def.addError:'required' }}
}
}
{{? $isData }} } {{?}}
{{??}}
{{~ $required:$propertyKey }}
{{# def.allErrorsMissingProperty:'required' }}
{{~}}
{{?}}
{{?}}
{{ it.errorPath = $currentErrorPath; }}
{{?? $breakOnError }}
if (true) {
{{?}}
@@ -0,0 +1,9 @@
import type { TSchema, SchemaOptions } from '../schema/index.mjs';
import { Kind } from '../symbols/index.mjs';
export interface TVoid extends TSchema {
[Kind]: 'Void';
static: void;
type: 'void';
}
/** `[JavaScript]` Creates a Void type */
export declare function Void(options?: SchemaOptions): TVoid;
@@ -0,0 +1,38 @@
"use strict";
function _getRequireWildcardCache(nodeInterop) {
if (typeof WeakMap !== "function") return null;
var cacheBabelInterop = new WeakMap();
var cacheNodeInterop = new WeakMap();
return (_getRequireWildcardCache = function(nodeInterop) {
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
})(nodeInterop);
}
function _interop_require_wildcard(obj, nodeInterop) {
if (!nodeInterop && obj && obj.__esModule) return obj;
if (obj === null || typeof obj !== "object" && typeof obj !== "function") return { default: obj };
var cache = _getRequireWildcardCache(nodeInterop);
if (cache && cache.has(obj)) return cache.get(obj);
var newObj = { __proto__: null };
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
for (var key in obj) {
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
if (desc && (desc.get || desc.set)) Object.defineProperty(newObj, key, desc);
else newObj[key] = obj[key];
}
}
newObj.default = obj;
if (cache) cache.set(obj, newObj);
return newObj;
}
exports._ = _interop_require_wildcard;
@@ -0,0 +1,904 @@
export default `flf2a$ 4 3 10 0 6
Wavy by Brian Krog 10/05
Includes ISO Latin-1
figlet release 2.2.2 -- 05 Jul 2005
Permission is hereby given to modify this font, as long as the
modifier's name is placed on a comment line.
$$@
$$@
$$@
$$@@
$ @
|$@
o$@
$ @@
$ @
||$@
$ @
$ @@
$ @
_/_/_$@
-/-/-$ @
$ @@
$ @
(I\`$@
.I)$@
$ @@
$@
o/$@
/o$@
$ @@
_$ @
\\)$@
(X$@
$@@
$ @
|$@
$ @
$ @@
/$@
($ @
\\$@
$@@
\\$ @
)$@
/$ @
$ @@
$ @
_\\/_$@
/\\$ @
$ @@
$ @
$_|_$@
$|$ @
$ @@
$ @
$ @
o$@
/$@@
$ @
$__$@
$ @
$ @@
$ @
$ @
o$@
$ @@
$@
/$@
/$ @
$ @@
_$ @
(.\\$ @
\\_)$@
$ @@
$ @
/($ @
_)_$@
$@@
_$ @
)$@
/_$@
$@@
_$ @
_)$@
_)$@
$ @@
$ @
/_(_$@
)$@
$ @@
__$ @
)_$ @
_)$@
$ @@
_$ @
(__$ @
\\_)$@
$ @@
__$ @
)$@
($ @
$ @@
_$ @
(_)$@
(_)$@
$ @@
_$ @
(_\\$ @
_)$@
$ @@
$ @
o$@
o$@
$ @@
$ @
o$@
o$@
/$@@
$ @
/$@
\\$@
$ @@
$ @
__$@
--$@
$ @@
$ @
\\$@
/$@
$ @@
_$ @
)$@
o$ @
$ @@
___$ @
/ _ )$@
( (_($ @
\\___/$@@
_$ @
/_)$@
/ /$ @
$ @@
__$ @
)_)$@
/__)$@
$ @@
_$ @
/ \`$@
(_.$ @
$ @@
__$ @
) )$@
/_/$ @
$ @@
___$@
)_$ @
(__$ @
$ @@
___$@
)_$ @
($ @
$ @@
_$ @
/ _$@
(__/$@
$ @@
$ @
)_)$@
( ($ @
$ @@
___$@
)$ @
_(_$ @
$ @@
___$ @
($ @
\\__)$@
$ @@
$@
)_/$@
/ )$@
$ @@
$ @
)$ @
(__$@
$ @@
$ @
)\\/)$@
( ($ @
$ @@
$ @
)\\ )$@
( ($ @
$ @@
_$ @
/ )$@
(_/$ @
$ @@
__$ @
)_)$@
/$ @
$ @@
_$ @
/ )$@
(_X$ @
@@
__$ @
)_)$@
/ \\$ @
$ @@
__$ @
(_ \`$@
.__)$ @
$ @@
___$@
)$ @
($ @
$ @@
@
/ /$@
(_/$ @
$ @@
$@
\\ /$@
\\/$ @
$ @@
$@
\\ X /$@
\\/ \\/$ @
$ @@
$ @
(/$@
/)$@
$ @@
@
\\_)$@
/$ @
$ @@
__$@
/$@
/_$@
$ @@
_$@
|$ @
|_$@
$ @@
$ @
\\$ @
\\$@
$@@
_$ @
|$@
_|$@
$ @@
$ @
/\\$@
$ @
$ @@
$ @
$ @
$ @
__$@@
$ @
\\$@
$ @
$ @@
$ @
_$ @
(_($@
$ @@
$ @
( _$ @
)_)$@
$ @@
$ @
_$@
(_$@
$ @@
$ @
_ )$@
(_($ @
$ @@
$ @
_$ @
)_)$@
(_$ @@
$ @
_(_$@
)$@
$ @@
$ @
_$ @
(_($ @
_)$@@
$ @
( _$ @
) )$@
$ @@
$ @
o$@
($@
$ @@
$ @
o$ @
($ @
_)$@@
$ @
( _$@
)\\$@
$ @@
$ @
)$@
($ @
$ @@
$ @
_ _$ @
) ) )$@
$ @@
$ @
_$ @
) )$@
$ @@
$ @
_$ @
(_)$@
$ @@
$ @
_$ @
)_)$@
( $ @@
$ @
_$ @
(_($ @
)$@@
$ @
_$@
)$ @
$ @@
$ @
_$@
($ @
_)$@@
$ @
_)_$@
(_$ @
$ @@
$ @
$ @
(_($@
$ @@
$ @
$ @
\\)$@
$ @@
$ @
$ @
)_)_)$@
$ @@
$ @
$ @
\\)$@
(\\$@@
$ @
$ @
(_($ @
_)$@@
$ @
__$ @
)$ @
(__$@@
_$@
_|$ @
|_$@
$ @@
$ @
|$@
|$@
|$@@
_$ @
|_$@
_|$ @
$ @@
$ @
/\\/$@
$ @
$ @@
o_o$@
/_)$@
/ /$ @
$ @@
o_o$@
/ )$@
(_/$ @
$ @@
o o$@
/ /$ @
(_/$ @
$ @@
o o$@
_ $@
(_($@
$@@
o o$@
_$ @
(_)$@
$ @@
o o$@
$@
(_($@
$@@
__$ @
) )$@
/ )$@
$ @@
160 NO-BREAK SPACE
$$@
$$@
$$@
$$@@
161 INVERTED EXCLAMATION MARK
$ @
o$@
|$@
$ @@
162 CENT SIGN
$ @
|$ @
(_\`$@
|$ @@
163 POUND SIGN
_$ @
_(_\`$@
o)_$@
$ @@
164 CURRENCY SIGN
$ @
\`o'$@
' \`$@
$ @@
165 YEN SIGN
$ @
_\\_)_$@
--/--$@
$ @@
166 BROKEN BAR
$ @
|$@
'$@
|$@@
167 SECTION SIGN
_$@
($ @
()$@
_)$@@
168 DIAERESIS
o o$@
$ @
$ @
$ @@
169 COPYRIGHT SIGN
_$ @
(C)$@
$ @
$ @@
170 FEMININE ORDINAL INDICATOR
_ $@
(_($@
---$@
$ @@
171 LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
$@
//$@
\\\\$@
$@@
172 NOT SIGN
$ @
__$ @
|$@
$ @@
173 SOFT HYPHEN
$ @
_$@
$ @
$ @@
174 REGISTERED SIGN
_$ @
(R)$@
$ @
$ @@
175 MACRON
__$@
$ @
$ @
$ @@
176 DEGREE SIGN
O$@
$ @
$ @
$ @@
177 PLUS-MINUS SIGN
$ @
_|_$@
_|_$@
$ @@
178 SUPERSCRIPT TWO
2$@
@
@
@@
179 SUPERSCRIPT THREE
3$@
$ @
$ @
$ @@
180 ACUTE ACCENT
/$@
$ @
$ @
$ @@
181 MICRO SIGN
$ @
$ @
)_)$@
/$ @@
182 PILCROW SIGN
__$@
(||$@
||$@
$ @@
183 MIDDLE DOT
$ @
o$@
$ @
$ @@
184 CEDILLA
$ @
$ @
$ @
S$@@
185 SUPERSCRIPT ONE
1$@
$ @
$ @
$ @@
186 MASCULINE ORDINAL INDICATOR
_$ @
(_)$@
---$@
$ @@
187 RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
$ @
\\\\$@
//$@
$ @@
188 VULGAR FRACTION ONE QUARTER
$@
1/$@
/4$@
$ @@
189 VULGAR FRACTION ONE HALF
$@
1/$@
/2$@
$ @@
190 VULGAR FRACTION THREE QUARTERS
$@
3/$@
/4$@
$ @@
191 INVERTED QUESTION MARK
$ @
o$@
(_$@
$ @@
192 LATIN CAPITAL LETTER A WITH GRAVE
\\$ @
/_)$@
/ /$ @
$ @@
193 LATIN CAPITAL LETTER A WITH ACUTE
_/$@
/_)$@
/ /$ @
$ @@
194 LATIN CAPITAL LETTER A WITH CIRCUMFLEX
/\\$@
/_)$@
/ /$ @
$ @@
195 LATIN CAPITAL LETTER A WITH TILDE
/\\/$@
/_)$@
/ /$ @
$ @@
196 LATIN CAPITAL LETTER A WITH DIAERESIS
o_o$@
/_)$@
/ /$ @
$ @@
197 LATIN CAPITAL LETTER A WITH RING ABOVE
O$ @
/_)$@
/ /$ @
$ @@
198 LATIN CAPITAL LETTER AE
____$@
/_)_$ @
/ /__$ @
$ @@
199 LATIN CAPITAL LETTER C WITH CEDILLA
_$ @
/ \`$@
(_.$ @
S$ @@
200 LATIN CAPITAL LETTER E WITH GRAVE
_\\_$@
)_$ @
(__$ @
$ @@
201 LATIN CAPITAL LETTER E WITH ACUTE
_/_$@
)_$ @
(__$ @
$ @@
202 LATIN CAPITAL LETTER E WITH CIRCUMFLEX
_/\\$@
)_$ @
(__$ @
$ @@
203 LATIN CAPITAL LETTER E WITH DIAERESIS
o_o$@
)_$ @
(__$ @
$ @@
204 LATIN CAPITAL LETTER I WITH GRAVE
_\\_$@
)$ @
_(_$ @
$ @@
205 LATIN CAPITAL LETTER I WITH ACUTE
_/_$@
)$ @
_(_$ @
$ @@
206 LATIN CAPITAL LETTER I WITH CIRCUMFLEX
_/\\$@
)$ @
_(_$ @
$ @@
207 LATIN CAPITAL LETTER I WITH DIAERESIS
o_o$@
)$ @
_(_$ @
@@
208 LATIN CAPITAL LETTER ETH
__$ @
_)_)$@
/_/$ @
$ @@
209 LATIN CAPITAL LETTER N WITH TILDE
/\\/$@
)\\ )$@
( ($ @
$ @@
210 LATIN CAPITAL LETTER O WITH GRAVE
\\$ @
/ )$@
(_/$ @
$ @@
211 LATIN CAPITAL LETTER O WITH ACUTE
_/$@
/ )$@
(_/$ @
$ @@
212 LATIN CAPITAL LETTER O WITH CIRCUMFLEX
/\\$@
/ )$@
(_/$ @
$ @@
213 LATIN CAPITAL LETTER O WITH TILDE
/\\/$@
/ )$@
(_/$ @
$ @@
214 LATIN CAPITAL LETTER O WITH DIAERESIS
o_o$@
/ )$@
(_/$ @
$ @@
215 MULTIPLICATION SIGN
$ @
X$@
$ @
$ @@
216 LATIN CAPITAL LETTER O WITH STROKE
_$ @
//)$@
(//$ @
$ @@
217 LATIN CAPITAL LETTER U WITH GRAVE
\\$ @
/ /$@
(_/$ @
$ @@
218 LATIN CAPITAL LETTER U WITH ACUTE
/$@
/ /$@
(_/$ @
$ @@
219 LATIN CAPITAL LETTER U WITH CIRCUMFLEX
/\\$@
/ /$@
(_/$ @
$ @@
220 LATIN CAPITAL LETTER U WITH DIAERESIS
o o$@
/ /$ @
(_/$ @
$ @@
221 LATIN CAPITAL LETTER Y WITH ACUTE
/$ @
\\_)$@
/$ @
$ @@
222 LATIN CAPITAL LETTER THORN
( _$ @
)_)$@
($ @
$ @@
223 LATIN SMALL LETTER SHARP S
__$ @
) )$@
/ )$@
$ @@
224 LATIN SMALL LETTER A WITH GRAVE
\\$ @
_ $@
(_($@
$@@
225 LATIN SMALL LETTER A WITH ACUTE
/$ @
_ $@
(_($@
$@@
226 LATIN SMALL LETTER A WITH CIRCUMFLEX
/\\$@
_ $@
(_($@
$@@
227 LATIN SMALL LETTER A WITH TILDE
/\\/$@
_ $@
(_($@
$@@
228 LATIN SMALL LETTER A WITH DIAERESIS
o o$@
_ $@
(_($@
$@@
229 LATIN SMALL LETTER A WITH RING ABOVE
O$ @
_ $@
(_($@
$@@
230 LATIN SMALL LETTER AE
$ @
_ _$ @
_ )_)$@
(_(_$ @@
231 LATIN SMALL LETTER C WITH CEDILLA
$ @
_$@
(_$@
S$@@
232 LATIN SMALL LETTER E WITH GRAVE
\\$ @
_$ @
)_)$@
(_$ @@
233 LATIN SMALL LETTER E WITH ACUTE
/$ @
_$ @
)_)$@
(_$ @@
234 LATIN SMALL LETTER E WITH CIRCUMFLEX
/\\$ @
_ $@
)_)$@
(_$ @@
235 LATIN SMALL LETTER E WITH DIAERESIS
o o$@
_ $@
)_)$@
(_$ @@
236 LATIN SMALL LETTER I WITH GRAVE
$ @
\\$@
($@
$@@
237 LATIN SMALL LETTER I WITH ACUTE
$ @
/$@
($@
$@@
238 LATIN SMALL LETTER I WITH CIRCUMFLEX
$ @
/\\$@
($ @
$ @@
239 LATIN SMALL LETTER I WITH DIAERESIS
$ @
oo$@
($ @
$ @@
240 LATIN SMALL LETTER ETH
X$ @
_ )$@
(_($ @
$ @@
241 LATIN SMALL LETTER N WITH TILDE
/\\/$@
_$ @
) )$@
$ @@
242 LATIN SMALL LETTER O WITH GRAVE
\\$ @
_$ @
(_)$@
$ @@
243 LATIN SMALL LETTER O WITH ACUTE
/$ @
_$ @
(_)$@
$ @@
244 LATIN SMALL LETTER O WITH CIRCUMFLEX
/\\$@
_$ @
(_)$@
@@
245 LATIN SMALL LETTER O WITH TILDE
/\\/$@
_$ @
(_)$@
$ @@
246 LATIN SMALL LETTER O WITH DIAERESIS
o o$@
_$ @
(_)$@
$ @@
247 DIVISION SIGN
o$ @
---$@
o$ @
$ @@
248 LATIN SMALL LETTER O WITH STROKE
$ @
_$ @
(/)$@
$ @@
249 LATIN SMALL LETTER U WITH GRAVE
\\$ @
$@
(_($@
$@@
250 LATIN SMALL LETTER U WITH ACUTE
/$@
$@
(_($@
$@@
251 LATIN SMALL LETTER U WITH CIRCUMFLEX
/\\$@
$@
(_($@
$@@
252 LATIN SMALL LETTER U WITH DIAERESIS
o o$@
$@
(_($@
$@@
253 LATIN SMALL LETTER Y WITH ACUTE
/$ @
$ @
(_($ @
_)$@@
254 LATIN SMALL LETTER THORN
$ @
(_$ @
)_)$@
($ @@
255 LATIN SMALL LETTER Y WITH DIAERESIS
o o$ @
$ @
(_($ @
_)$@@
`
@@ -0,0 +1,121 @@
'use strict'
const hexify = char => {
const h = char.charCodeAt(0).toString(16).toUpperCase()
return '0x' + (h.length % 2 ? '0' : '') + h
}
const parseError = (e, txt, context) => {
if (!txt) {
return {
message: e.message + ' while parsing empty string',
position: 0,
}
}
const badToken = e.message.match(/^Unexpected token (.) .*position\s+(\d+)/i)
const errIdx = badToken ? +badToken[2]
: e.message.match(/^Unexpected end of JSON.*/i) ? txt.length - 1
: null
const msg = badToken ? e.message.replace(/^Unexpected token ./, `Unexpected token ${
JSON.stringify(badToken[1])
} (${hexify(badToken[1])})`)
: e.message
if (errIdx !== null && errIdx !== undefined) {
const start = errIdx <= context ? 0
: errIdx - context
const end = errIdx + context >= txt.length ? txt.length
: errIdx + context
const slice = (start === 0 ? '' : '...') +
txt.slice(start, end) +
(end === txt.length ? '' : '...')
const near = txt === slice ? '' : 'near '
return {
message: msg + ` while parsing ${near}${JSON.stringify(slice)}`,
position: errIdx,
}
} else {
return {
message: msg + ` while parsing '${txt.slice(0, context * 2)}'`,
position: 0,
}
}
}
class JSONParseError extends SyntaxError {
constructor (er, txt, context, caller) {
context = context || 20
const metadata = parseError(er, txt, context)
super(metadata.message)
Object.assign(this, metadata)
this.code = 'EJSONPARSE'
this.systemError = er
Error.captureStackTrace(this, caller || this.constructor)
}
get name () { return this.constructor.name }
set name (n) {}
get [Symbol.toStringTag] () { return this.constructor.name }
}
const kIndent = Symbol.for('indent')
const kNewline = Symbol.for('newline')
// only respect indentation if we got a line break, otherwise squash it
// things other than objects and arrays aren't indented, so ignore those
// Important: in both of these regexps, the $1 capture group is the newline
// or undefined, and the $2 capture group is the indent, or undefined.
const formatRE = /^\s*[{\[]((?:\r?\n)+)([\s\t]*)/
const emptyRE = /^(?:\{\}|\[\])((?:\r?\n)+)?$/
const parseJson = (txt, reviver, context) => {
const parseText = stripBOM(txt)
context = context || 20
try {
// get the indentation so that we can save it back nicely
// if the file starts with {" then we have an indent of '', ie, none
// otherwise, pick the indentation of the next line after the first \n
// If the pattern doesn't match, then it means no indentation.
// JSON.stringify ignores symbols, so this is reasonably safe.
// if the string is '{}' or '[]', then use the default 2-space indent.
const [, newline = '\n', indent = ' '] = parseText.match(emptyRE) ||
parseText.match(formatRE) ||
[, '', '']
const result = JSON.parse(parseText, reviver)
if (result && typeof result === 'object') {
result[kNewline] = newline
result[kIndent] = indent
}
return result
} catch (e) {
if (typeof txt !== 'string' && !Buffer.isBuffer(txt)) {
const isEmptyArray = Array.isArray(txt) && txt.length === 0
throw Object.assign(new TypeError(
`Cannot parse ${isEmptyArray ? 'an empty array' : String(txt)}`
), {
code: 'EJSONPARSE',
systemError: e,
})
}
throw new JSONParseError(e, parseText, context, parseJson)
}
}
// Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
// because the buffer-to-string conversion in `fs.readFileSync()`
// translates it to FEFF, the UTF-16 BOM.
const stripBOM = txt => String(txt).replace(/^\uFEFF/, '')
module.exports = parseJson
parseJson.JSONParseError = JSONParseError
parseJson.noExceptions = (txt, reviver) => {
try {
return JSON.parse(stripBOM(txt), reviver)
} catch (e) {}
}
@@ -0,0 +1,239 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.parse = parse;
exports.serialize = serialize;
/**
* RegExp to match cookie-name in RFC 6265 sec 4.1.1
* This refers out to the obsoleted definition of token in RFC 2616 sec 2.2
* which has been replaced by the token definition in RFC 7230 appendix B.
*
* cookie-name = token
* token = 1*tchar
* tchar = "!" / "#" / "$" / "%" / "&" / "'" /
* "*" / "+" / "-" / "." / "^" / "_" /
* "`" / "|" / "~" / DIGIT / ALPHA
*
* Note: Allowing more characters - https://github.com/jshttp/cookie/issues/191
* Allow same range as cookie value, except `=`, which delimits end of name.
*/
const cookieNameRegExp = /^[\u0021-\u003A\u003C\u003E-\u007E]+$/;
/**
* RegExp to match cookie-value in RFC 6265 sec 4.1.1
*
* cookie-value = *cookie-octet / ( DQUOTE *cookie-octet DQUOTE )
* cookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E
* ; US-ASCII characters excluding CTLs,
* ; whitespace DQUOTE, comma, semicolon,
* ; and backslash
*
* Allowing more characters: https://github.com/jshttp/cookie/issues/191
* Comma, backslash, and DQUOTE are not part of the parsing algorithm.
*/
const cookieValueRegExp = /^[\u0021-\u003A\u003C-\u007E]*$/;
/**
* RegExp to match domain-value in RFC 6265 sec 4.1.1
*
* domain-value = <subdomain>
* ; defined in [RFC1034], Section 3.5, as
* ; enhanced by [RFC1123], Section 2.1
* <subdomain> = <label> | <subdomain> "." <label>
* <label> = <let-dig> [ [ <ldh-str> ] <let-dig> ]
* Labels must be 63 characters or less.
* 'let-dig' not 'letter' in the first char, per RFC1123
* <ldh-str> = <let-dig-hyp> | <let-dig-hyp> <ldh-str>
* <let-dig-hyp> = <let-dig> | "-"
* <let-dig> = <letter> | <digit>
* <letter> = any one of the 52 alphabetic characters A through Z in
* upper case and a through z in lower case
* <digit> = any one of the ten digits 0 through 9
*
* Keep support for leading dot: https://github.com/jshttp/cookie/issues/173
*
* > (Note that a leading %x2E ("."), if present, is ignored even though that
* character is not permitted, but a trailing %x2E ("."), if present, will
* cause the user agent to ignore the attribute.)
*/
const domainValueRegExp = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i;
/**
* RegExp to match path-value in RFC 6265 sec 4.1.1
*
* path-value = <any CHAR except CTLs or ";">
* CHAR = %x01-7F
* ; defined in RFC 5234 appendix B.1
*/
const pathValueRegExp = /^[\u0020-\u003A\u003D-\u007E]*$/;
const __toString = Object.prototype.toString;
const NullObject = /* @__PURE__ */ (() => {
const C = function () { };
C.prototype = Object.create(null);
return C;
})();
/**
* Parse a cookie header.
*
* Parse the given cookie header string into an object
* The object has the various cookies as keys(names) => values
*/
function parse(str, options) {
const obj = new NullObject();
const len = str.length;
// RFC 6265 sec 4.1.1, RFC 2616 2.2 defines a cookie name consists of one char minimum, plus '='.
if (len < 2)
return obj;
const dec = options?.decode || decode;
let index = 0;
do {
const eqIdx = str.indexOf("=", index);
if (eqIdx === -1)
break; // No more cookie pairs.
const colonIdx = str.indexOf(";", index);
const endIdx = colonIdx === -1 ? len : colonIdx;
if (eqIdx > endIdx) {
// backtrack on prior semicolon
index = str.lastIndexOf(";", eqIdx - 1) + 1;
continue;
}
const keyStartIdx = startIndex(str, index, eqIdx);
const keyEndIdx = endIndex(str, eqIdx, keyStartIdx);
const key = str.slice(keyStartIdx, keyEndIdx);
// only assign once
if (obj[key] === undefined) {
let valStartIdx = startIndex(str, eqIdx + 1, endIdx);
let valEndIdx = endIndex(str, endIdx, valStartIdx);
const value = dec(str.slice(valStartIdx, valEndIdx));
obj[key] = value;
}
index = endIdx + 1;
} while (index < len);
return obj;
}
function startIndex(str, index, max) {
do {
const code = str.charCodeAt(index);
if (code !== 0x20 /* */ && code !== 0x09 /* \t */)
return index;
} while (++index < max);
return max;
}
function endIndex(str, index, min) {
while (index > min) {
const code = str.charCodeAt(--index);
if (code !== 0x20 /* */ && code !== 0x09 /* \t */)
return index + 1;
}
return min;
}
/**
* Serialize data into a cookie header.
*
* Serialize a name value pair into a cookie string suitable for
* http headers. An optional options object specifies cookie parameters.
*
* serialize('foo', 'bar', { httpOnly: true })
* => "foo=bar; httpOnly"
*/
function serialize(name, val, options) {
const enc = options?.encode || encodeURIComponent;
if (!cookieNameRegExp.test(name)) {
throw new TypeError(`argument name is invalid: ${name}`);
}
const value = enc(val);
if (!cookieValueRegExp.test(value)) {
throw new TypeError(`argument val is invalid: ${val}`);
}
let str = name + "=" + value;
if (!options)
return str;
if (options.maxAge !== undefined) {
if (!Number.isInteger(options.maxAge)) {
throw new TypeError(`option maxAge is invalid: ${options.maxAge}`);
}
str += "; Max-Age=" + options.maxAge;
}
if (options.domain) {
if (!domainValueRegExp.test(options.domain)) {
throw new TypeError(`option domain is invalid: ${options.domain}`);
}
str += "; Domain=" + options.domain;
}
if (options.path) {
if (!pathValueRegExp.test(options.path)) {
throw new TypeError(`option path is invalid: ${options.path}`);
}
str += "; Path=" + options.path;
}
if (options.expires) {
if (!isDate(options.expires) ||
!Number.isFinite(options.expires.valueOf())) {
throw new TypeError(`option expires is invalid: ${options.expires}`);
}
str += "; Expires=" + options.expires.toUTCString();
}
if (options.httpOnly) {
str += "; HttpOnly";
}
if (options.secure) {
str += "; Secure";
}
if (options.partitioned) {
str += "; Partitioned";
}
if (options.priority) {
const priority = typeof options.priority === "string"
? options.priority.toLowerCase()
: undefined;
switch (priority) {
case "low":
str += "; Priority=Low";
break;
case "medium":
str += "; Priority=Medium";
break;
case "high":
str += "; Priority=High";
break;
default:
throw new TypeError(`option priority is invalid: ${options.priority}`);
}
}
if (options.sameSite) {
const sameSite = typeof options.sameSite === "string"
? options.sameSite.toLowerCase()
: options.sameSite;
switch (sameSite) {
case true:
case "strict":
str += "; SameSite=Strict";
break;
case "lax":
str += "; SameSite=Lax";
break;
case "none":
str += "; SameSite=None";
break;
default:
throw new TypeError(`option sameSite is invalid: ${options.sameSite}`);
}
}
return str;
}
/**
* URL-decode string value. Optimized to skip native call when no %.
*/
function decode(str) {
if (str.indexOf("%") === -1)
return str;
try {
return decodeURIComponent(str);
}
catch (e) {
return str;
}
}
/**
* Determine if value is a Date.
*/
function isDate(val) {
return __toString.call(val) === "[object Date]";
}
//# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
{"mappings":";AAAA,4BAAiB;IAAG,WAAW,CAAC,sEAAU,CAAC;AAC3C","sources":["packages/@react-aria/overlays/intl/bg-BG.json"],"sourcesContent":["{\n \"dismiss\": \"Отхвърляне\"\n}\n"],"names":[],"version":3,"file":"bg-BG.module.js.map"}
@@ -0,0 +1,33 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var docAcknowledgmentsRole = {
abstract: false,
accessibleNameRequired: false,
baseConcepts: [],
childrenPresentational: false,
nameFrom: ['author'],
prohibitedProps: [],
props: {
'aria-disabled': null,
'aria-errormessage': null,
'aria-expanded': null,
'aria-haspopup': null,
'aria-invalid': null
},
relatedConcepts: [{
concept: {
name: 'acknowledgments [EPUB-SSV]'
},
module: 'EPUB'
}],
requireContextRole: [],
requiredContextRole: [],
requiredOwnedElements: [],
requiredProps: {},
superClass: [['roletype', 'structure', 'section', 'landmark']]
};
var _default = exports.default = docAcknowledgmentsRole;
@@ -0,0 +1,4 @@
<svg viewbox="0 0 18 18">
<polygon class="ql-fill ql-stroke" points="12 10 14 12 16 10 12 10"></polygon>
<path class="ql-stroke" d="M9.91,13.91A4.6,4.6,0,0,1,9,14a5,5,0,1,1,5-5"></path>
</svg>

After

Width:  |  Height:  |  Size: 196 B

@@ -0,0 +1,12 @@
{
"type": "module",
"main": "index.cjs",
"module": "index.js",
"react-native": {
"./index.js": "./index.native.js"
},
"browser": {
"./index.js": "./index.browser.js",
"./index.cjs": "./index.browser.cjs"
}
}
@@ -0,0 +1,109 @@
'use strict';
var utils = require('../utils.js');
require('eslint-visitor-keys');
require('espree');
require('estraverse');
const messages = {
noLineGap: "Expected no line gap between \u201C{{prop1}}\u201D and \u201C{{prop2}}\u201D",
onlyOneSpace: "Expected only one space between \u201C{{prop1}}\u201D and \u201C{{prop2}}\u201D"
};
var jsxPropsNoMultiSpaces = utils.createRule({
name: "jsx-props-no-multi-spaces",
package: "jsx",
meta: {
type: "layout",
docs: {
description: "Disallow multiple spaces between inline JSX props"
},
fixable: "code",
messages,
schema: []
},
create(context) {
const sourceCode = context.sourceCode;
function getPropName(propNode) {
switch (propNode.type) {
case "JSXSpreadAttribute":
return sourceCode.getText(propNode.argument);
case "JSXIdentifier":
return propNode.name;
case "JSXMemberExpression":
return `${getPropName(propNode.object)}.${propNode.property.name}`;
default:
return propNode.name ? propNode.name.name : `${sourceCode.getText(propNode.object)}.${propNode.property.name}`;
}
}
function hasEmptyLines(first, second) {
const comments = sourceCode.getCommentsBefore ? sourceCode.getCommentsBefore(second) : [];
const nodes = [].concat(first, comments, second);
for (let i = 1; i < nodes.length; i += 1) {
const prev = nodes[i - 1];
const curr = nodes[i];
if (curr.loc.start.line - prev.loc.end.line >= 2)
return true;
}
return false;
}
function checkSpacing(prev, node) {
if (hasEmptyLines(prev, node)) {
context.report({
messageId: "noLineGap",
node,
data: {
prop1: getPropName(prev),
prop2: getPropName(node)
}
});
}
if (prev.loc.end.line !== node.loc.end.line)
return;
const between = sourceCode.text.slice(prev.range[1], node.range[0]);
if (between !== " ") {
context.report({
node,
messageId: "onlyOneSpace",
data: {
prop1: getPropName(prev),
prop2: getPropName(node)
},
fix(fixer) {
return fixer.replaceTextRange([prev.range[1], node.range[0]], " ");
}
});
}
}
function containsGenericType(node) {
const containsTypeParams = typeof node.typeArguments !== "undefined";
return containsTypeParams && node.typeArguments?.type === "TSTypeParameterInstantiation";
}
function getGenericNode(node) {
const name = node.name;
if (containsGenericType(node)) {
const type = node.typeArguments;
return Object.assign(
{},
node,
{
range: [
name.range[0],
type?.range[1]
]
}
);
}
return name;
}
return {
JSXOpeningElement(node) {
node.attributes.reduce((prev, prop) => {
checkSpacing(prev, prop);
return prop;
}, getGenericNode(node));
}
};
}
});
module.exports = jsxPropsNoMultiSpaces;
@@ -0,0 +1,170 @@
import {getSliderThumbId as $aa519ee6cf463259$export$68e648cbec363a18, sliderData as $aa519ee6cf463259$export$d6c8d9636a3dc49c} from "./utils.module.js";
import {useGlobalListeners as $468t2$useGlobalListeners, clamp as $468t2$clamp, mergeProps as $468t2$mergeProps} from "@react-aria/utils";
import {useRef as $468t2$useRef} from "react";
import {useMove as $468t2$useMove, setInteractionModality as $468t2$setInteractionModality} from "@react-aria/interactions";
import {useLabel as $468t2$useLabel} from "@react-aria/label";
import {useLocale as $468t2$useLocale} from "@react-aria/i18n";
/*
* Copyright 2020 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
function $bcca50147b47f54d$export$56b2c08e277f365(props, state, trackRef) {
let { labelProps: labelProps, fieldProps: fieldProps } = (0, $468t2$useLabel)(props);
let isVertical = props.orientation === 'vertical';
var _labelProps_id;
// Attach id of the label to the state so it can be accessed by useSliderThumb.
(0, $aa519ee6cf463259$export$d6c8d9636a3dc49c).set(state, {
id: (_labelProps_id = labelProps.id) !== null && _labelProps_id !== void 0 ? _labelProps_id : fieldProps.id,
'aria-describedby': props['aria-describedby'],
'aria-details': props['aria-details']
});
let { direction: direction } = (0, $468t2$useLocale)();
let { addGlobalListener: addGlobalListener, removeGlobalListener: removeGlobalListener } = (0, $468t2$useGlobalListeners)();
// When the user clicks or drags the track, we want the motion to set and drag the
// closest thumb. Hence we also need to install useMove() on the track element.
// Here, we keep track of which index is the "closest" to the drag start point.
// It is set onMouseDown/onTouchDown; see trackProps below.
const realTimeTrackDraggingIndex = (0, $468t2$useRef)(null);
const reverseX = direction === 'rtl';
const currentPosition = (0, $468t2$useRef)(null);
const { moveProps: moveProps } = (0, $468t2$useMove)({
onMoveStart () {
currentPosition.current = null;
},
onMove ({ deltaX: deltaX, deltaY: deltaY }) {
if (!trackRef.current) return;
let { height: height, width: width } = trackRef.current.getBoundingClientRect();
let size = isVertical ? height : width;
if (currentPosition.current == null && realTimeTrackDraggingIndex.current != null) currentPosition.current = state.getThumbPercent(realTimeTrackDraggingIndex.current) * size;
let delta = isVertical ? deltaY : deltaX;
if (isVertical || reverseX) delta = -delta;
currentPosition.current += delta;
if (realTimeTrackDraggingIndex.current != null && trackRef.current) {
const percent = (0, $468t2$clamp)(currentPosition.current / size, 0, 1);
state.setThumbPercent(realTimeTrackDraggingIndex.current, percent);
}
},
onMoveEnd () {
if (realTimeTrackDraggingIndex.current != null) {
state.setThumbDragging(realTimeTrackDraggingIndex.current, false);
realTimeTrackDraggingIndex.current = null;
}
}
});
let currentPointer = (0, $468t2$useRef)(undefined);
let onDownTrack = (e, id, clientX, clientY)=>{
// We only trigger track-dragging if the user clicks on the track itself and nothing is currently being dragged.
if (trackRef.current && !props.isDisabled && state.values.every((_, i)=>!state.isThumbDragging(i))) {
let { height: height, width: width, top: top, left: left } = trackRef.current.getBoundingClientRect();
let size = isVertical ? height : width;
// Find the closest thumb
const trackPosition = isVertical ? top : left;
const clickPosition = isVertical ? clientY : clientX;
const offset = clickPosition - trackPosition;
let percent = offset / size;
if (direction === 'rtl' || isVertical) percent = 1 - percent;
let value = state.getPercentValue(percent);
// to find the closet thumb we split the array based on the first thumb position to the "right/end" of the click.
let closestThumb;
let split = state.values.findIndex((v)=>value - v < 0);
if (split === 0) closestThumb = split;
else if (split === -1) closestThumb = state.values.length - 1;
else {
let lastLeft = state.values[split - 1];
let firstRight = state.values[split];
// Pick the last left/start thumb, unless they are stacked on top of each other, then pick the right/end one
if (Math.abs(lastLeft - value) < Math.abs(firstRight - value)) closestThumb = split - 1;
else closestThumb = split;
}
// Confirm that the found closest thumb is editable, not disabled, and move it
if (closestThumb >= 0 && state.isThumbEditable(closestThumb)) {
// Don't unfocus anything
e.preventDefault();
realTimeTrackDraggingIndex.current = closestThumb;
state.setFocusedThumb(closestThumb);
currentPointer.current = id;
state.setThumbDragging(realTimeTrackDraggingIndex.current, true);
state.setThumbValue(closestThumb, value);
addGlobalListener(window, 'mouseup', onUpTrack, false);
addGlobalListener(window, 'touchend', onUpTrack, false);
addGlobalListener(window, 'pointerup', onUpTrack, false);
} else realTimeTrackDraggingIndex.current = null;
}
};
let onUpTrack = (e)=>{
var _e_changedTouches;
var _e_pointerId;
let id = (_e_pointerId = e.pointerId) !== null && _e_pointerId !== void 0 ? _e_pointerId : (_e_changedTouches = e.changedTouches) === null || _e_changedTouches === void 0 ? void 0 : _e_changedTouches[0].identifier;
if (id === currentPointer.current) {
if (realTimeTrackDraggingIndex.current != null) {
state.setThumbDragging(realTimeTrackDraggingIndex.current, false);
realTimeTrackDraggingIndex.current = null;
}
removeGlobalListener(window, 'mouseup', onUpTrack, false);
removeGlobalListener(window, 'touchend', onUpTrack, false);
removeGlobalListener(window, 'pointerup', onUpTrack, false);
}
};
if ('htmlFor' in labelProps && labelProps.htmlFor) {
// Ideally the `for` attribute should point to the first thumb, but VoiceOver on iOS
// causes this to override the `aria-labelledby` on the thumb. This causes the first
// thumb to only be announced as the slider label rather than its individual name as well.
// See https://bugs.webkit.org/show_bug.cgi?id=172464.
delete labelProps.htmlFor;
labelProps.onClick = ()=>{
var // Safari does not focus <input type="range"> elements when clicking on an associated <label>,
// so do it manually. In addition, make sure we show the focus ring.
_document_getElementById;
(_document_getElementById = document.getElementById((0, $aa519ee6cf463259$export$68e648cbec363a18)(state, 0))) === null || _document_getElementById === void 0 ? void 0 : _document_getElementById.focus();
(0, $468t2$setInteractionModality)('keyboard');
};
}
return {
labelProps: labelProps,
// The root element of the Slider will have role="group" to group together
// all the thumb inputs in the Slider. The label of the Slider will
// be used to label the group.
groupProps: {
role: 'group',
...fieldProps
},
trackProps: (0, $468t2$mergeProps)({
onMouseDown (e) {
if (e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey) return;
onDownTrack(e, undefined, e.clientX, e.clientY);
},
onPointerDown (e) {
if (e.pointerType === 'mouse' && (e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey)) return;
onDownTrack(e, e.pointerId, e.clientX, e.clientY);
},
onTouchStart (e) {
onDownTrack(e, e.changedTouches[0].identifier, e.changedTouches[0].clientX, e.changedTouches[0].clientY);
},
style: {
position: 'relative',
touchAction: 'none'
}
}, moveProps),
outputProps: {
htmlFor: state.values.map((_, index)=>(0, $aa519ee6cf463259$export$68e648cbec363a18)(state, index)).join(' '),
'aria-live': 'off'
}
};
}
export {$bcca50147b47f54d$export$56b2c08e277f365 as useSlider};
//# sourceMappingURL=useSlider.module.js.map
@@ -0,0 +1,5 @@
"use strict";
// These types are internal to TS.
// They have been trimmed down to only include the relevant bits
// We use some special internal TS apis to help us do our parsing flexibly
Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,16 @@
export class StyleModule {
constructor(spec: {[selector: string]: StyleSpec}, options?: {
finish?(sel: string): string
})
getRules(): string
static mount(
root: Document | ShadowRoot | DocumentOrShadowRoot,
module: StyleModule | ReadonlyArray<StyleModule>,
options?: {nonce?: string}
): void
static newName(): string
}
export type StyleSpec = {
[propOrSelector: string]: string | number | StyleSpec | null
}
@@ -0,0 +1,56 @@
{
"name": "are-we-there-yet",
"version": "3.0.1",
"description": "Keep track of the overall completion of many disparate processes",
"main": "lib/index.js",
"scripts": {
"test": "tap",
"npmclilint": "npmcli-lint",
"lint": "eslint \"**/*.js\"",
"lintfix": "npm run lint -- --fix",
"posttest": "npm run lint",
"postsnap": "npm run lintfix --",
"preversion": "npm test",
"postversion": "npm publish",
"prepublishOnly": "git push origin --follow-tags",
"snap": "tap",
"postlint": "template-oss-check",
"template-oss-apply": "template-oss-apply --force"
},
"repository": {
"type": "git",
"url": "https://github.com/npm/are-we-there-yet.git"
},
"author": "GitHub Inc.",
"license": "ISC",
"bugs": {
"url": "https://github.com/npm/are-we-there-yet/issues"
},
"homepage": "https://github.com/npm/are-we-there-yet",
"devDependencies": {
"@npmcli/eslint-config": "^3.0.1",
"@npmcli/template-oss": "3.5.0",
"tap": "^16.0.1"
},
"dependencies": {
"delegates": "^1.0.0",
"readable-stream": "^3.6.0"
},
"files": [
"bin/",
"lib/"
],
"engines": {
"node": "^12.13.0 || ^14.15.0 || >=16.0.0"
},
"tap": {
"branches": 68,
"statements": 92,
"functions": 86,
"lines": 92
},
"templateOSS": {
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
"version": "3.5.0"
}
}
@@ -0,0 +1,98 @@
{
"name": "reflect.getprototypeof",
"version": "1.0.10",
"description": "An ES2015 mostly-spec-compliant `Reflect.getPrototypeOf` sham/polyfill/replacement that works in as many engines as possible",
"main": "index.js",
"type": "commonjs",
"exports": {
".": "./index.js",
"./auto": "./auto.js",
"./polyfill": "./polyfill.js",
"./implementation": "./implementation.js",
"./shim": "./shim.js",
"./package.json": "./package.json"
},
"scripts": {
"prepack": "npmignore --auto --commentLines=autogenerated",
"prepublish": "not-in-publish || npm run prepublishOnly",
"prepublishOnly": "safe-publish-latest",
"prelint": "evalmd README.md",
"lint": "eslint --ext=js,mjs .",
"postlint": "es-shim-api --bound",
"pretest": "npm run lint",
"tests-only": "nyc tape 'test/**/*.js'",
"test": "npm run tests-only",
"posttest": "npx npm@'>=10.2' audit --production",
"version": "auto-changelog && git add CHANGELOG.md",
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
},
"repository": {
"type": "git",
"url": "git+https://github.com/es-shims/Reflect.getPrototypeOf.git"
},
"keywords": [
"Reflect.getPrototypeOf",
"Object.getPrototypeOf",
"proto",
"__proto__",
"[[Prototype]]",
"getPrototypeOf",
"ES5",
"shim",
"polyfill",
"es-shim API",
"browser"
],
"author": "Jordan Harband <ljharb@gmail.com>",
"funding": {
"url": "https://github.com/sponsors/ljharb"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/es-shims/Reflect.getPrototypeOf/issues"
},
"homepage": "https://github.com/es-shims/Reflect.getPrototypeOf",
"engines": {
"node": ">= 0.4"
},
"dependencies": {
"call-bind": "^1.0.8",
"define-properties": "^1.2.1",
"es-abstract": "^1.23.9",
"es-errors": "^1.3.0",
"es-object-atoms": "^1.0.0",
"get-intrinsic": "^1.2.7",
"get-proto": "^1.0.1",
"which-builtin-type": "^1.2.1"
},
"devDependencies": {
"@es-shims/api": "^2.5.1",
"@ljharb/eslint-config": "^21.1.1",
"auto-changelog": "^2.5.0",
"encoding": "^0.1.13",
"eslint": "=8.8.0",
"evalmd": "^0.0.19",
"functions-have-names": "^1.2.3",
"in-publish": "^2.0.1",
"npmignore": "^0.3.1",
"nyc": "^10.3.2",
"safe-publish-latest": "^2.0.0",
"tape": "^5.9.0"
},
"auto-changelog": {
"output": "CHANGELOG.md",
"template": "keepachangelog",
"unreleased": false,
"commitLimit": false,
"backfillLimit": false,
"hideCredit": true
},
"publishConfig": {
"ignore": [
".github/workflows"
]
},
"testling": {
"files": "test/implementation.js"
}
}
@@ -0,0 +1,19 @@
import { ListState } from '@react-stately/list';
import { CollectionBase, AsyncLoadable, MultipleSelection, Node } from '@react-types/shared';
import { Key } from 'react';
interface MultiSelectListProps<T> extends CollectionBase<T>, AsyncLoadable, MultipleSelection {
}
interface MultiSelectListState<T> extends ListState<T> {
/** The keys for the currently selected items. */
selectedKeys: Set<Key>;
/** Sets the selected keys. */
setSelectedKeys(keys: Iterable<Key>): void;
/** The value of the currently selected items. */
selectedItems: Node<T>[] | null;
/** The type of selection. */
selectionMode: MultipleSelection["selectionMode"];
}
declare function useMultiSelectListState<T extends object>(props: MultiSelectListProps<T>): MultiSelectListState<T>;
export { MultiSelectListProps, MultiSelectListState, useMultiSelectListState };
@@ -0,0 +1,19 @@
var hA0=Object.create;var kj=Object.defineProperty;var yA0=Object.getOwnPropertyDescriptor;var gA0=Object.getOwnPropertyNames;var _A0=Object.getPrototypeOf,wA0=Object.prototype.hasOwnProperty;var bA0=(a0,W0)=>()=>(W0||a0((W0={exports:{}}).exports,W0),W0.exports),pY=(a0,W0)=>{for(var bx in W0)kj(a0,bx,{get:W0[bx],enumerable:!0})},TA0=(a0,W0,bx,Yx)=>{if(W0&&typeof W0=="object"||typeof W0=="function")for(let x1 of gA0(W0))!wA0.call(a0,x1)&&x1!==bx&&kj(a0,x1,{get:()=>W0[x1],enumerable:!(Yx=yA0(W0,x1))||Yx.enumerable});return a0};var EA0=(a0,W0,bx)=>(bx=a0!=null?hA0(_A0(a0)):{},TA0(W0||!a0||!a0.__esModule?kj(bx,"default",{value:a0,enumerable:!0}):bx,a0));var kY=bA0(mj=>{(function(a0){typeof globalThis!="object"&&(this?W0():(a0.defineProperty(a0.prototype,"_T_",{configurable:!0,get:W0}),_T_));function W0(){var bx=this||self;bx.globalThis=bx,delete a0.prototype._T_}})(Object);(function(a0){"use strict";var W0="loc",bx=70416,Yx=69748,x1=163,D1=92159,Ie=43587,k2="labeled_statement",Rr="&=",_1="int_of_string",Ce=110591,Qs=92909,Qa=11559,$o="regexp",g5=43301,Qp=11703,_5=122654,Za=255,Aj="%ni",w5=68252,Sj=232,b5=42785,Kn="declare_variable",Zp="while",T5=66938,E5=70301,A5=124907,x4=126515,Pj=218,Hn="pattern_identifier",S5=67643,Vn="export_source",P5=216,I5=64279,Ij="Out_of_memory",C5=113788,Cj="comments",N5=126624,Nj="win32",$n="object_key_bigint_literal",Oj=185,jj=283,r4=123214,Wo="constructor",O5=69955,Wn="import_declaration",j5=68437,D5="Failure",e4="Unix.Unix_error",F5=64255,R5=42539,M5=110579,Qn="export_default_declaration",Zn="jsx_attribute_name",t4=11727,L5=43002,n4=126500,x7="component_param_pattern",Dj="collect_comments_opt",r7="match_unary_pattern",e7="keyof_type",Fj="Invalid binary/octal ",Rj="range",q5=170,xs="false",U5=43798,Mj=", characters ",t7="object_type_property_getter",B5=65547,X5=126467,G5=65007,Y5=42237,J5=8318,z5=71215,n7="object_property_type",u7="type_alias",K5=67742,i7="function_body",Lj=304,H5=68111,u4=120745,V5=71959,i4=43880,qj="Match_failure",Uj=280,f7="type_cast",lt=109,rs="void",$5="generator",W5=125124,Q5=101589,f4=94179,Bj=">>>",c4=70404,c7="optional_indexed_access_type",W1="argument",a7="object_property",s7="object_type_property",Z5=67004,xy=42783,ry=68850,Xj="@",ey=43741,ty=43487,a4="object",Gj="end",s4=126571,ny=71956,uy=208,iy=126566,fy=67702,Yj="EEXIST",o7="this_expression",Jj=203,cy=11507,ay=113807,o4=119893,sy=42735,Ql="rest",v7="null_literal",Zl="protected",oy=43615,m2=8231,vy=68149,ly=73727,py=72348,ky=92995,Qo=224,my=11686,dy=43013,l7="assignment_pattern",hy=12329,p7="function_type",Zo=192,k7="jsx_element_name",yy=70018,m7="catch_clause_pattern",v4=126540,d7="template_literal",gy=120654,_y=68497,wy=67679,h7="readonly_type",by=68735,Ty="<",l4=": No such file or directory",Ey=66915,Ay="chain",zj="!",y7="object_type",Sy=43712,p4=64297,Py=183969,Iy=43503,Cy=67591,xv=65278,Ny=67669,g7="for_of_assignment_pattern",x6="`",Oy=11502,_7="catch_body",jy=42191,Zs=-744106340,Dy=182,rv=":",Kj="a string",Fy=65663,Ry=66978,My=71947,k4=43519,Ly=71086,qy=125258,Uy=12538,w7="expression_or_spread",Hj="Printexc.handle_uncaught_exception",m4=69956,d4=120122,h4=247,Vj=231,By=" : flags Open_rdonly and Open_wronly are not compatible",b7="statement_fork_point",$j=710,Wj=-692038429,ze="static",Xy=55203,Gy=64324,Yy=64111,Qj="!==",Jy=120132,zy=124903,r6="class",Ky=222,T7="pattern_number_literal",es="kind",Hy=71903,E7="variable_declarator",A7="typeof_expression",Vy=126627,$y=70084,Zj=228,y4=70480,S7="class_private_field",Wy=239,g4=120713,on=65535,P7="private_name",Qy=43137,I7="remote_identifier",Zy=70161,C7="label_identifier",x9="src/parser/statement_parser.ml",r9=8335,e9=19903,t9=64310,ev="_",N7="for_init_declaration",xD="infer",n9=64466,u9=43018,rD="tokens",i9=92735,f9=66954,c9=65473,a9=70285,O7="sequence",s9="compare: functional value",o9=69890,e6=1e3,v9=65487,l9=42653,eD="\\\\",tD="%=",j7="match_member_pattern_base",p9=72367,D7="function_rest_param",nD="/static/",k9=124911,m9=65276,_4=126558,d9=11498,uD=137,F7="export_default_declaration_decl",h9="cases",w4=126602,R7="jsx_child",Ke="continue",y9=42962,iD="importKind",o1=122,C3="Literal",M7="pattern_object_property_identifier_key",g9=42508,xo="in",_9=55238,w9=67071,b9=70831,T9=72161,E9=67462,fD="<<=",A9=43009,S9=66383,b4=67827,P9=72202,I9=69839,C9=66775,cD="-=",tv=8202,N9=70105,O9=120538,L7="for_in_left_declaration",j9="rendersType",T4=126563,D9=70708,E4=126523,aD=166,q7="match_",sD=202,F9=110951,ts="component",A4=126552,R9=66977,oD=213,U7="enum_member_identifier",vD=210,B7="enum_bigint_body",lD=">=",M9=126495,L9="specifiers",pD=-88,q9="=",U9=65338,t6="members",B9=123535,X9=43702,G9=72767,nv="get",Y9=126633,S4=126536,J9=94098,z9="types",K9=113663,kD="Internal Error: Found private field in object props",X7="jsx_element",H9=70366,V9=110959,P4=120655,mD="trailingComments",dD=282,ro=24029,$9=-100,$2="yield",G7="binding_pattern",hD=275,Y7="typeof_identifier",yD="ENOTEMPTY",W9=-104,gD=295,I4=126468,Q9=1255,Z9=120628,J7="pattern_object_property_string_literal_Line truncated
`,xF="**=",yu="pattern_object_property_pattern",N_="e",O_=72712,rF="Internal Error: Found object private prop",j_="ENOENT",D_=-42,gu="jsx_opening_attribute",F_=67646,_u="component_type",R_=64296,M_=43887,eF="Division_by_zero",tF="EnumDefaultedMember",wu="typeof_member_identifier",L_=43792,bu="match_member_pattern_property",Tu="declare_export_declaration_decl",q_=93026,Eu="type_annotation_hint",U_=42887,B_=43881,X_=43761,vk=8526,D3=119,G_=43866,Y_=72847,J_=8348,pe=101,z_=94026,lk=72272,nF="src/parser/flow_lexer.ml",K_=120744,av=8191,F3="implies",pk=255,kk=11711,Au="match_unary_pattern_argument",H_=71235,mk=68116,uF=261,E1=100,Su="match_expression",Pu="enum_body",dk=1114111,Iu="assignment",V_=71955,hk=43260,Cu="pattern_array_e",$_=126583,iF="prefix",Nu="class_body",f6="shorthand",yk=171,W_=66256,gk=-97,fF=" =",Q_=94032,Z_=42606,Ou="match_case",xw=71839,_k=120134,rw=55291,ew=92862,tw=43019,nw=126543,R3="function",uw=111355,iw=11389,fw=70753,cw=43249,aw=64829,wk="line",ju="function_declaration",bk="undefined",cF="([^/]+)",sw=110947,ow=70002,aF="Cygwin",Du="as_expression",vw=12591,Tk=64285,lw=2048,pw=73112,Ek=126589,sF=225,Ak=43259,kw=72817,Sk=64318,mw=172,oF=209,Fu="match_binding_pattern",Ru=" ",Mu="import_source",c6="delete",vF="Enum `",Pk=126553,dw=67001,sv="default",hw=11630,Ik=206,Lu="enum_bigint_member",yw=67504,Ck=67593,gw=113791,lF="MatchObjectPatternProperty",_w=69572,qu="typeof_type",pF=212,kF="%i",Uu="function_this_param",ww=72329,no="0x",ov=8239,bw=75075,mF=57343,Bu="pattern_bigint_literal",Tw=12341,dF=201,vv="hook",hF=": closedir failed",Ew=42959,Nk=119970,yF=278,Aw=43560,gF="||=",Xu="member_private_name",Sw=120570,Gu="object_key_identifier",Ok=223,_F="Not_found",wF=230,Yu="jsx_element_name_member_expression",Ju="string_literal",Pw=120596,Iw=43807,Cw=69687,Nw=63743,jk=72192,zu="member_property",Ow=43262,Ku="class_declaration",bF="renders*",TF="%Li",jw=126578,Hu="jsx_attribute",M3=254,Oe="empty",a6="label",Vu="object_internal_slot_property_type",Dk=120133,Dw=43359,He="predicate",EF="??=",Fw=43697,Rw=-43,$u="default_opt",AF="the start of a statement",Mw=67826,Wu="object_",Qu="class_element",Fk=11631,Rk=70855,Zu="opaque_type",xi="number_literal",SF=", ",Mk=8319,Lk=120004,qk=133,ri="type_params",ei="pattern_object_rest_property",W2="import",Lw=72e3,qw=67413,Uw=12343,Bw=70080,ti="intersection_type",d2=-36,Xw=70005,Uk="properties",Gw=11679,Yw=8483,Jw=110587,PF=43520,ni="computed_key",IF=207,ui="class_identifier",zw="Invalid number ",ii="function_param_pattern",lv=12288,Kw=113817,Hw=70730,Vw=178207,Bk=71236,CF=167,fi="object_indexer_property_type",$w=64286,NF="TypeAnnotation",OF=220,ci="type_identifier",ai="spread_property",si="jsx_attribute_value_expression",Ww=126519,Xk=70108,Gk=126,Yk=42999,uo="prototype",Qw=" : flags Open_text and Open_binary are not compatible",jF="**",Jk=43823,Zw=": Not a directory",oi="render_type",zk=72349,L3="test",xb=43776,rb=92879,eb=11263,DF=241,tb=93052,vi="nullable_type",nb=43704,ub=64321,FF="Property",ib=72191,RF=165,s6="instanceof",fb=69247,Ve="name",Kk=126634,cb=8516,Hk="typeArguments",ab=71127,li="jsx_spread_attribute",sb=66559,ob=44031,vb=43645,n2=8233,lb=71494,pb="opaque",Vk=72967,kb=70106,pi="logical",MF="@[%s =@ ",o6="0o",$k=126554,mb=71351,Wk=8484,db=72242,Qk=120687,q3=252,hb=183983,v6="%S",ki="function_this_param_type",Zk="decorators",yb=43255,mi="catch_clause",$e="-",gb=67711,LF=": file descriptor already closed",xm=64311,rm=120539,_b="arguments",em=73062,wb=173823,bb=42124,Tb=72095,Eb=125259,Ab=42969,tm=70280,qF=12520,Sb=69749,Pb=70066,di="binary",hi="for_in_statement",Ib=43010,UF="^=",Cb=126570,yi="for_statement",nm=126584,gi="function_return_annotation",Nb=72144,Ob=8505,_i="class_expression",jb=120076,Db=69807,Fb=40981,Rb=-24976191,Mb=72768,Lb=126550,um='"',wi="call_type_arg",BF="f",pv="this",im=126628,XF="===",GF=56320,bi="declare_module_exports",qb=120512,vn=105,Ub=119974,Bb=71450,Xb=71942,YF=195,fm=120629,JF="/=",zF=">>",Ti="declare_interface",KF=4096,Ei="pattern_array_rest_element",Gb=71338,cm=126520,Ai="as_const_expression",HF="Popping lex mode from empty stack",VF="renders?",Yb=68405,Si="member",Pi="class_extends",kv=12287,am=126590,Jb=66377,io="async",Ii="pattern_array_element",U3=240,zb=69864,mv="readonly",Kb=70460,Hb=120779,Vb=66378,Ci="new_",sm=126551,Ni="pattern_object_rest_property_pattern",Oi="for_statement_init",$b=43595,om=68296,Wb=120712,Qb=64217,Zb=69295,$F="||",xT=";",rT=70461,eT=66939,WF="collect_comments",QF=279,ji="generic_type",tT=68295,nT=44002,vm=72162,Di="object_call_property_type",lm=8305,pm=119995,km="with",Fi="class_property",ZF="qualification",Ri="jsx_attribute_name_namespaced",Mi="if_statement",Li="typeof_qualified_identifier",xR=238,uT=65615,rR=176,u2="expression",mm=126559,qi="jsx_attribute_value",Ui="<2>",Bi="component_param",dm="Map.bal",hm=132,iT=70412,fT=70440,eR="<<",ym="finally",tR="v",Xi="syntax_opt",Gi="meta_property",cT=12447,aT=67514,gm=12448,Yi="object_mapped_type_property",dv="operator",nR="closedir",Ji="unary_expressLine truncated
`,n8=120093,T6="column",$f="component_rest_param",RA=70451,MA=70312,LA=69967,u8=70279,qA=66463,UA=92975,i8=70286,Wf="pattern_object_property_computed_key",Qf="object_key_string_literal",BA="jsError",Zf="type_args",XA=8304,rM="==",gv=115,xc="declare_component",GA=120092,YA=43638,JA=66811,zA=43334,KA=66863,HA=77823,eM=143,rc="optional_call",VA=126562,f8=70162,We=104,$A=66963,_v="await",c8=70107,Q2="0",WA=72250,QA=8507,tM=291,ZA=100351,a8="AssignmentPattern",ec="type",nM="%u",xS="NonNullExpression",tc="function_expression_or_method",rS=43470,uM=242,iM="camlinternalMod.ml",nc="match_or_pattern",eS=72750,tS=69414,nS=65370,uc="syntax",fM=32752,uS=42963,cM="End_of_file",iS=12294,fS=8471,aM="elementType",cS=43782,sM="++",aS=43641,sS=71944,oS=126601,vS=78894,lS=-45,wv="null",pS=177,oM="satisfies",kS=131071,ic="import_specifier",fc="class_method",cc="type_",mS=126514,dS=8454,vM="inexact",hS=67807,yS=8525,gS=65470,_S=71352,ac="tuple_spread_element",lM=219,wS="abstract",bS=73458,Qe="return",E6=65536,s8=126548,sc="array_element",TS=-253313196,ES=186,o8="catch",oc="infer_type",AS=12295,pM="Invalid legacy octal ",SS=69762,PS=43311,IS=65437,vc="variable_declaration",kM=-696510241,lc="function_params",mM=307,CS=64316,dM=311,v8=11565,hM="infinity",NS="@]",OS=65908,pc="extends",jS=66204,DS=43784,FS=11742,l8=126503,Ze="debugger",RS=70457,cs=-86,A6=912068366,MS=68786,p8="keyof",k8=69415,LS=12686,dn=127343600,kc="declare_type_alias",yM="the",gM=233,mc="jsx_element_name_namespaced",qS=72283,_M=161,dc="class_static_block",hc="function_param_type",Lt=128,US=-673950933,m8=126591,wM="Sys_error",BS=74649,XS=74862,S6="is",GS=43738,YS=68479,bM=196,d8=70854,yc="enum_boolean_member",h8=72163,JS=92783,TM=281,gc="component_param_name",zS=68863,hn=32768,EM=2048,KS=64284,AM="@{",HS="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",y8=8455,_c="update_expression",VS=65500,P6="from",$S=68447,g8=12592,WS=92766,SM=">>=",B2=110,QS=66431,ZS=43586,wc="jsx_identifier",xP=" : file already exists",U1=128,rP=71958,eP=66717,bc="enum_boolean_body",tP=64262,$r="id",Tc="component_renders_annotation",nP=42888,uP=8584,iP=73008,PM=306,Ec="enum_symbol_body",Ac="declare_namespace",_8=72713,fP=55215,Sc="object_property_value_type",Pc="match_wildcard_pattern",Ic="for_in_assignment_pattern",w8=8485,cP=43395,IM=229,as="true",aP=43743,Cc="enum_number_member",CM=234,sP=72969,NM="expected *",E2=102,OM=200,I6="symbol",bv="source",Nc="tparam_const_modifier",oP=43714,Oc="jsx_fragment",jc="jsx_attribute_name_identifier",C6="public",vP=43442,Dc="pattern_object_property",lP=65786,pP=70783,kP=43713,mP=72160,jM="*-/",Fc="export_named_specifier",Rc="arrow_function",dP=122623,b8=70006,DM="${",hP=43814,Mc="generic_qualified_identifier_type",FM=199,Lc="jsx_spread_child",T8=8489,E8=184,RM=2047,yP=66955,qc="try_catch",gP=70497,MM=313,LM=237,_P=67431,wP=125183,qM=-602162310,yn="params",bP="consequent",TP=68029,EP=67829,AP=68095,Uc="enum_string_body",SP=93823,PP=68351,IP=65495,Bc="declare_module",Xc="match_as_pattern_target",Gc="body_expression",CP=66175,A8=191,S8=70441,P8=65141,I8="&",Yc="super_expression",C8=126564,NP=72105,eS0="fs",xt="throw",OP=68287,jP=67839,Tv=116,DP=110882,FP=69404,RP=123197,Ev=65279,K3="src/parser/type_parser.ml",MP=68115,N8=126547,O8=126556,LP=73055,Jc="member_property_expression",zc="enum_defaulted_member",qP=43071,UP=11726,Kc="component_type_rest_param",BP=68607,Hc="object_key",XP=160,Z2="variance",GP=70655,YP=70414,H3="super",JP=123583,zP=65594,N6="method",KP=73648,O6=121,HP=93951,Vc="pattern_array_element_pattern",VP=43764,$P=42993,j8=120145,WP=74879,UM=168,D8=8486,QP=72001,$c="tagged_template",Wc="module_ref_literal",ZP=65312,Av="implements",xI=43700,rI=120003,BM="Invalid_argument",XM=262,Qc=16777215,eI=83526,F8=69744,R8=12336,Zc="switch_case",GM=-61,xa="optional_member",tI=64274,M8=64322,L8=126530,nI=71998,q8=72970,uI=13311,iI=73647,fI=120074,V3="let",YM="global",ra="expression_statement",ea="component_type_params",cI=512,aI=69634,sI=67461,oI=123627,vI=64913,JM="children",zM="PropertyDefinition",KM=1026,HM="%li",ta="declare_class",lI=43258,na="indexed_access_type",pI=124926,ss=112,kI="b",ua="predicate_expression",ia="if_alternate_statement",j6="private",VM=-594953737,$M=140,mI="nan",dI=72103,U8=11735,fa="statement",hI="rmdir",B8=66512,yI="match",gI=198,_I=11734,ca="import_named_specifier",wI=69599,bI=68799,TI=194559,aa="match_array_pattern",WM=174,sa="function_",oa="bigint_literal",f1=248,X8=67638,G8=126539,EI=11557,QM=214,AI=5760,rt="break",gn="block",va="match_member_pattern",SI=123565,PI=66815,A1="value",ZM=1039100673,II=69746,CI=70448,NI=74751,la="init",OI=69551,Y8=65548,pa="jsx_member_expression",J8=68096,Sv=108,z8=126521,jI=71487,ka="match_statement",DI=178205,FI=12548,xL=" : is a directory",_n=".",RI=12348,$3=-835925911,xe="typeParameters",MI=66855,i2="typeAnnotation",Pv="bigint",ma="jsx_attribute_value_literal",LI=194,rL="T_JSX_TEXT",qI=68466,K8=126537,eL=67714067,UI=69487,H8="export",BI=43822,V8=126499,XI=55242,da="member_type_Line truncated
`,Cz="@.",Nz="@@",Oz="@%",jz=Xj,Dz="%c",Fz="%s",Rz=kF,Mz=HM,Lz=Aj,qz=TF,Uz="%f",Bz="%B",Xz="%{",Gz="%}",Yz="%(",Jz="%)",zz="%a",Kz="%t",Hz="%?",Vz="%r",$z="%_r",Wz=[0,h2,850,23],Qz=[0,h2,837,26],Zz=[0,h2,847,28],xK=[0,h2,815,21],rK=[0,h2,819,21],eK=[0,h2,823,19],tK=[0,h2,827,22],nK=[0,h2,832,30],uK=[0,h2,851,23],iK=[0,h2,836,26],fK=[0,h2,846,28],cK=[0,h2,814,21],aK=[0,h2,818,21],sK=[0,h2,822,19],oK=[0,h2,826,22],vK=[0,h2,831,30];function lN(x){return x[2]===5?12:-6}function bq(x){return[0,0,I1(x)]}function Tq(x,r){var e=Bt(x[2]),t=x[1]+r|0;if(e<t){var u=e*2|0,i=t<=u?u:t,c=I1(i);oq(x[2],0,c,0,e),x[2]=c}}function pl(x,r){Tq(x,1),ls(x[2],x[1],r),x[1]=x[1]+1|0}function G2(x,r){var e=Ux(r);Tq(x,e),In(r,0,x[2],x[1],e),x[1]=x[1]+e|0}function Eq(x){return ol(x[2],0,x[1])}function Aq(x){if(typeof x=="number")switch(x){case 0:return Az;case 1:return Sz;case 2:return Pz;case 3:return Iz;case 4:return Cz;case 5:return Nz;default:return Oz}switch(x[0]){case 0:return x[1];case 1:return x[1];default:return Jx(jz,Sd(1,x[1]))}}function pN(x,r){for(var e=r;;){if(typeof e=="number")return;switch(e[0]){case 0:var t=e[1];G2(x,Dz);var e=t;break;case 1:var u=e[1];G2(x,Fz);var e=u;break;case 2:var i=e[1];G2(x,Rz);var e=i;break;case 3:var c=e[1];G2(x,Mz);var e=c;break;case 4:var v=e[1];G2(x,Lz);var e=v;break;case 5:var s=e[1];G2(x,qz);var e=s;break;case 6:var l=e[1];G2(x,Uz);var e=l;break;case 7:var p=e[1];G2(x,Bz);var e=p;break;case 8:var d=e[2],T=e[1];G2(x,Xz),pN(x,T),G2(x,Gz);var e=d;break;case 9:var b=e[3],C=e[1];G2(x,Yz),pN(x,C),G2(x,Jz);var e=b;break;case 10:var N=e[1];G2(x,zz);var e=N;break;case 11:var I=e[1];G2(x,Kz);var e=I;break;case 12:var F=e[1];G2(x,Hz);var e=F;break;case 13:var L=e[1];G2(x,Vz);var e=L;break;default:var X=e[1];G2(x,$z);var e=X}}}function a2(x){if(typeof x=="number")return 0;switch(x[0]){case 0:return[0,a2(x[1])];case 1:return[1,a2(x[1])];case 2:return[2,a2(x[1])];case 3:return[3,a2(x[1])];case 4:return[4,a2(x[1])];case 5:return[5,a2(x[1])];case 6:return[6,a2(x[1])];case 7:return[7,a2(x[1])];case 8:var r=x[1];return[8,r,a2(x[2])];case 9:var e=x[2],t=x[1];return[9,e,t,a2(x[3])];case 10:return[10,a2(x[1])];case 11:return[11,a2(x[1])];case 12:return[12,a2(x[1])];case 13:return[13,a2(x[1])];default:return[14,a2(x[1])]}}function Y2(x){if(typeof x=="number")return[0,function(y0){},function(y0){},function(y0){},function(y0){}];switch(x[0]){case 0:var r=Y2(x[1]),e=r[2],t=r[1];return[0,function(y0){t(j)},function(y0){e(j)},r[3],r[4]];case 1:var u=Y2(x[1]),i=u[2],c=u[1];return[0,function(y0){c(j)},function(y0){i(j)},u[3],u[4]];case 2:var v=Y2(x[1]),s=v[2],l=v[1];return[0,function(y0){l(j)},function(y0){s(j)},v[3],v[4]];case 3:var p=Y2(x[1]),d=p[2],T=p[1];return[0,function(y0){T(j)},function(y0){d(j)},p[3],p[4]];case 4:var b=Y2(x[1]),C=b[2],N=b[1];return[0,function(y0){N(j)},function(y0){C(j)},b[3],b[4]];case 5:var I=Y2(x[1]),F=I[2],L=I[1];return[0,function(y0){L(j)},function(y0){F(j)},I[3],I[4]];case 6:var X=Y2(x[1]),q=X[2],J=X[1];return[0,function(y0){J(j)},function(y0){q(j)},X[3],X[4]];case 7:var e0=Y2(x[1]),W=e0[2],x0=e0[1];return[0,function(y0){x0(j)},function(y0){W(j)},e0[3],e0[4]];case 8:var i0=Y2(x[2]),f0=i0[2],r0=i0[1];return[0,function(y0){r0(j)},function(y0){f0(j)},i0[3],i0[4]];case 9:var v0=x[2],o0=x[1],w0=Y2(x[3]),t0=w0[4],s0=w0[3],h0=w0[2],p0=w0[1],C0=Y2(g2(a2(o0),v0)),j0=C0[4],P0=C0[3],M0=C0[2],U0=C0[1];return[0,function(y0){p0(j),U0(j)},function(y0){M0(j),h0(j)},function(y0){s0(j),P0(j)},function(y0){j0(j),t0(j)}];case 10:var T0=Y2(x[1]),G0=T0[2],k0=T0[1];return[0,function(y0){k0(j)},function(y0){G0(j)},T0[3],T0[4]];case 11:var G=Y2(x[1]),S0=G[2],Z0=G[1];return[0,function(y0){Z0(j)},function(y0){S0(j)},G[3],G[4]];case 12:var N0=Y2(x[1]),ux=N0[2],ex=N0[1];return[0,function(y0){ex(j)},function(y0){ux(j)},N0[3],N0[4]];case 13:var nx=Y2(x[1]),px=nx[4],D0=nx[3],dx=nx[2],_x=nx[1];return[0,function(y0){_x(j)},function(y0){dx(j)},function(y0){D0(j)},function(y0){px(j)}];default:var K=Y2(x[1]),_0=K[4],U=K[3],m0=K[2],b0=K[1];return[0,function(y0){b0(j)},function(y0){m0(j)},function(y0){U(j)},function(y0){_0(j)}]}}function g2(x,r){x:{r:{e:{t:{n:{u:{i:{if(typeof x!="number"){switch(x[0]){case 0:var e=x[1];if(typeof r!="number")switch(r[0]){case 0:return[0,g2(e,r[1])];case 8:break u;case 9:break i;case 10:break x;case 11:break r;case 12:break e;case 13:break t;case 14:break n}break;case 1:var t=x[1];if(typeof r!="number")switch(r[0]){case 1:return[1,g2(t,r[1])];case 8:break u;case 9:break i;case 10:break x;case 11:break r;case 12:break e;case 13:break t;case 14:break n}break;case 2:var u=x[1];if(typeof r!="number")switch(r[0]){case 2:return[2,g2(u,r[1])];case 8:break u;case 9:break i;case 10:break x;case 11:break r;case 12:break e;case 13:break t;case 14:break n}break;case 3:var i=x[1];if(typeof r!="number")switch(r[0]){case 3:return[3,g2(i,r[1])];case 8:break u;case 9:break i;case 10:break x;case 11:break r;case 12:break e;case 13:break t;case 14:break n}break;case 4:var c=x[1];if(typeof r!="number")switch(r[Line truncated
`];function gN(x,r){var e=x[1+r];if(!(1-(typeof e=="number"?1:0)))return h(ar(GH),e);if(Ov(e)===q3)return h(ar(BH),e);if(Ov(e)!==gE)return XH;for(var t=GC("%.12g",e),u=0,i=Ux(t);;){if(i<=u)return Jx(t,UH);var c=B1(t,u);x:{if(48<=c){if(58>c)break x}else if(c===45)break x;return t}var u=u+1|0}}function Iq(x,r){if(x.length-1<=r)return YH;var e=Iq(x,r+1|0),t=gN(x,r);return k(ar(JH),t,e)}function tp(x){x:{r:{for(var r=rl(yN);r;){e:{var e=r[2],t=r[1];try{var u=h(t,x)}catch{break e}if(u)break r}var r=e}var i=0;break x}var i=[0,u[1]]}if(i)return i[1];if(x===ZC)return $H;if(x===ZL)return WH;if(x[1]===QL){var c=x[2],v=c[3],s=c[2],l=c[1];return hs(ar(xN),l,s,v,v+5|0,QH)}if(x[1]===Nr){var p=x[2],d=p[3],T=p[2],b=p[1];return hs(ar(xN),b,T,d,d+6|0,ZH)}if(x[1]===Y6){var C=x[2],N=C[3],I=C[2],F=C[1];return hs(ar(xN),F,I,N,N+6|0,xV)}if(Ov(x)===0){var L=x.length-1,X=x[1][1];if(2<L>>>0)var q=Iq(x,2),J=gN(x,1),e0=k(ar(zH),J,q);else switch(L){case 0:var e0=KH;break;case 1:var e0=HH;break;default:var W=gN(x,1),e0=h(ar(VH),W)}var x0=[0,X,[0,e0]]}else var x0=[0,x[1],0];var i0=x0[2],f0=x0[1];return i0?Jx(f0,i0[1]):f0}function _N(x,r){var e=sJ(r),t=e.length-1-1|0,u=0;if(t>=0)for(var i=u;;){var c=N1(e,i)[1+i];let e0=i;var v=function(x0){return x0?e0===0?rV:eV:e0===0?tV:nV};if(c[0]===0){if(c[3]===c[6])var s=c[3],d=h(ar(uV),s);else var l=c[6],p=c[3],d=k(ar(aV),p,l);var T=c[7],b=c[4],C=c[8]?iV:cV,N=c[2],I=c[9],F=v(c[1]),X=[0,nz(ar(fV),F,I,N,C,d,b,T)]}else if(c[1])var X=0;else var L=v(0),X=[0,h(ar(sV),L)];if(X){var q=X[1];h(Pq(x,oV),q)}var J=i+1|0;if(t===i)break;var i=J}}function wN(x){for(;;){var r=rl(yN),e=1-ud(yN,r,[0,x,r]);if(!e)return e}}var vV=[0,tx,`(Cannot print locations:
bytecode executable program file not found)`,`(Cannot print locations:
bytecode executable program file appears to be corrupt)`,`(Cannot print locations:
bytecode executable program file has wrong magic number)`,`(Cannot print locations:
bytecode executable program file cannot be opened;
-- too many open files. Try running with OCAMLRUNPARAM=b=2)`].slice(),lV=[0,[11,ZE,[2,0,[12,10,0]]],xM],pV=[0],kV="Fatal error: out of memory in uncaught exception handler",mV=[0,[11,ZE,[2,0,[12,10,0]]],xM],dV=[0,[11,"Fatal error in uncaught exception handler: exception ",[2,0,[12,10,0]]],`Fatal error in uncaught exception handler: exception %s
`];QC(Hj,function(x,r){try{try{var e=r?pV:FL(0);try{eN(j)}catch{}try{var t=tp(x);h(hN(lV),t),_N(Sn,e);var u=RJ(0);if(u<0){var i=Td(u);nq(N1(vV,i)[1+i])}var c=bn(Sn),v=c}catch(b){var s=X1(b),l=tp(x);h(hN(mV),l),_N(Sn,e);var p=tp(s);h(hN(dV),p),_N(Sn,FL(0));var v=bn(Sn)}var d=v}catch(b){var T=X1(b);if(T!==ZC)throw z0(T,0);var d=nq(kV)}return d}catch{return 0}});var hV=[f1,"Stdlib.Fun.Finally_raised",Ca(0)],yV="Fun.Finally_raised: ";wN(function(x){return x[1]===hV?[0,Jx(yV,tp(x[2]))]:0});var gV="Digest.BLAKE2: wrong hash size";function bN(x){var r=x[1]<1?1:0,e=r||(64<x[1]?1:0);e&&X2(gV)}bN([0,16]),bN([0,32]),bN([0,64]);function Cq(x){var r=S2(x);return FJ(r,0,Ux(r))}var _V=mt(1,0,0),wV=mt(0,0,0),bV=mt(0,0,0),TV=mt(2,0,0),EV=mt(1,0,0);function Nq(x){return VY(7,0,[0,4])}function Oq(x,r,e,t,u){M6(x,0,UL(r,_V)),M6(x,1,e);var i=Nv(t,wV)?t:EV;M6(x,2,i);var c=Nv(u,bV)?u:TV;M6(x,3,c)}function jq(x,r,e,t){var u=Nq(j);return Oq(u,x,r,e,t),u}var AV=mt(14371852,15349651,22696),SV=mt(12230193,11438743,35013),PV=mt(1424933,15549263,2083),IV=mt(9492471,4696708,PF);Oa([0,function(x){var r=dd(x),e=dd(x),t=dd(x);return jq(r,e,t,dd(x))}],function(x){return jq(IV,PV,SV,AV)});var jd=0,Dq=-1,TN=[f1,"Stdlib.Format.String_tag",Ca(0)];function np(x,r){return x[13]=x[13]+r[3]|0,fN(r,x[28])}var Fq=1000000010;function CV(x,r){return x<=r?x:r}var NV=[f1,"Stdlib.Queue.Empty",Ca(0)],OV=[0,tx,0,tx],jV=tx,DV=tx,FV=tx,RV=tx,MV=[0,tx],LV=C_;function EN(x,r){return xx(x[17],r,0,Ux(r))}function Dd(x){return h(x[19],0)}function Rq(x,r,e){x[9]=x[9]-r|0,EN(x,e),x[11]=0}function Fd(x,r){var e=P(r,tx);return e&&Rq(x,Ux(r),r)}function Mv(x,r,e){var t=r[3],u=r[2];return Fd(x,r[1]),Dd(x),x[11]=1,x[10]=CV(x[8],(x[6]-e|0)+u|0),x[9]=x[6]-x[10]|0,h(x[21],x[10]),Fd(x,t)}function Mq(x,r){return Mv(x,OV,r)}function ml(x,r){var e=r[2],t=r[3];return Fd(x,r[1]),x[9]=x[9]-e|0,h(x[20],e),Fd(x,t)}function qV(x,r,e){if(typeof e=="number")switch(e){case 0:var t=ll(x[3]);if(!t)return;var u=t[1][1],i=function(Z0,N0){if(!N0)return[0,Z0,0];var ux=N0[1],ex=N0[2];return EJ(Z0,ux)?[0,Z0,N0]:[0,ux,i(Z0,ex)]};u[1]=i(x[6]-x[9]|0,u[1]);return;case 1:vl(x[2]);return;case 2:vl(x[3]);return;case 3:var c=ll(x[2]);return c?Mq(x,c[1][2]):Dd(x);case 4:var v=x[10]!==(x[6]-x[9]|0)?1:0;if(!v)return v;var s=x[28],l=s[2];if(l){var p=l[1];if(l[2]){var d=l[2];s[1]=s[1]-1|0,s[2]=d;var T=[0,p]}else{iN(s);var T=[0,p]}}else var T=0;if(!T)return;var b=T[1],C=b[1];x[12]=x[12]-b[3]|0,x[9]=x[9]+C|0;return;default:var N=vl(x[5]);return N?EN(x,h(x[25],N[1])):void 0}switch(e[0]){case 0:return Rq(x,r,e[1]);case 1:var I=e[2],F=e[1],L=I[1],X=I[2],q=ll(x[2]);if(!q)return;var J=q[1],e0=J[2];switch(J[1]){case 0:return ml(x,F);case 1:return Mv(x,I,e0);case 2:return Mv(x,I,e0);case 3:return x[9]<(r+Ux(L)|0)?Mv(x,I,e0):ml(x,F);case 4:return x[11]?ml(x,F):x[9]<(r+Ux(L)|0)||((x[6]-e0|0)+X|0)<x[10]?Mv(x,I,e0):ml(x,F);default:return ml(x,F)}case 2:var W=x[6]-x[9]|0,x0=e[2],i0=e[1],f0=ll(x[3]);if(!f0)return;var r0=f0[1][1],v0=r0[1];if(v0)for(var o0=r0[1],w0=v0[1];;){if(o0){var t0=o0[1],s0=o0[2];if(W>t0){var o0=s0;continue}var h0=t0}else var h0=w0;var p0=h0;break}else var p0=W;var C0=p0-W|0;return 0<=C0?ml(x,[0,DV,C0+i0|0,jV]):Mv(x,[0,RV,p0+x0|0,FV],x[6]);case 3:var j0=e[2],P0=e[1];if(x[8]<(x[6]-x[9]|0)){var M0=ll(x[2]);if(M0){var U0=M0[1],T0=U0[2],G0=U0[1];x[9]<T0&&3>=G0-1>>>0&&Mq(x,T0)}else Dd(x)}var k0=x[9]-P0|0,G=j0===1?1:x[9]<r?j0:5;return Fv([0,G,k0],x[2]);case 4:return Fv(e[1],x[3]);default:var S0=e[1];return EN(x,h(x[24],S0)),Fv(S0,x[5])}}function Lq(x){for(;;){var r=x[28][2],e=r?[0,r[1]]:0;if(!e)return;var t=e[1],u=t[1],i=0<=u?1:0,c=t[3],v=t[2],s=x[13]-x[12]|0,l=i||(x[9]<=s?1:0);if(!l)return l;var p=x[28],d=p[2];if(!d)throw z0(NV,1);if(d[2]){var T=d[2];p[1]=p[1]-1|0,p[2]=T}else iN(p);var b=0<=u?u:Fq;qV(x,b,v),x[12]=c+x[12]|0}}function qq(x,r){return np(x,r),Lq(x)}function Uq(x,r,e){return qq(x,[0,r,[0,e],r])}function AN(x){return Z6(x),Fv([0,-1,[0,Dq,MV,0]],x)}function SN(x,r){var e=ll(x[1]);if(e){var t=e[1],u=t[2],i=u[1];if(t[1]<x[12])return AN(x[1]);var c=u[2];if(typeof c!="number")switch(c[0]){case 3:1-r&&(u[1]=x[13]+i|0,vl(x[1]));return;case 1:case 2:r&&(u[1]=x[13]+i|0,vl(x[1]));return}}}function Bq(x,r,e){return np(x,e),r&&SN(x,1),Fv([0,x[13],e],x[1])}function Xq(x,r,e){if(x[14]=x[14]+1|0,x[14]<x[15])return Bq(x,0,[0,-x[13]|0,[3,r,e],0]);var t=x[14]===x[15]?1:0;if(!t)return t;var u=x[16];return Uq(x,Ux(u),u)}function Gq(x,r){1<x[14]&&(x[14]<x[15]&&(np(x,[0,jd,1,0]),SN(x,1),SN(x,0)),x[14]=x[14]-1|0)}function Yq(x,r){if(x[23]&&np(x,[0,jd,5,0]),x[22]){var e=vl(x[4]);if(e)return h(x[27],e[1])}}function Jq(x,r){for(P2(function(e){return Yq(x,j)},x[4][1]);!(1>=x[14]);)Gq(x,j);return x[13]=Fq,Lq(x),r&&Dd(x),x[12]=1,x[13]=1,iN(x[28]),AN(x[1]),Z6(x[2]),Z6(x[3]),Z6(x[4]),Z6(x[5]),x[10]=0,x[14]=0,x[9]=x[6],Xq(x,0,3)}function PN(x,r,e){var t=x[14]<x[15]?1:0;return t&&Uq(x,r,e)}function zq(x,r,e){return PN(x,r,e)}function up(x,r){return zq(x,1,Sd(1,r))}function Lv(x,r){return Jq(x,0),h(x[18],0)}function IN(x,r){retuLine truncated
`,an0=C_,sn0="unreachable regexp_class",on0=eD,vn0="unreachable regexp_body",ln0=tx,pn0=tx,kn0=tx,mn0=tx,dn0=RD,hn0="{'>'}",yn0=d6,gn0="{'}'}",_n0=jm,wn0=no,bn0=xT,Tn0=I8,En0=RD,An0=no,Sn0=xT,Pn0=I8,In0="unreachable type_token wholenumber",Cn0="unreachable type_token wholebigint",Nn0="unreachable type_token floatbigint",On0="unreachable type_token scinumber",jn0="unreachable type_token scibigint",Dn0="unreachable type_token hexnumber",Fn0="unreachable type_token hexbigint",Rn0="unreachable type_token legacyoctnumber",Mn0="unreachable type_token octnumber",Ln0="unreachable type_token octbigint",qn0="unreachable type_token binnumber",Un0="unreachable type_token bigbigint",Bn0="unreachable type_token",Xn0=NM,Gn0=[11,1],Yn0=[11,0],Jn0="unreachable template_tail",zn0=tx,Kn0=tx,Hn0="unreachable jsx_child",Vn0="unreachable jsx_tag",$n0=[0,LD],Wn0=[0,913],Qn0=[0,Zo],Zn0=[0,LI],x70=[0,SD],r70=[0,gI],e70=[0,8747],t70=[0,uy],n70=[0,916],u70=[0,8225],i70=[0,935],f70=[0,FM],c70=[0,914],a70=[0,bM],s70=[0,YF],o70=[0,SR],v70=[0,915],l70=[0,Jj],p70=[0,919],k70=[0,917],m70=[0,OM],d70=[0,sD],h70=[0,oF],y70=[0,924],g70=[0,923],_70=[0,922],w70=[0,IF],b70=[0,921],T70=[0,pR],E70=[0,Ik],A70=[0,dF],S70=[0,P5],P70=[0,927],I70=[0,937],C70=[0,vD],N70=[0,pF],O70=[0,TD],j70=[0,338],D70=[0,352],F70=[0,929],R70=[0,936],M70=[0,8243],L70=[0,928],q70=[0,934],U70=[0,QM],B70=[0,oD],X70=[0,933],G70=[0,PR],Y70=[0,lM],J70=[0,Pj],z70=[0,920],K70=[0,932],H70=[0,Ky],V70=[0,MD],$70=[0,uR],W70=[0,sF],Q70=[0,918],Z70=[0,376],xu0=[0,iR],ru0=[0,926],eu0=[0,OF],tu0=[0,KR],nu0=[0,925],uu0=[0,39],iu0=[0,8736],fu0=[0,8743],cu0=[0,38],au0=[0,945],su0=[0,8501],ou0=[0,Qo],vu0=[0,8226],lu0=[0,aD],pu0=[0,946],ku0=[0,8222],mu0=[0,Zj],du0=[0,RR],hu0=[0,8776],yu0=[0,IM],gu0=[0,8773],_u0=[0,9827],wu0=[0,$j],bu0=[0,967],Tu0=[0,QR],Eu0=[0,E8],Au0=[0,Vj],Su0=[0,rR],Pu0=[0,8595],Iu0=[0,8224],Cu0=[0,8659],Nu0=[0,PD],Ou0=[0,8746],ju0=[0,8629],Du0=[0,qD],Fu0=[0,8745],Ru0=[0,8195],Mu0=[0,8709],Lu0=[0,Sj],qu0=[0,CM],Uu0=[0,gM],Bu0=[0,h4],Xu0=[0,9830],Gu0=[0,8707],Yu0=[0,8364],Ju0=[0,UR],zu0=[0,U3],Ku0=[0,951],Hu0=[0,8801],Vu0=[0,949],$u0=[0,8194],Wu0=[0,8805],Qu0=[0,947],Zu0=[0,8260],xi0=[0,eE],ri0=[0,bD],ei0=[0,gA],ti0=[0,8704],ni0=[0,xR],ui0=[0,LM],ii0=[0,8230],fi0=[0,9829],ci0=[0,8596],ai0=[0,8660],si0=[0,62],oi0=[0,402],vi0=[0,948],li0=[0,wF],pi0=[0,Wy],ki0=[0,8712],mi0=[0,A8],di0=[0,953],hi0=[0,8734],yi0=[0,8465],gi0=[0,XR],_i0=[0,8220],wi0=[0,8968],bi0=[0,8592],Ti0=[0,yk],Ei0=[0,10216],Ai0=[0,955],Si0=[0,8656],Pi0=[0,954],Ii0=[0,60],Ci0=[0,8216],Ni0=[0,8249],Oi0=[0,JR],ji0=[0,9674],Di0=[0,8727],Fi0=[0,8970],Ri0=[0,XP],Mi0=[0,8711],Li0=[0,956],qi0=[0,8722],Ui0=[0,O4],Bi0=[0,xA],Xi0=[0,8212],Gi0=[0,$D],Yi0=[0,8804],Ji0=[0,957],zi0=[0,DF],Ki0=[0,8836],Hi0=[0,8713],Vi0=[0,mw],$i0=[0,8715],Wi0=[0,8800],Qi0=[0,8853],Zi0=[0,959],xf0=[0,969],rf0=[0,8254],ef0=[0,uM],tf0=[0,339],nf0=[0,fv],uf0=[0,ZR],if0=[0,Dy],ff0=[0,z3],cf0=[0,8855],af0=[0,uE],sf0=[0,f1],of0=[0,ES],vf0=[0,q5],lf0=[0,x1],pf0=[0,pS],kf0=[0,982],mf0=[0,960],df0=[0,966],hf0=[0,8869],yf0=[0,8240],gf0=[0,8706],_f0=[0,8744],wf0=[0,8211],bf0=[0,10217],Tf0=[0,8730],Ef0=[0,8658],Af0=[0,34],Sf0=[0,968],Pf0=[0,8733],If0=[0,8719],Cf0=[0,961],Nf0=[0,8971],Of0=[0,WM],jf0=[0,8476],Df0=[0,8221],Ff0=[0,8969],Rf0=[0,8594],Mf0=[0,M4],Lf0=[0,LR],qf0=[0,CF],Uf0=[0,8901],Bf0=[0,353],Xf0=[0,8218],Gf0=[0,8217],Yf0=[0,8250],Jf0=[0,8835],zf0=[0,8721],Kf0=[0,8838],Hf0=[0,8834],Vf0=[0,9824],$f0=[0,8764],Wf0=[0,962],Qf0=[0,963],Zf0=[0,8207],xc0=[0,952],rc0=[0,8756],ec0=[0,964],tc0=[0,Ok],nc0=[0,8839],uc0=[0,fL],ic0=[0,ID],fc0=[0,Z3],cc0=[0,8657],ac0=[0,8482],sc0=[0,Og],oc0=[0,732],vc0=[0,M3],lc0=[0,8201],pc0=[0,977],kc0=[0,wR],mc0=[0,q3],dc0=[0,965],hc0=[0,978],yc0=[0,UM],gc0=[0,eA],_c0=[0,cL],wc0=[0,wD],bc0=[0,8205],Tc0=[0,950],Ec0=[0,pk],Ac0=[0,RF],Sc0=[0,gE],Pc0=[0,958],Ic0=[0,8593],Cc0=[0,Oj],Nc0=[0,8242],Oc0=[0,_M],jc0="unreachable regexp",Dc0="unreachable token wholenumber",Fc0="unreachable token wholebigint",Rc0="unreachable token floatbigint",Mc0="unreachable token scinumber",Lc0="unreachable token scibigint",qc0="unreachable token hexnumber",Uc0="unreachable token hexbigint",Bc0="unreachable token legacyoctnumber",Xc0="unreachable token legacynonoctnumber",Gc0="unreachable token octnumber",Yc0="unreachable token octbigint",Jc0="unreachable token bignumber",zc0="unreachable token bigint",Kc0="unreachable token",Hc0=NM,Vc0=[7,"#!"],$c0="expected ?",Wc0="unreachable string_escape",Qc0=Q2,Zc0=o6,xa0=o6,ra0=Q2,ea0=kI,ta0=BF,na0="n",ua0="r",ia0="t",fa0=tR,ca0=o6,aa0=no,sa0=no,oa0="unreachable id_char",va0=no,la0=no,pa0=o6,ka0=pM,ma0=Fj,da0=zw,ha0=[27,"token ILLEGAL"],ya0=[0,[11,"the identifier `",[2,0,[12,96,0]]],"the identifier `%s`"],ga0=[0,1],_a0=[0,1],wa0=HF,ba0=HF,Ta0=[0,[11,"an identifier. When exporting a ",[2,0,[11," as a named export, you must specify a ",[2,0,[11," name. Did you mean `export default ",[2,0,[11," ...`?",0]]]]]]],"an identifier. When exporting a %s as a named export, you must specify a %s name. Did you mean `expLine truncated
\v\x07\f\r\x1B  ! "#$%                                                                                                                                                                                            Line truncated
\v\f\r\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x1B\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07 \x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07Line truncated
\v\f\r\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\xLine truncated
\v\f\r`,t+1|0)-1|0;if(14<u>>>0)var i=w(r);else switch(u){case 0:var i=0;break;case 1:var i=16;break;case 2:var i=15;break;case 3:H(r,15);var i=Re(y(r))===0?15:w(r);break;case 4:H(r,4);var i=te(y(r))===0?e(r):w(r);break;case 5:H(r,11);var i=te(y(r))===0?e(r):w(r);break;case 6:var i=0;break;case 7:var i=5;break;case 8:var i=6;break;case 9:var i=7;break;case 10:var i=8;break;case 11:var i=9;break;case 12:H(r,14);var c=Xv(y(r));if(c===0)var i=Er(y(r))===0&&Er(y(r))===0&&Er(y(r))===0?12:w(r);else if(c===1&&Er(y(r))===0){for(;;){var v=Bv(y(r));if(v!==0)break}var i=v===1?13:w(r)}else var i=w(r);break;case 13:var i=10;break;default:H(r,14);var i=Er(y(r))===0&&Er(y(r))===0?1:w(r)}if(16<i>>>0)return Sx(Wc0);switch(i){case 0:var s=Bx(r);return[0,x,s,m1(r),0];case 1:var l=Bx(r);return[0,x,l,[0,dt(Jx(Qc0,l))],0];case 2:var p=Bx(r),d=dt(Jx(Zc0,p));return k6<=d?[0,x,p,[0,d>>>3|0,48+(d&7)|0],1]:[0,x,p,[0,d],1];case 3:var T=Bx(r);return[0,x,T,[0,dt(Jx(xa0,T))],1];case 4:return[0,x,ra0,[0,0],0];case 5:return[0,x,ea0,[0,8],0];case 6:return[0,x,ta0,[0,12],0];case 7:return[0,x,na0,[0,10],0];case 8:return[0,x,ua0,[0,13],0];case 9:return[0,x,ia0,[0,9],0];case 10:return[0,x,fa0,[0,11],0];case 11:var b=Bx(r);return[0,x,b,[0,dt(Jx(ca0,b))],1];case 12:var C=Bx(r);return[0,x,C,[0,dt(Jx(aa0,I2(C,1,Ux(C)-1|0)))],0];case 13:var N=Bx(r),I=dt(Jx(sa0,I2(N,2,Ux(N)-3|0))),F=dk<I?_t(x,Hr(x,r)):x;return[0,F,N,[0,I],0];case 14:var L=Bx(r),X=m1(r);return[0,_t(x,Hr(x,r)),L,X,0];case 15:var q=Bx(r);return[0,ne(x,r),q,[0],0];default:var J=Bx(r);return[0,x,J,m1(r),0]}}function _B(x,r,e,t,u,i){for(var c=x,v=u;;){mr(i);var s=y(i),l=92<s?1:J0("",s+1|0)-1|0;if(4<l>>>0)var p=w(i);else switch(l){case 0:var p=3;break;case 1:for(;;){H(i,4);var d=y(i),T=-1<d?91<d?92<d?0:-1:J0("\0\0\0",d)-1|0:-1;if(T!==0)break}var p=w(i);break;case 2:var p=2;break;case 3:var p=0;break;default:var p=1}if(4<p>>>0)return Sx(un0);switch(p){case 0:var b=Bx(i);if(cr(t,b),Tr(r,b))return[0,c,Me(c,i),v];cr(e,b);break;case 1:cr(t,in0);var C=gB(c,i),N=C[4],I=C[3],F=C[2],L=C[1],X=N||v;cr(t,F),mq(function(w0){return ja(e,w0)},I);var c=L,v=X;break;case 2:var q=Bx(i);cr(t,q);var J=ne(_t(c,Hr(c,i)),i);return cr(e,q),[0,J,Me(J,i),v];case 3:var e0=Bx(i);cr(t,e0);var W=_t(c,Hr(c,i));return cr(e,e0),[0,W,Me(W,i),v];default:var x0=i[6],i0=i[3]-x0|0,f0=I1(i0*4|0),r0=fp(i[1],x0,i0,f0);sN(t,f0,0,r0),sN(e,f0,0,r0)}}}function wB(x,r,e,t){for(var u=x;;){mr(t);var i=y(t),c=96<i?1:J0("\x07",i+1|0)-1|0;if(6<c>>>0)var v=w(t);else switch(c){case 0:var v=0;break;case 1:for(;;){H(t,6);var s=y(t),l=-1<s?95<s?96<s?0:-1:J0("\0\0\0\0",s)-1|0:-1;if(l!==0)break}var v=w(t);break;case 2:var v=5;break;case 3:H(t,5);var v=Re(y(t))===0?4:w(t);break;case 4:H(t,6);var p=y(t),d=o1<p?pn<p?-1:0:-1,v=d===0?2:w(t);break;case 5:var v=3;break;default:var v=1}if(6<v>>>0)return Sx(fn0);switch(v){case 0:return[0,_t(u,Hr(u,t)),1];case 1:return[0,u,1];case 2:return[0,u,0];case 3:ht(e,92);var T=gB(u,t),b=T[3],C=T[1];cr(e,T[2]),mq(function(F){return ja(r,F)},b);var u=C;break;case 4:cr(e,cn0),cr(r,an0);var u=ne(u,t);break;case 5:cr(e,Bx(t)),ht(r,10);var u=ne(u,t);break;default:var N=Bx(t);cr(e,N),cr(r,N)}}}function NT0(x,r,e){for(var t=x;;){mr(e);var u=y(e),i=92<u?n2<u?1:m2<u?2:1:J0("\x07",u+1|0)-1|0;if(6<i>>>0)var c=w(e);else switch(i){case 0:var c=0;break;case 1:for(;;){H(e,7);var v=y(e),s=-1<v?90<v?92<v?m2<v?n2<v?0:-1:0:-1:J0("\0\0\0",v)-1|0:-1;if(s!==0)break}var c=w(e);break;case 2:var c=6;break;case 3:H(e,6);var c=Re(y(e))===0?6:w(e);break;case 4:if(H(e,4),VU(y(e))===0){for(;H(e,3),VU(y(e))===0;);var c=w(e)}else var c=w(e);break;case 5:var c=5;break;default:H(e,7);var l=y(e),p=-1<l?13<l?n2<l?0:m2<l?1:0:J0("",l)-1|0:-1;if(2<p>>>0)var c=w(e);else switch(p){case 0:var c=2;break;case 1:var c=1;break;default:H(e,1);var c=Re(y(e))===0?1:w(e)}}if(7<c>>>0)return Sx(vn0);switch(c){case 0:return[0,j2(t,Hr(t,e),lt),ln0];case 1:return[0,ne(j2(t,Hr(t,e),lt),e),pn0];case 2:cr(r,Bx(e));break;case 3:var d=Bx(e);return[0,t,I2(d,1,Ux(d)-1|0)];case 4:return[0,t,kn0];case 5:ht(r,91);x:{r:{e:{t:{n:for(;;){mr(e);var T=y(e),b=93<T?n2<T?1:m2<T?2:1:J0("",T+1|0)-1|0;if(5<b>>>0)var C=w(e);else switch(b){case 0:var C=0;break;case 1:for(;;){H(e,5);var N=y(e),I=-1<N?91<N?93<N?m2<N?n2<N?0:-1:0:-1:J0("\0\0",N)-1|0:-1;iLine truncated
`);return W0.length>1&&W0.every(bx=>bx.trimStart()[0]==="*")}var yj=new WeakMap;function RA0(a0){return yj.has(a0)||yj.set(a0,FA0(a0)),yj.get(a0)}var gj=RA0;function MA0(a0){if(a0.length<2)return;let W0;for(let bx=a0.length-1;bx>=0;bx--){let Yx=a0[bx];if(W0&&V2(Yx)===Pe(W0)&&gj(Yx)&&gj(W0)&&(a0.splice(bx+1,1),Yx.value+="*//*"+W0.value,Yx.range=[Pe(Yx),V2(W0)]),!dj(Yx)&&!I3(Yx))throw new TypeError(`Unknown comment type: "${Yx.type}".`);W0=Yx}}var _Y=MA0;var $p=null;function Wp(a0){if($p!==null&&typeof $p.property){let W0=$p;return $p=Wp.prototype=null,W0}return $p=Wp.prototype=a0??Object.create(null),new Wp}var LA0=10;for(let a0=0;a0<=LA0;a0++)Wp();function _j(a0){return Wp(a0)}function qA0(a0,W0="type"){_j(a0);function bx(Yx){let x1=Yx[W0],D1=a0[x1];if(!Array.isArray(D1))throw Object.assign(new Error(`Missing visitor keys for '${x1}'.`),{node:Yx});return D1}return bx}var wY=qA0;var bY={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","typeParameters","typeArguments","arguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","typeParameters","params","predicate","returnType","body"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","typeParameters","typeArguments","arguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectProperty:["decorators","key","value"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],ClassBody:["body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],ImportExpression:["source","options"],MetaProperty:["meta","property"],ClassMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectPattern:["decorators","properties","typeAnnotation"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","typeParameters","quasi","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","typeParameters","typeArguments","arguments"],ClassProperty:["decorators","variance","key","typeAnnotation","value"],ClassAccessorProperty:["decorators","key","typeAnnotation","value"],ClassPrivateProperty:["decorators","variance","key","typeAnnotation","value"],ClassPrivateMethod:["decorators","key","typeParameters","params","returnType","body"],PrivateName:["id"],StaticBlock:["body"],ImportAttribute:["key","value"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["idLine truncated
`;a0=Wl(!1,a0.replace(YA0,"").replace(GA0,""),HA0,"$1");let bx="";for(;bx!==a0;)bx=a0,a0=Wl(!1,a0,KA0,`${W0}$1 $2${W0}`);a0=a0.replace(IY,"").trimEnd();let Yx=Object.create(null),x1=Wl(!1,a0,CY,"").replace(IY,"").trimEnd(),D1;for(;D1=CY.exec(a0);){let Ie=Wl(!1,D1[2],zA0,"");if(typeof Yx[D1[1]]=="string"||Array.isArray(Yx[D1[1]])){let k2=Yx[D1[1]];Yx[D1[1]]=[...VA0,...Array.isArray(k2)?k2:[k2],Ie]}else Yx[D1[1]]=Ie}return{comments:x1,pragmas:Yx}}var jY=["noformat","noprettier"],DY=["format","prettier"];function $A0(a0){if(!a0.startsWith("#!"))return"";let W0=a0.indexOf(`
`);return W0===-1?a0:a0.slice(0,W0)}var FY=$A0;function RY(a0){let W0=FY(a0);W0&&(a0=a0.slice(W0.length+1));let bx=NY(a0),{pragmas:Yx,comments:x1}=OY(bx);return{shebang:W0,text:a0,pragmas:Yx,comments:x1}}function MY(a0){let{pragmas:W0}=RY(a0);return DY.some(bx=>Object.prototype.hasOwnProperty.call(W0,bx))}function LY(a0){let{pragmas:W0}=RY(a0);return jY.some(bx=>Object.prototype.hasOwnProperty.call(W0,bx))}function WA0(a0){return a0=typeof a0=="function"?{parse:a0}:a0,{astFormat:"estree",hasPragma:MY,hasIgnorePragma:LY,locStart:Pe,locEnd:V2,...a0}}var qY=WA0;var QA0={comments:!1,components:!0,enums:!0,esproposal_decorators:!0,esproposal_export_star_as:!0,tokens:!1};function ZA0(a0){let{message:W0,loc:bx}=a0;if(!bx)return a0;let{start:Yx,end:x1}=bx;return mY(W0,{loc:{start:{line:Yx.line,column:Yx.column+1},end:{line:x1.line,column:x1.column+1}},cause:a0})}function xS0(a0){let W0=UY.default.parse(a0,QA0),[bx]=W0.errors;if(bx)throw ZA0(bx);return PY(W0,{parser:"flow",text:a0})}var rS0=qY(xS0);var AP0=Ej;export{AP0 as default,Tj as parsers};
@@ -0,0 +1,14 @@
/**
* Checks if `value` is in the array cache.
*
* @private
* @name has
* @memberOf SetCache
* @param {*} value The value to search for.
* @returns {number} Returns `true` if `value` is found, else `false`.
*/
function setCacheHas(value) {
return this.__data__.has(value);
}
export default setCacheHas;
@@ -0,0 +1,15 @@
'use strict';
var $TypeError = require('es-errors/type');
// https://262.ecma-international.org/6.0/#sec-createiterresultobject
module.exports = function CreateIterResultObject(value, done) {
if (typeof done !== 'boolean') {
throw new $TypeError('Assertion failed: Type(done) is not Boolean');
}
return {
value: value,
done: done
};
};
@@ -0,0 +1,210 @@
import { useEffect, useLayoutEffect, useState } from 'react';
import { Annotation, EditorState, StateEffect, type Extension } from '@codemirror/state';
import { EditorView, type ViewUpdate } from '@codemirror/view';
import { getDefaultExtensions } from './getDefaultExtensions';
import { getStatistics } from './utils';
import { type ReactCodeMirrorProps } from '.';
import { TimeoutLatch, getScheduler } from './timeoutLatch';
export const ExternalChange = Annotation.define<boolean>();
const TYPING_TIMOUT = 200; // ms
export interface UseCodeMirror extends ReactCodeMirrorProps {
container?: HTMLDivElement | null;
}
const emptyExtensions: Extension[] = [];
export function useCodeMirror(props: UseCodeMirror) {
const {
value,
selection,
onChange,
onStatistics,
onCreateEditor,
onUpdate,
extensions = emptyExtensions,
autoFocus,
theme = 'light',
height = null,
minHeight = null,
maxHeight = null,
width = null,
minWidth = null,
maxWidth = null,
placeholder: placeholderStr = '',
editable = true,
readOnly = false,
indentWithTab: defaultIndentWithTab = true,
basicSetup: defaultBasicSetup = true,
root,
initialState,
} = props;
const [container, setContainer] = useState<HTMLDivElement | null>();
const [view, setView] = useState<EditorView>();
const [state, setState] = useState<EditorState>();
const typingLatch = useState<{ current: TimeoutLatch | null }>(() => ({ current: null }))[0];
const pendingUpdate = useState<{ current: (() => void) | null }>(() => ({ current: null }))[0];
const defaultThemeOption = EditorView.theme({
'&': {
height,
minHeight,
maxHeight,
width,
minWidth,
maxWidth,
},
'& .cm-scroller': {
height: '100% !important',
},
});
const updateListener = EditorView.updateListener.of((vu: ViewUpdate) => {
if (
vu.docChanged &&
typeof onChange === 'function' &&
// Fix echoing of the remote changes:
// If transaction is market as remote we don't have to call `onChange` handler again
!vu.transactions.some((tr) => tr.annotation(ExternalChange))
) {
if (typingLatch.current) {
typingLatch.current.reset();
} else {
typingLatch.current = new TimeoutLatch(() => {
if (pendingUpdate.current) {
const forceUpdate = pendingUpdate.current;
pendingUpdate.current = null;
forceUpdate();
}
typingLatch.current = null;
}, TYPING_TIMOUT);
getScheduler().add(typingLatch.current);
}
const doc = vu.state.doc;
const value = doc.toString();
onChange(value, vu);
}
onStatistics && onStatistics(getStatistics(vu));
});
const defaultExtensions = getDefaultExtensions({
theme,
editable,
readOnly,
placeholder: placeholderStr,
indentWithTab: defaultIndentWithTab,
basicSetup: defaultBasicSetup,
});
let getExtensions = [updateListener, defaultThemeOption, ...defaultExtensions];
if (onUpdate && typeof onUpdate === 'function') {
getExtensions.push(EditorView.updateListener.of(onUpdate));
}
getExtensions = getExtensions.concat(extensions);
useLayoutEffect(() => {
if (container && !state) {
const config = {
doc: value,
selection,
extensions: getExtensions,
};
const stateCurrent = initialState
? EditorState.fromJSON(initialState.json, config, initialState.fields)
: EditorState.create(config);
setState(stateCurrent);
if (!view) {
const viewCurrent = new EditorView({
state: stateCurrent,
parent: container,
root,
});
setView(viewCurrent);
onCreateEditor && onCreateEditor(viewCurrent, stateCurrent);
}
}
return () => {
if (view) {
setState(undefined);
setView(undefined);
}
};
}, [container, state]);
useEffect(() => {
if (props.container) {
setContainer(props.container);
}
}, [props.container]);
useEffect(
() => () => {
if (view) {
view.destroy();
setView(undefined);
}
if (typingLatch.current) {
typingLatch.current.cancel();
typingLatch.current = null;
}
},
[view],
);
useEffect(() => {
if (autoFocus && view) {
view.focus();
}
}, [autoFocus, view]);
useEffect(() => {
if (view) {
view.dispatch({ effects: StateEffect.reconfigure.of(getExtensions) });
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [
theme,
extensions,
height,
minHeight,
maxHeight,
width,
minWidth,
maxWidth,
placeholderStr,
editable,
readOnly,
defaultIndentWithTab,
defaultBasicSetup,
onChange,
onUpdate,
]);
useEffect(() => {
if (value === undefined) {
return;
}
const currentValue = view ? view.state.doc.toString() : '';
if (view && value !== currentValue) {
const isTyping = typingLatch.current && !typingLatch.current.isDone;
const forceUpdate = () => {
if (view && value !== view.state.doc.toString()) {
view.dispatch({
changes: { from: 0, to: view.state.doc.toString().length, insert: value || '' },
annotations: [ExternalChange.of(true)],
});
}
};
if (!isTyping) {
forceUpdate();
} else {
pendingUpdate.current = forceUpdate;
}
}
}, [value, view]);
return { state, setState, view, setView, container, setContainer };
}
@@ -0,0 +1,128 @@
import type LinkedList from '../../collection/linked-list.js';
import type LinkedNode from '../../collection/linked-node.js';
import type { RegistryDefinition } from '../../registry.js';
import Scope from '../../scope.js';
export interface BlotConstructor {
new (...args: any[]): Blot;
/**
* Creates corresponding DOM node
*/
create(value?: any): Node;
blotName: string;
tagName: string | string[];
scope: Scope;
className?: string;
requiredContainer?: BlotConstructor;
allowedChildren?: BlotConstructor[];
defaultChild?: BlotConstructor;
}
/**
* Blots are the basic building blocks of a Parchment document.
*
* Several basic implementations such as Block, Inline, and Embed are provided.
* In general you will want to extend one of these, instead of building from scratch.
* After implementation, blots need to be registered before usage.
*
* At the very minimum a Blot must be named with a static blotName and associated with either a tagName or className.
* If a Blot is defined with both a tag and class, the class takes precedence, but the tag may be used as a fallback.
* Blots must also have a scope, which determine if it is inline or block.
*/
export interface Blot extends LinkedNode {
scroll: Root;
parent: Parent;
prev: Blot | null;
next: Blot | null;
domNode: Node;
statics: BlotConstructor;
attach(): void;
clone(): Blot;
detach(): void;
isolate(index: number, length: number): Blot;
/**
* For leaves, length of blot's value()
* For parents, sum of children's values
*/
length(): number;
/**
* Returns offset between this blot and an ancestor's
*/
offset(root?: Blot): number;
remove(): void;
replaceWith(name: string, value: any): Blot;
replaceWith(replacement: Blot): Blot;
split(index: number, force?: boolean): Blot | null;
wrap(name: string, value?: any): Parent;
wrap(wrapper: Parent): Parent;
deleteAt(index: number, length: number): void;
formatAt(index: number, length: number, name: string, value: any): void;
insertAt(index: number, value: string, def?: any): void;
/**
* Called after update cycle completes. Cannot change the value or length
* of the document, and any DOM operation must reduce complexity of the DOM
* tree. A shared context object is passed through all blots.
*/
optimize(context: { [key: string]: any }): void;
optimize(mutations: MutationRecord[], context: { [key: string]: any }): void;
/**
* Called when blot changes, with the mutation records of its change.
* Internal records of the blot values can be updated, and modifications of
* the blot itself is permitted. Can be trigger from user change or API call.
* A shared context object is passed through all blots.
*/
update(mutations: MutationRecord[], context: { [key: string]: any }): void;
}
export interface Parent extends Blot {
children: LinkedList<Blot>;
domNode: HTMLElement;
appendChild(child: Blot): void;
descendant<T>(type: new () => T, index: number): [T, number];
descendant<T>(matcher: (blot: Blot) => boolean, index: number): [T, number];
descendants<T>(type: new () => T, index: number, length: number): T[];
descendants<T>(
matcher: (blot: Blot) => boolean,
index: number,
length: number,
): T[];
insertBefore(child: Blot, refNode?: Blot | null): void;
moveChildren(parent: Parent, refNode?: Blot | null): void;
path(index: number, inclusive?: boolean): [Blot, number][];
removeChild(child: Blot): void;
unwrap(): void;
}
export interface Root extends Parent {
create(input: Node | string | Scope, value?: any): Blot;
find(node: Node | null, bubble?: boolean): Blot | null;
query(query: string | Node | Scope, scope?: Scope): RegistryDefinition | null;
}
export interface Formattable extends Blot {
/**
* Apply format to blot. Should not pass onto child or other blot.
*/
format(name: string, value: any): void;
/**
* Return formats represented by blot, including from Attributors.
*/
formats(): { [index: string]: any };
}
export interface Leaf extends Blot {
index(node: Node, offset: number): number;
position(index: number, inclusive: boolean): [Node, number];
value(): any;
}
@@ -0,0 +1,141 @@
"use client";
// src/use-navbar.ts
import { mapPropsVariants, useProviderContext } from "@heroui/system";
import { navbar } from "@heroui/theme";
import { useDOMRef } from "@heroui/react-utils";
import { clsx, dataAttr, objectToDeps } from "@heroui/shared-utils";
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
import { mergeProps, useResizeObserver } from "@react-aria/utils";
import { useScrollPosition } from "@heroui/use-scroll-position";
import { useControlledState } from "@react-stately/utils";
import { usePreventScroll } from "@react-aria/overlays";
function useNavbar(originalProps) {
var _a, _b;
const globalContext = useProviderContext();
const [props, variantProps] = mapPropsVariants(originalProps, navbar.variantKeys);
const {
ref,
as,
parentRef,
height = "4rem",
shouldHideOnScroll = false,
disableScrollHandler = false,
shouldBlockScroll = true,
onScrollPositionChange,
isMenuOpen: isMenuOpenProp,
isMenuDefaultOpen,
onMenuOpenChange = () => {
},
motionProps,
className,
classNames,
...otherProps
} = props;
const Component = as || "nav";
const disableAnimation = (_b = (_a = originalProps.disableAnimation) != null ? _a : globalContext == null ? void 0 : globalContext.disableAnimation) != null ? _b : false;
const domRef = useDOMRef(ref);
const prevWidth = useRef(0);
const navHeight = useRef(0);
const [isHidden, setIsHidden] = useState(false);
const handleMenuOpenChange = useCallback(
(isOpen) => {
onMenuOpenChange(isOpen || false);
},
[onMenuOpenChange]
);
const [isMenuOpen, setIsMenuOpen] = useControlledState(
isMenuOpenProp,
isMenuDefaultOpen != null ? isMenuDefaultOpen : false,
handleMenuOpenChange
);
const updateWidth = () => {
if (domRef.current) {
const width = domRef.current.offsetWidth;
if (width !== prevWidth.current) {
prevWidth.current = width;
}
}
};
usePreventScroll({
isDisabled: !(shouldBlockScroll && isMenuOpen)
});
useResizeObserver({
ref: domRef,
onResize: () => {
var _a2;
const currentWidth = (_a2 = domRef.current) == null ? void 0 : _a2.offsetWidth;
const scrollWidth = window.innerWidth - document.documentElement.clientWidth;
if (currentWidth && currentWidth + scrollWidth == prevWidth.current) {
return;
}
if (currentWidth !== prevWidth.current) {
updateWidth();
setIsMenuOpen(false);
}
}
});
useEffect(() => {
var _a2;
updateWidth();
navHeight.current = ((_a2 = domRef.current) == null ? void 0 : _a2.offsetHeight) || 0;
}, []);
const slots = useMemo(
() => navbar({
...variantProps,
disableAnimation,
hideOnScroll: shouldHideOnScroll
}),
[objectToDeps(variantProps), disableAnimation, shouldHideOnScroll]
);
const baseStyles = clsx(classNames == null ? void 0 : classNames.base, className);
useScrollPosition({
elementRef: parentRef,
isEnabled: shouldHideOnScroll || !disableScrollHandler,
callback: ({ prevPos, currPos }) => {
onScrollPositionChange == null ? void 0 : onScrollPositionChange(currPos.y);
if (shouldHideOnScroll) {
setIsHidden((prev) => {
const next = currPos.y > prevPos.y && currPos.y > navHeight.current;
return next !== prev ? next : prev;
});
}
}
});
const getBaseProps = (props2 = {}) => ({
...mergeProps(otherProps, props2),
"data-hidden": dataAttr(isHidden),
"data-menu-open": dataAttr(isMenuOpen),
ref: domRef,
className: slots.base({ class: clsx(baseStyles, props2 == null ? void 0 : props2.className) }),
style: {
"--navbar-height": typeof height === "number" ? `${height}px` : height,
...otherProps == null ? void 0 : otherProps.style,
...props2 == null ? void 0 : props2.style
}
});
const getWrapperProps = (props2 = {}) => ({
...props2,
"data-menu-open": dataAttr(isMenuOpen),
className: slots.wrapper({ class: clsx(classNames == null ? void 0 : classNames.wrapper, props2 == null ? void 0 : props2.className) })
});
return {
Component,
slots,
domRef,
height,
isHidden,
disableAnimation,
shouldHideOnScroll,
isMenuOpen,
classNames,
setIsMenuOpen,
motionProps,
getBaseProps,
getWrapperProps
};
}
export {
useNavbar
};
@@ -0,0 +1,18 @@
'use strict';
var define = require('define-properties');
var getPolyfill = require('./polyfill');
var shimUnscopables = require('es-shim-unscopables');
module.exports = function shimFindLast() {
var polyfill = getPolyfill();
define(
Array.prototype,
{ findLast: polyfill },
{ findLast: function () { return Array.prototype.findLast !== polyfill; } }
);
shimUnscopables('findLast');
return polyfill;
};
@@ -0,0 +1,78 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.injectBase = injectBase;
const reflect_metadata_utils_1 = require("@inversifyjs/reflect-metadata-utils");
const InversifyCoreError_1 = require("../../error/models/InversifyCoreError");
const InversifyCoreErrorKind_1 = require("../../error/models/InversifyCoreErrorKind");
const classMetadataReflectKey_1 = require("../../reflectMetadata/data/classMetadataReflectKey");
const updateMaybeClassMetadataConstructorArgument_1 = require("../actions/updateMaybeClassMetadataConstructorArgument");
const updateMaybeClassMetadataProperty_1 = require("../actions/updateMaybeClassMetadataProperty");
const getDefaultClassMetadata_1 = require("../calculations/getDefaultClassMetadata");
const handleInjectionError_1 = require("../calculations/handleInjectionError");
function injectBase(updateMetadata, updatePendingClassMetadataCount) {
const decorator = (target, propertyKey, parameterIndexOrDescriptor) => {
try {
if (parameterIndexOrDescriptor === undefined) {
injectProperty(updateMetadata, updatePendingClassMetadataCount)(target, propertyKey);
}
else {
if (typeof parameterIndexOrDescriptor === 'number') {
injectParameter(updateMetadata, updatePendingClassMetadataCount)(target, propertyKey, parameterIndexOrDescriptor);
}
else {
injectMethod(updateMetadata, updatePendingClassMetadataCount)(target, propertyKey, parameterIndexOrDescriptor);
}
}
}
catch (error) {
(0, handleInjectionError_1.handleInjectionError)(target, propertyKey, parameterIndexOrDescriptor, error);
}
};
return decorator;
}
function buildComposedUpdateMetadata(updateMetadata, updatePendingClassMetadataCount) {
return (target) => {
const updateTargetPendingClassMetadataCount = updatePendingClassMetadataCount(target);
return (metadata) => {
updateTargetPendingClassMetadataCount(metadata);
return updateMetadata(metadata);
};
};
}
function injectMethod(updateMetadata, updatePendingClassMetadataCount) {
const buildComposedUpdateMetadataFromTarget = buildComposedUpdateMetadata(updateMetadata, updatePendingClassMetadataCount);
return (target, propertyKey, descriptor) => {
if (isPropertySetter(descriptor)) {
(0, reflect_metadata_utils_1.updateOwnReflectMetadata)(target.constructor, classMetadataReflectKey_1.classMetadataReflectKey, getDefaultClassMetadata_1.getDefaultClassMetadata, (0, updateMaybeClassMetadataProperty_1.updateMaybeClassMetadataProperty)(buildComposedUpdateMetadataFromTarget(target), propertyKey));
}
else {
throw new InversifyCoreError_1.InversifyCoreError(InversifyCoreErrorKind_1.InversifyCoreErrorKind.injectionDecoratorConflict, `Found an @inject decorator in a non setter property method.
Found @inject decorator at method "${propertyKey.toString()}" at class "${target.constructor.name}"`);
}
};
}
function injectParameter(updateMetadata, updatePendingClassMetadataCount) {
const buildComposedUpdateMetadataFromTarget = buildComposedUpdateMetadata(updateMetadata, updatePendingClassMetadataCount);
return (target, propertyKey, parameterIndex) => {
if (isConstructorParameter(target, propertyKey)) {
(0, reflect_metadata_utils_1.updateOwnReflectMetadata)(target, classMetadataReflectKey_1.classMetadataReflectKey, getDefaultClassMetadata_1.getDefaultClassMetadata, (0, updateMaybeClassMetadataConstructorArgument_1.updateMaybeClassMetadataConstructorArgument)(buildComposedUpdateMetadataFromTarget(target), parameterIndex));
}
else {
throw new InversifyCoreError_1.InversifyCoreError(InversifyCoreErrorKind_1.InversifyCoreErrorKind.injectionDecoratorConflict, `Found an @inject decorator in a non constructor parameter.
Found @inject decorator at method "${propertyKey?.toString() ?? ''}" at class "${target.constructor.name}"`);
}
};
}
function injectProperty(updateMetadata, updatePendingClassMetadataCount) {
const buildComposedUpdateMetadataFromTarget = buildComposedUpdateMetadata(updateMetadata, updatePendingClassMetadataCount);
return (target, propertyKey) => {
(0, reflect_metadata_utils_1.updateOwnReflectMetadata)(target.constructor, classMetadataReflectKey_1.classMetadataReflectKey, getDefaultClassMetadata_1.getDefaultClassMetadata, (0, updateMaybeClassMetadataProperty_1.updateMaybeClassMetadataProperty)(buildComposedUpdateMetadataFromTarget(target), propertyKey));
};
}
function isConstructorParameter(target, propertyKey) {
return typeof target === 'function' && propertyKey === undefined;
}
function isPropertySetter(descriptor) {
return descriptor.set !== undefined;
}
//# sourceMappingURL=injectBase.js.map
@@ -0,0 +1,116 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.encodeLength = exports.MAJOR_TYPE_SIMPLE_OR_FLOAT = exports.MAJOR_TYPE_TAG = exports.MAJOR_TYPE_MAP = exports.MAJOR_TYPE_ARRAY = exports.MAJOR_TYPE_TEXT_STRING = exports.MAJOR_TYPE_BYTE_STRING = exports.MAJOR_TYPE_NEGATIVE_INTEGER = exports.MAJOR_TYPE_UNSIGNED_INTEGER = exports.decodeLength = void 0;
function decodeLength(data, argument, index) {
if (argument < 24) {
return [argument, 1];
}
const remainingDataLength = data.byteLength - index - 1;
const view = new DataView(data.buffer, index + 1);
let output;
let bytes = 0;
switch (argument) {
case 24: {
if (remainingDataLength > 0) {
output = view.getUint8(0);
bytes = 2;
}
break;
}
case 25: {
if (remainingDataLength > 1) {
output = view.getUint16(0, false);
bytes = 3;
}
break;
}
case 26: {
if (remainingDataLength > 3) {
output = view.getUint32(0, false);
bytes = 5;
}
break;
}
case 27: {
if (remainingDataLength > 7) {
const bigOutput = view.getBigUint64(0, false);
// Bound it to [24, MAX_SAFE_INTEGER], where it is safe
// to encode as a javascript number
if (bigOutput >= 24n && bigOutput <= Number.MAX_SAFE_INTEGER) {
return [Number(bigOutput), 9];
}
}
break;
}
}
if (output && output >= 24) {
return [output, bytes];
}
throw new Error("Length not supported or not well formed");
}
exports.decodeLength = decodeLength;
exports.MAJOR_TYPE_UNSIGNED_INTEGER = 0;
exports.MAJOR_TYPE_NEGATIVE_INTEGER = 1;
exports.MAJOR_TYPE_BYTE_STRING = 2;
exports.MAJOR_TYPE_TEXT_STRING = 3;
exports.MAJOR_TYPE_ARRAY = 4;
exports.MAJOR_TYPE_MAP = 5;
exports.MAJOR_TYPE_TAG = 6;
exports.MAJOR_TYPE_SIMPLE_OR_FLOAT = 7;
function encodeLength(major, argument) {
const majorEncoded = major << 5;
if (argument < 0) {
throw new Error("CBOR Data Item argument must not be negative");
}
// Convert to bigint first.
// Encode integers around and above 32 bits in big endian / network byte order
// is unreliable in javascript.
// https://tc39.es/ecma262/#sec-bitwise-shift-operators
// Bit shifting operations result in 32 bit signed numbers
let bigintArgument;
if (typeof argument == "number") {
if (!Number.isInteger(argument)) {
throw new Error("CBOR Data Item argument must be an integer");
}
bigintArgument = BigInt(argument);
}
else {
bigintArgument = argument;
}
// Negative 0 is not a thing
if (major == exports.MAJOR_TYPE_NEGATIVE_INTEGER) {
if (bigintArgument == 0n) {
throw new Error("CBOR Data Item argument cannot be zero when negative");
}
bigintArgument = bigintArgument - 1n;
}
if (bigintArgument > 18446744073709551615n) {
throw new Error("CBOR number out of range");
}
// Encode into 64 bits and extract the tail
const buffer = new Uint8Array(8);
const view = new DataView(buffer.buffer);
view.setBigUint64(0, bigintArgument, false);
if (bigintArgument <= 23) {
return [majorEncoded | buffer[7]];
}
else if (bigintArgument <= 255) {
return [majorEncoded | 24, buffer[7]];
}
else if (bigintArgument <= 65535) {
return [majorEncoded | 25, ...buffer.slice(6)];
}
else if (bigintArgument <= 4294967295) {
return [
majorEncoded | 26,
...buffer.slice(4),
];
}
else {
return [
majorEncoded | 27,
...buffer,
];
}
}
exports.encodeLength = encodeLength;
@@ -0,0 +1,15 @@
module.exports = {
"deselectedItem": (args)=>`${args.item} se\xe7ilmedi.`,
"longPressToSelect": `Se\xe7im moduna girmek i\xe7in uzun bas\u{131}n.`,
"select": `Se\xe7`,
"selectedAll": `T\xfcm \xf6geler se\xe7ildi.`,
"selectedCount": (args, formatter)=>`${formatter.plural(args.count, {
"=0": `Hi\xe7bir \xf6ge se\xe7ilmedi`,
one: ()=>`${formatter.number(args.count)} \xf6ge se\xe7ildi`,
other: ()=>`${formatter.number(args.count)} \xf6ge se\xe7ildi`
})}.`,
"selectedItem": (args)=>`${args.item} se\xe7ildi.`
};
//# sourceMappingURL=tr-TR.main.js.map
@@ -0,0 +1,91 @@
import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["className", "value", "selection", "extensions", "onChange", "onStatistics", "onCreateEditor", "onUpdate", "autoFocus", "theme", "height", "minHeight", "maxHeight", "width", "minWidth", "maxWidth", "basicSetup", "placeholder", "indentWithTab", "editable", "readOnly", "root", "initialState"];
import React, { useRef, forwardRef, useImperativeHandle, useCallback } from 'react';
import { useCodeMirror } from "./useCodeMirror.js";
import { jsx as _jsx } from "react/jsx-runtime";
export * from '@codemirror/view';
export * from '@codemirror/state';
export * from '@uiw/codemirror-extensions-basic-setup';
export * from "./useCodeMirror.js";
export * from "./getDefaultExtensions.js";
export * from "./utils.js";
var ReactCodeMirror = /*#__PURE__*/forwardRef((props, ref) => {
var {
className,
value = '',
selection,
extensions = [],
onChange,
onStatistics,
onCreateEditor,
onUpdate,
autoFocus,
theme = 'light',
height,
minHeight,
maxHeight,
width,
minWidth,
maxWidth,
basicSetup,
placeholder,
indentWithTab,
editable,
readOnly,
root,
initialState
} = props,
other = _objectWithoutPropertiesLoose(props, _excluded);
var editor = useRef(null);
var {
state,
view,
container,
setContainer
} = useCodeMirror({
root,
value,
autoFocus,
theme,
height,
minHeight,
maxHeight,
width,
minWidth,
maxWidth,
basicSetup,
placeholder,
indentWithTab,
editable,
readOnly,
selection,
onChange,
onStatistics,
onCreateEditor,
onUpdate,
extensions,
initialState
});
useImperativeHandle(ref, () => ({
editor: editor.current,
state: state,
view: view
}), [editor, container, state, view]);
var setEditorRef = useCallback(el => {
editor.current = el;
setContainer(el);
}, [setContainer]);
// check type of value
if (typeof value !== 'string') {
throw new Error("value must be typeof string but got " + typeof value);
}
var defaultClassNames = typeof theme === 'string' ? "cm-theme-" + theme : 'cm-theme';
return /*#__PURE__*/_jsx("div", _extends({
ref: setEditorRef,
className: "" + defaultClassNames + (className ? " " + className : '')
}, other));
});
ReactCodeMirror.displayName = 'CodeMirror';
export default ReactCodeMirror;
@@ -0,0 +1 @@
{"name":"is-boolean-object","version":"1.2.2","requiresBuild":false,"files":{".editorconfig":{"checkedAt":1794532097717,"integrity":"sha512-YawvVmCRII368W4uV526wIIaoNa5Z79175k6E15G/tb58q6H4yNY7Ets5vW0hdoO063Yb+2YoXw2K+vwzCyBhA==","mode":420,"size":353},".eslintrc":{"checkedAt":1794532097718,"integrity":"sha512-SMsOg7da7Ja3OLZ/1gjEG5vQSaNUcBArP7AEH6xcYTJDIQcDM24iIdt6bY1Y1rx5sEuULQZLOcS/9X7vzfUKAQ==","mode":420,"size":148},".nycrc":{"checkedAt":1794532097718,"integrity":"sha512-aLxN7EM7vuJGE3vcz8CsQow+RuaR3thZWTHupkykz/8WOXUd8ayX5goRxPe3MCnZ0VVDkuEk8UBkk3NodRfMOg==","mode":420,"size":159},"LICENSE":{"checkedAt":1794532097718,"integrity":"sha512-CWRd82wre8E2D9wfNTwrOCxhLsdU7obtQTc4poEGt1uTk93MEI2QW01sXILetqMRgoYp4EIKQZNHNCQrALOFjw==","mode":420,"size":1082},"index.js":{"checkedAt":1794532097718,"integrity":"sha512-U6ZAtZRx/qrYGCov+5aqO5FSqsHWw0Qb0ktyfoPIHzYysh73vfDVOj7jAwMCwk2XCXVdnZsoy9/Cz2GUqyAPkw==","mode":420,"size":711},"test/index.js":{"checkedAt":1794532097718,"integrity":"sha512-rTrIz/vxgrRJ4yJiLrZHOvT2iDP8sn0qDsaw9RqdOKvEGwVoYd8jCQeZGuqIEWEOq1QMjnT2eD6ChC85cJjUKA==","mode":420,"size":2228},"package.json":{"checkedAt":1794532097718,"integrity":"sha512-gNyugFwNBXEAkH4uXeZ8sLmMdruQZX16gHlqRv3cyzQp1My/noJL3hTMetCShlTDdqXN9GFs8/mVbSdB1fK9ew==","mode":420,"size":2723},"tsconfig.json":{"checkedAt":1794532097718,"integrity":"sha512-G5TL2bnT395BqGez+9xQ1y3SLgDH02BmKrcCPi2ZqYX4R9bnh5r/5OndAzu60nrsK4zZ2iGgHtH1RKQ1ridK5g==","mode":420,"size":114},"CHANGELOG.md":{"checkedAt":1794532097719,"integrity":"sha512-BcnRmUDYkymCcp/uLlBu74Skkf2rrufb/wHV8/SQYVCPFmzUqkvFJLaPAIL+SBK3oLHwq8HIXAco7UA5M33a2A==","mode":420,"size":16054},"README.md":{"checkedAt":1794532097719,"integrity":"sha512-fo2wBWPxyQApNjdNK58MLITzQ0rVNPVKveLQdeApySbJrNzZZ9ATP9rMbjalGf+DeDr5FsyoUBpNarGhfyC8Eg==","mode":420,"size":2221},"index.d.ts":{"checkedAt":1794532097719,"integrity":"sha512-fOho/z7UtvZ9nMXHDhRTSW1sCMhCE19XydIYJD11MVlbx1QZePyQhK2RIKpl6eA6nXHT2vv7kMX11KiMhajhwg==","mode":420,"size":105},".github/FUNDING.yml":{"checkedAt":1794532097719,"integrity":"sha512-P8j1tDuN92XRtEQYL3nFxruTutPKi7+Sa9GcpDNvqoYLgLcGaCTkMplYR16/RbAwrJxe7IlFedqE7WUZDwY3Rw==","mode":420,"size":588}}}
@@ -0,0 +1,4 @@
{
"main": "../../cjs/_iterable_to_array.cjs",
"module": "../../esm/_iterable_to_array.js"
}
@@ -0,0 +1,6 @@
module.exports = {
"breadcrumbs": `S\xf6kv\xe4gar`
};
//# sourceMappingURL=sv-SE.main.js.map
@@ -0,0 +1 @@
{"name":"@heroui/use-safe-layout-effect","version":"2.1.8","requiresBuild":false,"files":{"dist/index.js":{"checkedAt":1794532109406,"integrity":"sha512-XKbOOP11CyKtAYsY6frj0eOir1eWsk/8L9mPOanwVUlYDKe/Vky+982ne57Gwwl3GrbM2RAJpwbPQ4nLJnF2jQ==","mode":420,"size":1257},"package.json":{"checkedAt":1794532109406,"integrity":"sha512-3KrcqzJpdYEaonADLgeBudEYjIrDw1NDt5uZNTlvVEWaCPUWRwFS1h8Wqcdw7VU1B9YDbiRRqeuy3vIO3JY3OQ==","mode":420,"size":1259},"README.md":{"checkedAt":1794532109406,"integrity":"sha512-cMk+0/RmmIvmURTYnodsbnsQJAj0N8Jg2TsPglvEgZazcYPy5YdjxdOsgVZUmZevCw5OJO+RNEbJJrPbTJRvJw==","mode":420,"size":521},"dist/index.mjs":{"checkedAt":1794532109406,"integrity":"sha512-HnfpgBdRpxg8R5Fp2aMjtS/EfhU+ZRSNGAYWbx4prnsaMvTwcCM0owLtr5kWeL1tascE0VzNgGEdNSlEdAva/w==","mode":420,"size":218},"dist/index.d.mts":{"checkedAt":1794532109406,"integrity":"sha512-6QgwPcjGVpdqVtyqG16wLDyRvS/7ieZBfeLCYdLNKw03JBOAZoPxHjCdyxwUkHLTXcBiH4HxJj6V2GS/XqB0XA==","mode":420,"size":134},"dist/index.d.ts":{"checkedAt":1794532109406,"integrity":"sha512-6QgwPcjGVpdqVtyqG16wLDyRvS/7ieZBfeLCYdLNKw03JBOAZoPxHjCdyxwUkHLTXcBiH4HxJj6V2GS/XqB0XA==","mode":420,"size":134},"LICENSE":{"checkedAt":1794532109407,"integrity":"sha512-fUY+MMF2uFI8CfCphWLCp6ty4uU9bKvcaTZFGiBK7qgOOULkpyNSGb2IIjBYgGT5iqdeUaZRGLbTggbAUEyPyQ==","mode":420,"size":1069}}}
@@ -0,0 +1,28 @@
function _iterableToArrayLimit(r, l) {
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
if (null != t) {
var e,
n,
i,
u,
a = [],
f = !0,
o = !1;
try {
if (i = (t = t.call(r)).next, 0 === l) {
if (Object(t) !== t) return;
f = !1;
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
} catch (r) {
o = !0, n = r;
} finally {
try {
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
} finally {
if (o) throw n;
}
}
return a;
}
}
module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
@@ -0,0 +1,117 @@
import * as util from "../core/util.js";
const error = () => {
const Sizable = {
string: { unit: "caratteri", verb: "avere" },
file: { unit: "byte", verb: "avere" },
array: { unit: "elementi", verb: "avere" },
set: { unit: "elementi", verb: "avere" },
};
function getSizing(origin) {
return Sizable[origin] ?? null;
}
const parsedType = (data) => {
const t = typeof data;
switch (t) {
case "number": {
return Number.isNaN(data) ? "NaN" : "numero";
}
case "object": {
if (Array.isArray(data)) {
return "vettore";
}
if (data === null) {
return "null";
}
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
return data.constructor.name;
}
}
}
return t;
};
const Nouns = {
regex: "input",
email: "indirizzo email",
url: "URL",
emoji: "emoji",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "data e ora ISO",
date: "data ISO",
time: "ora ISO",
duration: "durata ISO",
ipv4: "indirizzo IPv4",
ipv6: "indirizzo IPv6",
cidrv4: "intervallo IPv4",
cidrv6: "intervallo IPv6",
base64: "stringa codificata in base64",
base64url: "URL codificata in base64",
json_string: "stringa JSON",
e164: "numero E.164",
jwt: "JWT",
template_literal: "input",
};
return (issue) => {
switch (issue.code) {
case "invalid_type":
return `Input non valido: atteso ${issue.expected}, ricevuto ${parsedType(issue.input)}`;
// return `Input non valido: atteso ${issue.expected}, ricevuto ${util.getParsedType(issue.input)}`;
case "invalid_value":
if (issue.values.length === 1)
return `Input non valido: atteso ${util.stringifyPrimitive(issue.values[0])}`;
return `Opzione non valida: atteso uno tra ${util.joinValues(issue.values, "|")}`;
case "too_big": {
const adj = issue.inclusive ? "<=" : "<";
const sizing = getSizing(issue.origin);
if (sizing)
return `Troppo grande: ${issue.origin ?? "valore"} deve avere ${adj}${issue.maximum.toString()} ${sizing.unit ?? "elementi"}`;
return `Troppo grande: ${issue.origin ?? "valore"} deve essere ${adj}${issue.maximum.toString()}`;
}
case "too_small": {
const adj = issue.inclusive ? ">=" : ">";
const sizing = getSizing(issue.origin);
if (sizing) {
return `Troppo piccolo: ${issue.origin} deve avere ${adj}${issue.minimum.toString()} ${sizing.unit}`;
}
return `Troppo piccolo: ${issue.origin} deve essere ${adj}${issue.minimum.toString()}`;
}
case "invalid_format": {
const _issue = issue;
if (_issue.format === "starts_with")
return `Stringa non valida: deve iniziare con "${_issue.prefix}"`;
if (_issue.format === "ends_with")
return `Stringa non valida: deve terminare con "${_issue.suffix}"`;
if (_issue.format === "includes")
return `Stringa non valida: deve includere "${_issue.includes}"`;
if (_issue.format === "regex")
return `Stringa non valida: deve corrispondere al pattern ${_issue.pattern}`;
return `Invalid ${Nouns[_issue.format] ?? issue.format}`;
}
case "not_multiple_of":
return `Numero non valido: deve essere un multiplo di ${issue.divisor}`;
case "unrecognized_keys":
return `Chiav${issue.keys.length > 1 ? "i" : "e"} non riconosciut${issue.keys.length > 1 ? "e" : "a"}: ${util.joinValues(issue.keys, ", ")}`;
case "invalid_key":
return `Chiave non valida in ${issue.origin}`;
case "invalid_union":
return "Input non valido";
case "invalid_element":
return `Valore non valido in ${issue.origin}`;
default:
return `Input non valido`;
}
};
};
export default function () {
return {
localeError: error(),
};
}
@@ -0,0 +1,3 @@
declare const _exports: import('eslint').Rule.RuleModule;
export = _exports;
//# sourceMappingURL=jsx-no-target-blank.d.ts.map
@@ -0,0 +1,193 @@
/*!----------------- TypeScript ThirdPartyNotices -------------------------------------------------------
The TypeScript software incorporates third party material from the projects listed below. The original copyright notice and the license under which Microsoft received such third party material are set forth below. Microsoft reserves all other rights not expressly granted, whether by implication, estoppel or otherwise.
---------------------------------------------
Third Party Code Components
--------------------------------------------
------------------- DefinitelyTyped --------------------
This file is based on or incorporates material from the projects listed below (collectively "Third Party Code"). Microsoft is not the original author of the Third Party Code. The original copyright notice and the license, under which Microsoft received such Third Party Code, are set forth below. Such licenses and notices are provided for informational purposes only. Microsoft, not the third party, licenses the Third Party Code to you under the terms set forth in the EULA for the Microsoft Product. Microsoft reserves all other rights not expressly granted under this agreement, whether by implication, estoppel or otherwise.
DefinitelyTyped
This project is licensed under the MIT license. Copyrights are respective of each contributor listed at the beginning of each definition file. Provided for Informational Purposes Only
MIT License
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.
--------------------------------------------------------------------------------------
------------------- Unicode --------------------
UNICODE, INC. LICENSE AGREEMENT - DATA FILES AND SOFTWARE
Unicode Data Files include all data files under the directories
http://www.unicode.org/Public/, http://www.unicode.org/reports/,
http://www.unicode.org/cldr/data/, http://source.icu-project.org/repos/icu/, and
http://www.unicode.org/utility/trac/browser/.
Unicode Data Files do not include PDF online code charts under the
directory http://www.unicode.org/Public/.
Software includes any source code published in the Unicode Standard
or under the directories
http://www.unicode.org/Public/, http://www.unicode.org/reports/,
http://www.unicode.org/cldr/data/, http://source.icu-project.org/repos/icu/, and
http://www.unicode.org/utility/trac/browser/.
NOTICE TO USER: Carefully read the following legal agreement.
BY DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING UNICODE INC.'S
DATA FILES ("DATA FILES"), AND/OR SOFTWARE ("SOFTWARE"),
YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE
TERMS AND CONDITIONS OF THIS AGREEMENT.
IF YOU DO NOT AGREE, DO NOT DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE
THE DATA FILES OR SOFTWARE.
COPYRIGHT AND PERMISSION NOTICE
Copyright (c) 1991-2017 Unicode, Inc. All rights reserved.
Distributed under the Terms of Use in http://www.unicode.org/copyright.html.
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Unicode data files and any associated documentation
(the "Data Files") or Unicode software and any associated documentation
(the "Software") to deal in the Data Files or Software
without restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, and/or sell copies of
the Data Files or Software, and to permit persons to whom the Data Files
or Software are furnished to do so, provided that either
(a) this copyright and permission notice appear with all copies
of the Data Files or Software, or
(b) this copyright and permission notice appear in associated
Documentation.
THE DATA FILES AND SOFTWARE ARE 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 OF THIRD PARTY RIGHTS.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS
NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL
DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THE DATA FILES OR SOFTWARE.
Except as contained in this notice, the name of a copyright holder
shall not be used in advertising or otherwise to promote the sale,
use or other dealings in these Data Files or Software without prior
written authorization of the copyright holder.
-------------------------------------------------------------------------------------
-------------------Document Object Model-----------------------------
DOM
W3C License
This work is being provided by the copyright holders under the following license.
By obtaining and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions.
Permission to copy, modify, and distribute this work, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following
on ALL copies of the work or portions thereof, including modifications:
* The full text of this NOTICE in a location viewable to users of the redistributed or derivative work.
* Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, the W3C Software and Document Short Notice should be included.
* Notice of any changes or modifications, through a copyright statement on the new code or document such as "This software or document includes material copied from or derived
from [title and URI of the W3C document]. Copyright © [YEAR] W3C® (MIT, ERCIM, Keio, Beihang)."
Disclaimers
THIS WORK IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR
FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENT WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENT.
The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the work without specific, written prior permission.
Title to copyright in this work will at all times remain with copyright holders.
---------
DOM
Copyright © 2018 WHATWG (Apple, Google, Mozilla, Microsoft). This work is licensed under a Creative Commons Attribution 4.0 International License: Attribution 4.0 International
=======================================================================
Creative Commons Corporation ("Creative Commons") is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an "as-is" basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible. Using Creative Commons Public Licenses Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses. Considerations for licensors: Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other CC- licensed material, or material used under an exception or limitation to copyright. More considerations for licensors:
wiki.creativecommons.org/Considerations_for_licensors Considerations for the public: By using one of our public licenses, a licensor grants the public permission to use the licensed material under specified terms and conditions. If the licensor's permission is not necessary for any reason--for example, because of any applicable exception or limitation to copyright--then that use is not regulated by the license. Our licenses grant only permissions under copyright and certain other rights that a licensor has authority to grant. Use of the licensed material may still be restricted for other reasons, including because others have copyright or other rights in the material. A licensor may make special requests, such as asking that all changes be marked or described. Although not required by our licenses, you are encouraged to respect those requests where reasonable. More_considerations for the public: wiki.creativecommons.org/Considerations_for_licensees =======================================================================
Creative Commons Attribution 4.0 International Public License By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions. Section 1 -- Definitions. a. Adapted Material means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image. b. Adapter's License means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License. c. Copyright and Similar Rights means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights. d. Effective Technological Measures means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements. e. Exceptions and Limitations means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material. f. Licensed Material means the artistic or literary work, database, or other material to which the Licensor applied this Public License. g. Licensed Rights means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license. h. Licensor means the individual(s) or entity(ies) granting rights under this Public License. i. Share means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them. j. Sui Generis Database Rights means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world. k. You means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning. Section 2 -- Scope. a. License grant. 1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to: a. reproduce and Share the Licensed Material, in whole or in part; and b. produce, reproduce, and Share Adapted Material. 2. Exceptions and Limitations. For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions. 3. Term. The term of this Public License is specified in Section 6(a). 4. Media and formats; technical modifications allowed. The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a) (4) never produces Adapted Material. 5. Downstream recipients. a. Offer from the Licensor -- Licensed Material. Every recipient of the Licensed Material automatically receivLine truncated
--------------------------------------------------------------------------------
----------------------Web Background Synchronization------------------------------
Web Background Synchronization Specification
Portions of spec © by W3C
W3C Community Final Specification Agreement
To secure commitments from participants for the full text of a Community or Business Group Report, the group may call for voluntary commitments to the following terms; a "summary" is
available. See also the related "W3C Community Contributor License Agreement".
1. The Purpose of this Agreement.
This Agreement sets forth the terms under which I make certain copyright and patent rights available to you for your implementation of the Specification.
Any other capitalized terms not specifically defined herein have the same meaning as those terms have in the "W3C Patent Policy", and if not defined there, in the "W3C Process Document".
2. Copyrights.
2.1. Copyright Grant. I grant to you a perpetual (for the duration of the applicable copyright), worldwide, non-exclusive, no-charge, royalty-free, copyright license, without any obligation for accounting to me, to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, distribute, and implement the Specification to the full extent of my copyright interest in the Specification.
2.2. Attribution. As a condition of the copyright grant, you must include an attribution to the Specification in any derivative work you make based on the Specification. That attribution must include, at minimum, the Specification name and version number.
3. Patents.
3.1. Patent Licensing Commitment. I agree to license my Essential Claims under the W3C Community RF Licensing Requirements. This requirement includes Essential Claims that I own and any that I have the right to license without obligation of payment or other consideration to an unrelated third party. W3C Community RF Licensing Requirements obligations made concerning the Specification and described in this policy are binding on me for the life of the patents in question and encumber the patents containing Essential Claims, regardless of changes in participation status or W3C Membership. I also agree to license my Essential Claims under the W3C Community RF Licensing Requirements in derivative works of the Specification so long as all normative portions of the Specification are maintained and that this licensing commitment does not extend to any portion of the derivative work that was not included in the Specification.
3.2. Optional, Additional Patent Grant. In addition to the provisions of Section 3.1, I may also, at my option, make certain intellectual property rights infringed by implementations of the Specification, including Essential Claims, available by providing those terms via the W3C Web site.
4. No Other Rights. Except as specifically set forth in this Agreement, no other express or implied patent, trademark, copyright, or other property rights are granted under this Agreement, including by implication, waiver, or estoppel.
5. Antitrust Compliance. I acknowledge that I may compete with other participants, that I am under no obligation to implement the Specification, that each participant is free to develop competing technologies and standards, and that each party is free to license its patent rights to third parties, including for the purpose of enabling competing technologies and standards.
6. Non-Circumvention. I agree that I will not intentionally take or willfully assist any third party to take any action for the purpose of circumventing my obligations under this Agreement.
7. Transition to W3C Recommendation Track. The Specification developed by the Project may transition to the W3C Recommendation Track. The W3C Team is responsible for notifying me that a Corresponding Working Group has been chartered. I have no obligation to join the Corresponding Working Group. If the Specification developed by the Project transitions to the W3C Recommendation Track, the following terms apply:
7.1. If I join the Corresponding Working Group. If I join the Corresponding Working Group, I will be subject to all W3C rules, obligations, licensing commitments, and policies that govern that Corresponding Working Group.
7.2. If I Do Not Join the Corresponding Working Group.
7.2.1. Licensing Obligations to Resulting Specification. If I do not join the Corresponding Working Group, I agree to offer patent licenses according to the W3C Royalty-Free licensing requirements described in Section 5 of the W3C Patent Policy for the portions of the Specification included in the resulting Recommendation. This licensing commitment does not extend to any portion of an implementation of the Recommendation that was not included in the Specification. This licensing commitment may not be revoked but may be modified through the exclusion process defined in Section 4 of the W3C Patent Policy. I am not required to join the Corresponding Working Group to exclude patents from the W3C Royalty-Free licensing commitment, but must otherwise follow the normal exclusion procedures defined by the W3C Patent Policy. The W3C Team will notify me of any Call for Exclusion in the Corresponding Working Group as set forth in Section 4.5 of the W3C Patent Policy.
7.2.2. No Disclosure Obligation. If I do not join the Corresponding Working Group, I have no patent disclosure obligations outside of those set forth in Section 6 of the W3C Patent Policy.
8. Conflict of Interest. I will disclose significant relationships when those relationships might reasonably be perceived as creating a conflict of interest with my role. I will notify W3C of any change in my affiliation using W3C-provided mechanisms.
9. Representations, Warranties and Disclaimers. I represent and warrant that I am legally entitled to grant the rights and promises set forth in this Agreement. IN ALL OTHER RESPECTS THE SPECIFICATION IS PROVIDED “AS IS.” The entire risk as to implementing or otherwise using the Specification is assumed by the implementer and user. Except as stated herein, I expressly disclaim any warranties (express, implied, or otherwise), including implied warranties of merchantability, non-infringement, fitness for a particular purpose, or title, related to the Specification. IN NO EVENT WILL ANY PARTY BE LIABLE TO ANY OTHER PARTY FOR LOST PROFITS OR ANY FORM OF INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER FROM ANY CAUSES OF ACTION OF ANY KIND WITH RESPECT TO THIS AGREEMENT, WHETHER BASED ON BREACH OF CONTRACT, TORT (INCLUDING NEGLIGENCE), OR OTHERWISE, AND WHETHER OR NOT THE OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. All of my obligations under Section 3 regarding the transfer, successors in interest, or assignment of Granted Claims will be satisfied if I notify the transferee or assignee of any patent that I know contains Granted Claims of the obligations under Section 3. Nothing in this Agreement requires me to undertake a patent search.
10. Definitions.
10.1. Agreement. “Agreement” means this W3C Community Final Specification Agreement.
10.2. Corresponding Working Group. “Corresponding Working Group” is a W3C Working Group that is chartered to develop a Recommendation, as defined in the W3C Process Document, that takes the Specification as an input.
10.3. Essential Claims. “Essential Claims” shall mean all claims in any patent or patent application in any jurisdiction in the world that would necessarily be infringed by implementation of the Specification. A claim is necessarily infringed hereunder only when it is not possible to avoid infringing it because there is no non-infringing alternative for implementing the normative portions of the Specification. Existence of a non-infringing alternative shall be judged based on the state of the art at the time of the publication of the Specification. The following are expressly excluded from and shall not be deemed to constitute Essential Claims:
10.3.1. any claims other than as set forth above even if contained in the same patent as Essential Claims; and
10.3.2. claims which would be infringed only by:
portions of an implementation that are not specified in the normative portions of the Specification, or
enabling technologies that may be necessary to make or use any product or portion thereof that complies with the Specification and are not themselves expressly set forth in the Specification (e.g., semiconductor manufacturing technology, compiler technology, object-oriented technology, basic operating system technology, and the like); or
the implementation of technology developed elsewhere and merely incorporated by reference in the body of the Specification.
10.3.3. design patents and design registrations.
For purposes of this definition, the normative portions of the Specification shall be deemed to include only architectural and interoperability requirements. Optional features in the RFC 2119 sense are considered normative unless they are specifically identified as informative. Implementation examples or any other material that merely illustrate the requirements of the Specification are informative, rather than normative.
10.4. I, Me, or My. “I,” “me,” or “my” refers to the signatory.
10.5 Project. “Project” means the W3C Community Group or Business Group for which I executed this Agreement.
10.6. Specification. “Specification” means the Specification identified by the Project as the target of this agreement in a call for Final Specification Commitments. W3C shall provide the authoritative mechanisms for the identification of this Specification.
10.7. W3C Community RF Licensing Requirements. “W3C Community RF Licensing Requirements” license shall mean a non-assignable, non-sublicensable license to make, have made, use, sell, have sold, offer to sell, import, and distribute and dispose of implementations of the Specification that:
10.7.1. shall be available to all, worldwide, whether or not they are W3C Members;
10.7.2. shall extend to all Essential Claims owned or controlled by me;
10.7.3. may be limited to implementations of the Specification, and to what is required by the Specification;
10.7.4. may be conditioned on a grant of a reciprocal RF license (as defined in this policy) to all Essential Claims owned or controlled by the licensee. A reciprocal license may be required to be available to all, and a reciprocal license may itself be conditioned on a further reciprocal license from all.
10.7.5. may not be conditioned on payment of royalties, fees or other consideration;
10.7.6. may be suspended with respect to any licensee when licensor issued by licensee for infringement of claims essential to implement the Specification or any W3C Recommendation;
10.7.7. may not impose any further conditions or restrictions on the use of any technology, intellectual property rights, or other restrictions on behavior of the licensee, but may include reasonable, customary terms relating to operation or maintenance of the license relationship such as the following: choice of law and dispute resolution;
10.7.8. shall not be considered accepted by an implementer who manifests an intent not to accept the terms of the W3C Community RF Licensing Requirements license as offered by the licensor.
10.7.9. The RF license conforming to the requirements in this policy shall be made available by the licensor as long as the Specification is in effect. The term of such license shall be for the life of the patents in question.
I am encouraged to provide a contact from which licensing information can be obtained and other relevant licensing information. Any such information will be made publicly available.
10.8. You or Your. “You,” “you,” or “your” means any person or entity who exercises copyright or patent rights granted under this Agreement, and any person that person or entity controls.
-------------------------------------------------------------------------------------
------------------- WebGL -----------------------------
Copyright (c) 2018 The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are 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 Materials.
THE MATERIALS ARE 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
MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
------------------------------------------------------
------------- End of ThirdPartyNotices ------------------------------------------- */
@@ -0,0 +1,39 @@
// Sindhi [sd]
import dayjs from '../index';
var locale = {
name: 'sd',
weekdays: 'آچر_سومر_اڱارو_اربع_خميس_جمع_ڇنڇر'.split('_'),
months: 'جنوري_فيبروري_مارچ_اپريل_مئي_جون_جولاءِ_آگسٽ_سيپٽمبر_آڪٽوبر_نومبر_ڊسمبر'.split('_'),
weekStart: 1,
weekdaysShort: 'آچر_سومر_اڱارو_اربع_خميس_جمع_ڇنڇر'.split('_'),
monthsShort: 'جنوري_فيبروري_مارچ_اپريل_مئي_جون_جولاءِ_آگسٽ_سيپٽمبر_آڪٽوبر_نومبر_ڊسمبر'.split('_'),
weekdaysMin: 'آچر_سومر_اڱارو_اربع_خميس_جمع_ڇنڇر'.split('_'),
ordinal: function ordinal(n) {
return n;
},
formats: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd، D MMMM YYYY HH:mm'
},
relativeTime: {
future: '%s پوء',
past: '%s اڳ',
s: 'چند سيڪنڊ',
m: 'هڪ منٽ',
mm: '%d منٽ',
h: 'هڪ ڪلاڪ',
hh: '%d ڪلاڪ',
d: 'هڪ ڏينهن',
dd: '%d ڏينهن',
M: 'هڪ مهينو',
MM: '%d مهينا',
y: 'هڪ سال',
yy: '%d سال'
}
};
dayjs.locale(locale, null, true);
export default locale;
@@ -0,0 +1 @@
{"mappings":"AAAA,iBAAiB;IAAG,aAAa,CAAC,UAAU,CAAC;IAC3C,iBAAiB,CAAC,OAAS,CAAC,qBAAqB,EAAE,KAAK,UAAU,CAAC,sBAAsB,CAAC;IAC1F,cAAc,CAAC,OAAS,GAAG,KAAK,KAAK,CAAC,WAAQ,CAAC;IAC/C,cAAc,CAAC,WAAW,CAAC;IAC3B,kBAAkB,CAAC,OAAS,CAAC,qBAAqB,EAAE,KAAK,UAAU,CAAC,qBAAqB,CAAC;IAC1F,sBAAsB,CAAC,wCAAwC,CAAC;IAChE,UAAU,CAAC,WAAW,CAAC;IACvB,aAAa,CAAC,iBAAiB,CAAC;IAChC,YAAY,CAAC,iBAAiB,CAAC;AACjC","sources":["packages/@react-aria/table/intl/es-ES.json"],"sourcesContent":["{\n \"ascending\": \"ascendente\",\n \"ascendingSort\": \"ordenado por columna {columnName} en sentido ascendente\",\n \"columnSize\": \"{value} píxeles\",\n \"descending\": \"descendente\",\n \"descendingSort\": \"ordenado por columna {columnName} en orden descendente\",\n \"resizerDescription\": \"Pulse Intro para empezar a redimensionar\",\n \"select\": \"Seleccionar\",\n \"selectAll\": \"Seleccionar todos\",\n \"sortable\": \"columna ordenable\"\n}\n"],"names":[],"version":3,"file":"es-ES.main.js.map"}
@@ -0,0 +1 @@
{"version":3,"file":"decode_codepoint.js","sourceRoot":"https://raw.githubusercontent.com/fb55/entities/61afd4701eaa736978b13c7351cd3de9a96b04bc/src/","sources":["decode_codepoint.ts"],"names":[],"mappings":"AAAA,qHAAqH;;AAErH,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC;IACtB,CAAC,CAAC,EAAE,KAAK,CAAC;IACV,sDAAsD;IACtD,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,GAAG,CAAC;IACV,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,GAAG,CAAC;IACV,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,GAAG,CAAC;IACV,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,GAAG,CAAC;IACV,CAAC,GAAG,EAAE,GAAG,CAAC;IACV,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,GAAG,CAAC;IACV,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,GAAG,CAAC;IACV,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,GAAG,CAAC;IACV,CAAC,GAAG,EAAE,GAAG,CAAC;IACV,CAAC,GAAG,EAAE,GAAG,CAAC;CACb,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa;AACtB,iHAAiH;AACjH,MAAA,MAAM,CAAC,aAAa,mCACpB,UAAU,SAAiB;IACvB,IAAI,MAAM,GAAG,EAAE,CAAC;IAEhB,IAAI,SAAS,GAAG,MAAM,EAAE;QACpB,SAAS,IAAI,OAAO,CAAC;QACrB,MAAM,IAAI,MAAM,CAAC,YAAY,CACzB,CAAC,CAAC,SAAS,KAAK,EAAE,CAAC,GAAG,KAAK,CAAC,GAAG,MAAM,CACxC,CAAC;QACF,SAAS,GAAG,MAAM,GAAG,CAAC,SAAS,GAAG,KAAK,CAAC,CAAC;KAC5C;IAED,MAAM,IAAI,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;IACzC,OAAO,MAAM,CAAC;AAClB,CAAC,CAAC;AAEN;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAAC,SAAiB;;IAC9C,IAAI,CAAC,SAAS,IAAI,MAAM,IAAI,SAAS,IAAI,MAAM,CAAC,IAAI,SAAS,GAAG,QAAQ,EAAE;QACtE,OAAO,MAAM,CAAC;KACjB;IAED,OAAO,MAAA,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,mCAAI,SAAS,CAAC;AACjD,CAAC;AAED;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,SAAiB;IACrD,OAAO,aAAa,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC,CAAC;AACtD,CAAC"}
@@ -0,0 +1,19 @@
import { MappedResult } from '../mapped/index.mjs';
import { Omit } from './omit.mjs';
import { Clone } from '../clone/value.mjs';
// prettier-ignore
function FromProperties(properties, propertyKeys, options) {
const result = {};
for (const K2 of globalThis.Object.getOwnPropertyNames(properties))
result[K2] = Omit(properties[K2], propertyKeys, Clone(options));
return result;
}
// prettier-ignore
function FromMappedResult(mappedResult, propertyKeys, options) {
return FromProperties(mappedResult.properties, propertyKeys, options);
}
// prettier-ignore
export function OmitFromMappedResult(mappedResult, propertyKeys, options) {
const properties = FromMappedResult(mappedResult, propertyKeys, options);
return MappedResult(properties);
}
@@ -0,0 +1,16 @@
import type { TSchema, SchemaOptions } from '../schema/index';
import type { Static } from '../static/index';
import { Kind } from '../symbols/index';
type TupleStatic<T extends TSchema[], P extends unknown[], Acc extends unknown[] = []> = T extends [infer L extends TSchema, ...infer R extends TSchema[]] ? TupleStatic<R, P, [...Acc, Static<L, P>]> : Acc;
export interface TTuple<T extends TSchema[] = TSchema[]> extends TSchema {
[Kind]: 'Tuple';
static: TupleStatic<T, this['params']>;
type: 'array';
items: T;
additionalItems?: false;
minItems: T['length'];
maxItems: T['length'];
}
/** `[Json]` Creates a Tuple type */
export declare function Tuple<Types extends TSchema[]>(types: [...Types], options?: SchemaOptions): TTuple<Types>;
export {};
@@ -0,0 +1,11 @@
export default function instancePerContainerCachingFactory(factoryFunc) {
var cache = new WeakMap();
return function (dependencyContainer) {
var instance = cache.get(dependencyContainer);
if (instance == undefined) {
instance = factoryFunc(dependencyContainer);
cache.set(dependencyContainer, instance);
}
return instance;
};
}
@@ -0,0 +1,4 @@
export declare function useAnnouncement(): {
readonly announce: (value: string | undefined) => void;
readonly announcement: string;
};
@@ -0,0 +1,46 @@
import apply from './_apply.js';
import createCtor from './_createCtor.js';
import createHybrid from './_createHybrid.js';
import createRecurry from './_createRecurry.js';
import getHolder from './_getHolder.js';
import replaceHolders from './_replaceHolders.js';
import root from './_root.js';
/**
* Creates a function that wraps `func` to enable currying.
*
* @private
* @param {Function} func The function to wrap.
* @param {number} bitmask The bitmask flags. See `createWrap` for more details.
* @param {number} arity The arity of `func`.
* @returns {Function} Returns the new wrapped function.
*/
function createCurry(func, bitmask, arity) {
var Ctor = createCtor(func);
function wrapper() {
var length = arguments.length,
args = Array(length),
index = length,
placeholder = getHolder(wrapper);
while (index--) {
args[index] = arguments[index];
}
var holders = (length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder)
? []
: replaceHolders(args, placeholder);
length -= holders.length;
if (length < arity) {
return createRecurry(
func, bitmask, createHybrid, wrapper.placeholder, undefined,
args, holders, undefined, undefined, arity - length);
}
var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
return apply(fn, this, args);
}
return wrapper;
}
export default createCurry;
@@ -0,0 +1,14 @@
export type {Test} from 'unist-util-is'
export type {
Action,
ActionTuple,
BuildVisitor,
// Undocumented: used in `unist-util-visit`:
InclusiveDescendant,
Index,
// Undocumented: used in `unist-util-visit`:
Matches,
Visitor,
VisitorResult
} from './lib/index.js'
export {CONTINUE, EXIT, SKIP, visitParents} from './lib/index.js'
Loaded 100 of 35554 files, more files were not shown because too many files have changed in this diff. Show more