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,23 @@
'use strict';
var $SyntaxError = require('es-errors/syntax');
var $TypeError = require('es-errors/type');
var isInteger = require('math-intrinsics/isInteger');
var whichTypedArray = require('which-typed-array');
// https://262.ecma-international.org/13.0/#sec-typedarrayelementsize
var tableTAO = require('./tables/typed-array-objects');
module.exports = function TypedArrayElementSize(O) {
var type = whichTypedArray(O);
if (!type) {
throw new $TypeError('Assertion failed: `O` must be a TypedArray');
}
var size = tableTAO.size['$' + tableTAO.name['$' + type]];
if (!isInteger(size) || size < 0) {
throw new $SyntaxError('Assertion failed: Unknown TypedArray type `' + type + '`');
}
return size;
};
@@ -0,0 +1,3 @@
declare const _default: <T>(ref: T, name: string) => any;
export default _default;
//# sourceMappingURL=unsetEmptyArray.d.ts.map
@@ -0,0 +1 @@
{"mappings":";;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;AA+BM,MAAM,0DAAiB,CAAA,GAAA,YAAI,EAAE,aAAa,CAAuF;AAMjI,SAAS,0CAAQ,KAAmB;IACzC,IAAI,QAAQ,CAAA,GAAA,eAAO;IACnB,IAAI,mBAAC,kBAAkB,QAAQ,OAAO,SAAS,IAAI,aAAE,SAAS,EAAC,GAAG;IAClE,IAAI,CAAC,SAAS,WAAW,GAAG,CAAA,GAAA,eAAO,EAAE;IACrC,IAAI,eAAe,CAAA,GAAA,cAAM,EAAE,IAAO,CAAA;qBAAC;wBAAS;QAAU,CAAA,GAAI;QAAC;QAAS;KAAW;IAE/E,IAAI,gBAAC,YAAY,EAAC,GAAG,CAAA,GAAA,yCAAwB;IAC7C,IAAK,CAAC,MAAM,eAAe,IAAI,cAC7B,kBAAkB;IAGpB,IAAI,CAAC,iBACH,OAAO;IAGT,IAAI,WAAW,MAAM,QAAQ;IAC7B,IAAI,CAAC,MAAM,sBAAsB,EAC/B,yBACE,gCAAC,CAAA,GAAA,iBAAS;QAAE,cAAA;QAAa,SAAS,WAAW,CAAC;OAC3C;IAKP,yBACE,gCAAC,0CAAe,QAAQ;QAAC,OAAO;qBAC9B,gCAAC,CAAA,GAAA,0BAAkB,SAChB;IAKP,qBAAO,CAAA,GAAA,eAAO,EAAE,YAAY,CAAC,UAAU;AACzC;AAGO,SAAS;IACd,IAAI,MAAM,CAAA,GAAA,iBAAS,EAAE;IACrB,IAAI,aAAa,gBAAA,0BAAA,IAAK,UAAU;IAChC,CAAA,GAAA,sBAAc,EAAE;QACd,uBAAA,iCAAA,WAAa;IACf,GAAG;QAAC;KAAW;AACjB","sources":["packages/@react-aria/overlays/src/Overlay.tsx"],"sourcesContent":["/*\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\nimport {ClearPressResponder} from '@react-aria/interactions';\nimport {FocusScope} from '@react-aria/focus';\nimport React, {ReactNode, useContext, useMemo, useState} from 'react';\nimport ReactDOM from 'react-dom';\nimport {useIsSSR} from '@react-aria/ssr';\nimport {useLayoutEffect} from '@react-aria/utils';\nimport {useUNSTABLE_PortalContext} from './PortalProvider';\n\nexport interface OverlayProps {\n /**\n * The container element in which the overlay portal will be placed.\n * @default document.body\n */\n portalContainer?: Element,\n /** The overlay to render in the portal. */\n children: ReactNode,\n /**\n * Disables default focus management for the overlay, including containment and restoration.\n * This option should be used very carefully. When focus management is disabled, you must\n * implement focus containment and restoration to ensure the overlay is keyboard accessible.\n */\n disableFocusManagement?: boolean,\n /**\n * Whether the overlay is currently performing an exit animation. When true,\n * focus is allowed to move outside.\n */\n isExiting?: boolean\n}\n\nexport const OverlayContext = React.createContext<{contain: boolean, setContain: React.Dispatch<React.SetStateAction<boolean>>} | null>(null);\n\n/**\n * A container which renders an overlay such as a popover or modal in a portal,\n * and provides a focus scope for the child elements.\n */\nexport function Overlay(props: OverlayProps) {\n let isSSR = useIsSSR();\n let {portalContainer = isSSR ? null : document.body, isExiting} = props;\n let [contain, setContain] = useState(false);\n let contextValue = useMemo(() => ({contain, setContain}), [contain, setContain]);\n\n let {getContainer} = useUNSTABLE_PortalContext();\n if (!props.portalContainer && getContainer) {\n portalContainer = getContainer();\n }\n\n if (!portalContainer) {\n return null;\n }\n\n let contents = props.children;\n if (!props.disableFocusManagement) {\n contents = (\n <FocusScope restoreFocus contain={contain && !isExiting}>\n {contents}\n </FocusScope>\n );\n }\n\n contents = (\n <OverlayContext.Provider value={contextValue}>\n <ClearPressResponder>\n {contents}\n </ClearPressResponder>\n </OverlayContext.Provider>\n );\n\n return ReactDOM.createPortal(contents, portalContainer);\n}\n\n/** @private */\nexport function useOverlayFocusContain() {\n let ctx = useContext(OverlayContext);\n let setContain = ctx?.setContain;\n useLayoutEffect(() => {\n setContain?.(true);\n }, [setContain]);\n}\n"],"names":[],"version":3,"file":"Overlay.module.js.map"}
@@ -0,0 +1,53 @@
/**
* Copyright (c) 2012-2015, Christopher Jeffrey, Peter Sunde (MIT License)
* Copyright (c) 2016, Daniel Imms (MIT License).
* Copyright (c) 2018, Microsoft Corporation (MIT License).
*/
import { ITerminal, IPtyOpenOptions, IPtyForkOptions, IWindowsPtyForkOptions } from './interfaces';
import { ArgvOrCommandLine } from './types';
import { ptyPath } from './prebuild-file-path';
let terminalCtor: any;
if (process.platform === 'win32') {
terminalCtor = require('./windowsTerminal').WindowsTerminal;
} else {
terminalCtor = require('./unixTerminal').UnixTerminal;
}
/**
* Forks a process as a pseudoterminal.
* @param file The file to launch.
* @param args The file's arguments as argv (string[]) or in a pre-escaped
* CommandLine format (string). Note that the CommandLine option is only
* available on Windows and is expected to be escaped properly.
* @param options The options of the terminal.
* @throws When the file passed to spawn with does not exists.
* @see CommandLineToArgvW https://msdn.microsoft.com/en-us/library/windows/desktop/bb776391(v=vs.85).aspx
* @see Parsing C++ Comamnd-Line Arguments https://msdn.microsoft.com/en-us/library/17w5ykft.aspx
* @see GetCommandLine https://msdn.microsoft.com/en-us/library/windows/desktop/ms683156.aspx
*/
export function spawn(file?: string, args?: ArgvOrCommandLine, opt?: IPtyForkOptions | IWindowsPtyForkOptions): ITerminal {
return new terminalCtor(file, args, opt);
}
/** @deprecated */
export function fork(file?: string, args?: ArgvOrCommandLine, opt?: IPtyForkOptions | IWindowsPtyForkOptions): ITerminal {
return new terminalCtor(file, args, opt);
}
/** @deprecated */
export function createTerminal(file?: string, args?: ArgvOrCommandLine, opt?: IPtyForkOptions | IWindowsPtyForkOptions): ITerminal {
return new terminalCtor(file, args, opt);
}
export function open(options: IPtyOpenOptions): ITerminal {
return terminalCtor.open(options);
}
/**
* Expose the native API when not Windows, note that this is not public API and
* could be removed at any time.
*/
export const native = (process.platform !== 'win32' ? require(ptyPath || '../build/Release/pty.node') : null);
@@ -0,0 +1,131 @@
import { positionalKeys } from '../../render/utils/keys-position.mjs';
import { findDimensionValueType } from '../../value/types/dimensions.mjs';
import { getVariableValue } from '../utils/css-variables-conversion.mjs';
import { isCSSVariableToken } from '../utils/is-css-variable.mjs';
import { KeyframeResolver } from './KeyframesResolver.mjs';
import { isNone } from './utils/is-none.mjs';
import { makeNoneKeyframesAnimatable } from './utils/make-none-animatable.mjs';
import { isNumOrPxType, positionalValues } from './utils/unit-conversion.mjs';
class DOMKeyframesResolver extends KeyframeResolver {
constructor(unresolvedKeyframes, onComplete, name, motionValue, element) {
super(unresolvedKeyframes, onComplete, name, motionValue, element, true);
}
readKeyframes() {
const { unresolvedKeyframes, element, name } = this;
if (!element || !element.current)
return;
super.readKeyframes();
/**
* If any keyframe is a CSS variable, we need to find its value by sampling the element
*/
for (let i = 0; i < unresolvedKeyframes.length; i++) {
let keyframe = unresolvedKeyframes[i];
if (typeof keyframe === "string") {
keyframe = keyframe.trim();
if (isCSSVariableToken(keyframe)) {
const resolved = getVariableValue(keyframe, element.current);
if (resolved !== undefined) {
unresolvedKeyframes[i] = resolved;
}
if (i === unresolvedKeyframes.length - 1) {
this.finalKeyframe = keyframe;
}
}
}
}
/**
* Resolve "none" values. We do this potentially twice - once before and once after measuring keyframes.
* This could be seen as inefficient but it's a trade-off to avoid measurements in more situations, which
* have a far bigger performance impact.
*/
this.resolveNoneKeyframes();
/**
* Check to see if unit type has changed. If so schedule jobs that will
* temporarily set styles to the destination keyframes.
* Skip if we have more than two keyframes or this isn't a positional value.
* TODO: We can throw if there are multiple keyframes and the value type changes.
*/
if (!positionalKeys.has(name) || unresolvedKeyframes.length !== 2) {
return;
}
const [origin, target] = unresolvedKeyframes;
const originType = findDimensionValueType(origin);
const targetType = findDimensionValueType(target);
/**
* Either we don't recognise these value types or we can animate between them.
*/
if (originType === targetType)
return;
/**
* If both values are numbers or pixels, we can animate between them by
* converting them to numbers.
*/
if (isNumOrPxType(originType) && isNumOrPxType(targetType)) {
for (let i = 0; i < unresolvedKeyframes.length; i++) {
const value = unresolvedKeyframes[i];
if (typeof value === "string") {
unresolvedKeyframes[i] = parseFloat(value);
}
}
}
else if (positionalValues[name]) {
/**
* Else, the only way to resolve this is by measuring the element.
*/
this.needsMeasurement = true;
}
}
resolveNoneKeyframes() {
const { unresolvedKeyframes, name } = this;
const noneKeyframeIndexes = [];
for (let i = 0; i < unresolvedKeyframes.length; i++) {
if (unresolvedKeyframes[i] === null ||
isNone(unresolvedKeyframes[i])) {
noneKeyframeIndexes.push(i);
}
}
if (noneKeyframeIndexes.length) {
makeNoneKeyframesAnimatable(unresolvedKeyframes, noneKeyframeIndexes, name);
}
}
measureInitialState() {
const { element, unresolvedKeyframes, name } = this;
if (!element || !element.current)
return;
if (name === "height") {
this.suspendedScrollY = window.pageYOffset;
}
this.measuredOrigin = positionalValues[name](element.measureViewportBox(), window.getComputedStyle(element.current));
unresolvedKeyframes[0] = this.measuredOrigin;
// Set final key frame to measure after next render
const measureKeyframe = unresolvedKeyframes[unresolvedKeyframes.length - 1];
if (measureKeyframe !== undefined) {
element.getValue(name, measureKeyframe).jump(measureKeyframe, false);
}
}
measureEndState() {
const { element, name, unresolvedKeyframes } = this;
if (!element || !element.current)
return;
const value = element.getValue(name);
value && value.jump(this.measuredOrigin, false);
const finalKeyframeIndex = unresolvedKeyframes.length - 1;
const finalKeyframe = unresolvedKeyframes[finalKeyframeIndex];
unresolvedKeyframes[finalKeyframeIndex] = positionalValues[name](element.measureViewportBox(), window.getComputedStyle(element.current));
if (finalKeyframe !== null && this.finalKeyframe === undefined) {
this.finalKeyframe = finalKeyframe;
}
// If we removed transform values, reapply them before the next render
if (this.removedTransforms?.length) {
this.removedTransforms.forEach(([unsetTransformName, unsetTransformValue]) => {
element
.getValue(unsetTransformName)
.set(unsetTransformValue);
});
}
this.resolveNoneKeyframes();
}
}
export { DOMKeyframesResolver };
@@ -0,0 +1,16 @@
"use strict";
// THIS CODE WAS AUTOMATICALLY GENERATED
// DO NOT EDIT THIS CODE BY HAND
// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE:
// npx nx generate-lib repo
Object.defineProperty(exports, "__esModule", { value: true });
exports.es2021_promise = void 0;
const base_config_1 = require("./base-config");
exports.es2021_promise = {
libs: [],
variables: [
['AggregateError', base_config_1.TYPE_VALUE],
['AggregateErrorConstructor', base_config_1.TYPE],
['PromiseConstructor', base_config_1.TYPE],
],
};
@@ -0,0 +1,17 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var DefinitionRole = {
relatedConcepts: [{
module: 'HTML',
concept: {
name: 'dfn'
}
}],
type: 'structure'
};
var _default = DefinitionRole;
exports.default = _default;
@@ -0,0 +1,8 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.safeParseAsync = exports.parseAsync = exports.safeParse = exports.parse = void 0;
var index_js_1 = require("../core/index.cjs");
Object.defineProperty(exports, "parse", { enumerable: true, get: function () { return index_js_1.parse; } });
Object.defineProperty(exports, "safeParse", { enumerable: true, get: function () { return index_js_1.safeParse; } });
Object.defineProperty(exports, "parseAsync", { enumerable: true, get: function () { return index_js_1.parseAsync; } });
Object.defineProperty(exports, "safeParseAsync", { enumerable: true, get: function () { return index_js_1.safeParseAsync; } });
@@ -0,0 +1,122 @@
"use strict";
var RecipientEncryptedKeys_1;
Object.defineProperty(exports, "__esModule", { value: true });
exports.KeyAgreeRecipientInfo = exports.OriginatorIdentifierOrKey = exports.OriginatorPublicKey = exports.RecipientEncryptedKeys = exports.RecipientEncryptedKey = exports.KeyAgreeRecipientIdentifier = exports.RecipientKeyIdentifier = void 0;
const tslib_1 = require("tslib");
const asn1_schema_1 = require("@peculiar/asn1-schema");
const types_1 = require("./types");
const issuer_and_serial_number_1 = require("./issuer_and_serial_number");
const asn1_x509_1 = require("@peculiar/asn1-x509");
const other_key_attribute_1 = require("./other_key_attribute");
class RecipientKeyIdentifier {
constructor(params = {}) {
this.subjectKeyIdentifier = new asn1_x509_1.SubjectKeyIdentifier();
Object.assign(this, params);
}
}
exports.RecipientKeyIdentifier = RecipientKeyIdentifier;
tslib_1.__decorate([
(0, asn1_schema_1.AsnProp)({ type: asn1_x509_1.SubjectKeyIdentifier })
], RecipientKeyIdentifier.prototype, "subjectKeyIdentifier", void 0);
tslib_1.__decorate([
(0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.AsnPropTypes.GeneralizedTime, optional: true })
], RecipientKeyIdentifier.prototype, "date", void 0);
tslib_1.__decorate([
(0, asn1_schema_1.AsnProp)({ type: other_key_attribute_1.OtherKeyAttribute, optional: true })
], RecipientKeyIdentifier.prototype, "other", void 0);
let KeyAgreeRecipientIdentifier = class KeyAgreeRecipientIdentifier {
constructor(params = {}) {
Object.assign(this, params);
}
};
exports.KeyAgreeRecipientIdentifier = KeyAgreeRecipientIdentifier;
tslib_1.__decorate([
(0, asn1_schema_1.AsnProp)({ type: RecipientKeyIdentifier, context: 0, implicit: true, optional: true })
], KeyAgreeRecipientIdentifier.prototype, "rKeyId", void 0);
tslib_1.__decorate([
(0, asn1_schema_1.AsnProp)({ type: issuer_and_serial_number_1.IssuerAndSerialNumber, optional: true })
], KeyAgreeRecipientIdentifier.prototype, "issuerAndSerialNumber", void 0);
exports.KeyAgreeRecipientIdentifier = KeyAgreeRecipientIdentifier = tslib_1.__decorate([
(0, asn1_schema_1.AsnType)({ type: asn1_schema_1.AsnTypeTypes.Choice })
], KeyAgreeRecipientIdentifier);
class RecipientEncryptedKey {
constructor(params = {}) {
this.rid = new KeyAgreeRecipientIdentifier();
this.encryptedKey = new asn1_schema_1.OctetString();
Object.assign(this, params);
}
}
exports.RecipientEncryptedKey = RecipientEncryptedKey;
tslib_1.__decorate([
(0, asn1_schema_1.AsnProp)({ type: KeyAgreeRecipientIdentifier })
], RecipientEncryptedKey.prototype, "rid", void 0);
tslib_1.__decorate([
(0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.OctetString })
], RecipientEncryptedKey.prototype, "encryptedKey", void 0);
let RecipientEncryptedKeys = RecipientEncryptedKeys_1 = class RecipientEncryptedKeys extends asn1_schema_1.AsnArray {
constructor(items) {
super(items);
Object.setPrototypeOf(this, RecipientEncryptedKeys_1.prototype);
}
};
exports.RecipientEncryptedKeys = RecipientEncryptedKeys;
exports.RecipientEncryptedKeys = RecipientEncryptedKeys = RecipientEncryptedKeys_1 = tslib_1.__decorate([
(0, asn1_schema_1.AsnType)({ type: asn1_schema_1.AsnTypeTypes.Sequence, itemType: RecipientEncryptedKey })
], RecipientEncryptedKeys);
class OriginatorPublicKey {
constructor(params = {}) {
this.algorithm = new asn1_x509_1.AlgorithmIdentifier();
this.publicKey = new ArrayBuffer(0);
Object.assign(this, params);
}
}
exports.OriginatorPublicKey = OriginatorPublicKey;
tslib_1.__decorate([
(0, asn1_schema_1.AsnProp)({ type: asn1_x509_1.AlgorithmIdentifier })
], OriginatorPublicKey.prototype, "algorithm", void 0);
tslib_1.__decorate([
(0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.AsnPropTypes.BitString })
], OriginatorPublicKey.prototype, "publicKey", void 0);
let OriginatorIdentifierOrKey = class OriginatorIdentifierOrKey {
constructor(params = {}) {
Object.assign(this, params);
}
};
exports.OriginatorIdentifierOrKey = OriginatorIdentifierOrKey;
tslib_1.__decorate([
(0, asn1_schema_1.AsnProp)({ type: asn1_x509_1.SubjectKeyIdentifier, context: 0, implicit: true, optional: true })
], OriginatorIdentifierOrKey.prototype, "subjectKeyIdentifier", void 0);
tslib_1.__decorate([
(0, asn1_schema_1.AsnProp)({ type: OriginatorPublicKey, context: 1, implicit: true, optional: true })
], OriginatorIdentifierOrKey.prototype, "originatorKey", void 0);
tslib_1.__decorate([
(0, asn1_schema_1.AsnProp)({ type: issuer_and_serial_number_1.IssuerAndSerialNumber, optional: true })
], OriginatorIdentifierOrKey.prototype, "issuerAndSerialNumber", void 0);
exports.OriginatorIdentifierOrKey = OriginatorIdentifierOrKey = tslib_1.__decorate([
(0, asn1_schema_1.AsnType)({ type: asn1_schema_1.AsnTypeTypes.Choice })
], OriginatorIdentifierOrKey);
class KeyAgreeRecipientInfo {
constructor(params = {}) {
this.version = types_1.CMSVersion.v3;
this.originator = new OriginatorIdentifierOrKey();
this.keyEncryptionAlgorithm = new types_1.KeyEncryptionAlgorithmIdentifier();
this.recipientEncryptedKeys = new RecipientEncryptedKeys();
Object.assign(this, params);
}
}
exports.KeyAgreeRecipientInfo = KeyAgreeRecipientInfo;
tslib_1.__decorate([
(0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.AsnPropTypes.Integer })
], KeyAgreeRecipientInfo.prototype, "version", void 0);
tslib_1.__decorate([
(0, asn1_schema_1.AsnProp)({ type: OriginatorIdentifierOrKey, context: 0 })
], KeyAgreeRecipientInfo.prototype, "originator", void 0);
tslib_1.__decorate([
(0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.OctetString, context: 1, optional: true })
], KeyAgreeRecipientInfo.prototype, "ukm", void 0);
tslib_1.__decorate([
(0, asn1_schema_1.AsnProp)({ type: types_1.KeyEncryptionAlgorithmIdentifier })
], KeyAgreeRecipientInfo.prototype, "keyEncryptionAlgorithm", void 0);
tslib_1.__decorate([
(0, asn1_schema_1.AsnProp)({ type: RecipientEncryptedKeys })
], KeyAgreeRecipientInfo.prototype, "recipientEncryptedKeys", void 0);
@@ -0,0 +1,43 @@
'use strict';
var $RangeError = require('es-errors/range');
var $TypeError = require('es-errors/type');
var ToIndex = require('./ToIndex');
var TypedArrayElementSize = require('./TypedArrayElementSize');
var TypedArrayLength = require('./TypedArrayLength');
var isTypedArrayWithBufferWitnessRecord = require('../helpers/records/typed-array-with-buffer-witness-record');
var typedArrayByteOffset = require('typed-array-byte-offset');
// https://262.ecma-international.org/15.0/#sec-validateatomicaccess
module.exports = function ValidateAtomicAccess(taRecord, requestIndex) {
if (!isTypedArrayWithBufferWitnessRecord(taRecord)) {
throw new $TypeError('Assertion failed: `taRecord` must be a TypedArray With Buffer Witness Record');
}
var length = TypedArrayLength(taRecord); // step 1
var accessIndex = ToIndex(requestIndex); // step 2
/*
// this assertion can never be reached
if (!(accessIndex >= 0)) {
throw new $TypeError('Assertion failed: accessIndex >= 0'); // step 4
}
*/
if (accessIndex >= length) {
throw new $RangeError('index out of range'); // step 4
}
var typedArray = taRecord['[[Object]]']; // step 5
var elementSize = TypedArrayElementSize(typedArray); // step 6
var offset = typedArrayByteOffset(typedArray); // step 7
return (accessIndex * elementSize) + offset; // step 8
};
@@ -0,0 +1 @@
{"version":3,"file":"decode-data-xml.js","sourceRoot":"https://raw.githubusercontent.com/fb55/entities/61afd4701eaa736978b13c7351cd3de9a96b04bc/src/","sources":["generated/decode-data-xml.ts"],"names":[],"mappings":";AAAA,8CAA8C;;AAE9C,kBAAe,IAAI,WAAW;AAC1B,kBAAkB;AAClB,uFAAuF;KAClF,KAAK,CAAC,EAAE,CAAC;KACT,GAAG,CAAC,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAf,CAAe,CAAC,CACnC,CAAC"}
@@ -0,0 +1,13 @@
import Block from '../blots/block.js';
import Container from '../blots/container.js';
import type Scroll from '../blots/scroll.js';
declare class ListContainer extends Container {
}
declare class ListItem extends Block {
static create(value: string): HTMLElement;
static formats(domNode: HTMLElement): string | undefined;
static register(): void;
constructor(scroll: Scroll, domNode: HTMLElement);
format(name: string, value: string): void;
}
export { ListContainer, ListItem as default };
@@ -0,0 +1,132 @@
tlf2a 1 1 3 -1 15 0 0 0
===============================================================================
This is wideterm.tlf, or “WideTerm”, by Sam Hocevar <sam@hocevar.net>. It was
created on August 2nd, 2007.
This font is free software. It comes without any warranty, to the extent
permitted by applicable law. You can redistribute it and/or modify it under
the terms of the Do What The Fuck You Want To Public License, Version 2,
as published by Sam Hocevar. See http://sam.zoy.org/wtfpl/COPYING for more
details.
Missing: Ä Ö Ü ä ö ü ß
This font is part of TOIlet’s official distribution. More information
on the TOIlet website at http://caca.zoy.org/wiki/toilet
===============================================================================
@
!!
""
##
$$
%%
&&
''
((
))
**
++
,,
--
..
//
00
11
22
33
44
55
66
77
88
99
::
;;
<<
==
>>
??
@@
AA
BB
CC
DD
EE
FF
GG
HH
II
JJ
KK
LL
MM
NN
OO
PP
QQ
RR
SS
TT
UU
VV
WW
XX
YY
ZZ
[[
\\
]]
^^
__
``
aa
bb
cc
dd
ee
ff
gg
hh
ii
jj
kk
ll
mm
nn
oo
pp
qq
rr
ss
tt
uu
vv
ww
xx
yy
zz
{{
||
}}
~~
Ä@
Ö@
Ü@
ä@
ö@
ü@
ß@
0x00a2 ¢ CENT SIGN
¢@
0x00a3 £ POUND SIGN
£@
0x00ac ¬ NOT SIGN
¬@
0x00af ¯ MACRON
 ̄@
