docs: 仓库链接指向本镜像仓库
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s

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,11 @@
import { a as absFloor } from "./absFloor-BlD_nfEw.mjs";
import { m as monthDiff } from "./monthDiff-BZ0YZrA0.mjs";
import parse from "./parse.mjs";
function diffInYears(date, input, asFloat) {
const parsed = parse(input);
const output = monthDiff(date, parsed) / 12;
return asFloat ? output : absFloor(output);
}
export {
diffInYears as default
};
@@ -0,0 +1,7 @@
import * as react_jsx_runtime from 'react/jsx-runtime';
import { IconSvgProps } from './types.mjs';
import 'react';
declare const ArrowLeftIcon: ({ strokeWidth, ...otherProps }: IconSvgProps) => react_jsx_runtime.JSX.Element;
export { ArrowLeftIcon };
@@ -0,0 +1,34 @@
import { KeyAgreeRecipientInfo } from "./key_agree_recipient_info";
import { KeyTransRecipientInfo } from "./key_trans_recipient_info";
import { KEKRecipientInfo } from "./kek_recipient_info";
import { PasswordRecipientInfo } from "./password_recipient_info";
/**
* ```asn
* OtherRecipientInfo ::= SEQUENCE {
* oriType OBJECT IDENTIFIER,
* oriValue ANY DEFINED BY oriType }
* ```
*/
export declare class OtherRecipientInfo {
oriType: string;
oriValue: ArrayBuffer;
constructor(params?: Partial<OtherRecipientInfo>);
}
/**
* ```asn
* RecipientInfo ::= CHOICE {
* ktri KeyTransRecipientInfo,
* kari [1] KeyAgreeRecipientInfo,
* kekri [2] KEKRecipientInfo,
* pwri [3] PasswordRecipientInfo,
* ori [4] OtherRecipientInfo }
* ```
*/
export declare class RecipientInfo {
ktri?: KeyTransRecipientInfo;
kari?: KeyAgreeRecipientInfo;
kekri?: KEKRecipientInfo;
pwri?: PasswordRecipientInfo;
ori?: OtherRecipientInfo;
constructor(params?: Partial<RecipientInfo>);
}
@@ -0,0 +1 @@
{"name":"@heroui/system","version":"2.4.23","requiresBuild":false,"files":{"dist/hooks/index.js":{"checkedAt":1794532104138,"integrity":"sha512-XAl4egCI3ErE/jamhllhi4KAX/0pTvoDR0XAyw8sn84KqXR+ocZbv4eFW1InJSUwSjpviekx4WrBNpBkfCkY1A==","mode":420,"size":2580},"dist/index.js":{"checkedAt":1794532104138,"integrity":"sha512-7Sj18SC1QPHpEAj6DHMlR0aTx4/JcswwLS+Q2FxCxHLTFBQ2BYb4sATx4gMqBfeIQDC68IWCnt4kCR1SX70+wA==","mode":420,"size":5256},"dist/provider-context.js":{"checkedAt":1794532104138,"integrity":"sha512-QpqiXtR+L2ptnVC9NxxxbkoOmkJclLcdjlG7im5/lBr/TDUy0kmQn0iPlgMQ/AQIjDdIHC3acn/8xkN7njBr3w==","mode":420,"size":1382},"dist/provider.js":{"checkedAt":1794532104138,"integrity":"sha512-x98I2CkZLyrJ3tMJz1MNUzoxtyc3AQqih8KDfd4qDzLOpleTG/jvm284MTs/HPdbNBvedmHH2rQCCrGdTLRI9Q==","mode":420,"size":3295},"dist/types.js":{"checkedAt":1794532104138,"integrity":"sha512-uW1K0VWf08WQyXaHw0cR4bMjGe+Uc8WLqRAN6OE4hGMkk37BVqQ5HArNEFOG/9I83ycHpL0pl+QAc/w7QWhg6g==","mode":420,"size":1379},"dist/hooks/use-label-placement.js":{"checkedAt":1794532104138,"integrity":"sha512-O2VbeyVg9JhX6XhJr22JUHtID246p4Pgg9gcgMXQBRGUHgxT7nQQFQY5qbiGy7HavWoxb4IFGGP2h6q4XOsR2Q==","mode":420,"size":2599},"package.json":{"checkedAt":1794532104138,"integrity":"sha512-KLfcwi8AzzvVOJ8o5tyI6eHA6/9Xy8QyPEL4QryZZ1kdmUenK/PaHk0qjyj/QxttfyYyCHthsM9m736/cuHEAA==","mode":420,"size":1587},"README.md":{"checkedAt":1794532104139,"integrity":"sha512-ZnEn5OkVCIUqqcek+JBXunXvQQKG1hGgb+ygHJu+5prAfJFPoKyUA66c3RBW/b4u7RBq2sAMAhkrF5q03ZGswg==","mode":420,"size":569},"dist/chunk-3KFOFPK7.mjs":{"checkedAt":1794532104139,"integrity":"sha512-vCPbd351/IndrSnrgTI6WjG54LIFQYo65unbHEc6rPDVlCZW+Jq4BQNMvzKqbuv7pJXEKBdyU35tUvB9vBJEyg==","mode":420,"size":1871},"dist/chunk-FPAGUVYU.mjs":{"checkedAt":1794532104139,"integrity":"sha512-0AXqMwZz3DpPrwKF1N/WdGiy+GOwQ3Fmq2Ibjn7UpX0P0Tam4dLD7M398okl2QfIVZsBGzsEGoAxNcfkgHKZzw==","mode":420,"size":1247},"dist/chunk-GR3VEF4M.mjs":{"checkedAt":1794532104139,"integrity":"sha512-Azoe1jHHrN2TpabriCoWboH1l1Av6LEY4/ETJACsjHRcZb8oajjSapVOGP/eoJYyeDHdsa9dl80+gtO/Oc8Q+A==","mode":420,"size":14},"dist/chunk-Q3W45BN5.mjs":{"checkedAt":1794532104139,"integrity":"sha512-j9ci6WvI5cUj0UKfwxrRPYqlpnSPDDzS5lSjI1KjdUnjNNpmaVO8kg6HJe8whmyriJ+dhWoywDADuzWRenYxxw==","mode":420,"size":255},"dist/hooks/index.mjs":{"checkedAt":1794532104139,"integrity":"sha512-DAdO7HvMgyhOfg1uQhc65mkWccWBhb1Bmwnudy1hm0ySrsgnl8YAZdIZ0RzX/J5gG6eg07HKw4lSw2OkMU+mdA==","mode":420,"size":223},"dist/index.mjs":{"checkedAt":1794532104139,"integrity":"sha512-1OWXAX7NBFLBPZsptrsmARBwEt5w00/DfHxsAaJGSVg2aljtXnHtnwB+wTapx7ViqI4OskxH6narAoz/madvQQ==","mode":420,"size":659},"dist/provider-context.mjs":{"checkedAt":1794532104139,"integrity":"sha512-bYmczeBgnQIijSUcMgN51wR0k/m5CSKAHMpbPcocrsjk2ZDkrYMct1B5Z2g4sEPj+eWs+s6toQVhj23U3Qg87A==","mode":420,"size":146},"dist/provider.mjs":{"checkedAt":1794532104139,"integrity":"sha512-CnxRVbMhMh/hRz+GUA+kWLSrHhwayrQ0Ij+l+X/zsoUIRABeZokeuW0KDSgeS5tH9qDihiQPQPZc+pNZmtUcfw==","mode":420,"size":131},"dist/types.mjs":{"checkedAt":1794532104140,"integrity":"sha512-r7O91qYtDlzo/2DdFBKxj/NgV656thnM8Mhre7JyZjT0pLBlypTT3aNdiKD388z2z6LZPVgYcaDCbw5Pxscw0w==","mode":420,"size":242},"dist/hooks/use-label-placement.mjs":{"checkedAt":1794532104140,"integrity":"sha512-BthX9TcXLcI4DjXqexSj/26FydZF3sBQRJ/yExB7zlMrIFxg1AQMj7X1VDvd6We60+rTaGJh8++gsE32uXTBMg==","mode":420,"size":191},"dist/hooks/index.d.mts":{"checkedAt":1794532104140,"integrity":"sha512-PCeE9jthJbyHqTwIEnH1S9V1gZRxDc+BIzRqB56CylHqCLxYIrFvwGZ50+GEb6dN0EV7FSM37CAcdtsSyK4C1g==","mode":420,"size":87},"dist/index.d.mts":{"checkedAt":1794532104140,"integrity":"sha512-ZrDE2Qc0wd0MsB3DzObLjr7Gm7ASi3H4G1rNYb41yZVqlaRwd9/q3teLXf6HTH8cMc53tBAbko4KZoR+hDYFnQ==","mode":420,"size":799},"dist/provider-context.d.mts":{"checkedAt":1794532104140,"integrity":"sha512-mMhAImhrfHoOVDXGMzLSjAl+tBIKsbBM1fMkhy8MsNXtfpljbCoZWxawpPXav+I+vEEPhV78H4wKeFwkN1UZnA==","mode":420,"size":3560},"dist/provider.d.mts":{"checkedAt":1794532104140,"integrity":"sha512-+NA8/T1e5RAxiOhWrrjQir3D19c8TKF6m1Q3zoOZUcL2wVCwF4BV7mqXbpAOvI08iSWCqs5vMv36aPaedKvtAQ==","mode":420,"size":2087},"dist/types.d.mts":{"checkedAt":1794532104140,"integrity":"sha512-Z+GNf1hmxsPREtDgXdq7GZLR2bLIhijKoV+PKbdEHkgeKKUV7xi2FuYaAYWs/Rn5omxSzx4fgoieep8XD4HQAA==","mode":420,"size":12703},"dist/hooks/use-label-placement.d.mts":{"checkedAt":1794532104141,"integrity":"sha512-a1LPRxkQc+iqC2eqySbMMXLQvzIfTPrX8h5iN2ur2/RZAe25YWnguF2xixuwKRwBidAaYP8cueY3FC1AOtE99A==","mode":420,"size":444},"dist/hooks/index.d.ts":{"checkedAt":1794532104141,"integrity":"sha512-xPFdRkMR6992soJ2i6mgjOKB50+oQJxYSeNScSqOWUGD/soWV/qYNsO1UGwUOgK/xdIksMyq6lD7W0JqfJSoYw==","mode":420,"size":86},"dist/index.d.ts":{"checkedAt":1794532104141,"integrity":"sha512-dd8JET7SX2oYTnkwU8s9BgZMdRSgIKAMJAiGT4qMIPgd5vY3+ePYuFXYYPqufHICIOV19jTJWQe6xV1qzTxupw==","mode":420,"size":795},"dist/provider-context.d.ts":{"checkedAt":1794532104141,"integrity":"sha512-VfUfmqfR9EBPzgPTSLp7gMIDgypuegpJUxq00IglsJfuW30ZWk9OrSPw7H93qCp9e1ItmMHzqLine truncated
@@ -0,0 +1,4 @@
import type { FieldRefs, InternalFieldName, Ref } from '../types';
declare const iterateFieldsByAction: (fields: FieldRefs, action: (ref: Ref, name: string) => 1 | undefined | void, fieldsNames?: Set<InternalFieldName> | InternalFieldName[] | 0, abortEarly?: boolean) => true | undefined;
export default iterateFieldsByAction;
//# sourceMappingURL=iterateFieldsByAction.d.ts.map
@@ -0,0 +1,185 @@
/**
* This is the web browser implementation of `debug()`.
*
* Expose `debug()` as the module.
*/
exports = module.exports = require('./debug');
exports.log = log;
exports.formatArgs = formatArgs;
exports.save = save;
exports.load = load;
exports.useColors = useColors;
exports.storage = 'undefined' != typeof chrome
&& 'undefined' != typeof chrome.storage
? chrome.storage.local
: localstorage();
/**
* Colors.
*/
exports.colors = [
'lightseagreen',
'forestgreen',
'goldenrod',
'dodgerblue',
'darkorchid',
'crimson'
];
/**
* Currently only WebKit-based Web Inspectors, Firefox >= v31,
* and the Firebug extension (any Firefox version) are known
* to support "%c" CSS customizations.
*
* TODO: add a `localStorage` variable to explicitly enable/disable colors
*/
function useColors() {
// NB: In an Electron preload script, document will be defined but not fully
// initialized. Since we know we're in Chrome, we'll just detect this case
// explicitly
if (typeof window !== 'undefined' && window.process && window.process.type === 'renderer') {
return true;
}
// is webkit? http://stackoverflow.com/a/16459606/376773
// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||
// is firebug? http://stackoverflow.com/a/398120/376773
(typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||
// is firefox >= v31?
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||
// double check webkit in userAgent just in case we are in a worker
(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/));
}
/**
* Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
*/
exports.formatters.j = function(v) {
try {
return JSON.stringify(v);
} catch (err) {
return '[UnexpectedJSONParseError]: ' + err.message;
}
};
/**
* Colorize log arguments if enabled.
*
* @api public
*/
function formatArgs(args) {
var useColors = this.useColors;
args[0] = (useColors ? '%c' : '')
+ this.namespace
+ (useColors ? ' %c' : ' ')
+ args[0]
+ (useColors ? '%c ' : ' ')
+ '+' + exports.humanize(this.diff);
if (!useColors) return;
var c = 'color: ' + this.color;
args.splice(1, 0, c, 'color: inherit')
// the final "%c" is somewhat tricky, because there could be other
// arguments passed either before or after the %c, so we need to
// figure out the correct index to insert the CSS into
var index = 0;
var lastC = 0;
args[0].replace(/%[a-zA-Z%]/g, function(match) {
if ('%%' === match) return;
index++;
if ('%c' === match) {
// we only are interested in the *last* %c
// (the user may have provided their own)
lastC = index;
}
});
args.splice(lastC, 0, c);
}
/**
* Invokes `console.log()` when available.
* No-op when `console.log` is not a "function".
*
* @api public
*/
function log() {
// this hackery is required for IE8/9, where
// the `console.log` function doesn't have 'apply'
return 'object' === typeof console
&& console.log
&& Function.prototype.apply.call(console.log, console, arguments);
}
/**
* Save `namespaces`.
*
* @param {String} namespaces
* @api private
*/
function save(namespaces) {
try {
if (null == namespaces) {
exports.storage.removeItem('debug');
} else {
exports.storage.debug = namespaces;
}
} catch(e) {}
}
/**
* Load `namespaces`.
*
* @return {String} returns the previously persisted debug modes
* @api private
*/
function load() {
var r;
try {
r = exports.storage.debug;
} catch(e) {}
// If debug isn't set in LS, and we're in Electron, try to load $DEBUG
if (!r && typeof process !== 'undefined' && 'env' in process) {
r = process.env.DEBUG;
}
return r;
}
/**
* Enable namespaces listed in `localStorage.debug` initially.
*/
exports.enable(load());
/**
* Localstorage attempts to return the localstorage.
*
* This is necessary because safari throws
* when a user disables cookies/localstorage
* and you attempt to access it.
*
* @return {LocalStorage}
* @api private
*/
function localstorage() {
try {
return window.localStorage;
} catch (e) {}
}
@@ -0,0 +1,12 @@
import { featureDefinitions } from './definitions.mjs';
function loadFeatures(features) {
for (const key in features) {
featureDefinitions[key] = {
...featureDefinitions[key],
...features[key],
};
}
}
export { loadFeatures };
@@ -0,0 +1,64 @@
'use strict';
var $RangeError = require('es-errors/range');
var $TypeError = require('es-errors/type');
var isInteger = require('math-intrinsics/isInteger');
var isTypedArray = require('is-typed-array');
var whichTypedArray = require('which-typed-array');
var Get = require('./Get');
var IsTypedArrayOutOfBounds = require('./IsTypedArrayOutOfBounds');
var LengthOfArrayLike = require('./LengthOfArrayLike');
var MakeTypedArrayWithBufferWitnessRecord = require('./MakeTypedArrayWithBufferWitnessRecord');
var ToObject = require('./ToObject');
var ToString = require('./ToString');
var TypedArrayLength = require('./TypedArrayLength');
var TypedArraySetElement = require('./TypedArraySetElement');
// https://262.ecma-international.org/15.0/#sec-settypedarrayfromarraylike
module.exports = function SetTypedArrayFromArrayLike(target, targetOffset, source) {
var whichTarget = whichTypedArray(target);
if (!whichTarget) {
throw new $TypeError('Assertion failed: `target` must be a Typed Array');
}
if (targetOffset !== Infinity && (!isInteger(targetOffset) || targetOffset < 0)) {
throw new $TypeError('Assertion failed: `targetOffset` must be a non-negative integer or +Infinity');
}
if (isTypedArray(source)) {
throw new $TypeError('Assertion failed: `source` must not be a Typed Array');
}
var targetRecord = MakeTypedArrayWithBufferWitnessRecord(target, 'SEQ-CST'); // step 1
if (IsTypedArrayOutOfBounds(targetRecord)) {
throw new $TypeError('target is out of bounds'); // step 2
}
var targetLength = TypedArrayLength(targetRecord); // step 3
var src = ToObject(source); // step 4
var srcLength = LengthOfArrayLike(src); // step 5
if (targetOffset === Infinity) {
throw new $RangeError('targetOffset must be a finite integer'); // step 6
}
if (srcLength + targetOffset > targetLength) {
throw new $RangeError('targetOffset + srcLength must be <= target.length'); // step 7
}
var k = 0; // step 8
while (k < srcLength) { // step 9
var Pk = ToString(k); // step 9.a
var value = Get(src, Pk); // step 9.b
var targetIndex = targetOffset + k; // step 9.c
TypedArraySetElement(target, targetIndex, value); // step 9.d
k += 1; // step 9.e
}
};
@@ -0,0 +1 @@
{"version":3,"file":"magic-string.umd.js","sources":["../src/BitSet.js","../src/Chunk.js","../node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs","../src/SourceMap.js","../src/utils/guessIndent.js","../src/utils/getRelativePath.js","../src/utils/isObject.js","../src/utils/getLocator.js","../src/utils/Mappings.js","../src/MagicString.js","../src/Bundle.js","../src/index-legacy.js"],"sourcesContent":["export default class BitSet {\n\tconstructor(arg) {\n\t\tthis.bits = arg instanceof BitSet ? arg.bits.slice() : [];\n\t}\n\n\tadd(n) {\n\t\tthis.bits[n >> 5] |= 1 << (n & 31);\n\t}\n\n\thas(n) {\n\t\treturn !!(this.bits[n >> 5] & (1 << (n & 31)));\n\t}\n}\n","export default class Chunk {\n\tconstructor(start, end, content) {\n\t\tthis.start = start;\n\t\tthis.end = end;\n\t\tthis.original = content;\n\n\t\tthis.intro = '';\n\t\tthis.outro = '';\n\n\t\tthis.content = content;\n\t\tthis.storeName = false;\n\t\tthis.edited = false;\n\n\t\tif (DEBUG) {\n\t\t\t// we make these non-enumerable, for sanity while debugging\n\t\t\tObject.defineProperties(this, {\n\t\t\t\tprevious: { writable: true, value: null },\n\t\t\t\tnext: { writable: true, value: null },\n\t\t\t});\n\t\t} else {\n\t\t\tthis.previous = null;\n\t\t\tthis.next = null;\n\t\t}\n\t}\n\n\tappendLeft(content) {\n\t\tthis.outro += content;\n\t}\n\n\tappendRight(content) {\n\t\tthis.intro = this.intro + content;\n\t}\n\n\tclone() {\n\t\tconst chunk = new Chunk(this.start, this.end, this.original);\n\n\t\tchunk.intro = this.intro;\n\t\tchunk.outro = this.outro;\n\t\tchunk.content = this.content;\n\t\tchunk.storeName = this.storeName;\n\t\tchunk.edited = this.edited;\n\n\t\treturn chunk;\n\t}\n\n\tcontains(index) {\n\t\treturn this.start < index && index < this.end;\n\t}\n\n\teachNext(fn) {\n\t\tlet chunk = this;\n\t\twhile (chunk) {\n\t\t\tfn(chunk);\n\t\t\tchunk = chunk.next;\n\t\t}\n\t}\n\n\teachPrevious(fn) {\n\t\tlet chunk = this;\n\t\twhile (chunk) {\n\t\t\tfn(chunk);\n\t\t\tchunk = chunk.previous;\n\t\t}\n\t}\n\n\tedit(content, storeName, contentOnly) {\n\t\tthis.content = content;\n\t\tif (!contentOnly) {\n\t\t\tthis.intro = '';\n\t\t\tthis.outro = '';\n\t\t}\n\t\tthis.storeName = storeName;\n\n\t\tthis.edited = true;\n\n\t\treturn this;\n\t}\n\n\tprependLeft(content) {\n\t\tthis.outro = content + this.outro;\n\t}\n\n\tprependRight(content) {\n\t\tthis.intro = content + this.intro;\n\t}\n\n\treset() {\n\t\tthis.intro = '';\n\t\tthis.outro = '';\n\t\tif (this.edited) {\n\t\t\tthis.content = this.original;\n\t\t\tthis.storeName = false;\n\t\t\tthis.edited = false;\n\t\t}\n\t}\n\n\tsplit(index) {\n\t\tconst sliceIndex = index - this.start;\n\n\t\tconst originalBefore = this.original.slice(0, sliceIndex);\n\t\tconst originalAfter = this.original.slice(sliceIndex);\n\n\t\tthis.original = originalBefore;\n\n\t\tconst newChunk = new Chunk(index, this.end, originalAfter);\n\t\tnewChunk.outro = this.outro;\n\t\tthis.outro = '';\n\n\t\tthis.end = index;\n\n\t\tif (this.edited) {\n\t\t\t// after split we should save the edit content record into the correct chunk\n\t\t\t// to make sure sourcemap correct\n\t\t\t// For example:\n\t\t\t// ' test'.trim()\n\t\t\t// split -> ' ' + 'test'\n\t\t\t// ✔️ edit -> '' + 'test'\n\t\t\t// ✖️ edit -> 'test' + ''\n\t\t\t// TODO is this block necessary?...\n\t\t\tnewChunk.edit('', false);\n\t\t\tthis.content = '';\n\t\t} else {\n\t\t\tthis.content = originalBefore;\n\t\t}\n\n\t\tnewChunk.next = this.next;\n\t\tif (newChunk.next) newChunk.next.previous = newChunk;\n\t\tnewChunk.previous = this;\n\t\tthis.next = newChunk;\n\n\t\treturn newChunk;\n\t}\n\n\ttoString() {\n\t\treturn this.intro + this.content + this.outro;\n\t}\n\n\ttrimEnd(rx) {\n\t\tthis.outro = this.outro.replace(rx, '');\n\t\tif (this.outro.length) return true;\n\n\t\tconst trimmed = this.content.replace(rx, '');\n\n\t\tif (trimmed.length) {\n\t\t\tif (trimmed !== this.content) {\n\t\t\t\tthis.split(this.start + trimmed.length).edit('', undefined, true);\n\t\t\t\tif (this.edited) {\n\t\t\t\t\t// save the change, if it has been edited\n\t\t\t\t\tthis.edit(trimmed, this.storeName, true);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t} else {\n\t\t\tthis.edit('', undefined, true);\n\n\t\t\tthis.intro = this.intro.replace(rx, '');\n\t\t\tif (this.intro.length) return true;\n\t\t}\n\t}\n\n\ttrimStart(rx) {\n\t\tthis.intro = this.intro.replace(rx, '');\n\t\tif (this.intro.length) return true;\n\n\t\tconst trimmed = this.content.replace(rx, '');\n\n\t\tif (trimmed.length) {\n\t\t\tif (trimmed !== this.content) {\n\t\t\t\tconst newChunk = this.split(this.end - trimmed.length);\n\t\t\t\tif (this.edited) {\n\t\t\t\t\t// save the change, if it has been edited\n\t\t\t\t\tnewChunk.edit(trimmed, this.storeName, true);\n\t\t\t\t}\n\t\t\t\tthis.edit('', undefined, true);\n\t\t\t}\n\t\t\treturn true;\n\t\t} else {\n\t\t\tthis.edit('', undefined, true);\n\n\t\t\tthis.outro = this.outro.replaceLine truncated
@@ -0,0 +1,5 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.pendingClassMetadataCountReflectKey = void 0;
exports.pendingClassMetadataCountReflectKey = '@inversifyjs/core/pendingClassMetadataCountReflectKey';
//# sourceMappingURL=pendingClassMetadataCountReflectKey.js.map
@@ -0,0 +1,18 @@
Copyright © 2011-2015 Paul Vorbach <paul@vorba.ch>
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, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,399 @@
/**
* @author Matthew Caruana Galizia <mattcg@gmail.com>
* @license MIT: http://mattcg.mit-license.org/
* @copyright Copyright (c) 2013, Matthew Caruana Galizia
*/
'use strict';
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
var index = require('language-subtag-registry/data/json/index.json');
var registry = require('language-subtag-registry/data/json/registry.json');
var Subtag = require('./Subtag.js');
var Tag = /*#__PURE__*/function () {
/** @param {string} tag */
function Tag(tag) {
_classCallCheck(this, Tag);
var types;
// Lowercase for consistency (case is only a formatting convention, not a standard requirement).
tag = tag.trim().toLowerCase();
this.data = {
tag: tag
};
// Check if the input tag is grandfathered or redundant.
types = index[tag];
if (types && (types.grandfathered || types.redundant)) {
this.data.record = registry[types.grandfathered || types.redundant];
}
}
_createClass(Tag, [{
key: "preferred",
value: function preferred() {
var preferred = this.data.record['Preferred-Value'];
if (preferred) {
return new Tag(preferred);
}
return null;
}
/** @return {Subtag[]} */
}, {
key: "subtags",
value: function subtags() {
var codes,
data = this.data,
subtags = [];
// No subtags if the tag is grandfathered.
if (data.record && this.type() === 'grandfathered') {
return subtags;
}
codes = data.tag.split('-');
if (!codes.length) {
return subtags;
}
// Try and find the language tag.
codes.some(function (code, i) {
var types;
// Singletons and anything after are unhandled.
if (code.length < 2) {
return true; // Stop the loop (stop processing after a singleton).
}
types = index[code];
// Check for non-existent tag.
if (!types) {
return; // Skip to the next item.
}
// Check against undefined because value could be 0.
// Language subtags may only appear at the beginning of the tag, otherwise the subtag type is indeterminate.
if (0 === i && undefined !== types.language) {
subtags.push(new Subtag(code, 'language'));
return;
}
switch (code.length) {
case 2:
// Should be a region.
if (types.region) {
subtags.push(new Subtag(code, 'region'));
// Error case: language subtag in the wrong place.
} else if (types.language) {
subtags.push(new Subtag(code, 'language'));
}
break;
case 3:
// Could be a numeric region code e.g. '001' for 'World'.
if (types.region) {
subtags.push(new Subtag(code, 'region'));
} else if (types.extlang) {
subtags.push(new Subtag(code, 'extlang'));
// Error case: language subtag in the wrong place.
} else if (types.language) {
subtags.push(new Subtag(code, 'language'));
}
break;
case 4:
// Could be a numeric variant.
if (types.variant) {
subtags.push(new Subtag(code, 'variant'));
} else if (types.script) {
subtags.push(new Subtag(code, 'script'));
}
break;
default:
// Should be a variant.
if (types.variant) {
subtags.push(new Subtag(code, 'variant'));
}
break;
}
});
return subtags;
}
}, {
key: "language",
value: function language() {
return this.find('language');
}
}, {
key: "region",
value: function region() {
return this.find('region');
}
}, {
key: "script",
value: function script() {
return this.find('script');
}
/** @param {string} type */
}, {
key: "find",
value: function find(type) {
var i,
l,
subtag,
subtags = this.subtags();
for (i = 0, l = subtags.length; i < l; i++) {
subtag = subtags[i];
if (subtag.type() === type) {
return subtag;
}
}
}
}, {
key: "valid",
value: function valid() {
return this.errors().length < 1;
}
}, {
key: "errors",
value: function errors() {
var error,
subtags,
data = this.data,
errors = [];
error = function error(code, subtag) {
var err, message;
switch (code) {
case Tag.ERR_DEPRECATED:
message = 'The tag \'' + data.tag + '\' is deprecated.';
// Note that a record that contains a 'Deprecated' field and no corresponding 'Preferred-Value' field has no replacement mapping (RFC 5646 section 3.1.6).
if (data.record['Preferred-Value']) {
message += ' Use \'' + data.record['Preferred-Value'] + '\' instead.';
}
break;
case Tag.ERR_SUBTAG_DEPRECATED:
message = 'The subtag \'' + subtag + '\' is deprecated.';
break;
case Tag.ERR_NO_LANGUAGE:
if (!data.tag) {
message = 'Empty tag.';
} else {
message = 'Missing language tag in \'' + data.tag + '\'.';
}
break;
case Tag.ERR_UNKNOWN:
message = 'Unknown code \'' + subtag + '\'';
break;
case Tag.ERR_TOO_LONG:
message = 'The private-use subtag \'' + subtag + '\' is too long.';
break;
case Tag.ERR_EXTRA_LANGUAGE:
case Tag.ERR_EXTRA_EXTLANG:
case Tag.ERR_EXTRA_REGION:
case Tag.ERR_EXTRA_SCRIPT:
message = 'Extra ' + subtag.type() + ' subtag \'' + subtag + '\' found.';
break;
case Tag.ERR_DUPLICATE_VARIANT:
message = 'Duplicate variant subtag \'' + subtag + '\' found.';
break;
case Tag.ERR_WRONG_ORDER:
message = 'The subtag \'' + subtag[0] + '\' should not appear before \'' + subtag[1] + '\'.';
break;
case Tag.ERR_SUPPRESS_SCRIPT:
message = 'The script subtag \'' + subtag + '\' is the same as the language suppress-script.';
break;
}
err = new Error(message);
err.code = code;
err.tag = data.tag;
err.subtag = subtag;
errors.push(err);
};
// Check if the tag is grandfathered and if the grandfathered tag is deprecated (e.g. no-nyn).
if (data.record) {
if (data.record.Deprecated) {
error(Tag.ERR_DEPRECATED);
}
// Only check every subtag if the tag is not explicitly listed as grandfathered or redundant.
return errors;
}
// Check that all subtag codes are meaningful.
data.tag.split('-').some(function (code, i, codes) {
var types;
// Ignore anything after a singleton.
if (code.length < 2) {
// Check that each private-use subtag is within the maximum allowed length.
codes.slice(i).forEach(function (code) {
if (code.length > 8) {
error(Tag.ERR_TOO_LONG, code);
}
});
return true;
}
types = index[code];
if (!types) {
error(Tag.ERR_UNKNOWN, code);
}
return false; // Continue to the next item.
});
// Check that first tag is a language tag.
subtags = this.subtags();
if (!subtags.length || 'language' !== subtags[0].type()) {
error(Tag.ERR_NO_LANGUAGE);
return errors;
}
// Check for more than one of some types and for deprecation.
subtags.forEach(function (subtag, i) {
var type = subtag.type(),
language,
script,
found = this;
if (subtag.deprecated()) {
error(Tag.ERR_SUBTAG_DEPRECATED, subtag);
}
if (found[type]) {
found[type].push(subtag);
}
switch (type) {
case 'language':
if (found.language.length > 1) {
error(Tag.ERR_EXTRA_LANGUAGE, subtag);
}
break;
case 'region':
if (found.region.length > 1) {
error(Tag.ERR_EXTRA_REGION, subtag);
}
break;
case 'extlang':
if (found.extlang.length > 1) {
error(Tag.ERR_EXTRA_EXTLANG, subtag);
}
break;
case 'script':
if (found.script.length > 1) {
error(Tag.ERR_EXTRA_SCRIPT, subtag);
// Check if script is same as language suppress-script.
} else {
language = subtags[0];
if ('language' === language.type()) {
script = language.script();
if (script && script.format() === subtag.format()) {
error(Tag.ERR_SUPPRESS_SCRIPT, subtag);
}
}
}
break;
case 'variant':
if (found.variant.length > 1 && found.variant.some(function (variant) {
return variant.format() === subtag.format();
})) {
error(Tag.ERR_DUPLICATE_VARIANT, subtag);
}
}
}, {
language: [],
extlang: [],
variant: [],
script: [],
region: []
});
// Check for correct order.
subtags.forEach(function (subtag, i, subtags) {
var priority = this,
next = subtags[i + 1];
if (next && priority[subtag.type()] > priority[next.type()]) {
error(Tag.ERR_WRONG_ORDER, [subtag, next]);
}
}, {
language: 4,
extlang: 5,
script: 6,
region: 7,
variant: 8
});
return errors;
}
}, {
key: "type",
value: function type() {
var record = this.data.record;
if (record) {
return record.Type;
}
return 'tag';
}
}, {
key: "added",
value: function added() {
var record = this.data.record;
return record && record.Added;
}
}, {
key: "deprecated",
value: function deprecated() {
var record = this.data.record;
return record && record.Deprecated;
}
}, {
key: "descriptions",
value: function descriptions() {
var record = this.data.record;
if (record && record.Description) {
return record.Description;
}
return [];
}
}, {
key: "format",
value: function format() {
var tag = this.data.tag;
// Format according to algorithm defined in RFC 5646 section 2.1.1.
return tag.split('-').reduce(function (p, c, i, a) {
if (i === 0) {
return c;
}
if (a[i - 1].length === 1) {
return p + '-' + c;
}
switch (c.length) {
case 2:
return p + '-' + c.toUpperCase();
case 4:
return p + '-' + c[0].toUpperCase() + c.substr(1);
}
return p + '-' + c;
});
}
}]);
return Tag;
}();
_defineProperty(Tag, "ERR_DEPRECATED", 1);
_defineProperty(Tag, "ERR_NO_LANGUAGE", 2);
_defineProperty(Tag, "ERR_UNKNOWN", 3);
_defineProperty(Tag, "ERR_TOO_LONG", 4);
_defineProperty(Tag, "ERR_EXTRA_REGION", 5);
_defineProperty(Tag, "ERR_EXTRA_EXTLANG", 6);
_defineProperty(Tag, "ERR_EXTRA_SCRIPT", 7);
_defineProperty(Tag, "ERR_DUPLICATE_VARIANT", 8);
_defineProperty(Tag, "ERR_WRONG_ORDER", 9);
_defineProperty(Tag, "ERR_SUPPRESS_SCRIPT", 10);
_defineProperty(Tag, "ERR_SUBTAG_DEPRECATED", 11);
_defineProperty(Tag, "ERR_EXTRA_LANGUAGE", 12);
module.exports = Tag;
@@ -0,0 +1,24 @@
# @heroui/aria-utils
A Quick description of the component
> This is an internal utility, not intended for public usage.
## Installation
```sh
yarn add @heroui/aria-utils
# or
npm i @heroui/aria-utils
```
## Contribution
Yes please! See the
[contributing guidelines](https://github.com/heroui-inc/heroui/blob/master/CONTRIBUTING.md)
for details.
## License
This project is licensed under the terms of the
[MIT license](https://github.com/heroui-inc/heroui/blob/master/LICENSE).
@@ -0,0 +1,820 @@
flf2a$ 8 6 14 1 3
puffy.flf by Juan Car (jc@juguete.quim.ucm.es)
Version 1.1 5/Mar/1994
$$$@
$$$@
$$$@
$$$@
$$$@
$$$@
$$$@
$$$@@
_ @
( )@
| |@
| |@
| |@
(_)@
(_)@
@@
$ _ _ $@
$( )( )$@
$(_)(_)$@
$ $@
$ $@
$ $@
$ $@
$ $@@
@
_ _ @
_( )( )_ @
(_ .. _)@
(_ _)@
(_)(_) @
@
@@
( ) @
/'_ \ @
( (_(_)@
\__ \ @
( )_) )@
`\_ _/'@
(_) @
@@
_ _ @
(_) /' )@
/' /' @
/' /' @
/' /' _ @
(_/' (_)@
@
@@
_____ @
( _ ) @
`\ ,/' @
/'_`\/\ @
| (_> ,<`@
`\___/\/'@
@
@@
$_$@
( )@
|/$@
$ $@
$ $@
$ $@
$ $@
$ $@@
_ @
/' )@
| ,/'@
| | @
| `\ @
`\__)@
@
@@
_ @
( `\ @
`\ |@
| |@
/' |@
(__/'@
@
@@
_ @
_( )_ @
( ` ' )@
> < @
(_, ,_)@
(_) @
@
@@
_ @
( ) @
__| |__ @
(__ __)@
| | @
(_) @
@
@@
$ $@
$ $@
$ $@
$ $@
$_$@
( )@
|/$@
$ $@@
@
@
______ @
(______)@
@
@
@
@@
$ $@
$ $@
$ $@
$ $@
$_$@
(_)@
$ $@
$ $@@
__ @
/ )@
/' /' @
/' /' @
/' /' @
(_/' @
@
@@
__ @
/' _`\ @
| ( ) |@
| | | |@
| (_) |@
`\___/'@
@
@@
_ @
/' )@
(_, |@
| |@
| |@
(_)@
@
@@
__ @
/'__`\ @
(_) ) )@
/' / @
/' /( )@
(_____/'@
@
@@
___ @
/'_ )@
(_)_) |@
_(_ < @
( )_) |@
`\____)@
@
@@
_ _ @
( )( ) @
| || | @
| || |_ @
(__ ,__)@
(_) @
@
@@
_____ @
( ___)@
| (__ @
|___ `\@
( )_) |@
`\___/'@
@
@@
_____ @
( ___)@
| (__ @
| _ `\@
| (_) |@
`\___/'@
@
@@
_______ @
(_____ )@
/'/'@
/'/' @
/'/' @
(_/ @
@
@@
_ @
/'_`\ @
( (_) )@
> _ <'@
( (_) )@
`\___/'@
@
@@
__ @
/'_ `\@
( (_) |@
\__, |@
| |@
(_)@
@
@@
$ $@
$ $@
$_$@
(_)@
$_$@
(_)@
$ $@
$ $@@
$ $@
$ $@
$_$@
(_)@
$_$@
( )@
|/$@
$ $@@
_ @
/' )@
/' /' @
< < @
\ `\ @
`\__)@
@
@@
@
@
______ @
(______)@
(______)@
@
@
@@
_ @
( `\ @
`\ `\ @
> >@
/' /' @
(_/' @
@
@@
_ @
/'_`\ @
(_) ) |@
/'/'@
|_| @
(_) @
@
@@
@
_ @
/'_`\ @
/'/'_` ) @
( ( (_| | @
\ `\__,_)@
`\_____)@
@@
_____ @
( _ )@
| (_) |@
| _ |@
| | | |@
(_) (_)@
@
@@
___ @
( _`\ @
| (_) )@
| _ <'@
| (_) )@
(____/'@
@
@@
___ @
( _`\ @
| ( (_)@
| | _ @
| (_( )@
(____/'@
@
@@
___ @
( _`\ @
| | ) |@
| | | )@
| |_) |@
(____/'@
@
@@
___ @
( _`\ @
| (_(_)@
| _)_ @
| (_( )@
(____/'@
@
@@
___ @
( _`\ @
| (_(_)@
| _) @
| | @
(_) @
@
@@
___ @
( _`\ @
| ( (_)@
| |___ @
| (_, )@
(____/'@
@
@@
_ _ @
( ) ( )@
| |_| |@
| _ |@
| | | |@
(_) (_)@
@
@@
_ @
(_)@
| |@
| |@
| |@
(_)@
@
@@
_____ @
(___ )@
| |@
_ | |@
( )_| |@
`\___/'@
@
@@
_ _ @
( ) ( )@
| |/'/'@
| , < @
| |\`\ @
(_) (_)@
@
@@
_ @
( ) @
| | @
| | _ @
| |_( )@
(____/'@
@
@@
@
/'\_/`\@
| |@
| (_) |@
| | | |@
(_) (_)@
@
@@
_ _ @
( ) ( )@
| `\| |@
| , ` |@
| |`\ |@
(_) (_)@
@
@@
_____ @
( _ )@
| ( ) |@
| | | |@
| (_) |@
(_____)@
@
@@
___ @
( _`\ @
| |_) )@
| ,__/'@
| | @
(_) @
@
@@
_____ @
( _ )@
| ( ) |@
| | | |@
| (('\|@
(___\_)@
@
@@
___ @
| _`\ @
| (_) )@
| , / @
| |\ \ @
(_) (_)@
@
@@
___ @
( _`\ @
| (_(_)@
`\__ \ @
( )_) |@
`\____)@
@
@@
_____ @
(_ _)@
| | @
| | @
| | @
(_) @
@
@@
_ _ @
( ) ( )@
| | | |@
| | | |@
| (_) |@
(_____)@
@
@@
_ _ @
( ) ( )@
| | | |@
| | | |@
| \_/ |@
`\___/'@
@
@@
_ _ @
( ) _ ( )@
| | ( ) | |@
| | | | | |@
| (_/ \_) |@
`\___x___/'@
@
@@
_ _ @
( ) ( )@
`\`\/'/'@
> < @
/'/\`\ @
(_) (_)@
@
@@
_ _ @
( ) ( )@
`\`\_/'/'@
`\ /' @
| | @
(_) @
@
@@
_______ @
(_____ )@
/'/'@
/'/' @
/'/'___ @
(_______)@
@
@@
___ @
( _)@
| | @
| | @
| |_ @
(___)@
@
@@
_ @
( `\ @
`\ `\ @
`\ `\ @
`\ `\ @
`\_)@
@
@@
___ @
(_ )@
| |@
| |@
_| |@
(___)@
@
@@
$ __ $@
$/ \$@
(_/\_)@
$ $@
$ $@
$ $@
$ $@
$ $@@
$ $ @
$ $ @
$ $ @
$ $ @
$ $ @
$ $ @
______ @
(______)@@
$_$@
( )@
$\|@
$ $@
$ $@
$ $@
$ $@
$ $@@
@
@
_ _ @
/'_` )@
( (_| |@
`\__,_)@
@
@@
_ @
( ) @
| |_ @
| '_`\ @
| |_) )@
(_,__/'@
@
@@
@
@
___ @
/'___)@
( (___ @
`\____)@
@
@@
_ @
( )@
_| |@
/'_` |@
( (_| |@
`\__,_)@
@
@@
@
@
__ @
/'__`\@
( ___/@
`\____)@
@
@@
___ @
/'___)@
| (__ @
| ,__) @
| | @
(_) @
@
@@
@
@
__ @
/'_ `\@
( (_) |@
`\__ |@
( )_) |@
\___/'@@
_ @
( ) @
| |__ @
| _ `\@
| | | |@
(_) (_)@
@
@@
@
_ @
(_)@
| |@
| |@
(_)@
@
@@
@
_ @
(_)@
| |@
| |@
_ | |@
( )_| |@
`\___/'@@
_ @
( ) @
| |/') @
| , < @
| |\`\ @
(_) (_)@
@
@@
_ @
(_ ) @
| | @
| | @
| | @
(___)@
@
@@
@
@
___ ___ @
/' _ ` _ `\@
| ( ) ( ) |@
(_) (_) (_)@
@
@@
@
@
___ @
/' _ `\@
| ( ) |@
(_) (_)@
@
@@
@
@
_ @
/'_`\ @
( (_) )@
`\___/'@
@
@@
@
@
_ _ @
( '_`\ @
| (_) )@
| ,__/'@
| | @
(_) @@
@
@
_ _ @
/'_` )@
( (_) |@
`\__, |@
| |@
(_)@@
@
@
_ __ @
( '__)@
| | @
(_) @
@
@@
@
@
___ @
/',__)@
\__, \@
(____/@
@
@@
_ @
( )_ @
| ,_)@
| | @
| |_ @
`\__)@
@
@@
@
@
_ _ @
( ) ( )@
| (_) |@
`\___/'@
@
@@
@
@
_ _ @
( ) ( )@
| \_/ |@
`\___/'@
@
@@
@
@
_ _ _ @
( ) ( ) ( )@
| \_/ \_/ |@
`\___x___/'@
@
@@
@
@
@
(`\/')@
> < @
(_/\_)@
@
@@
@
@
_ _ @
( ) ( )@
| (_) |@
`\__, |@
( )_| |@
`\___/'@@
@
@
____ @
(_ ,)@
/'/_ @
(____)@
@
@@
_ @
/' )@
| ,/'@
<' | @
| `\ @
`\__)@
@
@@
@
_ @
( )@
| |@
| |@
| |@
(_)@
@@
_ @
( `\ @
`\ | @
| `>@
/' | @
(__/' @
@
@@
_ _ @
/' \/' )@
(_/\__/' @
@
@
@
@
@@
(_)_(_)@
( _ )@
| (_) |@
| _ |@
| | | |@
(_) (_)@
@
@@
(_)_(_)@
( _ )@
| ( ) |@
| | | |@
| (_) |@
(_____)@
@
@@
(_) (_)@
( ) ( )@
| | | |@
| | | |@
| (_) |@
(_____)@
@
@@
_ _ @
(_) (_)@
_ _ @
/'_` )@
( (_| |@
`\__,_)@
@
@@
_ _ @
(_) (_)@
_ @
/'_`\ @
( (_) )@
`\___/'@
@
@@
_ _ @
(_) (_)@
_ _ @
( ) ( )@
| (_) |@
`\___/'@
@
@@
@
@
_____ @
( _ )@
| |/ /'@
| |\`\ @
| ||_/'@
(_) @@
@@ -0,0 +1,3 @@
declare function hasToStringTag(): boolean;
export = hasToStringTag;
@@ -0,0 +1,16 @@
var copyObject = require('./_copyObject'),
getSymbols = require('./_getSymbols');
/**
* Copies own symbols of `source` to `object`.
*
* @private
* @param {Object} source The object to copy symbols from.
* @param {Object} [object={}] The object to copy symbols to.
* @returns {Object} Returns `object`.
*/
function copySymbols(source, object) {
return copyObject(source, getSymbols(source), object);
}
module.exports = copySymbols;
@@ -0,0 +1 @@
module.exports={C:{"143":51.79,_:"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 144 145 146 147 3.5 3.6"},D:{_:"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 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"},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:{_:"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 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"},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 16.6 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.0 26.1 26.2"},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00089,"5.0-5.1":0,"6.0-6.1":0.00357,"7.0-7.1":0.00268,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00804,"10.0-10.2":0.00089,"10.3":0.01518,"11.0-11.2":0.225,"11.3-11.4":0.00536,"12.0-12.1":0.00179,"12.2-12.5":0.04375,"13.0-13.1":0,"13.2":0.00446,"13.3":0.00179,"13.4-13.7":0.00714,"14.0-14.4":0.01518,"14.5-14.8":0.01607,"15.0-15.1":0.01518,"15.2-15.3":0.01161,"15.4":0.01339,"15.5":0.01518,"15.6-15.8":0.19821,"16.0":0.02679,"16.1":0.05,"16.2":0.02589,"16.3":0.04643,"16.4":0.01161,"16.5":0.02054,"16.6-16.7":0.26518,"17.0":0.01875,"17.1":0.02857,"17.2":0.02054,"17.3":0.03036,"17.4":0.05357,"17.5":0.09196,"17.6-17.7":0.23214,"18.0":0.05268,"18.1":0.10893,"18.2":0.05893,"18.3":0.18928,"18.4":0.09732,"18.5-18.6":4.96246,"26.0":0.61339,"26.1":0.02232},P:{_:"4 20 21 22 23 24 25 26 27 28 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":39.28151}};
@@ -0,0 +1,103 @@
"use client";
import {
useInput
} from "./chunk-MSLIMGMJ.mjs";
// src/textarea.tsx
import { dataAttr } from "@heroui/shared-utils";
import { forwardRef } from "@heroui/system";
import { mergeProps } from "@react-aria/utils";
import { useMemo, useState } from "react";
import TextareaAutosize from "react-textarea-autosize";
import { CloseFilledIcon } from "@heroui/shared-icons";
import { jsx, jsxs } from "react/jsx-runtime";
var Textarea = forwardRef(
({
style,
minRows = 3,
maxRows = 8,
cacheMeasurements = false,
disableAutosize = false,
onHeightChange,
...otherProps
}, ref) => {
const {
Component,
label,
description,
startContent,
endContent,
hasHelper,
shouldLabelBeOutside,
shouldLabelBeInside,
isInvalid,
errorMessage,
getBaseProps,
getLabelProps,
getInputProps,
getInnerWrapperProps,
getInputWrapperProps,
getHelperWrapperProps,
getDescriptionProps,
getErrorMessageProps,
isClearable,
getClearButtonProps
} = useInput({ ...otherProps, ref, isMultiline: true });
const [hasMultipleRows, setIsHasMultipleRows] = useState(minRows > 1);
const [isLimitReached, setIsLimitReached] = useState(false);
const labelContent = label ? /* @__PURE__ */ jsx("label", { ...getLabelProps(), children: label }) : null;
const inputProps = getInputProps();
const handleHeightChange = (height, meta) => {
if (minRows === 1) {
setIsHasMultipleRows(height >= meta.rowHeight * 2);
}
if (maxRows > minRows) {
const limitReached = height >= maxRows * meta.rowHeight;
setIsLimitReached(limitReached);
}
onHeightChange == null ? void 0 : onHeightChange(height, meta);
};
const content = disableAutosize ? /* @__PURE__ */ jsx("textarea", { ...inputProps, style: mergeProps(inputProps.style, style != null ? style : {}) }) : /* @__PURE__ */ jsx(
TextareaAutosize,
{
...inputProps,
cacheMeasurements,
"data-hide-scroll": dataAttr(!isLimitReached),
maxRows,
minRows,
style: mergeProps(inputProps.style, style != null ? style : {}),
onHeightChange: handleHeightChange
}
);
const clearButtonContent = useMemo(() => {
return isClearable ? /* @__PURE__ */ jsx("button", { ...getClearButtonProps(), children: /* @__PURE__ */ jsx(CloseFilledIcon, {}) }) : null;
}, [isClearable, getClearButtonProps]);
const innerWrapper = useMemo(() => {
if (startContent || endContent) {
return /* @__PURE__ */ jsxs("div", { ...getInnerWrapperProps(), children: [
startContent,
content,
endContent
] });
}
return /* @__PURE__ */ jsx("div", { ...getInnerWrapperProps(), children: content });
}, [startContent, inputProps, endContent, getInnerWrapperProps]);
const shouldShowError = isInvalid && errorMessage;
const hasHelperContent = shouldShowError || description;
return /* @__PURE__ */ jsxs(Component, { ...getBaseProps(), children: [
shouldLabelBeOutside ? labelContent : null,
/* @__PURE__ */ jsxs("div", { ...getInputWrapperProps(), "data-has-multiple-rows": dataAttr(hasMultipleRows), children: [
shouldLabelBeInside ? labelContent : null,
innerWrapper,
clearButtonContent
] }),
hasHelper && hasHelperContent ? /* @__PURE__ */ jsx("div", { ...getHelperWrapperProps(), children: shouldShowError ? /* @__PURE__ */ jsx("div", { ...getErrorMessageProps(), children: errorMessage }) : /* @__PURE__ */ jsx("div", { ...getDescriptionProps(), children: description }) }) : null
] });
}
);
Textarea.displayName = "HeroUI.Textarea";
var textarea_default = Textarea;
export {
textarea_default
};
@@ -0,0 +1 @@
module.exports={C:{"78":0.00459,"112":0.01376,"115":0.11006,"120":0.05045,"122":0.00459,"123":0.00917,"124":0.00459,"128":0.02752,"132":0.00459,"136":0.00917,"137":0.00459,"139":0.01834,"140":0.08255,"141":0.01834,"142":0.02293,"143":0.86675,"144":0.7521,"145":0.00917,_:"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 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 113 114 116 117 118 119 121 125 126 127 129 130 131 133 134 135 138 146 147 3.5 3.6"},D:{"39":0.00459,"40":0.00459,"41":0.00459,"42":0.00459,"43":0.00917,"44":0.00459,"45":0.00459,"46":0.00459,"47":0.00459,"48":0.00459,"49":0.00917,"50":0.00459,"51":0.00459,"52":0.00459,"53":0.00459,"54":0.00459,"55":0.00459,"56":0.00459,"57":0.00459,"58":0.00459,"59":0.00459,"60":0.00459,"65":0.00459,"75":0.00459,"79":0.02752,"83":0.00459,"87":0.05503,"91":0.00459,"92":0.00459,"93":0.00459,"94":0.00459,"97":0.00917,"99":0.00459,"101":0.00917,"102":0.00459,"103":0.01376,"107":0.00459,"108":0.0321,"109":1.0823,"110":0.00917,"111":0.01834,"112":2.61861,"113":0.00459,"114":0.00459,"115":0.00459,"116":0.02293,"119":0.07796,"120":0.0642,"121":0.00459,"122":0.04127,"123":0.00459,"124":0.01376,"125":4.21912,"126":0.21554,"127":0.02752,"128":0.04586,"129":0.02752,"130":0.00917,"131":0.0642,"132":0.02752,"133":0.05503,"134":0.03669,"135":0.78421,"136":0.03669,"137":0.07796,"138":0.53656,"139":0.60077,"140":5.98014,"141":13.758,"142":0.1972,_:"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 61 62 63 64 66 67 68 69 70 71 72 73 74 76 77 78 80 81 84 85 86 88 89 90 95 96 98 100 104 105 106 117 118 143 144 145"},F:{"67":0.00459,"91":0.02752,"92":0.02752,"95":0.00459,"117":0.00459,"119":0.00459,"120":0.08713,"121":0.18803,"122":0.97223,_:"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 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00917,"109":0.02293,"114":0.0642,"124":0.00459,"126":0.00459,"127":0.00459,"129":0.00459,"130":0.00917,"131":0.01376,"133":0.00917,"134":0.05045,"135":0.01834,"136":0.01376,"137":0.01834,"138":0.02293,"139":0.0642,"140":0.94472,"141":3.15058,"142":0.01376,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 122 123 125 128 132"},E:{"14":0.00459,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.4 17.2 17.3 18.2 26.2","5.1":0.00459,"13.1":0.00459,"14.1":0.00459,"15.6":0.03669,"16.3":0.00459,"16.5":0.00459,"16.6":0.03669,"17.0":0.00459,"17.1":0.00917,"17.4":0.00917,"17.5":0.00917,"17.6":0.0321,"18.0":0.00459,"18.1":0.01834,"18.3":0.00917,"18.4":0.01834,"18.5-18.6":0.03669,"26.0":0.27975,"26.1":0.00917},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00116,"5.0-5.1":0,"6.0-6.1":0.00466,"7.0-7.1":0.00349,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01047,"10.0-10.2":0.00116,"10.3":0.01978,"11.0-11.2":0.29328,"11.3-11.4":0.00698,"12.0-12.1":0.00233,"12.2-12.5":0.05703,"13.0-13.1":0,"13.2":0.00582,"13.3":0.00233,"13.4-13.7":0.00931,"14.0-14.4":0.01978,"14.5-14.8":0.02095,"15.0-15.1":0.01978,"15.2-15.3":0.01513,"15.4":0.01746,"15.5":0.01978,"15.6-15.8":0.25836,"16.0":0.03491,"16.1":0.06517,"16.2":0.03375,"16.3":0.06052,"16.4":0.01513,"16.5":0.02677,"16.6-16.7":0.34565,"17.0":0.02444,"17.1":0.03724,"17.2":0.02677,"17.3":0.03957,"17.4":0.06983,"17.5":0.11987,"17.6-17.7":0.30259,"18.0":0.06866,"18.1":0.14198,"18.2":0.07681,"18.3":0.24672,"18.4":0.12685,"18.5-18.6":6.46837,"26.0":0.79953,"26.1":0.02909},P:{"4":0.02041,"20":0.03061,"21":0.02041,"22":0.0102,"23":0.0102,"24":0.02041,"25":0.02041,"26":0.03061,"27":0.04081,"28":1.57119,"29":0.10203,"5.0-5.4":0.0102,_:"6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 16.0 17.0 18.0","7.2-7.4":0.04081,"15.0":0.0102,"19.0":0.0102},I:{"0":0.07027,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00004},K:{"0":0.27065,_:"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":0.30313},Q:{_:"14.9"},O:{"0":0.04872},H:{"0":0},L:{"0":44.20653}};
@@ -0,0 +1 @@
{"name":"token-types","version":"6.1.1","requiresBuild":false,"files":{"lib/index.js":{"checkedAt":1794532099314,"integrity":"sha512-09EtHL9n696kzzzzGolqr5GgDG3yMmXVoDeNTV7a+rmqyxljrykA6t+cZGTDaBxri9Zlq4VRODACeI0vS274vA==","mode":420,"size":9735},"package.json":{"checkedAt":1794532099314,"integrity":"sha512-jkKvf2XrvkxomXoHqGaU2eUfop5ltf9z1PZ2AYe2rPWfE2TFqmx/5ud0WjpbEOyGY4jNEpzCRp8mb0+rtfd/7Q==","mode":420,"size":2153},"README.md":{"checkedAt":1794532099314,"integrity":"sha512-+FiwQUtGan6WbJQZh1gdnfmvyWq+Ej/SpH/FwFJAzizAIDW5bQkTWO+grhNnrZJCJEH8enyULpfKOiXMC2KBPw==","mode":420,"size":5231},"lib/index.d.ts":{"checkedAt":1794532099315,"integrity":"sha512-ch648k9+YQc8OKpmF0Maxa/HpAmsSfmwXqxYIRycIrSvkexASRo/OSEbiyEJlBNnm5nCLgG0egZmt6wR6ZbPgg==","mode":420,"size":3820},"LICENSE.txt":{"checkedAt":1794532099315,"integrity":"sha512-qdr5PygZdU+7nyR182ebNjXKqtcb9kbictwgk1Cd/nzgArUKt6gFdBVWGGFgU/F5EreIX+PQiJPiTRnUpIWPAA==","mode":420,"size":1073}}}
@@ -0,0 +1 @@
{"version":3,"file":"index.js","sources":["../src/defs.ts","../src/highlight.ts","../src/index.ts"],"sourcesContent":["import picocolors, { createColors } from \"picocolors\";\nimport type { Colors, Formatter } from \"picocolors/types\";\n\nexport function isColorSupported() {\n return (\n // See https://github.com/alexeyraspopov/picocolors/issues/62\n typeof process === \"object\" &&\n (process.env.FORCE_COLOR === \"0\" || process.env.FORCE_COLOR === \"false\")\n ? false\n : picocolors.isColorSupported\n );\n}\n\nexport type InternalTokenType =\n | \"keyword\"\n | \"capitalized\"\n | \"jsxIdentifier\"\n | \"punctuator\"\n | \"number\"\n | \"string\"\n | \"regex\"\n | \"comment\"\n | \"invalid\";\n\ntype UITokens = \"gutter\" | \"marker\" | \"message\";\n\nexport type Defs = {\n [_ in InternalTokenType | UITokens | \"reset\"]: Formatter;\n};\n\nconst compose: <T, U, V>(f: (gv: U) => V, g: (v: T) => U) => (v: T) => V =\n (f, g) => v =>\n f(g(v));\n\n/**\n * Styles for token types.\n */\nfunction buildDefs(colors: Colors): Defs {\n return {\n keyword: colors.cyan,\n capitalized: colors.yellow,\n jsxIdentifier: colors.yellow,\n punctuator: colors.yellow,\n number: colors.magenta,\n string: colors.green,\n regex: colors.magenta,\n comment: colors.gray,\n invalid: compose(compose(colors.white, colors.bgRed), colors.bold),\n\n gutter: colors.gray,\n marker: compose(colors.red, colors.bold),\n message: compose(colors.red, colors.bold),\n\n reset: colors.reset,\n };\n}\n\nconst defsOn = buildDefs(createColors(true));\nconst defsOff = buildDefs(createColors(false));\n\nexport function getDefs(enabled: boolean): Defs {\n return enabled ? defsOn : defsOff;\n}\n","import type { Token as JSToken, JSXToken } from \"js-tokens\";\nimport jsTokens from \"js-tokens\";\n\nimport {\n isStrictReservedWord,\n isKeyword,\n} from \"@babel/helper-validator-identifier\";\n\nimport { getDefs, type InternalTokenType } from \"./defs.ts\";\n\n/**\n * Names that are always allowed as identifiers, but also appear as keywords\n * within certain syntactic productions.\n *\n * https://tc39.es/ecma262/#sec-keywords-and-reserved-words\n *\n * `target` has been omitted since it is very likely going to be a false\n * positive.\n */\nconst sometimesKeywords = new Set([\"as\", \"async\", \"from\", \"get\", \"of\", \"set\"]);\n\ntype Token = {\n type: InternalTokenType | \"uncolored\";\n value: string;\n};\n\n/**\n * RegExp to test for newlines in terminal.\n */\nconst NEWLINE = /\\r\\n|[\\n\\r\\u2028\\u2029]/;\n\n/**\n * RegExp to test for the three types of brackets.\n */\nconst BRACKET = /^[()[\\]{}]$/;\n\nlet tokenize: (\n text: string,\n) => Generator<{ type: InternalTokenType | \"uncolored\"; value: string }>;\n\nif (process.env.BABEL_8_BREAKING) {\n /**\n * Get the type of token, specifying punctuator type.\n */\n const getTokenType = function (\n token: JSToken | JSXToken,\n ): InternalTokenType | \"uncolored\" {\n if (token.type === \"IdentifierName\") {\n if (\n isKeyword(token.value) ||\n isStrictReservedWord(token.value, true) ||\n sometimesKeywords.has(token.value)\n ) {\n return \"keyword\";\n }\n\n if (token.value[0] !== token.value[0].toLowerCase()) {\n return \"capitalized\";\n }\n }\n\n if (token.type === \"Punctuator\" && BRACKET.test(token.value)) {\n return \"uncolored\";\n }\n\n if (token.type === \"Invalid\" && token.value === \"@\") {\n return \"punctuator\";\n }\n\n switch (token.type) {\n case \"NumericLiteral\":\n return \"number\";\n\n case \"StringLiteral\":\n case \"JSXString\":\n case \"NoSubstitutionTemplate\":\n return \"string\";\n\n case \"RegularExpressionLiteral\":\n return \"regex\";\n\n case \"Punctuator\":\n case \"JSXPunctuator\":\n return \"punctuator\";\n\n case \"MultiLineComment\":\n case \"SingleLineComment\":\n return \"comment\";\n\n case \"Invalid\":\n case \"JSXInvalid\":\n return \"invalid\";\n\n case \"JSXIdentifier\":\n return \"jsxIdentifier\";\n\n default:\n return \"uncolored\";\n }\n };\n\n /**\n * Turn a string of JS into an array of objects.\n */\n tokenize = function* (text: string): Generator<Token> {\n for (const token of jsTokens(text, { jsx: true })) {\n switch (token.type) {\n case \"TemplateHead\":\n yield { type: \"string\", value: token.value.slice(0, -2) };\n yield { type: \"punctuator\", value: \"${\" };\n break;\n\n case \"TemplateMiddle\":\n yield { type: \"punctuator\", value: \"}\" };\n yield { type: \"string\", value: token.value.slice(1, -2) };\n yield { type: \"punctuator\", value: \"${\" };\n break;\n\n case \"TemplateTail\":\n yield { type: \"punctuator\", valuLine truncated
@@ -0,0 +1,22 @@
import { TypeBoxError } from '../../type/error/index';
import { ValueError } from '../../errors/index';
import type { TSchema } from '../../type/schema/index';
export declare class TransformDecodeCheckError extends TypeBoxError {
readonly schema: TSchema;
readonly value: unknown;
readonly error: ValueError;
constructor(schema: TSchema, value: unknown, error: ValueError);
}
export declare class TransformDecodeError extends TypeBoxError {
readonly schema: TSchema;
readonly path: string;
readonly value: unknown;
readonly error: Error;
constructor(schema: TSchema, path: string, value: unknown, error: Error);
}
/**
* `[Internal]` Decodes the value and returns the result. This function requires that
* the caller `Check` the value before use. Passing unchecked values may result in
* undefined behavior. Refer to the `Value.Decode()` for implementation details.
*/
export declare function TransformDecode(schema: TSchema, references: TSchema[], value: unknown): unknown;
@@ -0,0 +1,13 @@
import objectWithoutPropertiesLoose from "./objectWithoutPropertiesLoose.js";
function _objectWithoutProperties(e, t) {
if (null == e) return {};
var o,
r,
i = objectWithoutPropertiesLoose(e, t);
if (Object.getOwnPropertySymbols) {
var n = Object.getOwnPropertySymbols(e);
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
}
return i;
}
export { _objectWithoutProperties as default };
@@ -0,0 +1,534 @@
tlf2a$ 3 3 8 0 15 0 64 0
===============================================================================
This is pagga.tlf, or “Pagga”, by Sam Hocevar and pagga.
2010/01/17 -- Sam Hocevar <sam@hocevar.net>
font creation, all base characters
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.
This font is part of TOIlet’s official distribution. More information
on the TOIlet website at http://caca.zoy.org/wiki/toilet
===============================================================================
░░@
░░@
░░@@
░█@
░▀@
░▀@@
░▀░▀@
░░░░@
░░░░@@
░▄█▄█▄@
░▄█▄█▄@
░░▀░▀░@@
░▄█▀@
░▀██@
░▀▀░@@
░▀░█@
░▄▀░@
░▀░▀@@
░▄▀░@
░▄█▀@
░░▀▀@@
░▀@
░░@
░░@@
░▄▀░@
░█░░@
░░▀░@@
░▀▄░@
░░█░@
░▀░░@@
░▄░▄@
░▄█▄@
░▄▀▄@@
░░░░@
░▄█▄@
░░▀░@@
░░░░@
░░░░@
░▄▀░@@
░░░░@
░▄▄▄@
░░░░@@
░░░@
░░░@
░▀░@@
░░░█@
░▄▀░@
░▀░░@@
░▄▀▄@
░█/█@
░░▀░@@
░▀█░@
░░█░@
░▀▀▀@@
░▀▀▄@
░▄▀░@
░▀▀▀@@
░▀▀█@
░░▀▄@
░▀▀░@@
░█░█@
░░▀█@
░░░▀@@
░█▀▀@
░▀▀▄@
░▀▀░@@
░▄▀▀@
░█▀▄@
░░▀░@@
░▀▀█@
░▄▀░@
░▀░░@@
░▄▀▄@
░▄▀▄@
░░▀░@@
░▄▀▄@
░░▀█@
░▀▀░@@
░░░░@
░░▀░@
░░▀░@@
░░░░@
░░▀░@
░▄▀░@@
░░▄▀@
░▀▄░@
░░░▀@@
░░░░@
░▀▀▀@
░▀▀▀@@
░▀▄░@
░░▄▀@
░▀░░@@
░▀▀█@
░░▀░@
░░▀░@@
░▄▀▄@
░█▀▀@
░░▀░@@
░█▀█@
░█▀█@
░▀░▀@@
░█▀▄@
░█▀▄@
░▀▀░@@
░█▀▀@
░█░░@
░▀▀▀@@
░█▀▄@
░█░█@
░▀▀░@@
░█▀▀@
░█▀▀@
░▀▀▀@@
░█▀▀@
░█▀▀@
░▀░░@@
░█▀▀@
░█░█@
░▀▀▀@@
░█░█@
░█▀█@
░▀░▀@@
░▀█▀@
░░█░@
░▀▀▀@@
░▀▀█@
░░░█@
░▀▀░@@
░█░█@
░█▀▄@
░▀░▀@@
░█░░@
░█░░@
░▀▀▀@@
░█▄█@
░█░█@
░▀░▀@@
░█▀█@
░█░█@
░▀░▀@@
░█▀█@
░█░█@
░▀▀▀@@
░█▀█@
░█▀▀@
░▀░░@@
░▄▀▄@
░█\█@
░░▀\@@
░█▀▄@
░█▀▄@
░▀░▀@@
░█▀▀@
░▀▀█@
░▀▀▀@@
░▀█▀@
░░█░@
░░▀░@@
░█░█@
░█░█@
░▀▀▀@@
░█░█@
░▀▄▀@
░░▀░@@
░█░█@
░█▄█@
░▀░▀@@
░█░█@
░▄▀▄@
░▀░▀@@
░█░█@
░░█░@
░░▀░@@
░▀▀█@
░▄▀░@
░▀▀▀@@
░█▀░@
░█░░@
░▀▀░@@
░█░░@
░░▀▄@
░░░▀@@
░▀█░@
░░█░@
░▀▀░@@
░▄▀▄@
░░░░@
░░░░@@
░░░░@
░░░░@
░▀▀▀@@
░▀▄@
░░░@
░░░@@
░█▀█@
░█▀█@
░▀░▀@@
░█▀▄@
░█▀▄@
░▀▀░@@
░█▀▀@
░█░░@
░▀▀▀@@
░█▀▄@
░█░█@
░▀▀░@@
░█▀▀@
░█▀▀@
░▀▀▀@@
░█▀▀@
░█▀▀@
░▀░░@@
░█▀▀@
░█░█@
░▀▀▀@@
░█░█@
░█▀█@
░▀░▀@@
░▀█▀@
░░█░@
░▀▀▀@@
░▀▀█@
░░░█@
░▀▀░@@
░█░█@
░█▀▄@
░▀░▀@@
░█░░@
░█░░@
░▀▀▀@@
░█▄█@
░█░█@
░▀░▀@@
░█▀█@
░█░█@
░▀░▀@@
░█▀█@
░█░█@
░▀▀▀@@
░█▀█@
░█▀▀@
░▀░░@@
░▄▀▄@
░█\█@
░░▀\@@
░█▀▄@
░█▀▄@
░▀░▀@@
░█▀▀@
░▀▀█@
░▀▀▀@@
░▀█▀@
░░█░@
░░▀░@@
░█░█@
░█░█@
░▀▀▀@@
░█░█@
░▀▄▀@
░░▀░@@
░█░█@
░█▄█@
░▀░▀@@
░█░█@
░▄▀▄@
░▀░▀@@
░█░█@
░░█░@
░░▀░@@
░▀▀█@
░▄▀░@
░▀▀▀@@
░░█▀@
░▀▄░@
░░▀▀@@
░░█░@
░░█░@
░░▀░@@
░▀█░@
░░▄▀@
░▀▀░@@
░▄▀▄▀@
░░░░░@
░░░░░@@
░█▀█@
░█▀█@
░▀░▀@@
░█▀█@
░█░█@
░▀▀▀@@
░█░█@
░█░█@
░▀▀▀@@
░█▀█@
░█▀█@
░▀░▀@@
░█▀█@
░█░█@
░▀▀▀@@
░█░█@
░█░█@
░▀▀▀@@
░█▀▀░█▀▀@
░▀▀█░▀▀█@
░▀▀▀░▀▀▀@@
0x00C0 À LATIN CAPITAL LETTER A WITH GRAVE
░█▀█@
░█▀█@
░▀░▀@@
0x00C1 Á LATIN CAPITAL LETTER A WITH ACUTE
░█▀█@
░█▀█@
░▀░▀@@
0x00C2 Â LATIN CAPITAL LETTER A WITH CIRCUMFLEX
░█▀█@
░█▀█@
░▀░▀@@
0x00C3 Ã LATIN CAPITAL LETTER A WITH TILDE
░█▀█@
░█▀█@
░▀░▀@@
0x00C5 Å LATIN CAPITAL LETTER A WITH RING ABOVE
░█▀█@
░█▀█@
░▀░▀@@
0x00C6 Æ LATIN CAPITAL LETTER AE
░█▀█▀▀@
░█▀█▀▀@
░▀░▀▀▀@@
0x00C7 Ç LATIN CAPITAL LETTER C WITH CEDILLA
░█▀▀@
░█░░@
░▀▀▀@@
0x00C8 È LATIN CAPITAL LETTER E WITH GRAVE
░█▀▀@
░█▀▀@
░▀▀▀@@
0x00C9 É LATIN CAPITAL LETTER E WITH ACUTE
░█▀▀@
░█▀▀@
░▀▀▀@@
0x00CA Ê LATIN CAPITAL LETTER E WITH CIRCUMFLEX
░█▀▀@
░█▀▀@
░▀▀▀@@
0x00CB Ë LATIN CAPITAL LETTER E WITH DIAERESIS
░█▀▀@
░█▀▀@
░▀▀▀@@
0x00CC Ì LATIN CAPITAL LETTER I WITH GRAVE
░▀█▀@
░░█░@
░▀▀▀@@
0x00CD Í LATIN CAPITAL LETTER I WITH ACUTE
░▀█▀@
░░█░@
░▀▀▀@@
0x00CE Î LATIN CAPITAL LETTER I WITH CIRCUMFLEX
░▀█▀@
░░█░@
░▀▀▀@@
0x00CF Ï LATIN CAPITAL LETTER I WITH DIAERESIS
░▀█▀@
░░█░@
░▀▀▀@@
0x00D1 Ñ LATIN CAPITAL LETTER N WITH TILDE
░█▀█@
░█░█@
░▀░▀@@
0x00D2 Ò LATIN CAPITAL LETTER O WITH GRAVE
░█▀█@
░█░█@
░▀▀▀@@
0x00D3 Ó LATIN CAPITAL LETTER O WITH ACUTE
░█▀█@
░█░█@
░▀▀▀@@
0x00D4 Ô LATIN CAPITAL LETTER O WITH CIRCUMFLEX
░█▀█@
░█░█@
░▀▀▀@@
0x00D5 Õ LATIN CAPITAL LETTER O WITH TILDE
░█▀█@
░█░█@
░▀▀▀@@
0x00D8 Ø LATIN CAPITAL LETTER O WITH STROKE
░█▀█@
░█░█@
░▀▀▀@@
0x00D9 Ù LATIN CAPITAL LETTER U WITH GRAVE
░█░█@
░█░█@
░▀▀▀@@
0x00DA Ú LATIN CAPITAL LETTER U WITH ACUTE
░█░█@
░█░█@
░▀▀▀@@
0x00DB Û LATIN CAPITAL LETTER U WITH CIRCUMFLEX
░█░█@
░█░█@
░▀▀▀@@
0x00DD Ý LATIN CAPITAL LETTER Y WITH ACUTE
░█░█@
░░█░@
░░▀░@@
0x00E0 à LATIN SMALL LETTER A WITH GRAVE
░█▀█@
░█▀█@
░▀░▀@@
0x00E1 á LATIN SMALL LETTER A WITH ACUTE
░█▀█@
░█▀█@
░▀░▀@@
0x00E2 â LATIN SMALL LETTER A WITH CIRCUMFLEX
░█▀█@
░█▀█@
░▀░▀@@
0x00E3 ã LATIN SMALL LETTER A WITH TILDE
░█▀█@
░█▀█@
░▀░▀@@
0x00E5 å LATIN SMALL LETTER A WITH RING ABOVE
░█▀█@
░█▀█@
░▀░▀@@
0x00E6 æ LATIN SMALL LETTER AE
░█▀█▀▀@
░█▀█▀▀@
░▀░▀▀▀@@
0x00E7 ç LATIN SMALL LETTER C WITH CEDILLA
░█▀▀@
░█░░@
░▀▀▀@@
0x00E8 è LATIN SMALL LETTER E WITH GRAVE
░█▀▀@
░█▀▀@
░▀▀▀@@
0x00E9 é LATIN SMALL LETTER E WITH ACUTE
░█▀▀@
░█▀▀@
░▀▀▀@@
0x00EA ê LATIN SMALL LETTER E WITH CIRCUMFLEX
░█▀▀@
░█▀▀@
░▀▀▀@@
0x00EB ë LATIN SMALL LETTER E WITH DIAERESIS
░█▀▀@
░█▀▀@
░▀▀▀@@
0x00EC ì LATIN SMALL LETTER I WITH GRAVE
░▀█▀@
░░█░@
░▀▀▀@@
0x00ED í LATIN SMALL LETTER I WITH ACUTE
░▀█▀@
░░█░@
░▀▀▀@@
0x00EE î LATIN SMALL LETTER I WITH CIRCUMFLEX
░▀█▀@
░░█░@
░▀▀▀@@
0x00EF ï LATIN SMALL LETTER I WITH DIAERESIS
░▀█▀@
░░█░@
░▀▀▀@@
0x00F1 ñ LATIN SMALL LETTER N WITH TILDE
░█▀█@
░█░█@
░▀░▀@@
0x00F2 ò LATIN SMALL LETTER O WITH GRAVE
░█▀█@
░█░█@
░▀▀▀@@
0x00F3 ó LATIN SMALL LETTER O WITH ACUTE
░█▀█@
░█░█@
░▀▀▀@@
0x00F4 ô LATIN SMALL LETTER O WITH CIRCUMFLEX
░█▀█@
░█░█@
░▀▀▀@@
0x00F5 õ LATIN SMALL LETTER O WITH TILDE
░█▀█@
░█░█@
░▀▀▀@@
0x00F8 ø LATIN SMALL LETTER O WITH STROKE
░█▀█@
░█░█@
░▀▀▀@@
0x00F9 ù LATIN SMALL LETTER U WITH GRAVE
░█░█@
░█░█@
░▀▀▀@@
0x00FA ú LATIN SMALL LETTER U WITH ACUTE
░█░█@
░█░█@
░▀▀▀@@
0x00FB û LATIN SMALL LETTER U WITH CIRCUMFLEX
░█░█@
░█░█@
░▀▀▀@@
0x00FC ü LATIN SMALL LETTER U WITH DIAERESIS
░█░█@
░█░█@
░▀▀▀@@
0x00FD ý LATIN SMALL LETTER Y WITH ACUTE
░█░█@
░░█░@
░░▀░@@
0x00FF ÿ LATIN SMALL LETTER Y WITH DIAERESIS
░█░█@
░░█░@
░░▀░@@
0x0153 œ LATIN SMALL LIGATURE OE
░█▀█▀▀@
░█░█▀▀@
░▀▀▀▀▀@@
@@ -0,0 +1 @@
{"version":3,"file":"traversal.d.ts","sourceRoot":"https://raw.githubusercontent.com/fb55/domutils/0ab8bcf1ecfc70dfc93291a4cb2496578ac25e9c/src/","sources":["traversal.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,OAAO,EACP,SAAS,EACT,OAAO,EACP,UAAU,EAEb,MAAM,YAAY,CAAC;AAEpB;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,OAAO,GAAG,SAAS,EAAE,CAEtD;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,OAAO,GAAG,UAAU,GAAG,IAAI,CAAC;AAY5D;;;;;;;;;;GAUG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,EAAE,CAepD;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAC7B,IAAI,EAAE,OAAO,EACb,IAAI,EAAE,MAAM,GACb,MAAM,GAAG,SAAS,CAEpB;AAED;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAM9D;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,CAE7C;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,GAAG,IAAI,CAIhE;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,GAAG,IAAI,CAIhE"}
@@ -0,0 +1,24 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.unescape = void 0;
/**
* Un-escape a string that has been escaped with {@link escape}.
*
* If the {@link windowsPathsNoEscape} option is used, then square-brace
* escapes are removed, but not backslash escapes. For example, it will turn
* the string `'[*]'` into `*`, but it will not turn `'\\*'` into `'*'`,
* becuase `\` is a path separator in `windowsPathsNoEscape` mode.
*
* When `windowsPathsNoEscape` is not set, then both brace escapes and
* backslash escapes are removed.
*
* Slashes (and backslashes in `windowsPathsNoEscape` mode) cannot be escaped
* or unescaped.
*/
const unescape = (s, { windowsPathsNoEscape = false, } = {}) => {
return windowsPathsNoEscape
? s.replace(/\[([^\/\\])\]/g, '$1')
: s.replace(/((?!\\).|^)\[([^\/\\])\]/g, '$1$2').replace(/\\([^\/])/g, '$1');
};
exports.unescape = unescape;
//# sourceMappingURL=unescape.js.map
@@ -0,0 +1 @@
module.exports={A:{A:{"1":"B","2":"K D E F wC","164":"A"},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 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","2":"xC TC J ZB 0C 1C","8":"6 7 8 9 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","328":"mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B"},D:{"1":"0 1 2 3 4 5 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","2":"6 7 J ZB K D E F A B C L M G N O P aB","8":"8 9 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","584":"xB yB zB"},E:{"1":"L M G 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","2":"J ZB K 2C ZC 3C","8":"D E F A B C 4C 5C 6C aC NC","1096":"OC"},F:{"1":"0 1 2 3 4 5 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","2":"F B C FD GD HD ID NC uC JD OC","8":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB","584":"kB lB mB"},G:{"1":"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","8":"E ZC KD vC LD MD ND OD PD QD RD SD TD UD VD WD","6148":"XD"},H:{"2":"hD"},I:{"1":"I","8":"TC J iD jD kD lD vC mD nD"},J:{"8":"D A"},K:{"1":"H","2":"A","8":"B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"B","36":"A"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD aC tD uD vD wD xD QC RC SC yD","2":"oD","8":"J"},Q:{"1":"zD"},R:{"1":"0D"},S:{"1":"2D","328":"1D"}},B:2,C:"Pointer events",D:true};
@@ -0,0 +1,6 @@
function _setPrototypeOf(t, e) {
return module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
return t.__proto__ = e, t;
}, module.exports.__esModule = true, module.exports["default"] = module.exports, _setPrototypeOf(t, e);
}
module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
@@ -0,0 +1,30 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getExperimentalParserPlugins = void 0;
/**
* Returns a list of babel parser plugin names
* @param importOrderParserPlugins array of experimental babel parser plugins
* @returns list of parser plugins to be passed to babel parser
*/
var getExperimentalParserPlugins = function (importOrderParserPlugins) {
return importOrderParserPlugins.map(function (pluginNameOrJson) {
// ParserPlugin can be either a string or and array of [name: string, options: object]
// in prettier options the array will be sent in a JSON string
var isParserPluginWithOptions = pluginNameOrJson.startsWith('[');
var plugin;
if (isParserPluginWithOptions) {
try {
plugin = JSON.parse(pluginNameOrJson);
}
catch (e) {
throw Error('Invalid JSON in importOrderParserPlugins: ' +
pluginNameOrJson);
}
}
else {
plugin = pluginNameOrJson;
}
return plugin;
});
};
exports.getExperimentalParserPlugins = getExperimentalParserPlugins;
@@ -0,0 +1 @@
{"mappings":";;;AAAA;;;;;;;;;;CAUC;;AAoCM,SAAS,0CAAgB,KAAyB,EAAE,KAAoB,EAAE,GAAuC;QAEtG;IADhB,IAAI,iBAAC,aAAa,aAAE,SAAS,EAAC,GAAG,CAAA,GAAA,kBAAU,EAAE,OAAO,OAAO;IAC3D,IAAI,aAAY,qBAAA,MAAM,IAAI,CAAC,MAAM,cAAjB,yCAAA,mBAAmB,GAAG;IACtC,IAAI,aAAa,QAAQ,MAAM,UAAU,CAAC,mBAAmB,CAAC,GAAG,CAAC,YAAY;QAC5E,cAAc,IAAI,GAAG;QACrB,cAAc,EAAE,GAAG,CAAA,GAAA,yCAAQ,EAAE,OAAO,MAAM,IAAI,CAAC,SAAS,EAAG;IAC7D;IAEA,OAAO;uBACL;mBACA;IACF;AACF","sources":["packages/@react-aria/table/src/useTableCell.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 {DOMAttributes, FocusableElement, RefObject} from '@react-types/shared';\nimport {getCellId} from './utils';\nimport {GridNode} from '@react-types/grid';\nimport {TableState} from '@react-stately/table';\nimport {useGridCell} from '@react-aria/grid';\n\nexport interface AriaTableCellProps {\n /** An object representing the table cell. Contains all the relevant information that makes up the row header. */\n node: GridNode<unknown>,\n /** Whether the cell is contained in a virtual scroller. */\n isVirtualized?: boolean,\n /** Whether selection should occur on press up instead of press down. */\n shouldSelectOnPressUp?: boolean,\n /**\n * Handler that is called when a user performs an action on the cell.\n * Please use onCellAction at the collection level instead.\n * @deprecated\n **/\n onAction?: () => void\n}\n\nexport interface TableCellAria {\n /** Props for the table cell element. */\n gridCellProps: DOMAttributes,\n /** Whether the cell is currently in a pressed state. */\n isPressed: boolean\n}\n\n/**\n * Provides the behavior and accessibility implementation for a cell in a table.\n * @param props - Props for the cell.\n * @param state - State of the table, as returned by `useTableState`.\n * @param ref - The ref attached to the cell element.\n */\nexport function useTableCell<T>(props: AriaTableCellProps, state: TableState<T>, ref: RefObject<FocusableElement | null>): TableCellAria {\n let {gridCellProps, isPressed} = useGridCell(props, state, ref);\n let columnKey = props.node.column?.key;\n if (columnKey != null && state.collection.rowHeaderColumnKeys.has(columnKey)) {\n gridCellProps.role = 'rowheader';\n gridCellProps.id = getCellId(state, props.node.parentKey!, columnKey);\n }\n\n return {\n gridCellProps,\n isPressed\n };\n}\n"],"names":[],"version":3,"file":"useTableCell.module.js.map"}
@@ -0,0 +1 @@
{"name":"agentkeepalive","version":"4.6.0","requiresBuild":false,"files":{"LICENSE":{"checkedAt":1794532121373,"integrity":"sha512-UtUpWzXq8E+jtckFu04WoZJeDU57kDYU7hzgxQ1ULLS1K8Vd0vCKmuwhCqVIcjpEAv9e3tDRlieuYW5EYTRw+A==","mode":420,"size":1144},"lib/agent.js":{"checkedAt":1794532121373,"integrity":"sha512-I3s/n+SrwgQzi8uZaxRvCnCuSHyF6UbV0fk6JvvFHZOF+MkeecojW9AeZdflPa57H7C/O7s3OsOS9hUkTgAUMA==","mode":420,"size":15296},"browser.js":{"checkedAt":1794532121374,"integrity":"sha512-FAkwpnO6Ni9XIXlRMdheK2wjL7aiL55Y+2XuckhCAWVgDBcpXxZ/h/SjT2Y1ZJrhf14N3AmMKquwLW9EhHY2Dw==","mode":420,"size":144},"lib/constants.js":{"checkedAt":1794532121374,"integrity":"sha512-HrbGiA5zRwTou9fQ0TnipsPtPTPyHU0rz9aO58yhxjF0bq2rqqS0mK6whFGk4xL8xq/E8O3N997j3qpdxZWWtA==","mode":420,"size":559},"lib/https_agent.js":{"checkedAt":1794532121374,"integrity":"sha512-O/3Kdsqa4bw3RTLRjxh9kc8/BfVCFQhcjAKFlp3bErHvrAYrVNNcOixCU8gRuJY0gN4ueLVnRHtAYBcOSpFZDQ==","mode":420,"size":1264},"index.js":{"checkedAt":1794532121374,"integrity":"sha512-ZVzDfy1JhDf4pk2ddWAlIR1uC2e2VIEJbDiJAw2FdonUndYML4Ybz/QTvNGKw3sKj5d87FZIfgyDJ/7BimSzeA==","mode":420,"size":236},"package.json":{"checkedAt":1794532121374,"integrity":"sha512-+mB7H8pBvY05b3XcBaojE5EClpQQr7cmC1BADxC6y1GtwndASWy9+18ZJ4G2x7IiCAttz3JjtB0sxyYUHJOcFw==","mode":420,"size":1324},"README.md":{"checkedAt":1794532121374,"integrity":"sha512-gotdxGHMveUwR/MtXf2MnC7Mp+01qfhCjX+mU2IlrsA0umiIcCTj7O9B6QFcHvNQKrR69yVQ4g/xeR00pX2TlA==","mode":420,"size":11813},"index.d.ts":{"checkedAt":1794532121375,"integrity":"sha512-b3iQXAWHi633PD86mCCnurHRT1W+ChP7V5D/orExoGRq0vHSOyWoK0chF2Qsyc9OoSQU3k/SCvGgWrIxhVYTKw==","mode":420,"size":2136}}}
@@ -0,0 +1,8 @@
import type { TSchema, SchemaOptions } from '../schema/index';
import { Kind } from '../symbols/index';
export interface TUnknown extends TSchema {
[Kind]: 'Unknown';
static: unknown;
}
/** `[Json]` Creates an Unknown type */
export declare function Unknown(options?: SchemaOptions): TUnknown;
@@ -0,0 +1,152 @@
/// <reference types="node" />
// Note: marking anything protected or private in the exported
// class will limit Minipass's ability to be used as the base
// for mixin classes.
import { EventEmitter } from 'events'
import { Stream } from 'stream'
export namespace Minipass {
export type Encoding = BufferEncoding | 'buffer' | null
export interface Writable extends EventEmitter {
end(): any
write(chunk: any, ...args: any[]): any
}
export interface Readable extends EventEmitter {
pause(): any
resume(): any
pipe(): any
}
export type DualIterable<T> = Iterable<T> & AsyncIterable<T>
export type ContiguousData =
| Buffer
| ArrayBufferLike
| ArrayBufferView
| string
export type BufferOrString = Buffer | string
export interface SharedOptions {
async?: boolean
signal?: AbortSignal
}
export interface StringOptions extends SharedOptions {
encoding: BufferEncoding
objectMode?: boolean
}
export interface BufferOptions extends SharedOptions {
encoding?: null | 'buffer'
objectMode?: boolean
}
export interface ObjectModeOptions extends SharedOptions {
objectMode: true
}
export interface PipeOptions {
end?: boolean
proxyErrors?: boolean
}
export type Options<T> = T extends string
? StringOptions
: T extends Buffer
? BufferOptions
: ObjectModeOptions
}
export class Minipass<
RType extends any = Buffer,
WType extends any = RType extends Minipass.BufferOrString
? Minipass.ContiguousData
: RType
>
extends Stream
implements Minipass.DualIterable<RType>
{
static isStream(stream: any): stream is Minipass.Readable | Minipass.Writable
readonly bufferLength: number
readonly flowing: boolean
readonly writable: boolean
readonly readable: boolean
readonly aborted: boolean
readonly paused: boolean
readonly emittedEnd: boolean
readonly destroyed: boolean
/**
* Technically writable, but mutating it can change the type,
* so is not safe to do in TypeScript.
*/
readonly objectMode: boolean
async: boolean
/**
* Note: encoding is not actually read-only, and setEncoding(enc)
* exists. However, this type definition will insist that TypeScript
* programs declare the type of a Minipass stream up front, and if
* that type is string, then an encoding MUST be set in the ctor. If
* the type is Buffer, then the encoding must be missing, or set to
* 'buffer' or null. If the type is anything else, then objectMode
* must be set in the constructor options. So there is effectively
* no allowed way that a TS program can set the encoding after
* construction, as doing so will destroy any hope of type safety.
* TypeScript does not provide many options for changing the type of
* an object at run-time, which is what changing the encoding does.
*/
readonly encoding: Minipass.Encoding
// setEncoding(encoding: Encoding): void
// Options required if not reading buffers
constructor(
...args: RType extends Buffer
? [] | [Minipass.Options<RType>]
: [Minipass.Options<RType>]
)
write(chunk: WType, cb?: () => void): boolean
write(chunk: WType, encoding?: Minipass.Encoding, cb?: () => void): boolean
read(size?: number): RType
end(cb?: () => void): this
end(chunk: any, cb?: () => void): this
end(chunk: any, encoding?: Minipass.Encoding, cb?: () => void): this
pause(): void
resume(): void
promise(): Promise<void>
collect(): Promise<RType[]>
concat(): RType extends Minipass.BufferOrString ? Promise<RType> : never
destroy(er?: any): void
pipe<W extends Minipass.Writable>(dest: W, opts?: Minipass.PipeOptions): W
unpipe<W extends Minipass.Writable>(dest: W): void
/**
* alias for on()
*/
addEventHandler(event: string, listener: (...args: any[]) => any): this
on(event: string, listener: (...args: any[]) => any): this
on(event: 'data', listener: (chunk: RType) => any): this
on(event: 'error', listener: (error: any) => any): this
on(
event:
| 'readable'
| 'drain'
| 'resume'
| 'end'
| 'prefinish'
| 'finish'
| 'close',
listener: () => any
): this
[Symbol.iterator](): Generator<RType, void, void>
[Symbol.asyncIterator](): AsyncGenerator<RType, void, void>
}
@@ -0,0 +1 @@
{"version":3,"file":"PlanParamsOperations.d.ts","sourceRoot":"","sources":["../../../../src/planning/models/PlanParamsOperations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,CAAC,SAAS,EACrB,iBAAiB,EAAE,iBAAiB,CAAC,SAAS,CAAC,KAC5C,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,GAAG,SAAS,CAAC;IAC9C,kBAAkB,EAAE,CAAC,SAAS,EAC5B,iBAAiB,EAAE,iBAAiB,CAAC,SAAS,CAAC,KAC5C,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IAClD,QAAQ,CAAC,gBAAgB,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,aAAa,CAAC;IAC5D,QAAQ,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,UAAU,GAAG,SAAS,CAAC;IACtE,UAAU,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,OAAO,CAAC,SAAS,CAAC,KAAK,IAAI,CAAC;IAC7D,QAAQ,CAAC,uBAAuB,EAAE,CAChC,IAAI,EAAE,eAAe,EACrB,OAAO,EAAE,2BAA2B,KACjC,IAAI,CAAC;IACV,QAAQ,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,UAAU,KAAK,IAAI,CAAC;CAC7E"}
@@ -0,0 +1,22 @@
import type { CreateNodeContext } from '../doc/createNode';
import type { CollectionItem } from '../parse/cst';
import type { Schema } from '../schema/Schema';
import type { StringifyContext } from '../stringify/stringify';
import { addPairToJSMap } from './addPairToJSMap';
import { NODE_TYPE } from './identity';
import type { Node } from './Node';
import type { ToJSContext } from './toJS';
export declare function createPair(key: unknown, value: unknown, ctx: CreateNodeContext): Pair<Node, Node>;
export declare class Pair<K = unknown, V = unknown> {
readonly [NODE_TYPE]: symbol;
/** Always Node or null when parsed, but can be set to anything. */
key: K;
/** Always Node or null when parsed, but can be set to anything. */
value: V | null;
/** The CST token that was composed into this pair. */
srcToken?: CollectionItem;
constructor(key: K, value?: V | null);
clone(schema?: Schema): Pair<K, V>;
toJSON(_?: unknown, ctx?: ToJSContext): ReturnType<typeof addPairToJSMap>;
toString(ctx?: StringifyContext, onComment?: () => void, onChompKeep?: () => void): string;
}
@@ -0,0 +1,356 @@
# @xmldom/xmldom
***Since version 0.7.0 this package is published to npm as [`@xmldom/xmldom`](https://www.npmjs.com/package/@xmldom/xmldom) and no longer as [`xmldom`](https://www.npmjs.com/package/xmldom), because [we are no longer able to publish `xmldom`](https://github.com/xmldom/xmldom/issues/271).***
*For better readability in the docs we will continue to talk about this library as "xmldom".*
[![license(MIT)](https://img.shields.io/npm/l/@xmldom/xmldom?color=blue&style=flat-square)](https://github.com/xmldom/xmldom/blob/master/LICENSE)
[![npm](https://img.shields.io/npm/v/@xmldom/xmldom?style=flat-square)](https://www.npmjs.com/package/@xmldom/xmldom)
[![snyk.io package health](https://snyk.io/advisor/npm-package/@xmldom/xmldom/badge.svg)](https://snyk.io/advisor/npm-package/@xmldom/xmldom)
[![bug issues](https://img.shields.io/github/issues/xmldom/xmldom/bug?color=red&style=flat-square)](https://github.com/xmldom/xmldom/issues?q=is%3Aissue+is%3Aopen+label%3Abug)
[![help-wanted issues](https://img.shields.io/github/issues/xmldom/xmldom/help-wanted?color=darkgreen&style=flat-square)](https://github.com/xmldom/xmldom/issues?q=is%3Aissue+is%3Aopen+label%3Ahelp-wanted)
[![Mutation report](https://img.shields.io/endpoint?style=flat-square&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fxmldom%2Fxmldom%2Fmaster)](https://dashboard.stryker-mutator.io/reports/github.com/xmldom/xmldom/master)
xmldom is a javascript [ponyfill](https://ponyfill.com/) to provide the following APIs [that are present in modern browsers](https://caniuse.com/xml-serializer) to other runtimes:
- convert an XML string into a DOM tree
```
new DOMParser().parseFromString(xml, mimeType) => Document
```
- create, access and modify a DOM tree
```
new DOMImplementation().createDocument(...) => Document
```
- serialize a DOM tree back into an XML string
```
new XMLSerializer().serializeToString(node) => string
```
The target runtimes `xmldom` supports are currently Node >= v10 (ES5) and Rhino ([not tested as part of CI](https://github.com/xmldom/xmldom/discussions/214)).
When deciding how to fix bugs or implement features, `xmldom` tries to stay as close as possible to the various [related specifications/standards](#specs).
As indicated by the version starting with `0.`, this implementation is not feature complete and some implemented features differ from what the specifications describe.
**Issues and PRs for such differences are always welcome, even when they only provide a failing test case.**
This project was forked from it's [original source](https://github.com/jindw/xmldom) in 2019, more details about that transition can be found in the [CHANGELOG](CHANGELOG.md#maintainer-changes).
## Usage
### Install:
> npm install @xmldom/xmldom
### Example:
[In NodeJS](examples/nodejs/src/index.js)
```javascript
const { DOMParser, XMLSerializer } = require('@xmldom/xmldom')
const source = `<xml xmlns="a">
<child>test</child>
<child/>
</xml>`
const doc = new DOMParser().parseFromString(source, 'text/xml')
const serialized = new XMLSerializer().serializeToString(doc)
```
Note: in Typescript ~and ES6~(see #316) you can use the `import` approach, as follows:
```typescript
import { DOMParser } from '@xmldom/xmldom'
```
## API Reference
* [DOMParser](https://developer.mozilla.org/en-US/docs/Web/API/DOMParser):
```javascript
parseFromString(xmlsource,mimeType)
```
* **options extension** _by xmldom_ (not DOM standard!!)
```javascript
//added the options argument
new DOMParser(options)
//errorHandler is supported
new DOMParser({
/**
* locator is always need for error position info
*/
locator:{},
/**
* you can override the errorHandler for xml parser
* @link http://www.saxproject.org/apidoc/org/xml/sax/ErrorHandler.html
*/
errorHandler:{warning:function(w){console.warn(w)},error:callback,fatalError:callback}
//only callback model
//errorHandler:function(level,msg){console.log(level,msg)}
})
```
* [XMLSerializer](https://developer.mozilla.org/en-US/docs/Web/API/XMLSerializer)
```javascript
serializeToString(node)
```
### DOM level2 method and attribute:
* [Node](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-1950641247)
readonly class properties (aka `NodeType`),
these can be accessed from any `Node` instance `node`:
`if (node.nodeType === node.ELEMENT_NODE) {...`
1. `ELEMENT_NODE` (`1`)
2. `ATTRIBUTE_NODE` (`2`)
3. `TEXT_NODE` (`3`)
4. `CDATA_SECTION_NODE` (`4`)
5. `ENTITY_REFERENCE_NODE` (`5`)
6. `ENTITY_NODE` (`6`)
7. `PROCESSING_INSTRUCTION_NODE` (`7`)
8. `COMMENT_NODE` (`8`)
9. `DOCUMENT_NODE` (`9`)
10. `DOCUMENT_TYPE_NODE` (`10`)
11. `DOCUMENT_FRAGMENT_NODE` (`11`)
12. `NOTATION_NODE` (`12`)
attribute:
- `nodeValue` | `prefix`
readonly attribute:
- `nodeName` | `nodeType` | `parentNode` | `childNodes` | `firstChild` | `lastChild` | `previousSibling` | `nextSibling` | `attributes` | `ownerDocument` | `namespaceURI` | `localName`
method:
* `insertBefore(newChild, refChild)`
* `replaceChild(newChild, oldChild)`
* `removeChild(oldChild)`
* `appendChild(newChild)`
* `hasChildNodes()`
* `cloneNode(deep)`
* `normalize()`
* `isSupported(feature, version)`
* `hasAttributes()`
* [DOMException](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/ecma-script-binding.html)
extends the Error type thrown as part of DOM API.
readonly class properties:
- `INDEX_SIZE_ERR` (`1`)
- `DOMSTRING_SIZE_ERR` (`2`)
- `HIERARCHY_REQUEST_ERR` (`3`)
- `WRONG_DOCUMENT_ERR` (`4`)
- `INVALID_CHARACTER_ERR` (`5`)
- `NO_DATA_ALLOWED_ERR` (`6`)
- `NO_MODIFICATION_ALLOWED_ERR` (`7`)
- `NOT_FOUND_ERR` (`8`)
- `NOT_SUPPORTED_ERR` (`9`)
- `INUSE_ATTRIBUTE_ERR` (`10`)
- `INVALID_STATE_ERR` (`11`)
- `SYNTAX_ERR` (`12`)
- `INVALID_MODIFICATION_ERR` (`13`)
- `NAMESPACE_ERR` (`14`)
- `INVALID_ACCESS_ERR` (`15`)
attributes:
- `code` with a value matching one of the above constants.
* [DOMImplementation](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-102161490)
method:
- `hasFeature(feature, version)`
- `createDocumentType(qualifiedName, publicId, systemId)`
- `createDocument(namespaceURI, qualifiedName, doctype)`
* [Document](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#i-Document) : Node
readonly attribute:
- `doctype` | `implementation` | `documentElement`
method:
- `createElement(tagName)`
- `createDocumentFragment()`
- `createTextNode(data)`
- `createComment(data)`
- `createCDATASection(data)`
- `createProcessingInstruction(target, data)`
- `createAttribute(name)`
- `createEntityReference(name)`
- `getElementsByTagName(tagname)`
- `importNode(importedNode, deep)`
- `createElementNS(namespaceURI, qualifiedName)`
- `createAttributeNS(namespaceURI, qualifiedName)`
- `getElementsByTagNameNS(namespaceURI, localName)`
- `getElementById(elementId)`
* [DocumentFragment](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-B63ED1A3) : Node
* [Element](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-745549614) : Node
readonly attribute:
- `tagName`
method:
- `getAttribute(name)`
- `setAttribute(name, value)`
- `removeAttribute(name)`
- `getAttributeNode(name)`
- `setAttributeNode(newAttr)`
- `removeAttributeNode(oldAttr)`
- `getElementsByTagName(name)`
- `getAttributeNS(namespaceURI, localName)`
- `setAttributeNS(namespaceURI, qualifiedName, value)`
- `removeAttributeNS(namespaceURI, localName)`
- `getAttributeNodeNS(namespaceURI, localName)`
- `setAttributeNodeNS(newAttr)`
- `getElementsByTagNameNS(namespaceURI, localName)`
- `hasAttribute(name)`
- `hasAttributeNS(namespaceURI, localName)`
* [Attr](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-637646024) : Node
attribute:
- `value`
readonly attribute:
- `name` | `specified` | `ownerElement`
* [NodeList](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-536297177)
readonly attribute:
- `length`
method:
- `item(index)`
* [NamedNodeMap](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-1780488922)
readonly attribute:
- `length`
method:
- `getNamedItem(name)`
- `setNamedItem(arg)`
- `removeNamedItem(name)`
- `item(index)`
- `getNamedItemNS(namespaceURI, localName)`
- `setNamedItemNS(arg)`
- `removeNamedItemNS(namespaceURI, localName)`
* [CharacterData](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-FF21A306) : Node
method:
- `substringData(offset, count)`
- `appendData(arg)`
- `insertData(offset, arg)`
- `deleteData(offset, count)`
- `replaceData(offset, count, arg)`
* [Text](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-1312295772) : CharacterData
method:
- `splitText(offset)`
* [CDATASection](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-667469212)
* [Comment](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-1728279322) : CharacterData
* [DocumentType](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-412266927)
readonly attribute:
- `name` | `entities` | `notations` | `publicId` | `systemId` | `internalSubset`
* Notation : Node
readonly attribute:
- `publicId` | `systemId`
* Entity : Node
readonly attribute:
- `publicId` | `systemId` | `notationName`
* EntityReference : Node
* ProcessingInstruction : Node
attribute:
- `data`
readonly attribute:
- `target`
### DOM level 3 support:
* [Node](http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-textContent)
attribute:
- `textContent`
method:
- `isDefaultNamespace(namespaceURI)`
- `lookupNamespaceURI(prefix)`
### DOM extension by xmldom
* [Node] Source position extension;
attribute:
- `lineNumber` //number starting from `1`
- `columnNumber` //number starting from `1`
## Specs
The implementation is based on several specifications:
<!-- Should open in new tab and the links in the SVG should be clickable there! -->
<a href="https://raw.githubusercontent.com/xmldom/xmldom/master/docs/specs.svg" target="_blank" rel="noopener noreferrer nofollow" >![Overview of related specifications and their relations](docs/specs.svg)</a>
### DOM Parsing and Serialization
From the [W3C DOM Parsing and Serialization (WD 2016)](https://www.w3.org/TR/2016/WD-DOM-Parsing-20160517/) `xmldom` provides an implementation for the interfaces:
- `DOMParser`
- `XMLSerializer`
Note that there are some known deviations between this implementation and the W3 specifications.
Note: [The latest version of this spec](https://w3c.github.io/DOM-Parsing/) has the status "Editors Draft", since it is under active development. One major change is that [the definition of the `DOMParser` interface has been moved to the HTML spec](https://w3c.github.io/DOM-Parsing/#the-domparser-interface)
### DOM
The original author claims that xmldom implements [DOM Level 2] in a "fully compatible" way and some parts of [DOM Level 3], but there are not enough tests to prove this. Both Specifications are now superseded by the [DOM Level 4 aka Living standard] wich has a much broader scope than xmldom.
xmldom implements the following interfaces (most constructors are currently not exposed):
- `Attr`
- `CDATASection`
- `CharacterData`
- `Comment`
- `Document`
- `DocumentFragment`
- `DocumentType`
- `DOMException` (constructor exposed)
- `DOMImplementation` (constructor exposed)
- `Element`
- `Entity`
- `EntityReference`
- `LiveNodeList`
- `NamedNodeMap`
- `Node` (constructor exposed)
- `NodeList`
- `Notation`
- `ProcessingInstruction`
- `Text`
more details are available in the (incomplete) [API Reference](#api-reference) section.
### HTML
xmldom does not have any goal of supporting the full spec, but it has some capability to parse, report and serialize things differently when "detecting HTML" (by checking the default namespace).
There is an upcoming change to better align the implementation with the latest specs, related to <https://github.com/xmldom/xmldom/issues/203>.
### SAX, XML, XMLNS
xmldom has an own SAX parser implementation to do the actual parsing, which implements some interfaces in alignment with the Java interfaces SAX defines:
- `XMLReader`
- `DOMHandler`
There is an idea/proposal to make it possible to replace it with something else in <https://github.com/xmldom/xmldom/issues/55>
@@ -0,0 +1,279 @@
"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/components/navbar.ts
var navbar_exports = {};
__export(navbar_exports, {
navbar: () => navbar
});
module.exports = __toCommonJS(navbar_exports);
// src/utils/tv.ts
var import_tailwind_variants = require("tailwind-variants");
// src/utils/tw-merge-config.ts
var COMMON_UNITS = ["small", "medium", "large"];
var twMergeConfig = {
theme: {
opacity: ["disabled"],
spacing: ["divider"],
borderWidth: COMMON_UNITS,
borderRadius: COMMON_UNITS
},
classGroups: {
shadow: [{ shadow: COMMON_UNITS }],
"font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
"bg-image": [
"bg-stripe-gradient-default",
"bg-stripe-gradient-primary",
"bg-stripe-gradient-secondary",
"bg-stripe-gradient-success",
"bg-stripe-gradient-warning",
"bg-stripe-gradient-danger"
]
}
};
// src/utils/tv.ts
var tv = (options, config) => {
var _a, _b, _c;
return (0, import_tailwind_variants.tv)(options, {
...config,
twMerge: (_a = config == null ? void 0 : config.twMerge) != null ? _a : true,
twMergeConfig: {
...config == null ? void 0 : config.twMergeConfig,
theme: {
...(_b = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _b.theme,
...twMergeConfig.theme
},
classGroups: {
...(_c = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _c.classGroups,
...twMergeConfig.classGroups
}
}
});
};
// src/utils/classes.ts
var dataFocusVisibleClasses = [
"outline-none",
"data-[focus-visible=true]:z-10",
"data-[focus-visible=true]:outline-2",
"data-[focus-visible=true]:outline-focus",
"data-[focus-visible=true]:outline-offset-2"
];
// src/components/navbar.ts
var navbar = tv({
slots: {
base: [
"flex",
"z-40",
"w-full",
"h-auto",
"items-center",
"justify-center",
"data-[menu-open=true]:border-none"
],
wrapper: [
"z-40",
"flex",
"px-6",
"gap-4",
"w-full",
"flex-row",
"relative",
"flex-nowrap",
"items-center",
"justify-between",
"h-[var(--navbar-height)]"
],
toggle: [
"group",
"flex",
"items-center",
"justify-center",
"w-6",
"h-full",
"outline-none",
"rounded-small",
"tap-highlight-transparent",
...dataFocusVisibleClasses
],
srOnly: ["sr-only"],
toggleIcon: [
"w-full",
"h-full",
"pointer-events-none",
"flex",
"flex-col",
"items-center",
"justify-center",
"text-inherit",
"group-data-[pressed=true]:opacity-70",
"transition-opacity",
"before:content-['']",
"before:block",
"before:h-px",
"before:w-6",
"before:bg-current",
"before:transition-transform",
"before:duration-150",
"before:-translate-y-1",
"before:rotate-0",
"group-data-[open=true]:before:translate-y-px",
"group-data-[open=true]:before:rotate-45",
"after:content-['']",
"after:block",
"after:h-px",
"after:w-6",
"after:bg-current",
"after:transition-transform",
"after:duration-150",
"after:translate-y-1",
"after:rotate-0",
"group-data-[open=true]:after:translate-y-0",
"group-data-[open=true]:after:-rotate-45"
],
brand: [
"flex",
"basis-0",
"flex-row",
"flex-grow",
"flex-nowrap",
"justify-start",
"bg-transparent",
"items-center",
"no-underline",
"text-medium",
"whitespace-nowrap",
"box-border"
],
content: [
"flex",
"gap-4",
"h-full",
"flex-row",
"flex-nowrap",
"items-center",
"data-[justify=start]:justify-start",
"data-[justify=start]:flex-grow",
"data-[justify=start]:basis-0",
"data-[justify=center]:justify-center",
"data-[justify=end]:justify-end",
"data-[justify=end]:flex-grow",
"data-[justify=end]:basis-0"
],
item: [
"text-medium",
"whitespace-nowrap",
"box-border",
"list-none",
"data-[active=true]:font-semibold"
],
menu: [
"z-30",
"px-6",
"pt-2",
"fixed",
"flex",
"max-w-full",
"top-[var(--navbar-height)]",
"inset-x-0",
"bottom-0",
"w-screen",
"flex-col",
"gap-2",
"overflow-y-auto"
],
menuItem: [
"text-large",
"data-[active=true]:font-semibold"
]
},
variants: {
position: {
static: {
base: "static"
},
sticky: {
base: "sticky top-0 inset-x-0"
}
},
maxWidth: {
sm: {
wrapper: "max-w-[640px]"
},
md: {
wrapper: "max-w-[768px]"
},
lg: {
wrapper: "max-w-[1024px]"
},
xl: {
wrapper: "max-w-[1280px]"
},
"2xl": {
wrapper: "max-w-[1536px]"
},
full: {
wrapper: "max-w-full"
}
},
hideOnScroll: {
true: {
base: ["sticky", "top-0", "inset-x-0"]
}
},
isBordered: {
true: {
base: ["border-b", "border-divider"]
}
},
isBlurred: {
false: {
base: "bg-background",
menu: "bg-background"
},
true: {
base: [
"backdrop-blur-lg",
"data-[menu-open=true]:backdrop-blur-xl",
"backdrop-saturate-150",
"bg-background/70"
],
menu: ["backdrop-blur-xl", "backdrop-saturate-150", "bg-background/70"]
}
},
disableAnimation: {
true: {
menu: ["hidden", "h-[calc(100dvh_-_var(--navbar-height))]", "data-[open=true]:flex"]
}
}
},
defaultVariants: {
maxWidth: "lg",
position: "sticky",
isBlurred: true
}
});
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
navbar
});
@@ -0,0 +1,5 @@
var convert = require('./convert'),
func = convert('isNative', require('../isNative'), require('./_falseOptions'));
func.placeholder = require('./placeholder');
module.exports = func;
@@ -0,0 +1,22 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var TableRole = {
relatedConcepts: [{
module: 'ARIA',
concept: {
name: 'table'
}
}, {
module: 'HTML',
concept: {
name: 'table'
}
}],
type: 'structure'
};
var _default = TableRole;
exports.default = _default;
@@ -0,0 +1,17 @@
export {gfmTaskListItemHtml} from './lib/html.js'
export {gfmTaskListItem} from './lib/syntax.js'
/**
* Augment types.
*/
declare module 'micromark-util-types' {
/**
* Token types.
*/
interface TokenTypeMap {
taskListCheck: 'taskListCheck'
taskListCheckMarker: 'taskListCheckMarker'
taskListCheckValueChecked: 'taskListCheckValueChecked'
taskListCheckValueUnchecked: 'taskListCheckValueUnchecked'
}
}
@@ -0,0 +1,110 @@
{
"name": "is-async-function",
"version": "2.1.1",
"description": "Determine if a function is a native async function.",
"main": "index.js",
"exports": {
".": "./index.js",
"./package.json": "./package.json"
},
"scripts": {
"prepack": "npmignore --auto --commentLines=autogenerated",
"prepublishOnly": "safe-publish-latest",
"prepublish": "not-in-publish || npm run prepublishOnly",
"pretest": "npm run lint",
"test": "npm run tests-only",
"tests-only": "nyc npm run test:all",
"test:all": "npm run test:index && npm run test:uglified",
"test:index": "node test",
"test:uglified": "node test/uglified",
"posttest": "npx npm@\">= 10.2\" audit --production",
"lint": "eslint --ext=js,mjs .",
"postlint": "tsc && attw -P",
"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://github.com/inspect-js/is-async-function.git"
},
"keywords": [
"async",
"async function",
"es6",
"es2015",
"yield",
"function",
"function*"
],
"author": "Jordan Harband <ljharb@gmail.com>",
"funding": {
"url": "https://github.com/sponsors/ljharb"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/inspect-js/is-async-function/issues"
},
"dependencies": {
"async-function": "^1.0.0",
"call-bound": "^1.0.3",
"get-proto": "^1.0.1",
"has-tostringtag": "^1.0.2",
"safe-regex-test": "^1.1.0"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.17.3",
"@ljharb/eslint-config": "^21.1.1",
"@ljharb/tsconfig": "^0.2.3",
"@types/for-each": "^0.3.3",
"@types/make-async-function": "^1.0.2",
"@types/make-generator-function": "^2.0.3",
"@types/tape": "^5.8.1",
"auto-changelog": "^2.5.0",
"encoding": "^0.1.13",
"eslint": "=8.8.0",
"for-each": "^0.3.3",
"in-publish": "^2.0.1",
"make-async-function": "^1.0.0",
"make-generator-function": "^2.0.0",
"npmignore": "^0.3.1",
"nyc": "^10.3.2",
"safe-publish-latest": "^2.0.0",
"tape": "^5.9.0",
"typescript": "next",
"uglify-register": "^1.0.1"
},
"testling": {
"files": "test/index.js",
"browsers": [
"iexplore/6.0..latest",
"firefox/3.0..6.0",
"firefox/15.0..latest",
"firefox/nightly",
"chrome/4.0..10.0",
"chrome/20.0..latest",
"chrome/canary",
"opera/10.0..latest",
"opera/next",
"safari/4.0..latest",
"ipad/6.0..latest",
"iphone/6.0..latest",
"android-browser/4.2"
]
},
"engines": {
"node": ">= 0.4"
},
"auto-changelog": {
"output": "CHANGELOG.md",
"template": "keepachangelog",
"unreleased": false,
"commitLimit": false,
"backfillLimit": false,
"hideCredit": true
},
"publishConfig": {
"ignore": [
".github/workflows"
]
}
}
@@ -0,0 +1,83 @@
//@ts-check
const { execSync } = require('child_process');
const fs = require('fs');
const os = require('os');
const path = require('path');
const RELEASE_DIR = path.join(__dirname, '../build/Release');
const BUILD_FILES = [
path.join(RELEASE_DIR, 'conpty.node'),
path.join(RELEASE_DIR, 'conpty.pdb'),
path.join(RELEASE_DIR, 'conpty_console_list.node'),
path.join(RELEASE_DIR, 'conpty_console_list.pdb'),
path.join(RELEASE_DIR, 'pty.node'),
path.join(RELEASE_DIR, 'pty.pdb'),
path.join(RELEASE_DIR, 'spawn-helper'),
path.join(RELEASE_DIR, 'winpty-agent.exe'),
path.join(RELEASE_DIR, 'winpty-agent.pdb'),
path.join(RELEASE_DIR, 'winpty.dll'),
path.join(RELEASE_DIR, 'winpty.pdb')
];
const CONPTY_DIR = path.join(__dirname, '../third_party/conpty');
const CONPTY_SUPPORTED_ARCH = ['x64', 'arm64'];
console.log('\x1b[32m> Cleaning release folder...\x1b[0m');
function cleanFolderRecursive(folder) {
var files = [];
if (fs.existsSync(folder)) {
files = fs.readdirSync(folder);
files.forEach(function(file,index) {
var curPath = path.join(folder, file);
if (fs.lstatSync(curPath).isDirectory()) { // recurse
cleanFolderRecursive(curPath);
fs.rmdirSync(curPath);
} else if (BUILD_FILES.indexOf(curPath) < 0){ // delete file
fs.unlinkSync(curPath);
}
});
}
};
try {
cleanFolderRecursive(RELEASE_DIR);
} catch(e) {
console.log(e);
process.exit(1);
}
console.log(`\x1b[32m> Moving conpty.dll...\x1b[0m`);
if (os.platform() !== 'win32') {
console.log(' SKIPPED (not Windows)');
} else {
let windowsArch;
if (process.env.npm_config_arch) {
windowsArch = process.env.npm_config_arch;
console.log(` Using $npm_config_arch: ${windowsArch}`);
} else {
windowsArch = os.arch();
console.log(` Using os.arch(): ${windowsArch}`);
}
if (!CONPTY_SUPPORTED_ARCH.includes(windowsArch)) {
console.log(` SKIPPED (unsupported architecture ${windowsArch})`);
} else {
const versionFolder = fs.readdirSync(CONPTY_DIR)[0];
console.log(` Found version ${versionFolder}`);
const sourceFolder = path.join(CONPTY_DIR, versionFolder, `win10-${windowsArch}`);
const destFolder = path.join(RELEASE_DIR, 'conpty');
fs.mkdirSync(destFolder, { recursive: true });
for (const file of ['conpty.dll', 'OpenConsole.exe']) {
const sourceFile = path.join(sourceFolder, file);
const destFile = path.join(destFolder, file);
console.log(` Copying ${sourceFile} -> ${destFile}`);
fs.copyFileSync(sourceFile, destFile);
}
}
}
// console.log(`\x1b[32m> Generating compile_commands.json...\x1b[0m`);
// execSync('npx node-gyp configure -- -f compile_commands_json');
process.exit(0);
@@ -0,0 +1,42 @@
export namespace handle {
export { blockquote };
export { hardBreak as break };
export { code };
export { definition };
export { emphasis };
export { hardBreak };
export { heading };
export { html };
export { image };
export { imageReference };
export { inlineCode };
export { link };
export { linkReference };
export { list };
export { listItem };
export { paragraph };
export { root };
export { strong };
export { text };
export { thematicBreak };
}
import { blockquote } from './blockquote.js';
import { hardBreak } from './break.js';
import { code } from './code.js';
import { definition } from './definition.js';
import { emphasis } from './emphasis.js';
import { heading } from './heading.js';
import { html } from './html.js';
import { image } from './image.js';
import { imageReference } from './image-reference.js';
import { inlineCode } from './inline-code.js';
import { link } from './link.js';
import { linkReference } from './link-reference.js';
import { list } from './list.js';
import { listItem } from './list-item.js';
import { paragraph } from './paragraph.js';
import { root } from './root.js';
import { strong } from './strong.js';
import { text } from './text.js';
import { thematicBreak } from './thematic-break.js';
//# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,10 @@
/** @type {import('eslint-doc-generator').GenerateOptions} */
module.exports = {
configEmoji: [
['recommended', '✅'],
['flat/recommended', '✅'],
],
postprocess: (doc) => {
return doc.replace(/✅\s*✅/gu, '✅')
},
}
@@ -0,0 +1,17 @@
/**
* @import {Info, State} from 'mdast-util-to-markdown'
* @import {Parents, Text} from 'mdast'
*/
/**
* @param {Text} node
* @param {Parents | undefined} _
* @param {State} state
* @param {Info} info
* @returns {string}
*/
export function text(node: Text, _: Parents | undefined, state: State, info: Info): string;
import type { Text } from 'mdast';
import type { Parents } from 'mdast';
import type { State } from 'mdast-util-to-markdown';
import type { Info } from 'mdast-util-to-markdown';
//# sourceMappingURL=text.d.ts.map
@@ -0,0 +1,6 @@
import {
green
} from "../chunk-OR5PUD24.mjs";
export {
green
};
@@ -0,0 +1,9 @@
"use client";
import {
NavbarProvider,
useNavbarContext
} from "./chunk-IGERPFKH.mjs";
export {
NavbarProvider,
useNavbarContext
};
@@ -0,0 +1 @@
{"version":3,"names":["_index","require","_cleanJSXElementLiteralChild","buildChildren","node","elements","i","children","length","child","isJSXText","cleanJSXElementLiteralChild","isJSXExpressionContainer","expression","isJSXEmptyExpression","push"],"sources":["../../../src/builders/react/buildChildren.ts"],"sourcesContent":["import {\n isJSXText,\n isJSXExpressionContainer,\n isJSXEmptyExpression,\n} from \"../../validators/generated/index.ts\";\nimport cleanJSXElementLiteralChild from \"../../utils/react/cleanJSXElementLiteralChild.ts\";\nimport type * as t from \"../../index.ts\";\n\ntype ReturnedChild =\n | t.JSXSpreadChild\n | t.JSXElement\n | t.JSXFragment\n | t.Expression;\n\nexport default function buildChildren(\n node: t.JSXElement | t.JSXFragment,\n): ReturnedChild[] {\n const elements = [];\n\n for (let i = 0; i < node.children.length; i++) {\n let child: any = node.children[i];\n\n if (isJSXText(child)) {\n cleanJSXElementLiteralChild(child, elements);\n continue;\n }\n\n if (isJSXExpressionContainer(child)) child = child.expression;\n if (isJSXEmptyExpression(child)) continue;\n\n elements.push(child);\n }\n\n return elements;\n}\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAKA,IAAAC,4BAAA,GAAAD,OAAA;AASe,SAASE,aAAaA,CACnCC,IAAkC,EACjB;EACjB,MAAMC,QAAQ,GAAG,EAAE;EAEnB,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGF,IAAI,CAACG,QAAQ,CAACC,MAAM,EAAEF,CAAC,EAAE,EAAE;IAC7C,IAAIG,KAAU,GAAGL,IAAI,CAACG,QAAQ,CAACD,CAAC,CAAC;IAEjC,IAAI,IAAAI,gBAAS,EAACD,KAAK,CAAC,EAAE;MACpB,IAAAE,oCAA2B,EAACF,KAAK,EAAEJ,QAAQ,CAAC;MAC5C;IACF;IAEA,IAAI,IAAAO,+BAAwB,EAACH,KAAK,CAAC,EAAEA,KAAK,GAAGA,KAAK,CAACI,UAAU;IAC7D,IAAI,IAAAC,2BAAoB,EAACL,KAAK,CAAC,EAAE;IAEjCJ,QAAQ,CAACU,IAAI,CAACN,KAAK,CAAC;EACtB;EAEA,OAAOJ,QAAQ;AACjB","ignoreList":[]}
@@ -0,0 +1,71 @@
import { styled, keyframes } from 'goober';
const circleAnimation = keyframes`
from {
transform: scale(0) rotate(45deg);
opacity: 0;
}
to {
transform: scale(1) rotate(45deg);
opacity: 1;
}`;
const firstLineAnimation = keyframes`
from {
transform: scale(0);
opacity: 0;
}
to {
transform: scale(1);
opacity: 1;
}`;
const secondLineAnimation = keyframes`
from {
transform: scale(0) rotate(90deg);
opacity: 0;
}
to {
transform: scale(1) rotate(90deg);
opacity: 1;
}`;
export interface ErrorTheme {
primary?: string;
secondary?: string;
}
export const ErrorIcon = styled('div')<ErrorTheme>`
width: 20px;
opacity: 0;
height: 20px;
border-radius: 10px;
background: ${(p) => p.primary || '#ff4b4b'};
position: relative;
transform: rotate(45deg);
animation: ${circleAnimation} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
forwards;
animation-delay: 100ms;
&:after,
&:before {
content: '';
animation: ${firstLineAnimation} 0.15s ease-out forwards;
animation-delay: 150ms;
position: absolute;
border-radius: 3px;
opacity: 0;
background: ${(p) => p.secondary || '#fff'};
bottom: 9px;
left: 4px;
height: 2px;
width: 12px;
}
&:before {
animation: ${secondLineAnimation} 0.15s ease-out forwards;
animation-delay: 180ms;
transform: rotate(90deg);
}
`;
@@ -0,0 +1,75 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _iterationDecorator = _interopRequireDefault(require("./util/iterationDecorator"));
var _rolesMap = _interopRequireDefault(require("./rolesMap"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
var roleElement = [];
var keys = _rolesMap.default.keys();
for (var i = 0; i < keys.length; i++) {
var key = keys[i];
var role = _rolesMap.default.get(key);
var relationConcepts = [];
if (role) {
var concepts = [].concat(role.baseConcepts, role.relatedConcepts);
for (var k = 0; k < concepts.length; k++) {
var relation = concepts[k];
if (relation.module === 'HTML') {
var concept = relation.concept;
if (concept != null) {
relationConcepts.push(concept);
}
}
}
if (relationConcepts.length > 0) {
roleElement.push([key, relationConcepts]);
}
}
}
var roleElementMap = {
entries: function entries() {
return roleElement;
},
forEach: function forEach(fn) {
var thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
for (var _i = 0, _roleElement = roleElement; _i < _roleElement.length; _i++) {
var _roleElement$_i = _slicedToArray(_roleElement[_i], 2),
_key = _roleElement$_i[0],
values = _roleElement$_i[1];
fn.call(thisArg, values, _key, roleElement);
}
},
get: function get(key) {
var item = roleElement.filter(function (tuple) {
return tuple[0] === key ? true : false;
})[0];
return item && item[1];
},
has: function has(key) {
return !!roleElementMap.get(key);
},
keys: function keys() {
return roleElement.map(function (_ref) {
var _ref2 = _slicedToArray(_ref, 1),
key = _ref2[0];
return key;
});
},
values: function values() {
return roleElement.map(function (_ref3) {
var _ref4 = _slicedToArray(_ref3, 2),
values = _ref4[1];
return values;
});
}
};
var _default = exports.default = (0, _iterationDecorator.default)(roleElementMap, roleElementMap.entries());
@@ -0,0 +1 @@
{"mappings":"AAAA,iBAAiB;IAAG,eAAe,CAAC,WAAW,CAAC;AAChD","sources":["packages/@react-aria/breadcrumbs/intl/en-US.json"],"sourcesContent":["{\n \"breadcrumbs\": \"Breadcrumbs\"\n}\n"],"names":[],"version":3,"file":"en-US.main.js.map"}
@@ -0,0 +1,14 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var get_import_nodes_1 = require("../get-import-nodes");
var is_sort_imports_ignored_1 = require("../is-sort-imports-ignored");
var codeIgnored = "// sort-imports-ignore\n// second comment\nimport z from 'z';\n";
var codeNotIgnored = "// second comment\nimport z from 'z';\n";
test('it should return true if specific leading comment detected', function () {
var importNodes = (0, get_import_nodes_1.getImportNodes)(codeIgnored);
expect((0, is_sort_imports_ignored_1.isSortImportsIgnored)(importNodes)).toBeTruthy();
});
test('it should return false if no specific leading comment detected', function () {
var importNodes = (0, get_import_nodes_1.getImportNodes)(codeNotIgnored);
expect((0, is_sort_imports_ignored_1.isSortImportsIgnored)(importNodes)).toBeFalsy();
});
@@ -0,0 +1 @@
{"name":"@heroui/code","version":"2.2.7","requiresBuild":false,"files":{"dist/code.js":{"checkedAt":1794532107930,"integrity":"sha512-76gTOeT5DlSYlSkQzUK8vat9FMXdLZL0UI6E2WZoEBljJiFs2La1uOY0x/lvCw1cGKa2GNEjIZ84jtfUPC/Bog==","mode":420,"size":2284},"dist/index.js":{"checkedAt":1794532107931,"integrity":"sha512-IKOBhjwJ6i4SMhbiDd07gISdxwlSjNw3kgzdbtyxVD202nprOxArBjKKqinSupqPbBOBAoD23isv/6N46BLCkw==","mode":420,"size":2340},"dist/use-code.js":{"checkedAt":1794532107931,"integrity":"sha512-zr12GsRvkhhgvafd8lvOssUP+Cjc3UeeFp+NFB5VMwz+296Jcza6cKUK9YCdxb2vghlPhchrciMCmOP3UmLLng==","mode":420,"size":1856},"package.json":{"checkedAt":1794532107931,"integrity":"sha512-R4D/fPgjG7SeOJ6TwY4aXANhY18RTiJevkBgdhckVpaNZ89s7s1JQsXCUr2LWblWRbhTxSt1EzoMHVAftgIFGg==","mode":420,"size":1367},"README.md":{"checkedAt":1794532107931,"integrity":"sha512-v8pz02qYsqoXVkT9GgT9JqOLQWnxkmdJhiToc/YZRtcz/GDEz5jUIfJnqkrtMusOZFzTRhF+z2BQumJKnwyniA==","mode":420,"size":516},"dist/chunk-B75B6XQK.mjs":{"checkedAt":1794532107931,"integrity":"sha512-OsseNCdFPgqOTduMdTXIv/d/d/eGYOERNhMLn4YrjQDk1ZDQXdt8rysuBoLIvufaM20VxR6OmI1TgiVpc+00Pw==","mode":420,"size":438},"dist/chunk-RYFHIXXN.mjs":{"checkedAt":1794532107931,"integrity":"sha512-Ss1mEeRvBIiOKnNQqzlMHUioXFeLyTDdeWtjo+ljQ+0kcMvjQbAY06rBSpNSoy4BeviVMLoG1AL8RywKenBa/g==","mode":420,"size":730},"dist/code.mjs":{"checkedAt":1794532107931,"integrity":"sha512-v++Oy1Oos6TN7r2BMyQ6kPNHPJUznBcHgQDCb9CxtF768H1BImwOkB+q34yVHa9naYfiwFGxNaTG4xup0xToYQ==","mode":420,"size":124},"dist/index.mjs":{"checkedAt":1794532107932,"integrity":"sha512-nidOY0kBc2yfTdsTwdjpDJ34AnX06KqMZdQe9KdXVpElBA8JH/wV6AU05mbbt+QdJo02YxVOVm9h80h5kLsv2g==","mode":420,"size":151},"dist/use-code.mjs":{"checkedAt":1794532107932,"integrity":"sha512-vU9oV7beCqydo5R5zEbHXzZVwaBr/Dufag4qT7xXnbYrk4LtaCVLwX2MWdhFApG4nZLTZppJ49MoTLrTPl8nnA==","mode":420,"size":72},"dist/code.d.ts":{"checkedAt":1794532107932,"integrity":"sha512-YpG7m7X71Bl+gmhHte7z95IzZHfvpMWO2wv3b/thpdLcWad9Xq1u+wkLayUlEoysDLl73SmSkqIqKfOvYyzrMg==","mode":420,"size":358},"dist/index.d.ts":{"checkedAt":1794532107932,"integrity":"sha512-82+MjPFM/KJg235cIebN92/2wlmOw8Bz8uN6YEj5oltydm7vaKmCPIlruzg0fuMlfAozSxwCUHsnxX0zXBEsSA==","mode":420,"size":196},"dist/use-code.d.ts":{"checkedAt":1794532107932,"integrity":"sha512-31ihJ3WkLWLB2SrVoVQK6LzD82gLc4tqELonaBcezFO4meKvhjuBiGolOT9YBpPn4tth0EgLicngSlgnkVT3Wg==","mode":420,"size":769},"LICENSE":{"checkedAt":1794532107932,"integrity":"sha512-eaopHP+N4EYXlGoX9hmoxDPoVft4BqrXKmbsFTcsoBHSrJp/GWF4qVtLBzrw9h9ZrbFfPY69z+3RuDX9FdPG+Q==","mode":420,"size":1064}}}
@@ -0,0 +1,50 @@
import baseSlice from './_baseSlice.js';
import isIterateeCall from './_isIterateeCall.js';
import toInteger from './toInteger.js';
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeCeil = Math.ceil,
nativeMax = Math.max;
/**
* Creates an array of elements split into groups the length of `size`.
* If `array` can't be split evenly, the final chunk will be the remaining
* elements.
*
* @static
* @memberOf _
* @since 3.0.0
* @category Array
* @param {Array} array The array to process.
* @param {number} [size=1] The length of each chunk
* @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
* @returns {Array} Returns the new array of chunks.
* @example
*
* _.chunk(['a', 'b', 'c', 'd'], 2);
* // => [['a', 'b'], ['c', 'd']]
*
* _.chunk(['a', 'b', 'c', 'd'], 3);
* // => [['a', 'b', 'c'], ['d']]
*/
function chunk(array, size, guard) {
if ((guard ? isIterateeCall(array, size, guard) : size === undefined)) {
size = 1;
} else {
size = nativeMax(toInteger(size), 0);
}
var length = array == null ? 0 : array.length;
if (!length || size < 1) {
return [];
}
var index = 0,
resIndex = 0,
result = Array(nativeCeil(length / size));
while (index < length) {
result[resIndex++] = baseSlice(array, index, (index += size));
}
return result;
}
export default chunk;
@@ -0,0 +1,47 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var columnheaderRole = {
abstract: false,
accessibleNameRequired: true,
baseConcepts: [],
childrenPresentational: false,
nameFrom: ['author', 'contents'],
prohibitedProps: [],
props: {
'aria-sort': null
},
relatedConcepts: [{
concept: {
name: 'th'
},
module: 'HTML'
}, {
concept: {
attributes: [{
name: 'scope',
value: 'col'
}],
name: 'th'
},
module: 'HTML'
}, {
concept: {
attributes: [{
name: 'scope',
value: 'colgroup'
}],
name: 'th'
},
module: 'HTML'
}],
requireContextRole: ['row'],
requiredContextRole: ['row'],
requiredOwnedElements: [],
requiredProps: {},
superClass: [['roletype', 'structure', 'section', 'cell'], ['roletype', 'structure', 'section', 'cell', 'gridcell'], ['roletype', 'widget', 'gridcell'], ['roletype', 'structure', 'sectionhead']]
};
var _default = exports.default = columnheaderRole;
@@ -0,0 +1 @@
module.exports={A:{A:{"2":"K D E wC","520":"F A B"},B:{"1":"0 1 2 3 4 5 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","8":"C L","388":"M G N O P"},C:{"1":"0 1 2 3 4 5 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","2":"xC TC 0C 1C","132":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB"},D:{"1":"0 1 2 3 4 5 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","2":"J ZB","132":"6 7 8 9 K D E F A B C L M G N O P aB AB"},E:{"2":"2C","8":"J ZB ZC 3C","520":"K D E F A B C 4C 5C 6C aC NC","16385":"QC dC eC fC gC hC BD RC iC jC kC lC mC CD SC nC oC pC qC rC sC tC DD ED","17412":"L OC 7C","23556":"M","24580":"G 8C 9C bC cC PC AD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 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","2":"F FD GD HD","132":"B C G ID NC uC JD OC"},G:{"2":"E ZC KD vC LD MD ND OD PD QD RD SD TD UD VD","16385":"lC mC gD SC nC oC pC qC rC sC tC","17412":"WD XD YD ZD aD","19460":"bD cD dD bC cC PC eD QC dC eC fC gC hC fD RC iC jC kC"},H:{"2":"hD"},I:{"1":"I","2":"iD jD","132":"TC J kD lD vC mD nD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"8":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB oD pD qD rD sD aC tD uD vD wD xD QC RC SC yD","132":"J"},Q:{"1":"zD"},R:{"1":"0D"},S:{"1":"1D 2D"}},B:6,C:"WebM video format",D:true};
@@ -0,0 +1 @@
{"name":"append-field","version":"1.0.0","requiresBuild":false,"files":{"package.json":{"checkedAt":1794532126080,"integrity":"sha512-By1Br+StVRYumw7CdEfsJp2BkfGpW5bG3FIWI0+OD0CEI1ROw7ZLW4/WjKMvPRwlp61ALr75ku6Q5kq8bK+R7A==","mode":420,"size":416},".npmignore":{"checkedAt":1794532126080,"integrity":"sha512-cSTPiw0SFx/9IIBx8kO0vkMIouO7yzS+7HXFWiYqMaXxws7dYgRo5ORk4FNvQbLJICZotxR4tMfhR7R9vWWB6w==","mode":420,"size":14},"README.md":{"checkedAt":1794532126081,"integrity":"sha512-EqN2HEfPjAN86JlsfX2kqQ5xMDn0Y6R26De0kq2SXUvdooaOYBz8poqmENA+Ny0OOoIvSdmu2cAoELgn2soxow==","mode":420,"size":1016},"LICENSE":{"checkedAt":1794532126081,"integrity":"sha512-XGZSzNEY4Uw5nvOh1AnJ08TW8kCbkIiMYQrF5y3UxKOqYNVNhGsU8p4pO0b0oVOX8Fy4Y0avCj4yRZE+WOAl0A==","mode":420,"size":1082},"index.js":{"checkedAt":1794532126081,"integrity":"sha512-oV7v1aHzcG3pjkWAV1eTlj0KPnE56ZWOM5LITDeuvoqtV55Lq7acYWVG6qytDzKh/HvAAgLTTX4BDtHqQAXofw==","mode":420,"size":307},"lib/parse-path.js":{"checkedAt":1794532126081,"integrity":"sha512-mtb12rVp6xbZyJje3XKFHkA8X6hvJPqP+F8ZfIvHfezwIfk4DqqFku61OOVdFL7Kp45dRA2XA1FH8NuJ7ey24g==","mode":420,"size":1112},"lib/set-value.js":{"checkedAt":1794532126081,"integrity":"sha512-cqMUbAFfU6cZ/0wMfGUsNniiypGOag9JhXLKeRyszQ2+lcFnckhhco0mQiO20X5pF2OQEPEwSfHeg6vo0ygXJg==","mode":420,"size":1642},"test/forms.js":{"checkedAt":1794532126081,"integrity":"sha512-jefyVPZhGXxN5hBkWHYBqwALyawf/flUTT4fPHvCiFLI9JGjMkEP4626PZk1quftExQslJA8hkx8A9yGChtmdQ==","mode":420,"size":450}}}
@@ -0,0 +1,55 @@
function $parcel$export(e, n, v, s) {
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
}
$parcel$export(module.exports, "clamp", () => $ac8e4d4816275668$export$7d15b64cf5a3a4c4);
$parcel$export(module.exports, "snapValueToStep", () => $ac8e4d4816275668$export$cb6e0bb50bc19463);
$parcel$export(module.exports, "toFixedNumber", () => $ac8e4d4816275668$export$b6268554fba451f);
/*
* 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.
*/ /**
* Takes a value and forces it to the closest min/max if it's outside. Also forces it to the closest valid step.
*/ function $ac8e4d4816275668$export$7d15b64cf5a3a4c4(value, min = -Infinity, max = Infinity) {
let newValue = Math.min(Math.max(value, min), max);
return newValue;
}
function $ac8e4d4816275668$export$e1a7b8e69ef6c52f(value, step) {
let roundedValue = value;
let stepString = step.toString();
let pointIndex = stepString.indexOf('.');
let precision = pointIndex >= 0 ? stepString.length - pointIndex : 0;
if (precision > 0) {
let pow = Math.pow(10, precision);
roundedValue = Math.round(roundedValue * pow) / pow;
}
return roundedValue;
}
function $ac8e4d4816275668$export$cb6e0bb50bc19463(value, min, max, step) {
min = Number(min);
max = Number(max);
let remainder = (value - (isNaN(min) ? 0 : min)) % step;
let snappedValue = $ac8e4d4816275668$export$e1a7b8e69ef6c52f(Math.abs(remainder) * 2 >= step ? value + Math.sign(remainder) * (step - Math.abs(remainder)) : value - remainder, step);
if (!isNaN(min)) {
if (snappedValue < min) snappedValue = min;
else if (!isNaN(max) && snappedValue > max) snappedValue = min + Math.floor($ac8e4d4816275668$export$e1a7b8e69ef6c52f((max - min) / step, step)) * step;
} else if (!isNaN(max) && snappedValue > max) snappedValue = Math.floor($ac8e4d4816275668$export$e1a7b8e69ef6c52f(max / step, step)) * step;
// correct floating point behavior by rounding to step precision
snappedValue = $ac8e4d4816275668$export$e1a7b8e69ef6c52f(snappedValue, step);
return snappedValue;
}
function $ac8e4d4816275668$export$b6268554fba451f(value, digits, base = 10) {
const pow = Math.pow(base, digits);
return Math.round(value * pow) / pow;
}
//# sourceMappingURL=number.main.js.map
@@ -0,0 +1,53 @@
import { EndOfStreamError } from './stream/index.js';
import { AbstractTokenizer } from './AbstractTokenizer.js';
export class BlobTokenizer extends AbstractTokenizer {
/**
* Construct BufferTokenizer
* @param blob - Uint8Array to tokenize
* @param options Tokenizer options
*/
constructor(blob, options) {
super(options);
this.blob = blob;
this.fileInfo = { ...options?.fileInfo ?? {}, ...{ size: blob.size, mimeType: blob.type } };
}
/**
* Read buffer from tokenizer
* @param uint8Array - Uint8Array to tokenize
* @param options - Read behaviour options
* @returns {Promise<number>}
*/
async readBuffer(uint8Array, options) {
if (options?.position) {
this.position = options.position;
}
const bytesRead = await this.peekBuffer(uint8Array, options);
this.position += bytesRead;
return bytesRead;
}
/**
* Peek (read ahead) buffer from tokenizer
* @param buffer
* @param options - Read behaviour options
* @returns {Promise<number>}
*/
async peekBuffer(buffer, options) {
const normOptions = this.normalizeOptions(buffer, options);
const bytes2read = Math.min(this.blob.size - normOptions.position, normOptions.length);
if ((!normOptions.mayBeLess) && bytes2read < normOptions.length) {
throw new EndOfStreamError();
}
const arrayBuffer = await this.blob.slice(normOptions.position, normOptions.position + bytes2read).arrayBuffer();
buffer.set(new Uint8Array(arrayBuffer));
return bytes2read;
}
close() {
return super.close();
}
supportsRandomAccess() {
return true;
}
setPosition(position) {
this.position = position;
}
}
@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) Denis Malinochkin
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,4 @@
import type { Mode, ValidationModeFlags } from '../types';
declare const _default: (mode?: Mode) => ValidationModeFlags;
export default _default;
//# sourceMappingURL=getValidationModes.d.ts.map
@@ -0,0 +1,16 @@
/**
* @param obj The object to inspect.
* @returns True if the argument appears to be a plain object.
*/
export default function isPlainObject(obj: any): obj is object {
if (typeof obj !== 'object' || obj === null) return false
let proto = obj
while (Object.getPrototypeOf(proto) !== null) {
proto = Object.getPrototypeOf(proto)
}
return (
Object.getPrototypeOf(obj) === proto || Object.getPrototypeOf(obj) === null
)
}
@@ -0,0 +1,62 @@
// @ts-check
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
loadPostcss: function() {
return loadPostcss;
},
loadPostcssImport: function() {
return loadPostcssImport;
},
loadCssNano: function() {
return loadCssNano;
},
loadAutoprefixer: function() {
return loadAutoprefixer;
}
});
const _index = require("../../../peers/index.js");
function loadPostcss() {
// Try to load a local `postcss` version first
try {
return require("postcss");
} catch {}
return (0, _index.lazyPostcss)();
}
function loadPostcssImport() {
// Try to load a local `postcss-import` version first
try {
return require("postcss-import");
} catch {}
return (0, _index.lazyPostcssImport)();
}
function loadCssNano() {
let options = {
preset: [
"default",
{
cssDeclarationSorter: false
}
]
};
// Try to load a local `cssnano` version first
try {
return require("cssnano");
} catch {}
return (0, _index.lazyCssnano)()(options);
}
function loadAutoprefixer() {
// Try to load a local `autoprefixer` version first
try {
return require("autoprefixer");
} catch {}
return (0, _index.lazyAutoprefixer)();
}
@@ -0,0 +1,169 @@
'use strict';
/* eslint global-require: 0 */
// https://262.ecma-international.org/9.0/#sec-abstract-operations
var ES2018 = {
'Abstract Equality Comparison': require('./2018/AbstractEqualityComparison'),
'Abstract Relational Comparison': require('./2018/AbstractRelationalComparison'),
'Strict Equality Comparison': require('./2018/StrictEqualityComparison'),
abs: require('./2018/abs'),
AdvanceStringIndex: require('./2018/AdvanceStringIndex'),
ArrayCreate: require('./2018/ArrayCreate'),
ArraySetLength: require('./2018/ArraySetLength'),
ArraySpeciesCreate: require('./2018/ArraySpeciesCreate'),
AsyncIteratorClose: require('./2018/AsyncIteratorClose'),
Call: require('./2018/Call'),
Canonicalize: require('./2018/Canonicalize'),
CanonicalNumericIndexString: require('./2018/CanonicalNumericIndexString'),
CharacterRange: require('./2018/CharacterRange'),
CompletePropertyDescriptor: require('./2018/CompletePropertyDescriptor'),
CompletionRecord: require('./2018/CompletionRecord'),
CopyDataProperties: require('./2018/CopyDataProperties'),
CreateAsyncFromSyncIterator: require('./2018/CreateAsyncFromSyncIterator'),
CreateDataProperty: require('./2018/CreateDataProperty'),
CreateDataPropertyOrThrow: require('./2018/CreateDataPropertyOrThrow'),
CreateHTML: require('./2018/CreateHTML'),
CreateIterResultObject: require('./2018/CreateIterResultObject'),
CreateListFromArrayLike: require('./2018/CreateListFromArrayLike'),
CreateMethodProperty: require('./2018/CreateMethodProperty'),
DateFromTime: require('./2018/DateFromTime'),
DateString: require('./2018/DateString'),
Day: require('./2018/Day'),
DayFromYear: require('./2018/DayFromYear'),
DaysInYear: require('./2018/DaysInYear'),
DayWithinYear: require('./2018/DayWithinYear'),
DefinePropertyOrThrow: require('./2018/DefinePropertyOrThrow'),
DeletePropertyOrThrow: require('./2018/DeletePropertyOrThrow'),
DetachArrayBuffer: require('./2018/DetachArrayBuffer'),
EnumerableOwnPropertyNames: require('./2018/EnumerableOwnPropertyNames'),
floor: require('./2018/floor'),
FromPropertyDescriptor: require('./2018/FromPropertyDescriptor'),
Get: require('./2018/Get'),
GetGlobalObject: require('./2018/GetGlobalObject'),
GetIterator: require('./2018/GetIterator'),
GetMethod: require('./2018/GetMethod'),
GetOwnPropertyKeys: require('./2018/GetOwnPropertyKeys'),
GetPrototypeFromConstructor: require('./2018/GetPrototypeFromConstructor'),
GetSubstitution: require('./2018/GetSubstitution'),
GetV: require('./2018/GetV'),
GetValueFromBuffer: require('./2018/GetValueFromBuffer'),
HasOwnProperty: require('./2018/HasOwnProperty'),
HasProperty: require('./2018/HasProperty'),
HourFromTime: require('./2018/HourFromTime'),
InLeapYear: require('./2018/InLeapYear'),
InstanceofOperator: require('./2018/InstanceofOperator'),
IntegerIndexedElementGet: require('./2018/IntegerIndexedElementGet'),
IntegerIndexedElementSet: require('./2018/IntegerIndexedElementSet'),
InternalizeJSONProperty: require('./2018/InternalizeJSONProperty'),
Invoke: require('./2018/Invoke'),
IsAccessorDescriptor: require('./2018/IsAccessorDescriptor'),
IsArray: require('./2018/IsArray'),
IsCallable: require('./2018/IsCallable'),
IsCompatiblePropertyDescriptor: require('./2018/IsCompatiblePropertyDescriptor'),
IsConcatSpreadable: require('./2018/IsConcatSpreadable'),
IsConstructor: require('./2018/IsConstructor'),
IsDataDescriptor: require('./2018/IsDataDescriptor'),
IsDetachedBuffer: require('./2018/IsDetachedBuffer'),
IsExtensible: require('./2018/IsExtensible'),
IsGenericDescriptor: require('./2018/IsGenericDescriptor'),
IsInteger: require('./2018/IsInteger'),
IsPromise: require('./2018/IsPromise'),
IsPropertyKey: require('./2018/IsPropertyKey'),
IsRegExp: require('./2018/IsRegExp'),
IsSharedArrayBuffer: require('./2018/IsSharedArrayBuffer'),
IsStringPrefix: require('./2018/IsStringPrefix'),
IsWordChar: require('./2018/IsWordChar'),
IterableToList: require('./2018/IterableToList'),
IteratorClose: require('./2018/IteratorClose'),
IteratorComplete: require('./2018/IteratorComplete'),
IteratorNext: require('./2018/IteratorNext'),
IteratorStep: require('./2018/IteratorStep'),
IteratorValue: require('./2018/IteratorValue'),
MakeDate: require('./2018/MakeDate'),
MakeDay: require('./2018/MakeDay'),
MakeTime: require('./2018/MakeTime'),
max: require('./2018/max'),
min: require('./2018/min'),
MinFromTime: require('./2018/MinFromTime'),
modulo: require('./2018/modulo'),
MonthFromTime: require('./2018/MonthFromTime'),
msFromTime: require('./2018/msFromTime'),
NewPromiseCapability: require('./2018/NewPromiseCapability'),
NormalCompletion: require('./2018/NormalCompletion'),
NumberToRawBytes: require('./2018/NumberToRawBytes'),
NumberToString: require('./2018/NumberToString'),
ObjectCreate: require('./2018/ObjectCreate'),
ObjectDefineProperties: require('./2018/ObjectDefineProperties'),
OrdinaryCreateFromConstructor: require('./2018/OrdinaryCreateFromConstructor'),
OrdinaryDefineOwnProperty: require('./2018/OrdinaryDefineOwnProperty'),
OrdinaryGetOwnProperty: require('./2018/OrdinaryGetOwnProperty'),
OrdinaryGetPrototypeOf: require('./2018/OrdinaryGetPrototypeOf'),
OrdinaryHasInstance: require('./2018/OrdinaryHasInstance'),
OrdinaryHasProperty: require('./2018/OrdinaryHasProperty'),
OrdinarySetPrototypeOf: require('./2018/OrdinarySetPrototypeOf'),
OrdinaryToPrimitive: require('./2018/OrdinaryToPrimitive'),
PromiseResolve: require('./2018/PromiseResolve'),
QuoteJSONString: require('./2018/QuoteJSONString'),
RawBytesToNumber: require('./2018/RawBytesToNumber'),
RegExpCreate: require('./2018/RegExpCreate'),
RegExpExec: require('./2018/RegExpExec'),
RequireObjectCoercible: require('./2018/RequireObjectCoercible'),
SameValue: require('./2018/SameValue'),
SameValueNonNumber: require('./2018/SameValueNonNumber'),
SameValueZero: require('./2018/SameValueZero'),
SecFromTime: require('./2018/SecFromTime'),
Set: require('./2018/Set'),
SetFunctionLength: require('./2018/SetFunctionLength'),
SetFunctionName: require('./2018/SetFunctionName'),
SetIntegrityLevel: require('./2018/SetIntegrityLevel'),
SetValueInBuffer: require('./2018/SetValueInBuffer'),
SpeciesConstructor: require('./2018/SpeciesConstructor'),
SplitMatch: require('./2018/SplitMatch'),
StringCreate: require('./2018/StringCreate'),
StringGetOwnProperty: require('./2018/StringGetOwnProperty'),
SymbolDescriptiveString: require('./2018/SymbolDescriptiveString'),
TestIntegrityLevel: require('./2018/TestIntegrityLevel'),
thisBooleanValue: require('./2018/thisBooleanValue'),
thisNumberValue: require('./2018/thisNumberValue'),
thisStringValue: require('./2018/thisStringValue'),
thisSymbolValue: require('./2018/thisSymbolValue'),
thisTimeValue: require('./2018/thisTimeValue'),
ThrowCompletion: require('./2018/ThrowCompletion'),
TimeClip: require('./2018/TimeClip'),
TimeFromYear: require('./2018/TimeFromYear'),
TimeString: require('./2018/TimeString'),
TimeWithinDay: require('./2018/TimeWithinDay'),
TimeZoneString: require('./2018/TimeZoneString'),
ToBoolean: require('./2018/ToBoolean'),
ToDateString: require('./2018/ToDateString'),
ToIndex: require('./2018/ToIndex'),
ToInt16: require('./2018/ToInt16'),
ToInt32: require('./2018/ToInt32'),
ToInt8: require('./2018/ToInt8'),
ToInteger: require('./2018/ToInteger'),
ToLength: require('./2018/ToLength'),
ToNumber: require('./2018/ToNumber'),
ToObject: require('./2018/ToObject'),
ToPrimitive: require('./2018/ToPrimitive'),
ToPropertyDescriptor: require('./2018/ToPropertyDescriptor'),
ToPropertyKey: require('./2018/ToPropertyKey'),
ToString: require('./2018/ToString'),
ToUint16: require('./2018/ToUint16'),
ToUint32: require('./2018/ToUint32'),
ToUint8: require('./2018/ToUint8'),
ToUint8Clamp: require('./2018/ToUint8Clamp'),
Type: require('./2018/Type'),
TypedArrayCreate: require('./2018/TypedArrayCreate'),
TypedArraySpeciesCreate: require('./2018/TypedArraySpeciesCreate'),
UnicodeEscape: require('./2018/UnicodeEscape'),
UTF16Decode: require('./2018/UTF16Decode'),
UTF16Encoding: require('./2018/UTF16Encoding'),
ValidateAndApplyPropertyDescriptor: require('./2018/ValidateAndApplyPropertyDescriptor'),
ValidateAtomicAccess: require('./2018/ValidateAtomicAccess'),
ValidateTypedArray: require('./2018/ValidateTypedArray'),
WeekDay: require('./2018/WeekDay'),
WordCharacters: require('./2018/WordCharacters'),
YearFromTime: require('./2018/YearFromTime')
};
module.exports = ES2018;
@@ -0,0 +1,49 @@
// @ts-check
import fs from 'fs'
import path from 'path'
import { resolveDefaultConfigPath } from '../../util/resolveConfigPath.js'
import { createProcessor } from './plugin.js'
export async function build(args) {
let input = args['--input']
let shouldWatch = args['--watch']
// TODO: Deprecate this in future versions
if (!input && args['_'][1]) {
console.error('[deprecation] Running tailwindcss without -i, please provide an input file.')
input = args['--input'] = args['_'][1]
}
if (input && input !== '-' && !fs.existsSync((input = path.resolve(input)))) {
console.error(`Specified input file ${args['--input']} does not exist.`)
process.exit(9)
}
if (args['--config'] && !fs.existsSync((args['--config'] = path.resolve(args['--config'])))) {
console.error(`Specified config file ${args['--config']} does not exist.`)
process.exit(9)
}
// TODO: Reference the @config path here if exists
let configPath = args['--config'] ? args['--config'] : resolveDefaultConfigPath()
let processor = await createProcessor(args, configPath)
if (shouldWatch) {
// Abort the watcher if stdin is closed to avoid zombie processes
// You can disable this behavior with --watch=always
if (args['--watch'] !== 'always') {
process.stdin.on('end', () => process.exit(0))
}
process.stdin.resume()
await processor.watch()
} else {
await processor.build().catch((e) => {
console.error(e)
process.exit(1)
})
}
}
@@ -0,0 +1,71 @@
"use strict";
const addDays = require("./addDays.js");
const addHours = require("./addHours.js");
const addMilliseconds = require("./addMilliseconds.js");
const addMinutes = require("./addMinutes.js");
const addMonths = require("./addMonths.js");
const addSeconds = require("./addSeconds.js");
const addYears = require("./addYears.js");
const units = require("./units.js");
const normalizeUnit = require("./normalizeUnit-Cn0hUyBC.js");
const daysInMonth = require("./daysInMonth.js");
const constants = require("./constants-DR3SPJ7u.js");
const { DAY: DAY$1, HOUR: HOUR$1, MINUTE: MINUTE$1, MONTH: MONTH$1, SECOND: SECOND$1, YEAR: YEAR$1 } = units;
function addNumber(date, num, unit) {
unit = normalizeUnit.normalizeUnit(unit);
switch (unit) {
case YEAR$1:
return addYears(date, num);
case MONTH$1:
return addMonths(date, num);
case DAY$1:
return addDays(date, num);
case HOUR$1:
return addHours(date, num);
case MINUTE$1:
return addMinutes(date, num);
case SECOND$1:
return addSeconds(date, num);
default:
return addMilliseconds(date, num);
}
}
const { DAY, HOUR, MINUTE, MONTH, SECOND, YEAR } = units;
function addObject(date, obj, times) {
let time = 0;
let expectedMonth = 0;
let expectedDay = 0;
Object.entries(obj).forEach(([unit, num]) => {
unit = normalizeUnit.normalizeUnit(unit);
num *= times;
switch (unit) {
case YEAR:
expectedMonth += num * 12;
return;
case MONTH:
expectedMonth += date.getMonth() + num;
return;
case DAY:
expectedDay = num;
return;
case HOUR:
num *= constants.MS_IN_HOUR;
break;
case MINUTE:
num *= constants.MS_IN_MINUTE;
break;
case SECOND:
num *= constants.MS_IN_SECOND;
break;
}
time += num;
});
if (expectedMonth) {
const tempMaxDay = daysInMonth(new Date(date.getFullYear(), expectedMonth, 1, 0, 0, 0, 0));
const currentDay = date.getDate();
date.setMonth(expectedMonth, (currentDay > tempMaxDay ? tempMaxDay : currentDay) + expectedDay);
}
return addMilliseconds(date, time);
}
exports.addNumber = addNumber;
exports.addObject = addObject;
@@ -0,0 +1,72 @@
var $4d65847630a056a8$exports = require("./utils.main.js");
var $2919bdec75484e64$exports = require("./useDefaultLocale.main.js");
var $e7RNT$react = require("react");
function $parcel$interopDefault(a) {
return a && a.__esModule ? a.default : a;
}
function $parcel$export(e, n, v, s) {
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
}
$parcel$export(module.exports, "I18nProvider", () => $47fa5ec5ff482271$export$a54013f0d02a8f82);
$parcel$export(module.exports, "useLocale", () => $47fa5ec5ff482271$export$43bb16f9c6d9e3f7);
/*
* 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.
*/
const $47fa5ec5ff482271$var$I18nContext = /*#__PURE__*/ (0, ($parcel$interopDefault($e7RNT$react))).createContext(null);
/**
* Internal component that handles the case when locale is provided.
*/ function $47fa5ec5ff482271$var$I18nProviderWithLocale(props) {
let { locale: locale, children: children } = props;
let value = (0, ($parcel$interopDefault($e7RNT$react))).useMemo(()=>({
locale: locale,
direction: (0, $4d65847630a056a8$exports.isRTL)(locale) ? 'rtl' : 'ltr'
}), [
locale
]);
return /*#__PURE__*/ (0, ($parcel$interopDefault($e7RNT$react))).createElement($47fa5ec5ff482271$var$I18nContext.Provider, {
value: value
}, children);
}
/**
* Internal component that handles the case when no locale is provided.
*/ function $47fa5ec5ff482271$var$I18nProviderWithDefaultLocale(props) {
let { children: children } = props;
let defaultLocale = (0, $2919bdec75484e64$exports.useDefaultLocale)();
return /*#__PURE__*/ (0, ($parcel$interopDefault($e7RNT$react))).createElement($47fa5ec5ff482271$var$I18nContext.Provider, {
value: defaultLocale
}, children);
}
function $47fa5ec5ff482271$export$a54013f0d02a8f82(props) {
let { locale: locale, children: children } = props;
// Conditionally render different components to avoid calling useDefaultLocale.
// This is necessary because useDefaultLocale triggers a re-render.
if (locale) return /*#__PURE__*/ (0, ($parcel$interopDefault($e7RNT$react))).createElement($47fa5ec5ff482271$var$I18nProviderWithLocale, {
locale: locale,
children: children
});
return /*#__PURE__*/ (0, ($parcel$interopDefault($e7RNT$react))).createElement($47fa5ec5ff482271$var$I18nProviderWithDefaultLocale, {
children: children
});
}
function $47fa5ec5ff482271$export$43bb16f9c6d9e3f7() {
let defaultLocale = (0, $2919bdec75484e64$exports.useDefaultLocale)();
let context = (0, $e7RNT$react.useContext)($47fa5ec5ff482271$var$I18nContext);
return context || defaultLocale;
}
//# sourceMappingURL=context.main.js.map
@@ -0,0 +1,29 @@
import { renderHook, waitFor } from '@testing-library/react';
import { useEventSource } from './use-event-source';
import WS from "jest-websocket-mock";
import { EventSourceOptions } from './types';
import { DEFAULT_EVENT_SOURCE_OPTIONS } from './constants';
let server: WS;
const URL = 'ws://localhost:1234';
const noop = () => {};
const DEFAULT_OPTIONS = DEFAULT_EVENT_SOURCE_OPTIONS;
let options: EventSourceOptions;
console.error = noop;
beforeEach(() => {
server = new WS(URL);
options = { ...DEFAULT_OPTIONS };
});
afterEach(() => {
WS.clean();
});
test('Options#eventSourceOptions, if provided, instantiates an EventSource instead of a WebSocket', async () => {
const {
result
} = renderHook(() => useEventSource(URL, options));
await waitFor(() => expect(result.current.getEventSource() instanceof EventSource).toBe(true));
});
@@ -0,0 +1,29 @@
import { hover, frame } from 'motion-dom';
import { extractEventInfo } from '../events/event-info.mjs';
import { Feature } from '../motion/features/Feature.mjs';
function handleHoverEvent(node, event, lifecycle) {
const { props } = node;
if (node.animationState && props.whileHover) {
node.animationState.setActive("whileHover", lifecycle === "Start");
}
const eventName = ("onHover" + lifecycle);
const callback = props[eventName];
if (callback) {
frame.postRender(() => callback(event, extractEventInfo(event)));
}
}
class HoverGesture extends Feature {
mount() {
const { current } = this.node;
if (!current)
return;
this.unmount = hover(current, (_element, startEvent) => {
handleHoverEvent(this.node, startEvent, "Start");
return (endEvent) => handleHoverEvent(this.node, endEvent, "End");
});
}
unmount() { }
}
export { HoverGesture };
@@ -0,0 +1,190 @@
'use strict';
const doctrine = require('doctrine');
const pragmaUtil = require('./pragma');
const eslintUtil = require('./eslint');
const getScope = eslintUtil.getScope;
const getSourceCode = eslintUtil.getSourceCode;
const getText = eslintUtil.getText;
// eslint-disable-next-line valid-jsdoc
/**
* @template {(_: object) => any} T
* @param {T} fn
* @returns {T}
*/
function memoize(fn) {
const cache = new WeakMap();
// @ts-ignore
return function memoizedFn(arg) {
const cachedValue = cache.get(arg);
if (cachedValue !== undefined) {
return cachedValue;
}
const v = fn(arg);
cache.set(arg, v);
return v;
};
}
const getPragma = memoize(pragmaUtil.getFromContext);
const getCreateClass = memoize(pragmaUtil.getCreateClassFromContext);
/**
* @param {ASTNode} node
* @param {Context} context
* @returns {boolean}
*/
function isES5Component(node, context) {
const pragma = getPragma(context);
const createClass = getCreateClass(context);
if (!node.parent || !node.parent.callee) {
return false;
}
const callee = node.parent.callee;
// React.createClass({})
if (callee.type === 'MemberExpression') {
return callee.object.name === pragma && callee.property.name === createClass;
}
// createClass({})
if (callee.type === 'Identifier') {
return callee.name === createClass;
}
return false;
}
/**
* Check if the node is explicitly declared as a descendant of a React Component
* @param {any} node
* @param {Context} context
* @returns {boolean}
*/
function isExplicitComponent(node, context) {
const sourceCode = getSourceCode(context);
let comment;
// Sometimes the passed node may not have been parsed yet by eslint, and this function call crashes.
// Can be removed when eslint sets "parent" property for all nodes on initial AST traversal: https://github.com/eslint/eslint-scope/issues/27
// eslint-disable-next-line no-warning-comments
// FIXME: Remove try/catch when https://github.com/eslint/eslint-scope/issues/27 is implemented.
try {
comment = sourceCode.getJSDocComment(node);
} catch (e) {
comment = null;
}
if (comment === null) {
return false;
}
let commentAst;
try {
commentAst = doctrine.parse(comment.value, {
unwrap: true,
tags: ['extends', 'augments'],
});
} catch (e) {
// handle a bug in the archived `doctrine`, see #2596
return false;
}
const relevantTags = commentAst.tags.filter((tag) => tag.name === 'React.Component' || tag.name === 'React.PureComponent');
return relevantTags.length > 0;
}
/**
* @param {ASTNode} node
* @param {Context} context
* @returns {boolean}
*/
function isES6Component(node, context) {
const pragma = getPragma(context);
if (isExplicitComponent(node, context)) {
return true;
}
if (!node.superClass) {
return false;
}
if (node.superClass.type === 'MemberExpression') {
return node.superClass.object.name === pragma
&& /^(Pure)?Component$/.test(node.superClass.property.name);
}
if (node.superClass.type === 'Identifier') {
return /^(Pure)?Component$/.test(node.superClass.name);
}
return false;
}
/**
* Get the parent ES5 component node from the current scope
* @param {Context} context
* @param {ASTNode} node
* @returns {ASTNode|null}
*/
function getParentES5Component(context, node) {
let scope = getScope(context, node);
while (scope) {
// @ts-ignore
node = scope.block && scope.block.parent && scope.block.parent.parent;
if (node && isES5Component(node, context)) {
return node;
}
scope = scope.upper;
}
return null;
}
/**
* Get the parent ES6 component node from the current scope
* @param {Context} context
* @param {ASTNode} node
* @returns {ASTNode | null}
*/
function getParentES6Component(context, node) {
let scope = getScope(context, node);
while (scope && scope.type !== 'class') {
scope = scope.upper;
}
node = scope && scope.block;
if (!node || !isES6Component(node, context)) {
return null;
}
return node;
}
/**
* Checks if a component extends React.PureComponent
* @param {ASTNode} node
* @param {Context} context
* @returns {boolean}
*/
function isPureComponent(node, context) {
const pragma = getPragma(context);
if (node.superClass) {
return new RegExp(`^(${pragma}\\.)?PureComponent$`).test(getText(context, node.superClass));
}
return false;
}
/**
* @param {ASTNode} node
* @returns {boolean}
*/
function isStateMemberExpression(node) {
return node.type === 'MemberExpression'
&& node.object.type === 'ThisExpression'
&& node.property.name === 'state';
}
module.exports = {
isES5Component,
isES6Component,
getParentES5Component,
getParentES6Component,
isExplicitComponent,
isPureComponent,
isStateMemberExpression,
};
@@ -0,0 +1,8 @@
// https://www.npmjs.com/package/jest-dom
require("@testing-library/jest-dom/extend-expect");
Object.defineProperty(global, "isSecureContext", {
value: true,
writable: true,
enumerable: true,
});
@@ -0,0 +1,18 @@
Copyright 2010, 2011, Chris Winberry <chris@winberry.net>. All rights reserved.
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,13 @@
'use strict';
module.exports = function (str, sep) {
if (typeof str !== 'string') {
throw new TypeError('Expected a string');
}
sep = typeof sep === 'undefined' ? '_' : sep;
return str
.replace(/([a-z\d])([A-Z])/g, '$1' + sep + '$2')
.replace(/([A-Z]+)([A-Z][a-z\d]+)/g, '$1' + sep + '$2')
.toLowerCase();
};
@@ -0,0 +1,38 @@
"use strict";
var Extensions_1;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Extensions = exports.Extension = void 0;
const tslib_1 = require("tslib");
const asn1_schema_1 = require("@peculiar/asn1-schema");
class Extension {
constructor(params = {}) {
this.extnID = "";
this.critical = Extension.CRITICAL;
this.extnValue = new asn1_schema_1.OctetString();
Object.assign(this, params);
}
}
exports.Extension = Extension;
Extension.CRITICAL = false;
tslib_1.__decorate([
(0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.AsnPropTypes.ObjectIdentifier })
], Extension.prototype, "extnID", void 0);
tslib_1.__decorate([
(0, asn1_schema_1.AsnProp)({
type: asn1_schema_1.AsnPropTypes.Boolean,
defaultValue: Extension.CRITICAL,
})
], Extension.prototype, "critical", void 0);
tslib_1.__decorate([
(0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.OctetString })
], Extension.prototype, "extnValue", void 0);
let Extensions = Extensions_1 = class Extensions extends asn1_schema_1.AsnArray {
constructor(items) {
super(items);
Object.setPrototypeOf(this, Extensions_1.prototype);
}
};
exports.Extensions = Extensions;
exports.Extensions = Extensions = Extensions_1 = tslib_1.__decorate([
(0, asn1_schema_1.AsnType)({ type: asn1_schema_1.AsnTypeTypes.Sequence, itemType: Extension })
], Extensions);
@@ -0,0 +1,15 @@
module.exports = {
"deselectedItem": (args)=>`${args.item} non selezionato.`,
"longPressToSelect": `Premi a lungo per passare alla modalit\xe0 di selezione.`,
"select": `Seleziona`,
"selectedAll": `Tutti gli elementi selezionati.`,
"selectedCount": (args, formatter)=>`${formatter.plural(args.count, {
"=0": `Nessun elemento selezionato`,
one: ()=>`${formatter.number(args.count)} elemento selezionato`,
other: ()=>`${formatter.number(args.count)} elementi selezionati`
})}.`,
"selectedItem": (args)=>`${args.item} selezionato.`
};
//# sourceMappingURL=it-IT.main.js.map
@@ -0,0 +1 @@
{"version":3,"file":"useFieldArray.d.ts","sourceRoot":"","sources":["../src/useFieldArray.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAKV,cAAc,EAId,WAAW,EAIX,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,SAAS,CAAC;AAIjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,wBAAgB,aAAa,CAC3B,YAAY,SAAS,WAAW,GAAG,WAAW,EAC9C,eAAe,SACb,cAAc,CAAC,YAAY,CAAC,GAAG,cAAc,CAAC,YAAY,CAAC,EAC7D,QAAQ,SAAS,MAAM,GAAG,IAAI,EAC9B,kBAAkB,GAAG,YAAY,EAEjC,KAAK,EAAE,kBAAkB,CACvB,YAAY,EACZ,eAAe,EACf,QAAQ,EACR,kBAAkB,CACnB,GACA,mBAAmB,CAAC,YAAY,EAAE,eAAe,EAAE,QAAQ,CAAC,CAqW9D"}
@@ -0,0 +1,47 @@
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _eachOfLimit2 = require('./internal/eachOfLimit.js');
var _eachOfLimit3 = _interopRequireDefault(_eachOfLimit2);
var _wrapAsync = require('./internal/wrapAsync.js');
var _wrapAsync2 = _interopRequireDefault(_wrapAsync);
var _awaitify = require('./internal/awaitify.js');
var _awaitify2 = _interopRequireDefault(_awaitify);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/**
* The same as [`eachOf`]{@link module:Collections.eachOf} but runs a maximum of `limit` async operations at a
* time.
*
* @name eachOfLimit
* @static
* @memberOf module:Collections
* @method
* @see [async.eachOf]{@link module:Collections.eachOf}
* @alias forEachOfLimit
* @category Collection
* @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.
* @param {number} limit - The maximum number of async operations at a time.
* @param {AsyncFunction} iteratee - An async function to apply to each
* item in `coll`. The `key` is the item's key, or index in the case of an
* array.
* Invoked with (item, key, callback).
* @param {Function} [callback] - A callback which is called when all
* `iteratee` functions have finished, or an error occurs. Invoked with (err).
* @returns {Promise} a promise, if a callback is omitted
*/
function eachOfLimit(coll, limit, iteratee, callback) {
return (0, _eachOfLimit3.default)(limit)(coll, (0, _wrapAsync2.default)(iteratee), callback);
}
exports.default = (0, _awaitify2.default)(eachOfLimit, 4);
module.exports = exports.default;
@@ -0,0 +1,72 @@
'use strict';
var IsCallable = require('is-callable');
var hasOwn = require('hasown');
var functionsHaveNames = require('functions-have-names')();
var callBound = require('call-bound');
var $functionToString = callBound('Function.prototype.toString');
var $stringMatch = callBound('String.prototype.match');
var toStr = callBound('Object.prototype.toString');
var classRegex = /^class /;
var isClass = function isClassConstructor(fn) {
if (IsCallable(fn)) {
return false;
}
if (typeof fn !== 'function') {
return false;
}
try {
var match = $stringMatch($functionToString(fn), classRegex);
return !!match;
} catch (e) {}
return false;
};
var regex = /\s*function\s+([^(\s]*)\s*/;
var isIE68 = !(0 in [,]); // eslint-disable-line no-sparse-arrays, comma-spacing
var objectClass = '[object Object]';
var ddaClass = '[object HTMLAllCollection]';
var functionProto = Function.prototype;
var isDDA = function isDocumentDotAll() {
return false;
};
if (typeof document === 'object') {
// Firefox 3 canonicalizes DDA to undefined when it's not accessed directly
var all = document.all;
if (toStr(all) === toStr(document.all)) {
isDDA = function isDocumentDotAll(value) {
/* globals document: false */
// in IE 6-8, typeof document.all is "object" and it's truthy
if ((isIE68 || !value) && (typeof value === 'undefined' || typeof value === 'object')) {
try {
var str = toStr(value);
// IE 6-8 uses `objectClass`
return (str === ddaClass || str === objectClass) && value('') == null; // eslint-disable-line eqeqeq
} catch (e) { /**/ }
}
return false;
};
}
}
module.exports = function getName() {
if (isDDA(this) || (!isClass(this) && !IsCallable(this))) {
throw new TypeError('Function.prototype.name sham getter called on non-function');
}
if (functionsHaveNames && hasOwn(this, 'name')) {
return this.name;
}
if (this === functionProto) {
return '';
}
var str = $functionToString(this);
var match = $stringMatch(str, regex);
var name = match && match[1];
return name;
};
@@ -0,0 +1,3 @@
export default function insert<T>(data: T[], index: number): (T | undefined)[];
export default function insert<T>(data: T[], index: number, value: T | T[]): T[];
//# sourceMappingURL=insert.d.ts.map
@@ -0,0 +1,16 @@
import * as _heroui_system from '@heroui/system';
import { UseCheckboxGroupProps } from './use-checkbox-group.js';
import 'react';
import '@heroui/theme';
import '@react-types/checkbox';
import '@react-types/shared';
import '@heroui/react-utils';
import '@react-stately/checkbox';
import './checkbox.js';
import './use-checkbox.js';
interface CheckboxGroupProps extends UseCheckboxGroupProps {
}
declare const CheckboxGroup: _heroui_system.InternalForwardRefRenderFunction<"div", CheckboxGroupProps, never>;
export { CheckboxGroupProps, CheckboxGroup as default };
@@ -0,0 +1,171 @@
// @ts-ignore TS6133
import { expect, test } from "vitest";
import * as z from "zod/v3";
import { util } from "../helpers/util.js";
const booleanRecord = z.record(z.boolean());
type booleanRecord = z.infer<typeof booleanRecord>;
const recordWithEnumKeys = z.record(z.enum(["Tuna", "Salmon"]), z.string());
type recordWithEnumKeys = z.infer<typeof recordWithEnumKeys>;
const recordWithLiteralKeys = z.record(z.union([z.literal("Tuna"), z.literal("Salmon")]), z.string());
type recordWithLiteralKeys = z.infer<typeof recordWithLiteralKeys>;
test("type inference", () => {
util.assertEqual<booleanRecord, Record<string, boolean>>(true);
util.assertEqual<recordWithEnumKeys, Partial<Record<"Tuna" | "Salmon", string>>>(true);
util.assertEqual<recordWithLiteralKeys, Partial<Record<"Tuna" | "Salmon", string>>>(true);
});
test("methods", () => {
booleanRecord.optional();
booleanRecord.nullable();
});
test("string record parse - pass", () => {
booleanRecord.parse({
k1: true,
k2: false,
1234: false,
});
});
test("string record parse - fail", () => {
const badCheck = () =>
booleanRecord.parse({
asdf: 1234,
} as any);
expect(badCheck).toThrow();
expect(() => booleanRecord.parse("asdf")).toThrow();
});
test("string record parse - fail", () => {
const badCheck = () =>
booleanRecord.parse({
asdf: {},
} as any);
expect(badCheck).toThrow();
});
test("string record parse - fail", () => {
const badCheck = () =>
booleanRecord.parse({
asdf: [],
} as any);
expect(badCheck).toThrow();
});
test("key schema", () => {
const result1 = recordWithEnumKeys.parse({
Tuna: "asdf",
Salmon: "asdf",
});
expect(result1).toEqual({
Tuna: "asdf",
Salmon: "asdf",
});
const result2 = recordWithLiteralKeys.parse({
Tuna: "asdf",
Salmon: "asdf",
});
expect(result2).toEqual({
Tuna: "asdf",
Salmon: "asdf",
});
// shouldn't require us to specify all props in record
const result3 = recordWithEnumKeys.parse({
Tuna: "abcd",
});
expect(result3).toEqual({
Tuna: "abcd",
});
// shouldn't require us to specify all props in record
const result4 = recordWithLiteralKeys.parse({
Salmon: "abcd",
});
expect(result4).toEqual({
Salmon: "abcd",
});
expect(() =>
recordWithEnumKeys.parse({
Tuna: "asdf",
Salmon: "asdf",
Trout: "asdf",
})
).toThrow();
expect(() =>
recordWithLiteralKeys.parse({
Tuna: "asdf",
Salmon: "asdf",
Trout: "asdf",
})
).toThrow();
});
// test("record element", () => {
// expect(booleanRecord.element).toBeInstanceOf(z.ZodBoolean);
// });
test("key and value getters", () => {
const rec = z.record(z.string(), z.number());
rec.keySchema.parse("asdf");
rec.valueSchema.parse(1234);
rec.element.parse(1234);
});
test("is not vulnerable to prototype pollution", async () => {
const rec = z.record(
z.object({
a: z.string(),
})
);
const data = JSON.parse(`
{
"__proto__": {
"a": "evil"
},
"b": {
"a": "good"
}
}
`);
const obj1 = rec.parse(data);
expect(obj1.a).toBeUndefined();
const obj2 = rec.safeParse(data);
expect(obj2.success).toBe(true);
if (obj2.success) {
expect(obj2.data.a).toBeUndefined();
}
const obj3 = await rec.parseAsync(data);
expect(obj3.a).toBeUndefined();
const obj4 = await rec.safeParseAsync(data);
expect(obj4.success).toBe(true);
if (obj4.success) {
expect(obj4.data.a).toBeUndefined();
}
});
test("dont parse undefined values", () => {
const result1 = z.record(z.any()).parse({ foo: undefined });
expect(result1).toEqual({
foo: undefined,
});
});
@@ -0,0 +1,36 @@
import baseAssignValue from './_baseAssignValue.js';
import baseForOwn from './_baseForOwn.js';
import baseIteratee from './_baseIteratee.js';
/**
* The opposite of `_.mapValues`; this method creates an object with the
* same values as `object` and keys generated by running each own enumerable
* string keyed property of `object` thru `iteratee`. The iteratee is invoked
* with three arguments: (value, key, object).
*
* @static
* @memberOf _
* @since 3.8.0
* @category Object
* @param {Object} object The object to iterate over.
* @param {Function} [iteratee=_.identity] The function invoked per iteration.
* @returns {Object} Returns the new mapped object.
* @see _.mapValues
* @example
*
* _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {
* return key + value;
* });
* // => { 'a1': 1, 'b2': 2 }
*/
function mapKeys(object, iteratee) {
var result = {};
iteratee = baseIteratee(iteratee, 3);
baseForOwn(object, function(value, key, object) {
baseAssignValue(result, iteratee(value, key, object), value);
});
return result;
}
export default mapKeys;
@@ -0,0 +1,2 @@
export type Factory<TActivated, in TArgs extends unknown[] = any[]> = (...args: TArgs) => TActivated | Promise<TActivated>;
//# sourceMappingURL=Factory.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"curryLazyBuildPlanServiceNodeFromClassElementMetadata.d.ts","sourceRoot":"","sources":["../../../../src/planning/actions/curryLazyBuildPlanServiceNodeFromClassElementMetadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,0BAA0B,EAAE,MAAM,uDAAuD,CAAC;AACnG,OAAO,EAAE,yBAAyB,EAAE,MAAM,+CAA+C,CAAC;AAG1F,OAAO,EAAE,2BAA2B,EAAE,MAAM,mDAAmD,CAAC;AAChG,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAGxD,wBAAgB,qDAAqD,CACnE,wBAAwB,EAAE,CACxB,MAAM,EAAE,cAAc,EACtB,sBAAsB,EAAE,yBAAyB,CAAC,0BAA0B,CAAC,EAC7E,eAAe,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE,EACnC,UAAU,EAAE,iBAAiB,EAC7B,eAAe,EAAE,OAAO,KACrB,eAAe,EAAE,GACrB,CACD,MAAM,EAAE,aAAa,EACrB,sBAAsB,EAAE,yBAAyB,CAAC,0BAA0B,CAAC,EAC7E,eAAe,EAAE,2BAA2B,KACzC,eAAe,GAAG,SAAS,CA8B/B"}
@@ -0,0 +1,2 @@
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react");const t="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function n(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function r(e){return"nodeType"in e}function o(e){var t,o;return e?n(e)?e:r(e)&&null!=(t=null==(o=e.ownerDocument)?void 0:o.defaultView)?t:window:window}function u(e){const{Document:t}=o(e);return e instanceof t}function c(e){return!n(e)&&e instanceof o(e).HTMLElement}function s(e){return e instanceof o(e).SVGElement}const i=t?e.useLayoutEffect:e.useEffect;function a(t){const n=e.useRef(t);return i(()=>{n.current=t}),e.useCallback((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return null==n.current?void 0:n.current(...t)}),[])}let l={};function f(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce((t,n)=>{const r=Object.entries(n);for(const[n,o]of r){const r=t[n];null!=r&&(t[n]=r+e*o)}return t},{...t})}}const d=f(1),p=f(-1);function x(e){return"clientX"in e&&"clientY"in e}function m(e){if(!e)return!1;const{TouchEvent:t}=o(e.target);return t&&e instanceof t}const h=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[h.Translate.toString(e),h.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),b="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";exports.CSS=h,exports.add=d,exports.canUseDOM=t,exports.findFirstFocusableNode=function(e){return e.matches(b)?e:e.querySelector(b)},exports.getEventCoordinates=function(e){if(m(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return x(e)?{x:e.clientX,y:e.clientY}:null},exports.getOwnerDocument=function(e){return e?n(e)?e.document:r(e)?u(e)?e:c(e)||s(e)?e.ownerDocument:document:document:document},exports.getWindow=o,exports.hasViewportRelativeCoordinates=x,exports.isDocument=u,exports.isHTMLElement=c,exports.isKeyboardEvent=function(e){if(!e)return!1;const{KeyboardEvent:t}=o(e.target);return t&&e instanceof t},exports.isNode=r,exports.isSVGElement=s,exports.isTouchEvent=m,exports.isWindow=n,exports.subtract=p,exports.useCombinedRefs=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.useMemo(()=>e=>{n.forEach(t=>t(e))},n)},exports.useEvent=a,exports.useInterval=function(){const t=e.useRef(null);return[e.useCallback((e,n)=>{t.current=setInterval(e,n)},[]),e.useCallback(()=>{null!==t.current&&(clearInterval(t.current),t.current=null)},[])]},exports.useIsomorphicLayoutEffect=i,exports.useLatestValue=function(t,n){void 0===n&&(n=[t]);const r=e.useRef(t);return i(()=>{r.current!==t&&(r.current=t)},n),r},exports.useLazyMemo=function(t,n){const r=e.useRef();return e.useMemo(()=>{const e=t(r.current);return r.current=e,e},[...n])},exports.useNodeRef=function(t){const n=a(t),r=e.useRef(null),o=e.useCallback(e=>{e!==r.current&&(null==n||n(e,r.current)),r.current=e},[]);return[r,o]},exports.usePrevious=function(t){const n=e.useRef();return e.useEffect(()=>{n.current=t},[t]),n.current},exports.useUniqueId=function(t,n){return e.useMemo(()=>{if(n)return n;const e=null==l[t]?0:l[t]+1;return l[t]=e,t+"-"+e},[t,n])};
//# sourceMappingURL=utilities.cjs.production.min.js.map
@@ -0,0 +1,176 @@
import type { IssueData, ZodErrorMap, ZodIssue } from "../ZodError.js";
import { getErrorMap } from "../errors.js";
import defaultErrorMap from "../locales/en.js";
import type { ZodParsedType } from "./util.js";
export const makeIssue = (params: {
data: any;
path: (string | number)[];
errorMaps: ZodErrorMap[];
issueData: IssueData;
}): ZodIssue => {
const { data, path, errorMaps, issueData } = params;
const fullPath = [...path, ...(issueData.path || [])];
const fullIssue = {
...issueData,
path: fullPath,
};
if (issueData.message !== undefined) {
return {
...issueData,
path: fullPath,
message: issueData.message,
};
}
let errorMessage = "";
const maps = errorMaps
.filter((m) => !!m)
.slice()
.reverse();
for (const map of maps) {
errorMessage = map(fullIssue, { data, defaultError: errorMessage }).message;
}
return {
...issueData,
path: fullPath,
message: errorMessage,
};
};
export type ParseParams = {
path: (string | number)[];
errorMap: ZodErrorMap;
async: boolean;
};
export type ParsePathComponent = string | number;
export type ParsePath = ParsePathComponent[];
export const EMPTY_PATH: ParsePath = [];
export interface ParseContext {
readonly common: {
readonly issues: ZodIssue[];
readonly contextualErrorMap?: ZodErrorMap | undefined;
readonly async: boolean;
};
readonly path: ParsePath;
readonly schemaErrorMap?: ZodErrorMap | undefined;
readonly parent: ParseContext | null;
readonly data: any;
readonly parsedType: ZodParsedType;
}
export type ParseInput = {
data: any;
path: (string | number)[];
parent: ParseContext;
};
export function addIssueToContext(ctx: ParseContext, issueData: IssueData): void {
const overrideMap = getErrorMap();
const issue = makeIssue({
issueData: issueData,
data: ctx.data,
path: ctx.path,
errorMaps: [
ctx.common.contextualErrorMap, // contextual error map is first priority
ctx.schemaErrorMap, // then schema-bound map if available
overrideMap, // then global override map
overrideMap === defaultErrorMap ? undefined : defaultErrorMap, // then global default map
].filter((x) => !!x),
});
ctx.common.issues.push(issue);
}
export type ObjectPair = {
key: SyncParseReturnType<any>;
value: SyncParseReturnType<any>;
};
export class ParseStatus {
value: "aborted" | "dirty" | "valid" = "valid";
dirty(): void {
if (this.value === "valid") this.value = "dirty";
}
abort(): void {
if (this.value !== "aborted") this.value = "aborted";
}
static mergeArray(status: ParseStatus, results: SyncParseReturnType<any>[]): SyncParseReturnType {
const arrayValue: any[] = [];
for (const s of results) {
if (s.status === "aborted") return INVALID;
if (s.status === "dirty") status.dirty();
arrayValue.push(s.value);
}
return { status: status.value, value: arrayValue };
}
static async mergeObjectAsync(
status: ParseStatus,
pairs: { key: ParseReturnType<any>; value: ParseReturnType<any> }[]
): Promise<SyncParseReturnType<any>> {
const syncPairs: ObjectPair[] = [];
for (const pair of pairs) {
const key = await pair.key;
const value = await pair.value;
syncPairs.push({
key,
value,
});
}
return ParseStatus.mergeObjectSync(status, syncPairs);
}
static mergeObjectSync(
status: ParseStatus,
pairs: {
key: SyncParseReturnType<any>;
value: SyncParseReturnType<any>;
alwaysSet?: boolean;
}[]
): SyncParseReturnType {
const finalObject: any = {};
for (const pair of pairs) {
const { key, value } = pair;
if (key.status === "aborted") return INVALID;
if (value.status === "aborted") return INVALID;
if (key.status === "dirty") status.dirty();
if (value.status === "dirty") status.dirty();
if (key.value !== "__proto__" && (typeof value.value !== "undefined" || pair.alwaysSet)) {
finalObject[key.value] = value.value;
}
}
return { status: status.value, value: finalObject };
}
}
export interface ParseResult {
status: "aborted" | "dirty" | "valid";
data: any;
}
export type INVALID = { status: "aborted" };
export const INVALID: INVALID = Object.freeze({
status: "aborted",
});
export type DIRTY<T> = { status: "dirty"; value: T };
export const DIRTY = <T>(value: T): DIRTY<T> => ({ status: "dirty", value });
export type OK<T> = { status: "valid"; value: T };
export const OK = <T>(value: T): OK<T> => ({ status: "valid", value });
export type SyncParseReturnType<T = any> = OK<T> | DIRTY<T> | INVALID;
export type AsyncParseReturnType<T> = Promise<SyncParseReturnType<T>>;
export type ParseReturnType<T> = SyncParseReturnType<T> | AsyncParseReturnType<T>;
export const isAborted = (x: ParseReturnType<any>): x is INVALID => (x as any).status === "aborted";
export const isDirty = <T>(x: ParseReturnType<T>): x is OK<T> | DIRTY<T> => (x as any).status === "dirty";
export const isValid = <T>(x: ParseReturnType<T>): x is OK<T> => (x as any).status === "valid";
export const isAsync = <T>(x: ParseReturnType<T>): x is AsyncParseReturnType<T> =>
typeof Promise !== "undefined" && x instanceof Promise;
@@ -0,0 +1,29 @@
/**
* @author Yosuke Ota <https://github.com/ota-meshi>
* See LICENSE file in root directory for full license.
*/
"use strict"
module.exports = {
meta: {
docs: {
description: "disallow class static block.",
category: "ES2022",
recommended: false,
url: "http://eslint-community.github.io/eslint-plugin-es-x/rules/no-class-static-block.html",
},
fixable: null,
messages: {
forbidden: "ES2022 class static block is forbidden.",
},
schema: [],
type: "problem",
},
create(context) {
return {
StaticBlock(node) {
context.report({ node, messageId: "forbidden" })
},
}
},
}
@@ -0,0 +1,281 @@
'use strict'
const { URL } = require('url')
const Minipass = require('minipass')
const Headers = require('./headers.js')
const { exportNodeCompatibleHeaders } = Headers
const Body = require('./body.js')
const { clone, extractContentType, getTotalBytes } = Body
const version = require('../package.json').version
const defaultUserAgent =
`minipass-fetch/${version} (+https://github.com/isaacs/minipass-fetch)`
const INTERNALS = Symbol('Request internals')
const isRequest = input =>
typeof input === 'object' && typeof input[INTERNALS] === 'object'
const isAbortSignal = signal => {
const proto = (
signal
&& typeof signal === 'object'
&& Object.getPrototypeOf(signal)
)
return !!(proto && proto.constructor.name === 'AbortSignal')
}
class Request extends Body {
constructor (input, init = {}) {
const parsedURL = isRequest(input) ? new URL(input.url)
: input && input.href ? new URL(input.href)
: new URL(`${input}`)
if (isRequest(input)) {
init = { ...input[INTERNALS], ...init }
} else if (!input || typeof input === 'string') {
input = {}
}
const method = (init.method || input.method || 'GET').toUpperCase()
const isGETHEAD = method === 'GET' || method === 'HEAD'
if ((init.body !== null && init.body !== undefined ||
isRequest(input) && input.body !== null) && isGETHEAD) {
throw new TypeError('Request with GET/HEAD method cannot have body')
}
const inputBody = init.body !== null && init.body !== undefined ? init.body
: isRequest(input) && input.body !== null ? clone(input)
: null
super(inputBody, {
timeout: init.timeout || input.timeout || 0,
size: init.size || input.size || 0,
})
const headers = new Headers(init.headers || input.headers || {})
if (inputBody !== null && inputBody !== undefined &&
!headers.has('Content-Type')) {
const contentType = extractContentType(inputBody)
if (contentType) {
headers.append('Content-Type', contentType)
}
}
const signal = 'signal' in init ? init.signal
: null
if (signal !== null && signal !== undefined && !isAbortSignal(signal)) {
throw new TypeError('Expected signal must be an instanceof AbortSignal')
}
// TLS specific options that are handled by node
const {
ca,
cert,
ciphers,
clientCertEngine,
crl,
dhparam,
ecdhCurve,
family,
honorCipherOrder,
key,
passphrase,
pfx,
rejectUnauthorized = process.env.NODE_TLS_REJECT_UNAUTHORIZED !== '0',
secureOptions,
secureProtocol,
servername,
sessionIdContext,
} = init
this[INTERNALS] = {
method,
redirect: init.redirect || input.redirect || 'follow',
headers,
parsedURL,
signal,
ca,
cert,
ciphers,
clientCertEngine,
crl,
dhparam,
ecdhCurve,
family,
honorCipherOrder,
key,
passphrase,
pfx,
rejectUnauthorized,
secureOptions,
secureProtocol,
servername,
sessionIdContext,
}
// node-fetch-only options
this.follow = init.follow !== undefined ? init.follow
: input.follow !== undefined ? input.follow
: 20
this.compress = init.compress !== undefined ? init.compress
: input.compress !== undefined ? input.compress
: true
this.counter = init.counter || input.counter || 0
this.agent = init.agent || input.agent
}
get method () {
return this[INTERNALS].method
}
get url () {
return this[INTERNALS].parsedURL.toString()
}
get headers () {
return this[INTERNALS].headers
}
get redirect () {
return this[INTERNALS].redirect
}
get signal () {
return this[INTERNALS].signal
}
clone () {
return new Request(this)
}
get [Symbol.toStringTag] () {
return 'Request'
}
static getNodeRequestOptions (request) {
const parsedURL = request[INTERNALS].parsedURL
const headers = new Headers(request[INTERNALS].headers)
// fetch step 1.3
if (!headers.has('Accept')) {
headers.set('Accept', '*/*')
}
// Basic fetch
if (!/^https?:$/.test(parsedURL.protocol)) {
throw new TypeError('Only HTTP(S) protocols are supported')
}
if (request.signal &&
Minipass.isStream(request.body) &&
typeof request.body.destroy !== 'function') {
throw new Error(
'Cancellation of streamed requests with AbortSignal is not supported')
}
// HTTP-network-or-cache fetch steps 2.4-2.7
const contentLengthValue =
(request.body === null || request.body === undefined) &&
/^(POST|PUT)$/i.test(request.method) ? '0'
: request.body !== null && request.body !== undefined
? getTotalBytes(request)
: null
if (contentLengthValue) {
headers.set('Content-Length', contentLengthValue + '')
}
// HTTP-network-or-cache fetch step 2.11
if (!headers.has('User-Agent')) {
headers.set('User-Agent', defaultUserAgent)
}
// HTTP-network-or-cache fetch step 2.15
if (request.compress && !headers.has('Accept-Encoding')) {
headers.set('Accept-Encoding', 'gzip,deflate')
}
const agent = typeof request.agent === 'function'
? request.agent(parsedURL)
: request.agent
if (!headers.has('Connection') && !agent) {
headers.set('Connection', 'close')
}
// TLS specific options that are handled by node
const {
ca,
cert,
ciphers,
clientCertEngine,
crl,
dhparam,
ecdhCurve,
family,
honorCipherOrder,
key,
passphrase,
pfx,
rejectUnauthorized,
secureOptions,
secureProtocol,
servername,
sessionIdContext,
} = request[INTERNALS]
// HTTP-network fetch step 4.2
// chunked encoding is handled by Node.js
// we cannot spread parsedURL directly, so we have to read each property one-by-one
// and map them to the equivalent https?.request() method options
const urlProps = {
auth: parsedURL.username || parsedURL.password
? `${parsedURL.username}:${parsedURL.password}`
: '',
host: parsedURL.host,
hostname: parsedURL.hostname,
path: `${parsedURL.pathname}${parsedURL.search}`,
port: parsedURL.port,
protocol: parsedURL.protocol,
}
return {
...urlProps,
method: request.method,
headers: exportNodeCompatibleHeaders(headers),
agent,
ca,
cert,
ciphers,
clientCertEngine,
crl,
dhparam,
ecdhCurve,
family,
honorCipherOrder,
key,
passphrase,
pfx,
rejectUnauthorized,
secureOptions,
secureProtocol,
servername,
sessionIdContext,
}
}
}
module.exports = Request
Object.defineProperties(Request.prototype, {
method: { enumerable: true },
url: { enumerable: true },
headers: { enumerable: true },
redirect: { enumerable: true },
clone: { enumerable: true },
signal: { enumerable: true },
})
@@ -0,0 +1 @@
{"version":3,"file":"table.js","names":["Delta","Quill","Module","TableCell","TableRow","TableBody","TableContainer","tableId","Table","register","constructor","arguments","listenBalanceCells","balanceTables","quill","scroll","descendants","forEach","table","balanceCells","deleteColumn","cell","getTable","cellOffset","update","sources","USER","deleteRow","row","remove","deleteTable","offset","setSelection","SILENT","range","length","undefined","getSelection","getLine","index","statics","blotName","parent","insertColumn","column","shift","rowOffset","insertColumnLeft","insertColumnRight","insertRow","children","insertRowAbove","insertRowBelow","insertTable","rows","columns","delta","Array","fill","reduce","memo","text","join","insert","retain","updateContents","on","events","SCROLL_OPTIMIZE","mutations","some","mutation","includes","target","tagName","once","TEXT_CHANGE","old","source"],"sources":["../../src/modules/table.ts"],"sourcesContent":["import Delta from 'quill-delta';\nimport Quill from '../core/quill.js';\nimport Module from '../core/module.js';\nimport {\n TableCell,\n TableRow,\n TableBody,\n TableContainer,\n tableId,\n} from '../formats/table.js';\n\nclass Table extends Module {\n static register() {\n Quill.register(TableCell);\n Quill.register(TableRow);\n Quill.register(TableBody);\n Quill.register(TableContainer);\n }\n\n constructor(...args: ConstructorParameters<typeof Module>) {\n super(...args);\n this.listenBalanceCells();\n }\n\n balanceTables() {\n this.quill.scroll.descendants(TableContainer).forEach((table) => {\n table.balanceCells();\n });\n }\n\n deleteColumn() {\n const [table, , cell] = this.getTable();\n if (cell == null) return;\n // @ts-expect-error\n table.deleteColumn(cell.cellOffset());\n this.quill.update(Quill.sources.USER);\n }\n\n deleteRow() {\n const [, row] = this.getTable();\n if (row == null) return;\n row.remove();\n this.quill.update(Quill.sources.USER);\n }\n\n deleteTable() {\n const [table] = this.getTable();\n if (table == null) return;\n // @ts-expect-error\n const offset = table.offset();\n // @ts-expect-error\n table.remove();\n this.quill.update(Quill.sources.USER);\n this.quill.setSelection(offset, Quill.sources.SILENT);\n }\n\n getTable(\n range = this.quill.getSelection(),\n ): [null, null, null, -1] | [Table, TableRow, TableCell, number] {\n if (range == null) return [null, null, null, -1];\n const [cell, offset] = this.quill.getLine(range.index);\n if (cell == null || cell.statics.blotName !== TableCell.blotName) {\n return [null, null, null, -1];\n }\n const row = cell.parent;\n const table = row.parent.parent;\n // @ts-expect-error\n return [table, row, cell, offset];\n }\n\n insertColumn(offset: number) {\n const range = this.quill.getSelection();\n if (!range) return;\n const [table, row, cell] = this.getTable(range);\n if (cell == null) return;\n const column = cell.cellOffset();\n table.insertColumn(column + offset);\n this.quill.update(Quill.sources.USER);\n let shift = row.rowOffset();\n if (offset === 0) {\n shift += 1;\n }\n this.quill.setSelection(\n range.index + shift,\n range.length,\n Quill.sources.SILENT,\n );\n }\n\n insertColumnLeft() {\n this.insertColumn(0);\n }\n\n insertColumnRight() {\n this.insertColumn(1);\n }\n\n insertRow(offset: number) {\n const range = this.quill.getSelection();\n if (!range) return;\n const [table, row, cell] = this.getTable(range);\n if (cell == null) return;\n const index = row.rowOffset();\n table.insertRow(index + offset);\n this.quill.update(Quill.sources.USER);\n if (offset > 0) {\n this.quill.setSelection(range, Quill.sources.SILENT);\n } else {\n this.quill.setSelection(\n range.index + row.children.length,\n range.length,\n Quill.sources.SILENT,\n );\n }\n }\n\n insertRowAbove() {\n this.insertRow(0);\n }\n\n insertRowBelow() {\n this.insertRow(1);\n }\n\n insertTable(rows: number, columns: number) {\n const range = this.quill.getSelection();\n if (range == null) return;\n const delta = new Array(rows).fill(0).reduce((memo) => {\n const text = new Array(columns).fill('\\n').join('');\n return memo.insert(text, { table: tableId() });\n }, new Delta().retain(range.index));\n this.quill.updateContents(delta, Quill.sources.USER);\n this.quill.setSelection(range.index, Quill.sources.SILENT);\n this.balanceTables();\n }\n\n listenBalanceCells() {\n this.quill.on(\n Quill.events.SCROLL_OPTIMIZE,\n (mutations: MutationRecord[]) => {\n mutations.some((mutation) => {\n if (\n ['TD', 'TR', 'TBODY', 'TABLE'].includes(\n (mutation.target as HTMLElement).tagName,\n )\n ) {\n this.quill.once(Quill.events.TEXT_CHANGELine truncated
@@ -0,0 +1,13 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ImplicitGlobalVariableDefinition = void 0;
const DefinitionBase_1 = require("./DefinitionBase");
const DefinitionType_1 = require("./DefinitionType");
class ImplicitGlobalVariableDefinition extends DefinitionBase_1.DefinitionBase {
isTypeDefinition = false;
isVariableDefinition = true;
constructor(name, node) {
super(DefinitionType_1.DefinitionType.ImplicitGlobalVariable, name, node, null);
}
}
exports.ImplicitGlobalVariableDefinition = ImplicitGlobalVariableDefinition;
@@ -0,0 +1 @@
{"name":"@types/unist","version":"3.0.3","requiresBuild":false,"files":{"LICENSE":{"checkedAt":1794532112579,"integrity":"sha512-HQaIQk9pwOcyKutyDk4o2a87WnotwYuLGYFW43emGm4FvIJFKPyg+OYaw5sTegKAKf+C5SKa1ACjzCLivbaHrQ==","mode":420,"size":1141},"README.md":{"checkedAt":1794532112580,"integrity":"sha512-vbZuxQ/ExgLksaPZTTylN8n7BFEQSMNoasJkZKAlStLOxmzg0d48Taj9oCWjVEvJjRCVVR52nD4FQ7m+BR9smw==","mode":420,"size":770},"index.d.ts":{"checkedAt":1794532112580,"integrity":"sha512-4D5z98Rqe/SkRJFLSOBoA2DGhVKH2SvQg1TKOw8eUKCyaXFB0vPPUiDWlJepsnZ78TFPqI64cLVmDgsAiLEuKg==","mode":420,"size":2543},"package.json":{"checkedAt":1794532112580,"integrity":"sha512-XI2C5yyX+E/HIgCElrhQAsUhuJXysjnTnCz//QmM4gi2rhy6AmY2PoQ8pO0XbB6F/AQejHPEnca8nl48cA7ziQ==","mode":420,"size":1808}}}
@@ -0,0 +1,719 @@
export default `flf2a$ 7 7 20 -1 3
banner3 by Merlin Greywolf merlin@brahms.udel.edu
August 9, 1994
$$$@
$$$@
$$$@
$$$@
$$$@
$$$@
$$$@@
####$@
####$@
####$@
## $@
$@
####$@
####$@@
#### ####$@
#### ####$@
## ## $@
$ $@
$ $@
$@
$@@
## ## $@
## ## $@
#########$@
## ## $@
#########$@
## ## $@
## ## $@@
######## $@
## ## ##$@
## ## $@
######## $@
## ##$@
## ## ##$@
######## $@@
##### ## $@
## ## ## $@
##### ## $@
## $@
## #####$@
## ## ##$@
## #####$@@
#### $@
## ## $@
#### $@
#### $@
## ## ##$@
## ## $@
#### ##$@@
####$@
####$@
## $@
## $@
$@
$@
$@@
###$@
## $@
## $@
## $@
## $@
## $@
###$@@
### $@
## $@
##$@
##$@
##$@
## $@
### $@@
$@
## ## $@
## ## $@
#########$@
## ## $@
## ## $@
$@@
$@
## $@
## $@
######$@
## $@
## $@
$@@
$@
$@
$@
####$@
####$@
## $@
## $@@
$@
$@
$@
#######$@
$@
$@
$@@
$@
$@
$@
$@
$@
###$@
###$@@
##$@
## $@
## $@
## $@
## $@
## $@
## $@@
##### $@
## ## $@
## ##$@
## ##$@
## ##$@
## ## $@
##### $@@
## $@
#### $@
## $@
## $@
## $@
## $@
######$@@
####### $@
## ##$@
##$@
####### $@
## $@
## $@
#########$@@
####### $@
## ##$@
##$@
####### $@
##$@
## ##$@
####### $@@
## $@
## ## $@
## ## $@
## ## $@
#########$@
## $@
## $@@
########$@
## $@
## $@
####### $@
##$@
## ##$@
###### $@@
####### $@
## ##$@
## $@
######## $@
## ##$@
## ##$@
####### $@@
########$@
## ##$@
## $@
## $@
## $@
## $@
## $@@
####### $@
## ##$@
## ##$@
####### $@
## ##$@
## ##$@
####### $@@
####### $@
## ##$@
## ##$@
########$@
##$@
## ##$@
####### $@@
## $@
####$@
## $@
$@
## $@
####$@
## $@@
####$@
####$@
$@
####$@
####$@
## $@
## $@@
##$@
## $@
## $@
## $@
## $@
## $@
##$@@
$@
$@
#####$@
$@
#####$@
$@
$@@
## $@
## $@
## $@
##$@
## $@
## $@
## $@@
####### $@
## ##$@
## $@
### $@
## $@
$@
## $@@
####### $@
## ##$@
## ### ##$@
## ### ##$@
## ##### $@
## $@
####### $@@
### $@
## ## $@
## ## $@
## ##$@
#########$@
## ##$@
## ##$@@
######## $@
## ##$@
## ##$@
######## $@
## ##$@
## ##$@
######## $@@
###### $@
## ##$@
## $@
## $@
## $@
## ##$@
###### $@@
######## $@
## ##$@
## ##$@
## ##$@
## ##$@
## ##$@
######## $@@
########$@
## $@
## $@
###### $@
## $@
## $@
########$@@
########$@
## $@
## $@
###### $@
## $@
## $@
## $@@
###### $@
## ## $@
## $@
## ####$@
## ## $@
## ## $@
###### $@@
## ##$@
## ##$@
## ##$@
#########$@
## ##$@
## ##$@
## ##$@@
####$@
## $@
## $@
## $@
## $@
## $@
####$@@
##$@
##$@
##$@
##$@
## ##$@
## ##$@
###### $@@
## ##$@
## ## $@
## ## $@
##### $@
## ## $@
## ## $@
## ##$@@
## $@
## $@
## $@
## $@
## $@
## $@
########$@@
## ##$@
### ###$@
#### ####$@
## ### ##$@
## ##$@
## ##$@
## ##$@@
## ##$@
### ##$@
#### ##$@
## ## ##$@
## ####$@
## ###$@
## ##$@@
####### $@
## ##$@
## ##$@
## ##$@
## ##$@
## ##$@
####### $@@
######## $@
## ##$@
## ##$@
######## $@
## $@
## $@
## $@@
####### $@
## ##$@
## ##$@
## ##$@
## ## ##$@
## ## $@
##### ##$@@
######## $@
## ##$@
## ##$@
######## $@
## ## $@
## ## $@
## ##$@@
###### $@
## ##$@
## $@
###### $@
##$@
## ##$@
###### $@@
########$@
## $@
## $@
## $@
## $@
## $@
## $@@
## ##$@
## ##$@
## ##$@
## ##$@
## ##$@
## ##$@
####### $@@
## ##$@
## ##$@
## ##$@
## ##$@
## ## $@
## ## $@
### $@@
## ##$@
## ## ##$@
## ## ##$@
## ## ##$@
## ## ##$@
## ## ##$@
### ### $@@
## ##$@
## ## $@
## ## $@
### $@
## ## $@
## ## $@
## ##$@@
## ##$@
## ## $@
#### $@
## $@
## $@
## $@
## $@@
########$@
## $@
## $@
## $@
## $@
## $@
########$@@
######$@
## $@
## $@
## $@
## $@
## $@
######$@@
## $@
## $@
## $@
## $@
## $@
## $@
##$@@
######$@
##$@
##$@
##$@
##$@
##$@
######$@@
### $@
## ## $@
## ##$@
$@
$@
$@
$@@
$@
$@
$@
$@
$@
$@
#######$@@
####$@
####$@
## $@
##$@
$@
$@
$@@
### $@
## ## $@
## ## $@
## ##$@
#########$@
## ##$@
## ##$@@
######## $@
## ##$@
## ##$@
######## $@
## ##$@
## ##$@
######## $@@
###### $@
## ##$@
## $@
## $@
## $@
## ##$@
###### $@@
######## $@
## ##$@
## ##$@
## ##$@
## ##$@
## ##$@
######## $@@
########$@
## $@
## $@
###### $@
## $@
## $@
########$@@
########$@
## $@
## $@
###### $@
## $@
## $@
## $@@
###### $@
## ## $@
## $@
## ####$@
## ## $@
## ## $@
###### $@@
## ##$@
## ##$@
## ##$@
#########$@
## ##$@
## ##$@
## ##$@@
####$@
## $@
## $@
## $@
## $@
## $@
####$@@
##$@
##$@
##$@
##$@
## ##$@
## ##$@
###### $@@
## ##$@
## ## $@
## ## $@
##### $@
## ## $@
## ## $@
## ##$@@
## $@
## $@
## $@
## $@
## $@
## $@
########$@@
## ##$@
### ###$@
#### ####$@
## ### ##$@
## ##$@
## ##$@
## ##$@@
## ##$@
### ##$@
#### ##$@
## ## ##$@
## ####$@
## ###$@
## ##$@@
####### $@
## ##$@
## ##$@
## ##$@
## ##$@
## ##$@
####### $@@
######## $@
## ##$@
## ##$@
######## $@
## $@
## $@
## $@@
####### $@
## ##$@
## ##$@
## ##$@
## ## ##$@
## ## $@
##### ##$@@
######## $@
## ##$@
## ##$@
######## $@
## ## $@
## ## $@
## ##$@@
###### $@
## ##$@
## $@
###### $@
##$@
## ##$@
###### $@@
########$@
## $@
## $@
## $@
## $@
## $@
## $@@
## ##$@
## ##$@
## ##$@
## ##$@
## ##$@
## ##$@
####### $@@
## ##$@
## ##$@
## ##$@
## ##$@
## ## $@
## ## $@
### $@@
## ##$@
## ## ##$@
## ## ##$@
## ## ##$@
## ## ##$@
## ## ##$@
### ### $@@
## ##$@
## ## $@
## ## $@
### $@
## ## $@
## ## $@
## ##$@@
## ##$@
## ## $@
#### $@
## $@
## $@
## $@
## $@@
########$@
## $@
## $@
## $@
## $@
## $@
########$@@
####$@
## $@
## $@
### $@
## $@
## $@
####$@@
##$@
##$@
##$@
$@
##$@
##$@
##$@@
#### $@
## $@
## $@
###$@
## $@
## $@
#### $@@
#### $@
## ## ##$@
#### $@
$@
$@
$@
$@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@@
`
Loaded 100 of 35554 files, more files were not shown because too many files have changed in this diff. Show more