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,57 @@
import { __read } from "tslib";
import { useEffect, useState } from 'react';
import useMemoizedFn from '../useMemoizedFn';
import isBrowser from '../utils/isBrowser';
export var ThemeMode;
(function (ThemeMode) {
ThemeMode["LIGHT"] = "light";
ThemeMode["DARK"] = "dark";
ThemeMode["SYSTEM"] = "system";
})(ThemeMode || (ThemeMode = {}));
var useCurrentTheme = function () {
var matchMedia = isBrowser ? window.matchMedia('(prefers-color-scheme: dark)') : undefined;
var _a = __read(useState(function () {
if (isBrowser) {
return (matchMedia === null || matchMedia === void 0 ? void 0 : matchMedia.matches) ? ThemeMode.DARK : ThemeMode.LIGHT;
}
else {
return ThemeMode.LIGHT;
}
}), 2), theme = _a[0], setTheme = _a[1];
useEffect(function () {
var onThemeChange = function (event) {
if (event.matches) {
setTheme(ThemeMode.DARK);
}
else {
setTheme(ThemeMode.LIGHT);
}
};
matchMedia === null || matchMedia === void 0 ? void 0 : matchMedia.addEventListener('change', onThemeChange);
return function () {
matchMedia === null || matchMedia === void 0 ? void 0 : matchMedia.removeEventListener('change', onThemeChange);
};
}, []);
return theme;
};
export default function useTheme(options) {
if (options === void 0) { options = {}; }
var localStorageKey = options.localStorageKey;
var _a = __read(useState(function () {
var preferredThemeMode = (localStorageKey === null || localStorageKey === void 0 ? void 0 : localStorageKey.length) && localStorage.getItem(localStorageKey);
return preferredThemeMode || ThemeMode.SYSTEM;
}), 2), themeMode = _a[0], setThemeMode = _a[1];
var setThemeModeWithLocalStorage = function (mode) {
setThemeMode(mode);
if (localStorageKey === null || localStorageKey === void 0 ? void 0 : localStorageKey.length) {
localStorage.setItem(localStorageKey, mode);
}
};
var currentTheme = useCurrentTheme();
var theme = themeMode === ThemeMode.SYSTEM ? currentTheme : themeMode;
return {
theme: theme,
themeMode: themeMode,
setThemeMode: useMemoizedFn(setThemeModeWithLocalStorage),
};
}
@@ -0,0 +1,31 @@
import baseMatches from './_baseMatches.js';
import baseMatchesProperty from './_baseMatchesProperty.js';
import identity from './identity.js';
import isArray from './isArray.js';
import property from './property.js';
/**
* The base implementation of `_.iteratee`.
*
* @private
* @param {*} [value=_.identity] The value to convert to an iteratee.
* @returns {Function} Returns the iteratee.
*/
function baseIteratee(value) {
// Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
// See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
if (typeof value == 'function') {
return value;
}
if (value == null) {
return identity;
}
if (typeof value == 'object') {
return isArray(value)
? baseMatchesProperty(value[0], value[1])
: baseMatches(value);
}
return property(value);
}
export default baseIteratee;
@@ -0,0 +1,28 @@
const featureProps = {
animation: [
"animate",
"variants",
"whileHover",
"whileTap",
"exit",
"whileInView",
"whileFocus",
"whileDrag",
],
exit: ["exit"],
drag: ["drag", "dragControls"],
focus: ["whileFocus"],
hover: ["whileHover", "onHoverStart", "onHoverEnd"],
tap: ["whileTap", "onTap", "onTapStart", "onTapCancel"],
pan: ["onPan", "onPanStart", "onPanSessionStart", "onPanEnd"],
inView: ["whileInView", "onViewportEnter", "onViewportLeave"],
layout: ["layout", "layoutId"],
};
const featureDefinitions = {};
for (const key in featureProps) {
featureDefinitions[key] = {
isEnabled: (props) => featureProps[key].some((name) => !!props[name]),
};
}
export { featureDefinitions };
@@ -0,0 +1,19 @@
'use strict';
var GetIntrinsic = require('get-intrinsic');
var $String = GetIntrinsic('%String%');
var $RangeError = require('es-errors/range');
var isInteger = require('math-intrinsics/isInteger');
var StringPad = require('./StringPad');
// https://262.ecma-international.org/13.0/#sec-tozeropaddeddecimalstring
module.exports = function ToZeroPaddedDecimalString(n, minLength) {
if (!isInteger(n) || n < 0) {
throw new $RangeError('Assertion failed: `q` must be a non-negative integer');
}
var S = $String(n);
return StringPad(S, minLength, '0', 'start');
};
@@ -0,0 +1,32 @@
import type { Static } from '../../type/static/index';
import { TypeBoxError } from '../../type/error/index';
import { type TLiteral } from '../../type/literal/index';
import { type TObject } from '../../type/object/index';
import { type TString } from '../../type/string/index';
import { type TUnknown } from '../../type/unknown/index';
import { type TUnion } from '../../type/union/index';
export type Insert = Static<typeof Insert>;
export declare const Insert: TObject<{
type: TLiteral<'insert'>;
path: TString;
value: TUnknown;
}>;
export type Update = Static<typeof Update>;
export declare const Update: TObject<{
type: TLiteral<'update'>;
path: TString;
value: TUnknown;
}>;
export type Delete = Static<typeof Delete>;
export declare const Delete: TObject<{
type: TLiteral<'delete'>;
path: TString;
}>;
export type Edit = Static<typeof Edit>;
export declare const Edit: TUnion<[typeof Insert, typeof Update, typeof Delete]>;
export declare class ValueDiffError extends TypeBoxError {
readonly value: unknown;
constructor(value: unknown, message: string);
}
export declare function Diff(current: unknown, next: unknown): Edit[];
export declare function Patch<T = any>(current: unknown, edits: Edit[]): T;
@@ -0,0 +1,300 @@
==================================================================
Notes regarding fonts, code pages, and East Asian character widths
==================================================================
Registry settings
=================
* There are console registry settings in `HKCU\Console`. That key has many
default settings (e.g. the default font settings) and also per-app subkeys
for app-specific overrides.
* It is possible to override the code page with an app-specific setting.
* There are registry settings in
`HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Console`. In particular,
the `TrueTypeFont` subkey has a list of suitable font names associated with
various CJK code pages, as well as default font names.
* There are two values in `HKLM\SYSTEM\CurrentControlSet\Control\Nls\CodePage`
that specify the current code pages -- `OEMCP` and `ACP`. Setting the
system locale via the Control Panel's "Region" or "Language" dialogs seems
to change these code page values.
Console fonts
=============
* The `FontFamily` field of `CONSOLE_FONT_INFOEX` has two parts:
- The high four bits can be exactly one of the `FF_xxxx` font families:
FF_DONTCARE(0x00)
FF_ROMAN(0x10)
FF_SWISS(0x20)
FF_MODERN(0x30)
FF_SCRIPT(0x40)
FF_DECORATIVE(0x50)
- The low four bits are a bitmask:
TMPF_FIXED_PITCH(1) -- actually means variable pitch
TMPF_VECTOR(2)
TMPF_TRUETYPE(4)
TMPF_DEVICE(8)
* Each console has its own independent console font table. The current font
is identified with an index into this table. The size of the table is
returned by the undocumented `GetNumberOfConsoleFonts` API. It is apparently
possible to get the table size without this API, by instead calling
`GetConsoleFontSize` on each nonnegative index starting with 0 until the API
fails by returning (0, 0).
* The font table grows dynamically. Each time the console is configured with
a previously-unused (FaceName, Size) combination, two entries are added to
the font table -- one with normal weight and one with bold weight. Fonts
added this way are always TrueType fonts.
* Initially, the font table appears to contain only raster fonts. For
example, on an English Windows 8 installation, here is the initial font
table:
font 0: 4x6
font 1: 6x8
font 2: 8x8
font 3: 16x8
font 4: 5x12
font 5: 7x12
font 6: 8x12 -- the current font
font 7: 16x12
font 8: 12x16
font 9: 10x18
`GetNumberOfConsoleFonts` returns 10, and this table matches the raster font
sizes according to the console properties dialog.
* With a Japanese or Chinese locale, the initial font table appears to contain
the sizes applicable to both the East Asian raster font, as well as the
sizes for the CP437/CP1252 raster font.
* The index passed to `SetCurrentConsoleFontEx` apparently has no effect.
The undocumented `SetConsoleFont` API, however, accepts *only* a font index,
and on Windows 8 English, it switches between all 10 fonts, even font index
#0.
* If the index passed to `SetConsoleFont` identifies a Raster Font
incompatible with the current code page, then another Raster Font is
activated.
* Passing "Terminal" to `SetCurrentConsoleFontEx` seems to have no effect.
Perhaps relatedly, `SetCurrentConsoleFontEx` does not fail if it is given a
bogus `FaceName`. Some font is still chosen and activated. Passing a face
name and height seems to work reliably, modulo the CP936 issue described
below.
Console fonts and code pages
============================
* On an English Windows installation, the default code page is 437, and it
cannot be set to 932 (Shift-JIS). (The API call fails.) Changing the
system locale to "Japanese (Japan)" using the Region/Language dialog
changes the default CP to 932 and permits changing the console CP between
437 and 932.
* A console has both an input code page and an output code page
(`{Get,Set}ConsoleCP` and `{Get,Set}ConsoleOutputCP`). I'm not going to
distinguish between the two for this document; presumably only the output
CP matters. The code page can change while the console is open, e.g.
by running `mode con: cp select={932,437,1252}` or by calling
`SetConsoleOutputCP`.
* The current code page restricts which TrueType fonts and which Raster Font
sizes are available in the console properties dialog. This can change
while the console is open.
* Changing the code page almost(?) always changes the current console font.
So far, I don't know how the new font is chosen.
* With a CP of 932, the only TrueType font available in the console properties
dialog is "MS Gothic", displayed as "MS ゴシック". It is still possible to
use the English-default TrueType console fonts, Lucida Console and Consolas,
via `SetCurrentConsoleFontEx`.
* When using a Raster Font and CP437 or CP1252, writing a UTF-16 codepoint not
representable in the code page instead writes a question mark ('?') to the
console. This conversion does not apply with a TrueType font, nor with the
Raster Font for CP932 or CP936.
ReadConsoleOutput and double-width characters
==============================================
* With a Raster Font active, when `ReadConsoleOutputW` reads two cells of a
double-width character, it fills only a single `CHAR_INFO` structure. The
unused trailing `CHAR_INFO` structures are zero-filled. With a TrueType
font active, `ReadConsoleOutputW` instead fills two `CHAR_INFO` structures,
the first marked with `COMMON_LVB_LEADING_BYTE` and the second marked with
`COMMON_LVB_TRAILING_BYTE`. The flag is a misnomer--there aren't two
*bytes*, but two cells, and they have equal `CHAR_INFO.Char.UnicodeChar`
values.
* `ReadConsoleOutputA`, on the other hand, reads two `CHAR_INFO` cells, and
if the UTF-16 value can be represented as two bytes in the ANSI/OEM CP, then
the two bytes are placed in the two `CHAR_INFO.Char.AsciiChar` values, and
the `COMMON_LVB_{LEADING,TRAILING}_BYTE` values are also used. If the
codepoint isn't representable, I don't remember what happens -- I think the
`AsciiChar` values take on an invalid marker.
* Reading only one cell of a double-width character reads a space (U+0020)
instead. Raster-vs-TrueType and wide-vs-ANSI do not matter.
- XXX: what about attributes? Can a double-width character have mismatched
color attributes?
- XXX: what happens when writing to just one cell of a double-width
character?
Default Windows fonts for East Asian languages
==============================================
CP932 / Japanese: "MS ゴシック" (MS Gothic)
CP936 / Chinese Simplified: "新宋体" (SimSun)
Unreliable character width (half-width vs full-width)
=====================================================
The half-width vs full-width status of a codepoint depends on at least these variables:
* OS version (Win10 legacy and new modes are different versions)
* system locale (English vs Japanese vs Chinese Simplified vs Chinese Traditional, etc)
* code page (437 vs 932 vs 936, etc)
* raster vs TrueType (Terminal vs MS Gothic vs SimSun, etc)
* font size
* rendered-vs-model (rendered width can be larger or smaller than model width)
Example 1: U+2014 (EM DASH): East_Asian_Width: Ambiguous
--------------------------------------------------------
rendered modeled
CP932: Win7/8 Raster Fonts half half
CP932: Win7/8 Gothic 14/15px half full
CP932: Win7/8 Consolas 14/15px half full
CP932: Win7/8 Lucida Console 14px half full
CP932: Win7/8 Lucida Console 15px half half
CP932: Win10New Raster Fonts half half
CP932: Win10New Gothic 14/15px half half
CP932: Win10New Consolas 14/15px half half
CP932: Win10New Lucida Console 14/15px half half
CP936: Win7/8 Raster Fonts full full
CP936: Win7/8 SimSun 14px full full
CP936: Win7/8 SimSun 15px full half
CP936: Win7/8 Consolas 14/15px half full
CP936: Win10New Raster Fonts full full
CP936: Win10New SimSum 14/15px full full
CP936: Win10New Consolas 14/15px half half
Example 2: U+3044 (HIRAGANA LETTER I): East_Asian_Width: Wide
-------------------------------------------------------------
rendered modeled
CP932: Win7/8/10N Raster Fonts full full
CP932: Win7/8/10N Gothic 14/15px full full
CP932: Win7/8/10N Consolas 14/15px half(*2) full
CP932: Win7/8/10N Lucida Console 14/15px half(*3) full
CP936: Win7/8/10N Raster Fonts full full
CP936: Win7/8/10N SimSun 14/15px full full
CP936: Win7/8/10N Consolas 14/15px full full
Example 3: U+30FC (KATAKANA-HIRAGANA PROLONGED SOUND MARK): East_Asian_Width: Wide
----------------------------------------------------------------------------------
rendered modeled
CP932: Win7 Raster Fonts full full
CP932: Win7 Gothic 14/15px full full
CP932: Win7 Consolas 14/15px half(*2) full
CP932: Win7 Lucida Console 14px half(*3) full
CP932: Win7 Lucida Console 15px half(*3) half
CP932: Win8 Raster Fonts full full
CP932: Win8 Gothic 14px full half
CP932: Win8 Gothic 15px full full
CP932: Win8 Consolas 14/15px half(*2) full
CP932: Win8 Lucida Console 14px half(*3) full
CP932: Win8 Lucida Console 15px half(*3) half
CP932: Win10New Raster Fonts full full
CP932: Win10New Gothic 14/15px full full
CP932: Win10New Consolas 14/15px half(*2) half
CP932: Win10New Lucida Console 14/15px half(*2) half
CP936: Win7/8 Raster Fonts full full
CP936: Win7/8 SimSun 14px full full
CP936: Win7/8 SimSun 15px full half
CP936: Win7/8 Consolas 14px full full
CP936: Win7/8 Consolas 15px full half
CP936: Win10New Raster Fonts full full
CP936: Win10New SimSum 14/15px full full
CP936: Win10New Consolas 14/15px full full
Example 4: U+4000 (CJK UNIFIED IDEOGRAPH-4000): East_Asian_Width: Wide
----------------------------------------------------------------------
rendered modeled
CP932: Win7 Raster Fonts half(*1) half
CP932: Win7 Gothic 14/15px full full
CP932: Win7 Consolas 14/15px half(*2) full
CP932: Win7 Lucida Console 14px half(*3) full
CP932: Win7 Lucida Console 15px half(*3) half
CP932: Win8 Raster Fonts half(*1) half
CP932: Win8 Gothic 14px full half
CP932: Win8 Gothic 15px full full
CP932: Win8 Consolas 14/15px half(*2) full
CP932: Win8 Lucida Console 14px half(*3) full
CP932: Win8 Lucida Console 15px half(*3) half
CP932: Win10New Raster Fonts half(*1) half
CP932: Win10New Gothic 14/15px full full
CP932: Win10New Consolas 14/15px half(*2) half
CP932: Win10New Lucida Console 14/15px half(*2) half
CP936: Win7/8 Raster Fonts full full
CP936: Win7/8 SimSun 14px full full
CP936: Win7/8 SimSun 15px full half
CP936: Win7/8 Consolas 14px full full
CP936: Win7/8 Consolas 15px full half
CP936: Win10New Raster Fonts full full
CP936: Win10New SimSum 14/15px full full
CP936: Win10New Consolas 14/15px full full
(*1) Rendered as a half-width filled white box
(*2) Rendered as a half-width box with a question mark inside
(*3) Rendered as a half-width empty box
(!!) One of the only places in Win10New where rendered and modeled width disagree
Windows quirk: unreliable font heights with CP936 / Chinese Simplified
======================================================================
When I set the font to 新宋体 17px, using either the properties dialog or
`SetCurrentConsoleFontEx`, the height reported by `GetCurrentConsoleFontEx` is
not 17, but is instead 19. The same problem does not affect Raster Fonts,
nor have I seen the problem in the English or Japanese locales. I observed
this with Windows 7 and Windows 10 new mode.
If I set the font using the facename, width, *and* height, then the
`SetCurrentConsoleFontEx` and `GetCurrentConsoleFontEx` values agree. If I
set the font using *only* the facename and height, then the two values
disagree.
Windows bug: GetCurrentConsoleFontEx is initially invalid
=========================================================
- Assume there is no configured console font name in the registry. In this
case, the console defaults to a raster font.
- Open a new console and call the `GetCurrentConsoleFontEx` API.
- The `FaceName` field of the returned `CONSOLE_FONT_INFOEX` data
structure is incorrect. On Windows 7, 8, and 10, I observed that the
field was blank. On Windows 8, occasionally, it instead contained:
U+AE72 U+75BE U+0001
The other fields of the structure all appeared correct:
nFont=6 dwFontSize=(8,12) FontFamily=0x30 FontWeight=400
- The `FaceName` field becomes initialized easily:
- Open the console properties dialog and click OK. (Cancel is not
sufficient.)
- Call the undocumented `SetConsoleFont` with the current font table
index, which is 6 in the example above.
- It seems that the console uncritically accepts whatever string is
stored in the registry, including a blank string, and passes it on the
the `GetCurrentConsoleFontEx` caller. It is possible to get the console
to *write* a blank setting into the registry -- simply open the console
(default or app-specific) properties and click OK.
@@ -0,0 +1,78 @@
# mimic-response [![Build Status](https://travis-ci.com/sindresorhus/mimic-response.svg?branch=master)](https://travis-ci.com/sindresorhus/mimic-response)
> Mimic a [Node.js HTTP response stream](https://nodejs.org/api/http.html#http_class_http_incomingmessage)
## Install
```
$ npm install mimic-response
```
## Usage
```js
const stream = require('stream');
const mimicResponse = require('mimic-response');
const responseStream = getHttpResponseStream();
const myStream = new stream.PassThrough();
mimicResponse(responseStream, myStream);
console.log(myStream.statusCode);
//=> 200
```
## API
### mimicResponse(from, to)
**Note #1:** The `from.destroy(error)` function is not proxied. You have to call it manually:
```js
const stream = require('stream');
const mimicResponse = require('mimic-response');
const responseStream = getHttpResponseStream();
const myStream = new stream.PassThrough({
destroy(error, callback) {
responseStream.destroy();
callback(error);
}
});
myStream.destroy();
```
Please note that `myStream` and `responseStream` never throws. The error is passed to the request instead.
#### from
Type: `Stream`
[Node.js HTTP response stream.](https://nodejs.org/api/http.html#http_class_http_incomingmessage)
#### to
Type: `Stream`
Any stream.
## Related
- [mimic-fn](https://github.com/sindresorhus/mimic-fn) - Make a function mimic another one
- [clone-response](https://github.com/lukechilds/clone-response) - Clone a Node.js response stream
---
<div align="center">
<b>
<a href="https://tidelift.com/subscription/pkg/npm-mimic-response?utm_source=npm-mimic-response&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
</b>
<br>
<sub>
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
</sub>
</div>
@@ -0,0 +1,10 @@
import injectable from "./injectable";
import { instance as globalContainer } from "../dependency-container";
export default function scoped(lifecycle, token) {
return function (target) {
injectable()(target);
globalContainer.register(token || target, target, {
lifecycle
});
};
}
@@ -0,0 +1,12 @@
import { IndexFromPropertyKeys } from '../indexed/indexed.mjs';
import { KeyOfPropertyKeys } from './keyof-property-keys.mjs';
/**
* `[Utility]` Resolves an array of keys and schemas from the given schema. This method is faster
* than obtaining the keys and resolving each individually via indexing. This method was written
* accellerate Intersect and Union encoding.
*/
export function KeyOfPropertyEntries(schema) {
const keys = KeyOfPropertyKeys(schema);
const schemas = IndexFromPropertyKeys(schema, keys);
return keys.map((_, index) => [keys[index], schemas[index]]);
}
@@ -0,0 +1,327 @@
"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
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 __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/colors/semantic.ts
var semantic_exports = {};
__export(semantic_exports, {
semanticColors: () => semanticColors,
themeColorsDark: () => themeColorsDark,
themeColorsLight: () => themeColorsLight
});
module.exports = __toCommonJS(semantic_exports);
var import_color2k = require("color2k");
// src/utils/object.ts
var import_flat = __toESM(require("flat"));
function swapColorValues(colors) {
const swappedColors = {};
const keys = Object.keys(colors);
const length = keys.length;
for (let i = 0; i < length / 2; i++) {
const key1 = keys[i];
const key2 = keys[length - 1 - i];
swappedColors[key1] = colors[key2];
swappedColors[key2] = colors[key1];
}
if (length % 2 !== 0) {
const middleKey = keys[Math.floor(length / 2)];
swappedColors[middleKey] = colors[middleKey];
}
return swappedColors;
}
// src/colors/blue.ts
var blue = {
50: "#e6f1fe",
100: "#cce3fd",
200: "#99c7fb",
300: "#66aaf9",
400: "#338ef7",
500: "#006FEE",
600: "#005bc4",
700: "#004493",
800: "#002e62",
900: "#001731"
};
// src/colors/green.ts
var green = {
50: "#e8faf0",
100: "#d1f4e0",
200: "#a2e9c1",
300: "#74dfa2",
400: "#45d483",
500: "#17c964",
600: "#12a150",
700: "#0e793c",
800: "#095028",
900: "#052814"
};
// src/colors/pink.ts
var pink = {
50: "#ffedfa",
100: "#ffdcf5",
200: "#ffb8eb",
300: "#ff95e1",
400: "#ff71d7",
500: "#ff4ecd",
600: "#cc3ea4",
700: "#992f7b",
800: "#661f52",
900: "#331029"
};
// src/colors/purple.ts
var purple = {
50: "#f2eafa",
100: "#e4d4f4",
200: "#c9a9e9",
300: "#ae7ede",
400: "#9353d3",
500: "#7828c8",
600: "#6020a0",
700: "#481878",
800: "#301050",
900: "#180828"
};
// src/colors/red.ts
var red = {
50: "#fee7ef",
100: "#fdd0df",
200: "#faa0bf",
300: "#f871a0",
400: "#f54180",
500: "#f31260",
600: "#c20e4d",
700: "#920b3a",
800: "#610726",
900: "#310413"
};
// src/colors/yellow.ts
var yellow = {
50: "#fefce8",
100: "#fdedd3",
200: "#fbdba7",
300: "#f9c97c",
400: "#f7b750",
500: "#f5a524",
600: "#c4841d",
700: "#936316",
800: "#62420e",
900: "#312107"
};
// src/colors/cyan.ts
var cyan = {
50: "#F0FCFF",
100: "#E6FAFE",
200: "#D7F8FE",
300: "#C3F4FD",
400: "#A5EEFD",
500: "#7EE7FC",
600: "#06B7DB",
700: "#09AACD",
800: "#0E8AAA",
900: "#053B48"
};
// src/colors/zinc.ts
var zinc = {
"50": "#fafafa",
"100": "#f4f4f5",
"200": "#e4e4e7",
"300": "#d4d4d8",
"400": "#a1a1aa",
"500": "#71717a",
"600": "#52525b",
"700": "#3f3f46",
"800": "#27272a",
"900": "#18181b"
};
// src/colors/common.ts
var commonColors = {
white: "#ffffff",
black: "#000000",
blue,
green,
pink,
purple,
red,
yellow,
cyan,
zinc
};
// src/colors/semantic.ts
var base = {
light: {
background: {
DEFAULT: "#FFFFFF"
},
foreground: {
...commonColors.zinc,
DEFAULT: "#11181C"
},
divider: {
DEFAULT: "rgba(17, 17, 17, 0.15)"
},
focus: {
DEFAULT: commonColors.blue[500]
},
overlay: {
DEFAULT: "#000000"
},
content1: {
DEFAULT: "#FFFFFF",
foreground: "#11181C"
},
content2: {
DEFAULT: commonColors.zinc[100],
foreground: commonColors.zinc[800]
},
content3: {
DEFAULT: commonColors.zinc[200],
foreground: commonColors.zinc[700]
},
content4: {
DEFAULT: commonColors.zinc[300],
foreground: commonColors.zinc[600]
}
},
dark: {
background: {
DEFAULT: "#000000"
},
foreground: {
...swapColorValues(commonColors.zinc),
DEFAULT: "#ECEDEE"
},
focus: {
DEFAULT: commonColors.blue[500]
},
overlay: {
DEFAULT: "#000000"
},
divider: {
DEFAULT: "rgba(255, 255, 255, 0.15)"
},
content1: {
DEFAULT: commonColors.zinc[900],
foreground: commonColors.zinc[50]
},
content2: {
DEFAULT: commonColors.zinc[800],
foreground: commonColors.zinc[100]
},
content3: {
DEFAULT: commonColors.zinc[700],
foreground: commonColors.zinc[200]
},
content4: {
DEFAULT: commonColors.zinc[600],
foreground: commonColors.zinc[300]
}
}
};
var themeColorsLight = {
...base.light,
default: {
...commonColors.zinc,
foreground: (0, import_color2k.readableColor)(commonColors.zinc[300]),
DEFAULT: commonColors.zinc[300]
},
primary: {
...commonColors.blue,
foreground: (0, import_color2k.readableColor)(commonColors.blue[500]),
DEFAULT: commonColors.blue[500]
},
secondary: {
...commonColors.purple,
foreground: (0, import_color2k.readableColor)(commonColors.purple[500]),
DEFAULT: commonColors.purple[500]
},
success: {
...commonColors.green,
foreground: (0, import_color2k.readableColor)(commonColors.green[500]),
DEFAULT: commonColors.green[500]
},
warning: {
...commonColors.yellow,
foreground: (0, import_color2k.readableColor)(commonColors.yellow[500]),
DEFAULT: commonColors.yellow[500]
},
danger: {
...commonColors.red,
foreground: commonColors.white,
DEFAULT: commonColors.red[500]
}
};
var themeColorsDark = {
...base.dark,
default: {
...swapColorValues(commonColors.zinc),
foreground: (0, import_color2k.readableColor)(commonColors.zinc[700]),
DEFAULT: commonColors.zinc[700]
},
primary: {
...swapColorValues(commonColors.blue),
foreground: (0, import_color2k.readableColor)(commonColors.blue[500]),
DEFAULT: commonColors.blue[500]
},
secondary: {
...swapColorValues(commonColors.purple),
foreground: (0, import_color2k.readableColor)(commonColors.purple[400]),
DEFAULT: commonColors.purple[400]
},
success: {
...swapColorValues(commonColors.green),
foreground: (0, import_color2k.readableColor)(commonColors.green[500]),
DEFAULT: commonColors.green[500]
},
warning: {
...swapColorValues(commonColors.yellow),
foreground: (0, import_color2k.readableColor)(commonColors.yellow[500]),
DEFAULT: commonColors.yellow[500]
},
danger: {
...swapColorValues(commonColors.red),
foreground: commonColors.white,
DEFAULT: commonColors.red[500]
}
};
var semanticColors = {
light: themeColorsLight,
dark: themeColorsDark
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
semanticColors,
themeColorsDark,
themeColorsLight
});
@@ -0,0 +1,22 @@
import { MappedResult } from '../mapped/index.mjs';
import { Omit } from './omit.mjs';
import { Clone } from '../clone/value.mjs';
// prettier-ignore
function FromPropertyKey(type, key, options) {
return { [key]: Omit(type, [key], Clone(options)) };
}
// prettier-ignore
function FromPropertyKeys(type, propertyKeys, options) {
return propertyKeys.reduce((Acc, LK) => {
return { ...Acc, ...FromPropertyKey(type, LK, options) };
}, {});
}
// prettier-ignore
function FromMappedKey(type, mappedKey, options) {
return FromPropertyKeys(type, mappedKey.keys, options);
}
// prettier-ignore
export function OmitFromMappedKey(type, mappedKey, options) {
const properties = FromMappedKey(type, mappedKey, options);
return MappedResult(properties);
}
@@ -0,0 +1 @@
module.exports={A:{A:{"1":"B","2":"K D E F A wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC","2":"xC TC J ZB K D E F A B C L M G N O 0C 1C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 2C ZC 3C 4C 5C 6C aC NC OC 7C 8C 9C bC cC PC AD QC dC eC fC gC hC BD RC iC jC kC lC mC CD SC nC oC pC qC rC sC tC DD ED"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z JD OC","2":"F B FD GD HD ID NC uC"},G:{"1":"E ZC KD vC LD MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD bC cC PC eD QC dC eC fC gC hC fD RC iC jC kC lC mC gD SC nC oC pC qC rC sC tC"},H:{"1":"hD"},I:{"1":"TC J I iD jD kD lD vC mD nD"},J:{"1":"D A"},K:{"1":"C H OC","2":"A B NC uC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"B","2":"A"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB oD pD qD rD sD aC tD uD vD wD xD QC RC SC yD"},Q:{"1":"zD"},R:{"1":"0D"},S:{"1":"1D 2D"}},B:5,C:"Window.devicePixelRatio",D:true};
@@ -0,0 +1,4 @@
import { ChainInput, IDateChain } from './types';
declare function chain(input: ChainInput | IDateChain, format?: string): IDateChain;
export * from 'date-manip';
export { chain };
@@ -0,0 +1 @@
{"version":3,"file":"line-ending.d.ts","sourceRoot":"","sources":["line-ending.js"],"names":[],"mappings":"AAcA,wBAAwB;AACxB,yBADW,SAAS,CACwD;+BATlE,sBAAsB"}
@@ -0,0 +1,81 @@
import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
import * as tailwind_variants from 'tailwind-variants';
/**
* User wrapper **Tailwind Variants** component
*
* const {base, wrapper, name, description} = user({...})
*
* @example
* <div className={base())}>
* // avatar element @see avatar
* <div className={wrapper())}>
* <span className={name())}>user name</span>
* <span className={description())}>user description</span>
* </div>
* </div>
*/
declare const user: tailwind_variants.TVReturnType<{
[key: string]: {
[key: string]: tailwind_variants.ClassValue | {
base?: tailwind_variants.ClassValue;
description?: tailwind_variants.ClassValue;
name?: tailwind_variants.ClassValue;
wrapper?: tailwind_variants.ClassValue;
};
};
} | {
[x: string]: {
[x: string]: tailwind_variants.ClassValue | {
base?: tailwind_variants.ClassValue;
description?: tailwind_variants.ClassValue;
name?: tailwind_variants.ClassValue;
wrapper?: tailwind_variants.ClassValue;
};
};
} | {}, {
base: string[];
wrapper: string;
name: string;
description: string;
}, undefined, tailwind_variants_dist_config.TVConfig<unknown, {
[key: string]: {
[key: string]: tailwind_variants.ClassValue | {
base?: tailwind_variants.ClassValue;
description?: tailwind_variants.ClassValue;
name?: tailwind_variants.ClassValue;
wrapper?: tailwind_variants.ClassValue;
};
};
} | {}>, {
[key: string]: {
[key: string]: tailwind_variants.ClassValue | {
base?: tailwind_variants.ClassValue;
description?: tailwind_variants.ClassValue;
name?: tailwind_variants.ClassValue;
wrapper?: tailwind_variants.ClassValue;
};
};
} | {}, {
base: string[];
wrapper: string;
name: string;
description: string;
}, tailwind_variants.TVReturnType<unknown, {
base: string[];
wrapper: string;
name: string;
description: string;
}, undefined, tailwind_variants_dist_config.TVConfig<unknown, {
[key: string]: {
[key: string]: tailwind_variants.ClassValue | {
base?: tailwind_variants.ClassValue;
description?: tailwind_variants.ClassValue;
name?: tailwind_variants.ClassValue;
wrapper?: tailwind_variants.ClassValue;
};
};
} | {}>, unknown, unknown, undefined>>;
type UserSlots = keyof ReturnType<typeof user>;
export { UserSlots, user };
@@ -0,0 +1,493 @@
// THIS FILE IS AUTO GENERATED
import type { IconType } from '../lib/index'
export declare const ImHome: IconType;
export declare const ImHome2: IconType;
export declare const ImHome3: IconType;
export declare const ImOffice: IconType;
export declare const ImNewspaper: IconType;
export declare const ImPencil: IconType;
export declare const ImPencil2: IconType;
export declare const ImQuill: IconType;
export declare const ImPen: IconType;
export declare const ImBlog: IconType;
export declare const ImEyedropper: IconType;
export declare const ImDroplet: IconType;
export declare const ImPaintFormat: IconType;
export declare const ImImage: IconType;
export declare const ImImages: IconType;
export declare const ImCamera: IconType;
export declare const ImHeadphones: IconType;
export declare const ImMusic: IconType;
export declare const ImPlay: IconType;
export declare const ImFilm: IconType;
export declare const ImVideoCamera: IconType;
export declare const ImDice: IconType;
export declare const ImPacman: IconType;
export declare const ImSpades: IconType;
export declare const ImClubs: IconType;
export declare const ImDiamonds: IconType;
export declare const ImBullhorn: IconType;
export declare const ImConnection: IconType;
export declare const ImPodcast: IconType;
export declare const ImFeed: IconType;
export declare const ImMic: IconType;
export declare const ImBook: IconType;
export declare const ImBooks: IconType;
export declare const ImLibrary: IconType;
export declare const ImFileText: IconType;
export declare const ImProfile: IconType;
export declare const ImFileEmpty: IconType;
export declare const ImFilesEmpty: IconType;
export declare const ImFileText2: IconType;
export declare const ImFilePicture: IconType;
export declare const ImFileMusic: IconType;
export declare const ImFilePlay: IconType;
export declare const ImFileVideo: IconType;
export declare const ImFileZip: IconType;
export declare const ImCopy: IconType;
export declare const ImPaste: IconType;
export declare const ImStack: IconType;
export declare const ImFolder: IconType;
export declare const ImFolderOpen: IconType;
export declare const ImFolderPlus: IconType;
export declare const ImFolderMinus: IconType;
export declare const ImFolderDownload: IconType;
export declare const ImFolderUpload: IconType;
export declare const ImPriceTag: IconType;
export declare const ImPriceTags: IconType;
export declare const ImBarcode: IconType;
export declare const ImQrcode: IconType;
export declare const ImTicket: IconType;
export declare const ImCart: IconType;
export declare const ImCoinDollar: IconType;
export declare const ImCoinEuro: IconType;
export declare const ImCoinPound: IconType;
export declare const ImCoinYen: IconType;
export declare const ImCreditCard: IconType;
export declare const ImCalculator: IconType;
export declare const ImLifebuoy: IconType;
export declare const ImPhone: IconType;
export declare const ImPhoneHangUp: IconType;
export declare const ImAddressBook: IconType;
export declare const ImEnvelop: IconType;
export declare const ImPushpin: IconType;
export declare const ImLocation: IconType;
export declare const ImLocation2: IconType;
export declare const ImCompass: IconType;
export declare const ImCompass2: IconType;
export declare const ImMap: IconType;
export declare const ImMap2: IconType;
export declare const ImHistory: IconType;
export declare const ImClock: IconType;
export declare const ImClock2: IconType;
export declare const ImAlarm: IconType;
export declare const ImBell: IconType;
export declare const ImStopwatch: IconType;
export declare const ImCalendar: IconType;
export declare const ImPrinter: IconType;
export declare const ImKeyboard: IconType;
export declare const ImDisplay: IconType;
export declare const ImLaptop: IconType;
export declare const ImMobile: IconType;
export declare const ImMobile2: IconType;
export declare const ImTablet: IconType;
export declare const ImTv: IconType;
export declare const ImDrawer: IconType;
export declare const ImDrawer2: IconType;
export declare const ImBoxAdd: IconType;
export declare const ImBoxRemove: IconType;
export declare const ImDownload: IconType;
export declare const ImUpload: IconType;
export declare const ImFloppyDisk: IconType;
export declare const ImDrive: IconType;
export declare const ImDatabase: IconType;
export declare const ImUndo: IconType;
export declare const ImRedo: IconType;
export declare const ImUndo2: IconType;
export declare const ImRedo2: IconType;
export declare const ImForward: IconType;
export declare const ImReply: IconType;
export declare const ImBubble: IconType;
export declare const ImBubbles: IconType;
export declare const ImBubbles2: IconType;
export declare const ImBubble2: IconType;
export declare const ImBubbles3: IconType;
export declare const ImBubbles4: IconType;
export declare const ImUser: IconType;
export declare const ImUsers: IconType;
export declare const ImUserPlus: IconType;
export declare const ImUserMinus: IconType;
export declare const ImUserCheck: IconType;
export declare const ImUserTie: IconType;
export declare const ImQuotesLeft: IconType;
export declare const ImQuotesRight: IconType;
export declare const ImHourGlass: IconType;
export declare const ImSpinner: IconType;
export declare const ImSpinner2: IconType;
export declare const ImSpinner3: IconType;
export declare const ImSpinner4: IconType;
export declare const ImSpinner5: IconType;
export declare const ImSpinner6: IconType;
export declare const ImSpinner7: IconType;
export declare const ImSpinner8: IconType;
export declare const ImSpinner9: IconType;
export declare const ImSpinner10: IconType;
export declare const ImSpinner11: IconType;
export declare const ImBinoculars: IconType;
export declare const ImSearch: IconType;
export declare const ImZoomIn: IconType;
export declare const ImZoomOut: IconType;
export declare const ImEnlarge: IconType;
export declare const ImShrink: IconType;
export declare const ImEnlarge2: IconType;
export declare const ImShrink2: IconType;
export declare const ImKey: IconType;
export declare const ImKey2: IconType;
export declare const ImLock: IconType;
export declare const ImUnlocked: IconType;
export declare const ImWrench: IconType;
export declare const ImEqualizer: IconType;
export declare const ImEqualizer2: IconType;
export declare const ImCog: IconType;
export declare const ImCogs: IconType;
export declare const ImHammer: IconType;
export declare const ImMagicWand: IconType;
export declare const ImAidKit: IconType;
export declare const ImBug: IconType;
export declare const ImPieChart: IconType;
export declare const ImStatsDots: IconType;
export declare const ImStatsBars: IconType;
export declare const ImStatsBars2: IconType;
export declare const ImTrophy: IconType;
export declare const ImGift: IconType;
export declare const ImGlass: IconType;
export declare const ImGlass2: IconType;
export declare const ImMug: IconType;
export declare const ImSpoonKnife: IconType;
export declare const ImLeaf: IconType;
export declare const ImRocket: IconType;
export declare const ImMeter: IconType;
export declare const ImMeter2: IconType;
export declare const ImHammer2: IconType;
export declare const ImFire: IconType;
export declare const ImLab: IconType;
export declare const ImMagnet: IconType;
export declare const ImBin: IconType;
export declare const ImBin2: IconType;
export declare const ImBriefcase: IconType;
export declare const ImAirplane: IconType;
export declare const ImTruck: IconType;
export declare const ImRoad: IconType;
export declare const ImAccessibility: IconType;
export declare const ImTarget: IconType;
export declare const ImShield: IconType;
export declare const ImPower: IconType;
export declare const ImSwitch: IconType;
export declare const ImPowerCord: IconType;
export declare const ImClipboard: IconType;
export declare const ImListNumbered: IconType;
export declare const ImList: IconType;
export declare const ImList2: IconType;
export declare const ImTree: IconType;
export declare const ImMenu: IconType;
export declare const ImMenu2: IconType;
export declare const ImMenu3: IconType;
export declare const ImMenu4: IconType;
export declare const ImCloud: IconType;
export declare const ImCloudDownload: IconType;
export declare const ImCloudUpload: IconType;
export declare const ImCloudCheck: IconType;
export declare const ImDownload2: IconType;
export declare const ImUpload2: IconType;
export declare const ImDownload3: IconType;
export declare const ImUpload3: IconType;
export declare const ImSphere: IconType;
export declare const ImEarth: IconType;
export declare const ImLink: IconType;
export declare const ImFlag: IconType;
export declare const ImAttachment: IconType;
export declare const ImEye: IconType;
export declare const ImEyePlus: IconType;
export declare const ImEyeMinus: IconType;
export declare const ImEyeBlocked: IconType;
export declare const ImBookmark: IconType;
export declare const ImBookmarks: IconType;
export declare const ImSun: IconType;
export declare const ImContrast: IconType;
export declare const ImBrightnessContrast: IconType;
export declare const ImStarEmpty: IconType;
export declare const ImStarHalf: IconType;
export declare const ImStarFull: IconType;
export declare const ImHeart: IconType;
export declare const ImHeartBroken: IconType;
export declare const ImMan: IconType;
export declare const ImWoman: IconType;
export declare const ImManWoman: IconType;
export declare const ImHappy: IconType;
export declare const ImHappy2: IconType;
export declare const ImSmile: IconType;
export declare const ImSmile2: IconType;
export declare const ImTongue: IconType;
export declare const ImTongue2: IconType;
export declare const ImSad: IconType;
export declare const ImSad2: IconType;
export declare const ImWink: IconType;
export declare const ImWink2: IconType;
export declare const ImGrin: IconType;
export declare const ImGrin2: IconType;
export declare const ImCool: IconType;
export declare const ImCool2: IconType;
export declare const ImAngry: IconType;
export declare const ImAngry2: IconType;
export declare const ImEvil: IconType;
export declare const ImEvil2: IconType;
export declare const ImShocked: IconType;
export declare const ImShocked2: IconType;
export declare const ImBaffled: IconType;
export declare const ImBaffled2: IconType;
export declare const ImConfused: IconType;
export declare const ImConfused2: IconType;
export declare const ImNeutral: IconType;
export declare const ImNeutral2: IconType;
export declare const ImHipster: IconType;
export declare const ImHipster2: IconType;
export declare const ImWondering: IconType;
export declare const ImWondering2: IconType;
export declare const ImSleepy: IconType;
export declare const ImSleepy2: IconType;
export declare const ImFrustrated: IconType;
export declare const ImFrustrated2: IconType;
export declare const ImCrying: IconType;
export declare const ImCrying2: IconType;
export declare const ImPointUp: IconType;
export declare const ImPointRight: IconType;
export declare const ImPointDown: IconType;
export declare const ImPointLeft: IconType;
export declare const ImWarning: IconType;
export declare const ImNotification: IconType;
export declare const ImQuestion: IconType;
export declare const ImPlus: IconType;
export declare const ImMinus: IconType;
export declare const ImInfo: IconType;
export declare const ImCancelCircle: IconType;
export declare const ImBlocked: IconType;
export declare const ImCross: IconType;
export declare const ImCheckmark: IconType;
export declare const ImCheckmark2: IconType;
export declare const ImSpellCheck: IconType;
export declare const ImEnter: IconType;
export declare const ImExit: IconType;
export declare const ImPlay2: IconType;
export declare const ImPause: IconType;
export declare const ImStop: IconType;
export declare const ImPrevious: IconType;
export declare const ImNext: IconType;
export declare const ImBackward: IconType;
export declare const ImForward2: IconType;
export declare const ImPlay3: IconType;
export declare const ImPause2: IconType;
export declare const ImStop2: IconType;
export declare const ImBackward2: IconType;
export declare const ImForward3: IconType;
export declare const ImFirst: IconType;
export declare const ImLast: IconType;
export declare const ImPrevious2: IconType;
export declare const ImNext2: IconType;
export declare const ImEject: IconType;
export declare const ImVolumeHigh: IconType;
export declare const ImVolumeMedium: IconType;
export declare const ImVolumeLow: IconType;
export declare const ImVolumeMute: IconType;
export declare const ImVolumeMute2: IconType;
export declare const ImVolumeIncrease: IconType;
export declare const ImVolumeDecrease: IconType;
export declare const ImLoop: IconType;
export declare const ImLoop2: IconType;
export declare const ImInfinite: IconType;
export declare const ImShuffle: IconType;
export declare const ImArrowUpLeft: IconType;
export declare const ImArrowUp: IconType;
export declare const ImArrowUpRight: IconType;
export declare const ImArrowRight: IconType;
export declare const ImArrowDownRight: IconType;
export declare const ImArrowDown: IconType;
export declare const ImArrowDownLeft: IconType;
export declare const ImArrowLeft: IconType;
export declare const ImArrowUpLeft2: IconType;
export declare const ImArrowUp2: IconType;
export declare const ImArrowUpRight2: IconType;
export declare const ImArrowRight2: IconType;
export declare const ImArrowDownRight2: IconType;
export declare const ImArrowDown2: IconType;
export declare const ImArrowDownLeft2: IconType;
export declare const ImArrowLeft2: IconType;
export declare const ImCircleUp: IconType;
export declare const ImCircleRight: IconType;
export declare const ImCircleDown: IconType;
export declare const ImCircleLeft: IconType;
export declare const ImTab: IconType;
export declare const ImMoveUp: IconType;
export declare const ImMoveDown: IconType;
export declare const ImSortAlphaAsc: IconType;
export declare const ImSortAlphaDesc: IconType;
export declare const ImSortNumericAsc: IconType;
export declare const ImSortNumbericDesc: IconType;
export declare const ImSortAmountAsc: IconType;
export declare const ImSortAmountDesc: IconType;
export declare const ImCommand: IconType;
export declare const ImShift: IconType;
export declare const ImCtrl: IconType;
export declare const ImOpt: IconType;
export declare const ImCheckboxChecked: IconType;
export declare const ImCheckboxUnchecked: IconType;
export declare const ImRadioChecked: IconType;
export declare const ImRadioChecked2: IconType;
export declare const ImRadioUnchecked: IconType;
export declare const ImCrop: IconType;
export declare const ImMakeGroup: IconType;
export declare const ImUngroup: IconType;
export declare const ImScissors: IconType;
export declare const ImFilter: IconType;
export declare const ImFont: IconType;
export declare const ImLigature: IconType;
export declare const ImLigature2: IconType;
export declare const ImTextHeight: IconType;
export declare const ImTextWidth: IconType;
export declare const ImFontSize: IconType;
export declare const ImBold: IconType;
export declare const ImUnderline: IconType;
export declare const ImItalic: IconType;
export declare const ImStrikethrough: IconType;
export declare const ImOmega: IconType;
export declare const ImSigma: IconType;
export declare const ImPageBreak: IconType;
export declare const ImSuperscript: IconType;
export declare const ImSubscript: IconType;
export declare const ImSuperscript2: IconType;
export declare const ImSubscript2: IconType;
export declare const ImTextColor: IconType;
export declare const ImPagebreak: IconType;
export declare const ImClearFormatting: IconType;
export declare const ImTable: IconType;
export declare const ImTable2: IconType;
export declare const ImInsertTemplate: IconType;
export declare const ImPilcrow: IconType;
export declare const ImLtr: IconType;
export declare const ImRtl: IconType;
export declare const ImSection: IconType;
export declare const ImParagraphLeft: IconType;
export declare const ImParagraphCenter: IconType;
export declare const ImParagraphRight: IconType;
export declare const ImParagraphJustify: IconType;
export declare const ImIndentIncrease: IconType;
export declare const ImIndentDecrease: IconType;
export declare const ImShare: IconType;
export declare const ImNewTab: IconType;
export declare const ImEmbed: IconType;
export declare const ImEmbed2: IconType;
export declare const ImTerminal: IconType;
export declare const ImShare2: IconType;
export declare const ImMail: IconType;
export declare const ImMail2: IconType;
export declare const ImMail3: IconType;
export declare const ImMail4: IconType;
export declare const ImAmazon: IconType;
export declare const ImGoogle: IconType;
export declare const ImGoogle2: IconType;
export declare const ImGoogle3: IconType;
export declare const ImGooglePlus: IconType;
export declare const ImGooglePlus2: IconType;
export declare const ImGooglePlus3: IconType;
export declare const ImHangouts: IconType;
export declare const ImGoogleDrive: IconType;
export declare const ImFacebook: IconType;
export declare const ImFacebook2: IconType;
export declare const ImInstagram: IconType;
export declare const ImWhatsapp: IconType;
export declare const ImSpotify: IconType;
export declare const ImTelegram: IconType;
export declare const ImTwitter: IconType;
export declare const ImVine: IconType;
export declare const ImVk: IconType;
export declare const ImRenren: IconType;
export declare const ImSinaWeibo: IconType;
export declare const ImRss: IconType;
export declare const ImRss2: IconType;
export declare const ImYoutube: IconType;
export declare const ImYoutube2: IconType;
export declare const ImTwitch: IconType;
export declare const ImVimeo: IconType;
export declare const ImVimeo2: IconType;
export declare const ImLanyrd: IconType;
export declare const ImFlickr: IconType;
export declare const ImFlickr2: IconType;
export declare const ImFlickr3: IconType;
export declare const ImFlickr4: IconType;
export declare const ImDribbble: IconType;
export declare const ImBehance: IconType;
export declare const ImBehance2: IconType;
export declare const ImDeviantart: IconType;
export declare const Im500Px: IconType;
export declare const ImSteam: IconType;
export declare const ImSteam2: IconType;
export declare const ImDropbox: IconType;
export declare const ImOnedrive: IconType;
export declare const ImGithub: IconType;
export declare const ImNpm: IconType;
export declare const ImBasecamp: IconType;
export declare const ImTrello: IconType;
export declare const ImWordpress: IconType;
export declare const ImJoomla: IconType;
export declare const ImEllo: IconType;
export declare const ImBlogger: IconType;
export declare const ImBlogger2: IconType;
export declare const ImTumblr: IconType;
export declare const ImTumblr2: IconType;
export declare const ImYahoo: IconType;
export declare const ImYahoo2: IconType;
export declare const ImTux: IconType;
export declare const ImAppleinc: IconType;
export declare const ImFinder: IconType;
export declare const ImAndroid: IconType;
export declare const ImWindows: IconType;
export declare const ImWindows8: IconType;
export declare const ImSoundcloud: IconType;
export declare const ImSoundcloud2: IconType;
export declare const ImSkype: IconType;
export declare const ImReddit: IconType;
export declare const ImHackernews: IconType;
export declare const ImWikipedia: IconType;
export declare const ImLinkedin: IconType;
export declare const ImLinkedin2: IconType;
export declare const ImLastfm: IconType;
export declare const ImLastfm2: IconType;
export declare const ImDelicious: IconType;
export declare const ImStumbleupon: IconType;
export declare const ImStumbleupon2: IconType;
export declare const ImStackoverflow: IconType;
export declare const ImPinterest: IconType;
export declare const ImPinterest2: IconType;
export declare const ImXing: IconType;
export declare const ImXing2: IconType;
export declare const ImFlattr: IconType;
export declare const ImFoursquare: IconType;
export declare const ImYelp: IconType;
export declare const ImPaypal: IconType;
export declare const ImChrome: IconType;
export declare const ImFirefox: IconType;
export declare const ImIe: IconType;
export declare const ImEdge: IconType;
export declare const ImSafari: IconType;
export declare const ImOpera: IconType;
export declare const ImFilePdf: IconType;
export declare const ImFileOpenoffice: IconType;
export declare const ImFileWord: IconType;
export declare const ImFileExcel: IconType;
export declare const ImLibreoffice: IconType;
export declare const ImHtmlFive: IconType;
export declare const ImHtmlFive2: IconType;
export declare const ImCss3: IconType;
export declare const ImGit: IconType;
export declare const ImCodepen: IconType;
export declare const ImSvg: IconType;
export declare const ImIcoMoon: IconType;
@@ -0,0 +1,57 @@
export { default as castArray } from './castArray.js';
export { default as clone } from './clone.js';
export { default as cloneDeep } from './cloneDeep.js';
export { default as cloneDeepWith } from './cloneDeepWith.js';
export { default as cloneWith } from './cloneWith.js';
export { default as conformsTo } from './conformsTo.js';
export { default as eq } from './eq.js';
export { default as gt } from './gt.js';
export { default as gte } from './gte.js';
export { default as isArguments } from './isArguments.js';
export { default as isArray } from './isArray.js';
export { default as isArrayBuffer } from './isArrayBuffer.js';
export { default as isArrayLike } from './isArrayLike.js';
export { default as isArrayLikeObject } from './isArrayLikeObject.js';
export { default as isBoolean } from './isBoolean.js';
export { default as isBuffer } from './isBuffer.js';
export { default as isDate } from './isDate.js';
export { default as isElement } from './isElement.js';
export { default as isEmpty } from './isEmpty.js';
export { default as isEqual } from './isEqual.js';
export { default as isEqualWith } from './isEqualWith.js';
export { default as isError } from './isError.js';
export { default as isFinite } from './isFinite.js';
export { default as isFunction } from './isFunction.js';
export { default as isInteger } from './isInteger.js';
export { default as isLength } from './isLength.js';
export { default as isMap } from './isMap.js';
export { default as isMatch } from './isMatch.js';
export { default as isMatchWith } from './isMatchWith.js';
export { default as isNaN } from './isNaN.js';
export { default as isNative } from './isNative.js';
export { default as isNil } from './isNil.js';
export { default as isNull } from './isNull.js';
export { default as isNumber } from './isNumber.js';
export { default as isObject } from './isObject.js';
export { default as isObjectLike } from './isObjectLike.js';
export { default as isPlainObject } from './isPlainObject.js';
export { default as isRegExp } from './isRegExp.js';
export { default as isSafeInteger } from './isSafeInteger.js';
export { default as isSet } from './isSet.js';
export { default as isString } from './isString.js';
export { default as isSymbol } from './isSymbol.js';
export { default as isTypedArray } from './isTypedArray.js';
export { default as isUndefined } from './isUndefined.js';
export { default as isWeakMap } from './isWeakMap.js';
export { default as isWeakSet } from './isWeakSet.js';
export { default as lt } from './lt.js';
export { default as lte } from './lte.js';
export { default as toArray } from './toArray.js';
export { default as toFinite } from './toFinite.js';
export { default as toInteger } from './toInteger.js';
export { default as toLength } from './toLength.js';
export { default as toNumber } from './toNumber.js';
export { default as toPlainObject } from './toPlainObject.js';
export { default as toSafeInteger } from './toSafeInteger.js';
export { default as toString } from './toString.js';
export { default } from './lang.default.js';
@@ -0,0 +1,26 @@
'use strict';
var V = require('tailwindcss/resolveConfig');
var w = require('fs');
var O = require('path');
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
var V__default = /*#__PURE__*/_interopDefault(V);
var w__default = /*#__PURE__*/_interopDefault(w);
var O__default = /*#__PURE__*/_interopDefault(O);
var S=t=>{w__default.default.writeFileSync(O__default.default.join(__dirname,"generated.d.ts"),t);},C=t=>`export type TVGeneratedScreens = ${Object.keys(t).map(r=>`"${r}"`).join(" | ")};
`,g=t=>{queueMicrotask(()=>{if(t!=null&&t.screens){let r=C(t.screens);S(r);}});};var p={tv:/tv\s*\(((\([^\)]*?\)|\[[^\]]*?\]|.)*?)\)/gs,tvExtend:/extend:\s*\w+(,| )\s*/,comment:/\/\*[\s\S]*?\*\/|([^\\:]|^)\/\/.*$/gm,blankLine:/^\s*$(?:\r\n?|\n)/gm,extension:/\.\w+/g},l=t=>Array.isArray(t),b=t=>typeof t=="string",d=t=>typeof t=="object",$=t=>typeof t=="boolean",y=t=>typeof t=="function",f=t=>!!(!t||l(t)&&t.length===0||b(t)&&t.length===0||d(t)&&Object.keys(t).length===0),k=(t,r)=>{let n={},e=r.length,s=Object.prototype.hasOwnProperty;for(let a=0;a<e;a++){let o=r[a];s.call(t,o)&&(n[o]=t[o]);}return n},A=(t,r)=>{let n="https://github.com/heroui-inc/tailwind-variants/issues/new/choose";console.log("\x1B[31m%s\x1B[0m",`${t}: ${r.message}`),console.log(`If you think this is an issue, please submit it at ${n}`);},h=(...t)=>r=>t.reduce((n,e)=>e(n),r),P=t=>{let n=t.replace(p.comment,"$1").toString().replace(p.blankLine,"").toString(),e=s=>s[1].replace(p.tvExtend,"").toString();return Array.from(n.matchAll(p.tv),e)},F=t=>{let r=P(t);if(!f(r))return r.map(n=>n.includes("responsiveVariants")?new Function(`
const [options, config] = [${n.toString()}];
return {options, config};
`)():{})},E=t=>t.flatMap(r=>r).toString().replaceAll(","," ").split(" "),I=(t,r)=>{let n={};for(let[e,s]of Object.entries(t))n[e]={},n[e].original=s,!f(s)&&(n.temp=l(s)?E(s):s.split(" "),r.forEach(a=>{let o="";n.temp.forEach(i=>{o+=`${a}:${i} `;}),n[e][a]=o.trimEnd();}),delete n.temp);return n},B=(t,r)=>b(t)?t.split(" "):l(t)?E(t):d(t)?I(t,r):t,x=(t,r)=>{let n={};for(let[e,s]of Object.entries(t))if(n[e]={},!f(s))for(let[a,o]of Object.entries(s)){if(n[e][a]={},n[e][a].original=o,f(o))continue;let i=B(o,r);if(!f(i)){if(!l(i)){n[e][a]=i;continue}r.forEach(c=>{let m="";i.forEach(u=>{m+=`${c}:${u} `;}),n[e][a][c]=m.trimEnd();});}}return n},T=({options:t,config:r},n)=>{var a,o;let e=(a=t==null?void 0:t.variants)!=null?a:{},s=(o=r==null?void 0:r.responsiveVariants)!=null?o:!1;if(!(!s||f(e))){if($(s))return x(e,n);if(l(s))return x(e,s);if(d(s)){let i=[];for(let[c,m]of Object.entries(s)){if(!m||f(m))continue;let j={options:{variants:k(e,[c])},config:{responsiveVariants:m}};i.push(T(j,n));}return i}}},D=(t,r,n)=>{try{let e=["tailwind-variants"];if(!(l(n==null?void 0:n.aliases)?[...n.aliases,...e]:e).some(u=>t.includes(u)))return t;let o=F(t);if(f(o))return t;let i=JSON.stringify(o.map(u=>T(u,r)),void 0,2),c=`
/* Tailwind Variants Transformed Content Start
`,m=`
Tailwind Variants Transformed Content End */
`;return t.concat(c+i+m)}catch(e){return A("Tailwind Variants Transform Failed",e),t}},v=t=>{let r=t.map(n=>{if(d(n)&&n.extension)return n.extension;let e=n.match(p.extension);return e||(e=n.split("{"),e=e.pop().replace("}","").split(",")),e.map(s=>s.replace(".","").split(".")).flat()}).flatMap(n=>n);return Array.from(new Set(r)).filter(n=>n!=="html")},G=(t,r)=>{var a;let n=V__default.default(t);if(g(n.theme),f((a=n.content)==null?void 0:a.files)||!l(n.content.files))return n;let e=o=>{var i,c;return D(o,Object.keys((c=(i=n.theme)==null?void 0:i.screens)!=null?c:{}),r)},s=n.content.transform;if(f(s)){let i=v(n.content.files).map(c=>[c,e]);return n.content.transform=Object.fromEntries(i),n}if(y(s)){let i=v(n.content.files).map(c=>[c,h(e,s)]);return n.content.transform=Object.fromEntries(i),n}if(d(s)){let i=v(n.content.files).map(c=>y(s[c])?[c,h(e,s[c])]:[c,e]);return n.content.transform=Object.fromEntries(i),n}return n};
exports.tvTransformer = D;
exports.withTV = G;
@@ -0,0 +1,63 @@
"use client";
import {
ProviderContext
} from "./chunk-Q3W45BN5.mjs";
// src/provider.tsx
import { I18nProvider } from "@react-aria/i18n";
import { useMemo } from "react";
import { MotionConfig, MotionGlobalConfig } from "framer-motion";
import { RouterProvider } from "@react-aria/utils";
import { OverlayProvider } from "@react-aria/overlays";
import { jsx } from "react/jsx-runtime";
var HeroUIProvider = ({
children,
navigate,
disableAnimation,
useHref,
disableRipple = false,
skipFramerMotionAnimations = disableAnimation,
reducedMotion = "never",
validationBehavior,
locale = "en-US",
labelPlacement,
// if minDate / maxDate are not specified in `defaultDates`
// then they will be set in `use-date-input.ts` or `use-calendar-base.ts`
defaultDates,
createCalendar,
spinnerVariant,
...otherProps
}) => {
let contents = children;
if (navigate) {
contents = /* @__PURE__ */ jsx(RouterProvider, { navigate, useHref, children: contents });
}
const context = useMemo(() => {
if (disableAnimation && skipFramerMotionAnimations) {
MotionGlobalConfig.skipAnimations = true;
}
return {
createCalendar,
defaultDates,
disableAnimation,
disableRipple,
validationBehavior,
labelPlacement,
spinnerVariant
};
}, [
createCalendar,
defaultDates == null ? void 0 : defaultDates.maxDate,
defaultDates == null ? void 0 : defaultDates.minDate,
disableAnimation,
disableRipple,
validationBehavior,
labelPlacement,
spinnerVariant
]);
return /* @__PURE__ */ jsx(ProviderContext, { value: context, children: /* @__PURE__ */ jsx(I18nProvider, { locale, children: /* @__PURE__ */ jsx(MotionConfig, { reducedMotion, children: /* @__PURE__ */ jsx(OverlayProvider, { ...otherProps, children: contents }) }) }) });
};
export {
HeroUIProvider
};
@@ -0,0 +1 @@
{"name":"@tanstack/react-virtual","version":"3.11.3","requiresBuild":false,"files":{"dist/cjs/index.cjs":{"checkedAt":1794532108777,"integrity":"sha512-DjVaBIGNF1uoy2faN5kcx666g6lyT31M5UHq738BQo3til3ScYMRDcfvMrB+fv4+sbl+alsl6OykzPkwd4JbiA==","mode":420,"size":2557},"dist/cjs/index.d.cts":{"checkedAt":1794532108777,"integrity":"sha512-Ws4zSNkK2ZtsA/iMvjUP3nIXKV7t2DwXBbfi9kIhVYDJP8UBlh7eBUQPZ0xnx1n/C1TdwpYCYJnKeC+xDaW/3w==","mode":420,"size":664},"dist/esm/index.js":{"checkedAt":1794532108777,"integrity":"sha512-5nCnN1X469Xry8pOHp9NGlWxjZzWDtTxjoVK4yhxg0bj4bcemilaj+RTRljyCrvP8Pl7FxGi+eAV2IEYVDgHWA==","mode":420,"size":1688},"package.json":{"checkedAt":1794532109684,"integrity":"sha512-N1wlybVXPoaAUHU28AJ5n7pfTGT9SDqa5Grc6abOFdRcrsot3LFyskuagrB7AeceEZv4JKnLsXhblHxBZMahVA==","mode":420,"size":1555},"dist/cjs/index.cjs.map":{"checkedAt":1794532108777,"integrity":"sha512-IFaJGoIvV/I+vHYaLGCKWK6NZwOMj9hfb/pukwUYZm2jsvrI2XD3lNoJI5W4bmcK8PW1kQGYx9ydYW2PUYRfmA==","mode":420,"size":3817},"dist/esm/index.js.map":{"checkedAt":1794532108778,"integrity":"sha512-PIxwdy6WCkx6kLoa56w5QabpjITUS1TKocnP4EgD3ryxDoThWnUASrrgd8UMPoUrSCYXpT79BaMWP2vUlelOKw==","mode":420,"size":3570},"dist/esm/index.d.ts":{"checkedAt":1794532108777,"integrity":"sha512-Ws4zSNkK2ZtsA/iMvjUP3nIXKV7t2DwXBbfi9kIhVYDJP8UBlh7eBUQPZ0xnx1n/C1TdwpYCYJnKeC+xDaW/3w==","mode":420,"size":664},"src/index.tsx":{"checkedAt":1794532108778,"integrity":"sha512-eyX1yvMnXRsSRWLzdfKs5PMvd9AdJlfekk8rSkG7E0hb+aJSKIJ3Y6tVMOns6ByXB/khgP41hfRULwVQHDkTFA==","mode":420,"size":2491},"LICENSE":{"checkedAt":1794532109684,"integrity":"sha512-WxtFIdggoRh30SS8TYSc02iM8s4IjRzRhQrMRS3MpMFMBjXm7XdZynlNto4YSzcwwKwOG8mcHFszSJLjYm0hHg==","mode":420,"size":1079}}}
@@ -0,0 +1,13 @@
/*
* Copyright 2020 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
export {SSRProvider, useSSRSafeId, useIsSSR} from './SSRProvider';
export type {SSRProviderProps} from './SSRProvider';
@@ -0,0 +1 @@
module.exports={C:{"141":0.04122,"142":0.21127,"143":0.2628,"144":0.11337,_:"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 145 146 147 3.5 3.6"},D:{"42":0.01546,"43":0.01546,"46":0.01546,"55":0.02577,"56":0.01546,"57":0.01546,"58":0.09791,"70":0.07214,"93":0.01546,"100":0.1649,"103":0.15459,"109":0.13913,"112":0.01546,"116":0.22158,"119":0.05668,"120":0.08245,"125":1.25733,"126":0.05668,"127":0.08245,"130":1.02029,"132":1.53559,"134":0.01546,"135":0.08245,"136":0.01546,"137":0.09791,"138":0.23704,"139":1.71595,"140":5.13239,"141":23.4513,"142":0.13913,_:"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 44 45 47 48 49 50 51 52 53 54 59 60 61 62 63 64 65 66 67 68 69 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 94 95 96 97 98 99 101 102 104 105 106 107 108 110 111 113 114 115 117 118 121 122 123 124 128 129 131 133 143 144 145"},F:{"120":0.04122,"122":0.12367,_:"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 121 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"109":0.05668,"114":0.01546,"121":0.01546,"122":0.01546,"130":0.01546,"131":0.01546,"138":0.29372,"139":0.30918,"140":1.67473,"141":5.67345,_:"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 110 111 112 113 115 116 117 118 119 120 123 124 125 126 127 128 129 132 133 134 135 136 137 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 14.1 15.1 15.2-15.3 15.4 15.5 16.0 16.2 16.3 16.4 17.0 17.2 17.4 18.0 18.2 18.3 18.5-18.6 26.1 26.2","13.1":0.08245,"15.6":0.09791,"16.1":0.01546,"16.5":0.04122,"16.6":0.07214,"17.1":0.31949,"17.3":0.05668,"17.5":1.96329,"17.6":0.04122,"18.1":0.05668,"18.4":0.12367,"26.0":0.09791},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00078,"5.0-5.1":0,"6.0-6.1":0.0031,"7.0-7.1":0.00233,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00698,"10.0-10.2":0.00078,"10.3":0.01318,"11.0-11.2":0.19543,"11.3-11.4":0.00465,"12.0-12.1":0.00155,"12.2-12.5":0.038,"13.0-13.1":0,"13.2":0.00388,"13.3":0.00155,"13.4-13.7":0.0062,"14.0-14.4":0.01318,"14.5-14.8":0.01396,"15.0-15.1":0.01318,"15.2-15.3":0.01008,"15.4":0.01163,"15.5":0.01318,"15.6-15.8":0.17217,"16.0":0.02327,"16.1":0.04343,"16.2":0.02249,"16.3":0.04033,"16.4":0.01008,"16.5":0.01784,"16.6-16.7":0.23033,"17.0":0.01629,"17.1":0.02482,"17.2":0.01784,"17.3":0.02637,"17.4":0.04653,"17.5":0.07988,"17.6-17.7":0.20164,"18.0":0.04576,"18.1":0.09461,"18.2":0.05118,"18.3":0.16441,"18.4":0.08453,"18.5-18.6":4.31034,"26.0":0.53278,"26.1":0.01939},P:{"4":0.1139,"28":0.10355,"29":0.01035,_:"20 21 22 23 24 25 26 27 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.02904,"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.00001},K:{"0":0.04362,_:"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.07271},Q:{"14.9":0.11633},O:{"0":0.01454},H:{"0":0},L:{"0":41.6723}};
@@ -0,0 +1,43 @@
# @codemirror/autocomplete [![NPM version](https://img.shields.io/npm/v/@codemirror/autocomplete.svg)](https://www.npmjs.org/package/@codemirror/autocomplete)
[ [**WEBSITE**](https://codemirror.net/) | [**DOCS**](https://codemirror.net/docs/ref/#autocomplete) | [**ISSUES**](https://github.com/codemirror/dev/issues) | [**FORUM**](https://discuss.codemirror.net/c/next/) | [**CHANGELOG**](https://github.com/codemirror/autocomplete/blob/main/CHANGELOG.md) ]
This package implements autocompletion for the
[CodeMirror](https://codemirror.net/) code editor.
The [project page](https://codemirror.net/) has more information, a
number of [examples](https://codemirror.net/examples/) and the
[documentation](https://codemirror.net/docs/).
This code is released under an
[MIT license](https://github.com/codemirror/autocomplete/tree/main/LICENSE).
We aim to be an inclusive, welcoming community. To make that explicit,
we have a [code of
conduct](http://contributor-covenant.org/version/1/1/0/) that applies
to communication around the project.
## Usage
```javascript
import {EditorView} from "@codemirror/view"
import {autocompletion} from "@codemirror/autocomplete"
import {jsonLanguage} from "@codemirror/lang-json"
const view = new EditorView({
parent: document.body,
extensions: [
jsonLanguage,
autocompletion(),
jsonLanguage.data.of({
autocomplete: ["id", "name", "address"]
})
]
})
```
This configuration will just complete the given words anywhere in JSON
context. Most language modules come with more refined autocompletion
built-in, but you can also write your own custom autocompletion
[sources](https://codemirror.net/docs/ref/#autocomplete.CompletionSource)
and associate them with your language this way.
@@ -0,0 +1,56 @@
declare class Queue<ValueType> implements Iterable<ValueType> {
/**
The size of the queue.
*/
readonly size: number;
/**
Tiny queue data structure.
The instance is an [`Iterable`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols), which means you can iterate over the queue front to back with a “for…of” loop, or use spreading to convert the queue to an array. Don't do this unless you really need to though, since it's slow.
@example
```
import Queue = require('yocto-queue');
const queue = new Queue();
queue.enqueue('🦄');
queue.enqueue('🌈');
console.log(queue.size);
//=> 2
console.log(...queue);
//=> '🦄 🌈'
console.log(queue.dequeue());
//=> '🦄'
console.log(queue.dequeue());
//=> '🌈'
```
*/
constructor();
[Symbol.iterator](): IterableIterator<ValueType>;
/**
Add a value to the queue.
*/
enqueue(value: ValueType): void;
/**
Remove the next value in the queue.
@returns The removed value or `undefined` if the queue is empty.
*/
dequeue(): ValueType | undefined;
/**
Clear the queue.
*/
clear(): void;
}
export = Queue;
@@ -0,0 +1,28 @@
"use strict";
import stream from "stream";
class ZlibHeaderTransformStream extends stream.Transform {
__transform(chunk, encoding, callback) {
this.push(chunk);
callback();
}
_transform(chunk, encoding, callback) {
if (chunk.length !== 0) {
this._transform = this.__transform;
// Add Default Compression headers if no zlib headers are present
if (chunk[0] !== 120) { // Hex: 78
const header = Buffer.alloc(2);
header[0] = 120; // Hex: 78
header[1] = 156; // Hex: 9C
this.push(header, encoding);
}
}
this.__transform(chunk, encoding, callback);
}
}
export default ZlibHeaderTransformStream;
@@ -0,0 +1,45 @@
'use strict';
var GetIntrinsic = require('get-intrinsic');
var $SyntaxError = require('es-errors/syntax');
var $TypeError = require('es-errors/type');
var isObject = require('es-object-atoms/isObject');
var $Promise = GetIntrinsic('%Promise%', true);
var callBound = require('call-bound');
var CreateIterResultObject = require('./CreateIterResultObject');
var IteratorComplete = require('./IteratorComplete');
var IteratorValue = require('./IteratorValue');
var PromiseResolve = require('./PromiseResolve');
var $then = callBound('Promise.prototype.then', true);
// https://262.ecma-international.org/10.0/#sec-asyncfromsynciteratorcontinuation
module.exports = function AsyncFromSyncIteratorContinuation(result) {
if (!isObject(result)) {
throw new $TypeError('Assertion failed: Type(O) is not Object');
}
if (arguments.length > 1) {
throw new $SyntaxError('although AsyncFromSyncIteratorContinuation should take a second argument, it is not used in this implementation');
}
if (!$Promise) {
throw new $SyntaxError('This environment does not support Promises.');
}
return new $Promise(function (resolve) {
var done = IteratorComplete(result); // step 2
var value = IteratorValue(result); // step 4
var valueWrapper = PromiseResolve($Promise, value); // step 6
// eslint-disable-next-line no-shadow
var onFulfilled = function (value) { // steps 8-9
return CreateIterResultObject(value, done); // step 8.a
};
resolve($then(valueWrapper, onFulfilled)); // step 11
}); // step 12
};
@@ -0,0 +1,972 @@
'use strict';
var node_process = require('process');
var cst = require('./cst.js');
var lexer = require('./lexer.js');
function includesToken(list, type) {
for (let i = 0; i < list.length; ++i)
if (list[i].type === type)
return true;
return false;
}
function findNonEmptyIndex(list) {
for (let i = 0; i < list.length; ++i) {
switch (list[i].type) {
case 'space':
case 'comment':
case 'newline':
break;
default:
return i;
}
}
return -1;
}
function isFlowToken(token) {
switch (token?.type) {
case 'alias':
case 'scalar':
case 'single-quoted-scalar':
case 'double-quoted-scalar':
case 'flow-collection':
return true;
default:
return false;
}
}
function getPrevProps(parent) {
switch (parent.type) {
case 'document':
return parent.start;
case 'block-map': {
const it = parent.items[parent.items.length - 1];
return it.sep ?? it.start;
}
case 'block-seq':
return parent.items[parent.items.length - 1].start;
/* istanbul ignore next should not happen */
default:
return [];
}
}
/** Note: May modify input array */
function getFirstKeyStartProps(prev) {
if (prev.length === 0)
return [];
let i = prev.length;
loop: while (--i >= 0) {
switch (prev[i].type) {
case 'doc-start':
case 'explicit-key-ind':
case 'map-value-ind':
case 'seq-item-ind':
case 'newline':
break loop;
}
}
while (prev[++i]?.type === 'space') {
/* loop */
}
return prev.splice(i, prev.length);
}
function fixFlowSeqItems(fc) {
if (fc.start.type === 'flow-seq-start') {
for (const it of fc.items) {
if (it.sep &&
!it.value &&
!includesToken(it.start, 'explicit-key-ind') &&
!includesToken(it.sep, 'map-value-ind')) {
if (it.key)
it.value = it.key;
delete it.key;
if (isFlowToken(it.value)) {
if (it.value.end)
Array.prototype.push.apply(it.value.end, it.sep);
else
it.value.end = it.sep;
}
else
Array.prototype.push.apply(it.start, it.sep);
delete it.sep;
}
}
}
}
/**
* A YAML concrete syntax tree (CST) parser
*
* ```ts
* const src: string = ...
* for (const token of new Parser().parse(src)) {
* // token: Token
* }
* ```
*
* To use the parser with a user-provided lexer:
*
* ```ts
* function* parse(source: string, lexer: Lexer) {
* const parser = new Parser()
* for (const lexeme of lexer.lex(source))
* yield* parser.next(lexeme)
* yield* parser.end()
* }
*
* const src: string = ...
* const lexer = new Lexer()
* for (const token of parse(src, lexer)) {
* // token: Token
* }
* ```
*/
class Parser {
/**
* @param onNewLine - If defined, called separately with the start position of
* each new line (in `parse()`, including the start of input).
*/
constructor(onNewLine) {
/** If true, space and sequence indicators count as indentation */
this.atNewLine = true;
/** If true, next token is a scalar value */
this.atScalar = false;
/** Current indentation level */
this.indent = 0;
/** Current offset since the start of parsing */
this.offset = 0;
/** On the same line with a block map key */
this.onKeyLine = false;
/** Top indicates the node that's currently being built */
this.stack = [];
/** The source of the current token, set in parse() */
this.source = '';
/** The type of the current token, set in parse() */
this.type = '';
// Must be defined after `next()`
this.lexer = new lexer.Lexer();
this.onNewLine = onNewLine;
}
/**
* Parse `source` as a YAML stream.
* If `incomplete`, a part of the last line may be left as a buffer for the next call.
*
* Errors are not thrown, but yielded as `{ type: 'error', message }` tokens.
*
* @returns A generator of tokens representing each directive, document, and other structure.
*/
*parse(source, incomplete = false) {
if (this.onNewLine && this.offset === 0)
this.onNewLine(0);
for (const lexeme of this.lexer.lex(source, incomplete))
yield* this.next(lexeme);
if (!incomplete)
yield* this.end();
}
/**
* Advance the parser by the `source` of one lexical token.
*/
*next(source) {
this.source = source;
if (node_process.env.LOG_TOKENS)
console.log('|', cst.prettyToken(source));
if (this.atScalar) {
this.atScalar = false;
yield* this.step();
this.offset += source.length;
return;
}
const type = cst.tokenType(source);
if (!type) {
const message = `Not a YAML token: ${source}`;
yield* this.pop({ type: 'error', offset: this.offset, message, source });
this.offset += source.length;
}
else if (type === 'scalar') {
this.atNewLine = false;
this.atScalar = true;
this.type = 'scalar';
}
else {
this.type = type;
yield* this.step();
switch (type) {
case 'newline':
this.atNewLine = true;
this.indent = 0;
if (this.onNewLine)
this.onNewLine(this.offset + source.length);
break;
case 'space':
if (this.atNewLine && source[0] === ' ')
this.indent += source.length;
break;
case 'explicit-key-ind':
case 'map-value-ind':
case 'seq-item-ind':
if (this.atNewLine)
this.indent += source.length;
break;
case 'doc-mode':
case 'flow-error-end':
return;
default:
this.atNewLine = false;
}
this.offset += source.length;
}
}
/** Call at end of input to push out any remaining constructions */
*end() {
while (this.stack.length > 0)
yield* this.pop();
}
get sourceToken() {
const st = {
type: this.type,
offset: this.offset,
indent: this.indent,
source: this.source
};
return st;
}
*step() {
const top = this.peek(1);
if (this.type === 'doc-end' && top?.type !== 'doc-end') {
while (this.stack.length > 0)
yield* this.pop();
this.stack.push({
type: 'doc-end',
offset: this.offset,
source: this.source
});
return;
}
if (!top)
return yield* this.stream();
switch (top.type) {
case 'document':
return yield* this.document(top);
case 'alias':
case 'scalar':
case 'single-quoted-scalar':
case 'double-quoted-scalar':
return yield* this.scalar(top);
case 'block-scalar':
return yield* this.blockScalar(top);
case 'block-map':
return yield* this.blockMap(top);
case 'block-seq':
return yield* this.blockSequence(top);
case 'flow-collection':
return yield* this.flowCollection(top);
case 'doc-end':
return yield* this.documentEnd(top);
}
/* istanbul ignore next should not happen */
yield* this.pop();
}
peek(n) {
return this.stack[this.stack.length - n];
}
*pop(error) {
const token = error ?? this.stack.pop();
/* istanbul ignore if should not happen */
if (!token) {
const message = 'Tried to pop an empty stack';
yield { type: 'error', offset: this.offset, source: '', message };
}
else if (this.stack.length === 0) {
yield token;
}
else {
const top = this.peek(1);
if (token.type === 'block-scalar') {
// Block scalars use their parent rather than header indent
token.indent = 'indent' in top ? top.indent : 0;
}
else if (token.type === 'flow-collection' && top.type === 'document') {
// Ignore all indent for top-level flow collections
token.indent = 0;
}
if (token.type === 'flow-collection')
fixFlowSeqItems(token);
switch (top.type) {
case 'document':
top.value = token;
break;
case 'block-scalar':
top.props.push(token); // error
break;
case 'block-map': {
const it = top.items[top.items.length - 1];
if (it.value) {
top.items.push({ start: [], key: token, sep: [] });
this.onKeyLine = true;
return;
}
else if (it.sep) {
it.value = token;
}
else {
Object.assign(it, { key: token, sep: [] });
this.onKeyLine = !it.explicitKey;
return;
}
break;
}
case 'block-seq': {
const it = top.items[top.items.length - 1];
if (it.value)
top.items.push({ start: [], value: token });
else
it.value = token;
break;
}
case 'flow-collection': {
const it = top.items[top.items.length - 1];
if (!it || it.value)
top.items.push({ start: [], key: token, sep: [] });
else if (it.sep)
it.value = token;
else
Object.assign(it, { key: token, sep: [] });
return;
}
/* istanbul ignore next should not happen */
default:
yield* this.pop();
yield* this.pop(token);
}
if ((top.type === 'document' ||
top.type === 'block-map' ||
top.type === 'block-seq') &&
(token.type === 'block-map' || token.type === 'block-seq')) {
const last = token.items[token.items.length - 1];
if (last &&
!last.sep &&
!last.value &&
last.start.length > 0 &&
findNonEmptyIndex(last.start) === -1 &&
(token.indent === 0 ||
last.start.every(st => st.type !== 'comment' || st.indent < token.indent))) {
if (top.type === 'document')
top.end = last.start;
else
top.items.push({ start: last.start });
token.items.splice(-1, 1);
}
}
}
}
*stream() {
switch (this.type) {
case 'directive-line':
yield { type: 'directive', offset: this.offset, source: this.source };
return;
case 'byte-order-mark':
case 'space':
case 'comment':
case 'newline':
yield this.sourceToken;
return;
case 'doc-mode':
case 'doc-start': {
const doc = {
type: 'document',
offset: this.offset,
start: []
};
if (this.type === 'doc-start')
doc.start.push(this.sourceToken);
this.stack.push(doc);
return;
}
}
yield {
type: 'error',
offset: this.offset,
message: `Unexpected ${this.type} token in YAML stream`,
source: this.source
};
}
*document(doc) {
if (doc.value)
return yield* this.lineEnd(doc);
switch (this.type) {
case 'doc-start': {
if (findNonEmptyIndex(doc.start) !== -1) {
yield* this.pop();
yield* this.step();
}
else
doc.start.push(this.sourceToken);
return;
}
case 'anchor':
case 'tag':
case 'space':
case 'comment':
case 'newline':
doc.start.push(this.sourceToken);
return;
}
const bv = this.startBlockValue(doc);
if (bv)
this.stack.push(bv);
else {
yield {
type: 'error',
offset: this.offset,
message: `Unexpected ${this.type} token in YAML document`,
source: this.source
};
}
}
*scalar(scalar) {
if (this.type === 'map-value-ind') {
const prev = getPrevProps(this.peek(2));
const start = getFirstKeyStartProps(prev);
let sep;
if (scalar.end) {
sep = scalar.end;
sep.push(this.sourceToken);
delete scalar.end;
}
else
sep = [this.sourceToken];
const map = {
type: 'block-map',
offset: scalar.offset,
indent: scalar.indent,
items: [{ start, key: scalar, sep }]
};
this.onKeyLine = true;
this.stack[this.stack.length - 1] = map;
}
else
yield* this.lineEnd(scalar);
}
*blockScalar(scalar) {
switch (this.type) {
case 'space':
case 'comment':
case 'newline':
scalar.props.push(this.sourceToken);
return;
case 'scalar':
scalar.source = this.source;
// block-scalar source includes trailing newline
this.atNewLine = true;
this.indent = 0;
if (this.onNewLine) {
let nl = this.source.indexOf('\n') + 1;
while (nl !== 0) {
this.onNewLine(this.offset + nl);
nl = this.source.indexOf('\n', nl) + 1;
}
}
yield* this.pop();
break;
/* istanbul ignore next should not happen */
default:
yield* this.pop();
yield* this.step();
}
}
*blockMap(map) {
const it = map.items[map.items.length - 1];
// it.sep is true-ish if pair already has key or : separator
switch (this.type) {
case 'newline':
this.onKeyLine = false;
if (it.value) {
const end = 'end' in it.value ? it.value.end : undefined;
const last = Array.isArray(end) ? end[end.length - 1] : undefined;
if (last?.type === 'comment')
end?.push(this.sourceToken);
else
map.items.push({ start: [this.sourceToken] });
}
else if (it.sep) {
it.sep.push(this.sourceToken);
}
else {
it.start.push(this.sourceToken);
}
return;
case 'space':
case 'comment':
if (it.value) {
map.items.push({ start: [this.sourceToken] });
}
else if (it.sep) {
it.sep.push(this.sourceToken);
}
else {
if (this.atIndentedComment(it.start, map.indent)) {
const prev = map.items[map.items.length - 2];
const end = prev?.value?.end;
if (Array.isArray(end)) {
Array.prototype.push.apply(end, it.start);
end.push(this.sourceToken);
map.items.pop();
return;
}
}
it.start.push(this.sourceToken);
}
return;
}
if (this.indent >= map.indent) {
const atMapIndent = !this.onKeyLine && this.indent === map.indent;
const atNextItem = atMapIndent &&
(it.sep || it.explicitKey) &&
this.type !== 'seq-item-ind';
// For empty nodes, assign newline-separated not indented empty tokens to following node
let start = [];
if (atNextItem && it.sep && !it.value) {
const nl = [];
for (let i = 0; i < it.sep.length; ++i) {
const st = it.sep[i];
switch (st.type) {
case 'newline':
nl.push(i);
break;
case 'space':
break;
case 'comment':
if (st.indent > map.indent)
nl.length = 0;
break;
default:
nl.length = 0;
}
}
if (nl.length >= 2)
start = it.sep.splice(nl[1]);
}
switch (this.type) {
case 'anchor':
case 'tag':
if (atNextItem || it.value) {
start.push(this.sourceToken);
map.items.push({ start });
this.onKeyLine = true;
}
else if (it.sep) {
it.sep.push(this.sourceToken);
}
else {
it.start.push(this.sourceToken);
}
return;
case 'explicit-key-ind':
if (!it.sep && !it.explicitKey) {
it.start.push(this.sourceToken);
it.explicitKey = true;
}
else if (atNextItem || it.value) {
start.push(this.sourceToken);
map.items.push({ start, explicitKey: true });
}
else {
this.stack.push({
type: 'block-map',
offset: this.offset,
indent: this.indent,
items: [{ start: [this.sourceToken], explicitKey: true }]
});
}
this.onKeyLine = true;
return;
case 'map-value-ind':
if (it.explicitKey) {
if (!it.sep) {
if (includesToken(it.start, 'newline')) {
Object.assign(it, { key: null, sep: [this.sourceToken] });
}
else {
const start = getFirstKeyStartProps(it.start);
this.stack.push({
type: 'block-map',
offset: this.offset,
indent: this.indent,
items: [{ start, key: null, sep: [this.sourceToken] }]
});
}
}
else if (it.value) {
map.items.push({ start: [], key: null, sep: [this.sourceToken] });
}
else if (includesToken(it.sep, 'map-value-ind')) {
this.stack.push({
type: 'block-map',
offset: this.offset,
indent: this.indent,
items: [{ start, key: null, sep: [this.sourceToken] }]
});
}
else if (isFlowToken(it.key) &&
!includesToken(it.sep, 'newline')) {
const start = getFirstKeyStartProps(it.start);
const key = it.key;
const sep = it.sep;
sep.push(this.sourceToken);
// @ts-expect-error type guard is wrong here
delete it.key;
// @ts-expect-error type guard is wrong here
delete it.sep;
this.stack.push({
type: 'block-map',
offset: this.offset,
indent: this.indent,
items: [{ start, key, sep }]
});
}
else if (start.length > 0) {
// Not actually at next item
it.sep = it.sep.concat(start, this.sourceToken);
}
else {
it.sep.push(this.sourceToken);
}
}
else {
if (!it.sep) {
Object.assign(it, { key: null, sep: [this.sourceToken] });
}
else if (it.value || atNextItem) {
map.items.push({ start, key: null, sep: [this.sourceToken] });
}
else if (includesToken(it.sep, 'map-value-ind')) {
this.stack.push({
type: 'block-map',
offset: this.offset,
indent: this.indent,
items: [{ start: [], key: null, sep: [this.sourceToken] }]
});
}
else {
it.sep.push(this.sourceToken);
}
}
this.onKeyLine = true;
return;
case 'alias':
case 'scalar':
case 'single-quoted-scalar':
case 'double-quoted-scalar': {
const fs = this.flowScalar(this.type);
if (atNextItem || it.value) {
map.items.push({ start, key: fs, sep: [] });
this.onKeyLine = true;
}
else if (it.sep) {
this.stack.push(fs);
}
else {
Object.assign(it, { key: fs, sep: [] });
this.onKeyLine = true;
}
return;
}
default: {
const bv = this.startBlockValue(map);
if (bv) {
if (bv.type === 'block-seq') {
if (!it.explicitKey &&
it.sep &&
!includesToken(it.sep, 'newline')) {
yield* this.pop({
type: 'error',
offset: this.offset,
message: 'Unexpected block-seq-ind on same line with key',
source: this.source
});
return;
}
}
else if (atMapIndent) {
map.items.push({ start });
}
this.stack.push(bv);
return;
}
}
}
}
yield* this.pop();
yield* this.step();
}
*blockSequence(seq) {
const it = seq.items[seq.items.length - 1];
switch (this.type) {
case 'newline':
if (it.value) {
const end = 'end' in it.value ? it.value.end : undefined;
const last = Array.isArray(end) ? end[end.length - 1] : undefined;
if (last?.type === 'comment')
end?.push(this.sourceToken);
else
seq.items.push({ start: [this.sourceToken] });
}
else
it.start.push(this.sourceToken);
return;
case 'space':
case 'comment':
if (it.value)
seq.items.push({ start: [this.sourceToken] });
else {
if (this.atIndentedComment(it.start, seq.indent)) {
const prev = seq.items[seq.items.length - 2];
const end = prev?.value?.end;
if (Array.isArray(end)) {
Array.prototype.push.apply(end, it.start);
end.push(this.sourceToken);
seq.items.pop();
return;
}
}
it.start.push(this.sourceToken);
}
return;
case 'anchor':
case 'tag':
if (it.value || this.indent <= seq.indent)
break;
it.start.push(this.sourceToken);
return;
case 'seq-item-ind':
if (this.indent !== seq.indent)
break;
if (it.value || includesToken(it.start, 'seq-item-ind'))
seq.items.push({ start: [this.sourceToken] });
else
it.start.push(this.sourceToken);
return;
}
if (this.indent > seq.indent) {
const bv = this.startBlockValue(seq);
if (bv) {
this.stack.push(bv);
return;
}
}
yield* this.pop();
yield* this.step();
}
*flowCollection(fc) {
const it = fc.items[fc.items.length - 1];
if (this.type === 'flow-error-end') {
let top;
do {
yield* this.pop();
top = this.peek(1);
} while (top?.type === 'flow-collection');
}
else if (fc.end.length === 0) {
switch (this.type) {
case 'comma':
case 'explicit-key-ind':
if (!it || it.sep)
fc.items.push({ start: [this.sourceToken] });
else
it.start.push(this.sourceToken);
return;
case 'map-value-ind':
if (!it || it.value)
fc.items.push({ start: [], key: null, sep: [this.sourceToken] });
else if (it.sep)
it.sep.push(this.sourceToken);
else
Object.assign(it, { key: null, sep: [this.sourceToken] });
return;
case 'space':
case 'comment':
case 'newline':
case 'anchor':
case 'tag':
if (!it || it.value)
fc.items.push({ start: [this.sourceToken] });
else if (it.sep)
it.sep.push(this.sourceToken);
else
it.start.push(this.sourceToken);
return;
case 'alias':
case 'scalar':
case 'single-quoted-scalar':
case 'double-quoted-scalar': {
const fs = this.flowScalar(this.type);
if (!it || it.value)
fc.items.push({ start: [], key: fs, sep: [] });
else if (it.sep)
this.stack.push(fs);
else
Object.assign(it, { key: fs, sep: [] });
return;
}
case 'flow-map-end':
case 'flow-seq-end':
fc.end.push(this.sourceToken);
return;
}
const bv = this.startBlockValue(fc);
/* istanbul ignore else should not happen */
if (bv)
this.stack.push(bv);
else {
yield* this.pop();
yield* this.step();
}
}
else {
const parent = this.peek(2);
if (parent.type === 'block-map' &&
((this.type === 'map-value-ind' && parent.indent === fc.indent) ||
(this.type === 'newline' &&
!parent.items[parent.items.length - 1].sep))) {
yield* this.pop();
yield* this.step();
}
else if (this.type === 'map-value-ind' &&
parent.type !== 'flow-collection') {
const prev = getPrevProps(parent);
const start = getFirstKeyStartProps(prev);
fixFlowSeqItems(fc);
const sep = fc.end.splice(1, fc.end.length);
sep.push(this.sourceToken);
const map = {
type: 'block-map',
offset: fc.offset,
indent: fc.indent,
items: [{ start, key: fc, sep }]
};
this.onKeyLine = true;
this.stack[this.stack.length - 1] = map;
}
else {
yield* this.lineEnd(fc);
}
}
}
flowScalar(type) {
if (this.onNewLine) {
let nl = this.source.indexOf('\n') + 1;
while (nl !== 0) {
this.onNewLine(this.offset + nl);
nl = this.source.indexOf('\n', nl) + 1;
}
}
return {
type,
offset: this.offset,
indent: this.indent,
source: this.source
};
}
startBlockValue(parent) {
switch (this.type) {
case 'alias':
case 'scalar':
case 'single-quoted-scalar':
case 'double-quoted-scalar':
return this.flowScalar(this.type);
case 'block-scalar-header':
return {
type: 'block-scalar',
offset: this.offset,
indent: this.indent,
props: [this.sourceToken],
source: ''
};
case 'flow-map-start':
case 'flow-seq-start':
return {
type: 'flow-collection',
offset: this.offset,
indent: this.indent,
start: this.sourceToken,
items: [],
end: []
};
case 'seq-item-ind':
return {
type: 'block-seq',
offset: this.offset,
indent: this.indent,
items: [{ start: [this.sourceToken] }]
};
case 'explicit-key-ind': {
this.onKeyLine = true;
const prev = getPrevProps(parent);
const start = getFirstKeyStartProps(prev);
start.push(this.sourceToken);
return {
type: 'block-map',
offset: this.offset,
indent: this.indent,
items: [{ start, explicitKey: true }]
};
}
case 'map-value-ind': {
this.onKeyLine = true;
const prev = getPrevProps(parent);
const start = getFirstKeyStartProps(prev);
return {
type: 'block-map',
offset: this.offset,
indent: this.indent,
items: [{ start, key: null, sep: [this.sourceToken] }]
};
}
}
return null;
}
atIndentedComment(start, indent) {
if (this.type !== 'comment')
return false;
if (this.indent <= indent)
return false;
return start.every(st => st.type === 'newline' || st.type === 'space');
}
*documentEnd(docEnd) {
if (this.type !== 'doc-mode') {
if (docEnd.end)
docEnd.end.push(this.sourceToken);
else
docEnd.end = [this.sourceToken];
if (this.type === 'newline')
yield* this.pop();
}
}
*lineEnd(token) {
switch (this.type) {
case 'comma':
case 'doc-start':
case 'doc-end':
case 'flow-seq-end':
case 'flow-map-end':
case 'map-value-ind':
yield* this.pop();
yield* this.step();
break;
case 'newline':
this.onKeyLine = false;
// fallthrough
case 'space':
case 'comment':
default:
// all other values are errors
if (token.end)
token.end.push(this.sourceToken);
else
token.end = [this.sourceToken];
if (this.type === 'newline')
yield* this.pop();
}
}
}
exports.Parser = Parser;
@@ -0,0 +1 @@
{"version":3,"file":"curryBuildPlanServiceNodeFromResolvedValueElementMetadata.spec.d.ts","sourceRoot":"","sources":["../../../../src/planning/actions/curryBuildPlanServiceNodeFromResolvedValueElementMetadata.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,131 @@
'use strict';
const { EMPTY_BUFFER } = require('./constants');
const FastBuffer = Buffer[Symbol.species];
/**
* Merges an array of buffers into a new buffer.
*
* @param {Buffer[]} list The array of buffers to concat
* @param {Number} totalLength The total length of buffers in the list
* @return {Buffer} The resulting buffer
* @public
*/
function concat(list, totalLength) {
if (list.length === 0) return EMPTY_BUFFER;
if (list.length === 1) return list[0];
const target = Buffer.allocUnsafe(totalLength);
let offset = 0;
for (let i = 0; i < list.length; i++) {
const buf = list[i];
target.set(buf, offset);
offset += buf.length;
}
if (offset < totalLength) {
return new FastBuffer(target.buffer, target.byteOffset, offset);
}
return target;
}
/**
* Masks a buffer using the given mask.
*
* @param {Buffer} source The buffer to mask
* @param {Buffer} mask The mask to use
* @param {Buffer} output The buffer where to store the result
* @param {Number} offset The offset at which to start writing
* @param {Number} length The number of bytes to mask.
* @public
*/
function _mask(source, mask, output, offset, length) {
for (let i = 0; i < length; i++) {
output[offset + i] = source[i] ^ mask[i & 3];
}
}
/**
* Unmasks a buffer using the given mask.
*
* @param {Buffer} buffer The buffer to unmask
* @param {Buffer} mask The mask to use
* @public
*/
function _unmask(buffer, mask) {
for (let i = 0; i < buffer.length; i++) {
buffer[i] ^= mask[i & 3];
}
}
/**
* Converts a buffer to an `ArrayBuffer`.
*
* @param {Buffer} buf The buffer to convert
* @return {ArrayBuffer} Converted buffer
* @public
*/
function toArrayBuffer(buf) {
if (buf.length === buf.buffer.byteLength) {
return buf.buffer;
}
return buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.length);
}
/**
* Converts `data` to a `Buffer`.
*
* @param {*} data The data to convert
* @return {Buffer} The buffer
* @throws {TypeError}
* @public
*/
function toBuffer(data) {
toBuffer.readOnly = true;
if (Buffer.isBuffer(data)) return data;
let buf;
if (data instanceof ArrayBuffer) {
buf = new FastBuffer(data);
} else if (ArrayBuffer.isView(data)) {
buf = new FastBuffer(data.buffer, data.byteOffset, data.byteLength);
} else {
buf = Buffer.from(data);
toBuffer.readOnly = false;
}
return buf;
}
module.exports = {
concat,
mask: _mask,
toArrayBuffer,
toBuffer,
unmask: _unmask
};
/* istanbul ignore else */
if (!process.env.WS_NO_BUFFER_UTIL) {
try {
const bufferUtil = require('bufferutil');
module.exports.mask = function (source, mask, output, offset, length) {
if (length < 48) _mask(source, mask, output, offset, length);
else bufferUtil.mask(source, mask, output, offset, length);
};
module.exports.unmask = function (buffer, mask) {
if (buffer.length < 32) _unmask(buffer, mask);
else bufferUtil.unmask(buffer, mask);
};
} catch (e) {
// Continue regardless of the error.
}
}
@@ -0,0 +1,65 @@
{
"root": true,
"extends": "@ljharb",
"rules": {
"indent": [2, 4],
"strict": 0,
"complexity": 0,
"consistent-return": 0,
"curly": 0,
"dot-notation": [2, { "allowKeywords": true }],
"func-name-matching": 0,
"func-style": 0,
"global-require": 1,
"id-length": [2, { "min": 1, "max": 40 }],
"max-lines": [2, 350],
"max-lines-per-function": 1,
"max-nested-callbacks": 0,
"max-params": 0,
"max-statements-per-line": [2, { "max": 2 }],
"max-statements": 0,
"no-magic-numbers": 0,
"no-shadow": 0,
"no-use-before-define": 0,
"sort-keys": 0,
},
"overrides": [
{
"files": "bin/**",
"rules": {
"no-process-exit": "off",
},
},
{
"files": "example/**",
"rules": {
"no-console": 0,
},
},
{
"files": "test/resolver/nested_symlinks/mylib/*.js",
"rules": {
"no-throw-literal": 0,
},
},
{
"files": "test/**",
"parserOptions": {
"ecmaVersion": 5,
"allowReserved": false,
},
"rules": {
"dot-notation": [2, { "allowPattern": "throws" }],
"max-lines": 0,
"max-lines-per-function": 0,
"no-unused-vars": [2, { "vars": "all", "args": "none" }],
},
},
],
"ignorePatterns": [
"./test/resolver/malformed_package_json/package.json",
],
}
@@ -0,0 +1,302 @@
/**
* @fileoverview Manages the suppressed violations.
* @author Iacovos Constantinou
*/
"use strict";
//-----------------------------------------------------------------------------
// Requirements
//-----------------------------------------------------------------------------
const fs = require("node:fs");
const path = require("node:path");
const { calculateStatsPerFile } = require("../eslint/eslint-helpers");
const stringify = require("json-stable-stringify-without-jsonify");
//------------------------------------------------------------------------------
// Typedefs
//------------------------------------------------------------------------------
// For VSCode IntelliSense
/** @typedef {import("../types").Linter.LintMessage} LintMessage */
/** @typedef {import("../types").ESLint.LintResult} LintResult */
/** @typedef {Record<string, Record<string, { count: number; }>>} SuppressedViolations */
//-----------------------------------------------------------------------------
// Exports
//-----------------------------------------------------------------------------
/**
* Manages the suppressed violations.
*/
class SuppressionsService {
filePath = "";
cwd = "";
/**
* Creates a new instance of SuppressionsService.
* @param {Object} options The options.
* @param {string} [options.filePath] The location of the suppressions file.
* @param {string} [options.cwd] The current working directory.
*/
constructor({ filePath, cwd }) {
this.filePath = filePath;
this.cwd = cwd;
}
/**
* Updates the suppressions file based on the current violations and the provided rules.
* If no rules are provided, all violations are suppressed.
* @param {LintResult[]|undefined} results The lint results.
* @param {string[]|undefined} rules The rules to suppress.
* @returns {Promise<void>}
*/
async suppress(results, rules) {
const suppressions = await this.load();
for (const result of results) {
const relativeFilePath = this.getRelativeFilePath(result.filePath);
const violationsByRule = SuppressionsService.countViolationsByRule(
result.messages,
);
for (const ruleId in violationsByRule) {
if (rules && !rules.includes(ruleId)) {
continue;
}
suppressions[relativeFilePath] ??= {};
suppressions[relativeFilePath][ruleId] =
violationsByRule[ruleId];
}
}
return this.save(suppressions);
}
/**
* Removes old, unused suppressions for violations that do not occur anymore.
* @param {LintResult[]} results The lint results.
* @returns {Promise<void>} No return value.
*/
async prune(results) {
const suppressions = await this.load();
const { unused } = this.applySuppressions(results, suppressions);
for (const file in unused) {
if (!suppressions[file]) {
continue;
}
for (const rule in unused[file]) {
if (!suppressions[file][rule]) {
continue;
}
const suppressionsCount = suppressions[file][rule].count;
const violationsCount = unused[file][rule].count;
if (suppressionsCount === violationsCount) {
// Remove unused rules
delete suppressions[file][rule];
} else {
// Update the count to match the new number of violations
suppressions[file][rule].count -= violationsCount;
}
}
// Cleanup files with no rules
if (Object.keys(suppressions[file]).length === 0) {
delete suppressions[file];
}
}
for (const file of Object.keys(suppressions)) {
const absolutePath = path.resolve(this.cwd, file);
if (!fs.existsSync(absolutePath)) {
delete suppressions[file];
}
}
return this.save(suppressions);
}
/**
* Checks the provided suppressions against the lint results.
*
* For each file, counts the number of violations per rule.
* For each rule in each file, compares the number of violations against the counter from the suppressions file.
* If the number of violations is less or equal to the counter, messages are moved to `LintResult#suppressedMessages` and ignored.
* Otherwise, all violations are reported as usual.
* @param {LintResult[]} results The lint results.
* @param {SuppressedViolations} suppressions The suppressions.
* @returns {{
* results: LintResult[],
* unused: SuppressedViolations
* }} The updated results and the unused suppressions.
*/
applySuppressions(results, suppressions) {
/**
* We copy the results to avoid modifying the original objects
* We remove only result messages that are matched and hence suppressed
* We leave the rest untouched to minimize the risk of losing parts of the original data
*/
const filtered = structuredClone(results);
const unused = {};
for (const result of filtered) {
const relativeFilePath = this.getRelativeFilePath(result.filePath);
if (!suppressions[relativeFilePath]) {
continue;
}
const violationsByRule = SuppressionsService.countViolationsByRule(
result.messages,
);
let wasSuppressed = false;
for (const ruleId in violationsByRule) {
if (!suppressions[relativeFilePath][ruleId]) {
continue;
}
const suppressionsCount =
suppressions[relativeFilePath][ruleId].count;
const violationsCount = violationsByRule[ruleId].count;
// Suppress messages if the number of violations is less or equal to the suppressions count
if (violationsCount <= suppressionsCount) {
SuppressionsService.suppressMessagesByRule(result, ruleId);
wasSuppressed = true;
}
// Update the count to match the new number of violations, otherwise remove the rule entirely
if (violationsCount < suppressionsCount) {
unused[relativeFilePath] ??= {};
unused[relativeFilePath][ruleId] ??= {};
unused[relativeFilePath][ruleId].count =
suppressionsCount - violationsCount;
}
}
// Mark as unused all the suppressions that were not matched against a rule
for (const ruleId in suppressions[relativeFilePath]) {
if (violationsByRule[ruleId]) {
continue;
}
unused[relativeFilePath] ??= {};
unused[relativeFilePath][ruleId] =
suppressions[relativeFilePath][ruleId];
}
// Recalculate stats if messages were suppressed
if (wasSuppressed) {
Object.assign(result, calculateStatsPerFile(result.messages));
}
}
return {
results: filtered,
unused,
};
}
/**
* Loads the suppressions file.
* @throws {Error} If the suppressions file cannot be parsed.
* @returns {Promise<SuppressedViolations>} The suppressions.
*/
async load() {
try {
const data = await fs.promises.readFile(this.filePath, "utf8");
return JSON.parse(data);
} catch (err) {
if (err.code === "ENOENT") {
return {};
}
throw new Error(
`Failed to parse suppressions file at ${this.filePath}`,
{
cause: err,
},
);
}
}
/**
* Updates the suppressions file.
* @param {SuppressedViolations} suppressions The suppressions to save.
* @returns {Promise<void>}
* @private
*/
save(suppressions) {
return fs.promises.writeFile(
this.filePath,
stringify(suppressions, { space: 2 }),
);
}
/**
* Counts the violations by rule, ignoring warnings.
* @param {LintMessage[]} messages The messages to count.
* @returns {Record<string, number>} The number of violations by rule.
*/
static countViolationsByRule(messages) {
return messages.reduce((totals, message) => {
if (message.severity === 2 && message.ruleId) {
totals[message.ruleId] ??= { count: 0 };
totals[message.ruleId].count++;
}
return totals;
}, {});
}
/**
* Returns the relative path of a file to the current working directory.
* Always in POSIX format for consistency and interoperability.
* @param {string} filePath The file path.
* @returns {string} The relative file path.
*/
getRelativeFilePath(filePath) {
return path
.relative(this.cwd, filePath)
.split(path.sep)
.join(path.posix.sep);
}
/**
* Moves the messages matching the rule to `LintResult#suppressedMessages` and updates the stats.
* @param {LintResult} result The result to update.
* @param {string} ruleId The rule to suppress.
* @returns {void}
*/
static suppressMessagesByRule(result, ruleId) {
const suppressedMessages = result.messages.filter(
message => message.ruleId === ruleId,
);
result.suppressedMessages = result.suppressedMessages.concat(
suppressedMessages.map(message => {
message.suppressions = [
{
kind: "file",
justification: "",
},
];
return message;
}),
);
result.messages = result.messages.filter(
message => message.ruleId !== ruleId,
);
}
}
module.exports = { SuppressionsService };
@@ -0,0 +1,35 @@
export interface ChunkMetadata {
importedAssets: Set<string>
importedCss: Set<string>
}
export interface CustomPluginOptionsVite {
/**
* If this is a CSS Rollup module, you can scope to its importer's exports
* so that if those exports are treeshaken away, the CSS module will also
* be treeshaken.
*
* The "importerId" must import the CSS Rollup module statically.
*
* Example config if the CSS id is `/src/App.vue?vue&type=style&lang.css`:
* ```js
* cssScopeTo: ['/src/App.vue', 'default']
* ```
*
* @experimental
*/
cssScopeTo?: readonly [importerId: string, exportName: string | undefined]
/** @deprecated no-op since Vite 6.1 */
lang?: string
}
declare module 'rollup' {
export interface RenderedChunk {
viteMetadata?: ChunkMetadata
}
export interface CustomPluginOptions {
vite?: CustomPluginOptionsVite
}
}
@@ -0,0 +1 @@
{"version":3,"names":["_cache","require","_index","_context","_removal","_t","_hoister","arrowFunctionExpression","assertExpression","assignmentExpression","blockStatement","callExpression","cloneNode","expressionStatement","isAssignmentExpression","isCallExpression","isExportNamedDeclaration","isExpression","isIdentifier","isSequenceExpression","isSuper","thisExpression","insertBefore","nodes_","_assertUnremoved","call","nodes","_verifyNodeList","parentPath","parent","isExpressionStatement","isLabeledStatement","isExportDefaultDeclaration","isDeclaration","isNodeType","isJSXElement","isForStatement","key","node","push","replaceExpressionWithStatements","Array","isArray","container","_containerInsertBefore","isStatementOrBlock","shouldInsertCurrentNode","expression","blockPath","replaceWith","unshiftContainer","Error","_containerInsert","from","updateSiblingKeys","length","paths","splice","i","_this$context","to","path","getSibling","context","queue","pushContext","contexts","_getQueueContexts","setScope","debug","maybeQueue","_containerInsertAfter","last","arr","isHiddenInSequenceExpression","expressions","isAlmostConstantAssignment","scope","left","blockScope","getBlockParent","hasOwnBinding","name","getOwnBinding","constantViolations","insertAfter","get","map","self","isPattern","unshift","callee","isPure","isMethod","computed","temp","generateDeclaredUidIdentifier","pushContainer","fromIndex","incrementBy","getCachedPaths","msg","type","NodePath","listKey","verifiedNodes","setContext","replaceWithMultiple","exports","hoist","hoister","PathHoister","run"],"sources":["../../src/path/modification.ts"],"sourcesContent":["// This file contains methods that modify the path/node in some ways.\n\nimport { getCachedPaths } from \"../cache.ts\";\nimport NodePath from \"./index.ts\";\nimport { _getQueueContexts, pushContext, setScope } from \"./context.ts\";\nimport { _assertUnremoved } from \"./removal.ts\";\nimport {\n arrowFunctionExpression,\n assertExpression,\n assignmentExpression,\n blockStatement,\n callExpression,\n cloneNode,\n expressionStatement,\n isAssignmentExpression,\n isCallExpression,\n isExportNamedDeclaration,\n isExpression,\n isIdentifier,\n isSequenceExpression,\n isSuper,\n thisExpression,\n} from \"@babel/types\";\nimport type * as t from \"@babel/types\";\nimport type Scope from \"../scope/index.ts\";\nimport type {\n NodeList,\n NodeOrNodeList,\n NodeListType,\n NodePaths,\n} from \"./index.ts\";\n\n/**\n * Insert the provided nodes before the current one.\n */\n\nexport function insertBefore<Nodes extends NodeOrNodeList<t.Node>>(\n this: NodePath,\n nodes_: Nodes,\n): NodePaths<Nodes> {\n _assertUnremoved.call(this);\n\n const nodes = _verifyNodeList.call(this, nodes_);\n\n const { parentPath, parent } = this;\n\n if (\n parentPath.isExpressionStatement() ||\n parentPath.isLabeledStatement() ||\n // https://github.com/babel/babel/issues/15293\n // When Babel transforms `export class String { field }`, the class properties plugin will inject the defineProperty\n // helper, which depends on the builtins e.g. String, Number, Symbol, etc. To prevent them from being shadowed by local\n // exports, the helper injector replaces the named export into `class _String { field }; export { _String as String }`,\n // with `parentPath` here changed to the moved ClassDeclaration, causing rare inconsistency between `parent` and `parentPath`.\n // Here we retrieve the parent type from the `parent` property. This is a temporary fix and we should revisit when\n // helpers should get injected.\n isExportNamedDeclaration(parent) ||\n (parentPath.isExportDefaultDeclaration() && this.isDeclaration())\n ) {\n return parentPath.insertBefore(nodes as Nodes);\n } else if (\n (this.isNodeType(\"Expression\") && !this.isJSXElement()) ||\n (parentPath.isForStatement() && this.key === \"init\")\n ) {\n if (this.node) nodes.push(this.node);\n // @ts-expect-error todo(flow->ts): check that nodes is an array of statements\n return this.replaceExpressionWithStatements(nodes);\n } else if (Array.isArray(this.container)) {\n return _containerInsertBefore.call(this, nodes) as NodePaths<Nodes>;\n } else if (this.isStatementOrBlock()) {\n const node = this.node as t.Statement;\n const shouldInsertCurrentNode =\n node &&\n (!this.isExpressionStatement() ||\n (node as t.ExpressionStatement).expression != null);\n\n const [blockPath] = this.replaceWith(\n blockStatement(shouldInsertCurrentNode ? [node] : []),\n );\n return blockPath.unshiftContainer(\n \"body\",\n nodes as t.Statement[],\n ) as NodePaths<Nodes>;\n } else {\n throw new Error(\n \"We don't know what to do with this node type. \" +\n \"We were previously a Statement but we can't fit in here?\",\n );\n }\n}\n\nexport function _containerInsert<Nodes extends NodeList<t.Node>>(\n this: NodePath,\n from: number,\n Line truncated
@@ -0,0 +1,84 @@
'use strict';
const buffers = [
Buffer.from(
(new Array(900)).fill('').map((_, i) => `key${i}=value${i}`).join('&')
),
];
const calls = {
field: 0,
end: 0,
};
const moduleName = process.argv[2];
switch (moduleName) {
case 'busboy': {
const busboy = require('busboy');
console.time(moduleName);
const parser = busboy({
limits: {
fieldSizeLimit: Infinity,
},
headers: {
'content-type': 'application/x-www-form-urlencoded; charset=utf-8',
},
});
parser.on('field', (name, val, info) => {
++calls.field;
}).on('close', () => {
++calls.end;
console.timeEnd(moduleName);
});
for (const buf of buffers)
parser.write(buf);
parser.end();
break;
}
case 'formidable': {
const QuerystringParser =
require('formidable/src/parsers/Querystring.js');
console.time(moduleName);
const parser = new QuerystringParser();
parser.on('data', (obj) => {
++calls.field;
}).on('end', () => {
++calls.end;
console.timeEnd(moduleName);
});
for (const buf of buffers)
parser.write(buf);
parser.end();
break;
}
case 'formidable-streaming': {
const QuerystringParser =
require('formidable/src/parsers/StreamingQuerystring.js');
console.time(moduleName);
const parser = new QuerystringParser();
parser.on('data', (obj) => {
++calls.field;
}).on('end', () => {
++calls.end;
console.timeEnd(moduleName);
});
for (const buf of buffers)
parser.write(buf);
parser.end();
break;
}
default:
if (moduleName === undefined)
console.error('Missing parser module name');
else
console.error(`Invalid parser module name: ${moduleName}`);
process.exit(1);
}
@@ -0,0 +1,145 @@
/**
* @fileoverview Enforce style prop value is an object
* @author David Petersen
*/
'use strict';
const variableUtil = require('../util/variable');
const docsUrl = require('../util/docsUrl');
const isCreateElement = require('../util/isCreateElement');
const report = require('../util/report');
// ------------------------------------------------------------------------------
// Rule Definition
// ------------------------------------------------------------------------------
const messages = {
stylePropNotObject: 'Style prop value must be an object',
};
/** @type {import('eslint').Rule.RuleModule} */
module.exports = {
meta: {
docs: {
description: 'Enforce style prop value is an object',
category: 'Possible Errors',
recommended: false,
url: docsUrl('style-prop-object'),
},
messages,
schema: [
{
type: 'object',
properties: {
allow: {
type: 'array',
items: {
type: 'string',
},
additionalItems: false,
uniqueItems: true,
},
},
},
],
},
create(context) {
const allowed = new Set(((context.options.length > 0) && context.options[0].allow) || []);
/**
* @param {ASTNode} expression An Identifier node
* @returns {boolean}
*/
function isNonNullaryLiteral(expression) {
return expression.type === 'Literal' && expression.value !== null;
}
/**
* @param {object} node A Identifier node
*/
function checkIdentifiers(node) {
const variable = variableUtil.getVariableFromContext(context, node, node.name);
if (!variable || !variable.defs[0] || !variable.defs[0].node.init) {
return;
}
if (isNonNullaryLiteral(variable.defs[0].node.init)) {
report(context, messages.stylePropNotObject, 'stylePropNotObject', {
node,
});
}
}
return {
CallExpression(node) {
if (
isCreateElement(context, node)
&& node.arguments.length > 1
) {
if ('name' in node.arguments[0] && node.arguments[0].name) {
// store name of component
const componentName = node.arguments[0].name;
// allowed list contains the name
if (allowed.has(componentName)) {
// abort operation
return;
}
}
if (node.arguments[1].type === 'ObjectExpression') {
const style = node.arguments[1].properties.find((property) => (
'key' in property
&& property.key
&& 'name' in property.key
&& property.key.name === 'style'
&& !property.computed
));
if (style && 'value' in style) {
if (style.value.type === 'Identifier') {
checkIdentifiers(style.value);
} else if (isNonNullaryLiteral(style.value)) {
report(context, messages.stylePropNotObject, 'stylePropNotObject', {
node: style.value,
});
}
}
}
}
},
JSXAttribute(node) {
if (!node.value || node.name.name !== 'style') {
return;
}
// store parent element
const parentElement = node.parent;
// parent element is a JSXOpeningElement
if (parentElement && parentElement.type === 'JSXOpeningElement') {
// get the name of the JSX element
const name = parentElement.name && parentElement.name.name;
// allowed list contains the name
if (allowed.has(name)) {
// abort operation
return;
}
}
if (node.value.type !== 'JSXExpressionContainer' || isNonNullaryLiteral(node.value.expression)) {
report(context, messages.stylePropNotObject, 'stylePropNotObject', {
node,
});
} else if (node.value.expression.type === 'Identifier') {
checkIdentifiers(node.value.expression);
}
},
};
},
};
@@ -0,0 +1,8 @@
import type { TSESTree } from '@typescript-eslint/types';
import type { ScopeManager } from '../ScopeManager';
import type { Scope } from './Scope';
import { ScopeBase } from './ScopeBase';
import { ScopeType } from './ScopeType';
export declare class TSEnumScope extends ScopeBase<ScopeType.tsEnum, TSESTree.TSEnumDeclaration, Scope> {
constructor(scopeManager: ScopeManager, upperScope: TSEnumScope['upper'], block: TSEnumScope['block']);
}
@@ -0,0 +1,44 @@
'use strict';var _importType = require('../core/importType');var _importType2 = _interopRequireDefault(_importType);
var _moduleVisitor = require('eslint-module-utils/moduleVisitor');var _moduleVisitor2 = _interopRequireDefault(_moduleVisitor);
var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { 'default': obj };}
function reportIfMissing(context, node, allowed, name) {
if (allowed.indexOf(name) === -1 && (0, _importType2['default'])(name, context) === 'builtin') {
context.report(node, 'Do not import Node.js builtin module "' + String(name) + '"');
}
}
module.exports = {
meta: {
type: 'suggestion',
docs: {
category: 'Module systems',
description: 'Forbid Node.js builtin modules.',
url: (0, _docsUrl2['default'])('no-nodejs-modules') },
schema: [
{
type: 'object',
properties: {
allow: {
type: 'array',
uniqueItems: true,
items: {
type: 'string' } } },
additionalProperties: false }] },
create: function () {function create(context) {
var options = context.options[0] || {};
var allowed = options.allow || [];
return (0, _moduleVisitor2['default'])(function (source, node) {
reportIfMissing(context, node, allowed, source.value);
}, { commonjs: true });
}return create;}() };
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9uby1ub2RlanMtbW9kdWxlcy5qcyJdLCJuYW1lcyI6WyJyZXBvcnRJZk1pc3NpbmciLCJjb250ZXh0Iiwibm9kZSIsImFsbG93ZWQiLCJuYW1lIiwiaW5kZXhPZiIsInJlcG9ydCIsIm1vZHVsZSIsImV4cG9ydHMiLCJtZXRhIiwidHlwZSIsImRvY3MiLCJjYXRlZ29yeSIsImRlc2NyaXB0aW9uIiwidXJsIiwic2NoZW1hIiwicHJvcGVydGllcyIsImFsbG93IiwidW5pcXVlSXRlbXMiLCJpdGVtcyIsImFkZGl0aW9uYWxQcm9wZXJ0aWVzIiwiY3JlYXRlIiwib3B0aW9ucyIsInNvdXJjZSIsInZhbHVlIiwiY29tbW9uanMiXSwibWFwcGluZ3MiOiJhQUFBLGdEO0FBQ0Esa0U7QUFDQSxxQzs7QUFFQSxTQUFTQSxlQUFULENBQXlCQyxPQUF6QixFQUFrQ0MsSUFBbEMsRUFBd0NDLE9BQXhDLEVBQWlEQyxJQUFqRCxFQUF1RDtBQUNyRCxNQUFJRCxRQUFRRSxPQUFSLENBQWdCRCxJQUFoQixNQUEwQixDQUFDLENBQTNCLElBQWdDLDZCQUFXQSxJQUFYLEVBQWlCSCxPQUFqQixNQUE4QixTQUFsRSxFQUE2RTtBQUMzRUEsWUFBUUssTUFBUixDQUFlSixJQUFmLG9EQUE4REUsSUFBOUQ7QUFDRDtBQUNGOztBQUVERyxPQUFPQyxPQUFQLEdBQWlCO0FBQ2ZDLFFBQU07QUFDSkMsVUFBTSxZQURGO0FBRUpDLFVBQU07QUFDSkMsZ0JBQVUsZ0JBRE47QUFFSkMsbUJBQWEsaUNBRlQ7QUFHSkMsV0FBSywwQkFBUSxtQkFBUixDQUhELEVBRkY7O0FBT0pDLFlBQVE7QUFDTjtBQUNFTCxZQUFNLFFBRFI7QUFFRU0sa0JBQVk7QUFDVkMsZUFBTztBQUNMUCxnQkFBTSxPQUREO0FBRUxRLHVCQUFhLElBRlI7QUFHTEMsaUJBQU87QUFDTFQsa0JBQU0sUUFERCxFQUhGLEVBREcsRUFGZDs7OztBQVdFVSw0QkFBc0IsS0FYeEIsRUFETSxDQVBKLEVBRFM7Ozs7O0FBeUJmQyxRQXpCZSwrQkF5QlJwQixPQXpCUSxFQXlCQztBQUNkLFVBQU1xQixVQUFVckIsUUFBUXFCLE9BQVIsQ0FBZ0IsQ0FBaEIsS0FBc0IsRUFBdEM7QUFDQSxVQUFNbkIsVUFBVW1CLFFBQVFMLEtBQVIsSUFBaUIsRUFBakM7O0FBRUEsYUFBTyxnQ0FBYyxVQUFDTSxNQUFELEVBQVNyQixJQUFULEVBQWtCO0FBQ3JDRix3QkFBZ0JDLE9BQWhCLEVBQXlCQyxJQUF6QixFQUErQkMsT0FBL0IsRUFBd0NvQixPQUFPQyxLQUEvQztBQUNELE9BRk0sRUFFSixFQUFFQyxVQUFVLElBQVosRUFGSSxDQUFQO0FBR0QsS0FoQ2MsbUJBQWpCIiwiZmlsZSI6Im5vLW5vZGVqcy1tb2R1bGVzLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IGltcG9ydFR5cGUgZnJvbSAnLi4vY29yZS9pbXBvcnRUeXBlJztcbmltcG9ydCBtb2R1bGVWaXNpdG9yIGZyb20gJ2VzbGludC1tb2R1bGUtdXRpbHMvbW9kdWxlVmlzaXRvcic7XG5pbXBvcnQgZG9jc1VybCBmcm9tICcuLi9kb2NzVXJsJztcblxuZnVuY3Rpb24gcmVwb3J0SWZNaXNzaW5nKGNvbnRleHQsIG5vZGUsIGFsbG93ZWQsIG5hbWUpIHtcbiAgaWYgKGFsbG93ZWQuaW5kZXhPZihuYW1lKSA9PT0gLTEgJiYgaW1wb3J0VHlwZShuYW1lLCBjb250ZXh0KSA9PT0gJ2J1aWx0aW4nKSB7XG4gICAgY29udGV4dC5yZXBvcnQobm9kZSwgYERvIG5vdCBpbXBvcnQgTm9kZS5qcyBidWlsdGluIG1vZHVsZSBcIiR7bmFtZX1cImApO1xuICB9XG59XG5cbm1vZHVsZS5leHBvcnRzID0ge1xuICBtZXRhOiB7XG4gICAgdHlwZTogJ3N1Z2dlc3Rpb24nLFxuICAgIGRvY3M6IHtcbiAgICAgIGNhdGVnb3J5OiAnTW9kdWxlIHN5c3RlbXMnLFxuICAgICAgZGVzY3JpcHRpb246ICdGb3JiaWQgTm9kZS5qcyBidWlsdGluIG1vZHVsZXMuJyxcbiAgICAgIHVybDogZG9jc1VybCgnbm8tbm9kZWpzLW1vZHVsZXMnKSxcbiAgICB9LFxuICAgIHNjaGVtYTogW1xuICAgICAge1xuICAgICAgICB0eXBlOiAnb2JqZWN0JyxcbiAgICAgICAgcHJvcGVydGllczoge1xuICAgICAgICAgIGFsbG93OiB7XG4gICAgICAgICAgICB0eXBlOiAnYXJyYXknLFxuICAgICAgICAgICAgdW5pcXVlSXRlbXM6IHRydWUsXG4gICAgICAgICAgICBpdGVtczoge1xuICAgICAgICAgICAgICB0eXBlOiAnc3RyaW5nJyxcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgfSxcbiAgICAgICAgfSxcbiAgICAgICAgYWRkaXRpb25hbFByb3BlcnRpZXM6IGZhbHNlLFxuICAgICAgfSxcbiAgICBdLFxuICB9LFxuXG4gIGNyZWF0ZShjb250ZXh0KSB7XG4gICAgY29uc3Qgb3B0aW9ucyA9IGNvbnRleHQub3B0aW9uc1swXSB8fCB7fTtcbiAgICBjb25zdCBhbGxvd2VkID0gb3B0aW9ucy5hbGxvdyB8fCBbXTtcblxuICAgIHJldHVybiBtb2R1bGVWaXNpdG9yKChzb3VyY2UsIG5vZGUpID0+IHtcbiAgICAgIHJlcG9ydElmTWlzc2luZyhjb250ZXh0LCBub2RlLCBhbGxvd2VkLCBzb3VyY2UudmFsdWUpO1xuICAgIH0sIHsgY29tbW9uanM6IHRydWUgfSk7XG4gIH0sXG59O1xuIl19
@@ -0,0 +1,3 @@
#!/usr/bin/env node
export {};
//# sourceMappingURL=bin.d.mts.map
@@ -0,0 +1,12 @@
/**
* @fileoverview exports for config helpers
* @author Nicholas C. Zakas
*/
"use strict";
const { defineConfig, globalIgnores } = require("@eslint/config-helpers");
module.exports = {
defineConfig,
globalIgnores,
};
@@ -0,0 +1,15 @@
module.exports = {
"deselectedItem": (args)=>`${args.item} ej markerat.`,
"longPressToSelect": `Tryck l\xe4nge n\xe4r du vill \xf6ppna v\xe4ljarl\xe4ge.`,
"select": `Markera`,
"selectedAll": `Alla markerade objekt.`,
"selectedCount": (args, formatter)=>`${formatter.plural(args.count, {
"=0": `Inga markerade objekt`,
one: ()=>`${formatter.number(args.count)} markerat objekt`,
other: ()=>`${formatter.number(args.count)} markerade objekt`
})}.`,
"selectedItem": (args)=>`${args.item} markerat.`
};
//# sourceMappingURL=sv-SE.main.js.map
@@ -0,0 +1,37 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var listRole = {
abstract: false,
accessibleNameRequired: false,
baseConcepts: [],
childrenPresentational: false,
nameFrom: ['author'],
prohibitedProps: [],
props: {},
relatedConcepts: [{
concept: {
name: 'menu'
},
module: 'HTML'
}, {
concept: {
name: 'ol'
},
module: 'HTML'
}, {
concept: {
name: 'ul'
},
module: 'HTML'
}],
requireContextRole: [],
requiredContextRole: [],
requiredOwnedElements: [['listitem']],
requiredProps: {},
superClass: [['roletype', 'structure', 'section']]
};
var _default = exports.default = listRole;
@@ -0,0 +1,39 @@
/**
* @author Toru Nagashima <https://github.com/mysticatea>
* See LICENSE file in root directory for full license.
*/
"use strict"
const {
definePrototypeMethodHandler,
} = require("../util/define-prototype-method-handler")
module.exports = {
meta: {
docs: {
description: "disallow the `Array.prototype.fill` method.",
category: "ES2015",
recommended: false,
url: "http://eslint-community.github.io/eslint-plugin-es-x/rules/no-array-prototype-fill.html",
},
fixable: null,
messages: {
forbidden: "ES2015 '{{name}}' method is forbidden.",
},
schema: [
{
type: "object",
properties: {
aggressive: { type: "boolean" },
},
additionalProperties: false,
},
],
type: "problem",
},
create(context) {
return definePrototypeMethodHandler(context, {
Array: ["fill"],
})
},
}
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=DynamicValueBuilder.js.map
@@ -0,0 +1,8 @@
import createDebug from 'debug'
export const debug = createDebug('vite-tsconfig-paths')
export const debugResolve = createDebug('vite-tsconfig-paths:resolve')
if (process.env.TEST) {
createDebug.log = console.log.bind(console)
}
@@ -0,0 +1,15 @@
module.exports = {
"deselectedItem": (args)=>`${args.item} non s\xe9lectionn\xe9.`,
"longPressToSelect": `Appuyez de mani\xe8re prolong\xe9e pour passer en mode de s\xe9lection.`,
"select": `S\xe9lectionner`,
"selectedAll": `Tous les \xe9l\xe9ments s\xe9lectionn\xe9s.`,
"selectedCount": (args, formatter)=>`${formatter.plural(args.count, {
"=0": `Aucun \xe9l\xe9ment s\xe9lectionn\xe9`,
one: ()=>`${formatter.number(args.count)} \xe9l\xe9ment s\xe9lectionn\xe9`,
other: ()=>`${formatter.number(args.count)} \xe9l\xe9ments s\xe9lectionn\xe9s`
})}.`,
"selectedItem": (args)=>`${args.item} s\xe9lectionn\xe9.`
};
//# sourceMappingURL=fr-FR.main.js.map
@@ -0,0 +1,20 @@
/*
* Copyright 2020 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
import React from 'react';
// During SSR, React emits a warning when calling useLayoutEffect.
// Since neither useLayoutEffect nor useEffect run on the server,
// we can suppress this by replace it with a noop on the server.
export const useLayoutEffect: typeof React.useLayoutEffect = typeof document !== 'undefined'
? React.useLayoutEffect
: () => {};
@@ -0,0 +1,25 @@
# binary-extensions
> List of binary file extensions
The list is just a [JSON file](binary-extensions.json) and can be used anywhere.
## Install
```sh
npm install binary-extensions
```
## Usage
```js
const binaryExtensions = require('binary-extensions');
console.log(binaryExtensions);
//=> ['3ds', '3g2', …]
```
## Related
- [is-binary-path](https://github.com/sindresorhus/is-binary-path) - Check if a filepath is a binary file
- [text-extensions](https://github.com/sindresorhus/text-extensions) - List of text file extensions
@@ -0,0 +1,157 @@
/**
* Copyright (c) 2019 The xterm.js authors. All rights reserved.
* @license MIT
*/
export const DEFAULT_COLOR = 0;
export const DEFAULT_ATTR = (0 << 18) | (DEFAULT_COLOR << 9) | (256 << 0);
export const DEFAULT_EXT = 0;
export const CHAR_DATA_ATTR_INDEX = 0;
export const CHAR_DATA_CHAR_INDEX = 1;
export const CHAR_DATA_WIDTH_INDEX = 2;
export const CHAR_DATA_CODE_INDEX = 3;
/**
* Null cell - a real empty cell (containing nothing).
* Note that code should always be 0 for a null cell as
* several test condition of the buffer line rely on this.
*/
export const NULL_CELL_CHAR = '';
export const NULL_CELL_WIDTH = 1;
export const NULL_CELL_CODE = 0;
/**
* Whitespace cell.
* This is meant as a replacement for empty cells when needed
* during rendering lines to preserve correct aligment.
*/
export const WHITESPACE_CELL_CHAR = ' ';
export const WHITESPACE_CELL_WIDTH = 1;
export const WHITESPACE_CELL_CODE = 32;
/**
* Bitmasks for accessing data in `content`.
*/
export const enum Content {
/**
* bit 1..21 codepoint, max allowed in UTF32 is 0x10FFFF (21 bits taken)
* read: `codepoint = content & Content.codepointMask;`
* write: `content |= codepoint & Content.codepointMask;`
* shortcut if precondition `codepoint <= 0x10FFFF` is met:
* `content |= codepoint;`
*/
CODEPOINT_MASK = 0x1FFFFF,
/**
* bit 22 flag indication whether a cell contains combined content
* read: `isCombined = content & Content.isCombined;`
* set: `content |= Content.isCombined;`
* clear: `content &= ~Content.isCombined;`
*/
IS_COMBINED_MASK = 0x200000, // 1 << 21
/**
* bit 1..22 mask to check whether a cell contains any string data
* we need to check for codepoint and isCombined bits to see
* whether a cell contains anything
* read: `isEmpty = !(content & Content.hasContent)`
*/
HAS_CONTENT_MASK = 0x3FFFFF,
/**
* bit 23..24 wcwidth value of cell, takes 2 bits (ranges from 0..2)
* read: `width = (content & Content.widthMask) >> Content.widthShift;`
* `hasWidth = content & Content.widthMask;`
* as long as wcwidth is highest value in `content`:
* `width = content >> Content.widthShift;`
* write: `content |= (width << Content.widthShift) & Content.widthMask;`
* shortcut if precondition `0 <= width <= 3` is met:
* `content |= width << Content.widthShift;`
*/
WIDTH_MASK = 0xC00000, // 3 << 22
WIDTH_SHIFT = 22
}
export const enum Attributes {
/**
* bit 1..8 blue in RGB, color in P256 and P16
*/
BLUE_MASK = 0xFF,
BLUE_SHIFT = 0,
PCOLOR_MASK = 0xFF,
PCOLOR_SHIFT = 0,
/**
* bit 9..16 green in RGB
*/
GREEN_MASK = 0xFF00,
GREEN_SHIFT = 8,
/**
* bit 17..24 red in RGB
*/
RED_MASK = 0xFF0000,
RED_SHIFT = 16,
/**
* bit 25..26 color mode: DEFAULT (0) | P16 (1) | P256 (2) | RGB (3)
*/
CM_MASK = 0x3000000,
CM_DEFAULT = 0,
CM_P16 = 0x1000000,
CM_P256 = 0x2000000,
CM_RGB = 0x3000000,
/**
* bit 1..24 RGB room
*/
RGB_MASK = 0xFFFFFF
}
export const enum FgFlags {
/**
* bit 27..32
*/
INVERSE = 0x4000000,
BOLD = 0x8000000,
UNDERLINE = 0x10000000,
BLINK = 0x20000000,
INVISIBLE = 0x40000000,
STRIKETHROUGH = 0x80000000,
}
export const enum BgFlags {
/**
* bit 27..32 (upper 2 unused)
*/
ITALIC = 0x4000000,
DIM = 0x8000000,
HAS_EXTENDED = 0x10000000,
PROTECTED = 0x20000000,
OVERLINE = 0x40000000
}
export const enum ExtFlags {
/**
* bit 27..29
*/
UNDERLINE_STYLE = 0x1C000000,
/**
* bit 30..32
*
* An optional variant for the glyph, this can be used for example to offset underlines by a
* number of pixels to create a perfect pattern.
*/
VARIANT_OFFSET = 0xE0000000
}
export const enum UnderlineStyle {
NONE = 0,
SINGLE = 1,
DOUBLE = 2,
CURLY = 3,
DOTTED = 4,
DASHED = 5
}
@@ -0,0 +1,20 @@
export { b as assert, c as createExpect, g as expect, i as inject, s as should, v as vi, d as vitest } from './chunks/vi.CyIUVSoU.js';
export { b as bench } from './chunks/benchmark.B3N2zMcH.js';
export { V as EvaluatedModules } from './chunks/evaluatedModules.Dg1zASAC.js';
export { a as assertType } from './chunks/index.CGezRSGU.js';
export { expectTypeOf } from 'expect-type';
export { afterAll, afterEach, beforeAll, beforeEach, describe, it, onTestFailed, onTestFinished, suite, test } from '@vitest/runner';
export { chai } from '@vitest/expect';
import '@vitest/runner/utils';
import './chunks/utils.DvEY5TfP.js';
import '@vitest/utils/timers';
import '@vitest/snapshot';
import '@vitest/utils/error';
import '@vitest/utils/helpers';
import '@vitest/spy';
import '@vitest/utils/offset';
import '@vitest/utils/source-map';
import './chunks/_commonjsHelpers.BFTU3MAI.js';
import './chunks/date.Bq6ZW5rf.js';
import 'pathe';
import 'vite/module-runner';
@@ -0,0 +1,799 @@
export declare const FaceRoamRequest: {
comm: import("napcat-protobuf").MessageProtoFieldType<() => {
imPlat: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
osVersion: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, true, false>;
qVersion: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, true, false>;
}, true, false>;
selfUin: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
subCmd: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
field6: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
};
export declare const PlatInfo: {
imPlat: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
osVersion: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, true, false>;
qVersion: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, true, false>;
};
export declare const FaceRoamResponse: {
retCode: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
errMsg: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
subCmd: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
userInfo: import("napcat-protobuf").MessageProtoFieldType<() => {
fileName: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, true>;
deleteFile: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, true>;
bid: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
maxRoamSize: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
emojiType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, true>;
}, false, false>;
};
export declare const FaceRoamUserInfo: {
fileName: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, true>;
deleteFile: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, true>;
bid: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
maxRoamSize: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
emojiType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, true>;
};
export declare const SendMessageRequest: {
state: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
sizeCache: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
unknownFields: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
routingHead: import("napcat-protobuf").MessageProtoFieldType<() => {
c2c: import("napcat-protobuf").MessageProtoFieldType<() => {
uin: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, true, false>;
uid: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, true, false>;
field3: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, true, false>;
sig: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, true, false>;
receiverUin: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, true, false>;
receiverUid: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, true, false>;
}, true, false>;
grp: import("napcat-protobuf").MessageProtoFieldType<() => {
groupCode: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, true, false>;
}, true, false>;
grpTmp: import("napcat-protobuf").MessageProtoFieldType<() => {
groupUin: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, true, false>;
toUin: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, true, false>;
}, true, false>;
wpaTmp: import("napcat-protobuf").MessageProtoFieldType<() => {
toUin: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT64, false, false>;
sig: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
}, true, false>;
trans0X211: import("napcat-protobuf").MessageProtoFieldType<() => {
toUin: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT64, true, false>;
ccCmd: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, true, false>;
uid: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, true, false>;
}, true, false>;
}, false, false>;
contentHead: import("napcat-protobuf").MessageProtoFieldType<() => {
type: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
subType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, true, false>;
c2cCmd: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, true, false>;
ranDom: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, true, false>;
sequence: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, true, false>;
timeStamp: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, true, false>;
pkgNum: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT64, true, false>;
pkgIndex: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, true, false>;
divSeq: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, true, false>;
autoReply: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
ntMsgSeq: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, true, false>;
newId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT64, true, false>;
forward: import("napcat-protobuf").MessageProtoFieldType<() => {
field1: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, true, false>;
field2: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, true, false>;
field3: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, true, false>;
unknownBase64: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, true, false>;
avatar: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, true, false>;
}, true, false>;
}, false, false>;
messageBody: import("napcat-protobuf").MessageProtoFieldType<() => {
richText: import("napcat-protobuf").MessageProtoFieldType<() => {
attr: import("napcat-protobuf").MessageProtoFieldType<() => {
codePage: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
time: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
random: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
color: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
size: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
effect: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
charSet: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
pitchAndFamily: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
fontName: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
reserveData: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
}, true, false>;
elems: import("napcat-protobuf").MessageProtoFieldType<() => {
text: import("napcat-protobuf").MessageProtoFieldType<() => {
str: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, true, false>;
lint: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, true, false>;
attr6Buf: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, true, false>;
attr7Buf: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, true, false>;
buf: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, true, false>;
pbReserve: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, true, false>;
}, true, false>;
face: import("napcat-protobuf").MessageProtoFieldType<() => {
index: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, true, false>;
old: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, true, false>;
buf: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, true, false>;
}, true, false>;
onlineImage: import("napcat-protobuf").MessageProtoFieldType<() => {
guid: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
filePath: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
oldVerSendFile: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
}, true, false>;
notOnlineImage: import("napcat-protobuf").MessageProtoFieldType<() => {
filePath: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
fileLen: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
downloadPath: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
oldVerSendFile: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
imgType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
previewsImage: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
picMd5: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
picHeight: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
picWidth: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
resId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
flag: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
thumbUrl: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
original: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
bigUrl: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
origUrl: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
bizType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
result: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
index: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
opFaceBuf: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
oldPicMd5: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BOOL, false, false>;
thumbWidth: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
thumbHeight: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
fileId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
showLen: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
downloadLen: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
x400Url: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
x400Width: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
x400Height: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
pbRes: import("napcat-protobuf").MessageProtoFieldType<() => {
subType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
field3: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
field4: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
summary: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
field10: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
field20: import("napcat-protobuf").MessageProtoFieldType<() => {
field1: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
field2: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
field3: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
field4: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
field5: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
field7: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
}, false, false>;
url: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
md5Str: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
}, false, false>;
}, true, false>;
transElem: import("napcat-protobuf").MessageProtoFieldType<() => {
elemType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
elemValue: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
}, true, false>;
marketFace: import("napcat-protobuf").MessageProtoFieldType<() => {
faceName: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
itemType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
faceInfo: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
faceId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
tabId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
subType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
key: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
param: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
mediaType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
imageWidth: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
imageHeight: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
mobileparam: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
pbReserve: import("napcat-protobuf").MessageProtoFieldType<() => {
field8: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
}, false, false>;
}, true, false>;
customFace: import("napcat-protobuf").MessageProtoFieldType<() => {
guid: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
filePath: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
shortcut: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
buffer: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
flag: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
oldData: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, true, false>;
fileId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
serverIp: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, true, false>;
serverPort: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, true, false>;
fileType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
signature: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
useful: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
md5: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
thumbUrl: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
bigUrl: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
origUrl: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
bizType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
repeatIndex: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
repeatImage: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
imageType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
index: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
width: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
height: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
source: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
size: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
origin: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
thumbWidth: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, true, false>;
thumbHeight: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, true, false>;
showLen: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
downloadLen: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
x400Url: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, true, false>;
x400Width: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
x400Height: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
pbRes: import("napcat-protobuf").MessageProtoFieldType<() => {
subType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
summary: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
}, true, false>;
}, true, false>;
elemFlags2: import("napcat-protobuf").MessageProtoFieldType<() => {
colorTextId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
msgId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT64, false, false>;
whisperSessionId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
pttChangeBit: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
vipStatus: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
compatibleId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
insts: import("napcat-protobuf").MessageProtoFieldType<() => {
appId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
instId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
}, false, true>;
msgRptCnt: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
srcInst: import("napcat-protobuf").MessageProtoFieldType<() => {
appId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
instId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
}, false, false>;
longtitude: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
latitude: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
customFont: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
pcSupportDef: import("napcat-protobuf").MessageProtoFieldType<() => {
pcPtlBegin: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
pcPtlEnd: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
macPtlBegin: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
macPtlEnd: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
ptlsSupport: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, true>;
ptlsNotSupport: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, true>;
}, false, false>;
crmFlags: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, true, false>;
}, true, false>;
richMsg: import("napcat-protobuf").MessageProtoFieldType<() => {
template1: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, true, false>;
serviceId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, true, false>;
msgResId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, true, false>;
rand: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, true, false>;
seq: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, true, false>;
}, true, false>;
groupFile: import("napcat-protobuf").MessageProtoFieldType<() => {
filename: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
fileSize: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT64, false, false>;
fileId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
batchId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
fileKey: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
mark: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
sequence: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT64, false, false>;
batchItemId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
feedMsgTime: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
pbReserve: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
}, true, false>;
extraInfo: import("napcat-protobuf").MessageProtoFieldType<() => {
nick: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
groupCard: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
level: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
flags: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
groupMask: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
msgTailId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
senderTitle: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
apnsTips: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
uin: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT64, false, false>;
msgStateFlag: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
apnsSoundType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
newGroupFlag: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
}, true, false>;
videoFile: import("napcat-protobuf").MessageProtoFieldType<() => {
fileUuid: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
fileMd5: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
fileName: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
fileFormat: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
fileTime: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
fileSize: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
thumbWidth: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
thumbHeight: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
thumbFileMd5: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
source: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
thumbFileSize: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
busiType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
fromChatType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
toChatType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
boolSupportProgressive: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BOOL, false, false>;
fileWidth: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
fileHeight: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
subBusiType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
videoAttr: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
bytesThumbFileUrls: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, true>;
bytesVideoFileUrls: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, true>;
thumbDownloadFlag: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
videoDownloadFlag: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
pbReserve: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
}, true, false>;
anonymousGroupMessage: import("napcat-protobuf").MessageProtoFieldType<() => {
flags: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
anonId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
anonNick: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
headPortrait: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
expireTime: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
bubbleId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
rankColor: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
}, true, false>;
customElem: import("napcat-protobuf").MessageProtoFieldType<() => {
desc: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
data: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
enumType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
ext: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
sound: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
}, true, false>;
generalFlags: import("napcat-protobuf").MessageProtoFieldType<() => {
bubbleDiyTextId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
groupFlagNew: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
uin: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT64, false, false>;
rpId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
prpFold: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
longTextFlag: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
longTextResId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, true, false>;
groupType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
toUinFlag: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
glamourLevel: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
memberLevel: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
groupRankSeq: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT64, false, false>;
olympicTorch: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
babyqGuideMsgCookie: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
uin32ExpertFlag: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
bubbleSubId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
pendantId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT64, false, false>;
rpIndex: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
pbReserve: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
}, true, false>;
srcMsg: import("napcat-protobuf").MessageProtoFieldType<() => {
origSeqs: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, true>;
senderUin: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT64, false, false>;
time: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, true, false>;
flag: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, true, false>;
elems: import("napcat-protobuf").MessageProtoFieldType<() => {
text: import("napcat-protobuf").MessageProtoFieldType<() => {
str: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, true, false>;
lint: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, true, false>;
attr6Buf: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, true, false>;
attr7Buf: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, true, false>;
buf: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, true, false>;
pbReserve: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, true, false>;
}, true, false>;
face: import("napcat-protobuf").MessageProtoFieldType<() => {
index: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, true, false>;
old: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, true, false>;
buf: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, true, false>;
}, true, false>;
onlineImage: import("napcat-protobuf").MessageProtoFieldType<() => {
guid: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
filePath: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
oldVerSendFile: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
}, true, false>;
notOnlineImage: import("napcat-protobuf").MessageProtoFieldType<() => {
filePath: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
fileLen: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
downloadPath: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
oldVerSendFile: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
imgType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
previewsImage: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
picMd5: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
picHeight: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
picWidth: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
resId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
flag: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
thumbUrl: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
original: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
bigUrl: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
origUrl: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
bizType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
result: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
index: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
opFaceBuf: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
oldPicMd5: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BOOL, false, false>;
thumbWidth: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
thumbHeight: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
fileId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
showLen: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
downloadLen: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
x400Url: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
x400Width: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
x400Height: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
pbRes: import("napcat-protobuf").MessageProtoFieldType<() => {
subType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
field3: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
field4: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
summary: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
field10: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
field20: import("napcat-protobuf").MessageProtoFieldType<() => {
field1: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
field2: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
field3: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
field4: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
field5: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
field7: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
}, false, false>;
url: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
md5Str: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
}, false, false>;
}, true, false>;
transElem: import("napcat-protobuf").MessageProtoFieldType<() => {
elemType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
elemValue: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
}, true, false>;
marketFace: import("napcat-protobuf").MessageProtoFieldType<() => {
faceName: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
itemType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
faceInfo: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
faceId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
tabId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
subType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
key: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
param: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
mediaType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
imageWidth: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
imageHeight: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
mobileparam: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
pbReserve: import("napcat-protobuf").MessageProtoFieldType<() => {
field8: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
}, false, false>;
}, true, false>;
customFace: import("napcat-protobuf").MessageProtoFieldType<() => {
guid: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
filePath: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
shortcut: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
buffer: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
flag: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
oldData: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, true, false>;
fileId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
serverIp: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, true, false>;
serverPort: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, true, false>;
fileType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
signature: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
useful: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
md5: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
thumbUrl: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
bigUrl: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
origUrl: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
bizType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
repeatIndex: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
repeatImage: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
imageType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
index: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
width: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
height: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
source: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
size: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
origin: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
thumbWidth: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, true, false>;
thumbHeight: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, true, false>;
showLen: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
downloadLen: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
x400Url: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, true, false>;
x400Width: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
x400Height: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
pbRes: import("napcat-protobuf").MessageProtoFieldType<() => {
subType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
summary: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
}, true, false>;
}, true, false>;
elemFlags2: import("napcat-protobuf").MessageProtoFieldType<() => {
colorTextId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
msgId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT64, false, false>;
whisperSessionId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
pttChangeBit: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
vipStatus: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
compatibleId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
insts: import("napcat-protobuf").MessageProtoFieldType<() => {
appId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
instId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
}, false, true>;
msgRptCnt: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
srcInst: import("napcat-protobuf").MessageProtoFieldType<() => {
appId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
instId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
}, false, false>;
longtitude: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
latitude: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
customFont: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
pcSupportDef: import("napcat-protobuf").MessageProtoFieldType<() => {
pcPtlBegin: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
pcPtlEnd: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
macPtlBegin: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
macPtlEnd: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
ptlsSupport: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, true>;
ptlsNotSupport: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, true>;
}, false, false>;
crmFlags: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, true, false>;
}, true, false>;
richMsg: import("napcat-protobuf").MessageProtoFieldType<() => {
template1: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, true, false>;
serviceId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, true, false>;
msgResId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, true, false>;
rand: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, true, false>;
seq: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, true, false>;
}, true, false>;
groupFile: import("napcat-protobuf").MessageProtoFieldType<() => {
filename: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
fileSize: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT64, false, false>;
fileId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
batchId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
fileKey: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
mark: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
sequence: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT64, false, false>;
batchItemId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
feedMsgTime: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
pbReserve: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
}, true, false>;
extraInfo: import("napcat-protobuf").MessageProtoFieldType<() => {
nick: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
groupCard: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
level: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
flags: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
groupMask: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
msgTailId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
senderTitle: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
apnsTips: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
uin: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT64, false, false>;
msgStateFlag: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
apnsSoundType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
newGroupFlag: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
}, true, false>;
videoFile: import("napcat-protobuf").MessageProtoFieldType<() => {
fileUuid: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
fileMd5: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
fileName: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
fileFormat: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
fileTime: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
fileSize: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
thumbWidth: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
thumbHeight: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
thumbFileMd5: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
source: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
thumbFileSize: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
busiType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
fromChatType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
toChatType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
boolSupportProgressive: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BOOL, false, false>;
fileWidth: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
fileHeight: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
subBusiType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
videoAttr: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
bytesThumbFileUrls: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, true>;
bytesVideoFileUrls: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, true>;
thumbDownloadFlag: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
videoDownloadFlag: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
pbReserve: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
}, true, false>;
anonymousGroupMessage: import("napcat-protobuf").MessageProtoFieldType<() => {
flags: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
anonId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
anonNick: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
headPortrait: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
expireTime: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
bubbleId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
rankColor: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
}, true, false>;
customElem: import("napcat-protobuf").MessageProtoFieldType<() => {
desc: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
data: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
enumType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
ext: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
sound: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
}, true, false>;
generalFlags: import("napcat-protobuf").MessageProtoFieldType<() => {
bubbleDiyTextId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
groupFlagNew: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
uin: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT64, false, false>;
rpId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
prpFold: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
longTextFlag: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
longTextResId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, true, false>;
groupType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
toUinFlag: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
glamourLevel: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
memberLevel: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
groupRankSeq: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT64, false, false>;
olympicTorch: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
babyqGuideMsgCookie: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
uin32ExpertFlag: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
bubbleSubId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
pendantId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT64, false, false>;
rpIndex: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
pbReserve: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
}, true, false>;
srcMsg: import("napcat-protobuf").MessageProtoFieldType</*elided*/ any, true, false>;
lightAppElem: import("napcat-protobuf").MessageProtoFieldType<() => {
data: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
msgResid: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, true, false>;
}, true, false>;
commonElem: import("napcat-protobuf").MessageProtoFieldType<() => {
serviceType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
pbElem: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
businessType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
}, true, false>;
}, false, true>;
type: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, true, false>;
richMsg: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, true, false>;
pbReserve: import("napcat-protobuf").MessageProtoFieldType<() => {
messageId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT64, false, false>;
senderUid: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, true, false>;
receiverUid: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, true, false>;
friendSeq: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, true, false>;
}, true, false>;
sourceMsg: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, true, false>;
toUin: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT64, true, false>;
troopName: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, true, false>;
}, true, false>;
lightAppElem: import("napcat-protobuf").MessageProtoFieldType<() => {
data: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
msgResid: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, true, false>;
}, true, false>;
commonElem: import("napcat-protobuf").MessageProtoFieldType<() => {
serviceType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
pbElem: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
businessType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
}, true, false>;
}, false, true>;
notOnlineFile: import("napcat-protobuf").MessageProtoFieldType<() => {
fileType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, true, false>;
sig: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, true, false>;
fileUuid: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, true, false>;
fileMd5: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, true, false>;
fileName: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, true, false>;
fileSize: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT64, true, false>;
note: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, true, false>;
reserved: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, true, false>;
subcmd: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, true, false>;
microCloud: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, true, false>;
bytesFileUrls: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, true>;
downloadFlag: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, true, false>;
dangerEvel: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, true, false>;
lifeTime: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, true, false>;
uploadTime: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, true, false>;
absFileType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, true, false>;
clientType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, true, false>;
expireTime: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, true, false>;
pbReserve: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, true, false>;
fileHash: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, true, false>;
}, true, false>;
ptt: import("napcat-protobuf").MessageProtoFieldType<() => {
fileType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
srcUin: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT64, false, false>;
fileUuid: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
fileMd5: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
fileName: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
fileSize: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
reserve: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
fileId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
serverIp: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
serverPort: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
boolValid: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BOOL, false, false>;
signature: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
shortcut: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
fileKey: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
magicPttIndex: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
voiceSwitch: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
pttUrl: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
groupFileKey: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
time: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
downPara: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
format: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
pbReserve: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
bytesPttUrls: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, true>;
downloadFlag: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
}, true, false>;
}, true, false>;
msgContent: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, true, false>;
msgEncryptContent: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, true, false>;
}, false, false>;
msgSeq: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
msgRand: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
syncCookie: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
msgVia: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
dataStatist: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
messageControl: import("napcat-protobuf").MessageProtoFieldType<() => {
msgFlag: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
}, false, false>;
multiSendSeq: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
};
export declare const SendMessageResponse: {
result: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
errMsg: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, true, false>;
timestamp1: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
field10: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
groupSequence: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, true, false>;
timestamp2: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
privateSequence: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
};
export declare const SetStatus: {
status: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
extStatus: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
batteryStatus: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
customExt: import("napcat-protobuf").MessageProtoFieldType<() => {
faceId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
text: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, true, false>;
field3: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
}, true, false>;
};
export declare const SetStatusCustomExt: {
faceId: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
text: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, true, false>;
field3: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
};
export declare const SetStatusResponse: {
message: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
};
export declare const HttpConn: {
field1: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
field2: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
field3: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
field4: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
tgt: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
field6: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
serviceTypes: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, true>;
field9: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
field10: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
field11: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
ver: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
};
export declare const HttpConn0x6ff_501: {
httpConn: import("napcat-protobuf").MessageProtoFieldType<() => {
field1: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
field2: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
field3: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
field4: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
tgt: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
field6: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
serviceTypes: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, true>;
field9: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
field10: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
field11: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.INT32, false, false>;
ver: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.STRING, false, false>;
}, false, false>;
};
export declare const HttpConn0x6ff_501Response: {
httpConn: import("napcat-protobuf").MessageProtoFieldType<() => {
sigSession: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
sessionKey: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
serverInfos: import("napcat-protobuf").MessageProtoFieldType<() => {
serviceType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
serverAddrs: import("napcat-protobuf").MessageProtoFieldType<() => {
type: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
ip: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.FIXED32, false, false>;
port: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
area: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
}, false, true>;
}, false, true>;
}, false, false>;
};
export declare const HttpConnResponse: {
sigSession: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
sessionKey: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.BYTES, false, false>;
serverInfos: import("napcat-protobuf").MessageProtoFieldType<() => {
serviceType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
serverAddrs: import("napcat-protobuf").MessageProtoFieldType<() => {
type: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
ip: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.FIXED32, false, false>;
port: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
area: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
}, false, true>;
}, false, true>;
};
export declare const ServerAddr: {
type: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
ip: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.FIXED32, false, false>;
port: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
area: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
};
export declare const ServerInfo: {
serviceType: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
serverAddrs: import("napcat-protobuf").MessageProtoFieldType<() => {
type: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
ip: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.FIXED32, false, false>;
port: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
area: import("napcat-protobuf").ScalarProtoFieldType<ScalarType.UINT32, false, false>;
}, false, true>;
};
@@ -0,0 +1,94 @@
/**
* @author Toru Nagashima
* See LICENSE file in root directory for full license.
*/
"use strict"
const path = require("path")
const getAllowModules = require("./get-allow-modules")
const getConvertPath = require("./get-convert-path")
const getNpmignore = require("./get-npmignore")
const { getPackageJson } = require("./get-package-json")
/**
* Checks whether or not each requirement target is published via package.json.
*
* It reads package.json and checks the target exists in `dependencies`.
*
* @param {import('eslint').Rule.RuleContext} context - A context to report.
* @param {string} filePath - The current file path.
* @param {import('./import-target.js')[]} targets - A list of target information to check.
* @param {{ignorePrivate: boolean}} options - Configuration options for checking for published files.
* @returns {void}
*/
exports.checkPublish = function checkPublish(
context,
filePath,
targets,
options
) {
const packageJson = getPackageJson(filePath)
if (typeof packageJson?.filePath !== "string") {
return
}
// Flag to ignore checking imported dependencies in private packages.
// For projects that need to be deployed to a server checking for imported dependencies may still be desireable
// while making it a private package.
// More information: https://docs.npmjs.com/cli/v8/configuring-npm/package-json#private
if (options.ignorePrivate && packageJson.private === true) {
return
}
const allowed = new Set(getAllowModules(context))
const convertPath = getConvertPath(context)
const basedir = path.dirname(packageJson.filePath)
/** @type {(fullPath: string) => string} */
const toRelative = fullPath => {
const retv = path.relative(basedir, fullPath).replace(/\\/gu, "/")
return convertPath(retv)
}
const npmignore = getNpmignore(filePath)
const devDependencies = new Set(
Object.keys(packageJson.devDependencies ?? {})
)
const dependencies = new Set([
...Object.keys(packageJson?.dependencies ?? {}),
...Object.keys(packageJson?.peerDependencies ?? {}),
...Object.keys(packageJson?.optionalDependencies ?? {}),
])
if (!npmignore.match(toRelative(filePath))) {
// This file is published, so this cannot import private files.
for (const target of targets) {
const isPrivateFile = () => {
if (target.moduleName != null) {
return false
}
const relativeTargetPath = toRelative(target.filePath ?? "")
return (
relativeTargetPath !== "" &&
npmignore.match(relativeTargetPath)
)
}
const isDevPackage = () =>
target.moduleName != null &&
devDependencies.has(target.moduleName) &&
!dependencies.has(target.moduleName) &&
!allowed.has(target.moduleName)
if (isPrivateFile() || isDevPackage()) {
context.report({
node: target.node,
messageId: "notPublished",
data: { name: target.moduleName || target.name },
})
}
}
}
}
exports.messages = {
notPublished: '"{{name}}" is not published.',
}
@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2018 Copyright 2018 Klaus Hartl, Fagner Brack, GitHub Contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
@@ -0,0 +1,336 @@
/**
* @fileoverview JavaScript Language Object
* @author Nicholas C. Zakas
*/
"use strict";
//-----------------------------------------------------------------------------
// Requirements
//-----------------------------------------------------------------------------
const { SourceCode } = require("./source-code");
const createDebug = require("debug");
const astUtils = require("../../shared/ast-utils");
const espree = require("espree");
const eslintScope = require("eslint-scope");
const evk = require("eslint-visitor-keys");
const { validateLanguageOptions } = require("./validate-language-options");
const { LATEST_ECMA_VERSION } = require("../../../conf/ecma-version");
//-----------------------------------------------------------------------------
// Type Definitions
//-----------------------------------------------------------------------------
/** @typedef {import("@eslint/core").File} File */
/** @typedef {import("@eslint/core").Language} Language */
/** @typedef {import("@eslint/core").OkParseResult} OkParseResult */
/** @typedef {import("../../types").Linter.LanguageOptions} JSLanguageOptions */
//-----------------------------------------------------------------------------
// Helpers
//-----------------------------------------------------------------------------
const debug = createDebug("eslint:languages:js");
const DEFAULT_ECMA_VERSION = 5;
const parserSymbol = Symbol.for("eslint.RuleTester.parser");
/**
* Analyze scope of the given AST.
* @param {ASTNode} ast The `Program` node to analyze.
* @param {JSLanguageOptions} languageOptions The parser options.
* @param {Record<string, string[]>} visitorKeys The visitor keys.
* @returns {ScopeManager} The analysis result.
*/
function analyzeScope(ast, languageOptions, visitorKeys) {
const parserOptions = languageOptions.parserOptions;
const ecmaFeatures = parserOptions.ecmaFeatures || {};
const ecmaVersion = languageOptions.ecmaVersion || DEFAULT_ECMA_VERSION;
return eslintScope.analyze(ast, {
ignoreEval: true,
nodejsScope: ecmaFeatures.globalReturn,
impliedStrict: ecmaFeatures.impliedStrict,
ecmaVersion: typeof ecmaVersion === "number" ? ecmaVersion : 6,
sourceType: languageOptions.sourceType || "script",
childVisitorKeys: visitorKeys || evk.KEYS,
fallback: evk.getKeys,
});
}
/**
* Determines if a given object is Espree.
* @param {Object} parser The parser to check.
* @returns {boolean} True if the parser is Espree or false if not.
*/
function isEspree(parser) {
return !!(parser === espree || parser[parserSymbol] === espree);
}
/**
* Normalize ECMAScript version from the initial config into languageOptions (year)
* format.
* @param {any} [ecmaVersion] ECMAScript version from the initial config
* @returns {number} normalized ECMAScript version
*/
function normalizeEcmaVersionForLanguageOptions(ecmaVersion) {
switch (ecmaVersion) {
case 3:
return 3;
// void 0 = no ecmaVersion specified so use the default
case 5:
case void 0:
return 5;
default:
if (typeof ecmaVersion === "number") {
return ecmaVersion >= 2015 ? ecmaVersion : ecmaVersion + 2009;
}
}
/*
* We default to the latest supported ecmaVersion for everything else.
* Remember, this is for languageOptions.ecmaVersion, which sets the version
* that is used for a number of processes inside of ESLint. It's normally
* safe to assume people want the latest unless otherwise specified.
*/
return LATEST_ECMA_VERSION;
}
//-----------------------------------------------------------------------------
// Exports
//-----------------------------------------------------------------------------
/**
* @type {Language}
*/
module.exports = {
fileType: "text",
lineStart: 1,
columnStart: 0,
nodeTypeKey: "type",
visitorKeys: evk.KEYS,
defaultLanguageOptions: {
sourceType: "module",
ecmaVersion: "latest",
parser: espree,
parserOptions: {},
},
validateLanguageOptions,
/**
* Normalizes the language options.
* @param {Object} languageOptions The language options to normalize.
* @returns {Object} The normalized language options.
*/
normalizeLanguageOptions(languageOptions) {
languageOptions.ecmaVersion = normalizeEcmaVersionForLanguageOptions(
languageOptions.ecmaVersion,
);
// Espree expects this information to be passed in
if (isEspree(languageOptions.parser)) {
const parserOptions = languageOptions.parserOptions;
if (languageOptions.sourceType) {
parserOptions.sourceType = languageOptions.sourceType;
if (
parserOptions.sourceType === "module" &&
parserOptions.ecmaFeatures &&
parserOptions.ecmaFeatures.globalReturn
) {
parserOptions.ecmaFeatures.globalReturn = false;
}
}
}
return languageOptions;
},
/**
* Determines if a given node matches a given selector class.
* @param {string} className The class name to check.
* @param {ASTNode} node The node to check.
* @param {Array<ASTNode>} ancestry The ancestry of the node.
* @returns {boolean} True if there's a match, false if not.
* @throws {Error} When an unknown class name is passed.
*/
matchesSelectorClass(className, node, ancestry) {
/*
* Copyright (c) 2013, Joel Feenstra
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of the ESQuery nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL JOEL FEENSTRA BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
switch (className.toLowerCase()) {
case "statement":
if (node.type.slice(-9) === "Statement") {
return true;
}
// fallthrough: interface Declaration <: Statement { }
case "declaration":
return node.type.slice(-11) === "Declaration";
case "pattern":
if (node.type.slice(-7) === "Pattern") {
return true;
}
// fallthrough: interface Expression <: Node, Pattern { }
case "expression":
return (
node.type.slice(-10) === "Expression" ||
node.type.slice(-7) === "Literal" ||
(node.type === "Identifier" &&
(ancestry.length === 0 ||
ancestry[0].type !== "MetaProperty")) ||
node.type === "MetaProperty"
);
case "function":
return (
node.type === "FunctionDeclaration" ||
node.type === "FunctionExpression" ||
node.type === "ArrowFunctionExpression"
);
default:
throw new Error(`Unknown class name: ${className}`);
}
},
/**
* Parses the given file into an AST.
* @param {File} file The virtual file to parse.
* @param {Object} options Additional options passed from ESLint.
* @param {JSLanguageOptions} options.languageOptions The language options.
* @returns {Object} The result of parsing.
*/
parse(file, { languageOptions }) {
// Note: BOM already removed
const { body: text, path: filePath } = file;
const textToParse = text.replace(
astUtils.shebangPattern,
(match, captured) => `//${captured}`,
);
const { ecmaVersion, sourceType, parser } = languageOptions;
const parserOptions = Object.assign(
{ ecmaVersion, sourceType },
languageOptions.parserOptions,
{
loc: true,
range: true,
raw: true,
tokens: true,
comment: true,
eslintVisitorKeys: true,
eslintScopeManager: true,
filePath,
},
);
/*
* Check for parsing errors first. If there's a parsing error, nothing
* else can happen. However, a parsing error does not throw an error
* from this method - it's just considered a fatal error message, a
* problem that ESLint identified just like any other.
*/
try {
debug("Parsing:", filePath);
const parseResult =
typeof parser.parseForESLint === "function"
? parser.parseForESLint(textToParse, parserOptions)
: { ast: parser.parse(textToParse, parserOptions) };
debug("Parsing successful:", filePath);
const {
ast,
services: parserServices = {},
visitorKeys = evk.KEYS,
scopeManager,
} = parseResult;
return {
ok: true,
ast,
parserServices,
visitorKeys,
scopeManager,
};
} catch (ex) {
// If the message includes a leading line number, strip it:
const message = ex.message.replace(/^line \d+:/iu, "").trim();
debug("%s\n%s", message, ex.stack);
return {
ok: false,
errors: [
{
message,
line: ex.lineNumber,
column: ex.column,
},
],
};
}
},
/**
* Creates a new `SourceCode` object from the given information.
* @param {File} file The virtual file to create a `SourceCode` object from.
* @param {OkParseResult} parseResult The result returned from `parse()`.
* @param {Object} options Additional options passed from ESLint.
* @param {JSLanguageOptions} options.languageOptions The language options.
* @returns {SourceCode} The new `SourceCode` object.
*/
createSourceCode(file, parseResult, { languageOptions }) {
const { body: text, path: filePath, bom: hasBOM } = file;
const { ast, parserServices, visitorKeys } = parseResult;
debug("Scope analysis:", filePath);
const scopeManager =
parseResult.scopeManager ||
analyzeScope(ast, languageOptions, visitorKeys);
debug("Scope analysis successful:", filePath);
return new SourceCode({
text,
ast,
hasBOM,
parserServices,
scopeManager,
visitorKeys,
});
},
};
@@ -0,0 +1,182 @@
function $parcel$export(e, n, v, s) {
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
}
$parcel$export(module.exports, "getMaxWidth", () => $9e5f6a0caf75716e$export$59185c62a7544aa0);
$parcel$export(module.exports, "getMinWidth", () => $9e5f6a0caf75716e$export$f556054ce4358701);
$parcel$export(module.exports, "calculateColumnSizes", () => $9e5f6a0caf75716e$export$55d50dc687385491);
/*
* Copyright 2022 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/ function $9e5f6a0caf75716e$export$1994a077b98ee0d5(width) {
return width != null && (!isNaN(width) || String(width).match(/^(\d+)(?=%$)/) !== null);
}
function $9e5f6a0caf75716e$export$9078bad4c3934604(width) {
if (!width || typeof width === 'number') return 1;
let match = width.match(/^(.+)(?=fr$)/);
// if width is the incorrect format, just default it to a 1fr
if (!match) {
if (process.env.NODE_ENV !== 'production') console.warn(`width: ${width} is not a supported format, width should be a number (ex. 150), percentage (ex. '50%') or fr unit (ex. '2fr')`, 'defaulting to \'1fr\'');
return 1;
}
return parseFloat(match[0]);
}
function $9e5f6a0caf75716e$export$7bbad27896f7ae9f(width, tableWidth) {
if (typeof width === 'string') {
let match = width.match(/^(\d+)(?=%$)/);
if (!match) throw new Error('Only percentages or numbers are supported for static column widths');
return tableWidth * (parseFloat(match[0]) / 100);
}
return width;
}
function $9e5f6a0caf75716e$export$59185c62a7544aa0(maxWidth, tableWidth) {
return maxWidth != null ? $9e5f6a0caf75716e$export$7bbad27896f7ae9f(maxWidth, tableWidth) : Number.MAX_SAFE_INTEGER;
}
function $9e5f6a0caf75716e$export$f556054ce4358701(minWidth, tableWidth) {
return minWidth != null ? $9e5f6a0caf75716e$export$7bbad27896f7ae9f(minWidth, tableWidth) : 0;
}
function $9e5f6a0caf75716e$export$55d50dc687385491(availableWidth, columns, changedColumns, getDefaultWidth, getDefaultMinWidth) {
let hasNonFrozenItems = false;
let flexItems = columns.map((column, index)=>{
var _changedColumns_get, _column_width, _ref, _ref1;
let width = changedColumns.get(column.key) != null ? (_changedColumns_get = changedColumns.get(column.key)) !== null && _changedColumns_get !== void 0 ? _changedColumns_get : '1fr' : (_ref1 = (_ref = (_column_width = column.width) !== null && _column_width !== void 0 ? _column_width : column.defaultWidth) !== null && _ref !== void 0 ? _ref : getDefaultWidth === null || getDefaultWidth === void 0 ? void 0 : getDefaultWidth(index)) !== null && _ref1 !== void 0 ? _ref1 : '1fr';
let frozen = false;
let baseSize = 0;
let flex = 0;
let targetMainSize = 0;
if ($9e5f6a0caf75716e$export$1994a077b98ee0d5(width)) {
baseSize = $9e5f6a0caf75716e$export$7bbad27896f7ae9f(width, availableWidth);
frozen = true;
} else {
flex = $9e5f6a0caf75716e$export$9078bad4c3934604(width);
if (flex <= 0) frozen = true;
}
var _column_minWidth, _ref2;
let min = $9e5f6a0caf75716e$export$f556054ce4358701((_ref2 = (_column_minWidth = column.minWidth) !== null && _column_minWidth !== void 0 ? _column_minWidth : getDefaultMinWidth === null || getDefaultMinWidth === void 0 ? void 0 : getDefaultMinWidth(index)) !== null && _ref2 !== void 0 ? _ref2 : 0, availableWidth);
let max = $9e5f6a0caf75716e$export$59185c62a7544aa0(column.maxWidth, availableWidth);
let hypotheticalMainSize = Math.max(min, Math.min(baseSize, max));
// 9.7.1
// We don't make use of flex basis, it's always 0, so we are always in 'grow' mode.
// 9.7.2
if (frozen) targetMainSize = hypotheticalMainSize;
else if (baseSize > hypotheticalMainSize) {
frozen = true;
targetMainSize = hypotheticalMainSize;
}
// 9.7.3
if (!frozen) hasNonFrozenItems = true;
return {
frozen: frozen,
baseSize: baseSize,
hypotheticalMainSize: hypotheticalMainSize,
min: min,
max: max,
flex: flex,
targetMainSize: targetMainSize,
violation: 0
};
});
// 9.7.4
// 9.7.4.a
while(hasNonFrozenItems){
// 9.7.4.b
/**
* Calculate the remaining free space as for initial free space,
* above (9.7.3). If the sum of the unfrozen flex items’ flex factors is
* less than one, multiply the initial free space by this sum (of flex factors).
* If the magnitude of this value is less than the magnitude of
* the remaining free space, use this as the remaining free space.
*/ let usedWidth = 0;
let flexFactors = 0;
flexItems.forEach((item)=>{
if (item.frozen) usedWidth += item.targetMainSize;
else {
usedWidth += item.baseSize;
flexFactors += item.flex;
}
});
let remainingFreeSpace = availableWidth - usedWidth;
// we only support integer FR's, and because of hasNonFrozenItems, we know that flexFactors > 0
// so no need to check for flexFactors < 1
// 9.7.4.c
/**
* If the remaining free space is zero
* - Do nothing.
* Else // remember, we're always in grow mode
* - Find the ratio of the item’s flex grow factor to the
* sum of the flex grow factors of all unfrozen items on
* the line. Set the item’s target main size to its flex
* base size plus a fraction of the remaining free space
* proportional to the ratio.
*/ if (remainingFreeSpace > 0) flexItems.forEach((item)=>{
if (!item.frozen) {
let ratio = item.flex / flexFactors;
item.targetMainSize = item.baseSize + ratio * remainingFreeSpace;
}
});
// 9.7.4.d
/**
* Fix min/max violations. Clamp each non-frozen item’s
* target main size by its used min and max main sizes
* and floor its content-box size at zero. If the item’s
* target main size was made smaller by this, it’s a max
* violation. If the item’s target main size was made
* larger by this, it’s a min violation.
*/ let totalViolation = 0;
flexItems.forEach((item)=>{
item.violation = 0;
if (!item.frozen) {
let { min: min, max: max, targetMainSize: targetMainSize } = item;
item.targetMainSize = Math.max(min, Math.min(targetMainSize, max));
item.violation = item.targetMainSize - targetMainSize;
totalViolation += item.violation;
}
});
// 9.7.4.e
/**
* Freeze over-flexed items. The total violation is the
* sum of the adjustments from the previous step
* ∑(clamped size - unclamped size). If the total violation is:
* Zero
* - Freeze all items.
*
* Positive
* - Freeze all the items with min violations.
*
* Negative
* - Freeze all the items with max violations.
*/ hasNonFrozenItems = false;
flexItems.forEach((item)=>{
if (totalViolation === 0 || Math.sign(totalViolation) === Math.sign(item.violation)) item.frozen = true;
else if (!item.frozen) hasNonFrozenItems = true;
});
}
return $9e5f6a0caf75716e$var$cascadeRounding(flexItems);
}
function $9e5f6a0caf75716e$var$cascadeRounding(flexItems) {
/*
Given an array of floats that sum to an integer, this rounds the floats
and returns an array of integers with the same sum.
*/ let fpTotal = 0;
let intTotal = 0;
let roundedArray = [];
flexItems.forEach(function(item) {
let float = item.targetMainSize;
let integer = Math.round(float + fpTotal) - intTotal;
fpTotal += float;
intTotal += integer;
roundedArray.push(integer);
});
return roundedArray;
}
//# sourceMappingURL=TableUtils.main.js.map
@@ -0,0 +1,44 @@
"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/danger.tsx
var danger_exports = {};
__export(danger_exports, {
DangerIcon: () => DangerIcon
});
module.exports = __toCommonJS(danger_exports);
var import_jsx_runtime = require("react/jsx-runtime");
var DangerIcon = (props) => {
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
"svg",
{
fill: "none",
height: "20",
viewBox: "0 0 20 20",
width: "20",
xmlns: "http://www.w3.org/2000/svg",
...props,
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M17.51 3.85L11.57 0.42C10.6 -0.14 9.4 -0.14 8.42 0.42L2.49 3.85C1.52 4.41 0.919998 5.45 0.919998 6.58V13.42C0.919998 14.54 1.52 15.58 2.49 16.15L8.43 19.58C9.4 20.14 10.6 20.14 11.58 19.58L17.52 16.15C18.49 15.59 19.09 14.55 19.09 13.42V6.58C19.08 5.45 18.48 4.42 17.51 3.85ZM9.25 5.75C9.25 5.34 9.59 5 10 5C10.41 5 10.75 5.34 10.75 5.75V11C10.75 11.41 10.41 11.75 10 11.75C9.59 11.75 9.25 11.41 9.25 11V5.75ZM10.92 14.63C10.87 14.75 10.8 14.86 10.71 14.96C10.52 15.15 10.27 15.25 10 15.25C9.87 15.25 9.74 15.22 9.62 15.17C9.49 15.12 9.39 15.05 9.29 14.96C9.2 14.86 9.13 14.75 9.07 14.63C9.02 14.51 9 14.38 9 14.25C9 13.99 9.1 13.73 9.29 13.54C9.39 13.45 9.49 13.38 9.62 13.33C9.99 13.17 10.43 13.26 10.71 13.54C10.8 13.64 10.87 13.74 10.92 13.87C10.97 13.99 11 14.12 11 14.25C11 14.38 10.97 14.51 10.92 14.63Z" })
}
);
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
DangerIcon
});
@@ -0,0 +1,2 @@
export declare const IMAGE_HTTP_HOST = "https://gchat.qpic.cn";
export declare const IMAGE_HTTP_HOST_NT = "https://multimedia.nt.qq.com.cn";
@@ -0,0 +1,21 @@
'use strict';
var $TypeError = require('es-errors/type');
var isObject = require('es-object-atoms/isObject');
var CreateNonEnumerableDataPropertyOrThrow = require('./CreateNonEnumerableDataPropertyOrThrow');
var Get = require('./Get');
var HasProperty = require('./HasProperty');
// https://262.ecma-international.org/13.0/#sec-installerrorcause
module.exports = function InstallErrorCause(O, options) {
if (!isObject(O)) {
throw new $TypeError('Assertion failed: Type(O) is not Object');
}
if (isObject(options) && HasProperty(options, 'cause')) {
var cause = Get(options, 'cause');
CreateNonEnumerableDataPropertyOrThrow(O, 'cause', cause);
}
};
@@ -0,0 +1 @@
{"version":3,"file":"matchExpectedRPID.d.ts","sourceRoot":"","sources":["../../src/helpers/matchExpectedRPID.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD;;;;;GAKG;AACH,wBAAsB,iBAAiB,CACrC,QAAQ,EAAE,WAAW,EACrB,aAAa,EAAE,MAAM,EAAE,GACtB,OAAO,CAAC,MAAM,CAAC,CA8BjB"}
@@ -0,0 +1,540 @@
import { createListenerEntry } from '@internal/listenerMiddleware'
import type {
Action,
PayloadAction,
TypedAddListener,
TypedStartListening,
UnknownAction,
UnsubscribeListener,
} from '@reduxjs/toolkit'
import {
addListener,
configureStore,
createAction,
createListenerMiddleware,
createSlice,
isFluxStandardAction,
} from '@reduxjs/toolkit'
const listenerMiddleware = createListenerMiddleware()
const { startListening } = listenerMiddleware
const addTypedListenerAction = addListener as TypedAddListener<CounterState>
interface CounterState {
value: number
}
const testAction1 = createAction<string>('testAction1')
const testAction2 = createAction<string>('testAction2')
const counterSlice = createSlice({
name: 'counter',
initialState: { value: 0 } as CounterState,
reducers: {
increment(state) {
state.value += 1
},
decrement(state) {
state.value -= 1
},
// Use the PayloadAction type to declare the contents of `action.payload`
incrementByAmount: (state, action: PayloadAction<number>) => {
state.value += action.payload
},
},
})
const { increment, decrement, incrementByAmount } = counterSlice.actions
describe('type tests', () => {
const store = configureStore({
reducer: () => 42,
middleware: (gDM) => gDM().prepend(createListenerMiddleware().middleware),
})
test('Allows passing an extra argument on middleware creation', () => {
const originalExtra = 42
const listenerMiddleware = createListenerMiddleware({
extra: originalExtra,
})
const store = configureStore({
reducer: counterSlice.reducer,
middleware: (gDM) => gDM().prepend(listenerMiddleware.middleware),
})
let foundExtra: number | null = null
const typedAddListener =
listenerMiddleware.startListening as TypedStartListening<
CounterState,
typeof store.dispatch,
typeof originalExtra
>
typedAddListener({
matcher: (action): action is Action => true,
effect: (action, listenerApi) => {
foundExtra = listenerApi.extra
expectTypeOf(listenerApi.extra).toMatchTypeOf(originalExtra)
},
})
store.dispatch(testAction1('a'))
expect(foundExtra).toBe(originalExtra)
})
test('unsubscribing via callback from dispatch', () => {
const unsubscribe = store.dispatch(
addListener({
actionCreator: testAction1,
effect: () => {},
}),
)
expectTypeOf(unsubscribe).toEqualTypeOf<UnsubscribeListener>()
store.dispatch(testAction1('a'))
unsubscribe()
store.dispatch(testAction2('b'))
store.dispatch(testAction1('c'))
})
test('take resolves to `[A, CurrentState, PreviousState] | null` if a possibly undefined timeout parameter is provided', () => {
type ExpectedTakeResultType =
| readonly [ReturnType<typeof increment>, CounterState, CounterState]
| null
let timeout: number | undefined = undefined
let done = false
const startAppListening =
startListening as TypedStartListening<CounterState>
startAppListening({
predicate: incrementByAmount.match,
effect: async (_, listenerApi) => {
let takeResult = await listenerApi.take(increment.match, timeout)
timeout = 1
takeResult = await listenerApi.take(increment.match, timeout)
expect(takeResult).toBeNull()
expectTypeOf(takeResult).toMatchTypeOf<ExpectedTakeResultType>()
done = true
},
})
expect(done).toBe(true)
})
test('State args default to unknown', () => {
createListenerEntry({
predicate: (
action,
currentState,
previousState,
): action is UnknownAction => {
expectTypeOf(currentState).toBeUnknown()
expectTypeOf(previousState).toBeUnknown()
return true
},
effect: (action, listenerApi) => {
const listenerState = listenerApi.getState()
expectTypeOf(listenerState).toBeUnknown()
listenerApi.dispatch((dispatch, getState) => {
const thunkState = getState()
expectTypeOf(thunkState).toBeUnknown()
})
},
})
startListening({
predicate: (
action,
currentState,
previousState,
): action is UnknownAction => {
expectTypeOf(currentState).toBeUnknown()
expectTypeOf(previousState).toBeUnknown()
return true
},
effect: (action, listenerApi) => {},
})
startListening({
matcher: increment.match,
effect: (action, listenerApi) => {
const listenerState = listenerApi.getState()
expectTypeOf(listenerState).toBeUnknown()
listenerApi.dispatch((dispatch, getState) => {
const thunkState = getState()
expectTypeOf(thunkState).toBeUnknown()
})
},
})
store.dispatch(
addListener({
predicate: (
action,
currentState,
previousState,
): action is UnknownAction => {
expectTypeOf(currentState).toBeUnknown()
expectTypeOf(previousState).toBeUnknown()
return true
},
effect: (action, listenerApi) => {
const listenerState = listenerApi.getState()
expectTypeOf(listenerState).toBeUnknown()
listenerApi.dispatch((dispatch, getState) => {
const thunkState = getState()
expectTypeOf(thunkState).toBeUnknown()
})
},
}),
)
store.dispatch(
addListener({
matcher: increment.match,
effect: (action, listenerApi) => {
const listenerState = listenerApi.getState()
expectTypeOf(listenerState).toBeUnknown()
listenerApi.dispatch((dispatch, getState) => {
const thunkState = getState()
expectTypeOf(thunkState).toBeUnknown()
})
},
}),
)
})
test('Action type is inferred from args', () => {
startListening({
type: 'abcd',
effect: (action, listenerApi) => {
expectTypeOf(action).toEqualTypeOf<{ type: 'abcd' }>()
},
})
startListening({
actionCreator: incrementByAmount,
effect: (action, listenerApi) => {
expectTypeOf(action).toMatchTypeOf<PayloadAction<number>>()
},
})
startListening({
matcher: incrementByAmount.match,
effect: (action, listenerApi) => {
expectTypeOf(action).toMatchTypeOf<PayloadAction<number>>()
},
})
startListening({
predicate: (
action,
currentState,
previousState,
): action is PayloadAction<number> => {
return (
isFluxStandardAction(action) && typeof action.payload === 'boolean'
)
},
effect: (action, listenerApi) => {
expectTypeOf(action).toEqualTypeOf<PayloadAction<number>>()
},
})
startListening({
predicate: (action, currentState) => {
return (
isFluxStandardAction(action) && typeof action.payload === 'number'
)
},
effect: (action, listenerApi) => {
expectTypeOf(action).toEqualTypeOf<UnknownAction>()
},
})
store.dispatch(
addListener({
type: 'abcd',
effect: (action, listenerApi) => {
expectTypeOf(action).toEqualTypeOf<{ type: 'abcd' }>()
},
}),
)
store.dispatch(
addListener({
actionCreator: incrementByAmount,
effect: (action, listenerApi) => {
expectTypeOf(action).toMatchTypeOf<PayloadAction<number>>()
},
}),
)
store.dispatch(
addListener({
matcher: incrementByAmount.match,
effect: (action, listenerApi) => {
expectTypeOf(action).toMatchTypeOf<PayloadAction<number>>()
},
}),
)
})
test('Can create a pre-typed middleware', () => {
const typedMiddleware = createListenerMiddleware<CounterState>()
typedMiddleware.startListening({
predicate: (
action,
currentState,
previousState,
): action is UnknownAction => {
expectTypeOf(currentState).not.toBeAny()
expectTypeOf(previousState).not.toBeAny()
expectTypeOf(currentState).toEqualTypeOf<CounterState>()
expectTypeOf(previousState).toEqualTypeOf<CounterState>()
return true
},
effect: (action, listenerApi) => {
const listenerState = listenerApi.getState()
expectTypeOf(listenerState).toEqualTypeOf<CounterState>()
listenerApi.dispatch((dispatch, getState) => {
const thunkState = listenerApi.getState()
expectTypeOf(thunkState).toEqualTypeOf<CounterState>()
})
},
})
// Can pass a predicate function with fewer args
typedMiddleware.startListening({
predicate: (action, currentState): action is PayloadAction<number> => {
expectTypeOf(currentState).not.toBeAny()
expectTypeOf(currentState).toEqualTypeOf<CounterState>()
return true
},
effect: (action, listenerApi) => {
expectTypeOf(action).toEqualTypeOf<PayloadAction<number>>()
const listenerState = listenerApi.getState()
expectTypeOf(listenerState).toEqualTypeOf<CounterState>()
listenerApi.dispatch((dispatch, getState) => {
const thunkState = listenerApi.getState()
expectTypeOf(thunkState).toEqualTypeOf<CounterState>()
})
},
})
typedMiddleware.startListening({
actionCreator: incrementByAmount,
effect: (action, listenerApi) => {
const listenerState = listenerApi.getState()
expectTypeOf(listenerState).toEqualTypeOf<CounterState>()
listenerApi.dispatch((dispatch, getState) => {
const thunkState = listenerApi.getState()
expectTypeOf(thunkState).toEqualTypeOf<CounterState>()
})
},
})
store.dispatch(
addTypedListenerAction({
predicate: (
action,
currentState,
previousState,
): action is ReturnType<typeof incrementByAmount> => {
expectTypeOf(currentState).not.toBeAny()
expectTypeOf(previousState).not.toBeAny()
expectTypeOf(currentState).toEqualTypeOf<CounterState>()
expectTypeOf(previousState).toEqualTypeOf<CounterState>()
return true
},
effect: (action, listenerApi) => {
const listenerState = listenerApi.getState()
expectTypeOf(listenerState).toEqualTypeOf<CounterState>()
listenerApi.dispatch((dispatch, getState) => {
const thunkState = listenerApi.getState()
expectTypeOf(thunkState).toEqualTypeOf<CounterState>()
})
},
}),
)
store.dispatch(
addTypedListenerAction({
predicate: (
action,
currentState,
previousState,
): action is UnknownAction => {
expectTypeOf(currentState).not.toBeAny()
expectTypeOf(previousState).not.toBeAny()
expectTypeOf(currentState).toEqualTypeOf<CounterState>()
expectTypeOf(previousState).toEqualTypeOf<CounterState>()
return true
},
effect: (action, listenerApi) => {
const listenerState = listenerApi.getState()
expectTypeOf(listenerState).toEqualTypeOf<CounterState>()
listenerApi.dispatch((dispatch, getState) => {
const thunkState = listenerApi.getState()
expectTypeOf(thunkState).toEqualTypeOf<CounterState>()
})
},
}),
)
})
test('Can create pre-typed versions of startListening and addListener', () => {
const typedAddListener = startListening as TypedStartListening<CounterState>
const typedAddListenerAction = addListener as TypedAddListener<CounterState>
typedAddListener({
predicate: (
action,
currentState,
previousState,
): action is UnknownAction => {
expectTypeOf(currentState).not.toBeAny()
expectTypeOf(previousState).not.toBeAny()
expectTypeOf(currentState).toEqualTypeOf<CounterState>()
expectTypeOf(previousState).toEqualTypeOf<CounterState>()
return true
},
effect: (action, listenerApi) => {
const listenerState = listenerApi.getState()
expectTypeOf(listenerState).toEqualTypeOf<CounterState>()
listenerApi.dispatch((dispatch, getState) => {
const thunkState = listenerApi.getState()
expectTypeOf(thunkState).toEqualTypeOf<CounterState>()
})
},
})
typedAddListener({
matcher: incrementByAmount.match,
effect: (action, listenerApi) => {
const listenerState = listenerApi.getState()
expectTypeOf(listenerState).toEqualTypeOf<CounterState>()
listenerApi.dispatch((dispatch, getState) => {
const thunkState = listenerApi.getState()
expectTypeOf(thunkState).toEqualTypeOf<CounterState>()
})
},
})
store.dispatch(
typedAddListenerAction({
predicate: (
action,
currentState,
previousState,
): action is UnknownAction => {
expectTypeOf(currentState).not.toBeAny()
expectTypeOf(previousState).not.toBeAny()
expectTypeOf(currentState).toEqualTypeOf<CounterState>()
expectTypeOf(previousState).toEqualTypeOf<CounterState>()
return true
},
effect: (action, listenerApi) => {
const listenerState = listenerApi.getState()
expectTypeOf(listenerState).toEqualTypeOf<CounterState>()
listenerApi.dispatch((dispatch, getState) => {
const thunkState = listenerApi.getState()
expectTypeOf(thunkState).toEqualTypeOf<CounterState>()
})
},
}),
)
store.dispatch(
typedAddListenerAction({
matcher: incrementByAmount.match,
effect: (action, listenerApi) => {
const listenerState = listenerApi.getState()
expectTypeOf(listenerState).toEqualTypeOf<CounterState>()
listenerApi.dispatch((dispatch, getState) => {
const thunkState = listenerApi.getState()
expectTypeOf(thunkState).toEqualTypeOf<CounterState>()
})
},
}),
)
})
})
@@ -0,0 +1,10 @@
declare const _default: {
settings: {
'import-x/resolver': {
node: {
extensions: string[];
};
};
};
};
export default _default;
@@ -0,0 +1,11 @@
import { _ as _class_apply_descriptor_get } from "./_class_apply_descriptor_get.js";
import { _ as _class_check_private_static_access } from "./_class_check_private_static_access.js";
import { _ as _class_check_private_static_field_descriptor } from "./_class_check_private_static_field_descriptor.js";
function _class_static_private_field_spec_get(receiver, classConstructor, descriptor) {
_class_check_private_static_access(receiver, classConstructor);
_class_check_private_static_field_descriptor(descriptor, "get");
return _class_apply_descriptor_get(receiver, descriptor);
}
export { _class_static_private_field_spec_get as _ };
@@ -0,0 +1,7 @@
import {
isPatternNumeric
} from "./chunk-SJYQ3O2I.mjs";
import "./chunk-UYSIEMEK.mjs";
export {
isPatternNumeric
};
@@ -0,0 +1,43 @@
var $aM4zL$react = require("react");
function $parcel$export(e, n, v, s) {
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
}
$parcel$export(module.exports, "useResizeObserver", () => $37733e1652f47193$export$683480f191c0e3ea);
function $37733e1652f47193$var$hasResizeObserver() {
return typeof window.ResizeObserver !== 'undefined';
}
function $37733e1652f47193$export$683480f191c0e3ea(options) {
const { ref: ref, box: box, onResize: onResize } = options;
(0, $aM4zL$react.useEffect)(()=>{
let element = ref === null || ref === void 0 ? void 0 : ref.current;
if (!element) return;
if (!$37733e1652f47193$var$hasResizeObserver()) {
window.addEventListener('resize', onResize, false);
return ()=>{
window.removeEventListener('resize', onResize, false);
};
} else {
const resizeObserverInstance = new window.ResizeObserver((entries)=>{
if (!entries.length) return;
onResize();
});
resizeObserverInstance.observe(element, {
box: box
});
return ()=>{
if (element) resizeObserverInstance.unobserve(element);
};
}
}, [
onResize,
ref,
box
]);
}
//# sourceMappingURL=useResizeObserver.main.js.map
@@ -0,0 +1 @@
{"mappings":";;AAAA;;;;;;;;;;CAUC;AAMM,SAAS,0CAA6B,KAAQ,EAAE,YAAe,EAAE,QAAyC;IAC/G,IAAI,CAAC,YAAY,cAAc,GAAG,CAAA,GAAA,eAAO,EAAE,SAAS;IAEpD,IAAI,kBAAkB,CAAA,GAAA,aAAK,EAAE,UAAU;IACvC,IAAI,eAAe,UAAU;IAC7B,CAAA,GAAA,gBAAQ,EAAE;QACR,IAAI,gBAAgB,gBAAgB,OAAO;QAC3C,IAAI,kBAAkB,cACpB,QAAQ,IAAI,CAAC,CAAC,+BAA+B,EAAE,gBAAgB,eAAe,eAAe,IAAI,EAAE,eAAe,eAAe,eAAe,CAAC,CAAC;QAEpJ,gBAAgB,OAAO,GAAG;IAC5B,GAAG;QAAC;KAAa;IAEjB,IAAI,eAAe,eAAe,QAAQ;IAC1C,IAAI,WAAW,CAAA,GAAA,kBAAU,EAAE,CAAC,OAAO,GAAG;QACpC,IAAI,iBAAiB,CAAC,OAAO,GAAG;YAC9B,IAAI,UACF;gBAAA,IAAI,CAAC,OAAO,EAAE,CAAC,cAAc,QAC3B,SAAS,UAAU;YACrB;YAEF,IAAI,CAAC,cACH,kEAAkE;YAClE,gFAAgF;YAChF,8EAA8E;YAC9E,yFAAyF;YACzF,uDAAuD;YACvD,eAAe;QAEnB;QAEA,IAAI,OAAO,UAAU,YAAY;YAC/B,QAAQ,IAAI,CAAC;YACb,oGAAoG;YACpG,yEAAyE;YACzE,kIAAkI;YAClI,iKAAiK;YACjK,yIAAyI;YACzI,IAAI,iBAAiB,CAAC,UAAU,GAAG;gBACjC,IAAI,mBAAmB,MAAM,eAAe,eAAe,aAAa;gBACxE,eAAe,qBAAqB;gBACpC,IAAI,CAAC,cACH,OAAO;gBAET,OAAO;YACT;YACA,cAAc;QAChB,OAAO;YACL,IAAI,CAAC,cACH,cAAc;YAEhB,eAAe,UAAU;QAC3B;IACF,GAAG;QAAC;QAAc;QAAc;KAAS;IAEzC,OAAO;QAAC;QAAc;KAAS;AACjC","sources":["packages/@react-stately/utils/src/useControlledState.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 {useCallback, useEffect, useRef, useState} from 'react';\n\nexport function useControlledState<T, C = T>(value: Exclude<T, undefined>, defaultValue: Exclude<T, undefined> | undefined, onChange?: (v: C, ...args: any[]) => void): [T, (value: T, ...args: any[]) => void];\nexport function useControlledState<T, C = T>(value: Exclude<T, undefined> | undefined, defaultValue: Exclude<T, undefined>, onChange?: (v: C, ...args: any[]) => void): [T, (value: T, ...args: any[]) => void];\nexport function useControlledState<T, C = T>(value: T, defaultValue: T, onChange?: (v: C, ...args: any[]) => void): [T, (value: T, ...args: any[]) => void] {\n let [stateValue, setStateValue] = useState(value || defaultValue);\n\n let isControlledRef = useRef(value !== undefined);\n let isControlled = value !== undefined;\n useEffect(() => {\n let wasControlled = isControlledRef.current;\n if (wasControlled !== isControlled) {\n console.warn(`WARN: A component changed from ${wasControlled ? 'controlled' : 'uncontrolled'} to ${isControlled ? 'controlled' : 'uncontrolled'}.`);\n }\n isControlledRef.current = isControlled;\n }, [isControlled]);\n\n let currentValue = isControlled ? value : stateValue;\n let setValue = useCallback((value, ...args) => {\n let onChangeCaller = (value, ...onChangeArgs) => {\n if (onChange) {\n if (!Object.is(currentValue, value)) {\n onChange(value, ...onChangeArgs);\n }\n }\n if (!isControlled) {\n // If uncontrolled, mutate the currentValue local variable so that\n // calling setState multiple times with the same value only emits onChange once.\n // We do not use a ref for this because we specifically _do_ want the value to\n // reset every render, and assigning to a ref in render breaks aborted suspended renders.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n currentValue = value;\n }\n };\n\n if (typeof value === 'function') {\n console.warn('We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320');\n // this supports functional updates https://reactjs.org/docs/hooks-reference.html#functional-updates\n // when someone using useControlledState calls setControlledState(myFunc)\n // this will call our useState setState with a function as well which invokes myFunc and calls onChange with the value from myFunc\n // if we're in an uncontrolled state, then we also return the value of myFunc which to setState looks as though it was just called with myFunc from the beginning\n // otherwise we just return the controlled value, which won't cause a rerender because React knows to bail out when the value is the same\n let updateFunction = (oldValue, ...functionArgs) => {\n let interceptedValue = value(isControlled ? currentValue : oldValue, ...functionArgs);\n onChangeCaller(interceptedValue, ...args);\n if (!isControlled) {\n return interceptedValue;\n }\n return oldValue;\n };\n setStateValue(updateFunction);\n } else {\n if (!isControlled) {\n setStateValue(vaLine truncated
@@ -0,0 +1,40 @@
{
"name": "@swc/types",
"packageManager": "yarn@4.0.2",
"version": "0.1.25",
"description": "Typings for the swc project.",
"types": "./index.d.ts",
"sideEffects": false,
"scripts": {
"build": "tsc",
"prepublishOnly": "yarn build"
},
"repository": {
"type": "git",
"url": "git+https://github.com/swc-project/swc.git"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public"
},
"files": [
"*.js",
"*.d.ts"
],
"keywords": [
"swc",
"types"
],
"author": "강동윤 <kdy1997.dev@gmail.com>",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/swc-project/swc/issues"
},
"homepage": "https://swc.rs",
"devDependencies": {
"typescript": "^5.2.2"
},
"dependencies": {
"@swc/counter": "^0.1.3"
}
}
@@ -0,0 +1,28 @@
{
"name": "@xterm/addon-canvas",
"version": "0.7.0",
"author": {
"name": "The xterm.js authors",
"url": "https://xtermjs.org/"
},
"main": "lib/addon-canvas.js",
"types": "typings/addon-canvas.d.ts",
"repository": "https://github.com/xtermjs/xterm.js/tree/master/addons/addon-canvas",
"license": "MIT",
"keywords": [
"terminal",
"canvas",
"xterm",
"xterm.js"
],
"scripts": {
"build": "../../node_modules/.bin/tsc -p .",
"prepackage": "npm run build",
"package": "../../node_modules/.bin/webpack",
"prepublishOnly": "npm run package",
"start-server-only": "node ../../demo/start-server-only"
},
"peerDependencies": {
"@xterm/xterm": "^5.0.0"
}
}
@@ -0,0 +1 @@
{"version":3,"file":"emitter.js","names":["EventEmitter","instances","logger","debug","EVENTS","forEach","eventName","document","addEventListener","_len","arguments","length","args","Array","_key","from","querySelectorAll","node","quill","get","emitter","handleDOM","Emitter","events","EDITOR_CHANGE","SCROLL_BEFORE_UPDATE","SCROLL_BLOT_MOUNT","SCROLL_BLOT_UNMOUNT","SCROLL_OPTIMIZE","SCROLL_UPDATE","SCROLL_EMBED_UPDATE","SELECTION_CHANGE","TEXT_CHANGE","COMPOSITION_BEFORE_START","COMPOSITION_START","COMPOSITION_BEFORE_END","COMPOSITION_END","sources","API","SILENT","USER","constructor","domListeners","on","error","emit","_len2","_key2","log","call","event","_len3","_key3","type","_ref","handler","target","contains","listenDOM","push"],"sources":["../../src/core/emitter.ts"],"sourcesContent":["import { EventEmitter } from 'eventemitter3';\nimport instances from './instances.js';\nimport logger from './logger.js';\n\nconst debug = logger('quill:events');\nconst EVENTS = ['selectionchange', 'mousedown', 'mouseup', 'click'];\n\nEVENTS.forEach((eventName) => {\n document.addEventListener(eventName, (...args) => {\n Array.from(document.querySelectorAll('.ql-container')).forEach((node) => {\n const quill = instances.get(node);\n if (quill && quill.emitter) {\n quill.emitter.handleDOM(...args);\n }\n });\n });\n});\n\nclass Emitter extends EventEmitter<string> {\n static events = {\n EDITOR_CHANGE: 'editor-change',\n SCROLL_BEFORE_UPDATE: 'scroll-before-update',\n SCROLL_BLOT_MOUNT: 'scroll-blot-mount',\n SCROLL_BLOT_UNMOUNT: 'scroll-blot-unmount',\n SCROLL_OPTIMIZE: 'scroll-optimize',\n SCROLL_UPDATE: 'scroll-update',\n SCROLL_EMBED_UPDATE: 'scroll-embed-update',\n SELECTION_CHANGE: 'selection-change',\n TEXT_CHANGE: 'text-change',\n COMPOSITION_BEFORE_START: 'composition-before-start',\n COMPOSITION_START: 'composition-start',\n COMPOSITION_BEFORE_END: 'composition-before-end',\n COMPOSITION_END: 'composition-end',\n } as const;\n\n static sources = {\n API: 'api',\n SILENT: 'silent',\n USER: 'user',\n } as const;\n\n protected domListeners: Record<string, { node: Node; handler: Function }[]>;\n\n constructor() {\n super();\n this.domListeners = {};\n this.on('error', debug.error);\n }\n\n emit(...args: unknown[]): boolean {\n debug.log.call(debug, ...args);\n // @ts-expect-error\n return super.emit(...args);\n }\n\n handleDOM(event: Event, ...args: unknown[]) {\n (this.domListeners[event.type] || []).forEach(({ node, handler }) => {\n if (event.target === node || node.contains(event.target as Node)) {\n handler(event, ...args);\n }\n });\n }\n\n listenDOM(eventName: string, node: Node, handler: EventListener) {\n if (!this.domListeners[eventName]) {\n this.domListeners[eventName] = [];\n }\n this.domListeners[eventName].push({ node, handler });\n }\n}\n\nexport type EmitterSource =\n (typeof Emitter.sources)[keyof typeof Emitter.sources];\n\nexport default Emitter;\n"],"mappings":"AAAA,SAASA,YAAY,QAAQ,eAAe;AAC5C,OAAOC,SAAS,MAAM,gBAAgB;AACtC,OAAOC,MAAM,MAAM,aAAa;AAEhC,MAAMC,KAAK,GAAGD,MAAM,CAAC,cAAc,CAAC;AACpC,MAAME,MAAM,GAAG,CAAC,iBAAiB,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,CAAC;AAEnEA,MAAM,CAACC,OAAO,CAAEC,SAAS,IAAK;EAC5BC,QAAQ,CAACC,gBAAgB,CAACF,SAAS,EAAE,YAAa;IAAA,SAAAG,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAATC,IAAI,OAAAC,KAAA,CAAAJ,IAAA,GAAAK,IAAA,MAAAA,IAAA,GAAAL,IAAA,EAAAK,IAAA;MAAJF,IAAI,CAAAE,IAAA,IAAAJ,SAAA,CAAAI,IAAA;IAAA;IAC3CD,KAAK,CAACE,IAAI,CAACR,QAAQ,CAACS,gBAAgB,CAAC,eAAe,CAAC,CAAC,CAACX,OAAO,CAAEY,IAAI,IAAK;MACvE,MAAMC,KAAK,GAAGjB,SAAS,CAACkB,GAAG,CAACF,IAAI,CAAC;MACjC,IAAIC,KAAK,IAAIA,KAAK,CAACE,OAAO,EAAE;QAC1BF,KAAK,CAACE,OAAO,CAACC,SAAS,CAAC,GAAGT,IAAI,CAAC;MAClC;IACF,CAAC,CAAC;EACJ,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,MAAMU,OAAO,SAAStB,YAAY,CAAS;EACzC,OAAOuB,MAAM,GAAG;IACdC,aAAa,EAAE,eAAe;IAC9BC,oBAAoB,EAAE,sBAAsB;IAC5CC,iBAAiB,EAAE,mBAAmB;IACtCC,mBAAmB,EAAE,qBAAqB;IAC1CC,eAAe,EAAE,iBAAiB;IAClCC,aAAa,EAAE,eAAe;IAC9BC,mBAAmB,EAAE,qBAAqB;IAC1CC,gBAAgB,EAAE,kBAAkB;IACpCC,WAAW,EAAE,aAAa;IAC1BC,wBAAwB,EAAE,0BAA0B;IACpDC,iBAAiB,EAAE,mBAAmB;IACtCC,sBAAsB,EAAE,wBAAwB;IAChDC,eAAe,EAAE;EACnB,CAAC;EAED,OAAOC,OAAO,GAAG;IACfC,GAAG,EAAE,KAAK;IACVC,MAAM,EAAE,QAAQ;IAChBC,IAAI,EAAE;EACR,CAAC;EAIDC,WAAWA,CAAA,EAAG;IACZ,KAAK,CAAC,CAAC;IACP,IAAI,CAACC,YAAY,GAAG,CAAC,CAAC;IACtB,IAAI,CAACC,EAAE,CAAC,OAAO,EAAExC,KAAK,CAACyC,KAAK,CAAC;EAC/B;EAEAC,IAAIA,CAAA,EAA8B;IAAA,SAAAC,KAAA,GAAApC,SAAA,CAAAC,MAAA,EAA1BC,IAAI,OAAAC,KAAA,CAAAiC,KAAA,GAAAC,KAAA,MAAAA,KAAA,GAAAD,KAAA,EAAAC,KAAA;MAAJnC,IAAI,CAAAmC,KAAA,IAAArC,SAAA,CAAAqC,KAAA;IAAA;IACV5C,KAAK,CAAC6C,GAAG,CAACC,IAAI,CAAC9C,KAAK,EAAE,GAAGS,IAAI,CAAC;IAC9B;IACA,OAAO,KAAK,CAACiC,IAAI,CAAC,GAAGjC,IAAI,CAAC;EAC5B;EAEAS,SAASA,CAAC6B,KAAY,EAAsB;IAAA,SAAAC,KAAA,GAAAzC,SAAA,CAAAC,MAAA,EAAjBC,IAAI,OAAAC,KAAA,CAAAsC,KAAA,OAAAA,KAAA,WAAAC,KAAA,MAAAA,KAAA,GAAAD,KAAA,EAAAC,KAAA;MAAJxC,IAAI,CAAAwC,KAAA,QAAA1C,SAAA,CAAA0C,KAAA;IAAA;IAC7B,CAAC,IAAI,CAACV,YAAY,CAALine truncated
@@ -0,0 +1,922 @@
flf2a$ 9 8 19 0 3 0 64 0
Font Author: CoSMiC cHiLD
FIGFont created by patorjk.com's FIGFont Editor: http://patorjk.com/figfont-editor
$ $@
$ $@
$ $@
$ $@
$ $@
$ $@
$ $@
$ $@
$ $@@
@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@
@@
▄████████$@
███ ███$@
███ ███$@
███ ███$@
▀███████████$@
███ ███$@
███ ███$@
███ █▀ $@
@@
▀█████████▄ $@
███ ███$@
███ ███$@
▄███▄▄▄██▀ $@
▀▀███▀▀▀██▄ $@
███ ██▄$@
███ ███$@
▄█████████▀ $@
@@
▄████████$@
███ ███$@
███ █▀ $@
███ $@
███ $@
███ █▄ $@
███ ███$@
████████▀ $@
@@
████████▄ $@
███ ▀███$@
███ ███$@
███ ███$@
███ ███$@
███ ███$@
███ ▄███$@
████████▀ $@
@@
▄████████$@
███ ███$@
███ █▀ $@
▄███▄▄▄ $@
▀▀███▀▀▀ $@
███ █▄ $@
███ ███$@
██████████$@
@@
▄████████$@
███ ███$@
███ █▀ $@
▄███▄▄▄ $@
▀▀███▀▀▀ $@
███ $@
███ $@
███ $@
@@
▄██████▄ $@
███ ███$@
███ █▀ $@
▄███ $@
▀▀███ ████▄ $@
███ ███$@
███ ███$@
████████▀ $@
@@
▄█ █▄ $@
███ ███ $@
███ ███ $@
▄███▄▄▄▄███▄▄$@
▀▀███▀▀▀▀███▀ $@
███ ███ $@
███ ███ $@
███ █▀ $@
@@
▄█ $@
███ $@
███▌$@
███▌$@
███▌$@
███ $@
███ $@
█▀ $@
@@
▄█$@
███$@
███$@
███$@
███$@
███$@
███$@
█▄ ▄███$@
▀▀▀▀▀▀ $@@
▄█ ▄█▄$@
███ ▄███▀$@
███▐██▀ $@
▄█████▀ $@
▀▀█████▄ $@
███▐██▄ $@
███ ▀███▄$@
███ ▀█▀$@
▀ $@@
▄█ $@
███ $@
███ $@
███ $@
███ $@
███ $@
███▌ ▄$@
█████▄▄██$@
▀ $@@
▄▄▄▄███▄▄▄▄ $@
▄██▀▀▀███▀▀▀██▄$@
███ ███ ███$@
███ ███ ███$@
███ ███ ███$@
███ ███ ███$@
███ ███ ███$@
▀█ ███ █▀ $@
@@
███▄▄▄▄ $@
███▀▀▀██▄$@
███ ███$@
███ ███$@
███ ███$@
███ ███$@
███ ███$@
▀█ █▀ $@
@@
▄██████▄ $@
███ ███$@
███ ███$@
███ ███$@
███ ███$@
███ ███$@
███ ███$@
▀██████▀ $@
@@
▄███████▄$@
███ ███$@
███ ███$@
███ ███$@
▀█████████▀ $@
███ $@
███ $@
▄████▀ $@
@@
████████▄ $@
███ ███ $@
███ ███ $@
███ ███ $@
███ ███ $@
███ ███ $@
███ ▀ ███ $@
▀██████▀▄█$@
@@
▄████████$@
███ ███$@
███ ███$@
▄███▄▄▄▄██▀$@
▀▀███▀▀▀▀▀ $@
▀███████████$@
███ ███$@
███ ███$@
███ ███$@@
▄████████$@
███ ███$@
███ █▀ $@
███ $@
▀███████████$@
███$@
▄█ ███$@
▄████████▀ $@
@@
███ $@
▀█████████▄$@
▀███▀▀██$@
███ ▀$@
███ $@
███ $@
███ $@
▄████▀ $@
@@
███ █▄ $@
███ ███$@
███ ███$@
███ ███$@
███ ███$@
███ ███$@
███ ███$@
████████▀ $@
@@
▄█ █▄ $@
███ ███$@
███ ███$@
███ ███$@
███ ███$@
███ ███$@
███ ███$@
▀██████▀ $@
@@
▄█ █▄ $@
███ ███$@
███ ███$@
███ ███$@
███ ███$@
███ ███$@
███ ▄█▄ ███$@
▀███▀███▀ $@
@@
▀████ ▐████▀$@
███▌ ████▀ $@
███ ▐███ $@
▀███▄███▀ $@
████▀██▄ $@
▐███ ▀███ $@
▄███ ███▄ $@
████ ███▄$@
@@
▄██ ▄ $@
███ ██▄$@
███▄▄▄███$@
▀▀▀▀▀▀███$@
▄██ ███$@
███ ███$@
███ ███$@
▀█████▀ $@
@@
▄███████▄ $@
██▀ ▄██$@
▄███▀$@
▀█▀▄███▀▄▄$@
▄███▀ ▀$@
▄███▀ $@
███▄ ▄█$@
▀████████▀$@
@@
@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@
@@
▄████████$@
███ ███$@
███ ███$@
███ ███$@
▀███████████$@
███ ███$@
███ ███$@
███ █▀ $@
@@
▀█████████▄ $@
███ ███$@
███ ███$@
▄███▄▄▄██▀ $@
▀▀███▀▀▀██▄ $@
███ ██▄$@
███ ███$@
▄█████████▀ $@
@@
▄████████$@
███ ███$@
███ █▀ $@
███ $@
███ $@
███ █▄ $@
███ ███$@
████████▀ $@
@@
████████▄ $@
███ ▀███$@
███ ███$@
███ ███$@
███ ███$@
███ ███$@
███ ▄███$@
████████▀ $@
@@
▄████████$@
███ ███$@
███ █▀ $@
▄███▄▄▄ $@
▀▀███▀▀▀ $@
███ █▄ $@
███ ███$@
██████████$@
@@
▄████████$@
███ ███$@
███ █▀ $@
▄███▄▄▄ $@
▀▀███▀▀▀ $@
███ $@
███ $@
███ $@
@@
▄██████▄ $@
███ ███$@
███ █▀ $@
▄███ $@
▀▀███ ████▄ $@
███ ███$@
███ ███$@
████████▀ $@
@@
▄█ █▄ $@
███ ███ $@
███ ███ $@
▄███▄▄▄▄███▄▄$@
▀▀███▀▀▀▀███▀ $@
███ ███ $@
███ ███ $@
███ █▀ $@
@@
▄█ $@
███ $@
███▌$@
███▌$@
███▌$@
███ $@
███ $@
█▀ $@
@@
▄█$@
███$@
███$@
███$@
███$@
███$@
███$@
█▄ ▄███$@
▀▀▀▀▀▀ $@@
▄█ ▄█▄$@
███ ▄███▀$@
███▐██▀ $@
▄█████▀ $@
▀▀█████▄ $@
███▐██▄ $@
███ ▀███▄$@
███ ▀█▀$@
▀ $@@
▄█ $@
███ $@
███ $@
███ $@
███ $@
███ $@
███▌ ▄$@
█████▄▄██$@
▀ $@@
▄▄▄▄███▄▄▄▄ $@
▄██▀▀▀███▀▀▀██▄$@
███ ███ ███$@
███ ███ ███$@
███ ███ ███$@
███ ███ ███$@
███ ███ ███$@
▀█ ███ █▀ $@
@@
███▄▄▄▄ $@
███▀▀▀██▄$@
███ ███$@
███ ███$@
███ ███$@
███ ███$@
███ ███$@
▀█ █▀ $@
@@
▄██████▄ $@
███ ███$@
███ ███$@
███ ███$@
███ ███$@
███ ███$@
███ ███$@
▀██████▀ $@
@@
▄███████▄$@
███ ███$@
███ ███$@
███ ███$@
▀█████████▀ $@
███ $@
███ $@
▄████▀ $@
@@
████████▄ $@
███ ███ $@
███ ███ $@
███ ███ $@
███ ███ $@
███ ███ $@
███ ▀ ███ $@
▀██████▀▄█$@
@@
▄████████$@
███ ███$@
███ ███$@
▄███▄▄▄▄██▀$@
▀▀███▀▀▀▀▀ $@
▀███████████$@
███ ███$@
███ ███$@
███ ███$@@
▄████████$@
███ ███$@
███ █▀ $@
███ $@
▀███████████$@
███$@
▄█ ███$@
▄████████▀ $@
@@
███ $@
▀█████████▄$@
▀███▀▀██$@
███ ▀$@
███ $@
███ $@
███ $@
▄████▀ $@
@@
███ █▄ $@
███ ███$@
███ ███$@
███ ███$@
███ ███$@
███ ███$@
███ ███$@
████████▀ $@
@@
▄█ █▄ $@
███ ███$@
███ ███$@
███ ███$@
███ ███$@
███ ███$@
███ ███$@
▀██████▀ $@
@@
▄█ █▄ $@
███ ███$@
███ ███$@
███ ███$@
███ ███$@
███ ███$@
███ ▄█▄ ███$@
▀███▀███▀ $@
@@
▀████ ▐████▀$@
███▌ ████▀ $@
███ ▐███ $@
▀███▄███▀ $@
████▀██▄ $@
▐███ ▀███ $@
▄███ ███▄ $@
████ ███▄$@
@@
▄██ ▄ $@
███ ██▄$@
███▄▄▄███$@
▀▀▀▀▀▀███$@
▄██ ███$@
███ ███$@
███ ███$@
▀█████▀ $@
@@
▄███████▄ $@
██▀ ▄██$@
▄███▀$@
▀█▀▄███▀▄▄$@
▄███▀ ▀$@
▄███▀ $@
███▄ ▄█$@
▀████████▀$@
@@
@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
@
@@
@@ -0,0 +1,829 @@
flf2a$ 8 7 13 63 3 0 20415 1
Version 1.0 April 2001
Characters by Henry Segerman henryseg@email.com,
Converted to FIGlet font by Markus Gebhard markus@jave.de
$ $@
$ $@
$ $@
$ $@
$ $@
$ $@
$ $@
$ $@@
__ @
LJ @
FJ @
J__L@
__ @
J__L@
|__|@
@@
_ _ @
EJ LJ@
-- --@
@
@
@
@
@@
_ _ @
_FJ__L]_ @
| __ | @
_| |__| |_ @
L_ __ _J@
LJ__F__J__LJ@
|__L J__| @
@@
_F]_ @
F ___L @
J (___| @
J\___ \ @
.--___) \@
J\__ __J@
J__LJ__F@
LJ @@
_ _ @
FJ // @
--/ F @
/ /' @
/ F __ @
/__/F L_|@
J___| L_J@
@@
___ @
F _ ", @
J '-'(| @
/ ,-, V\ @
F L_/ < @
J\____,_-L@
J____,_-'@
@@
__@
FJ@
L-@
- @
$@
@
@
@@
_ @
.'_| @
/ /-' @
| L @
\ \__ @
\'.__L@
'.__|@
@@
_ @
|_'. @
'-\ \@
J |@
__/ /@
J__.'/@
|__.' @
@@
__ @
/\FJ/\ @
\ / @
.' '. @
J\.n n./L@
\/J__L\/ @
|__| @
@@
@
__ @
__FJ__ @
|__ __|@
L_J__L_J@
J__L @
@
@@
@
@
@
@
__ @
J L@
|_F @
|_F @@
@
@
______ @
|______|@
L______J@
$ @
@
@@
@
@
@
@
__ @
J__L@
|__|@
@@
_@
//@
/ F@
/ /'@
/ F @
/__/F @
J___| @
@@
____ @
F _ ] @
J |/ | L @
| | /| | @
F /_J J @
J\______/F@
J______F @
@@
__ @
/ J @
LFJ @
J L@
J L@
J__L@
|__|@
@@
____ @
/ _ `. @
J_/-7 .' @
`-:'.'.' @
.' ;_J__ @
J________L@
|________|@
@@
____ @
F___ J @
`-__| L @
|__ ( @
.-____] J @
J\______/F@
J______F @
@@
_ _ @
FJ L] @
J |__| L @
|____ | @
L____J J @
J__L@
J__|@
@@
____ @
F ___L @
J |___| @
|____ \ @
.--___) \@
J\______J@
J______F@
@@
____ @
F ___] @
J `--_] @
| ,--. L @
F L__J | @
J\______/L@
J______F @
@@
____ @
F___ ]@
`--7 /@
/ //@
J L @
J__L @
|__| @
@@
____ @
F __ J @
J `--' L @
/ ,--. \ @
F L__J J @
J\______/L@
J______F @
@@
____ @
F __ J @
J '--' L @
J`---. | @
`---J J @
J__L@
J__|@
@@
@
__ @
LJ @
-- @
__ @
J__L@
|__|@
@@
@
__ @
LJ @
-- @
__ @
J L@
|_F @
|_F @@
_ @
_-""_L @
," .""-' @
|"-_"--_ @
"-_"--_L@
"--_|@
@
@@
@
_____ @
|_____| @
_:_____:_@
L_______J@
L_______J@
@
@@
_ @
J_""-_ @
`-"". ",@
__--"_-"|@
J_--""_-" @
|_--" @
@
@@
____ @
,"__ ".@
FJ--/ J|@
-- /_// @
J__/ @
J__L @
|__| @
@@
____ @
F __ ] @
J | | L @
| |[L' | @
F L_-_/_ @
J\______/L@
J______F @
@@
_ @
/.\ @
//_\\ @
/ ___ \ @
/ L___J \ @
J__L J__L@
|__L J__|@
@@
___ @
F _ ", @
J `-'(| @
| ,--.\ @
F L__J \@
J_______J@
|_______F@
@@
___ @
,"___". @
FJ---L] @
J | LJ @
| \___--.@
J\_____/F@
J_____F @
@@
___ @
F __". @
J |--\ L@
| | J |@
F L__J |@
J______/F@
|______F @
@@
____ @
F ___J @
J |___: @
| _____| @
F L____: @
J________L@
|________|@
@@
____ @
F ___J @
J |___: @
| _____|@
F |____J@
J__F @
|__| @
@@
___ @
,"___". @
FJ---L] @
J | [""L@
| \___] |@
J\_____/F@
J_____F @
@@
_ _ @
FJ L] @
J |__| L @
| __ | @
F L__J J @
J__L J__L@
|__L J__|@
@@
__ @
FJ @
J L @
| | @
F J @
J____L@
|____|@
@@
_ @
L] @
| L@
| |@
.--__J J@
J\_____/@
J_____/@
@@
_ _ @
FJ / ; @
J |/ (| @
| L @
F L:\ L @
J__L \\__L@
|__L \L_|@
@@
_ @
FJ @
J | @
| | @
F L_____ @
J________L@
|________|@
@@
__ __ @
F \/ ] @
J |\__/| L @
| |`--'| | @
F L J J @
J__L J__L@
|__L J__|@
@@
_ _ @
F L L] @
J \| L @
| |\ | @
F L\\ J @
J__L \\__L@
|__L J__|@
@@
____ @
F __ ] @
J |--| L @
| | | | @
F L__J J @
J\______/F@
J______F @
@@
___ @
F _ ",@
J `-' |@
| __/F@
F |__/ @
J__| @
|__L @
@@
____ @
F __ ] @
J |--| L @
| | _| | @
F L_F J @
J\_____ \@
J_____\J]@
\J @@
___ @
F _ ", @
J `-'(| @
| _ L @
F |_\ L @
J__| \\__L@
|__| J__|@
@@
___ @
F __". @
J (___| @
J\___ \ @
.--___) \@
J\______J@
J______F@
@@
____ @
/_ _\@
[J L]@
| | @
F J @
J____L@
|____|@
@@
_ _ @
FJ L] @
J | | L @
| | | | @
F L__J J @
J\______/F@
J______F @
@@
_ _ @
FJ L] @
J | | L@
J J F L@
J\ \/ /F@
\\__// @
\__/ @
@@
_ _ @
F L J J @
J J .. L L @
| |/ \| | @
F /\ J @
J___//\\___L@
|___/ \___|@
@@
_ _ @
FJ LJ @
J \/ F @
/ \ @
/ /\ \ @
J__//\\__L@
|__/ \__|@
@@
_ _ @
FJ LJ@
J \/ F@
J\ /L@
F J @
|____|@
|____|@
@@
____ @
[__ '. @
`--7 .' @
.'.'.' @
.' (_(__ @
J________L@
|________|@
@@
____ @
F ___J @
J |---' @
| | @
F L_____ @
J________L@
|________|@
@@
_ @
\\ @
J \ @
'\ \ @
J \ @
J\__\ @
|___L@
@@
____ @
L___ ] @
`---| L @
| | @
_____J J @
J________L@
|________|@
@@
/\ @
/ \ @
/_/\_\@
L_/\_J@
$$$ @
$ @
@
@@
@
@
@
@
$ @
________ @
|________|@
L________J@@
_ @
\\ @
\\\@
$$ @
$ @
@
@
@@
@
___ _ @
F __` L @
| |--| | @
F L__J J @
J\____,__L@
J____,__F@
@@
_ @
FJ___ @
J __ J @
| |--| | @
F L__J J @
J__,____/L@
J__,____F @
@@
@
____ @
F ___J. @
| |---LJ @
F L___--.@
J\______/F@
J______F @
@@
_ @
___FJ @
F __ L @
| |--| | @
F L__J J @
J\____,__L@
J____,__F@
@@
@
____ @
F __ J @
| _____J @
F L___--.@
J\______/F@
J______F @
@@
____ @
/ ___J@
J |_--'@
| _| @
F |_J @
J__F @
|__| @
@@
@
___ _ @
F __` L @
| |--| | @
F L__J J @
)-____ L@
J\______/F@
J______F @@
_ @
FJ___ @
J __ `. @
| |--| | @
F L J J @
J__L J__L@
|__L J__|@
@@
__ @
LJ @
@
FJ @
J L@
J__L@
|__|@
@@
__ @
LJ @
_ @
J J @
J L@
,-_J |@
\_____/@
\_____/@@
_ @
FJ __ @
J |/ /L @
| \ @
F L:\ J @
J__L \\_J.@
|__L \L_|@
@@
__ @
LJ @
FJ @
J L@
J L@
J__L@
|__|@
@@
@
_ _____ @
J '_ _ `, @
| |_||_| | @
F L LJ J J @
J__L LJ J__L@
|__L LJ J__|@
@@
@
_ ___ @
J '__ J @
| |__| | @
F L J J @
J__L J__L@
|__L J__|@
@@
@
____ @
F __ J @
| |--| | @
F L__J J @
J\______/F@
J______F @
@@
@
_ ___ @
J '__ J @
| |--| | @
F L__J J @
J _____/L@
|_J_____F @
L_J @@
@
___ _ @
F __` L @
| |--| | @
F L__J J @
J\_____ L@
J_____L_|@
L_J@@
@
_ ___ @
J '__ ",@
| |__|-J@
F L `-'@
J__L @
|__L @
@@
@
____ @
F ___J @
| '----_ @
)-____ L@
J\______/F@
J______F @
@@
_ @
FJ_ @
J _| @
| |-' @
F |__-.@
\_____/@
J_____F@
@@
@
_ _ @
J | | L @
| | | | @
F L__J J @
J\____,__L@
J____,__F@
@@
@
_ _ @
J | | L@
J J F L@
J\ \/ /F@
\\__// @
\__/ @
@@
@
_ _ @
FJ .. L] @
| |/ \| | @
F /\ J @
J\__//\\__/L@
\__/ \__/ @
@@
@
_ _ @
J \ / F @
\ ' / @
.' . `. @
J__/:\__L@
|__/ \__|@
@@
@
_ _ @
J | | L @
| | | | @
F L__J J @
)-____ L@
J\______/F@
J______F @@
@
_____ @
[__ F @
`-.'.'/ @
.' (_(_ @
J_______L@
|_______|@
@@
_ @
."_J @
_/ /-' @
|_ (/ @
L_L."-__ @
"_"-__L@
"-__|@
@@
[] @
LJ @
FJ @
J L@
J L@
J L@
|__|@
|__|@@
_ @
F_". @
'-\ \_ @
\) _|@
__-".J_J@
J__-"_" @
|__-" @
@@
@
/\/]@
/ /@
L/\//@
L/\/ @
$ @
@
@@
[] [] @
`,-.' @
//_\\ @
/ ___ \ @
/ L___J \ @
J__L J__L@
|__L J__|@
@@
[]__[] @
,"__", @
J |--| L @
| | | | @
F L__J J @
J\______/F@
J______F @
@@
[] [] @
-, ,- @
J | | L @
| | | | @
F L__J J @
J\______/F@
J______F @
@@
[] [] @
____-, @
F __ L @
| |--| | @
F L__J J @
J\____-__L@
J____-__F@
@@
[] [] @
____ @
F __ J @
| |--| | @
F L__J J @
J\______/F@
J______F @
@@
[] [] @
_ _ @
J | | L @
| | | | @
F L__J J @
J\____-__L@
J____-__F@
@@
___ @
F _ ", @
J '-'(| @
| ,--.\ @
F L__J \@
J ____J@
|__|____F@
L__| @@
160 NO-BREAK SPACE
$$@
$$@
$$@
$$@
$$@
$$@
$$@
$$@@
@@ -0,0 +1,22 @@
{
"name": "@react-types/menu",
"version": "3.9.13",
"description": "Spectrum UI components in React",
"license": "Apache-2.0",
"types": "src/index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/adobe/react-spectrum"
},
"dependencies": {
"@react-types/overlays": "^3.8.11",
"@react-types/shared": "^3.26.0"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
},
"publishConfig": {
"access": "public"
},
"gitHead": "71f0ef23053f9e03ee7e97df736e8b083e006849"
}
@@ -0,0 +1,63 @@
# React Redux
Official React bindings for [Redux](https://github.com/reduxjs/redux).
Performant and flexible.
![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/reduxjs/react-redux/test.yml?style=flat-square) [![npm version](https://img.shields.io/npm/v/react-redux.svg?style=flat-square)](https://www.npmjs.com/package/react-redux)
[![npm downloads](https://img.shields.io/npm/dm/react-redux.svg?style=flat-square)](https://www.npmjs.com/package/react-redux)
[![#redux channel on Discord](https://img.shields.io/badge/discord-redux@reactiflux-61DAFB.svg?style=flat-square)](http://www.reactiflux.com)
## Installation
### Create a React Redux App
The recommended way to start new apps with React and Redux is by using [our official Redux+TS template for Vite](https://github.com/reduxjs/redux-templates), or by creating a new Next.js project using [Next's `with-redux` template](https://github.com/vercel/next.js/tree/canary/examples/with-redux).
Both of these already have Redux Toolkit and React-Redux configured appropriately for that build tool, and come with a small example app that demonstrates how to use several of Redux Toolkit's features.
```bash
# Vite with our Redux+TS template
# (using the `degit` tool to clone and extract the template)
npx degit reduxjs/redux-templates/packages/vite-template-redux my-app
# Next.js using the `with-redux` template
npx create-next-app --example with-redux my-app
```
### An Existing React App
React Redux 8.0 requires **React 16.8.3 or later** (or React Native 0.59 or later).
To use React Redux with your React app, install it as a dependency:
```bash
# If you use npm:
npm install react-redux
# Or if you use Yarn:
yarn add react-redux
```
You'll also need to [install Redux](https://redux.js.org/introduction/installation) and [set up a Redux store](https://redux.js.org/recipes/configuring-your-store/) in your app.
This assumes that you’re using [npm](http://npmjs.com/) package manager
with a module bundler like [Webpack](https://webpack.js.org/) or
[Browserify](http://browserify.org/) to consume [CommonJS
modules](https://webpack.js.org/api/module-methods/#commonjs).
If you don’t yet use [npm](http://npmjs.com/) or a modern module bundler, and would rather prefer a single-file [UMD](https://github.com/umdjs/umd) build that makes `ReactRedux` available as a global object, you can grab a pre-built version from [cdnjs](https://cdnjs.com/libraries/react-redux). We _don’t_ recommend this approach for any serious application, as most of the libraries complementary to Redux are only available on [npm](http://npmjs.com/).
## Documentation
The React Redux docs are published at **https://react-redux.js.org** .
## How Does It Work?
The post [The History and Implementation of React-Redux](https://blog.isquaredsoftware.com/2018/11/react-redux-history-implementation/)
explains what it does, how it works, and how the API and implementation have evolved over time.
There's also a [Deep Dive into React-Redux](https://blog.isquaredsoftware.com/2019/06/presentation-react-redux-deep-dive/) talk that covers some of the same material at a higher level.
## License
[MIT](LICENSE.md)
@@ -0,0 +1,111 @@
{
"name": "has-symbols",
"version": "1.1.0",
"description": "Determine if the JS environment has Symbol support. Supports spec, or shams.",
"main": "index.js",
"scripts": {
"prepack": "npmignore --auto --commentLines=autogenerated",
"prepublishOnly": "safe-publish-latest",
"prepublish": "not-in-publish || npm run prepublishOnly",
"pretest": "npm run --silent lint",
"test": "npm run tests-only",
"posttest": "npx npm@'>=10.2' audit --production",
"tests-only": "npm run test:stock && npm run test:shams",
"test:stock": "nyc node test",
"test:staging": "nyc node --harmony --es-staging test",
"test:shams": "npm run --silent test:shams:getownpropertysymbols && npm run --silent test:shams:corejs",
"test:shams:corejs": "nyc node test/shams/core-js.js",
"test:shams:getownpropertysymbols": "nyc node test/shams/get-own-property-symbols.js",
"lint": "eslint --ext=js,mjs .",
"postlint": "tsc -p . && 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/has-symbols.git"
},
"keywords": [
"Symbol",
"symbols",
"typeof",
"sham",
"polyfill",
"native",
"core-js",
"ES6"
],
"author": {
"name": "Jordan Harband",
"email": "ljharb@gmail.com",
"url": "http://ljharb.codes"
},
"contributors": [
{
"name": "Jordan Harband",
"email": "ljharb@gmail.com",
"url": "http://ljharb.codes"
}
],
"funding": {
"url": "https://github.com/sponsors/ljharb"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/ljharb/has-symbols/issues"
},
"homepage": "https://github.com/ljharb/has-symbols#readme",
"devDependencies": {
"@arethetypeswrong/cli": "^0.17.0",
"@ljharb/eslint-config": "^21.1.1",
"@ljharb/tsconfig": "^0.2.0",
"@types/core-js": "^2.5.8",
"@types/tape": "^5.6.5",
"auto-changelog": "^2.5.0",
"core-js": "^2.6.12",
"encoding": "^0.1.13",
"eslint": "=8.8.0",
"get-own-property-symbols": "^0.9.5",
"in-publish": "^2.0.1",
"npmignore": "^0.3.1",
"nyc": "^10.3.2",
"safe-publish-latest": "^2.0.0",
"tape": "^5.9.0",
"typescript": "next"
},
"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",
"types"
]
}
}
@@ -0,0 +1,14 @@
import { IssuerAndSerialNumber } from "./issuer_and_serial_number";
import { SubjectKeyIdentifier } from "@peculiar/asn1-x509";
/**
* ```asn
* SignerIdentifier ::= CHOICE {
* issuerAndSerialNumber IssuerAndSerialNumber,
* subjectKeyIdentifier [0] SubjectKeyIdentifier }
* ```
*/
export declare class SignerIdentifier {
subjectKeyIdentifier?: SubjectKeyIdentifier;
issuerAndSerialNumber?: IssuerAndSerialNumber;
constructor(params?: Partial<SignerIdentifier>);
}
@@ -0,0 +1 @@
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/common/constants.ts"],"names":[],"mappings":";;;AAGA,MAAM,eAAe,GAAG,KAAK,CAAC;AAyM5B,0CAAe;AArMjB,kBAAkB;AAClB,MAAM,MAAM,GAAG;IACb,mBAAmB,EAAE,wFAAwF;IAC7G,+BAA+B,EAAE,oGAAoG;IACrI,wBAAwB,EAAE,8FAA8F;IACxH,oCAAoC,EAAE,2CAA2C;IACjF,uCAAuC,EAAE,uFAAuF;IAChI,8BAA8B,EAAE,4CAA4C;IAC5E,gCAAgC,EAAE,8EAA8E;IAChH,sCAAsC,EAAE,2DAA2D;IACnG,wCAAwC,EAAE,oDAAoD;IAC9F,0CAA0C,EAAE,kKAAkK;IAC9M,gBAAgB,EAAE,mBAAmB;IACrC,YAAY,EAAE,eAAe;IAC7B,uBAAuB,EAAE,4BAA4B;IACrD,aAAa,EAAE,qDAAqD;IACpE,8BAA8B,EAAE,4CAA4C;IAC5E,6BAA6B,EAAE,kCAAkC;IACjE,uCAAuC,EAAE,6CAA6C;IACtF,0CAA0C,EAAE,iDAAiD;IAC7F,qCAAqC,EAAE,oDAAoD;IAC3F,yCAAyC,EAAE,mEAAmE;IAC9G,+CAA+C,EAAE,6EAA6E;IAC9H,4CAA4C,EAAE,yEAAyE;IACvH,0BAA0B,EAAE,8BAA8B;IAC1D,2BAA2B,EAAE,kDAAkD;IAC/E,mCAAmC,EAAE,kCAAkC;IACvE,uCAAuC,EAAE,sDAAsD;IAC/F,0CAA0C,EAAE,iDAAiD;CAC9F,CAAC;AAyKA,wBAAM;AAvKR,MAAM,2BAA2B,GAAG;IAClC,8BAA8B,EAAE,CAAC;IACjC,oCAAoC,EAAE,CAAC;IACvC,gDAAgD;IAChD,oBAAoB,EAAE,CAAC,EAAE,iGAAiG;IAC1H,kBAAkB,EAAE,EAAE,EAAE,2BAA2B;IACnD,kBAAkB,EAAE,EAAE,EAAE,4BAA4B;IACpD,sBAAsB,EAAE,CAAC,cAAsB,EAAE,EAAE,CAAC,cAAc,GAAG,CAAC,EAAE,2CAA2C;IACnH,gDAAgD;IAChD,cAAc,EAAE,CAAC,EAAE,2BAA2B;CAC/C,CAAC;AA6KA,kEAA2B;AAzK7B,IAAK,YAIJ;AAJD,WAAK,YAAY;IACf,qDAAc,CAAA;IACd,+CAAW,CAAA;IACX,yDAAgB,CAAA;AAClB,CAAC,EAJI,YAAY,4BAAZ,YAAY,QAIhB;AAED,IAAK,cAKJ;AALD,WAAK,cAAc;IACjB,0DAAc,CAAA;IACd,wDAAa,CAAA;IACb,4DAAe,CAAA;IACf,sEAAoB,CAAA;AACtB,CAAC,EALI,cAAc,8BAAd,cAAc,QAKlB;AAED,IAAK,UAIJ;AAJD,WAAK,UAAU;IACb,+CAAa,CAAA;IACb,+CAAa,CAAA;IACb,mDAAe,CAAA;AACjB,CAAC,EAJI,UAAU,0BAAV,UAAU,QAId;AAED,MAAM,wBAAwB,GAAG,IAAI,CAAC;AAuJpC,4DAAwB;AAtJ1B,MAAM,sBAAsB,GAAG,IAAI,CAAC;AAuJlC,wDAAsB;AArJxB,MAAM,yBAAyB,GAAG,IAAI,CAAC;AAsJrC,8DAAyB;AApJ3B,IAAK,cAUJ;AAVD,WAAK,cAAc;IACjB,yDAAc,CAAA;IACd,yDAAc,CAAA;IACd,+DAAiB,CAAA;IACjB,+EAAyB,CAAA;IACzB,yEAAsB,CAAA;IACtB,6EAAwB,CAAA;IACxB,+DAAiB,CAAA;IACjB,iFAA0B,CAAA;IAC1B,iFAA0B,CAAA;AAC5B,CAAC,EAVI,cAAc,8BAAd,cAAc,QAUlB;AAED,IAAK,cAIJ;AAJD,WAAK,cAAc;IACjB,mDAAW,CAAA;IACX,2DAAe,CAAA;IACf,mDAAW,CAAA;AACb,CAAC,EAJI,cAAc,8BAAd,cAAc,QAIlB;AAED,IAAK,gBAcJ;AAdD,WAAK,gBAAgB;IACnB,6DAAW,CAAA;IACX,mEAAc,CAAA;IACd,iEAAa,CAAA;IACb,uFAAwB,CAAA;IACxB,+GAAoC,CAAA;IACpC,mFAAsB,CAAA;IACtB,2GAAkC,CAAA;IAClC,mFAAsB,CAAA;IACtB,yFAAyB,CAAA;IACzB,iGAA6B,CAAA;IAC7B,sEAAgB,CAAA;IAChB,wEAAiB,CAAA;IACjB,0DAAU,CAAA;AACZ,CAAC,EAdI,gBAAgB,gCAAhB,gBAAgB,QAcpB"}
@@ -0,0 +1 @@
{"name":"@types/debug","version":"4.1.12","requiresBuild":false,"files":{"LICENSE":{"checkedAt":1794532092470,"integrity":"sha512-HQaIQk9pwOcyKutyDk4o2a87WnotwYuLGYFW43emGm4FvIJFKPyg+OYaw5sTegKAKf+C5SKa1ACjzCLivbaHrQ==","mode":420,"size":1141},"README.md":{"checkedAt":1794532092470,"integrity":"sha512-QL2BIL2hOajJJp3Omhu2iaNwtS8JCY+d/6JLxUBnMVhwLC+6NFaFUBugoz1kwPQUGqX0fG623XG5ZcvEq0kiFw==","mode":420,"size":2253},"index.d.ts":{"checkedAt":1794532092470,"integrity":"sha512-jLNqu5Ce9hhvmE1198aPQqGlBfGGzzo6cPiUKxv+5hbLYd7VFQEMSVSAk8hC/DU3BOWvUhwDwVBX74dRkxsRkQ==","mode":420,"size":1346},"package.json":{"checkedAt":1794532092470,"integrity":"sha512-fvN+cRiPHWjecEBIbGrBENOHrPNjqRntzn3HnMIDohnc8iolXhAODv1zomIoNdvB/lvA5DlM+MfpJPtIDSJxXA==","mode":420,"size":1710}}}
@@ -0,0 +1,626 @@
export default `flf2a$ 6 5 11 0 12
This font is (c) Michel Eftimakis 1995 -- Version 1.0 -- 11 may 1995
____________________________________________________________ /\`____
| Michel Eftimakis | "Ascii-Artist" '\\/ |
| Michel.Eftimakis@vlsi.com | Boo)- (00) ||
| | (_\`'_) ||
|___________________________________|____ FRANCE ___________ _!!_ ____||
|_____________________________________________________________________|
---
Font modified June 17, 2007 by patorjk
This was to widen the space character.
$$@
$$@
$$@
$$@
$$@
$$@@
_ @
( )@
|_|@
_ @
/_\\@
@@
@
()()@
$ @
$ @
$ @
@@
@
_ _ @
_| |_| |_@
( ) ( ) @
-/_|-|_\\-@
@@
_ @
( ) @
/ __|@
\\_ \\@
(___/@
|_| @@
_ _ @
(_)/ )@
/ / @
( /_ @
/_/(_)@
@@
__ @
( o) @
)( @
/ o\`')@
\\__/\\\\@
@@
__@
/_/@
$ @
$ @
$ @
@@
_ @
/ )@
| |$@
( )$@
| \\$@
\\_\\@@
_ @
( \\ @
$| |@
$( )@
$/ |@
/_/ @@
. . @
_\\\`'/_@
)_ _(@
/'\`\\ @
@
@@
@
_ @
_| |_ @
(_ _)@
/_\\ @
@@
@
@
@
_ @
(_)@
/' @@
@
@
___ @
(___)@
@
@@
@
@
@
_ @
(_)@
@@
_ @
/ )@
/ / @
( / @
/_/ @
@@
@
_ @
/ \\ @
( 0 )@
\\_/ @
@@
@
__ @
/_ |@
$( )@
$/_\\@
@@
@
__ @
|_ | @
/(_ @
/___\\@
@@
@
___@
|_ /@
__))@
\\__/@
@@
@
. @
/| @
/o) @
/___\\@
@@
@
___@
| _/@
) \\@
/__/@
@@
@
_ @
// @
(o \\@
\\__/@
@@
@
____@
|_ /@
)) @
/_\\ @
@@
@
__ @
(o )@
/o \\@
\\__/@
@@
@
__ @
/o \\@
\\_ )@
/_/@
@@
@
@
_ @
(_)@
(_)@
@@
@
@
_ @
(_)@
(_)@
/' @@
_ @
/ )@
/ /$@
( \\$@
\\_\\@
@@
@
@
____ @
(____)@
(____)@
@@
_ @
( \\ @
$\\ \\@
$/ )@
/_/ @
@@
___ @
(_, )@
// @
(_) @
$_ @
(_) @@
@
__ @
/_ \\ @
((O)_)@
$\\___/@
@@
__ @
( ) @
/o \\ @
( __ )@
/_\\/_\\@
@@
___ @
( o ) @
| \\ @
( O )@
/___/ @
@@
___ @
( _)@
| | @
( )_ @
/___\\@
@@
__ @
( ) @
| \\ @
( O )@
/___/ @
@@
____ @
( __)@
| |_ @
( _) @
/____\\@
@@
____ @
( __)@
| |_ @
( __) @
/_\\ @
@@
____ @
( __)@
| | _ @
( )_))@
/____\\@
@@
_ _ @
( )( )@
| L| |@
( __ )@
/_\\/_\\@
@@
_ @
( )@
| |@
( )@
/_\\@
@@
_ @
( )@
_ | |@
((_( )@
\\__/ @
@@
_ @
( ) __@
| |/ /@
( _ ( @
/_\\\\_|@
@@
_ @
( ) @
| | @
( )_ @
/___\\@
@@
_ _ @
( \`-' )@
| \\_/ |@
( ) ( )@
/_\\ /_\\@
@@
_ _ @
( \\ ( )@
| \\\\| |@
( )\\\\ )@
/_\\ \\_\\@
@@
__ @
( ) @
/ \\ @
( O )@
\\__/ @
@@
___ @
( ) @
| O |@
( __/ @
/_\\ @
@@
__ @
( ) @
/ \\ @
( O )@
\\__\\\\@
~@@
___ @
( ) @
| O |@
( _ ( @
/_\\\\_|@
@@
___ @
/ _) @
\\_"-. @
__) )@
/___/ @
@@
_____ @
(_ _)@
| | @
( ) @
/_\\ @
@@
_ _ @
( )( )@
| || |@
( L| )@
/____\\@
@@
_ _ @
( )( )@
| || |@
( \\/ )@
\\__/ @
@@
_ _ @
( ) ( )@
| |__| |@
( ' \` )@
\\_/\\_/ @
@@
_ _ @
( \\/ )@
\\ / @
( ) @
/_/\\_\\@
@@
_ _ @
( \\_/ )@
\\ / @
( ) @
|_| @
@@
___ @
(__ )@
// @
((_ @
/___\\@
@@
___ @
( __)@
| |$ @
( )$ @
| \\_ @
|___|@@
_ @
( \\ @
\\ \\ @
\\ ) @
\\_\\@
@@
___ @
(__ )@
$| |@
$( )@
_/ |@
|___|@@
___ @
,;\`;;;,@
;; o o|@
(; _" |@
|\\__/ @
@@
@
@
@
@
____ @
|____|@@
__ @
\\_\\@
$ @
$ @
$ @
@@
@
@
___ @
( o )@
/_^_\\@
@@
_ @
( ) @
| |_ @
( o \\@
/___/@
@@
@
@
__@
/ /@
\\_\\@
@@
_ @
( )@
_| |@
/ o )@
\\___\\@
@@
@
@
___ @
( o_)@
\\( @
@@
_ @
,'_)@
| | @
( _)@
/_\\ @
@@
@
@
__ @
/o )@
\\__\\@
_|/@@
_ @
( ) @
| |_ @
( _ )@
/_\\||@
@@
_ @
(_)@
_ @
( )@
/_\\@
@@
_ @
(_)@
_ @
( )@
| |@
/_/@@
_ @
( ) @
| | _ @
( _'( @
/_\\\\_|@
@@
_ @
( )@
| |@
( )@
/_\\@
@@
@
@
__ __ @
( _\`'_ )@
/_\\\`'/_\\@
@@
@
@
____ @
( __ )@
/_\\/_\\@
@@
@
@
___ @
( o )@
\\_/ @
@@
@
@
___ @
( o \\@
/ __/@
|_| @@
@
@
___ @
/ o )@
\\__ \\@
|_|@@
@
@
__ @
( _)@
/_\\$@
@@
@
@
__ @
(_' @
/__)@
@@
_ @
( ) @
| | @
( _)@
/_\\ @
@@
@
@
_ _ @
( U )@
/___\\@
@@
@
@
_ _ @
( V )@
\\_/ @
@@
@
@
_ _ _ @
( V V )@
\\_^_/ @
@@
@
@
__ __@
\\ V /@
/_^_\\@
@@
@
@
_ _ @
( V )@
) / @
/_/ @@
@
@
__ @
(_ ) @
/__\\@
@@
_ @
/ )@
_) )@
(_ ( @
) )@
\\_\\@@
_ @
( )@
| |@
( )@
| \\@
|_|@@
_ @
( \\ @
( (_ @
) _)@
( ( @
/_/ @@
__ __ @
(_(\\)_)@
$$ @
$$ @
$$ @
@@
()() @
( ) @
/o \\ @
( __ )@
/_\\/_\\@
@@
()() @
( ) @
/ \\ @
( O )@
\\__/ @
@@
()() @
( )( )@
| || |@
( L| )@
/____\\@
@@
@
O O @
___ @
( o )@
/_^_\\@
@@
@
O O @
___ @
( o )@
\\_/ @
@@
@
O O @
_ _ @
( U )@
/___\\@
@@
___ @
( o ) @
| \\ @
( O )@
/ _/ @
|_| @@
`
@@ -0,0 +1,4 @@
// Default to a dummy "batch" implementation that just runs the callback
export function defaultNoopBatch(callback: () => void) {
callback()
}
@@ -0,0 +1,29 @@
{
"name": "yallist",
"version": "4.0.0",
"description": "Yet Another Linked List",
"main": "yallist.js",
"directories": {
"test": "test"
},
"files": [
"yallist.js",
"iterator.js"
],
"dependencies": {},
"devDependencies": {
"tap": "^12.1.0"
},
"scripts": {
"test": "tap test/*.js --100",
"preversion": "npm test",
"postversion": "npm publish",
"postpublish": "git push origin --all; git push origin --tags"
},
"repository": {
"type": "git",
"url": "git+https://github.com/isaacs/yallist.git"
},
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
"license": "ISC"
}
@@ -0,0 +1 @@
{"name":"@react-types/grid","version":"3.3.6","requiresBuild":false,"files":{"LICENSE":{"checkedAt":1794532120043,"integrity":"sha512-cil7stSp3ik41Hdv2Dj+GMcbvUfs1q+MZ2Yte0804py9i6oJJN/diCiIr/brcQOZ5ZqwAI6dgaHA7l8FZheQBw==","mode":420,"size":11335},"package.json":{"checkedAt":1794532120043,"integrity":"sha512-V71pNMaKO7xficEyvHzPrSj3ej0R4WxSdVP3JHMpOZYFfjg9Iq4B1BvexkLcS/9acdN61owi5pzVxhrttUeOIQ==","mode":420,"size":522},"README.md":{"checkedAt":1794532120043,"integrity":"sha512-Zc5KbSc1qVxxSQGnMfvFYE/CKHtHqWaRDcb/nOho4p4UdY9bHlz4SvlBQKl/oxTDvqaTzKAyX3TnKQztu6NDGg==","mode":420,"size":135},"src/index.d.ts":{"checkedAt":1794532120044,"integrity":"sha512-rKQsmODzIrB6Hb1/IQ7K33ylxoc+MV09snthpZGur7nckxxn24VcWVqjm/ruOhmU9oJI++rPUeq6q3Ma7ub3MQ==","mode":420,"size":1501}}}
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=request_scope.int.spec.d.ts.map
@@ -0,0 +1 @@
{"name":"vinyl-fs","version":"3.0.3","requiresBuild":false,"files":{"package.json":{"checkedAt":1794532122870,"integrity":"sha512-szMGNpcdnjAeseLpJhGoHAPHdw98cDxhcn4DwdeCTfJYa0QoKJupZofCLEgYFn8N1p1ruFzS+bixjhwu67JjEw==","mode":420,"size":1667},"index.js":{"checkedAt":1794532122871,"integrity":"sha512-EMaIIdchQ4/ExVwTZhhaFJppZhxujSM5J7ewqCzB+EmsSfjNJpvtrMS5DsNEBz9E9pB7sD5jSKKsbsi43a7hTA==","mode":420,"size":134},"LICENSE":{"checkedAt":1794532122871,"integrity":"sha512-YreReZAMP2xiv77JgaoNszaZztJ0Ha1r0O+GtONv/YTN6eJwWohKaBB9gBl8mc1HzKGj7HdPdNPJUUc4Hhy5HQ==","mode":420,"size":1169},"README.md":{"checkedAt":1794532122871,"integrity":"sha512-qHqoO+K1z90r+roYssNQ8Wdip9zSLjR2bfZpAjK24tvlkwn1ur4mswTPS4QQmsl1fgcjbZGavfTN8KzAWJln/A==","mode":420,"size":12588},"lib/constants.js":{"checkedAt":1794532122871,"integrity":"sha512-4hW+6i1jA7gmcyCJURa8olYYzyH+DlQUGF6AiZPL7pV7stuCCBWpmPrOG1g0DU+6Gz2fiqz4ohBlhAj3e/QyeQ==","mode":420,"size":113},"lib/dest/index.js":{"checkedAt":1794532122871,"integrity":"sha512-f66OU0JOP0/uFGwO2seAgUEuDluylPlDpbnnKE8DsOsX1B/0amhKSVebEBKJdQRhVgp0dno0KJdN2CO8OTbScQ==","mode":420,"size":1113},"lib/dest/options.js":{"checkedAt":1794532122871,"integrity":"sha512-ApZ8mgJExo4+CpE8P2fULFbKMMM+qoh3sFlF5LYYm0m3lpIshhZCkI0ZG0xFG8kHPg1XmyppqeMt0td0DWU5mQ==","mode":420,"size":674},"lib/dest/prepare.js":{"checkedAt":1794532122872,"integrity":"sha512-UqQQ9dMZtlkYoolMEsxi87qBMvb0PX1y5BauWLWMXuN7WYT+PKjzclnZJlLDjZTs749w2onDwJm3Kmh4x/0AyQ==","mode":420,"size":1273},"lib/dest/sourcemap.js":{"checkedAt":1794532122872,"integrity":"sha512-hviuDcTUds1H94nAXRpPefGyvNSHYqKEqj2gID+hJGJt88j2H2SG/sJP5b5tHa72WumrRwDMLma0OobnVKnMYg==","mode":420,"size":798},"lib/dest/write-contents/index.js":{"checkedAt":1794532122872,"integrity":"sha512-a6z0V6spTVUk1JAYS6ewFj65CpTmaOxGdYjHpacEfPViJXYEHO18NAKfOTky0rpAVUyZl9yqOILWvcvUEqxHjw==","mode":420,"size":1452},"lib/dest/write-contents/write-buffer.js":{"checkedAt":1794532122872,"integrity":"sha512-W9TKYKxDIfMCMmX0XvpJFL1z//ebBy1nuEtIpPcpCpwbZNAqP+WJTmd7U0V57UUwaCmm7XzjkF9VMrQjRqb9Rw==","mode":420,"size":658},"lib/dest/write-contents/write-dir.js":{"checkedAt":1794532122872,"integrity":"sha512-jKTtnFugDx6NrYQTnI185HDsaDSDi5I8/TeC2btdODcWqwP6pHW94HDi0mmg/PkQHV7IFw7fhsos6zPEmXQBiQ==","mode":420,"size":927},"lib/dest/write-contents/write-stream.js":{"checkedAt":1794532122872,"integrity":"sha512-LUWt74A0/8/7Yx1BMUSpFk+k38FbnOUha873r9gXfyRy192xj6I6ARSJ/hI7Smy1m1YgQwaB0kijTU+xxrNiCg==","mode":420,"size":1683},"lib/dest/write-contents/write-symbolic-link.js":{"checkedAt":1794532122872,"integrity":"sha512-WDVGTVWl8IMUqsgkb6hRqxGtTPVxb01sSdoRJedssR2wVnG5wckKLgW+KYudXLSzuPxicXqnYMWKUQCJOPlLEQ==","mode":420,"size":2411},"lib/file-operations.js":{"checkedAt":1794532122873,"integrity":"sha512-d5PJH+Pv+wpCnFueCHzqVzCfGd9bpL5mfFbX3A0WCVR3zhdkCM/YjSw6H4cBD+VHoqZYIUbvIWmqlIXqsIW+Fg==","mode":420,"size":10570},"lib/src/index.js":{"checkedAt":1794532122873,"integrity":"sha512-0kqUZ/Xq0Vmr6NkhhSNXb47p5ygYlK53Pc9eq0nLc6PRnrwA7BKuLqNTyYgGKYayt6erDhlqI95CsXUCptwrNQ==","mode":420,"size":926},"lib/src/options.js":{"checkedAt":1794532122873,"integrity":"sha512-PaXNAzZLfcqu5kJyKmz+e8Moj6c3cKXomfOlcnO1303o3CrQwVeK+perQSY6kVKnPjFRDMJk//CS2Zw4MJWLtQ==","mode":420,"size":393},"lib/src/prepare.js":{"checkedAt":1794532122873,"integrity":"sha512-euwOzbdL2xv/fXGSFM2Bq7rMLmufNfhCTIBVnW7gvqaiqzXVGJ8kW05rJdM3ELumPGYwuyb2e4uvf9ElMSy07A==","mode":420,"size":444},"lib/src/read-contents/index.js":{"checkedAt":1794532122873,"integrity":"sha512-dz69swX242la7pOBTQCiWrgP11bqOEERhgRbD4R6IRMYOV8h98Hir0F9N4W+nrqHYxSaO4S02ft+pV0COJOAhQ==","mode":420,"size":1360},"lib/src/read-contents/read-buffer.js":{"checkedAt":1794532122873,"integrity":"sha512-nPOSTe0Tein8MrY6EctjlJIe0CrX94PYykLj+w6F05BmKfQeT58suresAMddaMeRgPoB9bYSP2rdgofopNFAYg==","mode":420,"size":508},"lib/src/read-contents/read-dir.js":{"checkedAt":1794532122873,"integrity":"sha512-V9Y+mU0up3NVpWdlEZ6bncxKlwJ0yDwqQd43SCfF7J+5+liQ4xbF6ykmKwkw4CMKfEB10C3O5tgokY3KJEmeug==","mode":420,"size":126},"lib/src/read-contents/read-stream.js":{"checkedAt":1794532122874,"integrity":"sha512-ApGkf/nymgTZYIKPK9LSZZkGNbmhorgfgZhIVA/efJx4cEtTSUo2AfC4KvFQR9jssg+/N22jAzf/hy6OpnmyLg==","mode":420,"size":690},"lib/src/read-contents/read-symbolic-link.js":{"checkedAt":1794532122874,"integrity":"sha512-MYRysb3NKCQo9JHuyeedW7FH0NLgghS9GCacSEAUZPZ84fk6Gntkr5Biy5QmCgwkTth/83PpZ7I8Rvd3fQaugg==","mode":420,"size":342},"lib/src/resolve-symlinks.js":{"checkedAt":1794532122874,"integrity":"sha512-Fnee6HmY+wuXlrPyyQ/9s/TWiKewvw/EcrdU6PATKTXfj8daUDIw70pmUy9gORBk2QedV4iuDMP0LTjsbYBI+w==","mode":420,"size":803},"lib/src/sourcemap.js":{"checkedAt":1794532122874,"integrity":"sha512-uNHExZd7eeVasD3Hqz8ovdWSah3SgCquU+ReaYxWLJ7eapRYThbY2NokbppJapmhYrDvSZfFTW1dFflXYQmCjg==","mode":420,"size":577},"lib/src/wrap-vinyl.js":{"checkedAt":1794532122874,"integrity":"sha512-iNlCmXsN4Exv+B4xeF4jxvUglI/Bbg2cfPuiAu0LsTSke87IarVPekLCzQTZDSZJCw7oOlQz/yhtb1sllY6kkA==","mode":420,"size":282},"lib/symlink/index.js":{"checkedAt":17945Line truncated
@@ -0,0 +1,51 @@
# ms
[![Build Status](https://travis-ci.org/zeit/ms.svg?branch=master)](https://travis-ci.org/zeit/ms)
[![Slack Channel](http://zeit-slackin.now.sh/badge.svg)](https://zeit.chat/)
Use this package to easily convert various time formats to milliseconds.
## Examples
```js
ms('2 days') // 172800000
ms('1d') // 86400000
ms('10h') // 36000000
ms('2.5 hrs') // 9000000
ms('2h') // 7200000
ms('1m') // 60000
ms('5s') // 5000
ms('1y') // 31557600000
ms('100') // 100
```
### Convert from milliseconds
```js
ms(60000) // "1m"
ms(2 * 60000) // "2m"
ms(ms('10 hours')) // "10h"
```
### Time format written-out
```js
ms(60000, { long: true }) // "1 minute"
ms(2 * 60000, { long: true }) // "2 minutes"
ms(ms('10 hours'), { long: true }) // "10 hours"
```
## Features
- Works both in [node](https://nodejs.org) and in the browser.
- If a number is supplied to `ms`, a string with a unit is returned.
- If a string that contains the number is supplied, it returns it as a number (e.g.: it returns `100` for `'100'`).
- If you pass a string with a number and a valid unit, the number of equivalent ms is returned.
## Caught a bug?
1. [Fork](https://help.github.com/articles/fork-a-repo/) this repository to your own GitHub account and then [clone](https://help.github.com/articles/cloning-a-repository/) it to your local device
2. Link the package to the global module directory: `npm link`
3. Within the module you want to test your local development instance of ms, just link it to the dependencies: `npm link ms`. Instead of the default one from npm, node will now use your clone of ms!
As always, you can run the tests using: `npm test`
@@ -0,0 +1,299 @@
import { expect, expectTypeOf, test } from "vitest";
import * as z from "zod/v4-mini";
const FAIL = { success: false };
test("z.string", async () => {
const a = z.string();
expect(z.parse(a, "hello")).toEqual("hello");
expect(() => z.parse(a, 123)).toThrow();
expect(() => z.parse(a, false)).toThrow();
type a = z.infer<typeof a>;
expectTypeOf<a>().toEqualTypeOf<string>();
});
// test("z.string with description", () => {
// const a = z.string({ description: "string description" });
// a._def;
// expect(a._def.description).toEqual("string description");
// });
test("z.string with custom error", () => {
const a = z.string({ error: () => "BAD" });
expect(z.safeParse(a, 123).error!.issues[0].message).toEqual("BAD");
});
test("inference in checks", () => {
const a = z.string().check(z.refine((val) => val.length));
z.parse(a, "___");
expect(() => z.parse(a, "")).toThrow();
const b = z.string().check(z.refine((val) => val.length));
z.parse(b, "___");
expect(() => z.parse(b, "")).toThrow();
const c = z.string().check(z.refine((val) => val.length));
z.parse(c, "___");
expect(() => z.parse(c, "")).toThrow();
const d = z.string().check(z.refine((val) => val.length));
z.parse(d, "___");
expect(() => z.parse(d, "")).toThrow();
});
test("z.string async", async () => {
// async
const a = z.string().check(z.refine(async (val) => val.length));
expect(await z.parseAsync(a, "___")).toEqual("___");
await expect(() => z.parseAsync(a, "")).rejects.toThrowError();
});
test("z.uuid", () => {
const a = z.uuid();
// parse uuid
z.parse(a, "550e8400-e29b-41d4-a716-446655440000");
z.parse(a, "550e8400-e29b-61d4-a716-446655440000");
// bad uuid
expect(() => z.parse(a, "hello")).toThrow();
// wrong type
expect(() => z.parse(a, 123)).toThrow();
const b = z.uuidv4();
z.parse(b, "550e8400-e29b-41d4-a716-446655440000");
expect(z.safeParse(b, "550e8400-e29b-61d4-a716-446655440000")).toMatchObject(FAIL);
const c = z.uuidv6();
z.parse(c, "550e8400-e29b-61d4-a716-446655440000");
expect(z.safeParse(c, "550e8400-e29b-41d4-a716-446655440000")).toMatchObject(FAIL);
const d = z.uuidv7();
z.parse(d, "550e8400-e29b-71d4-a716-446655440000");
expect(z.safeParse(d, "550e8400-e29b-41d4-a716-446655440000")).toMatchObject(FAIL);
expect(z.safeParse(d, "550e8400-e29b-61d4-a716-446655440000")).toMatchObject(FAIL);
});
test("z.email", () => {
const a = z.email();
expect(z.parse(a, "test@test.com")).toEqual("test@test.com");
expect(() => z.parse(a, "test")).toThrow();
expect(z.safeParse(a, "bad email", { error: () => "bad email" }).error!.issues[0].message).toEqual("bad email");
const b = z.email("bad email");
expect(z.safeParse(b, "bad email").error!.issues[0].message).toEqual("bad email");
const c = z.email({ error: "bad email" });
expect(z.safeParse(c, "bad email").error!.issues[0].message).toEqual("bad email");
const d = z.email({ error: () => "bad email" });
expect(z.safeParse(d, "bad email").error!.issues[0].message).toEqual("bad email");
});
test("z.url", () => {
const a = z.url();
// valid URLs
expect(a.parse("http://example.com")).toEqual("http://example.com");
expect(a.parse("https://example.com")).toEqual("https://example.com");
expect(a.parse("ftp://example.com")).toEqual("ftp://example.com");
expect(a.parse("http://sub.example.com")).toEqual("http://sub.example.com");
expect(a.parse("https://example.com/path?query=123#fragment")).toEqual("https://example.com/path?query=123#fragment");
expect(a.parse("http://localhost")).toEqual("http://localhost");
expect(a.parse("https://localhost")).toEqual("https://localhost");
expect(a.parse("http://localhost:3000")).toEqual("http://localhost:3000");
expect(a.parse("https://localhost:3000")).toEqual("https://localhost:3000");
// test trimming
expect(a.parse(" http://example.com ")).toEqual("http://example.com");
expect(a.parse(" http://example.com/")).toEqual("http://example.com/");
expect(a.parse(" http://example.com")).toEqual("http://example.com");
expect(a.parse(" http://example.com//")).toEqual("http://example.com//");
// invalid URLs
expect(() => a.parse("not-a-url")).toThrow();
// expect(() => a.parse("http:/example.com")).toThrow();
expect(() => a.parse("://example.com")).toThrow();
expect(() => a.parse("http://")).toThrow();
expect(() => a.parse("example.com")).toThrow();
// wrong type
expect(() => a.parse(123)).toThrow();
expect(() => a.parse(null)).toThrow();
expect(() => a.parse(undefined)).toThrow();
});
test("z.url with optional hostname regex", () => {
const a = z.url({ hostname: /example\.com$/ });
expect(a.parse("http://example.com")).toEqual("http://example.com");
expect(a.parse("https://sub.example.com")).toEqual("https://sub.example.com");
expect(() => a.parse("http://examples.com")).toThrow();
expect(() => a.parse("http://example.org")).toThrow();
expect(() => a.parse("asdf")).toThrow();
});
test("z.url - file urls", () => {
// file URLs
const a = z.url({ hostname: /.*/ }); // allow any hostname
expect(a.parse("file:///path/to/file.txt")).toEqual("file:///path/to/file.txt");
expect(a.parse("file:///C:/path/to/file.txt")).toEqual("file:///C:/path/to/file.txt");
expect(a.parse("file:///C:/path/to/file.txt?query=123#fragment")).toEqual(
"file:///C:/path/to/file.txt?query=123#fragment"
);
});
test("z.url with optional protocol regex", () => {
const a = z.url({ protocol: /^https?$/ });
expect(a.parse("http://example.com")).toEqual("http://example.com");
expect(a.parse("https://example.com")).toEqual("https://example.com");
expect(() => a.parse("ftp://example.com")).toThrow();
expect(() => a.parse("mailto:example@example.com")).toThrow();
expect(() => a.parse("asdf")).toThrow();
});
test("z.url with both hostname and protocol regexes", () => {
const a = z.url({ hostname: /example\.com$/, protocol: /^https$/ });
expect(a.parse("https://example.com")).toEqual("https://example.com");
expect(a.parse("https://sub.example.com")).toEqual("https://sub.example.com");
expect(() => a.parse("http://example.com")).toThrow();
expect(() => a.parse("https://example.org")).toThrow();
expect(() => a.parse("ftp://example.com")).toThrow();
expect(() => a.parse("asdf")).toThrow();
});
test("z.url with invalid regex patterns", () => {
const a = z.url({ hostname: /a+$/, protocol: /^ftp$/ });
a.parse("ftp://a");
a.parse("ftp://aaaaaaaa");
expect(() => a.parse("http://aaa")).toThrow();
expect(() => a.parse("https://example.com")).toThrow();
expect(() => a.parse("ftp://asdfasdf")).toThrow();
expect(() => a.parse("ftp://invalid")).toThrow();
});
test("z.emoji", () => {
const a = z.emoji();
expect(z.parse(a, "😀")).toEqual("😀");
expect(() => z.parse(a, "hello")).toThrow();
});
test("z.nanoid", () => {
const a = z.nanoid();
expect(z.parse(a, "8FHZpIxleEK3axQRBNNjN")).toEqual("8FHZpIxleEK3axQRBNNjN");
expect(() => z.parse(a, "abc")).toThrow();
});
test("z.cuid", () => {
const a = z.cuid();
expect(z.parse(a, "cixs7y0c0000f7x3b1z6m3w6r")).toEqual("cixs7y0c0000f7x3b1z6m3w6r");
expect(() => z.parse(a, "abc")).toThrow();
});
test("z.cuid2", () => {
const a = z.cuid2();
expect(z.parse(a, "cixs7y0c0000f7x3b1z6m3w6r")).toEqual("cixs7y0c0000f7x3b1z6m3w6r");
expect(() => z.parse(a, 123)).toThrow();
});
test("z.ulid", () => {
const a = z.ulid();
expect(z.parse(a, "01ETGRM9QYVX6S9V2F3B6JXG4N")).toEqual("01ETGRM9QYVX6S9V2F3B6JXG4N");
expect(() => z.parse(a, "abc")).toThrow();
});
test("z.xid", () => {
const a = z.xid();
expect(z.parse(a, "9m4e2mr0ui3e8a215n4g")).toEqual("9m4e2mr0ui3e8a215n4g");
expect(() => z.parse(a, "abc")).toThrow();
});
test("z.ksuid", () => {
const a = z.ksuid();
expect(z.parse(a, "2naeRjTrrHJAkfd3tOuEjw90WCA")).toEqual("2naeRjTrrHJAkfd3tOuEjw90WCA");
expect(() => z.parse(a, "abc")).toThrow();
});
// test("z.ip", () => {
// const a = z.ip();
// expect(z.parse(a, "127.0.0.1")).toEqual("127.0.0.1");
// expect(z.parse(a, "2001:0db8:85a3:0000:0000:8a2e:0370:7334")).toEqual("2001:0db8:85a3:0000:0000:8a2e:0370:7334");
// expect(() => z.parse(a, "abc")).toThrow();
// });
test("z.ipv4", () => {
const a = z.ipv4();
// valid ipv4
expect(z.parse(a, "192.168.1.1")).toEqual("192.168.1.1");
expect(z.parse(a, "255.255.255.255")).toEqual("255.255.255.255");
// invalid ipv4
expect(() => z.parse(a, "999.999.999.999")).toThrow();
expect(() => z.parse(a, "256.256.256.256")).toThrow();
expect(() => z.parse(a, "192.168.1")).toThrow();
expect(() => z.parse(a, "hello")).toThrow();
// wrong type
expect(() => z.parse(a, 123)).toThrow();
});
test("z.ipv6", () => {
const a = z.ipv6();
// valid ipv6
expect(z.parse(a, "2001:0db8:85a3:0000:0000:8a2e:0370:7334")).toEqual("2001:0db8:85a3:0000:0000:8a2e:0370:7334");
expect(z.parse(a, "::1")).toEqual("::1");
// invalid ipv6
expect(() => z.parse(a, "2001:db8::85a3::8a2e:370:7334")).toThrow();
expect(() => z.parse(a, "2001:db8:85a3:0:0:8a2e:370g:7334")).toThrow();
expect(() => z.parse(a, "hello")).toThrow();
// wrong type
expect(() => z.parse(a, 123)).toThrow();
});
test("z.base64", () => {
const a = z.base64();
// valid base64
expect(z.parse(a, "SGVsbG8gd29ybGQ=")).toEqual("SGVsbG8gd29ybGQ=");
expect(z.parse(a, "U29tZSBvdGhlciBzdHJpbmc=")).toEqual("U29tZSBvdGhlciBzdHJpbmc=");
// invalid base64
expect(() => z.parse(a, "SGVsbG8gd29ybGQ")).toThrow();
expect(() => z.parse(a, "U29tZSBvdGhlciBzdHJpbmc")).toThrow();
expect(() => z.parse(a, "hello")).toThrow();
// wrong type
expect(() => z.parse(a, 123)).toThrow();
});
// test("z.jsonString", () => {
// const a = z.jsonString();
// // valid JSON string
// expect(z.parse(a, '{"key":"value"}')).toEqual('{"key":"value"}');
// expect(z.parse(a, '["item1", "item2"]')).toEqual('["item1", "item2"]');
// // invalid JSON string
// expect(() => z.parse(a, '{"key":value}')).toThrow();
// expect(() => z.parse(a, '["item1", "item2"')).toThrow();
// expect(() => z.parse(a, "hello")).toThrow();
// // wrong type
// expect(() => z.parse(a, 123)).toThrow();
// });
test("z.e164", () => {
const a = z.e164();
// valid e164
expect(z.parse(a, "+1234567890")).toEqual("+1234567890");
expect(z.parse(a, "+19876543210")).toEqual("+19876543210");
// invalid e164
expect(() => z.parse(a, "1234567890")).toThrow();
expect(() => z.parse(a, "+12345")).toThrow();
expect(() => z.parse(a, "hello")).toThrow();
// wrong type
expect(() => z.parse(a, 123)).toThrow();
});
test("z.jwt", () => {
const a = z.jwt();
// valid jwt
expect(
z.parse(
a,
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
)
).toEqual(
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
);
// invalid jwt
expect(() => z.parse(a, "invalid.jwt.token")).toThrow();
expect(() => z.parse(a, "hello")).toThrow();
// wrong type
expect(() => z.parse(a, 123)).toThrow();
});
@@ -0,0 +1 @@
{"version":3,"file":"buildEmptySetMetadata.spec.d.ts","sourceRoot":"","sources":["../../../../src/reflectMetadata/utils/buildEmptySetMetadata.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
{"mappings":";;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;AAcM,SAAS,0CAAe,IAAY;IACzC,OAAQ;QACN,KAAK;YACH,OAAO,IAAI,CAAA,GAAA,yCAAe;QAC5B,KAAK;YACH,OAAO,IAAI,CAAA,GAAA,yCAAe;QAC5B,KAAK;YACH,OAAO,IAAI,CAAA,GAAA,yCAAwB;QACrC,KAAK;YACH,OAAO,IAAI,CAAA,GAAA,yCAAa;QAC1B,KAAK;YACH,OAAO,IAAI,CAAA,GAAA,wCAAa;QAC1B,KAAK;YACH,OAAO,IAAI,CAAA,GAAA,yCAAa;QAC1B,KAAK;YACH,OAAO,IAAI,CAAA,GAAA,yCAAmB;QAChC,KAAK;YACH,OAAO,IAAI,CAAA,GAAA,yCAAqB;QAClC,KAAK;YACH,OAAO,IAAI,CAAA,GAAA,yCAAsB;QACnC,KAAK;YACH,OAAO,IAAI,CAAA,GAAA,yCAAe;QAC5B,KAAK;YACH,OAAO,IAAI,CAAA,GAAA,yCAAc;QAC3B,KAAK;YACH,OAAO,IAAI,CAAA,GAAA,yCAAa;QAC1B,KAAK;QACL;YACE,OAAO,IAAI,CAAA,GAAA,yCAAgB;IAC/B;AACF","sources":["packages/@internationalized/date/src/createCalendar.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 {BuddhistCalendar} from './calendars/BuddhistCalendar';\nimport {Calendar} from './types';\nimport {CopticCalendar, EthiopicAmeteAlemCalendar, EthiopicCalendar} from './calendars/EthiopicCalendar';\nimport {GregorianCalendar} from './calendars/GregorianCalendar';\nimport {HebrewCalendar} from './calendars/HebrewCalendar';\nimport {IndianCalendar} from './calendars/IndianCalendar';\nimport {IslamicCivilCalendar, IslamicTabularCalendar, IslamicUmalquraCalendar} from './calendars/IslamicCalendar';\nimport {JapaneseCalendar} from './calendars/JapaneseCalendar';\nimport {PersianCalendar} from './calendars/PersianCalendar';\nimport {TaiwanCalendar} from './calendars/TaiwanCalendar';\n\n/** Creates a `Calendar` instance from a Unicode calendar identifier string. */\nexport function createCalendar(name: string): Calendar {\n switch (name) {\n case 'buddhist':\n return new BuddhistCalendar();\n case 'ethiopic':\n return new EthiopicCalendar();\n case 'ethioaa':\n return new EthiopicAmeteAlemCalendar();\n case 'coptic':\n return new CopticCalendar();\n case 'hebrew':\n return new HebrewCalendar();\n case 'indian':\n return new IndianCalendar();\n case 'islamic-civil':\n return new IslamicCivilCalendar();\n case 'islamic-tbla':\n return new IslamicTabularCalendar();\n case 'islamic-umalqura':\n return new IslamicUmalquraCalendar();\n case 'japanese':\n return new JapaneseCalendar();\n case 'persian':\n return new PersianCalendar();\n case 'roc':\n return new TaiwanCalendar();\n case 'gregory':\n default:\n return new GregorianCalendar();\n }\n}\n"],"names":[],"version":3,"file":"createCalendar.module.js.map"}
@@ -0,0 +1,45 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var jitter_factory_1 = require("../jitter/jitter.factory");
var Delay = /** @class */ (function () {
function Delay(options) {
this.options = options;
this.attempt = 0;
}
Delay.prototype.apply = function () {
var _this = this;
return new Promise(function (resolve) { return setTimeout(resolve, _this.jitteredDelay); });
};
Delay.prototype.setAttemptNumber = function (attempt) {
this.attempt = attempt;
};
Object.defineProperty(Delay.prototype, "jitteredDelay", {
get: function () {
var jitter = jitter_factory_1.JitterFactory(this.options);
return jitter(this.delay);
},
enumerable: true,
configurable: true
});
Object.defineProperty(Delay.prototype, "delay", {
get: function () {
var constant = this.options.startingDelay;
var base = this.options.timeMultiple;
var power = this.numOfDelayedAttempts;
var delay = constant * Math.pow(base, power);
return Math.min(delay, this.options.maxDelay);
},
enumerable: true,
configurable: true
});
Object.defineProperty(Delay.prototype, "numOfDelayedAttempts", {
get: function () {
return this.attempt;
},
enumerable: true,
configurable: true
});
return Delay;
}());
exports.Delay = Delay;
//# sourceMappingURL=delay.base.js.map
@@ -0,0 +1,25 @@
var $9a5a7b8408290694$exports = require("./MessageDictionary.main.js");
var $7a31ee9993c13f0b$exports = require("./MessageFormatter.main.js");
function $parcel$export(e, n, v, s) {
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
}
$parcel$export(module.exports, "MessageDictionary", () => $9a5a7b8408290694$exports.MessageDictionary);
$parcel$export(module.exports, "MessageFormatter", () => $7a31ee9993c13f0b$exports.MessageFormatter);
/*
* Copyright 2020 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
//# sourceMappingURL=main.js.map
@@ -0,0 +1,184 @@
import type { $ZodStringFormats } from "../core/checks.js";
import type * as errors from "../core/errors.js";
import * as util from "../core/util.js";
function getBelarusianPlural(count: number, one: string, few: string, many: string): string {
const absCount = Math.abs(count);
const lastDigit = absCount % 10;
const lastTwoDigits = absCount % 100;
if (lastTwoDigits >= 11 && lastTwoDigits <= 19) {
return many;
}
if (lastDigit === 1) {
return one;
}
if (lastDigit >= 2 && lastDigit <= 4) {
return few;
}
return many;
}
interface BelarusianSizable {
unit: {
one: string;
few: string;
many: string;
};
verb: string;
}
const error: () => errors.$ZodErrorMap = () => {
const Sizable: Record<string, BelarusianSizable> = {
string: {
unit: {
one: "сімвал",
few: "сімвалы",
many: "сімвалаў",
},
verb: "мець",
},
array: {
unit: {
one: "элемент",
few: "элементы",
many: "элементаў",
},
verb: "мець",
},
set: {
unit: {
one: "элемент",
few: "элементы",
many: "элементаў",
},
verb: "мець",
},
file: {
unit: {
one: "байт",
few: "байты",
many: "байтаў",
},
verb: "мець",
},
};
function getSizing(origin: string): BelarusianSizable | null {
return Sizable[origin] ?? null;
}
const parsedType = (data: any): string => {
const t = typeof data;
switch (t) {
case "number": {
return Number.isNaN(data) ? "NaN" : "лік";
}
case "object": {
if (Array.isArray(data)) {
return "масіў";
}
if (data === null) {
return "null";
}
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
return data.constructor.name;
}
}
}
return t;
};
const Nouns: {
[k in $ZodStringFormats | (string & {})]?: string;
} = {
regex: "увод",
email: "email адрас",
url: "URL",
emoji: "эмодзі",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "ISO дата і час",
date: "ISO дата",
time: "ISO час",
duration: "ISO працягласць",
ipv4: "IPv4 адрас",
ipv6: "IPv6 адрас",
cidrv4: "IPv4 дыяпазон",
cidrv6: "IPv6 дыяпазон",
base64: "радок у фармаце base64",
base64url: "радок у фармаце base64url",
json_string: "JSON радок",
e164: "нумар E.164",
jwt: "JWT",
template_literal: "увод",
};
return (issue) => {
switch (issue.code) {
case "invalid_type":
return `Няправільны ўвод: чакаўся ${issue.expected}, атрымана ${parsedType(issue.input)}`;
case "invalid_value":
if (issue.values.length === 1) return `Няправільны ўвод: чакалася ${util.stringifyPrimitive(issue.values[0])}`;
return `Няправільны варыянт: чакаўся адзін з ${util.joinValues(issue.values, "|")}`;
case "too_big": {
const adj = issue.inclusive ? "<=" : "<";
const sizing = getSizing(issue.origin);
if (sizing) {
const maxValue = Number(issue.maximum);
const unit = getBelarusianPlural(maxValue, sizing.unit.one, sizing.unit.few, sizing.unit.many);
return `Занадта вялікі: чакалася, што ${issue.origin ?? "значэнне"} павінна ${sizing.verb} ${adj}${issue.maximum.toString()} ${unit}`;
}
return `Занадта вялікі: чакалася, што ${issue.origin ?? "значэнне"} павінна быць ${adj}${issue.maximum.toString()}`;
}
case "too_small": {
const adj = issue.inclusive ? ">=" : ">";
const sizing = getSizing(issue.origin);
if (sizing) {
const minValue = Number(issue.minimum);
const unit = getBelarusianPlural(minValue, sizing.unit.one, sizing.unit.few, sizing.unit.many);
return `Занадта малы: чакалася, што ${issue.origin} павінна ${sizing.verb} ${adj}${issue.minimum.toString()} ${unit}`;
}
return `Занадта малы: чакалася, што ${issue.origin} павінна быць ${adj}${issue.minimum.toString()}`;
}
case "invalid_format": {
const _issue = issue as errors.$ZodStringFormatIssues;
if (_issue.format === "starts_with") return `Няправільны радок: павінен пачынацца з "${_issue.prefix}"`;
if (_issue.format === "ends_with") return `Няправільны радок: павінен заканчвацца на "${_issue.suffix}"`;
if (_issue.format === "includes") return `Няправільны радок: павінен змяшчаць "${_issue.includes}"`;
if (_issue.format === "regex") return `Няправільны радок: павінен адпавядаць шаблону ${_issue.pattern}`;
return `Няправільны ${Nouns[_issue.format] ?? issue.format}`;
}
case "not_multiple_of":
return `Няправільны лік: павінен быць кратным ${issue.divisor}`;
case "unrecognized_keys":
return `Нераспазнаны ${issue.keys.length > 1 ? "ключы" : "ключ"}: ${util.joinValues(issue.keys, ", ")}`;
case "invalid_key":
return `Няправільны ключ у ${issue.origin}`;
case "invalid_union":
return "Няправільны ўвод";
case "invalid_element":
return `Няправільнае значэнне ў ${issue.origin}`;
default:
return `Няправільны ўвод`;
}
};
};
export default function (): { localeError: errors.$ZodErrorMap } {
return {
localeError: error(),
};
}
@@ -0,0 +1,26 @@
import { expect, expectTypeOf, test } from "vitest";
import * as z from "zod/v4";
test("check any inference", () => {
const t1 = z.any();
t1.optional();
t1.nullable();
type t1 = z.infer<typeof t1>;
expectTypeOf<t1>().toEqualTypeOf<any>();
});
test("check unknown inference", () => {
const t1 = z.unknown();
t1.optional();
t1.nullable();
type t1 = z.infer<typeof t1>;
expectTypeOf<t1>().toEqualTypeOf<unknown>();
});
test("check never inference", () => {
const t1 = z.never();
expect(() => t1.parse(undefined)).toThrow();
expect(() => t1.parse("asdf")).toThrow();
expect(() => t1.parse(null)).toThrow();
});
@@ -0,0 +1,5 @@
import 'reflect-metadata';
export { Newable, LazyServiceIdentifier, ServiceIdentifier, } from '@inversifyjs/common';
export { Bind, BindInFluentSyntax, BindingIdentifier, BindInWhenOnFluentSyntax, BindOnFluentSyntax, BindToFluentSyntax, BindWhenFluentSyntax, BindWhenOnFluentSyntax, BoundServiceSyntax, Container, ContainerModule, ContainerModuleLoadOptions, ContainerOptions, IsBound, IsBoundOptions, MapToResolvedValueInjectOptions, OnActivation, OnDeactivation, Rebind, RebindSync, ResolvedValueInjectOptions, ResolvedValueMetadataInjectOptions, ResolvedValueMetadataInjectTagOptions, Unbind, UnbindSync, } from '@inversifyjs/container';
export { BindingActivation, BindingConstraints, BindingDeactivation, BindingScope, DynamicValueBuilder, Factory, GetAllOptions, GetOptions, GetOptionsTagConstraint, InjectFromBaseOptions, InjectFromBaseOptionsLifecycle, InjectFromHierarchyOptions, InjectFromHierarchyOptionsLifecycle, MetadataName, MetadataTag, MultiInjectOptions, OptionalGetOptions, Provider, ResolutionContext, bindingScopeValues, bindingTypeValues, decorate, inject, injectFromBase, injectFromHierarchy, injectable, multiInject, named, optional, unmanaged, tagged, postConstruct, preDestroy, } from '@inversifyjs/core';
//# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,117 @@
flf2a 1 1 3 -1 14 1 0 0
===============================================================================
This is Upside Down Text, font file made by Pat Gillespie (patorjk.com).
It was created on August 18th, 2025. The following sites were used as references:
https://www.fileformat.info/convert/text/upside-down-map.htm
https://www.namecheap.com/visual/font-generator/upside-down-text/
https://www.upsidedowntext.com/unicode
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.
===============================================================================
@
¡@
„@
#@
$@
%@
⅋@
,@
)@
(@
*@
+@
'@
-@
˙.
/@
0@
Ɩ1
ᄅ2
Ɛ3
ᔭ4
ϛ5
96
Ɫ7
8@
69
:@
؛@
>@
=@
<@
¿@
@#
∀A
B@
ↃC
ᗡD
ƎE
ℲF
⅁G
H@
I@
ſJ
⋊K
⅂L
WM
ᴎN
O@
ԀP
ΌQ
ᴚR
S@
⊥T
∩U
ᴧV
MW
X@
⅄Y
Z@
]@
\@
[@
^@
‾@
,@
ɐa
qb
ɔc
pd
ǝe
ɟf
ƃg
ɥh
ᴉi
ɾj
ʞk
l@
ɯm
un
o@
dp
bq
ɹr
s@
ʇt
nu
ʌv
ʍw
x@
ʎy
z@
}@
|@
{@
~@
Ä@
Ö@
Ü@
ä@
ö@
ü@
ß@
@@ -0,0 +1,20 @@
import toNumber from './toNumber.js';
/**
* Creates a function that performs a relational operation on two values.
*
* @private
* @param {Function} operator The function to perform the operation.
* @returns {Function} Returns the new relational operation function.
*/
function createRelationalOperation(operator) {
return function(value, other) {
if (!(typeof value == 'string' && typeof other == 'string')) {
value = toNumber(value);
other = toNumber(other);
}
return operator(value, other);
};
}
export default createRelationalOperation;
@@ -0,0 +1,34 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.extractASTNodes = extractASTNodes;
var traverse_1 = __importDefault(require("@babel/traverse"));
function extractASTNodes(ast) {
var importNodes = [];
var directives = [];
(0, traverse_1.default)(ast, {
Directive: function (path) {
// Only capture directives if they are at the top scope of the source
// and their previous siblings are all directives
if (path.parent.type === 'Program' &&
path.getAllPrevSiblings().every(function (s) {
return s.type === 'Directive';
})) {
directives.push(path.node);
// Trailing comments probably shouldn't be attached to the directive
path.node.trailingComments = null;
}
},
ImportDeclaration: function (path) {
var tsModuleParent = path.findParent(function (p) {
return p.isTSModuleDeclaration();
});
if (!tsModuleParent) {
importNodes.push(path.node);
}
},
});
return { importNodes: importNodes, directives: directives };
}
@@ -0,0 +1,59 @@
{
"name": "@heroui/form",
"version": "2.1.27",
"description": "A form is a group of inputs that allows users submit data to a server and supports field validation errors.",
"keywords": [
"form"
],
"author": "HeroUI <support@heroui.com>",
"homepage": "https://heroui.com",
"license": "MIT",
"main": "dist/index.js",
"sideEffects": false,
"files": [
"dist"
],
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/heroui-inc/heroui.git",
"directory": "packages/components/form"
},
"bugs": {
"url": "https://github.com/heroui-inc/heroui/issues"
},
"peerDependencies": {
"@heroui/system": ">=2.4.18",
"@heroui/theme": ">=2.4.17",
"react": ">=18",
"react-dom": ">=18"
},
"dependencies": {
"@react-types/shared": "3.32.1",
"@react-stately/form": "3.2.2",
"@react-types/form": "3.7.16",
"@heroui/system": "2.4.23",
"@heroui/theme": "2.4.23",
"@heroui/shared-utils": "2.1.12"
},
"clean-package": "../../../clean-package.config.json",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"./package.json": "./package.json"
},
"scripts": {
"build": "tsup src --dts",
"build:fast": "tsup src",
"dev": "pnpm build:fast --watch",
"clean": "rimraf dist .turbo",
"typecheck": "tsc --noEmit"
}
}
@@ -0,0 +1,63 @@
import {useUNSAFE_PortalContext as $96b38030c423d352$export$9fc1347d4195ccb3} from "./PortalProvider.mjs";
import {ClearPressResponder as $1CM7W$ClearPressResponder} from "@react-aria/interactions";
import {FocusScope as $1CM7W$FocusScope} from "@react-aria/focus";
import $1CM7W$react, {useState as $1CM7W$useState, useMemo as $1CM7W$useMemo, useContext as $1CM7W$useContext} from "react";
import $1CM7W$reactdom from "react-dom";
import {useIsSSR as $1CM7W$useIsSSR} from "@react-aria/ssr";
import {useLayoutEffect as $1CM7W$useLayoutEffect} from "@react-aria/utils";
/*
* Copyright 2022 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
const $337b884510726a0d$export$a2200b96afd16271 = /*#__PURE__*/ (0, $1CM7W$react).createContext(null);
function $337b884510726a0d$export$c6fdb837b070b4ff(props) {
let isSSR = (0, $1CM7W$useIsSSR)();
let { portalContainer: portalContainer = isSSR ? null : document.body, isExiting: isExiting } = props;
let [contain, setContain] = (0, $1CM7W$useState)(false);
let contextValue = (0, $1CM7W$useMemo)(()=>({
contain: contain,
setContain: setContain
}), [
contain,
setContain
]);
let { getContainer: getContainer } = (0, $96b38030c423d352$export$9fc1347d4195ccb3)();
if (!props.portalContainer && getContainer) portalContainer = getContainer();
if (!portalContainer) return null;
let contents = props.children;
if (!props.disableFocusManagement) contents = /*#__PURE__*/ (0, $1CM7W$react).createElement((0, $1CM7W$FocusScope), {
restoreFocus: true,
contain: (props.shouldContainFocus || contain) && !isExiting
}, contents);
contents = /*#__PURE__*/ (0, $1CM7W$react).createElement($337b884510726a0d$export$a2200b96afd16271.Provider, {
value: contextValue
}, /*#__PURE__*/ (0, $1CM7W$react).createElement((0, $1CM7W$ClearPressResponder), null, contents));
return /*#__PURE__*/ (0, $1CM7W$reactdom).createPortal(contents, portalContainer);
}
function $337b884510726a0d$export$14c98a7594375490() {
let ctx = (0, $1CM7W$useContext)($337b884510726a0d$export$a2200b96afd16271);
let setContain = ctx === null || ctx === void 0 ? void 0 : ctx.setContain;
(0, $1CM7W$useLayoutEffect)(()=>{
setContain === null || setContain === void 0 ? void 0 : setContain(true);
}, [
setContain
]);
}
export {$337b884510726a0d$export$a2200b96afd16271 as OverlayContext, $337b884510726a0d$export$c6fdb837b070b4ff as Overlay, $337b884510726a0d$export$14c98a7594375490 as useOverlayFocusContain};
//# sourceMappingURL=Overlay.module.js.map
@@ -0,0 +1,10 @@
import { type TSchema } from '../schema/index.mjs';
import { TypeBoxError } from '../error/index.mjs';
export declare class ExtendsResolverError extends TypeBoxError {
}
export declare enum ExtendsResult {
Union = 0,
True = 1,
False = 2
}
export declare function ExtendsCheck(left: TSchema, right: TSchema): ExtendsResult;
@@ -0,0 +1 @@
export { _ as default } from "../esm/_write_only_error.js";
Loaded 100 of 35554 files, more files were not shown because too many files have changed in this diff. Show more