0x00a6 ¦ BROKEN BAR
¦@
0x00a5 ¥ YEN SIGN
¥@
0x20a9 ₩ WON SIGN
₩@
@@ -0,0 +1,46 @@
// Copyright 2013 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// 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 CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Function to find backward reference copies.
#ifndef BROTLI_ENC_BACKWARD_REFERENCES_H_
#define BROTLI_ENC_BACKWARD_REFERENCES_H_
#include <stdint.h>
#include <vector>
#include "./hash.h"
#include "./command.h"
namespace brotli {
void CreateBackwardReferences(size_t num_bytes,
size_t position,
const uint8_t* ringbuffer,
size_t ringbuffer_mask,
const float* literal_cost,
size_t literal_cost_mask,
const size_t max_backward_limit,
const double base_min_score,
const int quality,
Hashers* hashers,
int hash_type,
int* dist_cache,
int* last_insert_len,
Command* commands,
int* num_commands);
} // namespace brotli
#endif // BROTLI_ENC_BACKWARD_REFERENCES_H_
@@ -0,0 +1,100 @@
export const elementNames = new Map([
"altGlyph",
"altGlyphDef",
"altGlyphItem",
"animateColor",
"animateMotion",
"animateTransform",
"clipPath",
"feBlend",
"feColorMatrix",
"feComponentTransfer",
"feComposite",
"feConvolveMatrix",
"feDiffuseLighting",
"feDisplacementMap",
"feDistantLight",
"feDropShadow",
"feFlood",
"feFuncA",
"feFuncB",
"feFuncG",
"feFuncR",
"feGaussianBlur",
"feImage",
"feMerge",
"feMergeNode",
"feMorphology",
"feOffset",
"fePointLight",
"feSpecularLighting",
"feSpotLight",
"feTile",
"feTurbulence",
"foreignObject",
"glyphRef",
"linearGradient",
"radialGradient",
"textPath",
].map((val) => [val.toLowerCase(), val]));
export const attributeNames = new Map([
"definitionURL",
"attributeName",
"attributeType",
"baseFrequency",
"baseProfile",
"calcMode",
"clipPathUnits",
"diffuseConstant",
"edgeMode",
"filterUnits",
"glyphRef",
"gradientTransform",
"gradientUnits",
"kernelMatrix",
"kernelUnitLength",
"keyPoints",
"keySplines",
"keyTimes",
"lengthAdjust",
"limitingConeAngle",
"markerHeight",
"markerUnits",
"markerWidth",
"maskContentUnits",
"maskUnits",
"numOctaves",
"pathLength",
"patternContentUnits",
"patternTransform",
"patternUnits",
"pointsAtX",
"pointsAtY",
"pointsAtZ",
"preserveAlpha",
"preserveAspectRatio",
"primitiveUnits",
"refX",
"refY",
"repeatCount",
"repeatDur",
"requiredExtensions",
"requiredFeatures",
"specularConstant",
"specularExponent",
"spreadMethod",
"startOffset",
"stdDeviation",
"stitchTiles",
"surfaceScale",
"systemLanguage",
"tableValues",
"targetX",
"targetY",
"textLength",
"viewBox",
"viewTarget",
"xChannelSelector",
"yChannelSelector",
"zoomAndPan",
].map((val) => [val.toLowerCase(), val]));
@@ -0,0 +1,5 @@
var convert = require('./convert'),
func = convert('sortedUniqBy', require('../sortedUniqBy'));
func.placeholder = require('./placeholder');
module.exports = func;
@@ -0,0 +1,3 @@
export { AST_NODE_TYPES, AST_TOKEN_TYPES, TSESTree, } from '@typescript-eslint/types';
export type { NodeWithParent } from '@typescript-eslint/types';
export type { ParserServices, ParserServicesWithoutTypeInformation, ParserServicesWithTypeInformation, } from '@typescript-eslint/typescript-estree';
@@ -0,0 +1,2 @@
import { AliasReplacerArguments } from '../interfaces';
export default function replaceImportStatement({ orig, file, config }: AliasReplacerArguments): string;
@@ -0,0 +1,617 @@
flf2a$ 6 6 20 15 4
5lineobl.flf 11/94 pk6811s@acad.drake.edu, updated 1/95 syb3@ABER.AC.UK
Definitely a 5-line font.
Changes: 6/2001 Markus Gebhard markus@jave.de
Removed topmost line. It IS a 6 line font! Baseline is 6.
$$@
$$@
$$@
$$@
$$@
$$@@
$ @
$//$@
$//$ @
$//$ @
$ $ @
//$ @@
@
$| |$@
$$$ @
$$$ @
$$$ @
$$$ @@
@
$ __/__/_$@
$__/__/_$ @
$ / / $ @
@
@@
@
__//_ @
( // )$@
\\ @
(__//_)$ @
// @@
@
() //$@
// @
// @
// ()$@
@@
@
(( ))$@
\\ // @
$/\\/ $ @
// \\ @
((___\\$ @@
$$ @
$//$@
$$ @
$ @
$ @
@@
@
_ $@
// $ @
// $ @
// $ @
(( $ @@
@
))$@
//$ @
//$ @
//$ @
//$ @@
@
$ @
@
$_\\/_$@
$ //\$ @
$ @@
@
@
$ $@
$_||_$@
$ || $@
$ $@@
@
$$ @
@
@
$$ @
$//$@@
$$$$ @
$$$$ @
$$$$ @
____ $@
$$$$ @
$$$$ @@
@
$ @
$ @
@
$$ @
() @@
@
@
//$@
// @
// @
//$ @@
@
___ @
// ) )$@
// / / @
// / / @
((___/ /$ @@
@
@
/_ /$ @
/ / @
/ / @
/ /$ @@
@
___ @
// ) )$@
___/ / @
/ ____/ @
/ /____$ @@
@
___ @
// ) )$@
__ / / @
) ) @
((___/ /$ @@
@
$@
//___/ / @
/____ / @
/ / @
/ /$ @@
@
____ $@
// @
//__ @
) ) @
((___/ /$ @@
@
____$ @
// @
//__ @
// ) ) @
((___/ /$ @@
@
___ $ @
// / / @
/ / @
/ / @
/ /$ @@
@
__ @
// ) )$@
((_ / / @
// ) ) @
((__/ /$ @@
@
___ @
// / /$ @
((___/ / @
/ / @
/ /$ @@
@
@
@
()$@
()$ @
@@
@
@
@
()$@
@
//$ @@
@
$$ @
//$@
<< @
\\$@
$$ @@
$ $@
$ $@
$ ___$@
$/__/$@
$/__/$@
$ $@@
@
$$ @
\\ $@
>>$@
// $@
$$ @@
@
__ @
(( ) )$@
/ / @
( / @
()$ @@
@
__ $ @
// ) )$ @
// / / $ @
\\ () ) )$@
\\__/ /$ @@
@
// | |$@
//__| | @
/ ___ | @
// | | @
// | |$@@
@
// ) )$@
//___/ / @
/ __ ( @
// ) ) @
//____/ /$ @@
@
// ) )$@
// @
// @
// @
((____/ /$ @@
@
// ) )$@
// / / @
// / / @
// / / @
//____/ /$ @@
@
// / /$@
//____ @
/ ____ @
// @
//____/ /$ @@
@
// / /$@
//___$ @
/ ___ $ @
// @
// @@
@
// ) )$@
// @
// ____$ @
// / / @
((____/ /$ @@
@
// / /$@
//___ / / @
/ ___ / @
// / / @
// / /$ @@
___ ___$@
/ / @
/ / @
/ / @
/ / @
__/ /___$ @@
@
/ /$@
/ / @
/ / @
/ / @
$((___/ /$ @@
@
// / /$@
//__ / / @
//__ /$ @
// \ \ @
// \ \$ @@
@
/ / $ @
/ / @
/ / @
/ / @
/ /____/ /$@@
@
/| //| |$@
//| // | | @
// | // | | @
// | // | | @
// |// | |$@@
@
/| / /$@
//| / / @
// | / / @
// | / / @
// |/ /$ @@
@
// ) )$@
// / / @
// / / @
// / / @
((___/ /$ @@
@
// ) )$@
//___/ / @
/ ____ /$ @
// @
// @@
@
// ) )$@
// / / @
// / / @
// \ \ / @
((____\ \$ @@
@
// ) )$@
//___/ / @
/ ___ ( $ @
// | | @
// | |$ @@
@
// ) )$@
(( @
\\ @
) )$ @
((___ / / @@
@
/__ ___/$@
/ / @
/ / @
/ / @
/ / $ @@
@
// / /$@
// / / @
// / / @
// / / @
((___/ /$ @@
@
|| / /$@
|| / / @
|| / / @
||/ / @
| /$ @@
@
|| / | / /$@
|| / | / / @
|| / /||/ / @
||/ / | / @
| / | /$ @@
@
\\ / /$@
\ / @
/ / @
/ /\\ @
/ / \\$@@
@
\\ / /$@
\\ / / @
\\/ / @
/ / @
/ /$ @@
$___ $@
$ / /$@
/ / @
/ / @
$/ / @
/ /___$ @@
@
__$@
/ / @
/ / @
/ / @
/ /__$ @@
@
$ @
\\ $ @
\\ $ @
\\$ @
\\$@@
@
$___ $@
/ /$@
$/ /$ @
/ /$ @
__/ /$ @@
$@
/ |$@
//| |$@
$@
@
$ @@
$$$$$ @
$$$$$ @
$$$$$ @
$$$$$ @
$$$$$ @
_____$@@
$$ @
$@
\\$@
$@
@
$$ @@
@
@
___ @
// ) )$@
// / / @
((___( ($ @@
@
@
/ __ @
// ) )$@
// / / @
((___/ /$ @@
@
@
___ @
// ) )$@
// @
((____$ @@
@
$@
___ /$ @
// ) /$ @
// / /$ @
((___/ /$ @@
@
@
___ @
//___) )$@
// @
((____$ @@
@
// ) )$@
__//__ $ @
// $ @
// $ @
// $ @@
@
@
___ @
// ) )$@
((___/ / @
//__ $ @@
@
@
/ __ @
// ) )$@
// / / @
// / /$ @@
@
@
( )$ @
/ /$ @
/ / @
/ /$ @@
@
@
( )$ @
/ /$ @
/ / @
(( / /$ @@
@
@
/ ___$ @
//\ \ @
// \ \ @
// \ \$@@
@
$@
//$ @
//$ @
//$ @
//$ @@
@
@
_ __ @
// ) ) ) )$@
// / / / / @
// / / / /$ @@
@
@
__ @
// ) )$@
// / / @
// / /$ @@
@
@
___ @
// ) )$@
// / / @
((___/ /$ @@
@
@
___ @
// ) )$@
//___/ / @
// $ @@
@
@
___ @
// ) )$@
((___/ / @
( ($ @@
@
@
__ @
// ) )$@
// @
// $ @@
@
@
___ @
(( ) )$@
\ \ @
// ) )$ @@
@
@
__ ___$@
$/ / $ @
/ / @
/ / $ @@
@
@
@
// / /$@
// / / @
((___( ($ @@
@
@
@
|| / /$@
|| / / @
||/ /$ @@
@
@
@
// / / / /$@
// / / / / @
((__( (__/ /$ @@
@
@
@
\\ / /$@
\/ / @
/ /\$ @@
@
@
@
// / /$@
((___/ / @
/ /$ @@
@
@
$___ @
$ / /$ @
/ / @
/ /__$ @@
@
_$@
// $@
<< $ @
// $ @
((_$ @@
$@
$@
||$@
||$@
||$@
||$@@
@
_ $@
))$@
//$ @
>>$ @
// $ @@
@
_ _$@
// \ \_// $@
$$$ @
$$$ @
@@
_ _ @
@
// | |$@
//__| | @
/ ___ | @
// | |$@@
_ _ @
___ @
// ) )$@
// / / @
// / / @
((___/ /$ @@
_ _ @
@
// / /$@
// / / @
// / / @
((___/ /$ @@
@
_ _ @
___ @
// ) )$@
// / / @
((___( ($ @@
@
_ _ @
___ @
// ) )$@
// / / @
((___/ /$ @@
@
_ _ @
@
// / /$@
// / / @
((___/ /$ @@
@
// ) )$@
//__ / /$ @
/ __ ( @
//___ ) )$ @
// $ @@
@@ -0,0 +1,46 @@
{
"name": "std-env",
"version": "3.10.0",
"description": "Runtime agnostic JS utils",
"repository": "unjs/std-env",
"license": "MIT",
"sideEffects": false,
"type": "module",
"exports": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
},
"main": "./dist/index.cjs",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "unbuild",
"dev": "vitest",
"lint": "eslint . && prettier -c src test",
"lint:fix": "eslint --fix . && prettier -w src test",
"prepack": "unbuild",
"play:bun": "bun playground/bun.ts",
"play:deno": "pnpm build && deno run -A playground/deno.ts",
"play:node": "pnpm build && node playground/node.mjs",
"release": "pnpm test && changelogen --release && npm publish && git push --follow-tags",
"test": "pnpm lint && pnpm typecheck && vitest run --coverage",
"typecheck": "tsc --noEmit"
},
"devDependencies": {
"@types/node": "^24.7.2",
"@vitest/coverage-v8": "^3.2.4",
"changelogen": "^0.6.2",
"esbuild": "^0.25.10",
"eslint": "^9.37.0",
"eslint-config-unjs": "^0.5.0",
"prettier": "^3.6.2",
"rollup": "^4.52.4",
"typescript": "^5.9.3",
"unbuild": "^3.6.1",
"vitest": "^3.2.4"
},
"packageManager": "pnpm@10.18.2"
}
@@ -0,0 +1,179 @@
import {menuData as $d5336fe17ce95402$export$6f49b4016bfc8d56} from "./useMenu.module.js";
import {useRouter as $7Kjv5$useRouter, useSlotId as $7Kjv5$useSlotId, filterDOMProps as $7Kjv5$filterDOMProps, useLinkProps as $7Kjv5$useLinkProps, mergeProps as $7Kjv5$mergeProps} from "@react-aria/utils";
import {getItemCount as $7Kjv5$getItemCount} from "@react-stately/collections";
import {usePress as $7Kjv5$usePress, useHover as $7Kjv5$useHover, isFocusVisible as $7Kjv5$isFocusVisible, useKeyboard as $7Kjv5$useKeyboard, useFocus as $7Kjv5$useFocus} from "@react-aria/interactions";
import {useSelectableItem as $7Kjv5$useSelectableItem} from "@react-aria/selection";
/*
* 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 $a2e5df62f93c7633$export$9d32628fc2aea7da(props, state, ref) {
let { id: id, key: key, closeOnSelect: closeOnSelect, isVirtualized: isVirtualized, 'aria-haspopup': hasPopup, onPressStart: pressStartProp, onPressUp: pressUpProp, onPress: onPress, onPressChange: onPressChange, onPressEnd: onPressEnd, onHoverStart: hoverStartProp, onHoverChange: onHoverChange, onHoverEnd: onHoverEnd, onKeyDown: onKeyDown, onKeyUp: onKeyUp, onFocus: onFocus, onFocusChange: onFocusChange, onBlur: onBlur, selectionManager: selectionManager = state.selectionManager } = props;
let isTrigger = !!hasPopup;
let isTriggerExpanded = isTrigger && props['aria-expanded'] === 'true';
var _props_isDisabled;
let isDisabled = (_props_isDisabled = props.isDisabled) !== null && _props_isDisabled !== void 0 ? _props_isDisabled : selectionManager.isDisabled(key);
var _props_isSelected;
let isSelected = (_props_isSelected = props.isSelected) !== null && _props_isSelected !== void 0 ? _props_isSelected : selectionManager.isSelected(key);
let data = (0, $d5336fe17ce95402$export$6f49b4016bfc8d56).get(state);
let item = state.collection.getItem(key);
let onClose = props.onClose || data.onClose;
let router = (0, $7Kjv5$useRouter)();
let performAction = (e)=>{
var _item_props;
if (isTrigger) return;
if (item === null || item === void 0 ? void 0 : (_item_props = item.props) === null || _item_props === void 0 ? void 0 : _item_props.onAction) item.props.onAction();
else if (props.onAction) props.onAction(key);
if (data.onAction) {
// Must reassign to variable otherwise `this` binding gets messed up. Something to do with WeakMap.
let onAction = data.onAction;
onAction(key);
}
if (e.target instanceof HTMLAnchorElement && item) router.open(e.target, e, item.props.href, item.props.routerOptions);
};
let role = 'menuitem';
if (!isTrigger) {
if (selectionManager.selectionMode === 'single') role = 'menuitemradio';
else if (selectionManager.selectionMode === 'multiple') role = 'menuitemcheckbox';
}
let labelId = (0, $7Kjv5$useSlotId)();
let descriptionId = (0, $7Kjv5$useSlotId)();
let keyboardId = (0, $7Kjv5$useSlotId)();
let ariaProps = {
id: id,
'aria-disabled': isDisabled || undefined,
role: role,
'aria-label': props['aria-label'],
'aria-labelledby': labelId,
'aria-describedby': [
descriptionId,
keyboardId
].filter(Boolean).join(' ') || undefined,
'aria-controls': props['aria-controls'],
'aria-haspopup': hasPopup,
'aria-expanded': props['aria-expanded']
};
if (selectionManager.selectionMode !== 'none' && !isTrigger) ariaProps['aria-checked'] = isSelected;
if (isVirtualized) {
ariaProps['aria-posinset'] = item === null || item === void 0 ? void 0 : item.index;
ariaProps['aria-setsize'] = (0, $7Kjv5$getItemCount)(state.collection);
}
let onPressStart = (e)=>{
if (e.pointerType === 'keyboard') performAction(e);
pressStartProp === null || pressStartProp === void 0 ? void 0 : pressStartProp(e);
};
let onPressUp = (e)=>{
if (e.pointerType !== 'keyboard') {
performAction(e);
// Pressing a menu item should close by default in single selection mode but not multiple
// selection mode, except if overridden by the closeOnSelect prop.
if (!isTrigger && onClose && (closeOnSelect !== null && closeOnSelect !== void 0 ? closeOnSelect : selectionManager.selectionMode !== 'multiple' || selectionManager.isLink(key))) onClose();
}
pressUpProp === null || pressUpProp === void 0 ? void 0 : pressUpProp(e);
};
let { itemProps: itemProps, isFocused: isFocused } = (0, $7Kjv5$useSelectableItem)({
selectionManager: selectionManager,
key: key,
ref: ref,
shouldSelectOnPressUp: true,
allowsDifferentPressOrigin: true,
// Disable all handling of links in useSelectable item
// because we handle it ourselves. The behavior of menus
// is slightly different from other collections because
// actions are performed on key down rather than key up.
linkBehavior: 'none'
});
let { pressProps: pressProps, isPressed: isPressed } = (0, $7Kjv5$usePress)({
onPressStart: onPressStart,
onPress: onPress,
onPressUp: onPressUp,
onPressChange: onPressChange,
onPressEnd: onPressEnd,
isDisabled: isDisabled
});
let { hoverProps: hoverProps } = (0, $7Kjv5$useHover)({
isDisabled: isDisabled,
onHoverStart (e) {
// Hovering over an already expanded sub dialog trigger should keep focus in the dialog.
if (!(0, $7Kjv5$isFocusVisible)() && !(isTriggerExpanded && hasPopup === 'dialog')) {
selectionManager.setFocused(true);
selectionManager.setFocusedKey(key);
}
hoverStartProp === null || hoverStartProp === void 0 ? void 0 : hoverStartProp(e);
},
onHoverChange: onHoverChange,
onHoverEnd: onHoverEnd
});
let { keyboardProps: keyboardProps } = (0, $7Kjv5$useKeyboard)({
onKeyDown: (e)=>{
// Ignore repeating events, which may have started on the menu trigger before moving
// focus to the menu item. We want to wait for a second complete key press sequence.
if (e.repeat) {
e.continuePropagation();
return;
}
switch(e.key){
case ' ':
if (!isDisabled && selectionManager.selectionMode === 'none' && !isTrigger && closeOnSelect !== false && onClose) onClose();
break;
case 'Enter':
// The Enter key should always close on select, except if overridden.
if (!isDisabled && closeOnSelect !== false && !isTrigger && onClose) onClose();
break;
default:
if (!isTrigger) e.continuePropagation();
onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(e);
break;
}
},
onKeyUp: onKeyUp
});
let { focusProps: focusProps } = (0, $7Kjv5$useFocus)({
onBlur: onBlur,
onFocus: onFocus,
onFocusChange: onFocusChange
});
let domProps = (0, $7Kjv5$filterDOMProps)(item === null || item === void 0 ? void 0 : item.props);
delete domProps.id;
let linkProps = (0, $7Kjv5$useLinkProps)(item === null || item === void 0 ? void 0 : item.props);
return {
menuItemProps: {
...ariaProps,
...(0, $7Kjv5$mergeProps)(domProps, linkProps, isTrigger ? {
onFocus: itemProps.onFocus,
'data-key': itemProps['data-key']
} : itemProps, pressProps, hoverProps, keyboardProps, focusProps),
// If a submenu is expanded, set the tabIndex to -1 so that shift tabbing goes out of the menu instead of the parent menu item.
tabIndex: itemProps.tabIndex != null && isTriggerExpanded ? -1 : itemProps.tabIndex
},
labelProps: {
id: labelId
},
descriptionProps: {
id: descriptionId
},
keyboardShortcutProps: {
id: keyboardId
},
isFocused: isFocused,
isSelected: isSelected,
isPressed: isPressed,
isDisabled: isDisabled
};
}
export {$a2e5df62f93c7633$export$9d32628fc2aea7da as useMenuItem};
//# sourceMappingURL=useMenuItem.module.js.map
@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2017-present node-modules and other contributors
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,9 @@
import { _ as _array_with_holes } from "./_array_with_holes.js";
import { _ as _iterable_to_array_limit } from "./_iterable_to_array_limit.js";
import { _ as _non_iterable_rest } from "./_non_iterable_rest.js";
import { _ as _unsupported_iterable_to_array } from "./_unsupported_iterable_to_array.js";
function _sliced_to_array(arr, i) {
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
}
export { _sliced_to_array as _ };
@@ -0,0 +1 @@
module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w","132":"0 1 2 3 4 5 x y z GB HB IB JB KB LB MB"},C:{"1":"4 5 GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC","2":"0 1 2 3 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z 0C 1C"},D:{"1":"NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w","132":"0 1 2 3 4 5 x y z GB HB IB JB KB LB MB"},E:{"1":"mC CD SC nC oC pC qC rC sC tC DD ED","2":"J ZB K D E F A B C L M G 2C ZC 3C 4C 5C 6C aC NC OC 7C 8C 9C bC cC PC AD QC dC eC fC gC hC BD RC iC jC kC lC"},F:{"1":"0 1 2 3 4 5 z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h FD GD HD ID NC uC JD OC","132":"i j k l m n o p q r s t u v w x y"},G:{"1":"mC gD SC nC oC pC qC rC sC tC","2":"E ZC KD vC LD MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD bC cC PC eD QC dC eC fC gC hC fD RC iC jC kC lC"},H:{"2":"hD"},I:{"1":"I","2":"TC J iD jD kD lD vC mD nD"},J:{"2":"D A"},K:{"2":"A B C NC uC OC","132":"H"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 J oD pD qD rD sD aC tD uD vD wD xD QC RC SC yD","132":"9 AB BB CB DB EB FB"},Q:{"2":"zD"},R:{"2":"0D"},S:{"2":"1D 2D"}},B:5,C:"CSS text-wrap: balance",D:true};
@@ -0,0 +1,3 @@
import CryptoJS = require("./index");
export = CryptoJS.enc.Base64;
@@ -0,0 +1,34 @@
/** Used for built-in method references. */
var arrayProto = Array.prototype;
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeReverse = arrayProto.reverse;
/**
* Reverses `array` so that the first element becomes the last, the second
* element becomes the second to last, and so on.
*
* **Note:** This method mutates `array` and is based on
* [`Array#reverse`](https://mdn.io/Array/reverse).
*
* @static
* @memberOf _
* @since 4.0.0
* @category Array
* @param {Array} array The array to modify.
* @returns {Array} Returns `array`.
* @example
*
* var array = [1, 2, 3];
*
* _.reverse(array);
* // => [3, 2, 1]
*
* console.log(array);
* // => [3, 2, 1]
*/
function reverse(array) {
return array == null ? array : nativeReverse.call(array);
}
module.exports = reverse;
@@ -0,0 +1,19 @@
/**
* Defines non-writable/enumerable properties of the provided target object.
*
* @param {Object} target - Object for which to define properties.
* @param {Object} props - Properties to be defined.
* @returns {Object} Target object.
*/
export default (target, props) => {
for (const key of Object.keys(props)) {
Object.defineProperty(target, key, {
value: props[key],
enumerable: false,
writable: false,
configurable: true
});
}
return target;
};
@@ -0,0 +1,39 @@
{
"name": "@react-stately/form",
"version": "3.2.2",
"description": "Spectrum UI components in React",
"license": "Apache-2.0",
"main": "dist/main.js",
"module": "dist/module.js",
"types": "dist/types.d.ts",
"exports": {
"source": "./src/index.ts",
"types": [
"./dist/types.d.ts",
"./src/index.ts"
],
"import": "./dist/import.mjs",
"require": "./dist/main.js"
},
"source": "src/index.ts",
"files": [
"dist",
"src"
],
"sideEffects": false,
"repository": {
"type": "git",
"url": "https://github.com/adobe/react-spectrum"
},
"dependencies": {
"@react-types/shared": "^3.32.1",
"@swc/helpers": "^0.5.0"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
},
"publishConfig": {
"access": "public"
},
"gitHead": "0bda51183baa23306342af32a82012ea0fe0f2dc"
}
@@ -0,0 +1,69 @@
var IMPORTANT_MODIFIER = '!';
function createSplitModifiers(config) {
var separator = config.separator || ':';
var isSeparatorSingleCharacter = separator.length === 1;
var firstSeparatorCharacter = separator[0];
var separatorLength = separator.length;
// splitModifiers inspired by https://github.com/tailwindlabs/tailwindcss/blob/v3.2.2/src/util/splitAtTopLevelOnly.js
return function splitModifiers(className) {
var modifiers = [];
var bracketDepth = 0;
var modifierStart = 0;
var postfixModifierPosition;
for (var index = 0; index < className.length; index++) {
var currentCharacter = className[index];
if (bracketDepth === 0) {
if (currentCharacter === firstSeparatorCharacter && (isSeparatorSingleCharacter || className.slice(index, index + separatorLength) === separator)) {
modifiers.push(className.slice(modifierStart, index));
modifierStart = index + separatorLength;
continue;
}
if (currentCharacter === '/') {
postfixModifierPosition = index;
continue;
}
}
if (currentCharacter === '[') {
bracketDepth++;
} else if (currentCharacter === ']') {
bracketDepth--;
}
}
var baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.substring(modifierStart);
var hasImportantModifier = baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER);
var baseClassName = hasImportantModifier ? baseClassNameWithImportantModifier.substring(1) : baseClassNameWithImportantModifier;
var maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : undefined;
return {
modifiers: modifiers,
hasImportantModifier: hasImportantModifier,
baseClassName: baseClassName,
maybePostfixModifierPosition: maybePostfixModifierPosition
};
};
}
/**
* Sorts modifiers according to following schema:
* - Predefined modifiers are sorted alphabetically
* - When an arbitrary variant appears, it must be preserved which modifiers are before and after it
*/
function sortModifiers(modifiers) {
if (modifiers.length <= 1) {
return modifiers;
}
var sortedModifiers = [];
var unsortedModifiers = [];
modifiers.forEach(function (modifier) {
var isArbitraryVariant = modifier[0] === '[';
if (isArbitraryVariant) {
sortedModifiers.push.apply(sortedModifiers, unsortedModifiers.sort().concat([modifier]));
unsortedModifiers = [];
} else {
unsortedModifiers.push(modifier);
}
});
sortedModifiers.push.apply(sortedModifiers, unsortedModifiers.sort());
return sortedModifiers;
}
export { IMPORTANT_MODIFIER, createSplitModifiers, sortModifiers };
//# sourceMappingURL=modifier-utils.mjs.map
@@ -0,0 +1,727 @@
flf2a$ 7 5 12 -1 12
Tinker-toy by Wendell Hicken 11/93 (whicken@parasoft.com)
Explanation of first line:
flf2 - "magic number" for file identification
a - should always be `a', for now
$ - the "hardblank" -- prints as a blank, but can't be smushed
7 - height of a character
5 - height of a character, not including descenders
5 - max line length (excluding comment lines) + a fudge factor
15 - default smushmode for this font (like "-m 15" on command line)
12 - number of comment lines
$@
$@
$@
$@
$@
$@
$@@
o @
| @
o @
@
O @
@
@@
o o @
| | @
@
@
@
@
@@
| | @
-O-O- @
| | @
-O-O- @
| | @
@
@@
| | @
-O-O- @
o | | @
-O-O- @
| | o @
-O-O- @
| | @@
o O @
/ @
/ @
/ @
O o @
@
@@
@
o @
/| @
o-O-@
| @
@
@@
o @
| @
@
@
@
@
@@
/ @
o @
| @
o @
\ @
@
@@
\ @
o @
| @
o @
/ @
@
@@
@
o | o @
\|/ @
--O-- @
/|\ @
o | o @
@@
@
| @
-o- @
| @
@
@
@@
@
@
@
@
o @
| @
@@
@
@
o-o @
@
@
@
@@
@
@
@
@
O @
@
@@
o@
/ @
o @
/ @
o @
@
@@
o-o @
o /o @
| / | @
o/ o @
o-o @
@
@@
0 @
/| @
o | @
| @
o-o-o @
@
@@
-- @
o o @
/ @
/ @
o--o @
@
@@
o-o @
| @
oo @
| @
o-o @
@
@@
o o @
| | @
o--O @
| @
o @
@
@@
o--o @
| @
o-o @
| @
o-o @
@
@@
o @
/ @
O--o @
o | @
o-o @
@
@@
o---o @
/ @
o @
| @
o @
@
@@
o-o @
| | @
o-o @
| | @
o-o @
@
@@
o-o @
| o @
o--O @
/ @
o @
@
@@
@
O @
@
O @
@
@
@@
@
o @
@
o @
| @
@
@@
o @
/ @
O @
\ @
o @
@
@@
@
@
o--o @
o--o @
@
@
@@
o @
\ @
O @
/ @
o @
@
@@
o-o @
o o @
/ @
o @
@
O @
@@
o @
/ \ @
o O-o @
\ @
o- @
@
@@
O @
/ \ @
o---o@
| |@
o o@
@
@@
o--o @
| | @
O--o @
| | @
o--o @
@
@@
o-o @
/ @
O @
\ @
o-o @
@
@@
o-o @
| \ @
| O @
| / @
o-o @
@
@@
o--o @
| @
O-o @
| @
o--o @
@
@@
o--o @
| @
O-o @
| @
o @
@
@@
o-o @
o @
| -o @
o | @
o-o @
@
@@
o o @
| | @
O--O @
| | @
o o @
@
@@
o-O-o @
| @
| @
| @
o-O-o @
@
@@
o @
| @
| @
\ o @
o-o @
@
@@
o o @
| / @
OO @
| \ @
o o @
@
@@
o @
| @
| @
| @
O---o@
@
@@
o o @
|\ /| @
| O | @
| | @
o o @
@
@@
o o @
|\ | @
| \ | @
| \| @
o o @
@
@@
o-o @
o o @
| | @
o o @
o-o @
@
@@
o--o @
| | @
O--o @
| @
o @
@
@@
o-o @
o o @
| | @
o O @
o-O\ @
@
@@
o--o @
| | @
O-Oo @
| \ @
o o @
@
@@
o-o @
| @
o-o @
| @
o--o @
@
@@
o-O-o @
| @
| @
| @
o @
@
@@
o o @
| | @
| | @
| | @
o-o @
@
@@
o o @
| | @
o o @
\ / @
o @
@
@@
o o @
| | @
o o o @
\ / \ / @
o o @
@
@@
o o @
\ / @
O @
/ \ @
o o @
@
@@
o o @
\ / @
O @
| @
o @
@
@@
o---o @
/ @
-O- @
/ @
o---o @
@
@@
O-o @
| @
| @
| @
O-o @
@
@@
o @
\ @
o @
\ @
o@
@
@@
o-O @
| @
| @
| @
o-O @
@
@@
o @
/ \ @
@
@
@
@
@@
@
@
@
@
@
o---o@
@@
0 @
| @
@
@
@
@
@@
@
@
oo @
| | @
o-o-@
@
@@
o @
| @
O-o @
| | @
o-o @
@
@@
@
@
o-o @
| @
o-o @
@
@@
o @
| @
o-O @
| | @
o-o @
@
@@
@
@
o-o @
|-' @
o-o @
@
@@
o-o@
| @
-O- @
| @
o @
@
@@
@
@
o--o @
| | @
o--O @
| @
o--o @@
o @
| @
O--o @
| | @
o o @
@
@@
@
o @
@
| @
| @
@
@@
@
o @
@
o @
| @
o o @
o-o @@
o @
| / @
OO @
| \ @
o o @
@
@@
o @
| @
| @
| @
o @
@
@@
@
@
o-O-o @
| | | @
o o o @
@
@@
@
@
o-o @
| | @
o o @
@
@@
@
@
o-o @
| | @
o-o @
@
@@
@
@
o-o @
| | @
O-o @
| @
o @@
@
@
o-o @
| | @
o-O @
| @
o @@
@
@
o-o @
| @
o @
@
@@
@
@
o-o @
\ @
o-o @
@
@@
o @
| @
-o- @
| @
o @
@
@@
@
@
o o @
| | @
o--o @
@
@@
@
@
o o @
\ / @
o @
@
@@
@
@
o o o@
\ / \ / @
o o @
@
@@
@
@
\ / @
o @
/ \ @
@
@@
@
@
o o @
| | @
o--O @
| @
o--o @@
@
@
o-o @
/ @
o-o @
@
@@
o-o @
| @
o-O @
| @
o-o @
@
@@
o @
| @
o @
| @
o @
@
@@
o-o @
| @
O-o @
| @
o-o @
@
@@
@
o_ / @
/ o @
@
@
@
@@
o O o@
/ \ @
o---o@
| |@
o o@
@
@@
o o-o o@
o o @
| | @
o o @
o-o @
@
@@
o o o o @
| | @
o o @
\ / @
o-o @
@
@@
o o @
@
oo @
| | @
o-o-@
@
@@
o o @
@
o-o @
| | @
o-o @
@
@@
o o @
@
o o @
| | @
o--o @
@
@@
o--o @
| | @
O--o @
| | @
o--o @
| @
o @@
@@ -0,0 +1,39 @@
// Copyright 2017 Lovell Fuller and others.
// SPDX-License-Identifier: Apache-2.0
'use strict';
const interpreterPath = (elf) => {
if (elf.length < 64) {
return null;
}
if (elf.readUInt32BE(0) !== 0x7F454C46) {
// Unexpected magic bytes
return null;
}
if (elf.readUInt8(4) !== 2) {
// Not a 64-bit ELF
return null;
}
if (elf.readUInt8(5) !== 1) {
// Not little-endian
return null;
}
const offset = elf.readUInt32LE(32);
const size = elf.readUInt16LE(54);
const count = elf.readUInt16LE(56);
for (let i = 0; i < count; i++) {
const headerOffset = offset + (i * size);
const type = elf.readUInt32LE(headerOffset);
if (type === 3) {
const fileOffset = elf.readUInt32LE(headerOffset + 8);
const fileSize = elf.readUInt32LE(headerOffset + 32);
return elf.subarray(fileOffset, fileOffset + fileSize).toString().replace(/\0.*$/g, '');
}
}
return null;
};
module.exports = {
interpreterPath
};
@@ -0,0 +1 @@
{"version":3,"file":"no-unstable-nested-components.d.ts","sourceRoot":"","sources":["no-unstable-nested-components.js"],"names":[],"mappings":"wBAsQW,OAAO,QAAQ,EAAE,IAAI,CAAC,UAAU"}
@@ -0,0 +1 @@
{"version":3,"file":"no-unsafe.d.ts","sourceRoot":"","sources":["no-unsafe.js"],"names":[],"mappings":"wBAqBW,OAAO,QAAQ,EAAE,IAAI,CAAC,UAAU"}
@@ -0,0 +1,14 @@
// Polyfills for the explicit resource management types added in TypeScript 5.2.
interface SymbolConstructor {
readonly dispose: unique symbol;
readonly asyncDispose: unique symbol;
}
interface Disposable {
[Symbol.dispose](): void;
}
interface AsyncDisposable {
[Symbol.asyncDispose](): PromiseLike<void>;
}
@@ -0,0 +1,140 @@
"use client";
// src/dom.ts
import {
useImperativeHandle,
useLayoutEffect,
useRef
} from "react";
function canUseDOM() {
return !!(typeof window !== "undefined" && window.document && window.document.createElement);
}
var isBrowser = canUseDOM();
function getUserAgentBrowser(navigator) {
const { userAgent: ua, vendor } = navigator;
const android = /(android)/i.test(ua);
switch (true) {
case /CriOS/.test(ua):
return "Chrome for iOS";
case /Edg\//.test(ua):
return "Edge";
case (android && /Silk\//.test(ua)):
return "Silk";
case (/Chrome/.test(ua) && /Google Inc/.test(vendor)):
return "Chrome";
case /Firefox\/\d+\.\d+$/.test(ua):
return "Firefox";
case android:
return "AOSP";
case /MSIE|Trident/.test(ua):
return "IE";
case (/Safari/.test(navigator.userAgent) && /Apple Computer/.test(ua)):
return "Safari";
case /AppleWebKit/.test(ua):
return "WebKit";
default:
return null;
}
}
function getUserAgentOS(navigator) {
const { userAgent: ua, platform } = navigator;
switch (true) {
case /Android/.test(ua):
return "Android";
case /iPhone|iPad|iPod/.test(platform):
return "iOS";
case /Win/.test(platform):
return "Windows";
case /Mac/.test(platform):
return "Mac";
case /CrOS/.test(ua):
return "Chrome OS";
case /Firefox/.test(ua):
return "Firefox OS";
default:
return null;
}
}
function detectDeviceType(navigator) {
const { userAgent: ua } = navigator;
if (/(tablet)|(iPad)|(Nexus 9)/i.test(ua))
return "tablet";
if (/(mobi)/i.test(ua))
return "phone";
return "desktop";
}
function detectOS(os) {
if (!isBrowser)
return false;
return getUserAgentOS(window.navigator) === os;
}
function detectBrowser(browser) {
if (!isBrowser)
return false;
return getUserAgentBrowser(window.navigator) === browser;
}
function detectTouch() {
if (!isBrowser)
return false;
return window.ontouchstart === null && window.ontouchmove === null && window.ontouchend === null;
}
function createDOMRef(ref) {
return {
UNSAFE_getDOMNode() {
return ref.current;
}
};
}
function createFocusableRef(domRef, focusableRef = domRef) {
return {
...createDOMRef(domRef),
focus() {
if (focusableRef.current) {
focusableRef.current.focus();
}
}
};
}
function useDOMRef(ref) {
const domRef = useRef(null);
useImperativeHandle(ref, () => domRef.current);
return domRef;
}
function useFocusableRef(ref, focusableRef) {
const domRef = useRef(null);
useImperativeHandle(ref, () => createFocusableRef(domRef, focusableRef));
return domRef;
}
function useSyncRef(context, ref) {
useLayoutEffect(() => {
if (context && context.ref && ref && ref.current) {
context.ref.current = ref.current;
return () => {
var _a;
if ((_a = context.ref) == null ? void 0 : _a.current) {
context.ref.current = null;
}
};
}
}, [context, ref]);
}
function areRectsIntersecting(rect1, rect2) {
return rect1 && rect2 && rect1.x < rect2.x + rect2.width && rect1.x + rect1.width > rect2.x && rect1.y < rect2.y + rect2.height && rect1.y + rect1.height > rect2.y;
}
export {
canUseDOM,
isBrowser,
getUserAgentBrowser,
getUserAgentOS,
detectDeviceType,
detectOS,
detectBrowser,
detectTouch,
createDOMRef,
createFocusableRef,
useDOMRef,
useFocusableRef,
useSyncRef,
areRectsIntersecting
};
@@ -0,0 +1,33 @@
/*
* 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.
*/
import {isAppleDevice, isMac} from '@react-aria/utils';
interface Event {
altKey: boolean,
ctrlKey: boolean,
metaKey: boolean
}
export function isNonContiguousSelectionModifier(e: Event) {
// Ctrl + Arrow Up/Arrow Down has a system wide meaning on macOS, so use Alt instead.
// On Windows and Ubuntu, Alt + Space has a system wide meaning.
return isAppleDevice() ? e.altKey : e.ctrlKey;
}
export function isCtrlKeyPressed(e: Event) {
if (isMac()) {
return e.metaKey;
}
return e.ctrlKey;
}
@@ -0,0 +1,5 @@
import setPrototypeOf from "./setPrototypeOf.js";
function _inheritsLoose(t, o) {
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, setPrototypeOf(t, o);
}
export { _inheritsLoose as default };
@@ -0,0 +1 @@
module.exports={A:{A:{"1":"A B","2":"K D E F wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 2C ZC 3C 4C 5C 6C aC NC OC 7C 8C 9C bC cC PC AD QC dC eC fC gC hC BD RC iC jC kC lC mC CD SC nC oC pC qC rC sC tC DD ED"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z ID NC uC JD OC","2":"F FD GD","16":"HD"},G:{"1":"E ZC KD vC LD MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD bC cC PC eD QC dC eC fC gC hC fD RC iC jC kC lC mC gD SC nC oC pC qC rC sC tC"},H:{"1":"hD"},I:{"1":"TC J I iD jD kD lD vC mD nD"},J:{"1":"D A"},K:{"1":"B C H NC uC OC","16":"A"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB oD pD qD rD sD aC tD uD vD wD xD QC RC SC yD"},Q:{"1":"zD"},R:{"1":"0D"},S:{"1":"1D 2D"}},B:1,C:"Base64 encoding and decoding",D:true};
@@ -0,0 +1,12 @@
# These are supported funding model platforms
github: [ljharb]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: npm/which-typed-array
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
@@ -0,0 +1,11 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _objectDestructuringEmpty;
function _objectDestructuringEmpty(obj) {
if (obj == null) throw new TypeError("Cannot destructure " + obj);
}
//# sourceMappingURL=objectDestructuringEmpty.js.map
@@ -0,0 +1,43 @@
import type { BinaryWriteOptions, IBinaryWriter } from "./binary-format-contract";
import { WireType } from "./binary-format-contract";
import type { FieldInfo } from "./reflection-info";
import { PartialMessageInfo, ScalarType } from "./reflection-info";
import type { IMessageType } from "./message-type-contract";
/**
* Writes proto3 messages in binary format using reflection information.
*
* https://developers.google.com/protocol-buffers/docs/encoding
*/
export declare class ReflectionBinaryWriter {
private readonly info;
protected fields?: readonly FieldInfo[];
constructor(info: PartialMessageInfo);
protected prepare(): void;
/**
* Writes the message to binary format.
*/
write<T extends object>(message: T, writer: IBinaryWriter, options: BinaryWriteOptions): void;
protected mapEntry(writer: IBinaryWriter, options: BinaryWriteOptions, field: FieldInfo & {
kind: 'map';
}, key: any, value: any): void;
protected message(writer: IBinaryWriter, options: BinaryWriteOptions, handler: IMessageType<any>, fieldNo: number, value: any): void;
/**
* Write a single scalar value.
*/
protected scalar(writer: IBinaryWriter, type: ScalarType, fieldNo: number, value: any, emitDefault: boolean): void;
/**
* Write an array of scalar values in packed format.
*/
protected packed(writer: IBinaryWriter, type: ScalarType, fieldNo: number, value: any[]): void;
/**
* Get information for writing a scalar value.
*
* Returns tuple:
* [0]: appropriate WireType
* [1]: name of the appropriate method of IBinaryWriter
* [2]: whether the given value is a default value
*
* If argument `value` is omitted, [2] is always false.
*/
protected scalarInfo(type: ScalarType, value?: any): [WireType, "int32" | "string" | "bool" | "uint32" | "double" | "float" | "int64" | "uint64" | "fixed64" | "bytes" | "fixed32" | "sfixed32" | "sfixed64" | "sint32" | "sint64", boolean];
}
@@ -0,0 +1,309 @@
// Styles shared between snow and bubble
controlHeight = 24px
inputPaddingWidth = 5px
inputPaddingHeight = 3px
colorItemMargin = 2px
colorItemSize = 16px
colorItemsPerRow = 7
.ql-{themeName}.ql-toolbar, .ql-{themeName} .ql-toolbar
&:after
clear: both
content: ''
display: table
button
background: none
border: none
cursor: pointer
display: inline-block
float: left
height: controlHeight
padding: inputPaddingHeight inputPaddingWidth
width: controlHeight + (inputPaddingWidth - inputPaddingHeight)*2
svg
float: left
height: 100%
&:active:hover
outline: none
input.ql-image[type=file]
display: none
button:hover, button:focus, button.ql-active,
.ql-picker-label:hover, .ql-picker-label.ql-active,
.ql-picker-item:hover, .ql-picker-item.ql-selected
color: activeColor
.ql-fill, .ql-stroke.ql-fill
fill: activeColor
.ql-stroke, .ql-stroke-miter
stroke: activeColor
// Fix for iOS not losing hover on touch
@media (pointer: coarse)
.ql-{themeName}.ql-toolbar, .ql-{themeName} .ql-toolbar
button:hover:not(.ql-active)
color: inactiveColor
.ql-fill, .ql-stroke.ql-fill
fill: inactiveColor
.ql-stroke, .ql-stroke-miter
stroke: inactiveColor
.ql-{themeName}
box-sizing: border-box
*
box-sizing: border-box
.ql-hidden
display: none
.ql-out-bottom, .ql-out-top
visibility: hidden
.ql-tooltip
position: absolute
transform: translateY(10px)
a
cursor: pointer
text-decoration: none
.ql-tooltip.ql-flip
transform: translateY(-10px)
.ql-formats
&:after
clear: both
content: ''
display: table
display: inline-block
vertical-align: middle
.ql-stroke
fill: none
stroke: inactiveColor
stroke-linecap: round
stroke-linejoin: round
stroke-width: 2
.ql-stroke-miter
fill: none
stroke: inactiveColor
stroke-miterlimit: 10
stroke-width: 2
.ql-fill, .ql-stroke.ql-fill
fill: inactiveColor
.ql-empty
fill: none
.ql-even
fill-rule: evenodd
.ql-thin, .ql-stroke.ql-thin
stroke-width: 1
.ql-transparent
opacity: 0.4
.ql-direction
svg:last-child
display: none
.ql-direction.ql-active
svg:last-child
display: inline
svg:first-child
display: none
.ql-editor
h1
font-size: 2em
h2
font-size: 1.5em
h3
font-size: 1.17em
h4
font-size: 1em
h5
font-size: 0.83em
h6
font-size: 0.67em
a
text-decoration: underline
blockquote
border-left: 4px solid #ccc
margin-bottom: 5px
margin-top: 5px
padding-left: 16px
code, .ql-code-block-container
background-color: #f0f0f0
border-radius: 3px
.ql-code-block-container
margin-bottom: 5px
margin-top: 5px
padding: 5px 10px
code
font-size: 85%
padding: 2px 4px
.ql-code-block-container
background-color: #23241f
color: #f8f8f2
overflow: visible
img
max-width: 100%
.ql-picker
color: inactiveColor
display: inline-block
float: left
font-size: 14px
font-weight: 500
height: controlHeight
position: relative
vertical-align: middle
.ql-picker-label
cursor: pointer
display: inline-block
height: 100%
padding-left: 8px
padding-right: 2px
position: relative
width: 100%
&::before
display: inline-block
line-height: 22px
.ql-picker-options
background-color: backgroundColor
display: none
min-width: 100%
padding: 4px 8px
position: absolute
white-space: nowrap
.ql-picker-item
cursor: pointer
display: block
padding-bottom: 5px
padding-top: 5px
.ql-picker.ql-expanded
.ql-picker-label
color: borderColor
z-index: 2
.ql-fill
fill: borderColor
.ql-stroke
stroke: borderColor
.ql-picker-options
display: block
margin-top: -1px
top: 100%
z-index: 1
.ql-color-picker, .ql-icon-picker
width: controlHeight + 4
.ql-picker-label
padding: 2px 4px
svg
right: 4px
.ql-icon-picker
.ql-picker-options
padding: 4px 0px
.ql-picker-item
height: controlHeight
width: controlHeight
padding: 2px 4px
.ql-color-picker
.ql-picker-options
padding: inputPaddingHeight inputPaddingWidth
width: (colorItemSize + 2*colorItemMargin) * colorItemsPerRow + 2*inputPaddingWidth + 2 // +2 for the border
.ql-picker-item
border: 1px solid transparent
float: left
height: colorItemSize
margin: colorItemMargin
padding: 0px
width: colorItemSize
.ql-picker:not(.ql-color-picker):not(.ql-icon-picker)
svg
position: absolute
margin-top: -9px
right: 0
top: 50%
width: 18px
.ql-picker.ql-header, .ql-picker.ql-font, .ql-picker.ql-size
.ql-picker-label[data-label]:not([data-label='']),
.ql-picker-item[data-label]:not([data-label=''])
&::before
content: attr(data-label)
.ql-picker.ql-header
width: 98px
.ql-picker-label::before,
.ql-picker-item::before
content: 'Normal'
for num in (1..6)
.ql-picker-label[data-value=\"{num}\"]::before,
.ql-picker-item[data-value=\"{num}\"]::before
content: 'Heading ' + num
.ql-picker-item[data-value="1"]::before
font-size: 2em
.ql-picker-item[data-value="2"]::before
font-size: 1.5em
.ql-picker-item[data-value="3"]::before
font-size: 1.17em
.ql-picker-item[data-value="4"]::before
font-size: 1em
.ql-picker-item[data-value="5"]::before
font-size: 0.83em
.ql-picker-item[data-value="6"]::before
font-size: 0.67em
.ql-picker.ql-font
width: 108px
.ql-picker-label::before,
.ql-picker-item::before
content: 'Sans Serif'
.ql-picker-label[data-value=serif]::before,
.ql-picker-item[data-value=serif]::before
content: 'Serif'
.ql-picker-label[data-value=monospace]::before,
.ql-picker-item[data-value=monospace]::before
content: 'Monospace'
.ql-picker-item[data-value=serif]::before
font-family: Georgia, Times New Roman, serif
.ql-picker-item[data-value=monospace]::before
font-family: Monaco, Courier New, monospace
.ql-picker.ql-size
width: 98px
.ql-picker-label::before,
.ql-picker-item::before
content: 'Normal'
.ql-picker-label[data-value=small]::before,
.ql-picker-item[data-value=small]::before
content: 'Small'
.ql-picker-label[data-value=large]::before,
.ql-picker-item[data-value=large]::before
content: 'Large'
.ql-picker-label[data-value=huge]::before,
.ql-picker-item[data-value=huge]::before
content: 'Huge'
.ql-picker-item[data-value=small]::before
font-size: 10px
.ql-picker-item[data-value=large]::before
font-size: 18px
.ql-picker-item[data-value=huge]::before
font-size: 32px
.ql-color-picker.ql-background
.ql-picker-item
background-color: #fff
.ql-color-picker.ql-color
.ql-picker-item
background-color: #000
.ql-code-block-container
position: relative
.ql-ui
right: 5px
top: 5px
@@ -0,0 +1 @@
export { _ as default } from "../esm/_class_call_check.js";
@@ -0,0 +1 @@
{"version":3,"file":"code.js","names":["Block","Break","Cursor","Inline","TextBlot","escapeText","Container","Quill","CodeBlockContainer","create","value","domNode","setAttribute","code","index","length","children","map","child","innerText","join","slice","html","CodeBlock","TAB","register","Code","blotName","tagName","className","allowedChildren","requiredContainer","default"],"sources":["../../src/formats/code.ts"],"sourcesContent":["import Block from '../blots/block.js';\nimport Break from '../blots/break.js';\nimport Cursor from '../blots/cursor.js';\nimport Inline from '../blots/inline.js';\nimport TextBlot, { escapeText } from '../blots/text.js';\nimport Container from '../blots/container.js';\nimport Quill from '../core/quill.js';\n\nclass CodeBlockContainer extends Container {\n static create(value: string) {\n const domNode = super.create(value) as Element;\n domNode.setAttribute('spellcheck', 'false');\n return domNode;\n }\n\n code(index: number, length: number) {\n return (\n this.children\n // @ts-expect-error\n .map((child) => (child.length() <= 1 ? '' : child.domNode.innerText))\n .join('\\n')\n .slice(index, index + length)\n );\n }\n\n html(index: number, length: number) {\n // `\\n`s are needed in order to support empty lines at the beginning and the end.\n // https://html.spec.whatwg.org/multipage/syntax.html#element-restrictions\n return `<pre>\\n${escapeText(this.code(index, length))}\\n</pre>`;\n }\n}\n\nclass CodeBlock extends Block {\n static TAB = ' ';\n\n static register() {\n Quill.register(CodeBlockContainer);\n }\n}\n\nclass Code extends Inline {}\nCode.blotName = 'code';\nCode.tagName = 'CODE';\n\nCodeBlock.blotName = 'code-block';\nCodeBlock.className = 'ql-code-block';\nCodeBlock.tagName = 'DIV';\nCodeBlockContainer.blotName = 'code-block-container';\nCodeBlockContainer.className = 'ql-code-block-container';\nCodeBlockContainer.tagName = 'DIV';\n\nCodeBlockContainer.allowedChildren = [CodeBlock];\n\nCodeBlock.allowedChildren = [TextBlot, Break, Cursor];\nCodeBlock.requiredContainer = CodeBlockContainer;\n\nexport { Code, CodeBlockContainer, CodeBlock as default };\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,mBAAmB;AACrC,OAAOC,KAAK,MAAM,mBAAmB;AACrC,OAAOC,MAAM,MAAM,oBAAoB;AACvC,OAAOC,MAAM,MAAM,oBAAoB;AACvC,OAAOC,QAAQ,IAAIC,UAAU,QAAQ,kBAAkB;AACvD,OAAOC,SAAS,MAAM,uBAAuB;AAC7C,OAAOC,KAAK,MAAM,kBAAkB;AAEpC,MAAMC,kBAAkB,SAASF,SAAS,CAAC;EACzC,OAAOG,MAAMA,CAACC,KAAa,EAAE;IAC3B,MAAMC,OAAO,GAAG,KAAK,CAACF,MAAM,CAACC,KAAK,CAAY;IAC9CC,OAAO,CAACC,YAAY,CAAC,YAAY,EAAE,OAAO,CAAC;IAC3C,OAAOD,OAAO;EAChB;EAEAE,IAAIA,CAACC,KAAa,EAAEC,MAAc,EAAE;IAClC,OACE,IAAI,CAACC;IACH;IAAA,CACCC,GAAG,CAAEC,KAAK,IAAMA,KAAK,CAACH,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,GAAGG,KAAK,CAACP,OAAO,CAACQ,SAAU,CAAC,CACpEC,IAAI,CAAC,IAAI,CAAC,CACVC,KAAK,CAACP,KAAK,EAAEA,KAAK,GAAGC,MAAM,CAAC;EAEnC;EAEAO,IAAIA,CAACR,KAAa,EAAEC,MAAc,EAAE;IAClC;IACA;IACA,OAAQ,UAASV,UAAU,CAAC,IAAI,CAACQ,IAAI,CAACC,KAAK,EAAEC,MAAM,CAAC,CAAE,UAAS;EACjE;AACF;AAEA,MAAMQ,SAAS,SAASvB,KAAK,CAAC;EAC5B,OAAOwB,GAAG,GAAG,IAAI;EAEjB,OAAOC,QAAQA,CAAA,EAAG;IAChBlB,KAAK,CAACkB,QAAQ,CAACjB,kBAAkB,CAAC;EACpC;AACF;AAEA,MAAMkB,IAAI,SAASvB,MAAM,CAAC;AAC1BuB,IAAI,CAACC,QAAQ,GAAG,MAAM;AACtBD,IAAI,CAACE,OAAO,GAAG,MAAM;AAErBL,SAAS,CAACI,QAAQ,GAAG,YAAY;AACjCJ,SAAS,CAACM,SAAS,GAAG,eAAe;AACrCN,SAAS,CAACK,OAAO,GAAG,KAAK;AACzBpB,kBAAkB,CAACmB,QAAQ,GAAG,sBAAsB;AACpDnB,kBAAkB,CAACqB,SAAS,GAAG,yBAAyB;AACxDrB,kBAAkB,CAACoB,OAAO,GAAG,KAAK;AAElCpB,kBAAkB,CAACsB,eAAe,GAAG,CAACP,SAAS,CAAC;AAEhDA,SAAS,CAACO,eAAe,GAAG,CAAC1B,QAAQ,EAAEH,KAAK,EAAEC,MAAM,CAAC;AACrDqB,SAAS,CAACQ,iBAAiB,GAAGvB,kBAAkB;AAEhD,SAASkB,IAAI,EAAElB,kBAAkB,EAAEe,SAAS,IAAIS,OAAO","ignoreList":[]}
@@ -0,0 +1,22 @@
/**
* A specialized version of `baseAggregator` for arrays.
*
* @private
* @param {Array} [array] The array to iterate over.
* @param {Function} setter The function to set `accumulator` values.
* @param {Function} iteratee The iteratee to transform keys.
* @param {Object} accumulator The initial aggregated object.
* @returns {Function} Returns `accumulator`.
*/
function arrayAggregator(array, setter, iteratee, accumulator) {
var index = -1,
length = array == null ? 0 : array.length;
while (++index < length) {
var value = array[index];
setter(accumulator, value, iteratee(value), array);
}
return accumulator;
}
export default arrayAggregator;
@@ -0,0 +1,136 @@
;(function (root, factory) {
if (typeof exports === "object") {
// CommonJS
module.exports = exports = factory(require("./core"));
}
else if (typeof define === "function" && define.amd) {
// AMD
define(["./core"], factory);
}
else {
// Global (browser)
factory(root.CryptoJS);
}
}(this, function (CryptoJS) {
(function () {
// Shortcuts
var C = CryptoJS;
var C_lib = C.lib;
var WordArray = C_lib.WordArray;
var C_enc = C.enc;
/**
* Base64 encoding strategy.
*/
var Base64 = C_enc.Base64 = {
/**
* Converts a word array to a Base64 string.
*
* @param {WordArray} wordArray The word array.
*
* @return {string} The Base64 string.
*
* @static
*
* @example
*
* var base64String = CryptoJS.enc.Base64.stringify(wordArray);
*/
stringify: function (wordArray) {
// Shortcuts
var words = wordArray.words;
var sigBytes = wordArray.sigBytes;
var map = this._map;
// Clamp excess bits
wordArray.clamp();
// Convert
var base64Chars = [];
for (var i = 0; i < sigBytes; i += 3) {
var byte1 = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;
var byte2 = (words[(i + 1) >>> 2] >>> (24 - ((i + 1) % 4) * 8)) & 0xff;
var byte3 = (words[(i + 2) >>> 2] >>> (24 - ((i + 2) % 4) * 8)) & 0xff;
var triplet = (byte1 << 16) | (byte2 << 8) | byte3;
for (var j = 0; (j < 4) && (i + j * 0.75 < sigBytes); j++) {
base64Chars.push(map.charAt((triplet >>> (6 * (3 - j))) & 0x3f));
}
}
// Add padding
var paddingChar = map.charAt(64);
if (paddingChar) {
while (base64Chars.length % 4) {
base64Chars.push(paddingChar);
}
}
return base64Chars.join('');
},
/**
* Converts a Base64 string to a word array.
*
* @param {string} base64Str The Base64 string.
*
* @return {WordArray} The word array.
*
* @static
*
* @example
*
* var wordArray = CryptoJS.enc.Base64.parse(base64String);
*/
parse: function (base64Str) {
// Shortcuts
var base64StrLength = base64Str.length;
var map = this._map;
var reverseMap = this._reverseMap;
if (!reverseMap) {
reverseMap = this._reverseMap = [];
for (var j = 0; j < map.length; j++) {
reverseMap[map.charCodeAt(j)] = j;
}
}
// Ignore padding
var paddingChar = map.charAt(64);
if (paddingChar) {
var paddingIndex = base64Str.indexOf(paddingChar);
if (paddingIndex !== -1) {
base64StrLength = paddingIndex;
}
}
// Convert
return parseLoop(base64Str, base64StrLength, reverseMap);
},
_map: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='
};
function parseLoop(base64Str, base64StrLength, reverseMap) {
var words = [];
var nBytes = 0;
for (var i = 0; i < base64StrLength; i++) {
if (i % 4) {
var bits1 = reverseMap[base64Str.charCodeAt(i - 1)] << ((i % 4) * 2);
var bits2 = reverseMap[base64Str.charCodeAt(i)] >>> (6 - (i % 4) * 2);
var bitsCombined = bits1 | bits2;
words[nBytes >>> 2] |= bitsCombined << (24 - (nBytes % 4) * 8);
nBytes++;
}
}
return WordArray.create(words, nBytes);
}
}());
return CryptoJS.enc.Base64;
}));
@@ -0,0 +1,5 @@
var convert = require('./convert'),
func = convert('mean', require('../mean'), require('./_falseOptions'));
func.placeholder = require('./placeholder');
module.exports = func;
@@ -0,0 +1,33 @@
import isObject from './isObject.js';
import isPrototype from './_isPrototype.js';
import nativeKeysIn from './_nativeKeysIn.js';
/** Used for built-in method references. */
var objectProto = Object.prototype;
/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;
/**
* The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
*
* @private
* @param {Object} object The object to query.
* @returns {Array} Returns the array of property names.
*/
function baseKeysIn(object) {
if (!isObject(object)) {
return nativeKeysIn(object);
}
var isProto = isPrototype(object),
result = [];
for (var key in object) {
if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
result.push(key);
}
}
return result;
}
export default baseKeysIn;
@@ -0,0 +1 @@
{"mappings":";;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;AAKM,MAAM,4CAAsC;IACjD,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,eAAe;IACf,gBAAgB;IAChB,cAAc;IACd,SAAS;IACT,UAAU;IACV,cAAc;IACd,cAAc;IACd,OAAO;AACT;AAEA,MAAM,8CAAuC;IAC3C,GAAG,yCAAoB;IACvB,aAAa;IACb,OAAO;AACT;AAEO,MAAM,4CAA8C;IACzD,WAAW;IACX,mBAAmB;IACnB,kBAAkB,EAAE;AACtB;AAEO,MAAM,4CAAwB,CAAA,GAAA,0BAAY,EAAoB,CAAC;AAE/D,MAAM,2CAA6B,0BAA0B,KAAK,GAAG;AAqBrE,SAAS,0CAA0B,KAA6B;IACrE,gEAAgE;IAChE,IAAI,KAAK,CAAC,yCAA2B,EAAE;QACrC,IAAI,sBAAC,kBAAkB,qBAAE,iBAAiB,oBAAE,gBAAgB,mBAAE,eAAe,oBAAE,gBAAgB,EAAC,GAAG,KAAK,CAAC,yCAA2B;QACpI,OAAO;gCAAC;+BAAoB;8BAAmB;6BAAkB;8BAAiB;QAAgB;IACpG;IAEA,sDAAsD;IACtD,OAAO,iDAA2B;AACpC;AAEA,SAAS,iDAA8B,KAA6B;IAClE,IAAI,aAAC,SAAS,mBAAE,eAAe,QAAE,IAAI,SAAE,KAAK,qBAAE,iBAAiB,YAAE,QAAQ,sBAAE,qBAAqB,QAAO,GAAG;IAE1G,0BAA0B;IAC1B,IAAI,iBACF,cAAA,YAAc,oBAAoB;IAGpC,6EAA6E;IAC7E,IAAI,kBAA2C,cAAc,YAAY;mBACvE;QACA,kBAAkB,EAAE;QACpB,mBAAmB;IACrB,IAAI;IAEJ,yCAAyC;IACzC,IAAI,cAAuC,CAAA,GAAA,oBAAM,EAAE;QACjD,IAAI,CAAC,YAAY,SAAS,MACxB,OAAO;QAET,IAAI,iBAAiB,kCAAY,UAAU;QAC3C,OAAO,0CAAoB;IAC7B,GAAG;QAAC;QAAU;KAAM;IAEpB,IAAI,8BAAA,wCAAA,kBAAmB,iBAAiB,CAAC,KAAK,EAC5C,oBAAoB;IAGtB,4CAA4C;IAC5C,IAAI,eAAe,CAAA,GAAA,uBAAS,EAAE;IAC9B,IAAI,sBAAsB,CAAA,GAAA,oBAAM,EAAE;QAChC,IAAI,MACF,OAAO,MAAM,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC,CAAA,OAAQ,8BAAQ,YAAY,CAAC,KAAK,KAAK,8BAAQ,YAAY,CAAC,KAAK;QAE7G,OAAO,EAAE;IACX,GAAG;QAAC;QAAc;KAAK;IAEvB,gGAAgG;IAChG,IAAI,CAAC,kBAAkB,oBAAoB,GAAG,CAAA,GAAA,qBAAO,EAAE;IACvD,IAAI,CAAC,sBAAsB,sBAAsB,GAAG,CAAA,GAAA,qBAAO,EAAE;IAC7D,IAAI,iBAAiB,kBAAkB;QACrC,oBAAoB;QACpB,sBAAsB;IACxB;IAEA,IAAI,cAAuC,CAAA,GAAA,oBAAM,EAAE,IACjD,0CAAoB,uBAAuB,EAAE,GAAG,sBAChD;QAAC;QAAsB;KAAoB;IAG7C,6EAA6E;IAC7E,IAAI,iBAAiB,CAAA,GAAA,mBAAK,EAAE;IAC5B,IAAI,CAAC,iBAAiB,mBAAmB,GAAG,CAAA,GAAA,qBAAO,EAAE;IAErD,IAAI,YAAY,CAAA,GAAA,mBAAK,EAAE;IACvB,IAAI,mBAAmB;QACrB,IAAI,CAAC,cACH;QAGF,gBAAgB;QAChB,IAAI,QAAQ,eAAe,qBAAqB,eAAe,OAAO;QACtE,IAAI,CAAC,wCAAkB,OAAO,UAAU,OAAO,GAAG;YAChD,UAAU,OAAO,GAAG;YACpB,mBAAmB;QACrB;IACF;IAEA,IAAI,CAAC,cAAc,gBAAgB,GAAG,CAAA,GAAA,qBAAO,EAAE;IAC/C,CAAA,GAAA,sBAAQ,EAAE;IAEV,0GAA0G;IAC1G,uHAAuH;IACvH,8FAA8F;IAC9F,IAAI,qBAAqB,mBAAmB,eAAe,eAAe,qBAAqB;IAC/F,IAAI,oBAAoB,uBAAuB,WAC3C,mBAAmB,eAAe,kBAClC,mBAAmB,eAAe,eAAe,qBAAqB;IAE1E,OAAO;4BACL;2BACA;QACA,kBAAiB,KAAK;YACpB,+FAA+F;YAC/F,IAAI,uBAAuB,UAAU,CAAC,wCAAkB,iBAAiB,QACvE,mBAAmB;iBAEnB,eAAe,OAAO,GAAG;QAE7B;QACA;YACE,0EAA0E;YAC1E,uFAAuF;YACvF,IAAI,QAAQ;YACZ,IAAI,CAAC,wCAAkB,OAAO,UAAU,OAAO,GAAG;gBAChD,UAAU,OAAO,GAAG;gBACpB,mBAAmB;YACrB;YAEA,gFAAgF;YAChF,8DAA8D;YAC9D,IAAI,uBAAuB,UACzB,gBAAgB;YAGlB,sBAAsB;QACxB;QACA;YACE,mGAAmG;YACnG,0FAA0F;YAC1F,IAAI,uBAAuB,UACzB,gBAAgB;YAElB,sBAAsB;QACxB;IACF;AACF;AAEA,SAAS,8BAAW,CAAU;IAC5B,IAAI,CAAC,GACH,OAAO,EAAE;IAGX,OAAO,MAAM,OAAO,CAAC,KAAK,IAAI;QAAC;KAAE;AACnC;AAEA,SAAS,kCAAe,QAA+B,EAAE,KAAQ;IAC/D,IAAI,OAAO,aAAa,YAAY;QAClC,IAAI,IAAI,SAAS;QACjB,IAAI,KAAK,OAAO,MAAM,WACpB,OAAO,8BAAQ;IAEnB;IAEA,OAAO,EAAE;AACX;AAEA,SAAS,0CAAoB,MAAgB;IAC3C,OAAO,OAAO,MAAM,GAAG;QACrB,WAAW;QACX,kBAAkB;QAClB,mBAAmB;IACrB,IAAI;AACN;AAEA,SAAS,wCAAkB,CAA0B,EAAE,CAA0B;IAC/E,IAAI,MAAM,GACR,OAAO;IAGT,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,KACX,EAAE,SAAS,KAAK,EAAE,SAAS,IAC3B,EAAE,gBAAgB,CAAC,MAAM,KAAK,EAAE,gBAAgB,CAAC,MAAM,IACvD,EAAE,gBAAgB,CAAC,KAAK,CAAC,CAAC,GAAG,IAAM,MAAM,EAAE,gBAAgB,CAAC,EAAE,KAC9D,OAAO,OAAO,CAAC,EAAE,iBAAiB,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,EAAE,GAAK,EAAE,iBAAiB,CAAC,EAAE,KAAK;AACxF;AAEO,SAAS,0CAAgB,GAAG,OAA2B;IAC5D,IAAI,SAAS,IAAI;IACjB,IAAI,YAAY;IAChB,IAAI,oBAAoB;QACtB,GAAG,yCAAoB;IACzB;IAEA,KAAK,IAAI,KAAK,QAAS;YAQnB,oBAAkB;QAPpB,KAAK,IAAI,KAAK,EAAE,gBAAgB,CAC9B,OAAO,GAAG,CAAC;QAGb,8CAA8C;QAC9C,cAAA,YAAc,EAAE,SAAS;QACzB,IAAK,IAAI,OAAO,kBACd,CAAA,qBAAA,kBAAiB,CAAC,OAAA,IAAI,KAAtB,kBAAiB,CAAC,KAAI,GAAK,EAAE,iBAAiB,CAAC,IAAI;IAEvD;IAEA,kBAAkB,KAAK,GAAG,CAAC;IAC3B,OAAO;mBACL;QACA,kBAAkB;eAAI;SAAO;2BAC7B;IACF;AACF","sources":["packages/@react-stately/form/src/useFormValidationState.ts"],"sourcesContent":["/*\n * Copyright 2023 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\nimport {createContext, useContext, useEffect, useMemo, useRef, useState} from 'react';\nimport {Validation, ValidationErrors, ValidationFunction, ValidationResult} from '@react-types/shared';\n\nexport const VALID_VALIDITY_STATE: ValidityState = {\n badInput: false,\n customError: false,\n patternMismatch: false,\n rangeOverflow: false,\n rangeUnderflow: false,\n stepMismatch: false,\n tooLong: false,\n tooShort: false,\n typeMismatch: false,\n valueMissing: false,\n validLine truncated
@@ -0,0 +1,93 @@
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _filter2 = require('./internal/filter.js');
var _filter3 = _interopRequireDefault(_filter2);
var _eachOf = require('./eachOf.js');
var _eachOf2 = _interopRequireDefault(_eachOf);
var _awaitify = require('./internal/awaitify.js');
var _awaitify2 = _interopRequireDefault(_awaitify);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/**
* Returns a new array of all the values in `coll` which pass an async truth
* test. This operation is performed in parallel, but the results array will be
* in the same order as the original.
*
* @name filter
* @static
* @memberOf module:Collections
* @method
* @alias select
* @category Collection
* @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.
* @param {Function} iteratee - A truth test to apply to each item in `coll`.
* The `iteratee` is passed a `callback(err, truthValue)`, which must be called
* with a boolean argument once it has completed. Invoked with (item, callback).
* @param {Function} [callback] - A callback which is called after all the
* `iteratee` functions have finished. Invoked with (err, results).
* @returns {Promise} a promise, if no callback provided
* @example
*
* // dir1 is a directory that contains file1.txt, file2.txt
* // dir2 is a directory that contains file3.txt, file4.txt
* // dir3 is a directory that contains file5.txt
*
* const files = ['dir1/file1.txt','dir2/file3.txt','dir3/file6.txt'];
*
* // asynchronous function that checks if a file exists
* function fileExists(file, callback) {
* fs.access(file, fs.constants.F_OK, (err) => {
* callback(null, !err);
* });
* }
*
* // Using callbacks
* async.filter(files, fileExists, function(err, results) {
* if(err) {
* console.log(err);
* } else {
* console.log(results);
* // [ 'dir1/file1.txt', 'dir2/file3.txt' ]
* // results is now an array of the existing files
* }
* });
*
* // Using Promises
* async.filter(files, fileExists)
* .then(results => {
* console.log(results);
* // [ 'dir1/file1.txt', 'dir2/file3.txt' ]
* // results is now an array of the existing files
* }).catch(err => {
* console.log(err);
* });
*
* // Using async/await
* async () => {
* try {
* let results = await async.filter(files, fileExists);
* console.log(results);
* // [ 'dir1/file1.txt', 'dir2/file3.txt' ]
* // results is now an array of the existing files
* }
* catch (err) {
* console.log(err);
* }
* }
*
*/
function filter(coll, iteratee, callback) {
return (0, _filter3.default)(_eachOf2.default, coll, iteratee, callback);
}
exports.default = (0, _awaitify2.default)(filter, 3);
module.exports = exports.default;
@@ -0,0 +1 @@
{"name":"@vitest/runner","version":"4.0.9","requiresBuild":false,"files":{"dist/chunk-tasks.js":{"checkedAt":1794532092168,"integrity":"sha512-lFfeBiDLNWLvEzcnwSyuvVkGX+VLt/xRYrz0xjG2mhJNg1v4g0hgXfLNowsxMDTuoXb2T8vxZAhCd4O6zR5TNQ==","mode":420,"size":10074},"dist/index.js":{"checkedAt":1794532092169,"integrity":"sha512-Q1hQ96TzU+RuZWzEkTd/peX4N58H/0R4L0xd+KGmSXwY/eI3OS9ILj2dnvXsYWwjTwBUwVZgxrp7QgCsw39khw==","mode":420,"size":72787},"dist/types.js":{"checkedAt":1794532092169,"integrity":"sha512-vmiIOMqGhuXJBom/KrWFzvETfJmbSMcLkvZ6XDTcFWl7XRHJgu1tcb4eHn97TgcziEqpfD96M5qO0DV3z3S+CQ==","mode":420,"size":1},"dist/utils.js":{"checkedAt":1794532092169,"integrity":"sha512-+p2HuDEteMPiYz4lUtlJetW1U7EQcsmhi+STwotmzEkeSB4ot7k6+zjiftJLDouAN/c2PBhz4onuzX82gCRpcw==","mode":420,"size":532},"package.json":{"checkedAt":1794532092169,"integrity":"sha512-fZ2H9S6yy/MuRzc2b05UtWUkhfb+pd8hqI2IZNyUiXWSDqDLAA/87XLRqBpFsCE8LEuFRO3jaaua4LnCpuVn+A==","mode":420,"size":1122},"README.md":{"checkedAt":1794532092169,"integrity":"sha512-aOgfTzkCcK/344StXJxlxc8W3A92UbwtdrfeDga2anpapKXMzNwBDkgldpxngbm1xL5kndYcKtfppd10zXgN4A==","mode":420,"size":163},"dist/hooks.d-C0RE9A6t.d.ts":{"checkedAt":1794532092169,"integrity":"sha512-bjKt/RkVST2niY+jSWWPtPqpHGIKAkqRZ8ialJiuqZBS227CeKf0YJ3308m1aUfTMl1pUtoRKSgQPNfVdeFTuA==","mode":420,"size":25887},"dist/index.d.ts":{"checkedAt":1794532092170,"integrity":"sha512-PIpWbwEERX08pmXR4zDPgZH+vWWeYwjOpz8xat5WqQ4OeodbJhLOqTaxSMEfEJww8e2ZOBoXh7na8Qaj+/YzVQ==","mode":420,"size":6337},"dist/types.d.ts":{"checkedAt":1794532092170,"integrity":"sha512-OR+xrOMMarxlIbwB54smhgVMgDq5/q3/Uhall4Gw5T5kLf4MOuxc9GfgquCD9TM0+L1AluKdZJZZnXPkreYgVA==","mode":420,"size":6502},"types.d.ts":{"checkedAt":1794532092170,"integrity":"sha512-vwljTPoUcyaF/CI/jjX7IirZJ692FcsL3BhXfzn3zMRSEu2KvnBbcHzsxdXxbJVhPzWXrhuSanzIto/5kRGFQg==","mode":420,"size":32},"dist/utils.d.ts":{"checkedAt":1794532092170,"integrity":"sha512-9uiPXdfEHMuCtnuDLQumlH/t7Ju8Jb/8YaeoNTEZ5hIoC2UCxBfmlFWwK7qVnzM6EDc8fPYJecuaOSyM4I4Bmg==","mode":420,"size":2411},"utils.d.ts":{"checkedAt":1794532092170,"integrity":"sha512-axCOarte2rMC9hFtFUUGn8ImqgUjccgFxq4TZaNTZiUNTE0ROH10GQW+ueZ46JT+/h9Ujbqxn9osOLQjjYYckQ==","mode":420,"size":32},"LICENSE":{"checkedAt":1794532092170,"integrity":"sha512-AxPiQHDnFTOwiy0HEsivy5bYN2wjcRKtw2lWjpeXevVq5EsAeGD6UzkfgwyM9B8ElYup7flAhvpi12SE1jQcGA==","mode":420,"size":1102}}}
@@ -0,0 +1,34 @@
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.isAsyncIterable = exports.isAsyncGenerator = exports.isAsync = undefined;
var _asyncify = require('../asyncify.js');
var _asyncify2 = _interopRequireDefault(_asyncify);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function isAsync(fn) {
return fn[Symbol.toStringTag] === 'AsyncFunction';
}
function isAsyncGenerator(fn) {
return fn[Symbol.toStringTag] === 'AsyncGenerator';
}
function isAsyncIterable(obj) {
return typeof obj[Symbol.asyncIterator] === 'function';
}
function wrapAsync(asyncFn) {
if (typeof asyncFn !== 'function') throw new Error('expected a function');
return isAsync(asyncFn) ? (0, _asyncify2.default)(asyncFn) : asyncFn;
}
exports.default = wrapAsync;
exports.isAsync = isAsync;
exports.isAsyncGenerator = isAsyncGenerator;
exports.isAsyncIterable = isAsyncIterable;
@@ -0,0 +1,101 @@
const maxDistance = 3;
function editDistance(a, b) {
// https://en.wikipedia.org/wiki/Damerau–Levenshtein_distance
// Calculating optimal string alignment distance, no substring is edited more than once.
// (Simple implementation.)
// Quick early exit, return worst case.
if (Math.abs(a.length - b.length) > maxDistance)
return Math.max(a.length, b.length);
// distance between prefix substrings of a and b
const d = [];
// pure deletions turn a into empty string
for (let i = 0; i <= a.length; i++) {
d[i] = [i];
}
// pure insertions turn empty string into b
for (let j = 0; j <= b.length; j++) {
d[0][j] = j;
}
// fill matrix
for (let j = 1; j <= b.length; j++) {
for (let i = 1; i <= a.length; i++) {
let cost = 1;
if (a[i - 1] === b[j - 1]) {
cost = 0;
} else {
cost = 1;
}
d[i][j] = Math.min(
d[i - 1][j] + 1, // deletion
d[i][j - 1] + 1, // insertion
d[i - 1][j - 1] + cost, // substitution
);
// transposition
if (i > 1 && j > 1 && a[i - 1] === b[j - 2] && a[i - 2] === b[j - 1]) {
d[i][j] = Math.min(d[i][j], d[i - 2][j - 2] + 1);
}
}
}
return d[a.length][b.length];
}
/**
* Find close matches, restricted to same number of edits.
*
* @param {string} word
* @param {string[]} candidates
* @returns {string}
*/
function suggestSimilar(word, candidates) {
if (!candidates || candidates.length === 0) return '';
// remove possible duplicates
candidates = Array.from(new Set(candidates));
const searchingOptions = word.startsWith('--');
if (searchingOptions) {
word = word.slice(2);
candidates = candidates.map((candidate) => candidate.slice(2));
}
let similar = [];
let bestDistance = maxDistance;
const minSimilarity = 0.4;
candidates.forEach((candidate) => {
if (candidate.length <= 1) return; // no one character guesses
const distance = editDistance(word, candidate);
const length = Math.max(word.length, candidate.length);
const similarity = (length - distance) / length;
if (similarity > minSimilarity) {
if (distance < bestDistance) {
// better edit distance, throw away previous worse matches
bestDistance = distance;
similar = [candidate];
} else if (distance === bestDistance) {
similar.push(candidate);
}
}
});
similar.sort((a, b) => a.localeCompare(b));
if (searchingOptions) {
similar = similar.map((candidate) => `--${candidate}`);
}
if (similar.length > 1) {
return `\n(Did you mean one of ${similar.join(', ')}?)`;
}
if (similar.length === 1) {
return `\n(Did you mean ${similar[0]}?)`;
}
return '';
}
exports.suggestSimilar = suggestSimilar;
@@ -0,0 +1 @@
{"mappings":";;AAAA;;;;;;;;;;CAUC;AAWM,MAAM,4CAA+D,CAAA,GAAA,YAAI,EAAE,aAAa,CAAyB;IAAC,UAAU,KAAO;AAAC;AAC3I,0CAAsB,WAAW,GAAG","sources":["packages/@react-aria/interactions/src/context.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\nimport {FocusableElement} from '@react-types/shared';\nimport {PressProps} from './usePress';\nimport React, {MutableRefObject} from 'react';\n\ninterface IPressResponderContext extends PressProps {\n register(): void,\n ref?: MutableRefObject<FocusableElement>\n}\n\nexport const PressResponderContext: React.Context<IPressResponderContext> = React.createContext<IPressResponderContext>({register: () => {}});\nPressResponderContext.displayName = 'PressResponderContext';\n"],"names":[],"version":3,"file":"context.module.js.map"}
@@ -0,0 +1,61 @@
{
"name": "postcss-load-config",
"version": "6.0.1",
"description": "Autoload Config for PostCSS",
"main": "src/index.js",
"types": "src/index.d.ts",
"files": [
"src"
],
"engines": {
"node": ">= 18"
},
"funding": [
{
"type": "opencollective",
"url": "https://opencollective.com/postcss/"
},
{
"type": "github",
"url": "https://github.com/sponsors/ai"
}
],
"dependencies": {
"lilconfig": "^3.1.1"
},
"peerDependencies": {
"jiti": ">=1.21.0",
"postcss": ">=8.0.9",
"tsx": "^4.8.1",
"yaml": "^2.4.2"
},
"peerDependenciesMeta": {
"jiti": {
"optional": true
},
"postcss": {
"optional": true
},
"tsx": {
"optional": true
},
"yaml": {
"optional": true
}
},
"keywords": [
"postcss",
"postcssrc",
"postcss.config.js"
],
"author": "Michael Ciniawky <michael.ciniawsky@gmail.com>",
"contributors": [
"Ryan Dunckel",
"Mateusz Derks",
"Dalton Santos",
"Patrick Gilday",
"François Wouts"
],
"repository": "postcss/postcss-load-config",
"license": "MIT"
}
@@ -0,0 +1,19 @@
import {useMenuTriggerState as $a28c903ee9ad8dc5$export$79fefeb1c2091ac3} from "./useMenuTriggerState.mjs";
import {useSubmenuTriggerState as $e5614764aa47eb35$export$cfc51cf86138bf98} from "./useSubmenuTriggerState.mjs";
/*
* 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.
*/
export {$a28c903ee9ad8dc5$export$79fefeb1c2091ac3 as useMenuTriggerState, $e5614764aa47eb35$export$cfc51cf86138bf98 as useSubmenuTriggerState};
//# sourceMappingURL=module.js.map
@@ -0,0 +1,714 @@
import { OB11MessageData, OB11MessageDataType, OB11MessageMixType, OB11PostContext } from '../../types';
import { BaseCheckResult } from '../../action/router';
import { NapCatCore, Peer, RawMessage } from '../../../napcat-core';
import { OneBotAction } from '../../action/OneBotAction';
import { Static } from '@sinclair/typebox';
export declare const SendMsgPayloadSchema: import("@sinclair/typebox").TObject<{
message_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"private">, import("@sinclair/typebox").TLiteral<"group">]>>;
user_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
group_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
message: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.text>;
data: import("@sinclair/typebox").TObject<{
text: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.face>;
data: import("@sinclair/typebox").TObject<{
id: import("@sinclair/typebox").TString;
resultId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chainCount: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.mface>;
data: import("@sinclair/typebox").TObject<{
emoji_package_id: import("@sinclair/typebox").TNumber;
emoji_id: import("@sinclair/typebox").TString;
key: import("@sinclair/typebox").TString;
summary: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.at>;
data: import("@sinclair/typebox").TObject<{
qq: import("@sinclair/typebox").TString;
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.reply>;
data: import("@sinclair/typebox").TObject<{
id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
seq: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.image>;
data: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
file: import("@sinclair/typebox").TString;
path: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
thumb: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
}>, import("@sinclair/typebox").TObject<{
summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
sub_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
}>]>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.voice>;
data: import("@sinclair/typebox").TObject<{
file: import("@sinclair/typebox").TString;
path: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
thumb: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.video>;
data: import("@sinclair/typebox").TObject<{
file: import("@sinclair/typebox").TString;
path: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
thumb: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.file>;
data: import("@sinclair/typebox").TObject<{
file: import("@sinclair/typebox").TString;
path: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
thumb: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.music>;
data: import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"qq">, import("@sinclair/typebox").TLiteral<"163">, import("@sinclair/typebox").TLiteral<"kugou">, import("@sinclair/typebox").TLiteral<"migu">, import("@sinclair/typebox").TLiteral<"kuwo">]>;
id: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNumber]>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.music>;
data: import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"qq">, import("@sinclair/typebox").TLiteral<"163">, import("@sinclair/typebox").TLiteral<"kugou">, import("@sinclair/typebox").TLiteral<"migu">, import("@sinclair/typebox").TLiteral<"kuwo">, import("@sinclair/typebox").TLiteral<"custom">]>;
id: import("@sinclair/typebox").TUndefined;
url: import("@sinclair/typebox").TString;
audio: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
title: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
image: import("@sinclair/typebox").TString;
content: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.poke>;
data: import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TString;
id: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.dice>;
data: import("@sinclair/typebox").TObject<{
result: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TString]>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.rps>;
data: import("@sinclair/typebox").TObject<{
result: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TString]>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.contact>;
data: import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"qq">, import("@sinclair/typebox").TLiteral<"group">]>;
id: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.json>;
data: import("@sinclair/typebox").TObject<{
data: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{}>]>;
config: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
token: import("@sinclair/typebox").TString;
}>>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.markdown>;
data: import("@sinclair/typebox").TObject<{
content: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.node>;
data: import("@sinclair/typebox").TObject<{
id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
user_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TString]>>;
uin: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TString]>>;
nickname: import("@sinclair/typebox").TString;
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
content: import("@sinclair/typebox").TAny;
source: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
news: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
text: import("@sinclair/typebox").TString;
}>>>;
summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
prompt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
time: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.forward>;
data: import("@sinclair/typebox").TObject<{
id: import("@sinclair/typebox").TString;
content: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.onlinefile>;
data: import("@sinclair/typebox").TObject<{
msgId: import("@sinclair/typebox").TString;
elementId: import("@sinclair/typebox").TString;
fileName: import("@sinclair/typebox").TString;
fileSize: import("@sinclair/typebox").TString;
isDir: import("@sinclair/typebox").TBoolean;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.flashtransfer>;
data: import("@sinclair/typebox").TObject<{
fileSetId: import("@sinclair/typebox").TString;
}>;
}>]>>, import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.text>;
data: import("@sinclair/typebox").TObject<{
text: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.face>;
data: import("@sinclair/typebox").TObject<{
id: import("@sinclair/typebox").TString;
resultId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chainCount: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.mface>;
data: import("@sinclair/typebox").TObject<{
emoji_package_id: import("@sinclair/typebox").TNumber;
emoji_id: import("@sinclair/typebox").TString;
key: import("@sinclair/typebox").TString;
summary: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.at>;
data: import("@sinclair/typebox").TObject<{
qq: import("@sinclair/typebox").TString;
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.reply>;
data: import("@sinclair/typebox").TObject<{
id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
seq: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.image>;
data: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
file: import("@sinclair/typebox").TString;
path: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
thumb: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
}>, import("@sinclair/typebox").TObject<{
summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
sub_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
}>]>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.voice>;
data: import("@sinclair/typebox").TObject<{
file: import("@sinclair/typebox").TString;
path: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
thumb: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.video>;
data: import("@sinclair/typebox").TObject<{
file: import("@sinclair/typebox").TString;
path: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
thumb: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.file>;
data: import("@sinclair/typebox").TObject<{
file: import("@sinclair/typebox").TString;
path: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
thumb: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.music>;
data: import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"qq">, import("@sinclair/typebox").TLiteral<"163">, import("@sinclair/typebox").TLiteral<"kugou">, import("@sinclair/typebox").TLiteral<"migu">, import("@sinclair/typebox").TLiteral<"kuwo">]>;
id: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNumber]>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.music>;
data: import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"qq">, import("@sinclair/typebox").TLiteral<"163">, import("@sinclair/typebox").TLiteral<"kugou">, import("@sinclair/typebox").TLiteral<"migu">, import("@sinclair/typebox").TLiteral<"kuwo">, import("@sinclair/typebox").TLiteral<"custom">]>;
id: import("@sinclair/typebox").TUndefined;
url: import("@sinclair/typebox").TString;
audio: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
title: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
image: import("@sinclair/typebox").TString;
content: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.poke>;
data: import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TString;
id: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.dice>;
data: import("@sinclair/typebox").TObject<{
result: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TString]>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.rps>;
data: import("@sinclair/typebox").TObject<{
result: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TString]>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.contact>;
data: import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"qq">, import("@sinclair/typebox").TLiteral<"group">]>;
id: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.json>;
data: import("@sinclair/typebox").TObject<{
data: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{}>]>;
config: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
token: import("@sinclair/typebox").TString;
}>>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.markdown>;
data: import("@sinclair/typebox").TObject<{
content: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.node>;
data: import("@sinclair/typebox").TObject<{
id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
user_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TString]>>;
uin: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TString]>>;
nickname: import("@sinclair/typebox").TString;
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
content: import("@sinclair/typebox").TAny;
source: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
news: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
text: import("@sinclair/typebox").TString;
}>>>;
summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
prompt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
time: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.forward>;
data: import("@sinclair/typebox").TObject<{
id: import("@sinclair/typebox").TString;
content: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.onlinefile>;
data: import("@sinclair/typebox").TObject<{
msgId: import("@sinclair/typebox").TString;
elementId: import("@sinclair/typebox").TString;
fileName: import("@sinclair/typebox").TString;
fileSize: import("@sinclair/typebox").TString;
isDir: import("@sinclair/typebox").TBoolean;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.flashtransfer>;
data: import("@sinclair/typebox").TObject<{
fileSetId: import("@sinclair/typebox").TString;
}>;
}>]>]>;
auto_escape: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBoolean, import("@sinclair/typebox").TString]>>;
source: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
news: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
text: import("@sinclair/typebox").TString;
}>>>;
summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
prompt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
}>;
export type SendMsgPayload = Static<typeof SendMsgPayloadSchema>;
export declare const SendMsgReturnSchema: import("@sinclair/typebox").TObject<{
message_id: import("@sinclair/typebox").TNumber;
res_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
forward_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
}>;
export type ReturnDataType = Static<typeof SendMsgReturnSchema>;
export enum ContextMode {
Normal = 0,
Private = 1,
Group = 2
}
export declare function normalize(message: OB11MessageMixType, autoEscape?: boolean): OB11MessageData[];
export declare function createContext(core: NapCatCore, payload: OB11PostContext | undefined, contextMode?: ContextMode): Promise<Peer>;
export declare class SendMsgBase extends OneBotAction<SendMsgPayload, ReturnDataType> {
payloadSchema: import("@sinclair/typebox").TObject<{
message_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"private">, import("@sinclair/typebox").TLiteral<"group">]>>;
user_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
group_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
message: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.text>;
data: import("@sinclair/typebox").TObject<{
text: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.face>;
data: import("@sinclair/typebox").TObject<{
id: import("@sinclair/typebox").TString;
resultId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chainCount: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.mface>;
data: import("@sinclair/typebox").TObject<{
emoji_package_id: import("@sinclair/typebox").TNumber;
emoji_id: import("@sinclair/typebox").TString;
key: import("@sinclair/typebox").TString;
summary: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.at>;
data: import("@sinclair/typebox").TObject<{
qq: import("@sinclair/typebox").TString;
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.reply>;
data: import("@sinclair/typebox").TObject<{
id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
seq: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.image>;
data: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
file: import("@sinclair/typebox").TString;
path: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
thumb: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
}>, import("@sinclair/typebox").TObject<{
summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
sub_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
}>]>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.voice>;
data: import("@sinclair/typebox").TObject<{
file: import("@sinclair/typebox").TString;
path: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
thumb: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.video>;
data: import("@sinclair/typebox").TObject<{
file: import("@sinclair/typebox").TString;
path: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
thumb: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.file>;
data: import("@sinclair/typebox").TObject<{
file: import("@sinclair/typebox").TString;
path: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
thumb: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.music>;
data: import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"qq">, import("@sinclair/typebox").TLiteral<"163">, import("@sinclair/typebox").TLiteral<"kugou">, import("@sinclair/typebox").TLiteral<"migu">, import("@sinclair/typebox").TLiteral<"kuwo">]>;
id: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNumber]>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.music>;
data: import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"qq">, import("@sinclair/typebox").TLiteral<"163">, import("@sinclair/typebox").TLiteral<"kugou">, import("@sinclair/typebox").TLiteral<"migu">, import("@sinclair/typebox").TLiteral<"kuwo">, import("@sinclair/typebox").TLiteral<"custom">]>;
id: import("@sinclair/typebox").TUndefined;
url: import("@sinclair/typebox").TString;
audio: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
title: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
image: import("@sinclair/typebox").TString;
content: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.poke>;
data: import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TString;
id: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.dice>;
data: import("@sinclair/typebox").TObject<{
result: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TString]>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.rps>;
data: import("@sinclair/typebox").TObject<{
result: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TString]>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.contact>;
data: import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"qq">, import("@sinclair/typebox").TLiteral<"group">]>;
id: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.json>;
data: import("@sinclair/typebox").TObject<{
data: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{}>]>;
config: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
token: import("@sinclair/typebox").TString;
}>>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.markdown>;
data: import("@sinclair/typebox").TObject<{
content: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.node>;
data: import("@sinclair/typebox").TObject<{
id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
user_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TString]>>;
uin: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TString]>>;
nickname: import("@sinclair/typebox").TString;
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
content: import("@sinclair/typebox").TAny;
source: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
news: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
text: import("@sinclair/typebox").TString;
}>>>;
summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
prompt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
time: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.forward>;
data: import("@sinclair/typebox").TObject<{
id: import("@sinclair/typebox").TString;
content: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.onlinefile>;
data: import("@sinclair/typebox").TObject<{
msgId: import("@sinclair/typebox").TString;
elementId: import("@sinclair/typebox").TString;
fileName: import("@sinclair/typebox").TString;
fileSize: import("@sinclair/typebox").TString;
isDir: import("@sinclair/typebox").TBoolean;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.flashtransfer>;
data: import("@sinclair/typebox").TObject<{
fileSetId: import("@sinclair/typebox").TString;
}>;
}>]>>, import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.text>;
data: import("@sinclair/typebox").TObject<{
text: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.face>;
data: import("@sinclair/typebox").TObject<{
id: import("@sinclair/typebox").TString;
resultId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
chainCount: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.mface>;
data: import("@sinclair/typebox").TObject<{
emoji_package_id: import("@sinclair/typebox").TNumber;
emoji_id: import("@sinclair/typebox").TString;
key: import("@sinclair/typebox").TString;
summary: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.at>;
data: import("@sinclair/typebox").TObject<{
qq: import("@sinclair/typebox").TString;
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.reply>;
data: import("@sinclair/typebox").TObject<{
id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
seq: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.image>;
data: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
file: import("@sinclair/typebox").TString;
path: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
thumb: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
}>, import("@sinclair/typebox").TObject<{
summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
sub_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
}>]>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.voice>;
data: import("@sinclair/typebox").TObject<{
file: import("@sinclair/typebox").TString;
path: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
thumb: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.video>;
data: import("@sinclair/typebox").TObject<{
file: import("@sinclair/typebox").TString;
path: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
thumb: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.file>;
data: import("@sinclair/typebox").TObject<{
file: import("@sinclair/typebox").TString;
path: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
thumb: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.music>;
data: import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"qq">, import("@sinclair/typebox").TLiteral<"163">, import("@sinclair/typebox").TLiteral<"kugou">, import("@sinclair/typebox").TLiteral<"migu">, import("@sinclair/typebox").TLiteral<"kuwo">]>;
id: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNumber]>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.music>;
data: import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"qq">, import("@sinclair/typebox").TLiteral<"163">, import("@sinclair/typebox").TLiteral<"kugou">, import("@sinclair/typebox").TLiteral<"migu">, import("@sinclair/typebox").TLiteral<"kuwo">, import("@sinclair/typebox").TLiteral<"custom">]>;
id: import("@sinclair/typebox").TUndefined;
url: import("@sinclair/typebox").TString;
audio: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
title: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
image: import("@sinclair/typebox").TString;
content: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.poke>;
data: import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TString;
id: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.dice>;
data: import("@sinclair/typebox").TObject<{
result: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TString]>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.rps>;
data: import("@sinclair/typebox").TObject<{
result: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TString]>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.contact>;
data: import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"qq">, import("@sinclair/typebox").TLiteral<"group">]>;
id: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.json>;
data: import("@sinclair/typebox").TObject<{
data: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{}>]>;
config: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
token: import("@sinclair/typebox").TString;
}>>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.markdown>;
data: import("@sinclair/typebox").TObject<{
content: import("@sinclair/typebox").TString;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.node>;
data: import("@sinclair/typebox").TObject<{
id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
user_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TString]>>;
uin: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TString]>>;
nickname: import("@sinclair/typebox").TString;
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
content: import("@sinclair/typebox").TAny;
source: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
news: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
text: import("@sinclair/typebox").TString;
}>>>;
summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
prompt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
time: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.forward>;
data: import("@sinclair/typebox").TObject<{
id: import("@sinclair/typebox").TString;
content: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.onlinefile>;
data: import("@sinclair/typebox").TObject<{
msgId: import("@sinclair/typebox").TString;
elementId: import("@sinclair/typebox").TString;
fileName: import("@sinclair/typebox").TString;
fileSize: import("@sinclair/typebox").TString;
isDir: import("@sinclair/typebox").TBoolean;
}>;
}>, import("@sinclair/typebox").TObject<{
type: import("@sinclair/typebox").TLiteral<OB11MessageDataType.flashtransfer>;
data: import("@sinclair/typebox").TObject<{
fileSetId: import("@sinclair/typebox").TString;
}>;
}>]>]>;
auto_escape: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBoolean, import("@sinclair/typebox").TString]>>;
source: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
news: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
text: import("@sinclair/typebox").TString;
}>>>;
summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
prompt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
}>;
returnSchema: import("@sinclair/typebox").TObject<{
message_id: import("@sinclair/typebox").TNumber;
res_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
forward_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
}>;
actionTags: string[];
protected check(payload: SendMsgPayload): Promise<BaseCheckResult>;
_handle(payload: SendMsgPayload): Promise<ReturnDataType>;
base_handle(payload: SendMsgPayload, contextMode?: ContextMode): Promise<ReturnDataType>;
private uploadForwardedNodesPacket;
private handleForwardedNodesPacket;
private handleForwardedNodes;
cloneMsg(msg: RawMessage): Promise<RawMessage | undefined>;
}
export default class SendMsg extends SendMsgBase {
actionName: "send_msg";
actionSummary: string;
actionDescription: string;
actionTags: string[];
payloadExample: {
message_type: string;
group_id: string;
message: string;
};
returnExample: {
message_id: number;
};
}
@@ -0,0 +1,14 @@
export * from './clear-caches';
export * from './create-program/getScriptKind';
export { getCanonicalFileName } from './create-program/shared';
export { createProgramFromConfigFile as createProgram } from './create-program/useProvidedPrograms';
export * from './getModifiers';
export { TSError } from './node-utils';
export { type AST, parse, parseAndGenerateServices, type ParseAndGenerateServicesResult, } from './parser';
export type { ParserServices, ParserServicesWithoutTypeInformation, ParserServicesWithTypeInformation, TSESTreeOptions, } from './parser-options';
export { addCandidateTSConfigRootDir, clearCandidateTSConfigRootDirs, } from './parseSettings/candidateTSConfigRootDirs';
export { simpleTraverse } from './simple-traverse';
export * from './ts-estree';
export { typescriptVersionIsAtLeast } from './version-check';
export { version } from './version';
export { withoutProjectParserOptions } from './withoutProjectParserOptions';
@@ -0,0 +1,289 @@
"use client";
"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/index.ts
var src_exports = {};
__export(src_exports, {
BaseItem: () => import_collections.Item,
BaseSection: () => import_collections2.Section,
ariaHideOutside: () => ariaHideOutside,
ariaShouldCloseOnInteractOutside: () => ariaShouldCloseOnInteractOutside,
getArrowPlacement: () => getArrowPlacement,
getShouldUseAxisPlacement: () => getShouldUseAxisPlacement,
getTransformOrigins: () => getTransformOrigins,
isCtrlKeyPressed: () => isCtrlKeyPressed,
isNonContiguousSelectionModifier: () => isNonContiguousSelectionModifier,
toOverlayPlacement: () => toOverlayPlacement,
toReactAriaPlacement: () => toReactAriaPlacement
});
module.exports = __toCommonJS(src_exports);
// src/collections/item.ts
var import_collections = require("@react-stately/collections");
// src/collections/section.ts
var import_collections2 = require("@react-stately/collections");
// src/utils/index.ts
var import_utils = require("@react-aria/utils");
var import_utils2 = require("@react-aria/utils");
function isNonContiguousSelectionModifier(e) {
return (0, import_utils.isAppleDevice)() ? e.altKey : e.ctrlKey;
}
function isCtrlKeyPressed(e) {
if ((0, import_utils2.isMac)()) {
return e.metaKey;
}
return e.ctrlKey;
}
// src/overlays/utils.ts
var getTransformOrigins = (placement) => {
const origins = {
top: {
originY: 1
},
bottom: {
originY: 0
},
left: {
originX: 1
},
right: {
originX: 0
},
"top-start": {
originX: 0,
originY: 1
},
"top-end": {
originX: 1,
originY: 1
},
"bottom-start": {
originX: 0,
originY: 0
},
"bottom-end": {
originX: 1,
originY: 0
},
"right-start": {
originX: 0,
originY: 0
},
"right-end": {
originX: 0,
originY: 1
},
"left-start": {
originX: 1,
originY: 0
},
"left-end": {
originX: 1,
originY: 1
}
};
return (origins == null ? void 0 : origins[placement]) || {};
};
var toReactAriaPlacement = (placement) => {
const mapPositions = {
top: "top",
bottom: "bottom",
left: "left",
right: "right",
"top-start": "top start",
"top-end": "top end",
"bottom-start": "bottom start",
"bottom-end": "bottom end",
"left-start": "left top",
"left-end": "left bottom",
"right-start": "right top",
"right-end": "right bottom"
};
return mapPositions[placement];
};
var toOverlayPlacement = (placement) => {
const mapPositions = {
top: "top",
bottom: "bottom",
left: "left",
right: "right",
center: "top"
};
return mapPositions[placement];
};
var getShouldUseAxisPlacement = (axisPlacement, overlayPlacement) => {
if (overlayPlacement.includes("-")) {
const [position] = overlayPlacement.split("-");
if (position.includes(axisPlacement)) {
return false;
}
}
return true;
};
var getArrowPlacement = (dynamicPlacement, placement) => {
if (placement.includes("-")) {
const [, position] = placement.split("-");
return `${dynamicPlacement}-${position}`;
}
return dynamicPlacement;
};
// src/overlays/ariaHideOutside.ts
var refCountMap = /* @__PURE__ */ new WeakMap();
var observerStack = [];
function ariaHideOutside(targets, root = document.body) {
let visibleNodes = new Set(targets);
let hiddenNodes = /* @__PURE__ */ new Set();
let walk = (root2) => {
for (let element of root2.querySelectorAll(
"[data-live-announcer], [data-react-aria-top-layer]"
)) {
visibleNodes.add(element);
}
let acceptNode = (node) => {
if (visibleNodes.has(node) || node.parentElement && hiddenNodes.has(node.parentElement) && node.parentElement.getAttribute("role") !== "row") {
return NodeFilter.FILTER_REJECT;
}
for (let target of visibleNodes) {
if (node.contains(target)) {
return NodeFilter.FILTER_SKIP;
}
}
return NodeFilter.FILTER_ACCEPT;
};
let walker = document.createTreeWalker(root2, NodeFilter.SHOW_ELEMENT, { acceptNode });
let acceptRoot = acceptNode(root2);
if (acceptRoot === NodeFilter.FILTER_ACCEPT) {
hide(root2);
}
if (acceptRoot !== NodeFilter.FILTER_REJECT) {
let node = walker.nextNode();
while (node != null) {
hide(node);
node = walker.nextNode();
}
}
};
let hide = (node) => {
var _a;
let refCount = (_a = refCountMap.get(node)) != null ? _a : 0;
if (node.getAttribute("aria-hidden") === "true" && refCount === 0) {
return;
}
if (refCount === 0) {
node.setAttribute("aria-hidden", "true");
}
hiddenNodes.add(node);
refCountMap.set(node, refCount + 1);
};
if (observerStack.length) {
observerStack[observerStack.length - 1].disconnect();
}
walk(root);
let observer = new MutationObserver((changes) => {
for (let change of changes) {
if (change.type !== "childList" || change.addedNodes.length === 0) {
continue;
}
if (![...visibleNodes, ...hiddenNodes].some((node) => node.contains(change.target))) {
for (let node of change.removedNodes) {
if (node instanceof Element) {
visibleNodes.delete(node);
hiddenNodes.delete(node);
}
}
for (let node of change.addedNodes) {
if ((node instanceof HTMLElement || node instanceof SVGElement) && (node.dataset.liveAnnouncer === "true" || node.dataset.reactAriaTopLayer === "true")) {
visibleNodes.add(node);
} else if (node instanceof Element) {
walk(node);
}
}
}
}
});
observer.observe(root, { childList: true, subtree: true });
let observerWrapper = {
observe() {
observer.observe(root, { childList: true, subtree: true });
},
disconnect() {
observer.disconnect();
}
};
observerStack.push(observerWrapper);
return () => {
observer.disconnect();
for (let node of hiddenNodes) {
let count = refCountMap.get(node);
if (count == null) {
continue;
}
if (count === 1) {
node.removeAttribute("aria-hidden");
refCountMap.delete(node);
} else {
refCountMap.set(node, count - 1);
}
}
if (observerWrapper === observerStack[observerStack.length - 1]) {
observerStack.pop();
if (observerStack.length) {
observerStack[observerStack.length - 1].observe();
}
} else {
observerStack.splice(observerStack.indexOf(observerWrapper), 1);
}
};
}
// src/overlays/ariaShouldCloseOnInteractOutside.ts
var ariaShouldCloseOnInteractOutside = (element, triggerRef, state) => {
const trigger = triggerRef == null ? void 0 : triggerRef.current;
if (!trigger || !trigger.contains(element)) {
const startElements = document.querySelectorAll("body > span[data-focus-scope-start]");
let focusScopeElements = [];
startElements.forEach((startElement) => {
focusScopeElements.push(startElement.nextElementSibling);
});
if (focusScopeElements.length === 1) {
state.close();
return false;
}
}
return !trigger || !trigger.contains(element);
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
BaseItem,
BaseSection,
ariaHideOutside,
ariaShouldCloseOnInteractOutside,
getArrowPlacement,
getShouldUseAxisPlacement,
getTransformOrigins,
isCtrlKeyPressed,
isNonContiguousSelectionModifier,
toOverlayPlacement,
toReactAriaPlacement
});
@@ -0,0 +1,10 @@
"use client";
import {
virtualized_table_body_default
} from "./chunk-XELIGTI4.mjs";
import "./chunk-LNVX26OF.mjs";
import "./chunk-IAFUOJEK.mjs";
import "./chunk-CKWQQGXG.mjs";
export {
virtualized_table_body_default as default
};
@@ -0,0 +1,84 @@
argparse
========
[![Build Status](https://secure.travis-ci.org/nodeca/argparse.svg?branch=master)](http://travis-ci.org/nodeca/argparse)
[![NPM version](https://img.shields.io/npm/v/argparse.svg)](https://www.npmjs.org/package/argparse)
CLI arguments parser for node.js, with [sub-commands](https://docs.python.org/3.9/library/argparse.html#sub-commands) support. Port of python's [argparse](http://docs.python.org/dev/library/argparse.html) (version [3.9.0](https://github.com/python/cpython/blob/v3.9.0rc1/Lib/argparse.py)).
**Difference with original.**
- JS has no keyword arguments support.
- Pass options instead: `new ArgumentParser({ description: 'example', add_help: true })`.
- JS has no python's types `int`, `float`, ...
- Use string-typed names: `.add_argument('-b', { type: 'int', help: 'help' })`.
- `%r` format specifier uses `require('util').inspect()`.
More details in [doc](./doc).
Example
-------
`test.js` file:
```javascript
#!/usr/bin/env node
'use strict';
const { ArgumentParser } = require('argparse');
const { version } = require('./package.json');
const parser = new ArgumentParser({
description: 'Argparse example'
});
parser.add_argument('-v', '--version', { action: 'version', version });
parser.add_argument('-f', '--foo', { help: 'foo bar' });
parser.add_argument('-b', '--bar', { help: 'bar foo' });
parser.add_argument('--baz', { help: 'baz bar' });
console.dir(parser.parse_args());
```
Display help:
```
$ ./test.js -h
usage: test.js [-h] [-v] [-f FOO] [-b BAR] [--baz BAZ]
Argparse example
optional arguments:
-h, --help show this help message and exit
-v, --version show program's version number and exit
-f FOO, --foo FOO foo bar
-b BAR, --bar BAR bar foo
--baz BAZ baz bar
```
Parse arguments:
```
$ ./test.js -f=3 --bar=4 --baz 5
{ foo: '3', bar: '4', baz: '5' }
```
API docs
--------
Since this is a port with minimal divergence, there's no separate documentation.
Use original one instead, with notes about difference.
1. [Original doc](https://docs.python.org/3.9/library/argparse.html).
2. [Original tutorial](https://docs.python.org/3.9/howto/argparse.html).
3. [Difference with python](./doc).
argparse for enterprise
-----------------------
Available as part of the Tidelift Subscription
The maintainers of argparse and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-argparse?utm_source=npm-argparse&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
@@ -0,0 +1,5 @@
'use strict';
module.exports = function isByteValue(value) {
return typeof value === 'number' && value >= 0 && value <= 255 && (value | 0) === value;
};
@@ -0,0 +1,673 @@
(function() {
var expandIPv6, ipaddr, ipv4Part, ipv4Regexes, ipv6Part, ipv6Regexes, matchCIDR, root, zoneIndex;
ipaddr = {};
root = this;
if ((typeof module !== "undefined" && module !== null) && module.exports) {
module.exports = ipaddr;
} else {
root['ipaddr'] = ipaddr;
}
matchCIDR = function(first, second, partSize, cidrBits) {
var part, shift;
if (first.length !== second.length) {
throw new Error("ipaddr: cannot match CIDR for objects with different lengths");
}
part = 0;
while (cidrBits > 0) {
shift = partSize - cidrBits;
if (shift < 0) {
shift = 0;
}
if (first[part] >> shift !== second[part] >> shift) {
return false;
}
cidrBits -= partSize;
part += 1;
}
return true;
};
ipaddr.subnetMatch = function(address, rangeList, defaultName) {
var k, len, rangeName, rangeSubnets, subnet;
if (defaultName == null) {
defaultName = 'unicast';
}
for (rangeName in rangeList) {
rangeSubnets = rangeList[rangeName];
if (rangeSubnets[0] && !(rangeSubnets[0] instanceof Array)) {
rangeSubnets = [rangeSubnets];
}
for (k = 0, len = rangeSubnets.length; k < len; k++) {
subnet = rangeSubnets[k];
if (address.kind() === subnet[0].kind()) {
if (address.match.apply(address, subnet)) {
return rangeName;
}
}
}
}
return defaultName;
};
ipaddr.IPv4 = (function() {
function IPv4(octets) {
var k, len, octet;
if (octets.length !== 4) {
throw new Error("ipaddr: ipv4 octet count should be 4");
}
for (k = 0, len = octets.length; k < len; k++) {
octet = octets[k];
if (!((0 <= octet && octet <= 255))) {
throw new Error("ipaddr: ipv4 octet should fit in 8 bits");
}
}
this.octets = octets;
}
IPv4.prototype.kind = function() {
return 'ipv4';
};
IPv4.prototype.toString = function() {
return this.octets.join(".");
};
IPv4.prototype.toNormalizedString = function() {
return this.toString();
};
IPv4.prototype.toByteArray = function() {
return this.octets.slice(0);
};
IPv4.prototype.match = function(other, cidrRange) {
var ref;
if (cidrRange === void 0) {
ref = other, other = ref[0], cidrRange = ref[1];
}
if (other.kind() !== 'ipv4') {
throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");
}
return matchCIDR(this.octets, other.octets, 8, cidrRange);
};
IPv4.prototype.SpecialRanges = {
unspecified: [[new IPv4([0, 0, 0, 0]), 8]],
broadcast: [[new IPv4([255, 255, 255, 255]), 32]],
multicast: [[new IPv4([224, 0, 0, 0]), 4]],
linkLocal: [[new IPv4([169, 254, 0, 0]), 16]],
loopback: [[new IPv4([127, 0, 0, 0]), 8]],
carrierGradeNat: [[new IPv4([100, 64, 0, 0]), 10]],
"private": [[new IPv4([10, 0, 0, 0]), 8], [new IPv4([172, 16, 0, 0]), 12], [new IPv4([192, 168, 0, 0]), 16]],
reserved: [[new IPv4([192, 0, 0, 0]), 24], [new IPv4([192, 0, 2, 0]), 24], [new IPv4([192, 88, 99, 0]), 24], [new IPv4([198, 51, 100, 0]), 24], [new IPv4([203, 0, 113, 0]), 24], [new IPv4([240, 0, 0, 0]), 4]]
};
IPv4.prototype.range = function() {
return ipaddr.subnetMatch(this, this.SpecialRanges);
};
IPv4.prototype.toIPv4MappedAddress = function() {
return ipaddr.IPv6.parse("::ffff:" + (this.toString()));
};
IPv4.prototype.prefixLengthFromSubnetMask = function() {
var cidr, i, k, octet, stop, zeros, zerotable;
zerotable = {
0: 8,
128: 7,
192: 6,
224: 5,
240: 4,
248: 3,
252: 2,
254: 1,
255: 0
};
cidr = 0;
stop = false;
for (i = k = 3; k >= 0; i = k += -1) {
octet = this.octets[i];
if (octet in zerotable) {
zeros = zerotable[octet];
if (stop && zeros !== 0) {
return null;
}
if (zeros !== 8) {
stop = true;
}
cidr += zeros;
} else {
return null;
}
}
return 32 - cidr;
};
return IPv4;
})();
ipv4Part = "(0?\\d+|0x[a-f0-9]+)";
ipv4Regexes = {
fourOctet: new RegExp("^" + ipv4Part + "\\." + ipv4Part + "\\." + ipv4Part + "\\." + ipv4Part + "$", 'i'),
longValue: new RegExp("^" + ipv4Part + "$", 'i')
};
ipaddr.IPv4.parser = function(string) {
var match, parseIntAuto, part, shift, value;
parseIntAuto = function(string) {
if (string[0] === "0" && string[1] !== "x") {
return parseInt(string, 8);
} else {
return parseInt(string);
}
};
if (match = string.match(ipv4Regexes.fourOctet)) {
return (function() {
var k, len, ref, results;
ref = match.slice(1, 6);
results = [];
for (k = 0, len = ref.length; k < len; k++) {
part = ref[k];
results.push(parseIntAuto(part));
}
return results;
})();
} else if (match = string.match(ipv4Regexes.longValue)) {
value = parseIntAuto(match[1]);
if (value > 0xffffffff || value < 0) {
throw new Error("ipaddr: address outside defined range");
}
return ((function() {
var k, results;
results = [];
for (shift = k = 0; k <= 24; shift = k += 8) {
results.push((value >> shift) & 0xff);
}
return results;
})()).reverse();
} else {
return null;
}
};
ipaddr.IPv6 = (function() {
function IPv6(parts, zoneId) {
var i, k, l, len, part, ref;
if (parts.length === 16) {
this.parts = [];
for (i = k = 0; k <= 14; i = k += 2) {
this.parts.push((parts[i] << 8) | parts[i + 1]);
}
} else if (parts.length === 8) {
this.parts = parts;
} else {
throw new Error("ipaddr: ipv6 part count should be 8 or 16");
}
ref = this.parts;
for (l = 0, len = ref.length; l < len; l++) {
part = ref[l];
if (!((0 <= part && part <= 0xffff))) {
throw new Error("ipaddr: ipv6 part should fit in 16 bits");
}
}
if (zoneId) {
this.zoneId = zoneId;
}
}
IPv6.prototype.kind = function() {
return 'ipv6';
};
IPv6.prototype.toString = function() {
return this.toNormalizedString().replace(/((^|:)(0(:|$))+)/, '::');
};
IPv6.prototype.toRFC5952String = function() {
var bestMatchIndex, bestMatchLength, match, regex, string;
regex = /((^|:)(0(:|$)){2,})/g;
string = this.toNormalizedString();
bestMatchIndex = 0;
bestMatchLength = -1;
while ((match = regex.exec(string))) {
if (match[0].length > bestMatchLength) {
bestMatchIndex = match.index;
bestMatchLength = match[0].length;
}
}
if (bestMatchLength < 0) {
return string;
}
return string.substring(0, bestMatchIndex) + '::' + string.substring(bestMatchIndex + bestMatchLength);
};
IPv6.prototype.toByteArray = function() {
var bytes, k, len, part, ref;
bytes = [];
ref = this.parts;
for (k = 0, len = ref.length; k < len; k++) {
part = ref[k];
bytes.push(part >> 8);
bytes.push(part & 0xff);
}
return bytes;
};
IPv6.prototype.toNormalizedString = function() {
var addr, part, suffix;
addr = ((function() {
var k, len, ref, results;
ref = this.parts;
results = [];
for (k = 0, len = ref.length; k < len; k++) {
part = ref[k];
results.push(part.toString(16));
}
return results;
}).call(this)).join(":");
suffix = '';
if (this.zoneId) {
suffix = '%' + this.zoneId;
}
return addr + suffix;
};
IPv6.prototype.toFixedLengthString = function() {
var addr, part, suffix;
addr = ((function() {
var k, len, ref, results;
ref = this.parts;
results = [];
for (k = 0, len = ref.length; k < len; k++) {
part = ref[k];
results.push(part.toString(16).padStart(4, '0'));
}
return results;
}).call(this)).join(":");
suffix = '';
if (this.zoneId) {
suffix = '%' + this.zoneId;
}
return addr + suffix;
};
IPv6.prototype.match = function(other, cidrRange) {
var ref;
if (cidrRange === void 0) {
ref = other, other = ref[0], cidrRange = ref[1];
}
if (other.kind() !== 'ipv6') {
throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");
}
return matchCIDR(this.parts, other.parts, 16, cidrRange);
};
IPv6.prototype.SpecialRanges = {
unspecified: [new IPv6([0, 0, 0, 0, 0, 0, 0, 0]), 128],
linkLocal: [new IPv6([0xfe80, 0, 0, 0, 0, 0, 0, 0]), 10],
multicast: [new IPv6([0xff00, 0, 0, 0, 0, 0, 0, 0]), 8],
loopback: [new IPv6([0, 0, 0, 0, 0, 0, 0, 1]), 128],
uniqueLocal: [new IPv6([0xfc00, 0, 0, 0, 0, 0, 0, 0]), 7],
ipv4Mapped: [new IPv6([0, 0, 0, 0, 0, 0xffff, 0, 0]), 96],
rfc6145: [new IPv6([0, 0, 0, 0, 0xffff, 0, 0, 0]), 96],
rfc6052: [new IPv6([0x64, 0xff9b, 0, 0, 0, 0, 0, 0]), 96],
'6to4': [new IPv6([0x2002, 0, 0, 0, 0, 0, 0, 0]), 16],
teredo: [new IPv6([0x2001, 0, 0, 0, 0, 0, 0, 0]), 32],
reserved: [[new IPv6([0x2001, 0xdb8, 0, 0, 0, 0, 0, 0]), 32]]
};
IPv6.prototype.range = function() {
return ipaddr.subnetMatch(this, this.SpecialRanges);
};
IPv6.prototype.isIPv4MappedAddress = function() {
return this.range() === 'ipv4Mapped';
};
IPv6.prototype.toIPv4Address = function() {
var high, low, ref;
if (!this.isIPv4MappedAddress()) {
throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");
}
ref = this.parts.slice(-2), high = ref[0], low = ref[1];
return new ipaddr.IPv4([high >> 8, high & 0xff, low >> 8, low & 0xff]);
};
IPv6.prototype.prefixLengthFromSubnetMask = function() {
var cidr, i, k, part, stop, zeros, zerotable;
zerotable = {
0: 16,
32768: 15,
49152: 14,
57344: 13,
61440: 12,
63488: 11,
64512: 10,
65024: 9,
65280: 8,
65408: 7,
65472: 6,
65504: 5,
65520: 4,
65528: 3,
65532: 2,
65534: 1,
65535: 0
};
cidr = 0;
stop = false;
for (i = k = 7; k >= 0; i = k += -1) {
part = this.parts[i];
if (part in zerotable) {
zeros = zerotable[part];
if (stop && zeros !== 0) {
return null;
}
if (zeros !== 16) {
stop = true;
}
cidr += zeros;
} else {
return null;
}
}
return 128 - cidr;
};
return IPv6;
})();
ipv6Part = "(?:[0-9a-f]+::?)+";
zoneIndex = "%[0-9a-z]{1,}";
ipv6Regexes = {
zoneIndex: new RegExp(zoneIndex, 'i'),
"native": new RegExp("^(::)?(" + ipv6Part + ")?([0-9a-f]+)?(::)?(" + zoneIndex + ")?$", 'i'),
transitional: new RegExp(("^((?:" + ipv6Part + ")|(?:::)(?:" + ipv6Part + ")?)") + (ipv4Part + "\\." + ipv4Part + "\\." + ipv4Part + "\\." + ipv4Part) + ("(" + zoneIndex + ")?$"), 'i')
};
expandIPv6 = function(string, parts) {
var colonCount, lastColon, part, replacement, replacementCount, zoneId;
if (string.indexOf('::') !== string.lastIndexOf('::')) {
return null;
}
zoneId = (string.match(ipv6Regexes['zoneIndex']) || [])[0];
if (zoneId) {
zoneId = zoneId.substring(1);
string = string.replace(/%.+$/, '');
}
colonCount = 0;
lastColon = -1;
while ((lastColon = string.indexOf(':', lastColon + 1)) >= 0) {
colonCount++;
}
if (string.substr(0, 2) === '::') {
colonCount--;
}
if (string.substr(-2, 2) === '::') {
colonCount--;
}
if (colonCount > parts) {
return null;
}
replacementCount = parts - colonCount;
replacement = ':';
while (replacementCount--) {
replacement += '0:';
}
string = string.replace('::', replacement);
if (string[0] === ':') {
string = string.slice(1);
}
if (string[string.length - 1] === ':') {
string = string.slice(0, -1);
}
parts = (function() {
var k, len, ref, results;
ref = string.split(":");
results = [];
for (k = 0, len = ref.length; k < len; k++) {
part = ref[k];
results.push(parseInt(part, 16));
}
return results;
})();
return {
parts: parts,
zoneId: zoneId
};
};
ipaddr.IPv6.parser = function(string) {
var addr, k, len, match, octet, octets, zoneId;
if (ipv6Regexes['native'].test(string)) {
return expandIPv6(string, 8);
} else if (match = string.match(ipv6Regexes['transitional'])) {
zoneId = match[6] || '';
addr = expandIPv6(match[1].slice(0, -1) + zoneId, 6);
if (addr.parts) {
octets = [parseInt(match[2]), parseInt(match[3]), parseInt(match[4]), parseInt(match[5])];
for (k = 0, len = octets.length; k < len; k++) {
octet = octets[k];
if (!((0 <= octet && octet <= 255))) {
return null;
}
}
addr.parts.push(octets[0] << 8 | octets[1]);
addr.parts.push(octets[2] << 8 | octets[3]);
return {
parts: addr.parts,
zoneId: addr.zoneId
};
}
}
return null;
};
ipaddr.IPv4.isIPv4 = ipaddr.IPv6.isIPv6 = function(string) {
return this.parser(string) !== null;
};
ipaddr.IPv4.isValid = function(string) {
var e;
try {
new this(this.parser(string));
return true;
} catch (error1) {
e = error1;
return false;
}
};
ipaddr.IPv4.isValidFourPartDecimal = function(string) {
if (ipaddr.IPv4.isValid(string) && string.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/)) {
return true;
} else {
return false;
}
};
ipaddr.IPv6.isValid = function(string) {
var addr, e;
if (typeof string === "string" && string.indexOf(":") === -1) {
return false;
}
try {
addr = this.parser(string);
new this(addr.parts, addr.zoneId);
return true;
} catch (error1) {
e = error1;
return false;
}
};
ipaddr.IPv4.parse = function(string) {
var parts;
parts = this.parser(string);
if (parts === null) {
throw new Error("ipaddr: string is not formatted like ip address");
}
return new this(parts);
};
ipaddr.IPv6.parse = function(string) {
var addr;
addr = this.parser(string);
if (addr.parts === null) {
throw new Error("ipaddr: string is not formatted like ip address");
}
return new this(addr.parts, addr.zoneId);
};
ipaddr.IPv4.parseCIDR = function(string) {
var maskLength, match, parsed;
if (match = string.match(/^(.+)\/(\d+)$/)) {
maskLength = parseInt(match[2]);
if (maskLength >= 0 && maskLength <= 32) {
parsed = [this.parse(match[1]), maskLength];
Object.defineProperty(parsed, 'toString', {
value: function() {
return this.join('/');
}
});
return parsed;
}
}
throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range");
};
ipaddr.IPv4.subnetMaskFromPrefixLength = function(prefix) {
var filledOctetCount, j, octets;
prefix = parseInt(prefix);
if (prefix < 0 || prefix > 32) {
throw new Error('ipaddr: invalid IPv4 prefix length');
}
octets = [0, 0, 0, 0];
j = 0;
filledOctetCount = Math.floor(prefix / 8);
while (j < filledOctetCount) {
octets[j] = 255;
j++;
}
if (filledOctetCount < 4) {
octets[filledOctetCount] = Math.pow(2, prefix % 8) - 1 << 8 - (prefix % 8);
}
return new this(octets);
};
ipaddr.IPv4.broadcastAddressFromCIDR = function(string) {
var cidr, error, i, ipInterfaceOctets, octets, subnetMaskOctets;
try {
cidr = this.parseCIDR(string);
ipInterfaceOctets = cidr[0].toByteArray();
subnetMaskOctets = this.subnetMaskFromPrefixLength(cidr[1]).toByteArray();
octets = [];
i = 0;
while (i < 4) {
octets.push(parseInt(ipInterfaceOctets[i], 10) | parseInt(subnetMaskOctets[i], 10) ^ 255);
i++;
}
return new this(octets);
} catch (error1) {
error = error1;
throw new Error('ipaddr: the address does not have IPv4 CIDR format');
}
};
ipaddr.IPv4.networkAddressFromCIDR = function(string) {
var cidr, error, i, ipInterfaceOctets, octets, subnetMaskOctets;
try {
cidr = this.parseCIDR(string);
ipInterfaceOctets = cidr[0].toByteArray();
subnetMaskOctets = this.subnetMaskFromPrefixLength(cidr[1]).toByteArray();
octets = [];
i = 0;
while (i < 4) {
octets.push(parseInt(ipInterfaceOctets[i], 10) & parseInt(subnetMaskOctets[i], 10));
i++;
}
return new this(octets);
} catch (error1) {
error = error1;
throw new Error('ipaddr: the address does not have IPv4 CIDR format');
}
};
ipaddr.IPv6.parseCIDR = function(string) {
var maskLength, match, parsed;
if (match = string.match(/^(.+)\/(\d+)$/)) {
maskLength = parseInt(match[2]);
if (maskLength >= 0 && maskLength <= 128) {
parsed = [this.parse(match[1]), maskLength];
Object.defineProperty(parsed, 'toString', {
value: function() {
return this.join('/');
}
});
return parsed;
}
}
throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range");
};
ipaddr.isValid = function(string) {
return ipaddr.IPv6.isValid(string) || ipaddr.IPv4.isValid(string);
};
ipaddr.parse = function(string) {
if (ipaddr.IPv6.isValid(string)) {
return ipaddr.IPv6.parse(string);
} else if (ipaddr.IPv4.isValid(string)) {
return ipaddr.IPv4.parse(string);
} else {
throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format");
}
};
ipaddr.parseCIDR = function(string) {
var e;
try {
return ipaddr.IPv6.parseCIDR(string);
} catch (error1) {
e = error1;
try {
return ipaddr.IPv4.parseCIDR(string);
} catch (error1) {
e = error1;
throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format");
}
}
};
ipaddr.fromByteArray = function(bytes) {
var length;
length = bytes.length;
if (length === 4) {
return new ipaddr.IPv4(bytes);
} else if (length === 16) {
return new ipaddr.IPv6(bytes);
} else {
throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address");
}
};
ipaddr.process = function(string) {
var addr;
addr = this.parse(string);
if (addr.kind() === 'ipv6' && addr.isIPv4MappedAddress()) {
return addr.toIPv4Address();
} else {
return addr;
}
};
}).call(this);
@@ -0,0 +1,31 @@
"use client";
"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/collections/section.ts
var section_exports = {};
__export(section_exports, {
BaseSection: () => import_collections.Section
});
module.exports = __toCommonJS(section_exports);
var import_collections = require("@react-stately/collections");
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
BaseSection
});
@@ -0,0 +1 @@
{"name":"etag","version":"1.8.1","requiresBuild":false,"files":{"package.json":{"checkedAt":1794532089668,"integrity":"sha512-eh0gX2sGFCMT3zovHRSdDxgBJp0G0X4Ss6gTmKYhVrBx1kbaszJJfB0Nmoc/tYp/437mtLnVPIoQ7m8quUNAEA==","mode":438,"size":1306},"README.md":{"checkedAt":1794532089668,"integrity":"sha512-ykhwEjQb4dJohdaKfjpRV67dSHASKgFrxxQVUFutFUb/o0wwXTqF8WmPVbO/9PNocgJ5EeTITelfUSBZiEC4iQ==","mode":438,"size":4198},"LICENSE":{"checkedAt":1794532089668,"integrity":"sha512-HKzZERuesnoP0ybdGdYb33Z+RD7h3QnZg6+BGZ7NoNfPBH+9GLkAx9dzlysSeNXTwZ+nU1kTM8BMJ92sca9kIg==","mode":438,"size":1094},"index.js":{"checkedAt":1794532089668,"integrity":"sha512-9/qDDKM7zgjDe4eJ6t21vGhTx3TuhsltgB3tvsWVUwaxpLzD9urjOtTqcyeFZ62pA46rirHpWyVvLQYPegY4jg==","mode":438,"size":2479},"HISTORY.md":{"checkedAt":1794532089669,"integrity":"sha512-n8NSP/V8mfvSdygZ6iuAqRHkYD6UztshXgFExXLHmK1Mt36U1ZIIACDE+AdNCL+CCY4ehFKNfDcZyjsO537V0A==","mode":438,"size":1732}}}
@@ -0,0 +1,144 @@
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.parsedType = void 0;
exports.default = default_1;
const util = __importStar(require("../core/util.cjs"));
const parsedType = (data) => {
const t = typeof data;
switch (t) {
case "number": {
return Number.isNaN(data) ? "NaN" : "nombro";
}
case "object": {
if (Array.isArray(data)) {
return "tabelo";
}
if (data === null) {
return "senvalora";
}
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
return data.constructor.name;
}
}
}
return t;
};
exports.parsedType = parsedType;
const error = () => {
const Sizable = {
string: { unit: "karaktrojn", verb: "havi" },
file: { unit: "bajtojn", verb: "havi" },
array: { unit: "elementojn", verb: "havi" },
set: { unit: "elementojn", verb: "havi" },
};
function getSizing(origin) {
return Sizable[origin] ?? null;
}
const Nouns = {
regex: "enigo",
email: "retadreso",
url: "URL",
emoji: "emoĝio",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "ISO-datotempo",
date: "ISO-dato",
time: "ISO-tempo",
duration: "ISO-daŭro",
ipv4: "IPv4-adreso",
ipv6: "IPv6-adreso",
cidrv4: "IPv4-rango",
cidrv6: "IPv6-rango",
base64: "64-ume kodita karaktraro",
base64url: "URL-64-ume kodita karaktraro",
json_string: "JSON-karaktraro",
e164: "E.164-nombro",
jwt: "JWT",
template_literal: "enigo",
};
return (issue) => {
switch (issue.code) {
case "invalid_type":
return `Nevalida enigo: atendiĝis ${issue.expected}, riceviĝis ${(0, exports.parsedType)(issue.input)}`;
case "invalid_value":
if (issue.values.length === 1)
return `Nevalida enigo: atendiĝis ${util.stringifyPrimitive(issue.values[0])}`;
return `Nevalida opcio: atendiĝis unu el ${util.joinValues(issue.values, "|")}`;
case "too_big": {
const adj = issue.inclusive ? "<=" : "<";
const sizing = getSizing(issue.origin);
if (sizing)
return `Tro granda: atendiĝis ke ${issue.origin ?? "valoro"} havu ${adj}${issue.maximum.toString()} ${sizing.unit ?? "elementojn"}`;
return `Tro granda: atendiĝis ke ${issue.origin ?? "valoro"} havu ${adj}${issue.maximum.toString()}`;
}
case "too_small": {
const adj = issue.inclusive ? ">=" : ">";
const sizing = getSizing(issue.origin);
if (sizing) {
return `Tro malgranda: atendiĝis ke ${issue.origin} havu ${adj}${issue.minimum.toString()} ${sizing.unit}`;
}
return `Tro malgranda: atendiĝis ke ${issue.origin} estu ${adj}${issue.minimum.toString()}`;
}
case "invalid_format": {
const _issue = issue;
if (_issue.format === "starts_with")
return `Nevalida karaktraro: devas komenciĝi per "${_issue.prefix}"`;
if (_issue.format === "ends_with")
return `Nevalida karaktraro: devas finiĝi per "${_issue.suffix}"`;
if (_issue.format === "includes")
return `Nevalida karaktraro: devas inkluzivi "${_issue.includes}"`;
if (_issue.format === "regex")
return `Nevalida karaktraro: devas kongrui kun la modelo ${_issue.pattern}`;
return `Nevalida ${Nouns[_issue.format] ?? issue.format}`;
}
case "not_multiple_of":
return `Nevalida nombro: devas esti oblo de ${issue.divisor}`;
case "unrecognized_keys":
return `Nekonata${issue.keys.length > 1 ? "j" : ""} ŝlosilo${issue.keys.length > 1 ? "j" : ""}: ${util.joinValues(issue.keys, ", ")}`;
case "invalid_key":
return `Nevalida ŝlosilo en ${issue.origin}`;
case "invalid_union":
return "Nevalida enigo";
case "invalid_element":
return `Nevalida valoro en ${issue.origin}`;
default:
return `Nevalida enigo`;
}
};
};
function default_1() {
return {
localeError: error(),
};
}
@@ -0,0 +1,4 @@
import { MaybeClassElementMetadata } from '../models/MaybeClassElementMetadata';
import { MaybeClassMetadata } from '../models/MaybeClassMetadata';
export declare function updateMaybeClassMetadataProperty(updateMetadata: (classElementMetadata: MaybeClassElementMetadata | undefined) => MaybeClassElementMetadata, propertyKey: string | symbol): (classMetadata: MaybeClassMetadata) => MaybeClassMetadata;
//# sourceMappingURL=updateMaybeClassMetadataProperty.d.ts.map
@@ -0,0 +1,12 @@
# These are supported funding model platforms
github: [ljharb]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: npm/safe-array-concat
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
@@ -0,0 +1,14 @@
import { NativeAnimation } from './NativeAnimation.mjs';
class NativeAnimationWrapper extends NativeAnimation {
constructor(animation) {
super();
this.animation = animation;
animation.onfinish = () => {
this.finishedTime = this.time;
this.notifyFinished();
};
}
}
export { NativeAnimationWrapper };
@@ -0,0 +1 @@
{"mappings":";AAAA,4BAAiB;IAAG,aAAa,CAAC,QAAQ,CAAC;IACzC,iBAAiB,CAAC,OAAS,CAAC,uBAAuB,EAAE,KAAK,UAAU,CAAC,4BAAsB,CAAC;IAC5F,cAAc,CAAC,OAAS,GAAG,KAAK,KAAK,CAAC,OAAO,CAAC;IAC9C,cAAc,CAAC,QAAQ,CAAC;IACxB,kBAAkB,CAAC,OAAS,CAAC,uBAAuB,EAAE,KAAK,UAAU,CAAC,4BAAsB,CAAC;IAC7F,sBAAsB,CAAC,6CAAoC,CAAC;IAC5D,UAAU,CAAC,OAAI,CAAC;IAChB,aAAa,CAAC,YAAS,CAAC;IACxB,YAAY,CAAC,iBAAiB,CAAC;AACjC","sources":["packages/@react-aria/table/intl/da-DK.json"],"sourcesContent":["{\n \"ascending\": \"stigende\",\n \"ascendingSort\": \"sorteret efter kolonne {columnName} i stigende rækkefølge\",\n \"columnSize\": \"{value} pixels\",\n \"descending\": \"faldende\",\n \"descendingSort\": \"sorteret efter kolonne {columnName} i faldende rækkefølge\",\n \"resizerDescription\": \"Tryk på Enter for at ændre størrelse\",\n \"select\": \"Vælg\",\n \"selectAll\": \"Vælg alle\",\n \"sortable\": \"sorterbar kolonne\"\n}\n"],"names":[],"version":3,"file":"da-DK.module.js.map"}
@@ -0,0 +1,146 @@
/*!
* statuses
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2016 Douglas Christopher Wilson
* MIT Licensed
*/
'use strict'
/**
* Module dependencies.
* @private
*/
var codes = require('./codes.json')
/**
* Module exports.
* @public
*/
module.exports = status
// status code to message map
status.message = codes
// status message (lower-case) to code map
status.code = createMessageToStatusCodeMap(codes)
// array of status codes
status.codes = createStatusCodeList(codes)
// status codes for redirects
status.redirect = {
300: true,
301: true,
302: true,
303: true,
305: true,
307: true,
308: true
}
// status codes for empty bodies
status.empty = {
204: true,
205: true,
304: true
}
// status codes for when you should retry the request
status.retry = {
502: true,
503: true,
504: true
}
/**
* Create a map of message to status code.
* @private
*/
function createMessageToStatusCodeMap (codes) {
var map = {}
Object.keys(codes).forEach(function forEachCode (code) {
var message = codes[code]
var status = Number(code)
// populate map
map[message.toLowerCase()] = status
})
return map
}
/**
* Create a list of all status codes.
* @private
*/
function createStatusCodeList (codes) {
return Object.keys(codes).map(function mapCode (code) {
return Number(code)
})
}
/**
* Get the status code for given message.
* @private
*/
function getStatusCode (message) {
var msg = message.toLowerCase()
if (!Object.prototype.hasOwnProperty.call(status.code, msg)) {
throw new Error('invalid status message: "' + message + '"')
}
return status.code[msg]
}
/**
* Get the status message for given code.
* @private
*/
function getStatusMessage (code) {
if (!Object.prototype.hasOwnProperty.call(status.message, code)) {
throw new Error('invalid status code: ' + code)
}
return status.message[code]
}
/**
* Get the status code.
*
* Given a number, this will throw if it is not a known status
* code, otherwise the code will be returned. Given a string,
* the string will be parsed for a number and return the code
* if valid, otherwise will lookup the code assuming this is
* the status message.
*
* @param {string|number} code
* @returns {number}
* @public
*/
function status (code) {
if (typeof code === 'number') {
return getStatusMessage(code)
}
if (typeof code !== 'string') {
throw new TypeError('code must be a number or string')
}
// '403'
var n = parseInt(code, 10)
if (!isNaN(n)) {
return getStatusMessage(n)
}
return getStatusCode(code)
}
@@ -0,0 +1,6 @@
export declare type Arguments<T> = T extends (...args: infer U) => any ? U : never;
export declare type DeepRequired<T> = {
[K in keyof T]-?: Required<T[K]>;
};
export declare type FirstArgument<T> = T extends (firstArg: infer U, ...args: Array<any>) => any ? U : never;
export declare type Without<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
@@ -0,0 +1,67 @@
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _tslib = require("tslib");
var _debounce = _interopRequireDefault(require("lodash/debounce"));
var _react = require("react");
var useDebouncePlugin = function useDebouncePlugin(fetchInstance, _a) {
var debounceWait = _a.debounceWait,
debounceLeading = _a.debounceLeading,
debounceTrailing = _a.debounceTrailing,
debounceMaxWait = _a.debounceMaxWait;
var debouncedRef = (0, _react.useRef)(undefined);
var options = (0, _react.useMemo)(function () {
var ret = {};
if (debounceLeading !== undefined) {
ret.leading = debounceLeading;
}
if (debounceTrailing !== undefined) {
ret.trailing = debounceTrailing;
}
if (debounceMaxWait !== undefined) {
ret.maxWait = debounceMaxWait;
}
return ret;
}, [debounceLeading, debounceTrailing, debounceMaxWait]);
(0, _react.useEffect)(function () {
if (debounceWait) {
var _originRunAsync_1 = fetchInstance.runAsync.bind(fetchInstance);
debouncedRef.current = (0, _debounce["default"])(function (callback) {
callback();
}, debounceWait, options);
// debounce runAsync should be promise
// https://github.com/lodash/lodash/issues/4400#issuecomment-834800398
fetchInstance.runAsync = function () {
var args = [];
for (var _i = 0; _i < arguments.length; _i++) {
args[_i] = arguments[_i];
}
return new Promise(function (resolve, reject) {
var _a;
(_a = debouncedRef.current) === null || _a === void 0 ? void 0 : _a.call(debouncedRef, function () {
_originRunAsync_1.apply(void 0, (0, _tslib.__spreadArray)([], (0, _tslib.__read)(args), false)).then(resolve)["catch"](reject);
});
});
};
return function () {
var _a;
(_a = debouncedRef.current) === null || _a === void 0 ? void 0 : _a.cancel();
fetchInstance.runAsync = _originRunAsync_1;
};
}
}, [debounceWait, options]);
if (!debounceWait) {
return {};
}
return {
onCancel: function onCancel() {
var _a;
(_a = debouncedRef.current) === null || _a === void 0 ? void 0 : _a.cancel();
}
};
};
var _default = exports["default"] = useDebouncePlugin;
@@ -0,0 +1,365 @@
import type {
ActionFromMatcher,
Matcher,
UnionToIntersection,
} from './tsHelpers'
import { hasMatchFunction } from './tsHelpers'
import type {
AsyncThunk,
AsyncThunkFulfilledActionCreator,
AsyncThunkPendingActionCreator,
AsyncThunkRejectedActionCreator,
} from './createAsyncThunk'
/** @public */
export type ActionMatchingAnyOf<Matchers extends Matcher<any>[]> =
ActionFromMatcher<Matchers[number]>
/** @public */
export type ActionMatchingAllOf<Matchers extends Matcher<any>[]> =
UnionToIntersection<ActionMatchingAnyOf<Matchers>>
const matches = (matcher: Matcher<any>, action: any) => {
if (hasMatchFunction(matcher)) {
return matcher.match(action)
} else {
return matcher(action)
}
}
/**
* A higher-order function that returns a function that may be used to check
* whether an action matches any one of the supplied type guards or action
* creators.
*
* @param matchers The type guards or action creators to match against.
*
* @public
*/
export function isAnyOf<Matchers extends Matcher<any>[]>(
...matchers: Matchers
) {
return (action: any): action is ActionMatchingAnyOf<Matchers> => {
return matchers.some((matcher) => matches(matcher, action))
}
}
/**
* A higher-order function that returns a function that may be used to check
* whether an action matches all of the supplied type guards or action
* creators.
*
* @param matchers The type guards or action creators to match against.
*
* @public
*/
export function isAllOf<Matchers extends Matcher<any>[]>(
...matchers: Matchers
) {
return (action: any): action is ActionMatchingAllOf<Matchers> => {
return matchers.every((matcher) => matches(matcher, action))
}
}
/**
* @param action A redux action
* @param validStatus An array of valid meta.requestStatus values
*
* @internal
*/
export function hasExpectedRequestMetadata(
action: any,
validStatus: readonly string[],
) {
if (!action || !action.meta) return false
const hasValidRequestId = typeof action.meta.requestId === 'string'
const hasValidRequestStatus =
validStatus.indexOf(action.meta.requestStatus) > -1
return hasValidRequestId && hasValidRequestStatus
}
function isAsyncThunkArray(a: [any] | AnyAsyncThunk[]): a is AnyAsyncThunk[] {
return (
typeof a[0] === 'function' &&
'pending' in a[0] &&
'fulfilled' in a[0] &&
'rejected' in a[0]
)
}
export type UnknownAsyncThunkPendingAction = ReturnType<
AsyncThunkPendingActionCreator<unknown>
>
export type PendingActionFromAsyncThunk<T extends AnyAsyncThunk> =
ActionFromMatcher<T['pending']>
/**
* A higher-order function that returns a function that may be used to check
* whether an action was created by an async thunk action creator, and that
* the action is pending.
*
* @public
*/
export function isPending(): (
action: any,
) => action is UnknownAsyncThunkPendingAction
/**
* A higher-order function that returns a function that may be used to check
* whether an action belongs to one of the provided async thunk action creators,
* and that the action is pending.
*
* @param asyncThunks (optional) The async thunk action creators to match against.
*
* @public
*/
export function isPending<
AsyncThunks extends [AnyAsyncThunk, ...AnyAsyncThunk[]],
>(
...asyncThunks: AsyncThunks
): (action: any) => action is PendingActionFromAsyncThunk<AsyncThunks[number]>
/**
* Tests if `action` is a pending thunk action
* @public
*/
export function isPending(action: any): action is UnknownAsyncThunkPendingAction
export function isPending<
AsyncThunks extends [AnyAsyncThunk, ...AnyAsyncThunk[]],
>(...asyncThunks: AsyncThunks | [any]) {
if (asyncThunks.length === 0) {
return (action: any) => hasExpectedRequestMetadata(action, ['pending'])
}
if (!isAsyncThunkArray(asyncThunks)) {
return isPending()(asyncThunks[0])
}
return isAnyOf(...asyncThunks.map((asyncThunk) => asyncThunk.pending))
}
export type UnknownAsyncThunkRejectedAction = ReturnType<
AsyncThunkRejectedActionCreator<unknown, unknown>
>
export type RejectedActionFromAsyncThunk<T extends AnyAsyncThunk> =
ActionFromMatcher<T['rejected']>
/**
* A higher-order function that returns a function that may be used to check
* whether an action was created by an async thunk action creator, and that
* the action is rejected.
*
* @public
*/
export function isRejected(): (
action: any,
) => action is UnknownAsyncThunkRejectedAction
/**
* A higher-order function that returns a function that may be used to check
* whether an action belongs to one of the provided async thunk action creators,
* and that the action is rejected.
*
* @param asyncThunks (optional) The async thunk action creators to match against.
*
* @public
*/
export function isRejected<
AsyncThunks extends [AnyAsyncThunk, ...AnyAsyncThunk[]],
>(
...asyncThunks: AsyncThunks
): (action: any) => action is RejectedActionFromAsyncThunk<AsyncThunks[number]>
/**
* Tests if `action` is a rejected thunk action
* @public
*/
export function isRejected(
action: any,
): action is UnknownAsyncThunkRejectedAction
export function isRejected<
AsyncThunks extends [AnyAsyncThunk, ...AnyAsyncThunk[]],
>(...asyncThunks: AsyncThunks | [any]) {
if (asyncThunks.length === 0) {
return (action: any) => hasExpectedRequestMetadata(action, ['rejected'])
}
if (!isAsyncThunkArray(asyncThunks)) {
return isRejected()(asyncThunks[0])
}
return isAnyOf(...asyncThunks.map((asyncThunk) => asyncThunk.rejected))
}
export type UnknownAsyncThunkRejectedWithValueAction = ReturnType<
AsyncThunkRejectedActionCreator<unknown, unknown>
>
export type RejectedWithValueActionFromAsyncThunk<T extends AnyAsyncThunk> =
ActionFromMatcher<T['rejected']> &
(T extends AsyncThunk<any, any, { rejectValue: infer RejectedValue }>
? { payload: RejectedValue }
: unknown)
/**
* A higher-order function that returns a function that may be used to check
* whether an action was created by an async thunk action creator, and that
* the action is rejected with value.
*
* @public
*/
export function isRejectedWithValue(): (
action: any,
) => action is UnknownAsyncThunkRejectedAction
/**
* A higher-order function that returns a function that may be used to check
* whether an action belongs to one of the provided async thunk action creators,
* and that the action is rejected with value.
*
* @param asyncThunks (optional) The async thunk action creators to match against.
*
* @public
*/
export function isRejectedWithValue<
AsyncThunks extends [AnyAsyncThunk, ...AnyAsyncThunk[]],
>(
...asyncThunks: AsyncThunks
): (
action: any,
) => action is RejectedWithValueActionFromAsyncThunk<AsyncThunks[number]>
/**
* Tests if `action` is a rejected thunk action with value
* @public
*/
export function isRejectedWithValue(
action: any,
): action is UnknownAsyncThunkRejectedAction
export function isRejectedWithValue<
AsyncThunks extends [AnyAsyncThunk, ...AnyAsyncThunk[]],
>(...asyncThunks: AsyncThunks | [any]) {
const hasFlag = (action: any): action is any => {
return action && action.meta && action.meta.rejectedWithValue
}
if (asyncThunks.length === 0) {
return isAllOf(isRejected(...asyncThunks), hasFlag)
}
if (!isAsyncThunkArray(asyncThunks)) {
return isRejectedWithValue()(asyncThunks[0])
}
return isAllOf(isRejected(...asyncThunks), hasFlag)
}
export type UnknownAsyncThunkFulfilledAction = ReturnType<
AsyncThunkFulfilledActionCreator<unknown, unknown>
>
export type FulfilledActionFromAsyncThunk<T extends AnyAsyncThunk> =
ActionFromMatcher<T['fulfilled']>
/**
* A higher-order function that returns a function that may be used to check
* whether an action was created by an async thunk action creator, and that
* the action is fulfilled.
*
* @public
*/
export function isFulfilled(): (
action: any,
) => action is UnknownAsyncThunkFulfilledAction
/**
* A higher-order function that returns a function that may be used to check
* whether an action belongs to one of the provided async thunk action creators,
* and that the action is fulfilled.
*
* @param asyncThunks (optional) The async thunk action creators to match against.
*
* @public
*/
export function isFulfilled<
AsyncThunks extends [AnyAsyncThunk, ...AnyAsyncThunk[]],
>(
...asyncThunks: AsyncThunks
): (action: any) => action is FulfilledActionFromAsyncThunk<AsyncThunks[number]>
/**
* Tests if `action` is a fulfilled thunk action
* @public
*/
export function isFulfilled(
action: any,
): action is UnknownAsyncThunkFulfilledAction
export function isFulfilled<
AsyncThunks extends [AnyAsyncThunk, ...AnyAsyncThunk[]],
>(...asyncThunks: AsyncThunks | [any]) {
if (asyncThunks.length === 0) {
return (action: any) => hasExpectedRequestMetadata(action, ['fulfilled'])
}
if (!isAsyncThunkArray(asyncThunks)) {
return isFulfilled()(asyncThunks[0])
}
return isAnyOf(...asyncThunks.map((asyncThunk) => asyncThunk.fulfilled))
}
export type UnknownAsyncThunkAction =
| UnknownAsyncThunkPendingAction
| UnknownAsyncThunkRejectedAction
| UnknownAsyncThunkFulfilledAction
export type AnyAsyncThunk = {
pending: { match: (action: any) => action is any }
fulfilled: { match: (action: any) => action is any }
rejected: { match: (action: any) => action is any }
}
export type ActionsFromAsyncThunk<T extends AnyAsyncThunk> =
| ActionFromMatcher<T['pending']>
| ActionFromMatcher<T['fulfilled']>
| ActionFromMatcher<T['rejected']>
/**
* A higher-order function that returns a function that may be used to check
* whether an action was created by an async thunk action creator.
*
* @public
*/
export function isAsyncThunkAction(): (
action: any,
) => action is UnknownAsyncThunkAction
/**
* A higher-order function that returns a function that may be used to check
* whether an action belongs to one of the provided async thunk action creators.
*
* @param asyncThunks (optional) The async thunk action creators to match against.
*
* @public
*/
export function isAsyncThunkAction<
AsyncThunks extends [AnyAsyncThunk, ...AnyAsyncThunk[]],
>(
...asyncThunks: AsyncThunks
): (action: any) => action is ActionsFromAsyncThunk<AsyncThunks[number]>
/**
* Tests if `action` is a thunk action
* @public
*/
export function isAsyncThunkAction(
action: any,
): action is UnknownAsyncThunkAction
export function isAsyncThunkAction<
AsyncThunks extends [AnyAsyncThunk, ...AnyAsyncThunk[]],
>(...asyncThunks: AsyncThunks | [any]) {
if (asyncThunks.length === 0) {
return (action: any) =>
hasExpectedRequestMetadata(action, ['pending', 'fulfilled', 'rejected'])
}
if (!isAsyncThunkArray(asyncThunks)) {
return isAsyncThunkAction()(asyncThunks[0])
}
return isAnyOf(...asyncThunks.flatMap(asyncThunk => [asyncThunk.pending, asyncThunk.rejected, asyncThunk.fulfilled]))
}
@@ -0,0 +1,14 @@
import { warnOnce } from 'motion-utils';
import { useScroll } from '../use-scroll.mjs';
/**
* @deprecated useViewportScroll is deprecated. Convert to useScroll()
*/
function useViewportScroll() {
if (process.env.NODE_ENV !== "production") {
warnOnce(false, "useViewportScroll is deprecated. Convert to useScroll().");
}
return useScroll();
}
export { useViewportScroll };
@@ -0,0 +1,45 @@
var baseIteratee = require('./_baseIteratee'),
baseWhile = require('./_baseWhile');
/**
* Creates a slice of `array` with elements taken from the beginning. Elements
* are taken until `predicate` returns falsey. The predicate is invoked with
* three arguments: (value, index, array).
*
* @static
* @memberOf _
* @since 3.0.0
* @category Array
* @param {Array} array The array to query.
* @param {Function} [predicate=_.identity] The function invoked per iteration.
* @returns {Array} Returns the slice of `array`.
* @example
*
* var users = [
* { 'user': 'barney', 'active': false },
* { 'user': 'fred', 'active': false },
* { 'user': 'pebbles', 'active': true }
* ];
*
* _.takeWhile(users, function(o) { return !o.active; });
* // => objects for ['barney', 'fred']
*
* // The `_.matches` iteratee shorthand.
* _.takeWhile(users, { 'user': 'barney', 'active': false });
* // => objects for ['barney']
*
* // The `_.matchesProperty` iteratee shorthand.
* _.takeWhile(users, ['active', false]);
* // => objects for ['barney', 'fred']
*
* // The `_.property` iteratee shorthand.
* _.takeWhile(users, 'active');
* // => []
*/
function takeWhile(array, predicate) {
return (array && array.length)
? baseWhile(array, baseIteratee(predicate, 3))
: [];
}
module.exports = takeWhile;
@@ -0,0 +1,24 @@
# @heroui/use-scroll-position
A Quick description of the component
> This is an internal utility, not intended for public usage.
## Installation
```sh
yarn add @heroui/use-scroll-position
# or
npm i @heroui/use-scroll-position
```
## Contribution
Yes please! See the
[contributing guidelines](https://github.com/frontio-ai/heroui/blob/master/CONTRIBUTING.md)
for details.
## License
This project is licensed under the terms of the
[MIT license](https://github.com/frontio-ai/heroui/blob/master/LICENSE).
@@ -0,0 +1,154 @@
import type { TSESLint } from '@typescript-eslint/utils';
import type { CompatibleConfig, CompatibleConfigArray, CompatibleParser, CompatiblePlugin } from './compatibility-types';
import { config } from './config-helper';
export type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
export declare const parser: CompatibleParser;
export declare const plugin: CompatiblePlugin;
export declare const configs: {
/**
* Enables each the rules provided as a part of typescript-eslint. Note that many rules are not applicable in all codebases, or are meant to be configured.
* @see {@link https://typescript-eslint.io/users/configs#all}
*/
all: CompatibleConfigArray;
/**
* A minimal ruleset that sets only the required parser and plugin options needed to run typescript-eslint.
* We don't recommend using this directly; instead, extend from an earlier recommended rule.
* @see {@link https://typescript-eslint.io/users/configs#base}
*/
base: CompatibleConfig;
/**
* A utility ruleset that will disable type-aware linting and all type-aware rules available in our project.
* @see {@link https://typescript-eslint.io/users/configs#disable-type-checked}
*/
disableTypeChecked: CompatibleConfig;
/**
* This is a compatibility ruleset that:
* - disables rules from eslint:recommended which are already handled by TypeScript.
* - enables rules that make sense due to TS's typechecking / transpilation.
* @see {@link https://typescript-eslint.io/users/configs/#eslint-recommended}
*/
eslintRecommended: CompatibleConfig;
/**
* Recommended rules for code correctness that you can drop in without additional configuration.
* @see {@link https://typescript-eslint.io/users/configs#recommended}
*/
recommended: CompatibleConfigArray;
/**
* Contains all of `recommended` along with additional recommended rules that require type information.
* @see {@link https://typescript-eslint.io/users/configs#recommended-type-checked}
*/
recommendedTypeChecked: CompatibleConfigArray;
/**
* A version of `recommended` that only contains type-checked rules and disables of any corresponding core ESLint rules.
* @see {@link https://typescript-eslint.io/users/configs#recommended-type-checked-only}
*/
recommendedTypeCheckedOnly: CompatibleConfigArray;
/**
* Contains all of `recommended`, as well as additional strict rules that can also catch bugs.
* @see {@link https://typescript-eslint.io/users/configs#strict}
*/
strict: CompatibleConfigArray;
/**
* Contains all of `recommended`, `recommended-type-checked`, and `strict`, along with additional strict rules that require type information.
* @see {@link https://typescript-eslint.io/users/configs#strict-type-checked}
*/
strictTypeChecked: CompatibleConfigArray;
/**
* A version of `strict` that only contains type-checked rules and disables of any corresponding core ESLint rules.
* @see {@link https://typescript-eslint.io/users/configs#strict-type-checked-only}
*/
strictTypeCheckedOnly: CompatibleConfigArray;
/**
* Rules considered to be best practice for modern TypeScript codebases, but that do not impact program logic.
* @see {@link https://typescript-eslint.io/users/configs#stylistic}
*/
stylistic: CompatibleConfigArray;
/**
* Contains all of `stylistic`, along with additional stylistic rules that require type information.
* @see {@link https://typescript-eslint.io/users/configs#stylistic-type-checked}
*/
stylisticTypeChecked: CompatibleConfigArray;
/**
* A version of `stylistic` that only contains type-checked rules and disables of any corresponding core ESLint rules.
* @see {@link https://typescript-eslint.io/users/configs#stylistic-type-checked-only}
*/
stylisticTypeCheckedOnly: CompatibleConfigArray;
};
export type Config = TSESLint.FlatConfig.ConfigFile;
declare const _default: {
config: typeof config;
configs: {
/**
* Enables each the rules provided as a part of typescript-eslint. Note that many rules are not applicable in all codebases, or are meant to be configured.
* @see {@link https://typescript-eslint.io/users/configs#all}
*/
all: CompatibleConfigArray;
/**
* A minimal ruleset that sets only the required parser and plugin options needed to run typescript-eslint.
* We don't recommend using this directly; instead, extend from an earlier recommended rule.
* @see {@link https://typescript-eslint.io/users/configs#base}
*/
base: CompatibleConfig;
/**
* A utility ruleset that will disable type-aware linting and all type-aware rules available in our project.
* @see {@link https://typescript-eslint.io/users/configs#disable-type-checked}
*/
disableTypeChecked: CompatibleConfig;
/**
* This is a compatibility ruleset that:
* - disables rules from eslint:recommended which are already handled by TypeScript.
* - enables rules that make sense due to TS's typechecking / transpilation.
* @see {@link https://typescript-eslint.io/users/configs/#eslint-recommended}
*/
eslintRecommended: CompatibleConfig;
/**
* Recommended rules for code correctness that you can drop in without additional configuration.
* @see {@link https://typescript-eslint.io/users/configs#recommended}
*/
recommended: CompatibleConfigArray;
/**
* Contains all of `recommended` along with additional recommended rules that require type information.
* @see {@link https://typescript-eslint.io/users/configs#recommended-type-checked}
*/
recommendedTypeChecked: CompatibleConfigArray;
/**
* A version of `recommended` that only contains type-checked rules and disables of any corresponding core ESLint rules.
* @see {@link https://typescript-eslint.io/users/configs#recommended-type-checked-only}
*/
recommendedTypeCheckedOnly: CompatibleConfigArray;
/**
* Contains all of `recommended`, as well as additional strict rules that can also catch bugs.
* @see {@link https://typescript-eslint.io/users/configs#strict}
*/
strict: CompatibleConfigArray;
/**
* Contains all of `recommended`, `recommended-type-checked`, and `strict`, along with additional strict rules that require type information.
* @see {@link https://typescript-eslint.io/users/configs#strict-type-checked}
*/
strictTypeChecked: CompatibleConfigArray;
/**
* A version of `strict` that only contains type-checked rules and disables of any corresponding core ESLint rules.
* @see {@link https://typescript-eslint.io/users/configs#strict-type-checked-only}
*/
strictTypeCheckedOnly: CompatibleConfigArray;
/**
* Rules considered to be best practice for modern TypeScript codebases, but that do not impact program logic.
* @see {@link https://typescript-eslint.io/users/configs#stylistic}
*/
stylistic: CompatibleConfigArray;
/**
* Contains all of `stylistic`, along with additional stylistic rules that require type information.
* @see {@link https://typescript-eslint.io/users/configs#stylistic-type-checked}
*/
stylisticTypeChecked: CompatibleConfigArray;
/**
* A version of `stylistic` that only contains type-checked rules and disables of any corresponding core ESLint rules.
* @see {@link https://typescript-eslint.io/users/configs#stylistic-type-checked-only}
*/
stylisticTypeCheckedOnly: CompatibleConfigArray;
};
parser: CompatibleParser;
plugin: CompatiblePlugin;
};
export default _default;
export { config, type ConfigWithExtends, type InfiniteDepthConfigWithExtends, type ConfigArray, } from './config-helper';
@@ -0,0 +1,16 @@
declare const _default: {
settings: {
'import-x/extensions': readonly [".ts", ".tsx", ".cts", ".mts", ".js", ".jsx", ".cjs", ".mjs"];
'import-x/external-module-folders': string[];
'import-x/parsers': {
'@typescript-eslint/parser': (".ts" | ".tsx" | ".cts" | ".mts")[];
};
'import-x/resolver': {
typescript: true;
};
};
rules: {
'import-x/named': "off";
};
};
export default _default;
@@ -0,0 +1,33 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var docColophonRole = {
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: 'colophon [EPUB-SSV]'
},
module: 'EPUB'
}],
requireContextRole: [],
requiredContextRole: [],
requiredOwnedElements: [],
requiredProps: {},
superClass: [['roletype', 'structure', 'section']]
};
var _default = exports.default = docColophonRole;
@@ -0,0 +1 @@
{"version":3,"file":"UnmanagedClassElementMetadata.d.ts","sourceRoot":"","sources":["../../../../src/metadata/models/UnmanagedClassElementMetadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,MAAM,MAAM,6BAA6B,GACvC,wBAAwB,CAAC,wBAAwB,CAAC,SAAS,CAAC,CAAC"}
@@ -0,0 +1,36 @@
{
"name": "simple-swizzle",
"description": "Simply swizzle your arguments",
"version": "0.2.4",
"author": "Qix (http://github.com/qix-)",
"keywords": [
"argument",
"arguments",
"swizzle",
"swizzling",
"parameter",
"parameters",
"mixed",
"array"
],
"license": "MIT",
"scripts": {
"pretest": "xo",
"test": "mocha --compilers coffee:coffee-script/register"
},
"files": [
"index.js"
],
"repository": "qix-/node-simple-swizzle",
"devDependencies": {
"coffee-script": "^1.9.3",
"coveralls": "^2.11.2",
"istanbul": "^0.3.17",
"mocha": "^2.2.5",
"should": "^7.0.1",
"xo": "^0.7.1"
},
"dependencies": {
"is-arrayish": "^0.3.1"
}
}
@@ -0,0 +1,74 @@
'use strict'
const getDocsUrl = require('./lib/get-docs-url')
const {
isPromiseConstructorWithInlineExecutor,
} = require('./lib/is-promise-constructor')
module.exports = {
meta: {
type: 'suggestion',
docs: {
description:
'Enforce consistent param names and ordering when creating new promises.',
url: getDocsUrl('param-names'),
},
schema: [
{
type: 'object',
properties: {
resolvePattern: { type: 'string' },
rejectPattern: { type: 'string' },
},
additionalProperties: false,
},
],
messages: {
resolveParamNames:
'Promise constructor parameters must be named to match "{{ resolvePattern }}"',
rejectParamNames:
'Promise constructor parameters must be named to match "{{ rejectPattern }}"',
},
},
create(context) {
const options = context.options[0] || {}
const resolvePattern = new RegExp(
options.resolvePattern || '^_?resolve$',
'u',
)
const rejectPattern = new RegExp(options.rejectPattern || '^_?reject$', 'u')
return {
NewExpression(node) {
if (isPromiseConstructorWithInlineExecutor(node)) {
const params = node.arguments[0].params
if (!params || !params.length) {
return
}
const resolveParamName = params[0] && params[0].name
if (resolveParamName && !resolvePattern.test(resolveParamName)) {
context.report({
node: params[0],
messageId: 'resolveParamNames',
data: {
resolvePattern: resolvePattern.source,
},
})
}
const rejectParamName = params[1] && params[1].name
if (rejectParamName && !rejectPattern.test(rejectParamName)) {
context.report({
node: params[1],
messageId: 'rejectParamNames',
data: {
rejectPattern: rejectPattern.source,
},
})
}
}
},
}
},
}
@@ -0,0 +1,57 @@
'use strict';
var $TypeError = require('es-errors/type');
var IsDetachedBuffer = require('./IsDetachedBuffer');
var IsFixedLengthArrayBuffer = require('./IsFixedLengthArrayBuffer');
var TypedArrayElementSize = require('./TypedArrayElementSize');
var isTypedArrayWithBufferWitnessRecord = require('../helpers/records/typed-array-with-buffer-witness-record');
var typedArrayBuffer = require('typed-array-buffer');
var typedArrayByteOffset = require('typed-array-byte-offset');
var typedArrayLength = require('typed-array-length');
// https://262.ecma-international.org/15.0/#sec-istypedarrayoutofbounds
module.exports = function IsTypedArrayOutOfBounds(taRecord) {
if (!isTypedArrayWithBufferWitnessRecord(taRecord)) {
throw new $TypeError('Assertion failed: `taRecord` must be a TypedArray With Buffer Witness Record');
}
var O = taRecord['[[Object]]']; // step 1
var bufferByteLength = taRecord['[[CachedBufferByteLength]]']; // step 2
if (IsDetachedBuffer(typedArrayBuffer(O)) && bufferByteLength !== 'DETACHED') {
throw new $TypeError('Assertion failed: typed array is detached only if the byte length is ~DETACHED~'); // step 3
}
if (bufferByteLength === 'DETACHED') {
return true; // step 4
}
var byteOffsetStart = typedArrayByteOffset(O); // step 5
var isFixed = IsFixedLengthArrayBuffer(typedArrayBuffer(O));
var byteOffsetEnd;
var length = isFixed ? typedArrayLength(O) : 'AUTO';
// TODO: probably use package for array length
// seems to apply when TA is backed by a resizable/growable AB
if (length === 'AUTO') { // step 6
byteOffsetEnd = bufferByteLength; // step 6.a
} else {
var elementSize = TypedArrayElementSize(O); // step 7.a
byteOffsetEnd = byteOffsetStart + (length * elementSize); // step 7.b
}
if (byteOffsetStart > bufferByteLength || byteOffsetEnd > bufferByteLength) {
return true; // step 8
}
// 9. NOTE: 0-length TypedArrays are not considered out-of-bounds.
return false; // step 10
};
@@ -0,0 +1 @@
{"mappings":";;;;;;;AAAA;;;;;;;;;;CAUC,GAeM,MAAM,4CAAW,IAAI;AAE5B,SAAS,mCAAa,GAAQ;IAC5B,IAAI,OAAO,QAAQ,UACjB,OAAO,IAAI,OAAO,CAAC,QAAQ;IAG7B,OAAO,KAAK;AACd;AAEO,SAAS,0CAAa,KAAmB,EAAE,OAAY;IAC5D,IAAI,OAAO,0CAAS,GAAG,CAAC;IAExB,IAAI,CAAC,MACH,MAAM,IAAI,MAAM;IAGlB,OAAO,GAAG,KAAK,EAAE,CAAC,QAAQ,EAAE,mCAAa,UAAU;AACrD","sources":["packages/@react-aria/listbox/src/utils.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\nimport {Key} from '@react-types/shared';\nimport {ListState} from '@react-stately/list';\n\ninterface ListData {\n id?: string,\n shouldSelectOnPressUp?: boolean,\n shouldFocusOnHover?: boolean,\n shouldUseVirtualFocus?: boolean,\n isVirtualized?: boolean,\n onAction?: (key: Key) => void,\n linkBehavior?: 'action' | 'selection' | 'override'\n}\n\nexport const listData = new WeakMap<ListState<unknown>, ListData>();\n\nfunction normalizeKey(key: Key): string {\n if (typeof key === 'string') {\n return key.replace(/\\s*/g, '');\n }\n\n return '' + key;\n}\n\nexport function getItemId<T>(state: ListState<T>, itemKey: Key): string {\n let data = listData.get(state);\n\n if (!data) {\n throw new Error('Unknown list');\n }\n\n return `${data.id}-option-${normalizeKey(itemKey)}`;\n}\n"],"names":[],"version":3,"file":"utils.main.js.map"}
@@ -0,0 +1,77 @@
import type { CreateSelectorFunction, Selector } from 'reselect'
import { createDraftSafeSelector } from '../createDraftSafeSelector'
import type { EntityId, EntitySelectors, EntityState } from './models'
type AnyFunction = (...args: any) => any
type AnyCreateSelectorFunction = CreateSelectorFunction<
<F extends AnyFunction>(f: F) => F,
<F extends AnyFunction>(f: F) => F
>
export type GetSelectorsOptions = {
createSelector?: AnyCreateSelectorFunction
}
export function createSelectorsFactory<T, Id extends EntityId>() {
function getSelectors(
selectState?: undefined,
options?: GetSelectorsOptions,
): EntitySelectors<T, EntityState<T, Id>, Id>
function getSelectors<V>(
selectState: (state: V) => EntityState<T, Id>,
options?: GetSelectorsOptions,
): EntitySelectors<T, V, Id>
function getSelectors<V>(
selectState?: (state: V) => EntityState<T, Id>,
options: GetSelectorsOptions = {},
): EntitySelectors<T, any, Id> {
const {
createSelector = createDraftSafeSelector as AnyCreateSelectorFunction,
} = options
const selectIds = (state: EntityState<T, Id>) => state.ids
const selectEntities = (state: EntityState<T, Id>) => state.entities
const selectAll = createSelector(
selectIds,
selectEntities,
(ids, entities): T[] => ids.map((id) => entities[id]!),
)
const selectId = (_: unknown, id: Id) => id
const selectById = (entities: Record<Id, T>, id: Id) => entities[id]
const selectTotal = createSelector(selectIds, (ids) => ids.length)
if (!selectState) {
return {
selectIds,
selectEntities,
selectAll,
selectTotal,
selectById: createSelector(selectEntities, selectId, selectById),
}
}
const selectGlobalizedEntities = createSelector(
selectState as Selector<V, EntityState<T, Id>>,
selectEntities,
)
return {
selectIds: createSelector(selectState, selectIds),
selectEntities: selectGlobalizedEntities,
selectAll: createSelector(selectState, selectAll),
selectTotal: createSelector(selectState, selectTotal),
selectById: createSelector(
selectGlobalizedEntities,
selectId,
selectById,
),
}
}
return { getSelectors }
}
@@ -0,0 +1,4 @@
'use strict';
/** @type {import('./syntax')} */
module.exports = SyntaxError;
@@ -0,0 +1,62 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "default", {
enumerable: true,
get: function() {
return processTailwindFeatures;
}
});
const _normalizeTailwindDirectives = /*#__PURE__*/ _interop_require_default(require("./lib/normalizeTailwindDirectives"));
const _expandTailwindAtRules = /*#__PURE__*/ _interop_require_default(require("./lib/expandTailwindAtRules"));
const _expandApplyAtRules = /*#__PURE__*/ _interop_require_default(require("./lib/expandApplyAtRules"));
const _evaluateTailwindFunctions = /*#__PURE__*/ _interop_require_default(require("./lib/evaluateTailwindFunctions"));
const _substituteScreenAtRules = /*#__PURE__*/ _interop_require_default(require("./lib/substituteScreenAtRules"));
const _resolveDefaultsAtRules = /*#__PURE__*/ _interop_require_default(require("./lib/resolveDefaultsAtRules"));
const _collapseAdjacentRules = /*#__PURE__*/ _interop_require_default(require("./lib/collapseAdjacentRules"));
const _collapseDuplicateDeclarations = /*#__PURE__*/ _interop_require_default(require("./lib/collapseDuplicateDeclarations"));
const _partitionApplyAtRules = /*#__PURE__*/ _interop_require_default(require("./lib/partitionApplyAtRules"));
const _setupContextUtils = require("./lib/setupContextUtils");
const _featureFlags = require("./featureFlags");
function _interop_require_default(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
function processTailwindFeatures(setupContext) {
return async function(root, result) {
let { tailwindDirectives , applyDirectives } = (0, _normalizeTailwindDirectives.default)(root);
// Partition apply rules that are found in the css
// itself.
(0, _partitionApplyAtRules.default)()(root, result);
let context = setupContext({
tailwindDirectives,
applyDirectives,
registerDependency (dependency) {
result.messages.push({
plugin: "tailwindcss",
parent: result.opts.from,
...dependency
});
},
createContext (tailwindConfig, changedContent) {
return (0, _setupContextUtils.createContext)(tailwindConfig, changedContent, root);
}
})(root, result);
if (context.tailwindConfig.separator === "-") {
throw new Error("The '-' character cannot be used as a custom separator in JIT mode due to parsing ambiguity. Please use another character like '_' instead.");
}
(0, _featureFlags.issueFlagNotices)(context.tailwindConfig);
await (0, _expandTailwindAtRules.default)(context)(root, result);
// Partition apply rules that are generated by
// addComponents, addUtilities and so on.
(0, _partitionApplyAtRules.default)()(root, result);
(0, _expandApplyAtRules.default)(context)(root, result);
(0, _evaluateTailwindFunctions.default)(context)(root, result);
(0, _substituteScreenAtRules.default)(context)(root, result);
(0, _resolveDefaultsAtRules.default)(context)(root, result);
(0, _collapseAdjacentRules.default)(context)(root, result);
(0, _collapseDuplicateDeclarations.default)(context)(root, result);
};
}
@@ -0,0 +1,250 @@
import { expect, expectTypeOf, test } from "vitest";
import * as z from "zod/v4";
test("transform ctx.addIssue with parse", () => {
const strs = ["foo", "bar"];
const schema = z.string().transform((data, ctx) => {
const i = strs.indexOf(data);
if (i === -1) {
ctx.addIssue({
input: data,
code: "custom",
message: `${data} is not one of our allowed strings`,
});
}
return data.length;
});
const result = schema.safeParse("asdf");
expect(result.success).toEqual(false);
expect(result.error!).toMatchInlineSnapshot(`
[ZodError: [
{
"code": "custom",
"message": "asdf is not one of our allowed strings",
"path": []
}
]]
`);
});
test("transform ctx.addIssue with parseAsync", async () => {
const strs = ["foo", "bar"];
const result = await z
.string()
.transform(async (data, ctx) => {
const i = strs.indexOf(data);
if (i === -1) {
ctx.addIssue({
input: data,
code: "custom",
message: `${data} is not one of our allowed strings`,
});
}
return data.length;
})
.safeParseAsync("asdf");
expect(result).toMatchInlineSnapshot(`
{
"error": [ZodError: [
{
"code": "custom",
"message": "asdf is not one of our allowed strings",
"path": []
}
]],
"success": false,
}
`);
});
test("z.NEVER in transform", () => {
const foo = z
.number()
.optional()
.transform((val, ctx) => {
if (!val) {
ctx.addIssue({
input: val,
code: z.ZodIssueCode.custom,
message: "bad",
});
return z.NEVER;
}
return val;
});
type foo = z.infer<typeof foo>;
expectTypeOf<foo>().toEqualTypeOf<number>();
const arg = foo.safeParse(undefined);
if (!arg.success) {
expect(arg.error.issues[0].message).toEqual("bad");
}
});
test("basic transformations", () => {
const r1 = z
.string()
.transform((data) => data.length)
.parse("asdf");
expect(r1).toEqual(4);
});
test("coercion", () => {
const numToString = z.number().transform((n) => String(n));
const data = z
.object({
id: numToString,
})
.parse({ id: 5 });
expect(data).toEqual({ id: "5" });
});
test("async coercion", async () => {
const numToString = z.number().transform(async (n) => String(n));
const data = await z
.object({
id: numToString,
})
.parseAsync({ id: 5 });
expect(data).toEqual({ id: "5" });
});
test("sync coercion async error", async () => {
const asyncNumberToString = z.number().transform(async (n) => String(n));
expect(() =>
z
.object({
id: asyncNumberToString,
})
.parse({ id: 5 })
).toThrow();
// expect(data).toEqual({ id: '5' });
});
test("default", () => {
const data = z.string().default("asdf").parse(undefined); // => "asdf"
expect(data).toEqual("asdf");
});
test("dynamic default", () => {
const data = z
.string()
.default(() => "string")
.parse(undefined); // => "asdf"
expect(data).toEqual("string");
});
test("default when property is null or undefined", () => {
const data = z
.object({
foo: z.boolean().nullable().default(true),
bar: z.boolean().default(true),
})
.parse({ foo: null });
expect(data).toEqual({ foo: null, bar: true });
});
test("default with falsy values", () => {
const schema = z.object({
emptyStr: z.string().default("def"),
zero: z.number().default(5),
falseBoolean: z.boolean().default(true),
});
const input = { emptyStr: "", zero: 0, falseBoolean: true };
const output = schema.parse(input);
// defaults are not supposed to be used
expect(output).toEqual(input);
});
test("object typing", () => {
const stringToNumber = z.string().transform((arg) => Number.parseFloat(arg));
const t1 = z.object({
stringToNumber,
});
type t1 = z.input<typeof t1>;
type t2 = z.output<typeof t1>;
expectTypeOf<t1>().toEqualTypeOf<{ stringToNumber: string }>();
expectTypeOf<t2>().toEqualTypeOf<{ stringToNumber: number }>();
});
test("transform method overloads", () => {
const t1 = z.string().transform((val) => val.toUpperCase());
expect(t1.parse("asdf")).toEqual("ASDF");
const t2 = z.string().transform((val) => val.length);
expect(t2.parse("asdf")).toEqual(4);
});
test("multiple transformers", () => {
const stringToNumber = z.string().transform((arg) => Number.parseFloat(arg));
const doubler = stringToNumber.transform((val) => {
return val * 2;
});
expect(doubler.parse("5")).toEqual(10);
});
test("short circuit on dirty", () => {
const schema = z
.string()
.refine(() => false)
.transform((val) => val.toUpperCase());
const result = schema.safeParse("asdf");
expect(result.success).toEqual(false);
expect(result.error).toMatchInlineSnapshot(`
[ZodError: [
{
"code": "custom",
"path": [],
"message": "Invalid input"
}
]]
`);
const result2 = schema.safeParse(1234);
expect(result2.success).toEqual(false);
if (!result2.success) {
expect(result2.error.issues[0].code).toEqual(z.ZodIssueCode.invalid_type);
}
});
test("async short circuit on dirty", async () => {
const schema = z
.string()
.refine(() => false)
.transform((val) => val.toUpperCase());
const result = await schema.spa("asdf");
expect(result.success).toEqual(false);
expect(result.error).toMatchInlineSnapshot(`
[ZodError: [
{
"code": "custom",
"path": [],
"message": "Invalid input"
}
]]
`);
const result2 = await schema.spa(1234);
expect(result2.success).toEqual(false);
expect(result2.error).toMatchInlineSnapshot(`
[ZodError: [
{
"expected": "string",
"code": "invalid_type",
"path": [],
"message": "Invalid input: expected string, received number"
}
]]
`);
});
@@ -0,0 +1,46 @@
import arrayEach from './_arrayEach.js';
import arrayIncludes from './_arrayIncludes.js';
/** Used to compose bitmasks for function metadata. */
var WRAP_BIND_FLAG = 1,
WRAP_BIND_KEY_FLAG = 2,
WRAP_CURRY_FLAG = 8,
WRAP_CURRY_RIGHT_FLAG = 16,
WRAP_PARTIAL_FLAG = 32,
WRAP_PARTIAL_RIGHT_FLAG = 64,
WRAP_ARY_FLAG = 128,
WRAP_REARG_FLAG = 256,
WRAP_FLIP_FLAG = 512;
/** Used to associate wrap methods with their bit flags. */
var wrapFlags = [
['ary', WRAP_ARY_FLAG],
['bind', WRAP_BIND_FLAG],
['bindKey', WRAP_BIND_KEY_FLAG],
['curry', WRAP_CURRY_FLAG],
['curryRight', WRAP_CURRY_RIGHT_FLAG],
['flip', WRAP_FLIP_FLAG],
['partial', WRAP_PARTIAL_FLAG],
['partialRight', WRAP_PARTIAL_RIGHT_FLAG],
['rearg', WRAP_REARG_FLAG]
];
/**
* Updates wrapper `details` based on `bitmask` flags.
*
* @private
* @returns {Array} details The details to modify.
* @param {number} bitmask The bitmask flags. See `createWrap` for more details.
* @returns {Array} Returns `details`.
*/
function updateWrapDetails(details, bitmask) {
arrayEach(wrapFlags, function(pair) {
var value = '_.' + pair[0];
if ((bitmask & pair[1]) && !arrayIncludes(details, value)) {
details.push(value);
}
});
return details.sort();
}
export default updateWrapDetails;
@@ -0,0 +1,126 @@
import Decimal from 'decimal.js';
import { invariant } from '../utils';
import { ComputeExponent } from './ComputeExponent';
import formatToParts from './format_to_parts';
import { FormatNumericToString } from './FormatNumericToString';
/**
* https://tc39.es/ecma402/#sec-partitionnumberpattern
*/
export function PartitionNumberPattern(internalSlots, _x) {
var _a;
var x = _x;
// IMPL: We need to record the magnitude of the number
var magnitude = 0;
// 2. Let dataLocaleData be internalSlots.[[dataLocaleData]].
var pl = internalSlots.pl, dataLocaleData = internalSlots.dataLocaleData, numberingSystem = internalSlots.numberingSystem;
// 3. Let symbols be dataLocaleData.[[numbers]].[[symbols]][internalSlots.[[numberingSystem]]].
var symbols = dataLocaleData.numbers.symbols[numberingSystem] ||
dataLocaleData.numbers.symbols[dataLocaleData.numbers.nu[0]];
// 4. Let exponent be 0.
var exponent = 0;
// 5. Let n be ! ToString(x).
var n;
// 6. If x is NaN, then
if (x.isNaN()) {
// 6.a. Let n be symbols.[[nan]].
n = symbols.nan;
}
else if (!x.isFinite()) {
// 7. Else if x is a non-finite Number, then
// 7.a. Let n be symbols.[[infinity]].
n = symbols.infinity;
}
else {
// 8. Else,
if (!x.isZero()) {
// 8.a. If x < 0, let x be -x.
invariant(x.isFinite(), 'Input must be a mathematical value');
// 8.b. If internalSlots.[[style]] is "percent", let x be 100 × x.
if (internalSlots.style == 'percent') {
x = x.times(100);
}
// 8.c. Let exponent be ComputeExponent(numberFormat, x).
;
_a = ComputeExponent(internalSlots, x), exponent = _a[0],
// IMPL: We need to record the magnitude of the number
magnitude = _a[1];
// 8.d. Let x be x × 10^(-exponent).
x = x.times(Decimal.pow(10, -exponent));
}
// 8.e. Let formatNumberResult be FormatNumericToString(internalSlots, x).
var formatNumberResult = FormatNumericToString(internalSlots, x);
// 8.f. Let n be formatNumberResult.[[formattedString]].
n = formatNumberResult.formattedString;
// 8.g. Let x be formatNumberResult.[[roundedNumber]].
x = formatNumberResult.roundedNumber;
}
// 9. Let sign be 0.
var sign;
// 10. If x is negative, then
var signDisplay = internalSlots.signDisplay;
switch (signDisplay) {
case 'never':
// 10.a. If internalSlots.[[signDisplay]] is "never", then
// 10.a.i. Let sign be 0.
sign = 0;
break;
case 'auto':
// 10.b. Else if internalSlots.[[signDisplay]] is "auto", then
if (x.isPositive() || x.isNaN()) {
// 10.b.i. If x is positive or x is NaN, let sign be 0.
sign = 0;
}
else {
// 10.b.ii. Else, let sign be -1.
sign = -1;
}
break;
case 'always':
// 10.c. Else if internalSlots.[[signDisplay]] is "always", then
if (x.isPositive() || x.isNaN()) {
// 10.c.i. If x is positive or x is NaN, let sign be 1.
sign = 1;
}
else {
// 10.c.ii. Else, let sign be -1.
sign = -1;
}
break;
case 'exceptZero':
// 10.d. Else if internalSlots.[[signDisplay]] is "exceptZero", then
if (x.isZero()) {
// 10.d.i. If x is 0, let sign be 0.
sign = 0;
}
else if (x.isNegative()) {
// 10.d.ii. Else if x is negative, let sign be -1.
sign = -1;
}
else {
// 10.d.iii. Else, let sign be 1.
sign = 1;
}
break;
default:
// 10.e. Else,
invariant(signDisplay === 'negative', 'signDisplay must be "negative"');
if (x.isNegative() && !x.isZero()) {
// 10.e.i. If x is negative and x is not 0, let sign be -1.
sign = -1;
}
else {
// 10.e.ii. Else, let sign be 0.
sign = 0;
}
break;
}
// 11. Return ? FormatNumberToParts(numberFormat, x, n, exponent, sign).
return formatToParts({
roundedNumber: x,
formattedString: n,
exponent: exponent,
// IMPL: We're returning this for our implementation of formatToParts
magnitude: magnitude,
sign: sign,
}, internalSlots.dataLocaleData, pl, internalSlots);
}
@@ -0,0 +1 @@
module.exports={C:{_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 3.5 3.6"},D:{"109":0.47388,"125":4.26488,"126":5.21263,"127":4.73875,"138":0.47388,"141":9.95138,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 128 129 130 131 132 133 134 135 136 137 139 140 142 143 144 145"},F:{_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"111":0.47388,"141":10.89913,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 142"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 15.6 16.0 16.1 16.2 16.3 16.4 16.5 17.0 17.1 17.2 17.3 17.4 17.5 17.6 18.0 18.1 18.2 18.3 18.4 18.5-18.6 26.1 26.2","16.6":0.47388,"26.0":0.47388},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00207,"5.0-5.1":0,"6.0-6.1":0.00828,"7.0-7.1":0.00621,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01862,"10.0-10.2":0.00207,"10.3":0.03518,"11.0-11.2":0.52142,"11.3-11.4":0.01241,"12.0-12.1":0.00414,"12.2-12.5":0.10139,"13.0-13.1":0,"13.2":0.01035,"13.3":0.00414,"13.4-13.7":0.01655,"14.0-14.4":0.03518,"14.5-14.8":0.03724,"15.0-15.1":0.03518,"15.2-15.3":0.0269,"15.4":0.03104,"15.5":0.03518,"15.6-15.8":0.45935,"16.0":0.06207,"16.1":0.11587,"16.2":0.06,"16.3":0.10759,"16.4":0.0269,"16.5":0.04759,"16.6-16.7":0.61453,"17.0":0.04345,"17.1":0.06621,"17.2":0.04759,"17.3":0.07035,"17.4":0.12415,"17.5":0.21312,"17.6-17.7":0.53797,"18.0":0.12208,"18.1":0.25243,"18.2":0.13656,"18.3":0.43865,"18.4":0.22553,"18.5-18.6":11.5002,"26.0":1.42149,"26.1":0.05173},P:{"28":5.54995,_:"4 20 21 22 23 24 25 26 27 29 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{_:"0"},Q:{_:"14.9"},O:{_:"0"},H:{"0":0},L:{"0":35.30076}};
@@ -0,0 +1,33 @@
{
"name": "mkdirp",
"description": "Recursively mkdir, like `mkdir -p`",
"version": "0.5.6",
"publishConfig": {
"tag": "legacy"
},
"author": "James Halliday <mail@substack.net> (http://substack.net)",
"main": "index.js",
"keywords": [
"mkdir",
"directory"
],
"repository": {
"type": "git",
"url": "https://github.com/substack/node-mkdirp.git"
},
"scripts": {
"test": "tap test/*.js"
},
"dependencies": {
"minimist": "^1.2.6"
},
"devDependencies": {
"tap": "^16.0.1"
},
"bin": "bin/cmd.js",
"license": "MIT",
"files": [
"bin",
"index.js"
]
}
@@ -0,0 +1,41 @@
import {useLocale as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7} from "./context.module.js";
import {LocalizedStringDictionary as $6ksNp$LocalizedStringDictionary, LocalizedStringFormatter as $6ksNp$LocalizedStringFormatter} from "@internationalized/string";
import {useMemo as $6ksNp$useMemo} from "react";
/*
* Copyright 2022 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.
*/
const $fca6afa0e843324b$var$cache = new WeakMap();
function $fca6afa0e843324b$var$getCachedDictionary(strings) {
let dictionary = $fca6afa0e843324b$var$cache.get(strings);
if (!dictionary) {
dictionary = new (0, $6ksNp$LocalizedStringDictionary)(strings);
$fca6afa0e843324b$var$cache.set(strings, dictionary);
}
return dictionary;
}
function $fca6afa0e843324b$export$87b761675e8eaa10(strings, packageName) {
return packageName && (0, $6ksNp$LocalizedStringDictionary).getGlobalDictionaryForPackage(packageName) || $fca6afa0e843324b$var$getCachedDictionary(strings);
}
function $fca6afa0e843324b$export$f12b703ca79dfbb1(strings, packageName) {
let { locale: locale } = (0, $18f2051aff69b9bf$export$43bb16f9c6d9e3f7)();
let dictionary = $fca6afa0e843324b$export$87b761675e8eaa10(strings, packageName);
return (0, $6ksNp$useMemo)(()=>new (0, $6ksNp$LocalizedStringFormatter)(locale, dictionary), [
locale,
dictionary
]);
}
export {$fca6afa0e843324b$export$87b761675e8eaa10 as useLocalizedStringDictionary, $fca6afa0e843324b$export$f12b703ca79dfbb1 as useLocalizedStringFormatter};
//# sourceMappingURL=useLocalizedStringFormatter.module.js.map
@@ -0,0 +1,5 @@
var convert = require('./convert'),
func = convert('map', require('../map'));
func.placeholder = require('./placeholder');
module.exports = func;
@@ -0,0 +1,15 @@
var copyArray = require('./_copyArray'),
shuffleSelf = require('./_shuffleSelf');
/**
* A specialized version of `_.shuffle` for arrays.
*
* @private
* @param {Array} array The array to shuffle.
* @returns {Array} Returns the new shuffled array.
*/
function arrayShuffle(array) {
return shuffleSelf(copyArray(array));
}
module.exports = arrayShuffle;
@@ -0,0 +1,113 @@
{
"name": "typed-array-byte-length",
"version": "1.0.3",
"description": "Robustly get the byte length of a Typed Array",
"main": "index.js",
"exports": {
".": "./index.js",
"./package.json": "./package.json"
},
"types": "./index.d.ts",
"sideEffects": false,
"scripts": {
"prepack": "npmignore --auto --commentLines=autogenerated",
"prepublishOnly": "safe-publish-latest",
"prepublish": "not-in-publish || npm run prepublishOnly",
"pretest": "npm run lint",
"prelint": "evalmd README.md",
"lint": "eslint --ext=js,mjs .",
"postlint": "tsc -p . && attw -P",
"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/inspect-js/typed-array-byte-length.git"
},
"keywords": [
"typed",
"array",
"byteLength",
"byte",
"length",
"robust",
"es",
"Int8Array",
"Uint8Array",
"Uint8ClampedArray",
"Int16Array",
"Uint16Array",
"Int32Array",
"Uint32Array",
"Float32Array",
"Float64Array",
"BigInt64Array",
"BigUint64Array"
],
"author": "Jordan Harband <ljharb@gmail.com>",
"funding": {
"url": "https://github.com/sponsors/ljharb"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/inspect-js/typed-array-byte-length/issues"
},
"homepage": "https://github.com/inspect-js/typed-array-byte-length#readme",
"dependencies": {
"call-bind": "^1.0.8",
"for-each": "^0.3.3",
"gopd": "^1.2.0",
"has-proto": "^1.2.0",
"is-typed-array": "^1.1.14"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.17.1",
"@ljharb/eslint-config": "^21.1.1",
"@ljharb/tsconfig": "^0.2.2",
"@types/call-bind": "^1.0.5",
"@types/for-each": "^0.3.3",
"@types/gopd": "^1.0.3",
"@types/is-callable": "^1.1.2",
"@types/make-arrow-function": "^1.2.2",
"@types/make-generator-function": "^2.0.3",
"@types/object-inspect": "^1.13.0",
"@types/tape": "^5.7.0",
"auto-changelog": "^2.5.0",
"available-typed-arrays": "^1.0.7",
"encoding": "^0.1.13",
"eslint": "=8.8.0",
"evalmd": "^0.0.19",
"in-publish": "^2.0.1",
"is-callable": "^1.2.7",
"make-arrow-function": "^1.2.0",
"make-generator-function": "^2.0.0",
"npmignore": "^0.3.1",
"nyc": "^10.3.2",
"object-inspect": "^1.13.3",
"safe-publish-latest": "^2.0.0",
"tape": "^5.9.0",
"typescript": "next"
},
"engines": {
"node": ">= 0.4"
},
"auto-changelog": {
"output": "CHANGELOG.md",
"template": "keepachangelog",
"unreleased": false,
"commitLimit": false,
"backfillLimit": false,
"hideCredit": true
},
"testling": {
"files": "test/index.js"
},
"publishConfig": {
"ignore": [
".github/workflows"
]
}
}
Loaded 100 of 35554 files, more files were not shown because too many files have changed in this diff. Show more