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,30 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var tableRole = {
abstract: false,
accessibleNameRequired: true,
baseConcepts: [],
childrenPresentational: false,
nameFrom: ['author'],
prohibitedProps: [],
props: {
'aria-colcount': null,
'aria-rowcount': null
},
relatedConcepts: [{
concept: {
name: 'table'
},
module: 'HTML'
}],
requireContextRole: [],
requiredContextRole: [],
requiredOwnedElements: [['row'], ['row', 'rowgroup']],
requiredProps: {},
superClass: [['roletype', 'structure', 'section']]
};
var _default = exports.default = tableRole;
@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2018 Kyle Davis
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,39 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, /**
* @template {string | import('postcss-selector-parser').Root} T
*
* Prefix all classes in the selector with the given prefix
*
* It can take either a string or a selector AST and will return the same type
*
* @param {string} prefix
* @param {T} selector
* @param {boolean} prependNegative
* @returns {T}
*/ "default", {
enumerable: true,
get: function() {
return _default;
}
});
const _postcssselectorparser = /*#__PURE__*/ _interop_require_default(require("postcss-selector-parser"));
function _interop_require_default(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
function _default(prefix, selector, prependNegative = false) {
if (prefix === "") {
return selector;
}
/** @type {import('postcss-selector-parser').Root} */ let ast = typeof selector === "string" ? (0, _postcssselectorparser.default)().astSync(selector) : selector;
ast.walkClasses((classSelector)=>{
let baseClass = classSelector.value;
let shouldPlaceNegativeBeforePrefix = prependNegative && baseClass.startsWith("-");
classSelector.value = shouldPlaceNegativeBeforePrefix ? `-${prefix}${baseClass.slice(1)}` : `${prefix}${baseClass}`;
});
return typeof selector === "string" ? ast.toString() : ast;
}
@@ -0,0 +1,90 @@
/**
* A type guard for determining if a COSE public key is an OKP key pair
*/
export function isCOSEPublicKeyOKP(cosePublicKey) {
const kty = cosePublicKey.get(COSEKEYS.kty);
return isCOSEKty(kty) && kty === COSEKTY.OKP;
}
/**
* A type guard for determining if a COSE public key is an EC2 key pair
*/
export function isCOSEPublicKeyEC2(cosePublicKey) {
const kty = cosePublicKey.get(COSEKEYS.kty);
return isCOSEKty(kty) && kty === COSEKTY.EC2;
}
/**
* A type guard for determining if a COSE public key is an RSA key pair
*/
export function isCOSEPublicKeyRSA(cosePublicKey) {
const kty = cosePublicKey.get(COSEKEYS.kty);
return isCOSEKty(kty) && kty === COSEKTY.RSA;
}
/**
* COSE Keys
*
* https://www.iana.org/assignments/cose/cose.xhtml#key-common-parameters
* https://www.iana.org/assignments/cose/cose.xhtml#key-type-parameters
*/
export var COSEKEYS;
(function (COSEKEYS) {
COSEKEYS[COSEKEYS["kty"] = 1] = "kty";
COSEKEYS[COSEKEYS["alg"] = 3] = "alg";
COSEKEYS[COSEKEYS["crv"] = -1] = "crv";
COSEKEYS[COSEKEYS["x"] = -2] = "x";
COSEKEYS[COSEKEYS["y"] = -3] = "y";
COSEKEYS[COSEKEYS["n"] = -1] = "n";
COSEKEYS[COSEKEYS["e"] = -2] = "e";
})(COSEKEYS || (COSEKEYS = {}));
/**
* COSE Key Types
*
* https://www.iana.org/assignments/cose/cose.xhtml#key-type
*/
export var COSEKTY;
(function (COSEKTY) {
COSEKTY[COSEKTY["OKP"] = 1] = "OKP";
COSEKTY[COSEKTY["EC2"] = 2] = "EC2";
COSEKTY[COSEKTY["RSA"] = 3] = "RSA";
})(COSEKTY || (COSEKTY = {}));
export function isCOSEKty(kty) {
return Object.values(COSEKTY).indexOf(kty) >= 0;
}
/**
* COSE Curves
*
* https://www.iana.org/assignments/cose/cose.xhtml#elliptic-curves
*/
export var COSECRV;
(function (COSECRV) {
COSECRV[COSECRV["P256"] = 1] = "P256";
COSECRV[COSECRV["P384"] = 2] = "P384";
COSECRV[COSECRV["P521"] = 3] = "P521";
COSECRV[COSECRV["ED25519"] = 6] = "ED25519";
COSECRV[COSECRV["SECP256K1"] = 8] = "SECP256K1";
})(COSECRV || (COSECRV = {}));
export function isCOSECrv(crv) {
return Object.values(COSECRV).indexOf(crv) >= 0;
}
/**
* COSE Algorithms
*
* https://www.iana.org/assignments/cose/cose.xhtml#algorithms
*/
export var COSEALG;
(function (COSEALG) {
COSEALG[COSEALG["ES256"] = -7] = "ES256";
COSEALG[COSEALG["EdDSA"] = -8] = "EdDSA";
COSEALG[COSEALG["ES384"] = -35] = "ES384";
COSEALG[COSEALG["ES512"] = -36] = "ES512";
COSEALG[COSEALG["PS256"] = -37] = "PS256";
COSEALG[COSEALG["PS384"] = -38] = "PS384";
COSEALG[COSEALG["PS512"] = -39] = "PS512";
COSEALG[COSEALG["ES256K"] = -47] = "ES256K";
COSEALG[COSEALG["RS256"] = -257] = "RS256";
COSEALG[COSEALG["RS384"] = -258] = "RS384";
COSEALG[COSEALG["RS512"] = -259] = "RS512";
COSEALG[COSEALG["RS1"] = -65535] = "RS1";
})(COSEALG || (COSEALG = {}));
export function isCOSEAlg(alg) {
return Object.values(COSEALG).indexOf(alg) >= 0;
}
@@ -0,0 +1,60 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _jsxAstUtils = require("jsx-ast-utils");
var _getElementType = _interopRequireDefault(require("../util/getElementType"));
var _schemas = require("../util/schemas");
var _hasAccessibleChild = _interopRequireDefault(require("../util/hasAccessibleChild"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
/**
* @fileoverview Enforce anchor elements to contain accessible content.
* @author Lisa Ring & Niklas Holmberg
*/
// ----------------------------------------------------------------------------
// Rule Definition
// ----------------------------------------------------------------------------
var errorMessage = 'Anchors must have content and the content must be accessible by a screen reader.';
var schema = (0, _schemas.generateObjSchema)({
components: _schemas.arraySchema
});
var _default = exports["default"] = {
meta: {
docs: {
url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/anchor-has-content.md',
description: 'Enforce all anchors to contain accessible content.'
},
schema: [schema]
},
create: function create(context) {
var elementType = (0, _getElementType["default"])(context);
return {
JSXOpeningElement: function JSXOpeningElement(node) {
var options = context.options[0] || {};
var componentOptions = options.components || [];
var typeCheck = ['a'].concat(componentOptions);
var nodeType = elementType(node);
// Only check anchor elements and custom types.
if (typeCheck.indexOf(nodeType) === -1) {
return;
}
if ((0, _hasAccessibleChild["default"])(node.parent, elementType)) {
return;
}
if ((0, _jsxAstUtils.hasAnyProp)(node.attributes, ['title', 'aria-label'])) {
return;
}
context.report({
node,
message: errorMessage
});
}
};
}
};
module.exports = exports.default;
@@ -0,0 +1,103 @@
const {buildOptions,registerCommonValueParsers} = require("./ParserOptionsBuilder");
class OutputBuilder{
constructor(options){
this.options = buildOptions(options);
this.registeredParsers = registerCommonValueParsers(this.options);
}
registerValueParser(name,parserInstance){//existing name will override the parser without warning
this.registeredParsers[name] = parserInstance;
}
getInstance(parserOptions){
return new JsArrBuilder(parserOptions, this.options, this.registeredParsers);
}
}
const rootName = '!js_arr';
const BaseOutputBuilder = require("./BaseOutputBuilder");
class JsArrBuilder extends BaseOutputBuilder{
constructor(parserOptions, options,registeredParsers) {
super();
this.tagsStack = [];
this.parserOptions = parserOptions;
this.options = options;
this.registeredParsers = registeredParsers;
this.root = new Node(rootName);
this.currentNode = this.root;
this.attributes = {};
}
addTag(tag){
//when a new tag is added, it should be added as child of current node
//TODO: shift this check to the parser
if(tag.name === "__proto__") tag.name = "#__proto__";
this.tagsStack.push(this.currentNode);
this.currentNode = new Node(tag.name, this.attributes);
this.attributes = {};
}
/**
* Check if the node should be added by checking user's preference
* @param {Node} node
* @returns boolean: true if the node should not be added
*/
closeTag(){
const node = this.currentNode;
this.currentNode = this.tagsStack.pop(); //set parent node in scope
if(this.options.onClose !== undefined){
//TODO TagPathMatcher
const resultTag = this.options.onClose(node,
new TagPathMatcher(this.tagsStack,node));
if(resultTag) return;
}
this.currentNode.child.push(node); //to parent node
}
//Called by parent class methods
_addChild(key, val){
// if(key === "__proto__") tagName = "#__proto__";
this.currentNode.child.push( {[key]: val });
// this.currentNode.leafType = false;
}
/**
* Add text value child node
* @param {string} text
*/
addValue(text){
this.currentNode.child.push( {[this.options.nameFor.text]: this.parseValue(text, this.options.tags.valueParsers) });
}
addPi(name){
//TODO: set pi flag
if(!this.options.ignorePiTags){
const node = new Node(name, this.attributes);
this.currentNode[":@"] = this.attributes;
this.currentNode.child.push(node);
}
this.attributes = {};
}
getOutput(){
return this.root.child[0];
}
}
class Node{
constructor(tagname, attributes){
this.tagname = tagname;
this.child = []; //nested tags, text, cdata, comments
if(attributes && Object.keys(attributes).length > 0)
this[":@"] = attributes;
}
}
module.exports = OutputBuilder;
@@ -0,0 +1 @@
{"mappings":";;AAmBA,gCAAiC,SAAQ,aAAa;IACpD,oCAAoC;IACpC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED;IACE,kCAAkC;IAClC,SAAS,EAAE,aAAa,CAAC;IACzB,6CAA6C;IAC7C,SAAS,EAAE,OAAO,CAAA;CACnB;AAED;;;;GAIG;AACH,wBAAwB,KAAK,EAAE,eAAe,EAAE,GAAG,EAAE,UAAU,gBAAgB,GAAG,IAAI,CAAC,GAAG,QAAQ,CAwDjG","sources":["packages/@react-aria/link/src/packages/@react-aria/link/src/useLink.ts","packages/@react-aria/link/src/packages/@react-aria/link/src/index.ts","packages/@react-aria/link/src/index.ts"],"sourcesContent":[null,null,"/*\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 */\nexport type {AriaLinkOptions, LinkAria} from './useLink';\nexport {useLink} from './useLink';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
@@ -0,0 +1,13 @@
import toPropertyKey from "./toPropertyKey.js";
function _defineProperties(e, r) {
for (var t = 0; t < r.length; t++) {
var o = r[t];
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
}
}
function _createClass(e, r, t) {
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
writable: !1
}), e;
}
export { _createClass as default };
@@ -0,0 +1,39 @@
import type { CustomEventName, InferCustomEventPayload } from './customEvent'
export type ModuleNamespace = Record<string, any> & {
[Symbol.toStringTag]: 'Module'
}
export interface ViteHotContext {
readonly data: any
accept(): void
accept(cb: (mod: ModuleNamespace | undefined) => void): void
accept(dep: string, cb: (mod: ModuleNamespace | undefined) => void): void
accept(
deps: readonly string[],
cb: (mods: Array<ModuleNamespace | undefined>) => void,
): void
acceptExports(
exportNames: string | readonly string[],
cb?: (mod: ModuleNamespace | undefined) => void,
): void
dispose(cb: (data: any) => void): void
prune(cb: (data: any) => void): void
invalidate(message?: string): void
on<T extends CustomEventName>(
event: T,
cb: (payload: InferCustomEventPayload<T>) => void,
): void
off<T extends CustomEventName>(
event: T,
cb: (payload: InferCustomEventPayload<T>) => void,
): void
send<T extends CustomEventName>(
event: T,
data?: InferCustomEventPayload<T>,
): void
}
@@ -0,0 +1,14 @@
import { TSESLint } from '@typescript-eslint/utils';
export interface Config {
allowNamedExports?: boolean;
classes?: boolean;
enums?: boolean;
functions?: boolean;
ignoreTypeReferences?: boolean;
typedefs?: boolean;
variables?: boolean;
}
export type Options = ['nofunc' | Config];
export type MessageIds = 'noUseBeforeDefine';
declare const _default: TSESLint.RuleModule<"noUseBeforeDefine", Options, import("../../rules").ESLintPluginDocs, TSESLint.RuleListener>;
export default _default;
@@ -0,0 +1,5 @@
var convert = require('./convert'),
func = convert('cloneDeep', require('../cloneDeep'), require('./_falseOptions'));
func.placeholder = require('./placeholder');
module.exports = func;
@@ -0,0 +1,138 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = sizeof;
/**
* @file 获取cmap表的大小
* @author mengke01(kekee000@gmail.com)
*/
/**
* 获取format4 delta值
* Delta is saved in signed int in cmap format 4 subtable,
* but can be in -0xFFFF..0 interval.
* -0x10000..-0x7FFF values are stored with offset.
*
* @param {number} delta delta值
* @return {number} delta值
*/
function encodeDelta(delta) {
return delta > 0x7FFF ? delta - 0x10000 : delta < -0x7FFF ? delta + 0x10000 : delta;
}
/**
* 根据bound获取glyf segment
*
* @param {Array} glyfUnicodes glyf编码集合
* @param {number} bound 编码范围
* @return {Array} 码表
*/
function getSegments(glyfUnicodes, bound) {
var prevGlyph = null;
var result = [];
var segment = {};
glyfUnicodes.forEach(function (glyph) {
if (bound === undefined || glyph.unicode <= bound) {
// 初始化编码头部,这里unicode和graph id 都必须连续
if (prevGlyph === null || glyph.unicode !== prevGlyph.unicode + 1 || glyph.id !== prevGlyph.id + 1) {
if (prevGlyph !== null) {
segment.end = prevGlyph.unicode;
result.push(segment);
segment = {
start: glyph.unicode,
startId: glyph.id,
delta: encodeDelta(glyph.id - glyph.unicode)
};
} else {
segment.start = glyph.unicode;
segment.startId = glyph.id;
segment.delta = encodeDelta(glyph.id - glyph.unicode);
}
}
prevGlyph = glyph;
}
});
// need to finish the last segment
if (prevGlyph !== null) {
segment.end = prevGlyph.unicode;
result.push(segment);
}
// 返回编码范围
return result;
}
/**
* 获取format0编码集合
*
* @param {Array} glyfUnicodes glyf编码集合
* @return {Array} 码表
*/
function getFormat0Segment(glyfUnicodes) {
var unicodes = [];
glyfUnicodes.forEach(function (u) {
if (u.unicode !== undefined && u.unicode < 256) {
unicodes.push([u.unicode, u.id]);
}
});
// 按编码排序
unicodes.sort(function (a, b) {
return a[0] - b[0];
});
return unicodes;
}
/**
* 对cmap数据进行预处理,获取大小
*
* @param {Object} ttf ttf对象
* @return {number} 大小
*/
function sizeof(ttf) {
ttf.support.cmap = {};
var glyfUnicodes = [];
ttf.glyf.forEach(function (glyph, index) {
var unicodes = glyph.unicode;
if (typeof glyph.unicode === 'number') {
unicodes = [glyph.unicode];
}
if (unicodes && unicodes.length) {
unicodes.forEach(function (unicode) {
glyfUnicodes.push({
unicode: unicode,
id: unicode !== 0xFFFF ? index : 0
});
});
}
});
glyfUnicodes = glyfUnicodes.sort(function (a, b) {
return a.unicode - b.unicode;
});
ttf.support.cmap.unicodes = glyfUnicodes;
var unicodes2Bytes = glyfUnicodes;
ttf.support.cmap.format4Segments = getSegments(unicodes2Bytes, 0xFFFF);
ttf.support.cmap.format4Size = 24 + ttf.support.cmap.format4Segments.length * 8;
ttf.support.cmap.format0Segments = getFormat0Segment(glyfUnicodes);
ttf.support.cmap.format0Size = 262;
// we need subtable 12 only if found unicodes with > 2 bytes.
var hasGLyphsOver2Bytes = unicodes2Bytes.some(function (glyph) {
return glyph.unicode > 0xFFFF;
});
if (hasGLyphsOver2Bytes) {
ttf.support.cmap.hasGLyphsOver2Bytes = hasGLyphsOver2Bytes;
var unicodes4Bytes = glyfUnicodes;
ttf.support.cmap.format12Segments = getSegments(unicodes4Bytes);
ttf.support.cmap.format12Size = 16 + ttf.support.cmap.format12Segments.length * 12;
}
var size = 4 + (hasGLyphsOver2Bytes ? 32 : 24) // cmap header
+ ttf.support.cmap.format0Size // format 0
+ ttf.support.cmap.format4Size // format 4
+ (hasGLyphsOver2Bytes ? ttf.support.cmap.format12Size : 0); // format 12
return size;
}
@@ -0,0 +1,13 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = getImplicitRoleForDialog;
/**
* Returns the implicit role for a dialog tag.
*/
function getImplicitRoleForDialog() {
return 'dialog';
}
module.exports = exports.default;
@@ -0,0 +1 @@
{"version":3,"file":"isRegex.d.ts","sourceRoot":"","sources":["../../src/utils/isRegex.ts"],"names":[],"mappings":"yBAAgB,OAAO,OAAO,KAAG,KAAK,IAAI,MAAM;AAAhD,wBAA4E"}
@@ -0,0 +1 @@
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(t="undefined"!=typeof globalThis?globalThis:t||self).dayjs_plugin_objectSupport=n()}(this,(function(){"use strict";return function(t,n,e){var i=n.prototype,r=function(t){var n,r=t.date,o=t.utc,u={};if(!(null===(n=r)||n instanceof Date||n instanceof Array||i.$utils().u(n)||"Object"!==n.constructor.name)){if(!Object.keys(r).length)return new Date;var a=o?e.utc():e();Object.keys(r).forEach((function(t){var n,e;u[(n=t,e=i.$utils().p(n),"date"===e?"day":e)]=r[t]}));var c=u.day||(u.year||u.month>=0?1:a.date()),s=u.year||a.year(),d=u.month>=0?u.month:u.year||u.day?0:a.month(),f=u.hour||0,b=u.minute||0,h=u.second||0,y=u.millisecond||0;return o?new Date(Date.UTC(s,d,c,f,b,h,y)):new Date(s,d,c,f,b,h,y)}return r},o=i.parse;i.parse=function(t){t.date=r.bind(this)(t),o.bind(this)(t)};var u=i.set,a=i.add,c=i.subtract,s=function(t,n,e,i){void 0===i&&(i=1);var r=Object.keys(n),o=this;return r.forEach((function(e){o=t.bind(o)(n[e]*i,e)})),o};i.set=function(t,n){return n=void 0===n?t:n,"Object"===t.constructor.name?s.bind(this)((function(t,n){return u.bind(this)(n,t)}),n,t):u.bind(this)(t,n)},i.add=function(t,n){return"Object"===t.constructor.name?s.bind(this)(a,t,n):a.bind(this)(t,n)},i.subtract=function(t,n){return"Object"===t.constructor.name?s.bind(this)(a,t,n,-1):c.bind(this)(t,n)}}}));
@@ -0,0 +1,77 @@
import baseKeys from './_baseKeys.js';
import getTag from './_getTag.js';
import isArguments from './isArguments.js';
import isArray from './isArray.js';
import isArrayLike from './isArrayLike.js';
import isBuffer from './isBuffer.js';
import isPrototype from './_isPrototype.js';
import isTypedArray from './isTypedArray.js';
/** `Object#toString` result references. */
var mapTag = '[object Map]',
setTag = '[object Set]';
/** Used for built-in method references. */
var objectProto = Object.prototype;
/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;
/**
* Checks if `value` is an empty object, collection, map, or set.
*
* Objects are considered empty if they have no own enumerable string keyed
* properties.
*
* Array-like values such as `arguments` objects, arrays, buffers, strings, or
* jQuery-like collections are considered empty if they have a `length` of `0`.
* Similarly, maps and sets are considered empty if they have a `size` of `0`.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is empty, else `false`.
* @example
*
* _.isEmpty(null);
* // => true
*
* _.isEmpty(true);
* // => true
*
* _.isEmpty(1);
* // => true
*
* _.isEmpty([1, 2, 3]);
* // => false
*
* _.isEmpty({ 'a': 1 });
* // => false
*/
function isEmpty(value) {
if (value == null) {
return true;
}
if (isArrayLike(value) &&
(isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||
isBuffer(value) || isTypedArray(value) || isArguments(value))) {
return !value.length;
}
var tag = getTag(value);
if (tag == mapTag || tag == setTag) {
return !value.size;
}
if (isPrototype(value)) {
return !baseKeys(value).length;
}
for (var key in value) {
if (hasOwnProperty.call(value, key)) {
return false;
}
}
return true;
}
export default isEmpty;
@@ -0,0 +1,111 @@
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _tslib = require("tslib");
var _isPlainObject = _interopRequireDefault(require("lodash/isPlainObject"));
var _useMemoizedFn = _interopRequireDefault(require("../useMemoizedFn"));
var _utils = require("../utils");
var _react = require("react");
function useSelections(items, options) {
var _a, _b;
var defaultSelected = [];
var itemKey;
if (Array.isArray(options)) {
defaultSelected = options;
} else if ((0, _isPlainObject["default"])(options)) {
defaultSelected = (_a = options === null || options === void 0 ? void 0 : options.defaultSelected) !== null && _a !== void 0 ? _a : defaultSelected;
itemKey = (_b = options === null || options === void 0 ? void 0 : options.itemKey) !== null && _b !== void 0 ? _b : itemKey;
}
var getKey = function getKey(item) {
if ((0, _utils.isFunction)(itemKey)) {
return itemKey(item);
}
if ((0, _utils.isString)(itemKey) && (0, _isPlainObject["default"])(item)) {
return item[itemKey];
}
return item;
};
var _c = (0, _tslib.__read)((0, _react.useState)(defaultSelected), 2),
selected = _c[0],
setSelected = _c[1];
var selectedMap = (0, _react.useMemo)(function () {
var keyToItemMap = new Map();
if (!Array.isArray(selected)) {
return keyToItemMap;
}
selected.forEach(function (item) {
keyToItemMap.set(getKey(item), item);
});
return keyToItemMap;
}, [selected]);
var isSelected = function isSelected(item) {
return selectedMap.has(getKey(item));
};
var select = function select(item) {
selectedMap.set(getKey(item), item);
setSelected(Array.from(selectedMap.values()));
};
var unSelect = function unSelect(item) {
selectedMap["delete"](getKey(item));
setSelected(Array.from(selectedMap.values()));
};
var toggle = function toggle(item) {
if (isSelected(item)) {
unSelect(item);
} else {
select(item);
}
};
var selectAll = function selectAll() {
items.forEach(function (item) {
selectedMap.set(getKey(item), item);
});
setSelected(Array.from(selectedMap.values()));
};
var unSelectAll = function unSelectAll() {
items.forEach(function (item) {
selectedMap["delete"](getKey(item));
});
setSelected(Array.from(selectedMap.values()));
};
var noneSelected = (0, _react.useMemo)(function () {
return items.every(function (item) {
return !selectedMap.has(getKey(item));
});
}, [items, selectedMap]);
var allSelected = (0, _react.useMemo)(function () {
return items.every(function (item) {
return selectedMap.has(getKey(item));
}) && !noneSelected;
}, [items, selectedMap, noneSelected]);
var partiallySelected = (0, _react.useMemo)(function () {
return !noneSelected && !allSelected;
}, [noneSelected, allSelected]);
var toggleAll = function toggleAll() {
return allSelected ? unSelectAll() : selectAll();
};
var clearAll = function clearAll() {
selectedMap.clear();
setSelected([]);
};
return {
selected: selected,
noneSelected: noneSelected,
allSelected: allSelected,
partiallySelected: partiallySelected,
setSelected: setSelected,
isSelected: isSelected,
select: (0, _useMemoizedFn["default"])(select),
unSelect: (0, _useMemoizedFn["default"])(unSelect),
toggle: (0, _useMemoizedFn["default"])(toggle),
selectAll: (0, _useMemoizedFn["default"])(selectAll),
unSelectAll: (0, _useMemoizedFn["default"])(unSelectAll),
clearAll: (0, _useMemoizedFn["default"])(clearAll),
toggleAll: (0, _useMemoizedFn["default"])(toggleAll)
};
}
var _default = exports["default"] = useSelections;
@@ -0,0 +1,33 @@
declare interface ILocale {
name: string
weekdays?: string[]
months?: string[]
weekStart?: number
weekdaysShort?: string[]
monthsShort?: string[]
weekdaysMin?: string[]
ordinal?: (n: number) => number | string
formats: Partial<{
LT: string
LTS: string
L: string
LL: string
LLL: string
LLLL: string
}>
relativeTime: Partial<{
future: string
past: string
s: string
m: string
mm: string
h: string
hh: string
d: string
dd: string
M: string
MM: string
y: string
yy: string
}>
}
@@ -0,0 +1,6 @@
# Test configuration
{
'variables': {
'build_with_electron': true
}
}
@@ -0,0 +1,92 @@
import { default as Level } from './Level';
import { IAppender, ILogger, LogEvent, LogLevel, LogOptions, TLevel } from './typings';
/**
* Logger instance (日志实例)
*/
export default class Logger implements ILogger {
name: string;
readonly appenders: Map<string, IAppender>;
protected context: Record<string, any>;
protected _level: Level;
/**
* Create a logger instance (创建日志实例)
* @param name Logger name (日志名称)
* @param options Logging options (日志选项)
*/
constructor(name: string, { level, appenders }?: LogOptions);
/**
* Log level name (日志级别名称)
*/
get levelName(): TLevel;
/**
* Log level (日志级别)
*/
get level(): Level;
/**
* Set log level (设置日志级别)
* @param level Log level (日志级别)
*/
set level(level: LogLevel);
/**
* Add context (添加上下文)
* @param key Context key (上下文键)
* @param value Context value (上下文值)
*/
addContext(key: any, value: any): void;
/**
* Remove context (移除上下文)
* @param key Context key (上下文键)
*/
removeContext(key: any): void;
/**
* Clear context (清除上下文)
*/
clearContext(): void;
/**
* Dispose all appenders (关闭所有appenders)
*/
dispose(): Promise<PromiseSettledResult<void>[]>;
/**
* Log a message of level TRACE (记录TRACE级别的日志)
* @param args Message arguments (消息参数)
*/
trace(...args: any[]): void;
/**
* Log a message of level DEBUG (记录DEBUG级别的日志)
* @param args Message arguments (消息参数)
*/
debug(...args: any[]): void;
/**
* Log a message of level INFO (记录INFO级别的日志)
* @param args Message arguments (消息参数)
*/
info(...args: any[]): void;
/**
* Log a message of level WARN (记录WARN级别的日志)
* @param args Message arguments (消息参数)
*/
warn(...args: any[]): void;
/**
* Log a message of level ERROR (记录ERROR级别的日志)
* @param args Message arguments (消息参数)
*/
error(...args: any[]): void;
/**
* Log a message of level FATAL (记录FATAL级别的日志)
* @param args Message arguments (消息参数)
*/
fatal(...args: any[]): void;
/**
* Create a log event (创建日志事件)
* @param level Log level (日志级别)
* @param message Message (消息)
* @returns Log event (日志事件)
*/
protected createEvent(level: Level, message: any[]): LogEvent;
/**
* Log a message (记录日志)
* @param level Log level (日志级别)
* @param message Content (内容)
*/
protected log(level: Level, message: any[]): void;
}
@@ -0,0 +1,47 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _dispose;
function dispose_SuppressedError(error, suppressed) {
if (typeof SuppressedError !== "undefined") {
dispose_SuppressedError = SuppressedError;
} else {
dispose_SuppressedError = function SuppressedError(error, suppressed) {
this.suppressed = suppressed;
this.error = error;
this.stack = new Error().stack;
};
dispose_SuppressedError.prototype = Object.create(Error.prototype, {
constructor: {
value: dispose_SuppressedError,
writable: true,
configurable: true
}
});
}
return new dispose_SuppressedError(error, suppressed);
}
function _dispose(stack, error, hasError) {
function next() {
while (stack.length > 0) {
try {
var r = stack.pop();
var p = r.d.call(r.v);
if (r.a) return Promise.resolve(p).then(next, err);
} catch (e) {
return err(e);
}
}
if (hasError) throw error;
}
function err(e) {
error = hasError ? new dispose_SuppressedError(error, e) : e;
hasError = true;
return next();
}
return next();
}
//# sourceMappingURL=dispose.js.map
@@ -0,0 +1,84 @@
/**
* @import {State} from 'mdast-util-to-markdown'
* @import {FlowChildren, FlowParents, TrackFields} from '../types.js'
*/
/**
* @param {FlowParents} parent
* Parent of flow nodes.
* @param {State} state
* Info passed around about the current state.
* @param {TrackFields} info
* Info on where we are in the document we are generating.
* @returns {string}
* Serialized children, joined by (blank) lines.
*/
export function containerFlow(parent, state, info) {
const indexStack = state.indexStack
const children = parent.children || []
const tracker = state.createTracker(info)
/** @type {Array<string>} */
const results = []
let index = -1
indexStack.push(-1)
while (++index < children.length) {
const child = children[index]
indexStack[indexStack.length - 1] = index
results.push(
tracker.move(
state.handle(child, parent, state, {
before: '\n',
after: '\n',
...tracker.current()
})
)
)
if (child.type !== 'list') {
state.bulletLastUsed = undefined
}
if (index < children.length - 1) {
results.push(
tracker.move(between(child, children[index + 1], parent, state))
)
}
}
indexStack.pop()
return results.join('')
}
/**
* @param {FlowChildren} left
* @param {FlowChildren} right
* @param {FlowParents} parent
* @param {State} state
* @returns {string}
*/
function between(left, right, parent, state) {
let index = state.join.length
while (index--) {
const result = state.join[index](left, right, parent, state)
if (result === true || result === 1) {
break
}
if (typeof result === 'number') {
return '\n'.repeat(1 + result)
}
if (result === false) {
return '\n\n<!---->\n\n'
}
}
return '\n\n'
}
@@ -0,0 +1,133 @@
{
"name": "express-rate-limit",
"version": "7.5.1",
"description": "Basic IP rate-limiting middleware for Express. Use to limit repeated requests to public APIs and/or endpoints such as password reset.",
"author": {
"name": "Nathan Friedly",
"url": "http://nfriedly.com/"
},
"license": "MIT",
"homepage": "https://github.com/express-rate-limit/express-rate-limit",
"repository": {
"type": "git",
"url": "git+https://github.com/express-rate-limit/express-rate-limit.git"
},
"funding": "https://github.com/sponsors/express-rate-limit",
"keywords": [
"express-rate-limit",
"express",
"rate",
"limit",
"ratelimit",
"rate-limit",
"middleware",
"ip",
"auth",
"authorization",
"security",
"brute",
"force",
"bruteforce",
"brute-force",
"attack"
],
"type": "module",
"exports": {
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
}
},
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist/",
"tsconfig.json"
],
"engines": {
"node": ">= 16"
},
"scripts": {
"clean": "del-cli dist/ coverage/ *.log *.tmp *.bak *.tgz",
"build:cjs": "esbuild --platform=node --bundle --target=es2022 --format=cjs --outfile=dist/index.cjs --footer:js=\"module.exports = rateLimit; module.exports.default = rateLimit; module.exports.rateLimit = rateLimit; module.exports.MemoryStore = MemoryStore;\" source/index.ts",
"build:esm": "esbuild --platform=node --bundle --target=es2022 --format=esm --outfile=dist/index.mjs source/index.ts",
"build:types": "dts-bundle-generator --out-file=dist/index.d.ts source/index.ts && cp dist/index.d.ts dist/index.d.cts && cp dist/index.d.ts dist/index.d.mts",
"compile": "run-s clean build:*",
"docs": "cd docs && mintlify dev",
"lint:code": "xo",
"lint:rest": "prettier --check .",
"lint": "run-s lint:*",
"format:code": "xo --fix",
"format:rest": "prettier --write .",
"format": "run-s format:*",
"test:lib": "jest",
"test:ext": "cd test/external/ && bash run-all-tests",
"test": "run-s lint test:lib",
"pre-commit": "lint-staged",
"prepare": "run-s compile && husky install config/husky"
},
"peerDependencies": {
"express": ">= 4.11"
},
"devDependencies": {
"@express-rate-limit/prettier": "1.1.1",
"@express-rate-limit/tsconfig": "1.0.2",
"@jest/globals": "29.7.0",
"@types/express": "4.17.20",
"@types/jest": "29.5.6",
"@types/node": "20.8.7",
"@types/supertest": "2.0.15",
"del-cli": "5.1.0",
"dts-bundle-generator": "8.0.1",
"esbuild": "0.25.0",
"express": "4.21.1",
"husky": "8.0.3",
"jest": "29.7.0",
"lint-staged": "15.0.2",
"mintlify": "4.0.63",
"npm-run-all": "4.1.5",
"ratelimit-header-parser": "0.1.0",
"supertest": "6.3.3",
"ts-jest": "29.1.1",
"ts-node": "10.9.1",
"typescript": "5.2.2",
"xo": "0.56.0"
},
"xo": {
"prettier": true,
"rules": {
"@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/no-dynamic-delete": 0,
"@typescript-eslint/no-confusing-void-expression": 0,
"@typescript-eslint/consistent-indexed-object-style": [
"error",
"index-signature"
],
"n/no-unsupported-features/es-syntax": 0
},
"overrides": [
{
"files": "test/library/*.ts",
"rules": {
"@typescript-eslint/no-unsafe-argument": 0,
"@typescript-eslint/no-unsafe-assignment": 0
}
}
],
"ignore": [
"test/external"
]
},
"prettier": "@express-rate-limit/prettier",
"lint-staged": {
"{source,test}/**/*.ts": "xo --fix",
"**/*.{json,yaml,md}": "prettier --write "
}
}
@@ -0,0 +1 @@
{"version":3,"file":"getResolvedValueNodeBinding.spec.d.ts","sourceRoot":"","sources":["../../../../src/resolution/calculations/getResolvedValueNodeBinding.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,148 @@
# normalize-range
Utility for normalizing a numeric range, with a wrapping function useful for polar coordinates.
[![Build Status](https://travis-ci.org/jamestalmage/normalize-range.svg?branch=master)](https://travis-ci.org/jamestalmage/normalize-range)
[![Coverage Status](https://coveralls.io/repos/jamestalmage/normalize-range/badge.svg?branch=master&service=github)](https://coveralls.io/github/jamestalmage/normalize-range?branch=master)
[![Code Climate](https://codeclimate.com/github/jamestalmage/normalize-range/badges/gpa.svg)](https://codeclimate.com/github/jamestalmage/normalize-range)
[![Dependency Status](https://david-dm.org/jamestalmage/normalize-range.svg)](https://david-dm.org/jamestalmage/normalize-range)
[![devDependency Status](https://david-dm.org/jamestalmage/normalize-range/dev-status.svg)](https://david-dm.org/jamestalmage/normalize-range#info=devDependencies)
[![NPM](https://nodei.co/npm/normalize-range.png)](https://nodei.co/npm/normalize-range/)
## Usage
```js
var nr = require('normalize-range');
nr.wrap(0, 360, 400);
//=> 40
nr.wrap(0, 360, -90);
//=> 270
nr.limit(0, 100, 500);
//=> 100
nr.limit(0, 100, -20);
//=> 0
// There is a convenient currying function
var wrapAngle = nr.curry(0, 360).wrap;
var limitTo10 = nr.curry(0, 10).limit;
wrapAngle(-30);
//=> 330
```
## API
### wrap(min, max, value)
Normalizes a values that "wraps around". For example, in a polar coordinate system, 270˚ can also be
represented as -90˚.
For wrapping purposes we assume `max` is functionally equivalent to `min`, and that `wrap(max + 1) === wrap(min + 1)`.
Wrap always assumes that `min` is *inclusive*, and `max` is *exclusive*.
In other words, if `value === max` the function will wrap it, and return `min`, but `min` will not be wrapped.
```js
nr.wrap(0, 360, 0) === 0;
nr.wrap(0, 360, 360) === 0;
nr.wrap(0, 360, 361) === 1;
nr.wrap(0, 360, -1) === 359;
```
You are not restricted to whole numbers, and ranges can be negative.
```js
var π = Math.PI;
var radianRange = nr.curry(-π, π);
redianRange.wrap(0) === 0;
nr.wrap(π) === -π;
nr.wrap(4 * π / 3) === -2 * π / 3;
```
### limit(min, max, value)
Normalize the value by bringing it within the range.
If `value` is greater than `max`, `max` will be returned.
If `value` is less than `min`, `min` will be returned.
Otherwise, `value` is returned unaltered.
Both ends of this range are *inclusive*.
### test(min, max, value, [minExclusive], [maxExclusive])
Returns `true` if `value` is within the range, `false` otherwise.
It defaults to `inclusive` on both ends of the range, but that can be
changed by setting `minExclusive` and/or `maxExclusive` to a truthy value.
### validate(min, max, value, [minExclusive], [maxExclusive])
Returns `value` or throws an error if `value` is outside the specified range.
### name(min, max, value, [minExclusive], [maxExclusive])
Returns a string representing this range in
[range notation](https://en.wikipedia.org/wiki/Interval_(mathematics)#Classification_of_intervals).
### curry(min, max, [minExclusive], [maxExclusive])
Convenience method for currying all method arguments except `value`.
```js
var angle = require('normalize-range').curry(-180, 180, false, true);
angle.wrap(270)
//=> -90
angle.limit(200)
//=> 180
angle.test(0)
//=> true
angle.validate(300)
//=> throws an Error
angle.toString() // or angle.name()
//=> "[-180,180)"
```
#### min
*Required*
Type: `number`
The minimum value (inclusive) of the range.
#### max
*Required*
Type: `number`
The maximum value (exclusive) of the range.
#### value
*Required*
Type: `number`
The value to be normalized.
#### returns
Type: `number`
The normalized value.
## Building and Releasing
- `npm test`: tests, linting, coverage and style checks.
- `npm run watch`: autotest mode for active development.
- `npm run debug`: run tests without coverage (istanbul can obscure line #'s)
Release via `cut-release` tool.
## License
MIT © [James Talmage](http://github.com/jamestalmage)
@@ -0,0 +1,67 @@
"use client";
import {
slider_thumb_default
} from "./chunk-B5EDLGDE.mjs";
import {
useSlider
} from "./chunk-PN6OXKRL.mjs";
// src/slider.tsx
import { renderFn } from "@heroui/react-utils";
import { forwardRef } from "@heroui/system";
import { jsx, jsxs } from "react/jsx-runtime";
var Slider = forwardRef((props, ref) => {
const {
Component,
state,
label,
steps,
marks,
startContent,
endContent,
getStepProps,
getBaseProps,
renderValue,
renderLabel,
getTrackWrapperProps,
getLabelWrapperProps,
getLabelProps,
getValueProps,
getTrackProps,
getFillerProps,
getThumbProps,
getMarkProps,
getStartContentProps,
getEndContentProps
} = useSlider({ ...props, ref });
return /* @__PURE__ */ jsxs(Component, { ...getBaseProps(), children: [
label && /* @__PURE__ */ jsxs("div", { ...getLabelWrapperProps(), children: [
renderFn({
Component: "label",
props: getLabelProps(),
renderCustom: renderLabel
}),
renderFn({
Component: "output",
props: getValueProps(),
renderCustom: renderValue
})
] }),
/* @__PURE__ */ jsxs("div", { ...getTrackWrapperProps(), children: [
startContent && /* @__PURE__ */ jsx("div", { ...getStartContentProps(), children: startContent }),
/* @__PURE__ */ jsxs("div", { ...getTrackProps(), children: [
/* @__PURE__ */ jsx("div", { ...getFillerProps() }),
Number.isFinite(steps) && Array.from({ length: steps }, (_, index) => /* @__PURE__ */ jsx("div", { ...getStepProps(index) }, index)),
state.values.map((_, index) => /* @__PURE__ */ jsx(slider_thumb_default, { ...getThumbProps(index) }, index)),
(marks == null ? void 0 : marks.length) > 0 && marks.map((mark, index) => /* @__PURE__ */ jsx("div", { ...getMarkProps(mark), children: mark.label }, index))
] }),
endContent && /* @__PURE__ */ jsx("div", { ...getEndContentProps(), children: endContent })
] })
] });
});
Slider.displayName = "HeroUI.Slider";
var slider_default = Slider;
export {
slider_default
};
@@ -0,0 +1,28 @@
/**
* Filters out Vite plugins that have `apply: 'serve'` set.
*
* Since Rolldown operates in build mode, plugins marked with `apply: 'serve'`
* are intended only for Vite's dev server and should be excluded from the build process.
*
* @param plugins - Array of plugins (can include nested arrays)
* @returns Filtered array with serve-only plugins removed
*
* @example
* ```ts
* import { defineConfig } from 'rolldown';
* import { filterVitePlugins } from '@rolldown/pluginutils';
* import viteReact from '@vitejs/plugin-react';
*
* export default defineConfig({
* plugins: filterVitePlugins([
* viteReact(),
* {
* name: 'dev-only',
* apply: 'serve', // This will be filtered out
* // ...
* }
* ])
* });
* ```
*/
export declare function filterVitePlugins<T = any>(plugins: T | T[] | null | undefined | false): T[];
@@ -0,0 +1 @@
module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 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","2":"C","388":"L M"},C:{"1":"0 1 2 3 4 5 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB 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":"6 7 xC TC J ZB K D E F A B C L M G N O P aB 0C 1C"},D:{"1":"0 1 2 3 4 5 gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB","132":"CB DB EB FB bB cB dB eB fB"},E:{"1":"F A B C L M G 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","2":"J ZB K D 2C ZC 3C","388":"E 5C","514":"4C"},F:{"1":"0 1 2 3 4 5 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C FD GD HD ID NC uC JD OC","132":"6 7 G N O P aB"},G:{"1":"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","2":"ZC KD vC LD MD ND","388":"E OD"},H:{"2":"hD"},I:{"1":"I mD nD","2":"TC J iD jD kD lD vC"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB oD pD qD rD sD aC tD uD vD wD xD QC RC SC yD"},Q:{"1":"zD"},R:{"1":"0D"},S:{"1":"1D 2D"}},B:1,C:"HTML templates",D:true};
@@ -0,0 +1 @@
module.exports={C:{"115":0.01438,"117":0.00359,"127":0.00359,"135":0.00359,"140":0.00359,"142":0.01078,"143":0.27314,"144":0.22283,_:"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 116 118 119 120 121 122 123 124 125 126 128 129 130 131 132 133 134 136 137 138 139 141 145 146 147 3.5 3.6"},D:{"39":0.00359,"40":0.00359,"41":0.00359,"42":0.00359,"43":0.00359,"44":0.00359,"45":0.00359,"46":0.00359,"47":0.00719,"48":0.00359,"49":0.00359,"50":0.00359,"51":0.00359,"52":0.00719,"53":0.00359,"54":0.00359,"55":0.00359,"56":0.00359,"57":0.00359,"58":0.00359,"59":0.00359,"60":0.00359,"64":0.01438,"65":0.01797,"68":0.00359,"75":0.00359,"79":0.0611,"86":0.00719,"87":0.01078,"91":0.00719,"92":0.00719,"93":0.00359,"94":0.03953,"95":0.00719,"98":0.01438,"103":0.13298,"105":0.00359,"108":0.01797,"109":0.26955,"110":0.00719,"111":0.02516,"112":6.22481,"114":0.01078,"116":0.02156,"118":0.00359,"119":0.01078,"120":0.01797,"121":0.00719,"122":0.03594,"123":0.00719,"124":0.00359,"125":3.37477,"126":0.50675,"127":0.04313,"128":0.06469,"129":0.02516,"130":0.01438,"131":0.0611,"132":0.06469,"133":0.01797,"134":0.02156,"135":0.01797,"136":0.03953,"137":0.03953,"138":0.39534,"139":0.58942,"140":3.85277,"141":8.33808,"142":0.0611,"143":0.00359,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 66 67 69 70 71 72 73 74 76 77 78 80 81 83 84 85 88 89 90 96 97 99 100 101 102 104 106 107 113 115 117 144 145"},F:{"80":0.00719,"82":0.00359,"85":0.00719,"90":0.00719,"91":0.05391,"92":0.09704,"114":0.00359,"120":0.01078,"121":0.0611,"122":0.42769,_:"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 81 83 84 86 87 88 89 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00719,"114":0.07188,"124":0.00359,"126":0.00359,"128":0.00359,"130":0.00719,"131":0.00359,"134":0.01078,"135":0.00359,"136":0.00719,"137":0.00359,"138":0.01078,"139":0.01078,"140":0.47081,"141":2.18875,"142":0.00359,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 119 120 121 122 123 125 127 129 132 133"},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 15.1 15.2-15.3 16.0 16.4 17.0 26.2","13.1":0.00719,"14.1":0.00719,"15.4":0.00359,"15.5":0.00359,"15.6":0.03235,"16.1":0.00719,"16.2":0.00359,"16.3":0.02516,"16.5":0.01438,"16.6":0.04313,"17.1":0.05032,"17.2":0.00359,"17.3":0.00719,"17.4":0.01078,"17.5":0.03953,"17.6":0.05032,"18.0":0.00719,"18.1":0.01438,"18.2":0.01078,"18.3":0.03594,"18.4":0.01438,"18.5-18.6":0.11501,"26.0":0.24439,"26.1":0.00359},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00263,"5.0-5.1":0,"6.0-6.1":0.01053,"7.0-7.1":0.0079,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.0237,"10.0-10.2":0.00263,"10.3":0.04476,"11.0-11.2":0.66348,"11.3-11.4":0.0158,"12.0-12.1":0.00527,"12.2-12.5":0.12901,"13.0-13.1":0,"13.2":0.01316,"13.3":0.00527,"13.4-13.7":0.02106,"14.0-14.4":0.04476,"14.5-14.8":0.04739,"15.0-15.1":0.04476,"15.2-15.3":0.03423,"15.4":0.03949,"15.5":0.04476,"15.6-15.8":0.5845,"16.0":0.07899,"16.1":0.14744,"16.2":0.07635,"16.3":0.13691,"16.4":0.03423,"16.5":0.06056,"16.6-16.7":0.78196,"17.0":0.05529,"17.1":0.08425,"17.2":0.06056,"17.3":0.08952,"17.4":0.15797,"17.5":0.27119,"17.6-17.7":0.68455,"18.0":0.15534,"18.1":0.32121,"18.2":0.17377,"18.3":0.55817,"18.4":0.28698,"18.5-18.6":14.63347,"26.0":1.80878,"26.1":0.06582},P:{"4":0.02058,"24":0.01029,"25":0.08231,"26":0.06173,"27":0.14404,"28":2.80874,"29":0.22635,_:"20 21 22 23 5.0-5.4 6.2-6.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","7.2-7.4":0.04115},I:{"0":0.01919,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.51889,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00359,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.44842},Q:{_:"14.9"},O:{"0":0.64701},H:{"0":0},L:{"0":38.20694}};
@@ -0,0 +1,7 @@
import { OneBotAction } from '../../action/OneBotAction';
export default class TestAutoRegister02 extends OneBotAction<void, string> {
actionName: "test_auto_register_02";
payloadSchema: import("@sinclair/typebox").TObject<{}>;
returnSchema: import("@sinclair/typebox").TString;
_handle(_payload: void): Promise<string>;
}
@@ -0,0 +1,242 @@
import {
tv
} from "./chunk-UWE6H66T.mjs";
import {
dataFocusVisibleClasses
} from "./chunk-GH5E4FQB.mjs";
// src/components/breadcrumbs.ts
var breadcrumbItem = tv({
slots: {
base: "flex items-center",
item: [
"flex gap-1 items-center",
"cursor-pointer",
"whitespace-nowrap",
"line-clamp-1",
"outline-none",
"tap-highlight-transparent",
...dataFocusVisibleClasses
],
separator: "text-default-400 px-1 rtl:rotate-180"
},
variants: {
color: {
foreground: {
item: "text-foreground/50",
separator: "text-foreground/50"
},
primary: {
item: "text-primary/80",
separator: "text-primary/80"
},
secondary: {
item: "text-secondary/80",
separator: "text-secondary/80"
},
success: {
item: "text-success/80",
separator: "text-success/80"
},
warning: {
item: "text-warning/80",
separator: "text-warning/80"
},
danger: {
item: "text-danger/80",
separator: "text-danger/80"
}
},
size: {
sm: {
item: "text-tiny"
},
md: {
item: "text-small"
},
lg: {
item: "text-medium"
}
},
underline: {
none: {
item: "no-underline"
},
hover: {
item: "hover:underline"
},
always: {
item: "underline"
},
active: {
item: "active:underline"
},
focus: {
item: "focus:underline"
}
},
isCurrent: {
true: {
item: "cursor-default"
},
false: {
item: ["hover:opacity-80", "active:opacity-disabled"]
}
},
isDisabled: {
true: {
item: "opacity-disabled pointer-events-none",
separator: "opacity-disabled"
}
},
disableAnimation: {
false: {
item: "transition-opacity"
},
true: {
item: "transition-none"
}
}
},
defaultVariants: {
size: "md",
color: "foreground",
underline: "hover",
isDisabled: false
},
compoundVariants: [
{
isCurrent: true,
color: "foreground",
class: {
item: "text-foreground"
}
},
{
isCurrent: true,
color: "primary",
class: {
item: "text-primary"
}
},
{
isCurrent: true,
color: "secondary",
class: {
item: "text-secondary"
}
},
{
isCurrent: true,
color: "success",
class: {
item: "text-success"
}
},
{
isCurrent: true,
color: "warning",
class: {
item: "text-warning"
}
},
{
isCurrent: true,
color: "danger",
class: {
item: "text-danger"
}
},
{
isCurrent: false,
underline: "none",
class: {
item: "no-underline"
}
},
{
underline: ["hover", "always", "active", "focus"],
class: "underline-offset-4"
}
]
});
var breadcrumbs = tv({
slots: {
base: "",
list: "flex flex-wrap list-none",
ellipsis: "text-medium",
separator: "text-default-400 px-1"
},
variants: {
size: {
sm: {},
md: {},
lg: {}
},
radius: {
none: {
list: "rounded-none"
},
sm: {
list: "rounded-small"
},
md: {
list: "rounded-medium"
},
lg: {
list: "rounded-large"
},
full: {
list: "rounded-full"
}
},
variant: {
solid: {
list: "bg-default-100"
},
bordered: {
list: "border-medium border-default-200 shadow-sm"
},
light: {}
}
},
defaultVariants: {
size: "md",
radius: "sm",
variant: "light"
},
compoundVariants: [
{
variant: ["solid", "bordered"],
class: {
list: "max-w-fit"
}
},
{
variant: ["solid", "bordered"],
size: "sm",
class: {
list: "px-2 py-1"
}
},
{
variant: ["solid", "bordered"],
size: "md",
class: {
list: "px-2.5 py-1.5"
}
},
{
variant: ["solid", "bordered"],
size: "lg",
class: {
list: "px-3 py-2"
}
}
]
});
export {
breadcrumbItem,
breadcrumbs
};
@@ -0,0 +1,8 @@
'use strict';
var whichTypedArray = require('which-typed-array');
/** @type {import('.')} */
module.exports = function isTypedArray(value) {
return !!whichTypedArray(value);
};
@@ -0,0 +1,8 @@
import { OB11BaseNoticeEvent } from './OB11BaseNoticeEvent';
import { NapCatCore } from '../../../napcat-core';
export declare class OB11FriendRecallNoticeEvent extends OB11BaseNoticeEvent {
notice_type: string;
user_id: number;
message_id: number;
constructor(core: NapCatCore, userId: number, messageId: number);
}
@@ -0,0 +1,266 @@
/**
* Copyright (c) 2018 The xterm.js authors. All rights reserved.
* @license MIT
*/
import * as Strings from 'browser/LocalizableStrings';
import { Terminal as TerminalCore } from 'browser/Terminal';
import { IBufferRange, ITerminal } from 'browser/Types';
import { IEvent } from 'common/EventEmitter';
import { Disposable } from 'common/Lifecycle';
import { ITerminalOptions } from 'common/Types';
import { AddonManager } from 'common/public/AddonManager';
import { BufferNamespaceApi } from 'common/public/BufferNamespaceApi';
import { ParserApi } from 'common/public/ParserApi';
import { UnicodeApi } from 'common/public/UnicodeApi';
import { IBufferNamespace as IBufferNamespaceApi, IDecoration, IDecorationOptions, IDisposable, ILinkProvider, ILocalizableStrings, IMarker, IModes, IParser, ITerminalAddon, Terminal as ITerminalApi, ITerminalInitOnlyOptions, IUnicodeHandling } from '@xterm/xterm';
/**
* The set of options that only have an effect when set in the Terminal constructor.
*/
const CONSTRUCTOR_ONLY_OPTIONS = ['cols', 'rows'];
export class Terminal extends Disposable implements ITerminalApi {
private _core: ITerminal;
private _addonManager: AddonManager;
private _parser: IParser | undefined;
private _buffer: BufferNamespaceApi | undefined;
private _publicOptions: Required<ITerminalOptions>;
constructor(options?: ITerminalOptions & ITerminalInitOnlyOptions) {
super();
this._core = this.register(new TerminalCore(options));
this._addonManager = this.register(new AddonManager());
this._publicOptions = { ... this._core.options };
const getter = (propName: string): any => {
return this._core.options[propName];
};
const setter = (propName: string, value: any): void => {
this._checkReadonlyOptions(propName);
this._core.options[propName] = value;
};
for (const propName in this._core.options) {
const desc = {
get: getter.bind(this, propName),
set: setter.bind(this, propName)
};
Object.defineProperty(this._publicOptions, propName, desc);
}
}
private _checkReadonlyOptions(propName: string): void {
// Throw an error if any constructor only option is modified
// from terminal.options
// Modifications from anywhere else are allowed
if (CONSTRUCTOR_ONLY_OPTIONS.includes(propName)) {
throw new Error(`Option "${propName}" can only be set in the constructor`);
}
}
private _checkProposedApi(): void {
if (!this._core.optionsService.rawOptions.allowProposedApi) {
throw new Error('You must set the allowProposedApi option to true to use proposed API');
}
}
public get onBell(): IEvent<void> { return this._core.onBell; }
public get onBinary(): IEvent<string> { return this._core.onBinary; }
public get onCursorMove(): IEvent<void> { return this._core.onCursorMove; }
public get onData(): IEvent<string> { return this._core.onData; }
public get onKey(): IEvent<{ key: string, domEvent: KeyboardEvent }> { return this._core.onKey; }
public get onLineFeed(): IEvent<void> { return this._core.onLineFeed; }
public get onRender(): IEvent<{ start: number, end: number }> { return this._core.onRender; }
public get onResize(): IEvent<{ cols: number, rows: number }> { return this._core.onResize; }
public get onScroll(): IEvent<number> { return this._core.onScroll; }
public get onSelectionChange(): IEvent<void> { return this._core.onSelectionChange; }
public get onTitleChange(): IEvent<string> { return this._core.onTitleChange; }
public get onWriteParsed(): IEvent<void> { return this._core.onWriteParsed; }
public get element(): HTMLElement | undefined { return this._core.element; }
public get parser(): IParser {
if (!this._parser) {
this._parser = new ParserApi(this._core);
}
return this._parser;
}
public get unicode(): IUnicodeHandling {
this._checkProposedApi();
return new UnicodeApi(this._core);
}
public get textarea(): HTMLTextAreaElement | undefined { return this._core.textarea; }
public get rows(): number { return this._core.rows; }
public get cols(): number { return this._core.cols; }
public get buffer(): IBufferNamespaceApi {
if (!this._buffer) {
this._buffer = this.register(new BufferNamespaceApi(this._core));
}
return this._buffer;
}
public get markers(): ReadonlyArray<IMarker> {
this._checkProposedApi();
return this._core.markers;
}
public get modes(): IModes {
const m = this._core.coreService.decPrivateModes;
let mouseTrackingMode: 'none' | 'x10' | 'vt200' | 'drag' | 'any' = 'none';
switch (this._core.coreMouseService.activeProtocol) {
case 'X10': mouseTrackingMode = 'x10'; break;
case 'VT200': mouseTrackingMode = 'vt200'; break;
case 'DRAG': mouseTrackingMode = 'drag'; break;
case 'ANY': mouseTrackingMode = 'any'; break;
}
return {
applicationCursorKeysMode: m.applicationCursorKeys,
applicationKeypadMode: m.applicationKeypad,
bracketedPasteMode: m.bracketedPasteMode,
insertMode: this._core.coreService.modes.insertMode,
mouseTrackingMode: mouseTrackingMode,
originMode: m.origin,
reverseWraparoundMode: m.reverseWraparound,
sendFocusMode: m.sendFocus,
wraparoundMode: m.wraparound
};
}
public get options(): Required<ITerminalOptions> {
return this._publicOptions;
}
public set options(options: ITerminalOptions) {
for (const propName in options) {
this._publicOptions[propName] = options[propName];
}
}
public blur(): void {
this._core.blur();
}
public focus(): void {
this._core.focus();
}
public input(data: string, wasUserInput: boolean = true): void {
this._core.input(data, wasUserInput);
}
public resize(columns: number, rows: number): void {
this._verifyIntegers(columns, rows);
this._core.resize(columns, rows);
}
public open(parent: HTMLElement): void {
this._core.open(parent);
}
public attachCustomKeyEventHandler(customKeyEventHandler: (event: KeyboardEvent) => boolean): void {
this._core.attachCustomKeyEventHandler(customKeyEventHandler);
}
public attachCustomWheelEventHandler(customWheelEventHandler: (event: WheelEvent) => boolean): void {
this._core.attachCustomWheelEventHandler(customWheelEventHandler);
}
public registerLinkProvider(linkProvider: ILinkProvider): IDisposable {
return this._core.registerLinkProvider(linkProvider);
}
public registerCharacterJoiner(handler: (text: string) => [number, number][]): number {
this._checkProposedApi();
return this._core.registerCharacterJoiner(handler);
}
public deregisterCharacterJoiner(joinerId: number): void {
this._checkProposedApi();
this._core.deregisterCharacterJoiner(joinerId);
}
public registerMarker(cursorYOffset: number = 0): IMarker {
this._verifyIntegers(cursorYOffset);
return this._core.registerMarker(cursorYOffset);
}
public registerDecoration(decorationOptions: IDecorationOptions): IDecoration | undefined {
this._checkProposedApi();
this._verifyPositiveIntegers(decorationOptions.x ?? 0, decorationOptions.width ?? 0, decorationOptions.height ?? 0);
return this._core.registerDecoration(decorationOptions);
}
public hasSelection(): boolean {
return this._core.hasSelection();
}
public select(column: number, row: number, length: number): void {
this._verifyIntegers(column, row, length);
this._core.select(column, row, length);
}
public getSelection(): string {
return this._core.getSelection();
}
public getSelectionPosition(): IBufferRange | undefined {
return this._core.getSelectionPosition();
}
public clearSelection(): void {
this._core.clearSelection();
}
public selectAll(): void {
this._core.selectAll();
}
public selectLines(start: number, end: number): void {
this._verifyIntegers(start, end);
this._core.selectLines(start, end);
}
public dispose(): void {
super.dispose();
}
public scrollLines(amount: number): void {
this._verifyIntegers(amount);
this._core.scrollLines(amount);
}
public scrollPages(pageCount: number): void {
this._verifyIntegers(pageCount);
this._core.scrollPages(pageCount);
}
public scrollToTop(): void {
this._core.scrollToTop();
}
public scrollToBottom(): void {
this._core.scrollToBottom();
}
public scrollToLine(line: number): void {
this._verifyIntegers(line);
this._core.scrollToLine(line);
}
public clear(): void {
this._core.clear();
}
public write(data: string | Uint8Array, callback?: () => void): void {
this._core.write(data, callback);
}
public writeln(data: string | Uint8Array, callback?: () => void): void {
this._core.write(data);
this._core.write('\r\n', callback);
}
public paste(data: string): void {
this._core.paste(data);
}
public refresh(start: number, end: number): void {
this._verifyIntegers(start, end);
this._core.refresh(start, end);
}
public reset(): void {
this._core.reset();
}
public clearTextureAtlas(): void {
this._core.clearTextureAtlas();
}
public loadAddon(addon: ITerminalAddon): void {
this._addonManager.loadAddon(this, addon);
}
public static get strings(): ILocalizableStrings {
return Strings;
}
private _verifyIntegers(...values: number[]): void {
for (const value of values) {
if (value === Infinity || isNaN(value) || value % 1 !== 0) {
throw new Error('This API only accepts integers');
}
}
}
private _verifyPositiveIntegers(...values: number[]): void {
for (const value of values) {
if (value && (value === Infinity || isNaN(value) || value % 1 !== 0 || value < 0)) {
throw new Error('This API only accepts positive integers');
}
}
}
}
@@ -0,0 +1,116 @@
"use client";
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/use-slider-thumb.ts
var use_slider_thumb_exports = {};
__export(use_slider_thumb_exports, {
useSliderThumb: () => useSliderThumb
});
module.exports = __toCommonJS(use_slider_thumb_exports);
var import_slider = require("@react-aria/slider");
var import_react_utils = require("@heroui/react-utils");
var import_react = require("react");
var import_interactions = require("@react-aria/interactions");
var import_focus = require("@react-aria/focus");
var import_utils = require("@react-aria/utils");
var import_shared_utils = require("@heroui/shared-utils");
var import_i18n = require("@react-aria/i18n");
function useSliderThumb(props) {
const {
ref,
as,
state,
index,
name,
trackRef,
className,
tooltipProps,
isVertical,
showTooltip,
formatOptions,
renderThumb,
...otherProps
} = props;
const Component = as || "div";
const domRef = (0, import_react_utils.useDOMRef)(ref);
const inputRef = (0, import_react.useRef)(null);
const numberFormatter = (0, import_i18n.useNumberFormatter)(formatOptions);
const { thumbProps, inputProps, isDragging, isFocused } = (0, import_slider.useSliderThumb)(
{
index,
trackRef,
inputRef,
name,
...otherProps
},
state
);
const { hoverProps, isHovered } = (0, import_interactions.useHover)({
isDisabled: state.isDisabled
});
const { focusProps, isFocusVisible } = (0, import_focus.useFocusRing)();
const { pressProps, isPressed } = (0, import_interactions.usePress)({
isDisabled: state.isDisabled
});
const getThumbProps = (props2 = {}) => {
return {
ref: domRef,
"data-slot": "thumb",
"data-hover": (0, import_shared_utils.dataAttr)(isHovered),
"data-pressed": (0, import_shared_utils.dataAttr)(isPressed),
"data-dragging": (0, import_shared_utils.dataAttr)(isDragging),
"data-focused": (0, import_shared_utils.dataAttr)(isFocused),
"data-focus-visible": (0, import_shared_utils.dataAttr)(isFocusVisible),
...(0, import_utils.mergeProps)(thumbProps, pressProps, hoverProps, otherProps),
className,
...props2
};
};
const getTooltipProps = () => {
const value = numberFormatter ? numberFormatter.format(state.values[index != null ? index : 0]) : state.values[index != null ? index : 0];
return {
...tooltipProps,
placement: (tooltipProps == null ? void 0 : tooltipProps.placement) ? tooltipProps == null ? void 0 : tooltipProps.placement : isVertical ? "right" : "top",
content: (tooltipProps == null ? void 0 : tooltipProps.content) ? tooltipProps == null ? void 0 : tooltipProps.content : value,
updatePositionDeps: [isDragging, isHovered, value],
isOpen: (tooltipProps == null ? void 0 : tooltipProps.isOpen) !== void 0 ? tooltipProps == null ? void 0 : tooltipProps.isOpen : isHovered || isDragging
};
};
const getInputProps = (props2 = {}) => {
return {
ref: inputRef,
...(0, import_utils.mergeProps)(inputProps, focusProps),
...props2
};
};
return {
Component,
index,
showTooltip,
renderThumb,
getThumbProps,
getTooltipProps,
getInputProps
};
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
useSliderThumb
});
@@ -0,0 +1,52 @@
import $6tF2U$react from "react";
/*
* Copyright 2020 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
function $4ae5314bf50db1a3$var$TableBody(props) {
return null;
}
$4ae5314bf50db1a3$var$TableBody.getCollectionNode = function* getCollectionNode(props) {
let { children: children, items: items } = props;
yield {
type: 'body',
hasChildNodes: true,
props: props,
*childNodes () {
if (typeof children === 'function') {
if (!items) throw new Error('props.children was a function but props.items is missing');
for (let item of items)yield {
type: 'item',
value: item,
renderer: children
};
} else {
let items = [];
(0, $6tF2U$react).Children.forEach(children, (item)=>{
items.push({
type: 'item',
element: item
});
});
yield* items;
}
}
};
};
/**
* A TableBody is a container for the Row elements of a Table. Rows can be statically defined
* as children, or generated dynamically using a function based on the data passed to the `items` prop.
*/ // We don't want getCollectionNode to show up in the type definition
let $4ae5314bf50db1a3$export$76ccd210b9029917 = $4ae5314bf50db1a3$var$TableBody;
export {$4ae5314bf50db1a3$export$76ccd210b9029917 as TableBody};
//# sourceMappingURL=TableBody.module.js.map
@@ -0,0 +1,60 @@
/*
* Copyright 2024 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 {Key, LayoutDelegate, Rect, RefObject, Size} from '@react-types/shared';
export class DOMLayoutDelegate implements LayoutDelegate {
private ref: RefObject<HTMLElement | null>;
constructor(ref: RefObject<HTMLElement | null>) {
this.ref = ref;
}
getItemRect(key: Key): Rect | null {
let container = this.ref.current;
if (!container) {
return null;
}
let item = key != null ? container.querySelector(`[data-key="${CSS.escape(key.toString())}"]`) : null;
if (!item) {
return null;
}
let containerRect = container.getBoundingClientRect();
let itemRect = item.getBoundingClientRect();
return {
x: itemRect.left - containerRect.left + container.scrollLeft,
y: itemRect.top - containerRect.top + container.scrollTop,
width: itemRect.width,
height: itemRect.height
};
}
getContentSize(): Size {
let container = this.ref.current;
return {
width: container?.scrollWidth ?? 0,
height: container?.scrollHeight ?? 0
};
}
getVisibleRect(): Rect {
let container = this.ref.current;
return {
x: container?.scrollLeft ?? 0,
y: container?.scrollTop ?? 0,
width: container?.offsetWidth ?? 0,
height: container?.offsetHeight ?? 0
};
}
}
@@ -0,0 +1,21 @@
var getWrapDetails = require('./_getWrapDetails'),
insertWrapDetails = require('./_insertWrapDetails'),
setToString = require('./_setToString'),
updateWrapDetails = require('./_updateWrapDetails');
/**
* Sets the `toString` method of `wrapper` to mimic the source of `reference`
* with wrapper details in a comment at the top of the source body.
*
* @private
* @param {Function} wrapper The function to modify.
* @param {Function} reference The reference function.
* @param {number} bitmask The bitmask flags. See `createWrap` for more details.
* @returns {Function} Returns `wrapper`.
*/
function setWrapToString(wrapper, reference, bitmask) {
var source = (reference + '');
return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask)));
}
module.exports = setWrapToString;
@@ -0,0 +1,81 @@
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _identifier = require('../parser/util/identifier');
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar
// Hard-code a list of reserved words rather than trying to use keywords or contextual keywords
// from the parser, since currently there are various exceptions, like `package` being reserved
// but unused and various contextual keywords being reserved. Note that we assume that all code
// compiled by Sucrase is in a module, so strict mode words and await are all considered reserved
// here.
const RESERVED_WORDS = new Set([
// Reserved keywords as of ECMAScript 2015
"break",
"case",
"catch",
"class",
"const",
"continue",
"debugger",
"default",
"delete",
"do",
"else",
"export",
"extends",
"finally",
"for",
"function",
"if",
"import",
"in",
"instanceof",
"new",
"return",
"super",
"switch",
"this",
"throw",
"try",
"typeof",
"var",
"void",
"while",
"with",
"yield",
// Future reserved keywords
"enum",
"implements",
"interface",
"let",
"package",
"private",
"protected",
"public",
"static",
"await",
// Literals that cannot be used as identifiers
"false",
"null",
"true",
]);
/**
* Determine if the given name is a legal variable name.
*
* This is needed when transforming TypeScript enums; if an enum key is a valid
* variable name, it might be referenced later in the enum, so we need to
* declare a variable.
*/
function isIdentifier(name) {
if (name.length === 0) {
return false;
}
if (!_identifier.IS_IDENTIFIER_START[name.charCodeAt(0)]) {
return false;
}
for (let i = 1; i < name.length; i++) {
if (!_identifier.IS_IDENTIFIER_CHAR[name.charCodeAt(i)]) {
return false;
}
}
return !RESERVED_WORDS.has(name);
} exports.default = isIdentifier;
@@ -0,0 +1,11 @@
/*#__NO_SIDE_EFFECTS__*/
function memo(callback) {
let result;
return () => {
if (result === undefined)
result = callback();
return result;
};
}
export { memo };
@@ -0,0 +1,24 @@
'use strict'
/* eslint-env mocha */
/* eslint no-proto: 0 */
var assert = require('assert')
var setPrototypeOf = require('..')
describe('setProtoOf(obj, proto)', function () {
it('should merge objects', function () {
var obj = { a: 1, b: 2 }
var proto = { b: 3, c: 4 }
var mergeObj = setPrototypeOf(obj, proto)
if (Object.getPrototypeOf) {
assert.strictEqual(Object.getPrototypeOf(obj), proto)
} else if ({ __proto__: [] } instanceof Array) {
assert.strictEqual(obj.__proto__, proto)
} else {
assert.strictEqual(obj.a, 1)
assert.strictEqual(obj.b, 2)
assert.strictEqual(obj.c, 4)
}
assert.strictEqual(mergeObj, obj)
})
})
@@ -0,0 +1,22 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isStartOfExpressionStatement = isStartOfExpressionStatement;
const utils_1 = require("@typescript-eslint/utils");
// The following is copied from `eslint`'s source code.
// https://github.com/eslint/eslint/blob/3a4eaf921543b1cd5d1df4ea9dec02fab396af2a/lib/rules/utils/ast-utils.js#L1026-L1041
// Could be export { isStartOfExpressionStatement } from 'eslint/lib/rules/utils/ast-utils'
/**
* Tests if a node appears at the beginning of an ancestor ExpressionStatement node.
* @param node The node to check.
* @returns Whether the node appears at the beginning of an ancestor ExpressionStatement node.
*/
function isStartOfExpressionStatement(node) {
const start = node.range[0];
let ancestor = node;
while ((ancestor = ancestor.parent) && ancestor.range[0] === start) {
if (ancestor.type === utils_1.AST_NODE_TYPES.ExpressionStatement) {
return true;
}
}
return false;
}
@@ -0,0 +1,7 @@
import * as react_jsx_runtime from 'react/jsx-runtime';
import { IconSvgProps } from './types.js';
import 'react';
declare const MoonFilledIcon: (props: IconSvgProps) => react_jsx_runtime.JSX.Element;
export { MoonFilledIcon };
@@ -0,0 +1 @@
{"version":3,"file":"resolveDynamicValueBinding.d.ts","sourceRoot":"","sources":["../../../../src/resolution/actions/resolveDynamicValueBinding.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAE/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAG9C,eAAO,MAAM,0BAA0B,EAAE,CAAC,UAAU,EAClD,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,mBAAmB,CAAC,UAAU,CAAC,KACrC,QAAQ,CAAC,UAAU,CAMa,CAAC"}
@@ -0,0 +1,31 @@
'use strict';
module.exports = function (trimStart, t) {
t.test('normal cases', function (st) {
st.equal(trimStart(' \t\na \t\n'), 'a \t\n', 'strips whitespace off the left side');
st.equal(trimStart('a'), 'a', 'noop when no whitespace');
var allWhitespaceChars = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
st.equal(trimStart(allWhitespaceChars + 'a' + allWhitespaceChars), 'a' + allWhitespaceChars, 'all expected whitespace chars are trimmed');
st.end();
});
// see https://codeblog.jonskeet.uk/2014/12/01/when-is-an-identifier-not-an-identifier-attack-of-the-mongolian-vowel-separator/
var mongolianVowelSeparator = '\u180E';
var mvsIsWS = (/^\s$/).test(mongolianVowelSeparator);
t.test('mongolian vowel separator: unicode >= 4 && < 6.3', function (st) {
st.equal(
trimStart(mongolianVowelSeparator + 'a' + mongolianVowelSeparator),
(mvsIsWS ? '' : mongolianVowelSeparator) + 'a' + mongolianVowelSeparator,
'mongolian vowel separator is ' + (mvsIsWS ? '' : 'not ') + 'whitespace'
);
st.end();
});
t.test('zero-width spaces', function (st) {
var zeroWidth = '\u200b';
st.equal(trimStart(zeroWidth), zeroWidth, 'zero width space does not trim');
st.end();
});
};
@@ -0,0 +1,30 @@
# jsx-a11y/accessible-emoji
❌ This rule is deprecated.
<!-- end auto-generated rule header -->
Emoji have become a common way of communicating content to the end user. To a person using a screen reader, however, they may not be aware that this content is there at all. By wrapping the emoji in a `<span>`, giving it the `role="img"`, and providing a useful description in `aria-label`, the screen reader will treat the emoji as an image in the accessibility tree with an accessible name for the end user.
## Rule details
This rule takes no arguments.
### Succeed
```jsx
<span role="img" aria-label="Snowman">&#9731;</span>
<span role="img" aria-label="Panda">🐼</span>
<span role="img" aria-labelledby="panda1">🐼</span>
```
### Fail
```jsx
<span>🐼</span>
<i role="img" aria-label="Panda">🐼</i>
```
## Accessibility guidelines
- [WCAG 1.1.1](https://www.w3.org/WAI/WCAG21/Understanding/non-text-content.html)
### Resources
- [Léonie Watson, Accessible Emoji](https://tink.uk/accessible-emoji/)
@@ -0,0 +1,16 @@
export declare class Sha1Stream {
readonly Sha1BlockSize = 64;
readonly Sha1DigestSize = 20;
private readonly _padding;
private readonly _state;
private readonly _count;
private readonly _buffer;
private readonly _w;
constructor();
private reset;
private rotateLeft;
private transform;
update(data: Buffer, len?: number): void;
hash(bigEndian?: boolean): Buffer;
final(): Buffer;
}
@@ -0,0 +1,107 @@
{
"name": "@typescript-eslint/utils",
"version": "8.46.4",
"description": "Utilities for working with TypeScript + ESLint together",
"files": [
"dist",
"!*.tsbuildinfo",
"package.json",
"README.md",
"LICENSE"
],
"type": "commonjs",
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./ast-utils": {
"types": "./dist/ast-utils/index.d.ts",
"default": "./dist/ast-utils/index.js"
},
"./eslint-utils": {
"types": "./dist/eslint-utils/index.d.ts",
"default": "./dist/eslint-utils/index.js"
},
"./json-schema": {
"types": "./dist/json-schema.d.ts",
"default": "./dist/json-schema.js"
},
"./ts-eslint": {
"types": "./dist/ts-eslint/index.d.ts",
"default": "./dist/ts-eslint/index.js"
},
"./package.json": "./package.json"
},
"types": "./dist/index.d.ts",
"engines": {
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
},
"repository": {
"type": "git",
"url": "https://github.com/typescript-eslint/typescript-eslint.git",
"directory": "packages/utils"
},
"bugs": {
"url": "https://github.com/typescript-eslint/typescript-eslint/issues"
},
"homepage": "https://typescript-eslint.io/packages/utils",
"license": "MIT",
"keywords": [
"eslint",
"typescript",
"estree"
],
"scripts": {
"build": "yarn run -BT nx build",
"clean": "rimraf dist/ coverage/",
"format": "yarn run -T format",
"lint": "yarn run -BT nx lint",
"test": "yarn run -BT nx test",
"typecheck": "yarn run -BT nx typecheck"
},
"dependencies": {
"@eslint-community/eslint-utils": "^4.7.0",
"@typescript-eslint/scope-manager": "8.46.4",
"@typescript-eslint/types": "8.46.4",
"@typescript-eslint/typescript-estree": "8.46.4"
},
"peerDependencies": {
"eslint": "^8.57.0 || ^9.0.0",
"typescript": ">=4.8.4 <6.0.0"
},
"devDependencies": {
"@vitest/coverage-v8": "^3.1.3",
"eslint": "*",
"rimraf": "*",
"typescript": "*",
"vitest": "^3.1.3"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/typescript-eslint"
},
"nx": {
"name": "utils",
"includedScripts": [
"clean"
],
"targets": {
"lint": {
"command": "eslint"
},
"typecheck": {
"outputs": [
"{workspaceRoot}/dist",
"{projectRoot}/dist"
]
},
"test": {
"dependsOn": [
"^build",
"typecheck"
]
}
}
}
}
@@ -0,0 +1,23 @@
import "../chunk-3ARAAK6Z.mjs";
import {
CopyLinearIcon
} from "../chunk-W5SCNTSN.mjs";
import {
SearchLinearIcon
} from "../chunk-O65ECHHD.mjs";
import {
CheckLinearIcon
} from "../chunk-6O2NYG7W.mjs";
import {
ChevronCircleTopLinearIcon
} from "../chunk-D7KR3R5S.mjs";
import {
ClockCircleLinearIcon
} from "../chunk-3KV3RZ3C.mjs";
export {
CheckLinearIcon,
ChevronCircleTopLinearIcon,
ClockCircleLinearIcon,
CopyLinearIcon,
SearchLinearIcon
};
@@ -0,0 +1 @@
{"name":"eslint-plugin-promise","version":"7.2.1","requiresBuild":false,"files":{".eslint-doc-generatorrc.js":{"checkedAt":1794532099681,"integrity":"sha512-kk1ShjWQlEh0NwpAdw9MRLnb35w/vQ3sVAqxt14/1LU0JEMcsyQIupph4IQLfoitGoT8yslEjdjW7cbWjazLXQ==","mode":420,"size":242},"rules/always-return.js":{"checkedAt":1794532099681,"integrity":"sha512-ndp42qFxOThce0Wo6BO73ootsJSgJDfg3WtUnEwTkkpzau8mxOLCy+/Hmdshso3v5DyckSpnETvCkwRKJ9UV8Q==","mode":420,"size":8766},"rules/avoid-new.js":{"checkedAt":1794532099681,"integrity":"sha512-QhAa+4F1G/rH15k6uVoj54YIkIIvg7JYRt0GyqOsnaFqM5jXBKCOvxe5CCC91XWXacNZRLV0NxYwEUP5YmIbGw==","mode":420,"size":671},"rules/catch-or-return.js":{"checkedAt":1794532099681,"integrity":"sha512-Qgzqk/Yk0R5vJ40ONN4on4lsgdcMgkTWpL1gh2eh7q4rNhiAJve1OTnDW3oEkgQ9nPFgwWKUuXwBVFtN8J7fNA==","mode":420,"size":3600},"rules/lib/eslint-compat.js":{"checkedAt":1794532099682,"integrity":"sha512-2yjPmQVQkIdmacXw8cYry7Ifs7JlkZVD1xsq+OvO33KIMww9A/TCONG/UTBKCz+g2/BMJur1zbVpg8AsSk5TNQ==","mode":420,"size":651},"rules/lib/get-docs-url.js":{"checkedAt":1794532099682,"integrity":"sha512-KuKs+nJV3dV8wGfxnfpVJNKEsjJwN77Gd18ye0ApBA/Lt067vR1nsidSevoFryo43diEnDYTMvvXRzd9vKYh5A==","mode":420,"size":506},"rules/lib/has-promise-callback.js":{"checkedAt":1794532099682,"integrity":"sha512-Oeue77kQ5cs2faFwF36MfJ9ze2zy7Sf9RjP4f01DxQ/7/WTP+jBwfFgF3pNq/k6Vca9e0AGxygaUO4u0V4MIlA==","mode":420,"size":1169},"index.js":{"checkedAt":1794532099682,"integrity":"sha512-2pk9rPkMdVct/EAhs07U4jtU4fmuOWO3ik18aYkQuVB7fpn2Bis7LS+yugOvLEGC87IypmF+KfX/nI0WCSj6qw==","mode":420,"size":1943},"rules/lib/is-callback.js":{"checkedAt":1794532099682,"integrity":"sha512-iyY1ak8BkFdttvIMMQnlVdbthXMos0OOKtx4LAccqe4uOtUDcHvvusKOkKoiew1wfriR2gswYbUbQBRoWMWqXA==","mode":420,"size":428},"rules/lib/is-inside-callback.js":{"checkedAt":1794532099682,"integrity":"sha512-IXm5L4EshKU9dcawFbRuGq6paParCUbSsXtQgU0pUMOSUL9IvxlIlMez0BsBArsi4Da0Ynx8hBEvDpLjlU+zjg==","mode":420,"size":619},"rules/lib/is-inside-promise.js":{"checkedAt":1794532099682,"integrity":"sha512-lVGUkIIXIq2tvEqfZKWcsVD1MHQ5GCtasJxng2mqW4Tac8A1tR1pIVozsQijZzE9YPaanXDe7Td15PUqETlIhQ==","mode":420,"size":470},"rules/lib/is-member-call-with-object-name.js":{"checkedAt":1794532099682,"integrity":"sha512-Fv0mvM9cul8lV4GVdA7qjzZZPUsq3dREQQsNt57Taj9kad0rPdKFqlTtNRYPe00n0EskjAyoAL8zOx75y3QtfQ==","mode":420,"size":479},"rules/lib/is-named-callback.js":{"checkedAt":1794532099683,"integrity":"sha512-oeBmf0kbqb4LVgiaBRQ8dTPaDrBVpTYgsnFAFE2gzzURdk1wpFkXMTNiy0mStj9DOoO0OCvtCnjlCCzZIlEC7Q==","mode":420,"size":394},"rules/lib/is-promise-constructor.js":{"checkedAt":1794532099683,"integrity":"sha512-WGCOfe2gpaeTcbGR9rE9CUzExwpJzwWGM5c1EGqtbDJxqIayny0LyzABQxfI5zvWyD+gOCLsgUVH5JhHnzXPZQ==","mode":420,"size":1406},"rules/lib/is-promise.js":{"checkedAt":1794532099683,"integrity":"sha512-2xNWzHs837LrYK/cniFbfoU9/Y2iuAIJs6NaaGMROoSk3Bkz2s0n7v+mv7ZmgVxlO9HjQDyzQ3Ffg1o7Ye6zow==","mode":420,"size":1300},"rules/no-callback-in-promise.js":{"checkedAt":1794532099683,"integrity":"sha512-EP80pDWWF4Tu7W70CYfjeBgVI9VJGFskgLvVCJ0LCtshwlFm9fTHROQVinrfoisOmMCagNLKGSrrC9oxW/0S3g==","mode":420,"size":2907},"rules/no-multiple-resolved.js":{"checkedAt":1794532099683,"integrity":"sha512-6cfXcOZdctez1p5wiUlkkGTWizRkZwYVEgBAWXR/+moqD2IPCjRdik+gYas6ZXooweqUbPXkF9rhidGoviiQuQ==","mode":420,"size":15707},"rules/no-native.js":{"checkedAt":1794532099683,"integrity":"sha512-jvR9xu4+PQ5DjvuTwiVn55IjeyZd5hBqJ8hPLHQF97NfG65EXzzzbGaYrXeOUF3m1Uxgw9lE978JLc530y1avQ==","mode":420,"size":2005},"rules/no-nesting.js":{"checkedAt":1794532099684,"integrity":"sha512-AU0ZGw0DTxwpE4hc9bYozG4TfgeMYf3ppJ9M5qCouBmzFzBvsPfNGGQD769569uQbxOgNnOcXCeN9Nfbne0qxA==","mode":420,"size":3298},"rules/no-new-statics.js":{"checkedAt":1794532099684,"integrity":"sha512-CqOKrBQUknwX4UvwzuAkvKAxcqLndkrq+FNt7Wv8YPc5Wt+kvOzcSrW9n7fK62Hdty/6hAIze/mfr0t5ADEdcg==","mode":420,"size":1058},"rules/no-promise-in-callback.js":{"checkedAt":1794532099684,"integrity":"sha512-6lC1BOARcgPpop0YevSUm7m/iwcPmtuLmN8dSxdVAUGeJrwHeTwvK1huVUsN1JBfR4jJrz9Fu0B+ZnWk2URh1Q==","mode":420,"size":1241},"rules/no-return-in-finally.js":{"checkedAt":1794532099684,"integrity":"sha512-fQPkwQ4k7jDljsaaC5uRtidkxdES1ELyNkVeQIJtvszDJrkedD5ZqiJ64MVZ0P9mLxZlPIsltjJ1cT69IuJ9EA==","mode":420,"size":1299},"rules/no-return-wrap.js":{"checkedAt":1794532099684,"integrity":"sha512-ni7qcS8CaQ9FXnUb39+hJ/ERxWxk9ybYOOEIIPUuVEsW5w4y4xtrasOrA1WkvPVBDYqV+ZIXjZ6ovLCvWxUp2Q==","mode":420,"size":2759},"rules/param-names.js":{"checkedAt":1794532099685,"integrity":"sha512-aKhdkwOcoNJatmBfqe1up/C+xCpgfK8cTfXpFGQaRiTWGWrldpvETXpZqVoz6PfSZVipMbPxBy9S6TOjKHMxsQ==","mode":420,"size":2079},"rules/lib/parentheses.js":{"checkedAt":1794532099685,"integrity":"sha512-WUHcxVYGGdDdZb1pE5eL9fvcZ87glplYTaJqYXS+yQyTBSyjhhfkWoepTmgNqrl9Oy5V0afv6UzPEEbOm4Nx/w==","mode":420,"size":1106},"rules/prefer-await-to-callbacks.js":{"checkedAt":1794532099685,"integrity":"sha512-WVJ64KBJ7bEUGTT/VnEPoYeow2nBtoUtZRv+6FvlIrZmYi117NSqtAGBoNPP8p25i9Sw49wbjGgnS92vFSMIXQ==","mode"Line truncated
@@ -0,0 +1,43 @@
/**
* Copyright (c) 2018 The xterm.js authors. All rights reserved.
* @license MIT
*/
import { EventEmitter } from 'common/EventEmitter';
import { disposeArray } from 'common/Lifecycle';
import { IDisposable, IMarker } from 'common/Types';
export class Marker implements IMarker {
private static _nextId = 1;
public isDisposed: boolean = false;
private readonly _disposables: IDisposable[] = [];
private readonly _id: number = Marker._nextId++;
public get id(): number { return this._id; }
private readonly _onDispose = this.register(new EventEmitter<void>());
public readonly onDispose = this._onDispose.event;
constructor(
public line: number
) {
}
public dispose(): void {
if (this.isDisposed) {
return;
}
this.isDisposed = true;
this.line = -1;
// Emit before super.dispose such that dispose listeners get a change to react
this._onDispose.fire();
disposeArray(this._disposables);
this._disposables.length = 0;
}
public register<T extends IDisposable>(disposable: T): T {
this._disposables.push(disposable);
return disposable;
}
}
@@ -0,0 +1,43 @@
/*!
Copyright 2013 Lovell Fuller and others.
SPDX-License-Identifier: Apache-2.0
*/
#include <mutex>
#include <napi.h>
#include <vips/vips8>
#include "./common.h"
#include "./metadata.h"
#include "./pipeline.h"
#include "./stats.h"
#include "./utilities.h"
Napi::Object init(Napi::Env env, Napi::Object exports) {
static std::once_flag sharp_vips_init_once;
std::call_once(sharp_vips_init_once, []() {
vips_init("sharp");
});
g_log_set_handler("VIPS", static_cast<GLogLevelFlags>(G_LOG_LEVEL_WARNING),
static_cast<GLogFunc>(sharp::VipsWarningCallback), nullptr);
// Methods available to JavaScript
exports.Set("metadata", Napi::Function::New(env, metadata));
exports.Set("pipeline", Napi::Function::New(env, pipeline));
exports.Set("cache", Napi::Function::New(env, cache));
exports.Set("concurrency", Napi::Function::New(env, concurrency));
exports.Set("counters", Napi::Function::New(env, counters));
exports.Set("simd", Napi::Function::New(env, simd));
exports.Set("libvipsVersion", Napi::Function::New(env, libvipsVersion));
exports.Set("format", Napi::Function::New(env, format));
exports.Set("block", Napi::Function::New(env, block));
exports.Set("_maxColourDistance", Napi::Function::New(env, _maxColourDistance));
exports.Set("_isUsingJemalloc", Napi::Function::New(env, _isUsingJemalloc));
exports.Set("_isUsingX64V2", Napi::Function::New(env, _isUsingX64V2));
exports.Set("stats", Napi::Function::New(env, stats));
return exports;
}
NODE_API_MODULE(sharp, init)
@@ -0,0 +1,51 @@
{
"name": "safe-buffer",
"description": "Safer Node.js Buffer API",
"version": "5.2.1",
"author": {
"name": "Feross Aboukhadijeh",
"email": "feross@feross.org",
"url": "https://feross.org"
},
"bugs": {
"url": "https://github.com/feross/safe-buffer/issues"
},
"devDependencies": {
"standard": "*",
"tape": "^5.0.0"
},
"homepage": "https://github.com/feross/safe-buffer",
"keywords": [
"buffer",
"buffer allocate",
"node security",
"safe",
"safe-buffer",
"security",
"uninitialized"
],
"license": "MIT",
"main": "index.js",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "git://github.com/feross/safe-buffer.git"
},
"scripts": {
"test": "standard && tape test/*.js"
},
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/feross"
},
{
"type": "patreon",
"url": "https://www.patreon.com/feross"
},
{
"type": "consulting",
"url": "https://feross.org/support"
}
]
}
@@ -0,0 +1,6 @@
import { GetPlanOptions } from '../models/GetPlanOptions';
import { NonCachedServiceNodeContext } from '../models/NonCachedServiceNodeContext';
import { PlanParamsOperations } from '../models/PlanParamsOperations';
import { PlanServiceNode } from '../models/PlanServiceNode';
export declare function cacheNonRootPlanServiceNode(getPlanOptions: GetPlanOptions | undefined, operations: PlanParamsOperations, planServiceNode: PlanServiceNode, context: NonCachedServiceNodeContext): void;
//# sourceMappingURL=cacheNonRootPlanServiceNode.d.ts.map
@@ -0,0 +1,101 @@
/*
* 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 {getOwnerDocument, isIOS, runAfterTransition} from '@react-aria/utils';
// Safari on iOS starts selecting text on long press. The only way to avoid this, it seems,
// is to add user-select: none to the entire page. Adding it to the pressable element prevents
// that element from being selected, but nearby elements may still receive selection. We add
// user-select: none on touch start, and remove it again on touch end to prevent this.
// This must be implemented using global state to avoid race conditions between multiple elements.
// There are three possible states due to the delay before removing user-select: none after
// pointer up. The 'default' state always transitions to the 'disabled' state, which transitions
// to 'restoring'. The 'restoring' state can either transition back to 'disabled' or 'default'.
// For non-iOS devices, we apply user-select: none to the pressed element instead to avoid possible
// performance issues that arise from applying and removing user-select: none to the entire page
// (see https://github.com/adobe/react-spectrum/issues/1609).
type State = 'default' | 'disabled' | 'restoring';
// Note that state only matters here for iOS. Non-iOS gets user-select: none applied to the target element
// rather than at the document level so we just need to apply/remove user-select: none for each pressed element individually
let state: State = 'default';
let savedUserSelect = '';
let modifiedElementMap = new WeakMap<Element, string>();
export function disableTextSelection(target?: Element): void {
if (isIOS()) {
if (state === 'default') {
const documentObject = getOwnerDocument(target);
savedUserSelect = documentObject.documentElement.style.webkitUserSelect;
documentObject.documentElement.style.webkitUserSelect = 'none';
}
state = 'disabled';
} else if (target instanceof HTMLElement || target instanceof SVGElement) {
// If not iOS, store the target's original user-select and change to user-select: none
// Ignore state since it doesn't apply for non iOS
let property = 'userSelect' in target.style ? 'userSelect' : 'webkitUserSelect';
modifiedElementMap.set(target, target.style[property]);
target.style[property] = 'none';
}
}
export function restoreTextSelection(target?: Element): void {
if (isIOS()) {
// If the state is already default, there's nothing to do.
// If it is restoring, then there's no need to queue a second restore.
if (state !== 'disabled') {
return;
}
state = 'restoring';
// There appears to be a delay on iOS where selection still might occur
// after pointer up, so wait a bit before removing user-select.
setTimeout(() => {
// Wait for any CSS transitions to complete so we don't recompute style
// for the whole page in the middle of the animation and cause jank.
runAfterTransition(() => {
// Avoid race conditions
if (state === 'restoring') {
const documentObject = getOwnerDocument(target);
if (documentObject.documentElement.style.webkitUserSelect === 'none') {
documentObject.documentElement.style.webkitUserSelect = savedUserSelect || '';
}
savedUserSelect = '';
state = 'default';
}
});
}, 300);
} else if (target instanceof HTMLElement || target instanceof SVGElement) {
// If not iOS, restore the target's original user-select if any
// Ignore state since it doesn't apply for non iOS
if (target && modifiedElementMap.has(target)) {
let targetOldUserSelect = modifiedElementMap.get(target) as string;
let property = 'userSelect' in target.style ? 'userSelect' : 'webkitUserSelect';
if (target.style[property] === 'none') {
target.style[property] = targetOldUserSelect;
}
if (target.getAttribute('style') === '') {
target.removeAttribute('style');
}
modifiedElementMap.delete(target);
}
}
}
@@ -0,0 +1,74 @@
import { __decorate } from "tslib";
import { AsnProp, AsnPropTypes, AsnType, AsnTypeTypes, AsnOctetStringConverter, } from "@peculiar/asn1-schema";
import { IpConverter } from "./ip_converter";
import { DirectoryString, Name } from "./name";
export const AsnIpConverter = {
fromASN: (value) => IpConverter.toString(AsnOctetStringConverter.fromASN(value)),
toASN: (value) => AsnOctetStringConverter.toASN(IpConverter.fromString(value)),
};
export class OtherName {
constructor(params = {}) {
this.typeId = "";
this.value = new ArrayBuffer(0);
Object.assign(this, params);
}
}
__decorate([
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
], OtherName.prototype, "typeId", void 0);
__decorate([
AsnProp({ type: AsnPropTypes.Any, context: 0 })
], OtherName.prototype, "value", void 0);
export class EDIPartyName {
constructor(params = {}) {
this.partyName = new DirectoryString();
Object.assign(this, params);
}
}
__decorate([
AsnProp({ type: DirectoryString, optional: true, context: 0, implicit: true })
], EDIPartyName.prototype, "nameAssigner", void 0);
__decorate([
AsnProp({ type: DirectoryString, context: 1, implicit: true })
], EDIPartyName.prototype, "partyName", void 0);
let GeneralName = class GeneralName {
constructor(params = {}) {
Object.assign(this, params);
}
};
__decorate([
AsnProp({ type: OtherName, context: 0, implicit: true })
], GeneralName.prototype, "otherName", void 0);
__decorate([
AsnProp({ type: AsnPropTypes.IA5String, context: 1, implicit: true })
], GeneralName.prototype, "rfc822Name", void 0);
__decorate([
AsnProp({ type: AsnPropTypes.IA5String, context: 2, implicit: true })
], GeneralName.prototype, "dNSName", void 0);
__decorate([
AsnProp({ type: AsnPropTypes.Any, context: 3, implicit: true })
], GeneralName.prototype, "x400Address", void 0);
__decorate([
AsnProp({ type: Name, context: 4, implicit: false })
], GeneralName.prototype, "directoryName", void 0);
__decorate([
AsnProp({ type: EDIPartyName, context: 5 })
], GeneralName.prototype, "ediPartyName", void 0);
__decorate([
AsnProp({ type: AsnPropTypes.IA5String, context: 6, implicit: true })
], GeneralName.prototype, "uniformResourceIdentifier", void 0);
__decorate([
AsnProp({
type: AsnPropTypes.OctetString,
context: 7,
implicit: true,
converter: AsnIpConverter,
})
], GeneralName.prototype, "iPAddress", void 0);
__decorate([
AsnProp({ type: AsnPropTypes.ObjectIdentifier, context: 8, implicit: true })
], GeneralName.prototype, "registeredID", void 0);
GeneralName = __decorate([
AsnType({ type: AsnTypeTypes.Choice })
], GeneralName);
export { GeneralName };
@@ -0,0 +1 @@
export { _ as default } from "../esm/_class_extract_field_descriptor.js";
@@ -0,0 +1 @@
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCA,iBAAiB;IACf,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;AACX","sources":["packages/@react-aria/menu/src/*.js"],"sourcesContent":["const _temp0 = require(\"../intl/ar-AE.json\");\nconst _temp1 = require(\"../intl/bg-BG.json\");\nconst _temp2 = require(\"../intl/cs-CZ.json\");\nconst _temp3 = require(\"../intl/da-DK.json\");\nconst _temp4 = require(\"../intl/de-DE.json\");\nconst _temp5 = require(\"../intl/el-GR.json\");\nconst _temp6 = require(\"../intl/en-US.json\");\nconst _temp7 = require(\"../intl/es-ES.json\");\nconst _temp8 = require(\"../intl/et-EE.json\");\nconst _temp9 = require(\"../intl/fi-FI.json\");\nconst _temp10 = require(\"../intl/fr-FR.json\");\nconst _temp11 = require(\"../intl/he-IL.json\");\nconst _temp12 = require(\"../intl/hr-HR.json\");\nconst _temp13 = require(\"../intl/hu-HU.json\");\nconst _temp14 = require(\"../intl/it-IT.json\");\nconst _temp15 = require(\"../intl/ja-JP.json\");\nconst _temp16 = require(\"../intl/ko-KR.json\");\nconst _temp17 = require(\"../intl/lt-LT.json\");\nconst _temp18 = require(\"../intl/lv-LV.json\");\nconst _temp19 = require(\"../intl/nb-NO.json\");\nconst _temp20 = require(\"../intl/nl-NL.json\");\nconst _temp21 = require(\"../intl/pl-PL.json\");\nconst _temp22 = require(\"../intl/pt-BR.json\");\nconst _temp23 = require(\"../intl/pt-PT.json\");\nconst _temp24 = require(\"../intl/ro-RO.json\");\nconst _temp25 = require(\"../intl/ru-RU.json\");\nconst _temp26 = require(\"../intl/sk-SK.json\");\nconst _temp27 = require(\"../intl/sl-SI.json\");\nconst _temp28 = require(\"../intl/sr-SP.json\");\nconst _temp29 = require(\"../intl/sv-SE.json\");\nconst _temp30 = require(\"../intl/tr-TR.json\");\nconst _temp31 = require(\"../intl/uk-UA.json\");\nconst _temp32 = require(\"../intl/zh-CN.json\");\nconst _temp33 = require(\"../intl/zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}"],"names":[],"version":3,"file":"intlStrings.main.js.map"}
@@ -0,0 +1,3 @@
export * from './data';
export * from './message';
export * from './quick';
@@ -0,0 +1,27 @@
/*
* 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 {RefObject} from '@react-types/shared';
import {useDOMPropsResponderContext} from './DOMPropsContext';
export function useDOMPropsResponder(domRef: RefObject<Element | null>) {
let domProps = useDOMPropsResponderContext({ref: domRef}) || {};
// @ts-ignore
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const {register, isDisabled, onPress, ...partialDomProps} = domProps;
return {
contextProps: partialDomProps
};
}
@@ -0,0 +1,4 @@
function _instanceof(n, e) {
return null != e && "undefined" != typeof Symbol && e[Symbol.hasInstance] ? !!e[Symbol.hasInstance](n) : n instanceof e;
}
module.exports = _instanceof, module.exports.__esModule = true, module.exports["default"] = module.exports;
@@ -0,0 +1,75 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _ariaQuery = require("aria-query");
var _jsxAstUtils = require("jsx-ast-utils");
var _getElementType = _interopRequireDefault(require("../util/getElementType"));
var _schemas = require("../util/schemas");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
var errorMessage = 'Use {{tag}} instead of the "{{role}}" role to ensure accessibility across all devices.';
var schema = (0, _schemas.generateObjSchema)();
var formatTag = function formatTag(tag) {
if (!tag.attributes) {
return "<".concat(tag.name, ">");
}
var _tag$attributes = _slicedToArray(tag.attributes, 1),
attribute = _tag$attributes[0];
var value = attribute.value ? "\"".concat(attribute.value, "\"") : '...';
return "<".concat(tag.name, " ").concat(attribute.name, "=").concat(value, ">");
};
var getLastPropValue = function getLastPropValue(rawProp) {
var propValue = (0, _jsxAstUtils.getPropValue)(rawProp);
if (!propValue) {
return propValue;
}
var lastSpaceIndex = propValue.lastIndexOf(' ');
return lastSpaceIndex === -1 ? propValue : propValue.substring(lastSpaceIndex + 1);
};
var _default = exports["default"] = {
meta: {
docs: {
description: 'Enforces using semantic DOM elements over the ARIA `role` property.',
url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/prefer-tag-over-role.md'
},
schema: [schema]
},
create: function create(context) {
var elementType = (0, _getElementType["default"])(context);
return {
JSXOpeningElement: function JSXOpeningElement(node) {
var role = getLastPropValue((0, _jsxAstUtils.getProp)(node.attributes, 'role'));
if (!role) {
return;
}
var matchedTagsSet = _ariaQuery.roleElements.get(role);
if (!matchedTagsSet) {
return;
}
var matchedTags = Array.from(matchedTagsSet);
if (matchedTags.some(function (matchedTag) {
return matchedTag.name === elementType(node);
})) {
return;
}
context.report({
data: {
tag: matchedTags.length === 1 ? formatTag(matchedTags[0]) : [matchedTags.slice(0, matchedTags.length - 1).map(formatTag).join(', '), formatTag(matchedTags[matchedTags.length - 1])].join(', or '),
role
},
node,
message: errorMessage
});
}
};
}
};
module.exports = exports.default;
@@ -0,0 +1,732 @@
export default `flf2a$ 7 7 14 0 16 0 8004 0
Author : MJP (AKA MikeChat)
Date : 2003/9/27 12:58:29
Version: 1.0
-------------------------------------------------
-------------------------------------------------
This font has been created using JavE's FIGlet font export assistant.
Have a look at: http://www.jave.de
Permission is hereby given to modify this font, as long as the
modifier's name is placed on a comment line.
---
Font modified June 17, 2007 by patorjk
This was to widen the space character.
$ $#
$ $#
$ $#
$ $#
$ $#
$ $#
$ $##
.--. #
(O)(O) #
| o / #
|\`-/ #
|_/ #
_ #
(_) ##
"#
#
#
#
#
#
##
##
#
#
#
#
#
##
$#
#
#
#
#
#
##
%#
#
#
#
#
#
##
&#
#
#
#
#
#
##
#
__ #
( ) #
)/ #
/ #
#
##
(#
#
#
#
#
#
##
)#
#
#
#
#
#
##
*#
#
#
#
#
#
##
+#
#
#
#
#
#
##
#
#
#
#
__ #
( ) #
)/ ##
#
#
#
_____ #
[_____] #
#
##
#
#
#
#
#
_ #
(_) ##
/#
#
#
#
#
#
##
.-. #
(O)_(O) #
/ .-. \\ #
/ /_|_\\ \\ #
| \\___/ | #
'. \`-' .\` #
\`-.-' ##
__ #
/' \\ #
" || #
|| #
|| #
_||_ #
(_/\\_) ##
#
(O)-. #
(_.-. \\ #
)/ #
// #
/(____; #
(____.-' ##
wWw #
_(O) #
(__ \\ #
) \\ #
(_ ) #
_/ / #
(__/ ##
\\\\ // #
(o)(o) #
/ /\\ \\ #
|(__)| #
\\___ | #
| |_ #
\\___) ##
#
oo_ #
.' __) #
| |__ #
|___ \\ #
____) ) #
(_____/ ##
;(O) #
"/ __) #
| |__ #
| __ \\ #
|(__)| #
\\ / #
\`--' ##
(O)-. #
(_.-. \\ #
) ) #
/ / #
/ / #
/ | #
/_|_\\ ##
wWwWw #
(O)o) #
/ _ \\ #
/ (_) \\ #
( /"\\ ) #
\\ \\_/ / #
\\___/ ##
,--. #
(O)(O) #
|(__)| #
| __/ #
| /|\\ #
\\ \`-. #
\`--' ##
#
#
_ #
(_) #
#
_ #
(_) ##
;#
#
#
#
#
#
##
<#
#
#
#
#
#
##
=#
#
#
#
#
#
##
>#
#
#
#
#
#
##
(O)-. #
(_.-. \\ #
)/ #
// #
(/ #
_ #
(_) ##
@#
#
#
#
#
#
##
#
/) #
(o)(O) #
//\\\\ #
|(__)| #
/,-. | #
-' '' ##
___ #
(___)__ #
(O)(O) #
/ _\\ #
| |_)) #
| |_)) #
(.'-' ##
c c #
(OO) #
,'.--.) #
/ //_|_\\ #
| \\___ #
'. ) #
\`-.' ##
_ #
/||_ #
/o_) #
/ |(\\ #
| | )) #
| |// #
\\__/ ##
wWw #
(O)_ #
/ __) #
/ ( #
( _) #
\\ \\_ #
\\__) ##
wWw #
(O)_ #
/ __) #
/ ( #
( _) #
/ / #
)/ ##
\\/ #
(OO) #
,'.--.) #
/ /|_|_\\ #
| \\_.--. #
'. \\) \\ #
\`-.(_.' ##
\\\\ // #
(o)(o) #
|| || #
|(__)| #
/.--.\\ #
-' \`- #
##
wW Ww #
(O)(O) #
(..) #
|| #
_||_ #
(_/\\_) #
##
_ #
_||\\ #
(_'\\ #
( | #
\\ | #
(\\__)| #
\`--.) ##
_ #
(OO) .' ) #
||_/ .' #
| / #
||\\ \\ #
(/\\)\\ \`. #
\`._) ##
W W #
(O)(O) #
|| #
| \\ #
| \`. #
(.-.__) #
\`-' ##
\\\\\\ /// #
((O) (O)) #
| \\ / | #
||\\\\//|| #
|| \\/ || #
|| || #
(_/ \\_) ##
\\\\\\ /// #
((O)(O)) #
| \\ || #
||\\\\|| #
|| \\ | #
|| || #
(_/ \\_) ##
.-. #
c(O_O)c #
,'.---.\`, #
/ /|_|_|\\ \\ #
| \\_____/ | #
'. \`---' .\` #
\`-...-' ##
)) #
(o0)-. #
| (_)) #
| .-' #
|( #
\\) #
( ##
.-. #
c(O_O)c #
,'.---.\`, #
/ /|_|_|\\ \\ #
| \\___.--.| #
'. \`---\\) \\ #
\`-...(_.' ##
()_() #
(O o) #
|^_\\ #
|(_)) #
| / #
)|\\\\ #
(/ \\) ##
oo_ #
/ _)-< #
\\__ \`. #
\`. | #
_| | #
,-' | #
(_..--' ##
(o)__(o) #
(__ __) #
( ) #
)( #
( ) #
)/ #
( ##
wWw wWw #
(O) (O) #
/ ) ( \\ #
/ / \\ \\ #
| \\____/ | #
'. \`--' .\` #
\`-..-' ##
wWw wWw #
(O) (O) #
( \\ / ) #
\\ \\ / / #
/ \\/ \\ #
\\ \`--' / #
\`-..-' ##
(O)) ((O) #
|| || #
|| /\\ || #
||//\\\\|| #
/ / \\ \\ #
( / \\ ) #
) ( ##
wW Ww #
(O)\\ /(O) #
\`. \\/ .' #
\\ / #
/ \\ #
.' /\\ \`. #
(_.' \`._) ##
wWw wWw #
(O) (O) #
( \\ / ) #
\\ \\/ / #
\\o / #
_/ / #
(_.' ##
_oo #
>-(_ \\ #
/ _/ #
/ / #
/ ( #
( \`-. #
\`--.._) ##
[#
#
#
#
#
#
##
\\#
#
#
#
#
#
##
]#
#
#
#
#
#
##
#
/\\ #
/ \\ #
/ /\\ \\ #
\\( )/ #
#
##
#
#
#
#
#
_____ #
[_____] ##
#
__ #
( ) #
\\( #
\\ #
#
##
#
/) #
(o)(O) #
//\\\\ #
|(__)| #
/,-. | #
-' '' ##
___ #
(___)__ #
(O)(O) #
/ _\\ #
| |_)) #
| |_)) #
(.'-' ##
c c #
(OO) #
,'.--.) #
/ //_|_\\ #
| \\___ #
'. ) #
\`-.' ##
_ #
/||_ #
/o_) #
/ |(\\ #
| | )) #
| |// #
\\__/ ##
wWw #
(O)_ #
/ __) #
/ ( #
( _) #
\\ \\_ #
\\__) ##
wWw #
(O)_ #
/ __) #
/ ( #
( _) #
/ / #
)/ ##
\\/ #
(OO) #
,'.--.) #
/ /|_|_\\ #
| \\_.--. #
'. \\) \\ #
\`-.(_.' ##
\\\\ // #
(o)(o) #
|| || #
|(__)| #
/.--.\\ #
-' \`- #
##
wW Ww #
(O)(O) #
(..) #
|| #
_||_ #
(_/\\_) #
##
_ #
_||\\ #
(_'\\ #
( | #
\\ | #
(\\__)| #
\`--.) ##
_ #
(OO) .' ) #
||_/ .' #
| / #
||\\ \\ #
(/\\)\\ \`. #
\`._) ##
W W #
(O)(O) #
|| #
| \\ #
| \`. #
(.-.__) #
\`-' ##
\\\\\\ /// #
((O) (O)) #
| \\ / | #
||\\\\//|| #
|| \\/ || #
|| || #
(_/ \\_) ##
\\\\\\ /// #
((O)(O)) #
| \\ || #
||\\\\|| #
|| \\ | #
|| || #
(_/ \\_) ##
.-. #
c(O_O)c #
,'.---.\`, #
/ /|_|_|\\ \\ #
| \\_____/ | #
'. \`---' .\` #
\`-...-' ##
)) #
(o0)-. #
| (_)) #
| .-' #
|( #
\\) #
( ##
.-. #
c(O_O)c #
,'.---.\`, #
/ /|_|_|\\ \\ #
| \\___.--.| #
'. \`---\\) \\ #
\`-...(_.' ##
()_() #
(O o) #
|^_\\ #
|(_)) #
| / #
)|\\\\ #
(/ \\) ##
oo_ #
/ _)-< #
\\__ \`. #
\`. | #
_| | #
,-' | #
(_..--' ##
(o)__(o) #
(__ __) #
( ) #
)( #
( ) #
)/ #
( ##
wWw wWw #
(O) (O) #
/ ) ( \\ #
/ / \\ \\ #
| \\____/ | #
'. \`--' .\` #
\`-..-' ##
wWw wWw #
(O) (O) #
( \\ / ) #
\\ \\ / / #
/ \\/ \\ #
\\ \`--' / #
\`-..-' ##
(O)) ((O) #
|| || #
|| /\\ || #
||//\\\\|| #
/ / \\ \\ #
( / \\ ) #
) ( ##
wW Ww #
(O)\\ /(O) #
\`. \\/ .' #
\\ / #
/ \\ #
.' /\\ \`. #
(_.' \`._) ##
wWw wWw #
(O) (O) #
( \\ / ) #
\\ \\/ / #
\\o / #
_/ / #
(_.' ##
_oo #
>-(_ \\ #
/ _/ #
/ / #
/ ( #
( \`-. #
\`--.._) ##
{#
#
#
#
#
#
##
|#
#
#
#
#
#
##
}#
#
#
#
#
#
##
~#
#
#
#
#
#
##
#
/) #
(o)(O) #
//\\\\ #
|(__)| #
/,-. | #
-' '' ##
.-. #
c(O_O)c #
,'.---.\`, #
/ /|_|_|\\ \\ #
| \\_____/ | #
'. \`---' .\` #
\`-...-' ##
wWw wWw #
(O) (O) #
/ ) ( \\ #
/ / \\ \\ #
| \\____/ | #
'. \`--' .\` #
\`-..-' ##
#
/) #
(o)(O) #
//\\\\ #
|(__)| #
/,-. | #
-' '' ##
.-. #
c(O_O)c #
,'.---.\`, #
/ /|_|_|\\ \\ #
| \\_____/ | #
'. \`---' .\` #
\`-...-' ##
wWw wWw #
(O) (O) #
/ ) ( \\ #
/ / \\ \\ #
| \\____/ | #
'. \`--' .\` #
\`-..-' ##
�#
#
#
#
#
#
##
`
@@ -0,0 +1,12 @@
import { InlineBlot } from 'parchment';
import type { BlotConstructor } from 'parchment';
declare class Inline extends InlineBlot {
static allowedChildren: BlotConstructor[];
static order: string[];
static compare(self: string, other: string): number;
formatAt(index: number, length: number, name: string, value: unknown): void;
optimize(context: {
[key: string]: any;
}): void;
}
export default Inline;
@@ -0,0 +1,51 @@
{
"name": "@standard-schema/spec",
"description": "A standard interface for TypeScript schema validation libraries",
"version": "1.0.0",
"license": "MIT",
"author": "Colin McDonnell",
"homepage": "https://standardschema.dev",
"repository": {
"type": "git",
"url": "https://github.com/standard-schema/standard-schema"
},
"keywords": [
"typescript",
"schema",
"validation",
"standard",
"interface"
],
"type": "module",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
}
},
"sideEffects": false,
"files": [
"dist"
],
"publishConfig": {
"access": "public"
},
"devDependencies": {
"tsup": "^8.3.0",
"typescript": "^5.6.2"
},
"scripts": {
"lint": "pnpm biome lint ./src",
"format": "pnpm biome format --write ./src",
"check": "pnpm biome check ./src",
"build": "tsup"
}
}
@@ -0,0 +1,238 @@
/**
* @file 语言相关函数
* @author mengke01(kekee000@gmail.com)
*/
export function isArray(obj) {
return obj != null && toString.call(obj).slice(8, -1) === 'Array';
}
export function isObject(obj) {
return obj != null && toString.call(obj).slice(8, -1) === 'Object';
}
export function isString(obj) {
return obj != null && toString.call(obj).slice(8, -1) === 'String';
}
export function isFunction(obj) {
return obj != null && toString.call(obj).slice(8, -1) === 'Function';
}
export function isDate(obj) {
return obj != null && toString.call(obj).slice(8, -1) === 'Date';
}
export function isEmptyObject(object) {
for (const name in object) {
// eslint-disable-next-line no-prototype-builtins
if (object.hasOwnProperty(name)) {
return false;
}
}
return true;
}
/**
* 为函数提前绑定前置参数(柯里化)
*
* @see http://en.wikipedia.org/wiki/Currying
* @param {Function} fn 要绑定的函数
* @param {...Array} cargs cargs
* @return {Function}
*/
export function curry(fn, ...cargs) {
return function (...rargs) {
const args = cargs.concat(rargs);
// eslint-disable-next-line no-invalid-this
return fn.apply(this, args);
};
}
/**
* 方法静态化, 反绑定、延迟绑定
*
* @param {Function} method 待静态化的方法
* @return {Function} 静态化包装后方法
*/
export function generic(method) {
return function (...fargs) {
return Function.call.apply(method, fargs);
};
}
/**
* 设置覆盖相关的属性值
*
* @param {Object} thisObj 覆盖对象
* @param {Object} thatObj 值对象
* @param {Array.<string>} fields 字段
* @return {Object} thisObj
*/
export function overwrite(thisObj, thatObj, fields) {
if (!thatObj) {
return thisObj;
}
// 这里`fields`未指定则仅overwrite自身可枚举的字段,指定`fields`则不做限制
fields = fields || Object.keys(thatObj);
fields.forEach(field => {
// 拷贝对象
if (
thisObj[field] && typeof thisObj[field] === 'object'
&& thatObj[field] && typeof thatObj[field] === 'object'
) {
overwrite(thisObj[field], thatObj[field]);
}
else {
thisObj[field] = thatObj[field];
}
});
return thisObj;
}
/**
* 深复制对象,仅复制数据
*
* @param {Object} source 源数据
* @return {Object} 复制的数据
*/
export function clone(source) {
if (!source || typeof source !== 'object') {
return source;
}
let cloned = source;
if (isArray(source)) {
cloned = source.slice().map(clone);
}
else if (isObject(source) && 'isPrototypeOf' in source) {
cloned = {};
for (const key of Object.keys(source)) {
cloned[key] = clone(source[key]);
}
}
return cloned;
}
// Returns a function, that, when invoked, will only be triggered at most once
// during a given window of time.
// @see underscore.js
export function throttle(func, wait) {
let context;
let args;
let timeout;
let result;
let previous = 0;
const later = function () {
previous = new Date();
timeout = null;
result = func.apply(context, args);
};
return function (...args) {
const now = new Date();
const remaining = wait - (now - previous);
// eslint-disable-next-line no-invalid-this
context = this;
if (remaining <= 0) {
clearTimeout(timeout);
timeout = null;
previous = now;
result = func.apply(context, args);
}
else if (!timeout) {
timeout = setTimeout(later, remaining);
}
return result;
};
}
// Returns a function, that, as long as it continues to be invoked, will not
// be triggered. The function will be called after it stops being called for
// N milliseconds. If `immediate` is passed, trigger the function on the
// leading edge, instead of the trailing.
// @see underscore.js
export function debounce(func, wait, immediate) {
let timeout;
let result;
return function (...args) {
// eslint-disable-next-line no-invalid-this
const context = this;
const later = function () {
timeout = null;
if (!immediate) {
result = func.apply(context, args);
}
};
const callNow = immediate && !timeout;
clearTimeout(timeout);
timeout = setTimeout(later, wait);
if (callNow) {
result = func.apply(context, args);
}
return result;
};
}
/**
* 判断两个对象的字段是否相等
*
* @param {Object} thisObj 要比较的对象
* @param {Object} thatObj 参考对象
* @param {Array} fields 指定字段
* @return {boolean} 是否相等
*/
export function equals(thisObj, thatObj, fields) {
if (thisObj === thatObj) {
return true;
}
if (thisObj == null && thatObj == null) {
return true;
}
if (thisObj == null && thatObj != null || thisObj != null && thatObj == null) {
return false;
}
// 这里`fields`未指定则仅overwrite自身可枚举的字段,指定`fields`则不做限制
fields = fields || (typeof thisObj === 'object'
? Object.keys(thisObj)
: []);
if (!fields.length) {
return thisObj === thatObj;
}
let equal = true;
for (let i = 0, l = fields.length, field; equal && i < l; i++) {
field = fields[i];
if (
thisObj[field] && typeof thisObj[field] === 'object'
&& thatObj[field] && typeof thatObj[field] === 'object'
) {
equal = equal && equals(thisObj[field], thatObj[field]);
}
else {
equal = equal && (thisObj[field] === thatObj[field]);
}
}
return equal;
}
@@ -0,0 +1,22 @@
import * as asn1js from "asn1js";
import { BufferSourceConverter } from "pvtsutils";
import { AsnParser } from "./parser";
import { AsnSerializer } from "./serializer";
export class AsnConvert {
static serialize(obj) {
return AsnSerializer.serialize(obj);
}
static parse(data, target) {
return AsnParser.parse(data, target);
}
static toString(data) {
const buf = BufferSourceConverter.isBufferSource(data)
? BufferSourceConverter.toArrayBuffer(data)
: AsnConvert.serialize(data);
const asn = asn1js.fromBER(buf);
if (asn.offset === -1) {
throw new Error(`Cannot decode ASN.1 data. ${asn.result.error}`);
}
return asn.result.toString();
}
}
@@ -0,0 +1,97 @@
/*********************************************************************
* NAN - Native Abstractions for Node.js
*
* Copyright (c) 2021 NAN contributors
*
* MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
********************************************************************/
#ifndef NAN_SCRIPTORIGIN_H_
#define NAN_SCRIPTORIGIN_H_
class ScriptOrigin : public v8::ScriptOrigin {
public:
#if defined(V8_MAJOR_VERSION) && \
(V8_MAJOR_VERSION > 12 || \
(V8_MAJOR_VERSION == 12 && \
(defined(V8_MINOR_VERSION) && \
(V8_MINOR_VERSION > 6 || \
(V8_MINOR_VERSION == 6 && defined(V8_BUILD_NUMBER) && \
V8_BUILD_NUMBER >= 175)))))
explicit ScriptOrigin(v8::Local<v8::Value> name) :
v8::ScriptOrigin(name) {}
ScriptOrigin(v8::Local<v8::Value> name
, v8::Local<v8::Integer> line) :
v8::ScriptOrigin(name
, To<int32_t>(line).FromMaybe(0)) {}
ScriptOrigin(v8::Local<v8::Value> name
, v8::Local<v8::Integer> line
, v8::Local<v8::Integer> column) :
v8::ScriptOrigin(name
, To<int32_t>(line).FromMaybe(0)
, To<int32_t>(column).FromMaybe(0)) {}
#elif defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 9 || \
(V8_MAJOR_VERSION == 9 && (defined(V8_MINOR_VERSION) && (V8_MINOR_VERSION > 0\
|| (V8_MINOR_VERSION == 0 && defined(V8_BUILD_NUMBER) \
&& V8_BUILD_NUMBER >= 1)))))
explicit ScriptOrigin(v8::Local<v8::Value> name) :
v8::ScriptOrigin(v8::Isolate::GetCurrent(), name) {}
ScriptOrigin(v8::Local<v8::Value> name
, v8::Local<v8::Integer> line) :
v8::ScriptOrigin(v8::Isolate::GetCurrent()
, name
, To<int32_t>(line).FromMaybe(0)) {}
ScriptOrigin(v8::Local<v8::Value> name
, v8::Local<v8::Integer> line
, v8::Local<v8::Integer> column) :
v8::ScriptOrigin(v8::Isolate::GetCurrent()
, name
, To<int32_t>(line).FromMaybe(0)
, To<int32_t>(column).FromMaybe(0)) {}
#elif defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 8 || \
(V8_MAJOR_VERSION == 8 && (defined(V8_MINOR_VERSION) && (V8_MINOR_VERSION > 9\
|| (V8_MINOR_VERSION == 9 && defined(V8_BUILD_NUMBER) \
&& V8_BUILD_NUMBER >= 45)))))
explicit ScriptOrigin(v8::Local<v8::Value> name) : v8::ScriptOrigin(name) {}
ScriptOrigin(v8::Local<v8::Value> name
, v8::Local<v8::Integer> line) :
v8::ScriptOrigin(name, To<int32_t>(line).FromMaybe(0)) {}
ScriptOrigin(v8::Local<v8::Value> name
, v8::Local<v8::Integer> line
, v8::Local<v8::Integer> column) :
v8::ScriptOrigin(name
, To<int32_t>(line).FromMaybe(0)
, To<int32_t>(column).FromMaybe(0)) {}
#else
explicit ScriptOrigin(v8::Local<v8::Value> name) : v8::ScriptOrigin(name) {}
ScriptOrigin(v8::Local<v8::Value> name
, v8::Local<v8::Integer> line) : v8::ScriptOrigin(name, line) {}
ScriptOrigin(v8::Local<v8::Value> name
, v8::Local<v8::Integer> line
, v8::Local<v8::Integer> column) :
v8::ScriptOrigin(name, line, column) {}
#endif
#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 8 || \
(V8_MAJOR_VERSION == 8 && (defined(V8_MINOR_VERSION) && (V8_MINOR_VERSION > 9\
|| (V8_MINOR_VERSION == 9 && defined(V8_BUILD_NUMBER) \
&& V8_BUILD_NUMBER >= 45)))))
v8::Local<v8::Integer> ResourceLineOffset() const {
return New(LineOffset());
}
v8::Local<v8::Integer> ResourceColumnOffset() const {
return New(ColumnOffset());
}
#endif
};
#endif // NAN_SCRIPTORIGIN_H_
@@ -0,0 +1,143 @@
// Copyright 2013 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Macros for endianness, branch prediction and unaligned loads and stores.
#ifndef BROTLI_ENC_PORT_H_
#define BROTLI_ENC_PORT_H_
#if defined OS_LINUX || defined OS_CYGWIN
#include <endian.h>
#elif defined OS_FREEBSD
#include <machine/endian.h>
#elif defined OS_MACOSX
#include <machine/endian.h>
/* Let's try and follow the Linux convention */
#define __BYTE_ORDER BYTE_ORDER
#define __LITTLE_ENDIAN LITTLE_ENDIAN
#define __BIG_ENDIAN BIG_ENDIAN
#endif
// define the macros IS_LITTLE_ENDIAN or IS_BIG_ENDIAN
// using the above endian definitions from endian.h if
// endian.h was included
#ifdef __BYTE_ORDER
#if __BYTE_ORDER == __LITTLE_ENDIAN
#define IS_LITTLE_ENDIAN
#endif
#if __BYTE_ORDER == __BIG_ENDIAN
#define IS_BIG_ENDIAN
#endif
#else
#if defined(__LITTLE_ENDIAN__)
#define IS_LITTLE_ENDIAN
#elif defined(__BIG_ENDIAN__)
#define IS_BIG_ENDIAN
#endif
#endif // __BYTE_ORDER
// Enable little-endian optimization for x64 architecture on Windows.
#if (defined(_WIN32) || defined(_WIN64)) && defined(_M_X64)
#define IS_LITTLE_ENDIAN
#endif
#if defined(COMPILER_GCC3)
#define PREDICT_FALSE(x) (__builtin_expect(x, 0))
#define PREDICT_TRUE(x) (__builtin_expect(!!(x), 1))
#else
#define PREDICT_FALSE(x) x
#define PREDICT_TRUE(x) x
#endif
// Portable handling of unaligned loads, stores, and copies.
// On some platforms, like ARM, the copy functions can be more efficient
// then a load and a store.
#if defined(ARCH_PIII) || defined(ARCH_ATHLON) || \
defined(ARCH_K8) || defined(_ARCH_PPC)
// x86 and x86-64 can perform unaligned loads/stores directly;
// modern PowerPC hardware can also do unaligned integer loads and stores;
// but note: the FPU still sends unaligned loads and stores to a trap handler!
#define BROTLI_UNALIGNED_LOAD32(_p) (*reinterpret_cast<const uint32_t *>(_p))
#define BROTLI_UNALIGNED_LOAD64(_p) (*reinterpret_cast<const uint64_t *>(_p))
#define BROTLI_UNALIGNED_STORE32(_p, _val) \
(*reinterpret_cast<uint32_t *>(_p) = (_val))
#define BROTLI_UNALIGNED_STORE64(_p, _val) \
(*reinterpret_cast<uint64_t *>(_p) = (_val))
#elif defined(__arm__) && \
!defined(__ARM_ARCH_5__) && \
!defined(__ARM_ARCH_5T__) && \
!defined(__ARM_ARCH_5TE__) && \
!defined(__ARM_ARCH_5TEJ__) && \
!defined(__ARM_ARCH_6__) && \
!defined(__ARM_ARCH_6J__) && \
!defined(__ARM_ARCH_6K__) && \
!defined(__ARM_ARCH_6Z__) && \
!defined(__ARM_ARCH_6ZK__) && \
!defined(__ARM_ARCH_6T2__)
// ARMv7 and newer support native unaligned accesses, but only of 16-bit
// and 32-bit values (not 64-bit); older versions either raise a fatal signal,
// do an unaligned read and rotate the words around a bit, or do the reads very
// slowly (trip through kernel mode).
#define BROTLI_UNALIGNED_LOAD32(_p) (*reinterpret_cast<const uint32_t *>(_p))
#define BROTLI_UNALIGNED_STORE32(_p, _val) \
(*reinterpret_cast<uint32_t *>(_p) = (_val))
inline uint64_t BROTLI_UNALIGNED_LOAD64(const void *p) {
uint64_t t;
memcpy(&t, p, sizeof t);
return t;
}
inline void BROTLI_UNALIGNED_STORE64(void *p, uint64_t v) {
memcpy(p, &v, sizeof v);
}
#else
// These functions are provided for architectures that don't support
// unaligned loads and stores.
inline uint32_t BROTLI_UNALIGNED_LOAD32(const void *p) {
uint32_t t;
memcpy(&t, p, sizeof t);
return t;
}
inline uint64_t BROTLI_UNALIGNED_LOAD64(const void *p) {
uint64_t t;
memcpy(&t, p, sizeof t);
return t;
}
inline void BROTLI_UNALIGNED_STORE32(void *p, uint32_t v) {
memcpy(p, &v, sizeof v);
}
inline void BROTLI_UNALIGNED_STORE64(void *p, uint64_t v) {
memcpy(p, &v, sizeof v);
}
#endif
#endif // BROTLI_ENC_PORT_H_
@@ -0,0 +1,79 @@
/**
* @fileoverview Disallow string concatenation when using __dirname and __filename
* @author Nicholas C. Zakas
* @deprecated in ESLint v7.0.0
*/
"use strict";
//------------------------------------------------------------------------------
// Rule Definition
//------------------------------------------------------------------------------
/** @type {import('../types').Rule.RuleModule} */
module.exports = {
meta: {
deprecated: {
message: "Node.js rules were moved out of ESLint core.",
url: "https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",
deprecatedSince: "7.0.0",
availableUntil: "11.0.0",
replacedBy: [
{
message:
"eslint-plugin-n now maintains deprecated Node.js-related rules.",
plugin: {
name: "eslint-plugin-n",
url: "https://github.com/eslint-community/eslint-plugin-n",
},
rule: {
name: "no-path-concat",
url: "https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-path-concat.md",
},
},
],
},
type: "suggestion",
docs: {
description:
"Disallow string concatenation with `__dirname` and `__filename`",
recommended: false,
url: "https://eslint.org/docs/latest/rules/no-path-concat",
},
schema: [],
messages: {
usePathFunctions:
"Use path.join() or path.resolve() instead of + to create paths.",
},
},
create(context) {
const MATCHER = /^__(?:dir|file)name$/u;
//--------------------------------------------------------------------------
// Public
//--------------------------------------------------------------------------
return {
BinaryExpression(node) {
const left = node.left,
right = node.right;
if (
node.operator === "+" &&
((left.type === "Identifier" && MATCHER.test(left.name)) ||
(right.type === "Identifier" &&
MATCHER.test(right.name)))
) {
context.report({
node,
messageId: "usePathFunctions",
});
}
},
};
},
};
@@ -0,0 +1,29 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _createForOfIteratorHelperLoose;
var _unsupportedIterableToArray = require("./unsupportedIterableToArray.js");
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
if (it) return (it = it.call(o)).next.bind(it);
if (Array.isArray(o) || (it = (0, _unsupportedIterableToArray.default)(o)) || allowArrayLike && o && typeof o.length === "number") {
if (it) o = it;
var i = 0;
return function () {
if (i >= o.length) {
return {
done: true
};
}
return {
done: false,
value: o[i++]
};
};
}
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
//# sourceMappingURL=createForOfIteratorHelperLoose.js.map
@@ -0,0 +1,7 @@
import * as react_jsx_runtime from 'react/jsx-runtime';
import { IconSvgProps } from '../types.js';
import 'react';
declare const AlignVerticallyBoldIcon: (props: IconSvgProps) => react_jsx_runtime.JSX.Element;
export { AlignVerticallyBoldIcon };
@@ -0,0 +1,223 @@
import { Scalar } from '../nodes/Scalar.js';
import { resolveEnd } from './resolve-end.js';
function resolveFlowScalar(scalar, strict, onError) {
const { offset, type, source, end } = scalar;
let _type;
let value;
const _onError = (rel, code, msg) => onError(offset + rel, code, msg);
switch (type) {
case 'scalar':
_type = Scalar.PLAIN;
value = plainValue(source, _onError);
break;
case 'single-quoted-scalar':
_type = Scalar.QUOTE_SINGLE;
value = singleQuotedValue(source, _onError);
break;
case 'double-quoted-scalar':
_type = Scalar.QUOTE_DOUBLE;
value = doubleQuotedValue(source, _onError);
break;
/* istanbul ignore next should not happen */
default:
onError(scalar, 'UNEXPECTED_TOKEN', `Expected a flow scalar value, but found: ${type}`);
return {
value: '',
type: null,
comment: '',
range: [offset, offset + source.length, offset + source.length]
};
}
const valueEnd = offset + source.length;
const re = resolveEnd(end, valueEnd, strict, onError);
return {
value,
type: _type,
comment: re.comment,
range: [offset, valueEnd, re.offset]
};
}
function plainValue(source, onError) {
let badChar = '';
switch (source[0]) {
/* istanbul ignore next should not happen */
case '\t':
badChar = 'a tab character';
break;
case ',':
badChar = 'flow indicator character ,';
break;
case '%':
badChar = 'directive indicator character %';
break;
case '|':
case '>': {
badChar = `block scalar indicator ${source[0]}`;
break;
}
case '@':
case '`': {
badChar = `reserved character ${source[0]}`;
break;
}
}
if (badChar)
onError(0, 'BAD_SCALAR_START', `Plain value cannot start with ${badChar}`);
return foldLines(source);
}
function singleQuotedValue(source, onError) {
if (source[source.length - 1] !== "'" || source.length === 1)
onError(source.length, 'MISSING_CHAR', "Missing closing 'quote");
return foldLines(source.slice(1, -1)).replace(/''/g, "'");
}
function foldLines(source) {
/**
* The negative lookbehind here and in the `re` RegExp is to
* prevent causing a polynomial search time in certain cases.
*
* The try-catch is for Safari, which doesn't support this yet:
* https://caniuse.com/js-regexp-lookbehind
*/
let first, line;
try {
first = new RegExp('(.*?)(?<![ \t])[ \t]*\r?\n', 'sy');
line = new RegExp('[ \t]*(.*?)(?:(?<![ \t])[ \t]*)?\r?\n', 'sy');
}
catch {
first = /(.*?)[ \t]*\r?\n/sy;
line = /[ \t]*(.*?)[ \t]*\r?\n/sy;
}
let match = first.exec(source);
if (!match)
return source;
let res = match[1];
let sep = ' ';
let pos = first.lastIndex;
line.lastIndex = pos;
while ((match = line.exec(source))) {
if (match[1] === '') {
if (sep === '\n')
res += sep;
else
sep = '\n';
}
else {
res += sep + match[1];
sep = ' ';
}
pos = line.lastIndex;
}
const last = /[ \t]*(.*)/sy;
last.lastIndex = pos;
match = last.exec(source);
return res + sep + (match?.[1] ?? '');
}
function doubleQuotedValue(source, onError) {
let res = '';
for (let i = 1; i < source.length - 1; ++i) {
const ch = source[i];
if (ch === '\r' && source[i + 1] === '\n')
continue;
if (ch === '\n') {
const { fold, offset } = foldNewline(source, i);
res += fold;
i = offset;
}
else if (ch === '\\') {
let next = source[++i];
const cc = escapeCodes[next];
if (cc)
res += cc;
else if (next === '\n') {
// skip escaped newlines, but still trim the following line
next = source[i + 1];
while (next === ' ' || next === '\t')
next = source[++i + 1];
}
else if (next === '\r' && source[i + 1] === '\n') {
// skip escaped CRLF newlines, but still trim the following line
next = source[++i + 1];
while (next === ' ' || next === '\t')
next = source[++i + 1];
}
else if (next === 'x' || next === 'u' || next === 'U') {
const length = { x: 2, u: 4, U: 8 }[next];
res += parseCharCode(source, i + 1, length, onError);
i += length;
}
else {
const raw = source.substr(i - 1, 2);
onError(i - 1, 'BAD_DQ_ESCAPE', `Invalid escape sequence ${raw}`);
res += raw;
}
}
else if (ch === ' ' || ch === '\t') {
// trim trailing whitespace
const wsStart = i;
let next = source[i + 1];
while (next === ' ' || next === '\t')
next = source[++i + 1];
if (next !== '\n' && !(next === '\r' && source[i + 2] === '\n'))
res += i > wsStart ? source.slice(wsStart, i + 1) : ch;
}
else {
res += ch;
}
}
if (source[source.length - 1] !== '"' || source.length === 1)
onError(source.length, 'MISSING_CHAR', 'Missing closing "quote');
return res;
}
/**
* Fold a single newline into a space, multiple newlines to N - 1 newlines.
* Presumes `source[offset] === '\n'`
*/
function foldNewline(source, offset) {
let fold = '';
let ch = source[offset + 1];
while (ch === ' ' || ch === '\t' || ch === '\n' || ch === '\r') {
if (ch === '\r' && source[offset + 2] !== '\n')
break;
if (ch === '\n')
fold += '\n';
offset += 1;
ch = source[offset + 1];
}
if (!fold)
fold = ' ';
return { fold, offset };
}
const escapeCodes = {
'0': '\0', // null character
a: '\x07', // bell character
b: '\b', // backspace
e: '\x1b', // escape character
f: '\f', // form feed
n: '\n', // line feed
r: '\r', // carriage return
t: '\t', // horizontal tab
v: '\v', // vertical tab
N: '\u0085', // Unicode next line
_: '\u00a0', // Unicode non-breaking space
L: '\u2028', // Unicode line separator
P: '\u2029', // Unicode paragraph separator
' ': ' ',
'"': '"',
'/': '/',
'\\': '\\',
'\t': '\t'
};
function parseCharCode(source, offset, length, onError) {
const cc = source.substr(offset, length);
const ok = cc.length === length && /^[0-9a-fA-F]+$/.test(cc);
const code = ok ? parseInt(cc, 16) : NaN;
if (isNaN(code)) {
const raw = source.substr(offset - 2, length + 2);
onError(offset - 2, 'BAD_DQ_ESCAPE', `Invalid escape sequence ${raw}`);
return raw;
}
return String.fromCodePoint(code);
}
export { resolveFlowScalar };
@@ -0,0 +1,374 @@
/**
* @fileoverview A class to operate forking.
*
* This is state of forking.
* This has a fork list and manages it.
*
* @author Toru Nagashima
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
const assert = require("../../shared/assert"),
CodePathSegment = require("./code-path-segment");
//------------------------------------------------------------------------------
// Helpers
//------------------------------------------------------------------------------
/**
* Determines whether or not a given segment is reachable.
* @param {CodePathSegment} segment The segment to check.
* @returns {boolean} `true` if the segment is reachable.
*/
function isReachable(segment) {
return segment.reachable;
}
/**
* Creates a new segment for each fork in the given context and appends it
* to the end of the specified range of segments. Ultimately, this ends up calling
* `new CodePathSegment()` for each of the forks using the `create` argument
* as a wrapper around special behavior.
*
* The `startIndex` and `endIndex` arguments specify a range of segments in
* `context` that should become `allPrevSegments` for the newly created
* `CodePathSegment` objects.
*
* When `context.segmentsList` is `[[a, b], [c, d], [e, f]]`, `begin` is `0`, and
* `end` is `-1`, this creates two new segments, `[g, h]`. This `g` is appended to
* the end of the path from `a`, `c`, and `e`. This `h` is appended to the end of
* `b`, `d`, and `f`.
* @param {ForkContext} context An instance from which the previous segments
* will be obtained.
* @param {number} startIndex The index of the first segment in the context
* that should be specified as previous segments for the newly created segments.
* @param {number} endIndex The index of the last segment in the context
* that should be specified as previous segments for the newly created segments.
* @param {Function} create A function that creates new `CodePathSegment`
* instances in a particular way. See the `CodePathSegment.new*` methods.
* @returns {Array<CodePathSegment>} An array of the newly-created segments.
*/
function createSegments(context, startIndex, endIndex, create) {
/** @type {Array<Array<CodePathSegment>>} */
const list = context.segmentsList;
/*
* Both `startIndex` and `endIndex` work the same way: if the number is zero
* or more, then the number is used as-is. If the number is negative,
* then that number is added to the length of the segments list to
* determine the index to use. That means -1 for either argument
* is the last element, -2 is the second to last, and so on.
*
* So if `startIndex` is 0, `endIndex` is -1, and `list.length` is 3, the
* effective `startIndex` is 0 and the effective `endIndex` is 2, so this function
* will include items at indices 0, 1, and 2.
*
* Therefore, if `startIndex` is -1 and `endIndex` is -1, that means we'll only
* be using the last segment in `list`.
*/
const normalizedBegin =
startIndex >= 0 ? startIndex : list.length + startIndex;
const normalizedEnd = endIndex >= 0 ? endIndex : list.length + endIndex;
/** @type {Array<CodePathSegment>} */
const segments = [];
for (let i = 0; i < context.count; ++i) {
// this is passed into `new CodePathSegment` to add to code path.
const allPrevSegments = [];
for (let j = normalizedBegin; j <= normalizedEnd; ++j) {
allPrevSegments.push(list[j][i]);
}
// note: `create` is just a wrapper that augments `new CodePathSegment`.
segments.push(create(context.idGenerator.next(), allPrevSegments));
}
return segments;
}
/**
* Inside of a `finally` block we end up with two parallel paths. If the code path
* exits by a control statement (such as `break` or `continue`) from the `finally`
* block, then we need to merge the remaining parallel paths back into one.
* @param {ForkContext} context The fork context to work on.
* @param {Array<CodePathSegment>} segments Segments to merge.
* @returns {Array<CodePathSegment>} The merged segments.
*/
function mergeExtraSegments(context, segments) {
let currentSegments = segments;
/*
* We need to ensure that the array returned from this function contains no more
* than the number of segments that the context allows. `context.count` indicates
* how many items should be in the returned array to ensure that the new segment
* entries will line up with the already existing segment entries.
*/
while (currentSegments.length > context.count) {
const merged = [];
/*
* Because `context.count` is a factor of 2 inside of a `finally` block,
* we can divide the segment count by 2 to merge the paths together.
* This loops through each segment in the list and creates a new `CodePathSegment`
* that has the segment and the segment two slots away as previous segments.
*
* If `currentSegments` is [a,b,c,d], this will create new segments e and f, such
* that:
*
* When `i` is 0:
* a->e
* c->e
*
* When `i` is 1:
* b->f
* d->f
*/
for (
let i = 0, length = Math.floor(currentSegments.length / 2);
i < length;
++i
) {
merged.push(
CodePathSegment.newNext(context.idGenerator.next(), [
currentSegments[i],
currentSegments[i + length],
]),
);
}
/*
* Go through the loop condition one more time to see if we have the
* number of segments for the context. If not, we'll keep merging paths
* of the merged segments until we get there.
*/
currentSegments = merged;
}
return currentSegments;
}
//------------------------------------------------------------------------------
// Public Interface
//------------------------------------------------------------------------------
/**
* Manages the forking of code paths.
*/
class ForkContext {
/**
* Creates a new instance.
* @param {IdGenerator} idGenerator An identifier generator for segments.
* @param {ForkContext|null} upper The preceding fork context.
* @param {number} count The number of parallel segments in each element
* of `segmentsList`.
*/
constructor(idGenerator, upper, count) {
/**
* The ID generator that will generate segment IDs for any new
* segments that are created.
* @type {IdGenerator}
*/
this.idGenerator = idGenerator;
/**
* The preceding fork context.
* @type {ForkContext|null}
*/
this.upper = upper;
/**
* The number of elements in each element of `segmentsList`. In most
* cases, this is 1 but can be 2 when there is a `finally` present,
* which forks the code path outside of normal flow. In the case of nested
* `finally` blocks, this can be a multiple of 2.
* @type {number}
*/
this.count = count;
/**
* The segments within this context. Each element in this array has
* `count` elements that represent one step in each fork. For example,
* when `segmentsList` is `[[a, b], [c, d], [e, f]]`, there is one path
* a->c->e and one path b->d->f, and `count` is 2 because each element
* is an array with two elements.
* @type {Array<Array<CodePathSegment>>}
*/
this.segmentsList = [];
}
/**
* The segments that begin this fork context.
* @type {Array<CodePathSegment>}
*/
get head() {
const list = this.segmentsList;
return list.length === 0 ? [] : list.at(-1);
}
/**
* Indicates if the context contains no segments.
* @type {boolean}
*/
get empty() {
return this.segmentsList.length === 0;
}
/**
* Indicates if there are any segments that are reachable.
* @type {boolean}
*/
get reachable() {
const segments = this.head;
return segments.length > 0 && segments.some(isReachable);
}
/**
* Creates new segments in this context and appends them to the end of the
* already existing `CodePathSegment`s specified by `startIndex` and
* `endIndex`.
* @param {number} startIndex The index of the first segment in the context
* that should be specified as previous segments for the newly created segments.
* @param {number} endIndex The index of the last segment in the context
* that should be specified as previous segments for the newly created segments.
* @returns {Array<CodePathSegment>} An array of the newly created segments.
*/
makeNext(startIndex, endIndex) {
return createSegments(
this,
startIndex,
endIndex,
CodePathSegment.newNext,
);
}
/**
* Creates new unreachable segments in this context and appends them to the end of the
* already existing `CodePathSegment`s specified by `startIndex` and
* `endIndex`.
* @param {number} startIndex The index of the first segment in the context
* that should be specified as previous segments for the newly created segments.
* @param {number} endIndex The index of the last segment in the context
* that should be specified as previous segments for the newly created segments.
* @returns {Array<CodePathSegment>} An array of the newly created segments.
*/
makeUnreachable(startIndex, endIndex) {
return createSegments(
this,
startIndex,
endIndex,
CodePathSegment.newUnreachable,
);
}
/**
* Creates new segments in this context and does not append them to the end
* of the already existing `CodePathSegment`s specified by `startIndex` and
* `endIndex`. The `startIndex` and `endIndex` are only used to determine if
* the new segments should be reachable. If any of the segments in this range
* are reachable then the new segments are also reachable; otherwise, the new
* segments are unreachable.
* @param {number} startIndex The index of the first segment in the context
* that should be considered for reachability.
* @param {number} endIndex The index of the last segment in the context
* that should be considered for reachability.
* @returns {Array<CodePathSegment>} An array of the newly created segments.
*/
makeDisconnected(startIndex, endIndex) {
return createSegments(
this,
startIndex,
endIndex,
CodePathSegment.newDisconnected,
);
}
/**
* Adds segments to the head of this context.
* @param {Array<CodePathSegment>} segments The segments to add.
* @returns {void}
*/
add(segments) {
assert(
segments.length >= this.count,
`${segments.length} >= ${this.count}`,
);
this.segmentsList.push(mergeExtraSegments(this, segments));
}
/**
* Replaces the head segments with the given segments.
* The current head segments are removed.
* @param {Array<CodePathSegment>} replacementHeadSegments The new head segments.
* @returns {void}
*/
replaceHead(replacementHeadSegments) {
assert(
replacementHeadSegments.length >= this.count,
`${replacementHeadSegments.length} >= ${this.count}`,
);
this.segmentsList.splice(
-1,
1,
mergeExtraSegments(this, replacementHeadSegments),
);
}
/**
* Adds all segments of a given fork context into this context.
* @param {ForkContext} otherForkContext The fork context to add from.
* @returns {void}
*/
addAll(otherForkContext) {
assert(otherForkContext.count === this.count);
this.segmentsList.push(...otherForkContext.segmentsList);
}
/**
* Clears all segments in this context.
* @returns {void}
*/
clear() {
this.segmentsList = [];
}
/**
* Creates a new root context, meaning that there are no parent
* fork contexts.
* @param {IdGenerator} idGenerator An identifier generator for segments.
* @returns {ForkContext} New fork context.
*/
static newRoot(idGenerator) {
const context = new ForkContext(idGenerator, null, 1);
context.add([CodePathSegment.newRoot(idGenerator.next())]);
return context;
}
/**
* Creates an empty fork context preceded by a given context.
* @param {ForkContext} parentContext The parent fork context.
* @param {boolean} shouldForkLeavingPath Indicates that we are inside of
* a `finally` block and should therefore fork the path that leaves
* `finally`.
* @returns {ForkContext} New fork context.
*/
static newEmpty(parentContext, shouldForkLeavingPath) {
return new ForkContext(
parentContext.idGenerator,
parentContext,
(shouldForkLeavingPath ? 2 : 1) * parentContext.count,
);
}
}
module.exports = ForkContext;
@@ -0,0 +1,34 @@
var Extensions_1;
import { __decorate } from "tslib";
import { AsnProp, AsnPropTypes, AsnArray, AsnType, AsnTypeTypes, OctetString, } from "@peculiar/asn1-schema";
export class Extension {
constructor(params = {}) {
this.extnID = "";
this.critical = Extension.CRITICAL;
this.extnValue = new OctetString();
Object.assign(this, params);
}
}
Extension.CRITICAL = false;
__decorate([
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
], Extension.prototype, "extnID", void 0);
__decorate([
AsnProp({
type: AsnPropTypes.Boolean,
defaultValue: Extension.CRITICAL,
})
], Extension.prototype, "critical", void 0);
__decorate([
AsnProp({ type: OctetString })
], Extension.prototype, "extnValue", void 0);
let Extensions = Extensions_1 = class Extensions extends AsnArray {
constructor(items) {
super(items);
Object.setPrototypeOf(this, Extensions_1.prototype);
}
};
Extensions = Extensions_1 = __decorate([
AsnType({ type: AsnTypeTypes.Sequence, itemType: Extension })
], Extensions);
export { Extensions };
@@ -0,0 +1 @@
{"version":3,"file":"updateOwnReflectMetadata.d.ts","sourceRoot":"","sources":["../../../../src/reflectMetadata/utils/updateOwnReflectMetadata.ts"],"names":[],"mappings":"AAEA,wBAAgB,wBAAwB,CAAC,SAAS,EAChD,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,OAAO,EACpB,iBAAiB,EAAE,MAAM,SAAS,EAClC,QAAQ,EAAE,CAAC,QAAQ,EAAE,SAAS,KAAK,SAAS,EAC5C,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,GAC5B,IAAI,CAQN"}
@@ -0,0 +1,15 @@
import { __decorate } from "tslib";
import { AsnProp, AsnPropTypes } from "@peculiar/asn1-schema";
export class SecretBag {
constructor(params = {}) {
this.secretTypeId = "";
this.secretValue = new ArrayBuffer(0);
Object.assign(this, params);
}
}
__decorate([
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
], SecretBag.prototype, "secretTypeId", void 0);
__decorate([
AsnProp({ type: AsnPropTypes.Any, context: 0 })
], SecretBag.prototype, "secretValue", void 0);
@@ -0,0 +1 @@
module.exports={A:{A:{"1":"F A B","2":"K D E 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 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC","2":"xC TC 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":"K D E F A B C L M G 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","2":"J 2C ZC","16":"ZB"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z NC uC JD OC","2":"F FD GD HD ID"},G:{"1":"E 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","16":"ZC"},H:{"1":"hD"},I:{"1":"TC J I kD lD vC mD nD","16":"iD jD"},J:{"1":"D A"},K:{"1":"B C H NC uC OC","2":"A"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB oD pD qD rD sD aC tD uD vD wD xD QC RC SC yD"},Q:{"1":"zD"},R:{"1":"0D"},S:{"1":"1D 2D"}},B:1,C:"document.head",D:true};
@@ -0,0 +1,54 @@
import {useLayoutEffect as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c} from "./useLayoutEffect.module.js";
import {useState as $hQ5Hp$useState} from "react";
/*
* 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.
*/
let $ef06256079686ba0$var$descriptionId = 0;
const $ef06256079686ba0$var$descriptionNodes = new Map();
function $ef06256079686ba0$export$f8aeda7b10753fa1(description) {
let [id, setId] = (0, $hQ5Hp$useState)();
(0, $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c)(()=>{
if (!description) return;
let desc = $ef06256079686ba0$var$descriptionNodes.get(description);
if (!desc) {
let id = `react-aria-description-${$ef06256079686ba0$var$descriptionId++}`;
setId(id);
let node = document.createElement('div');
node.id = id;
node.style.display = 'none';
node.textContent = description;
document.body.appendChild(node);
desc = {
refCount: 0,
element: node
};
$ef06256079686ba0$var$descriptionNodes.set(description, desc);
} else setId(desc.element.id);
desc.refCount++;
return ()=>{
if (desc && --desc.refCount === 0) {
desc.element.remove();
$ef06256079686ba0$var$descriptionNodes.delete(description);
}
};
}, [
description
]);
return {
'aria-describedby': description ? id : undefined
};
}
export {$ef06256079686ba0$export$f8aeda7b10753fa1 as useDescription};
//# sourceMappingURL=useDescription.module.js.map
@@ -0,0 +1,127 @@
import type { $ZodStringFormats } from "../core/checks.js";
import type * as errors from "../core/errors.js";
import * as util from "../core/util.js";
const error: () => errors.$ZodErrorMap = () => {
const Sizable: Record<string, { unit: string; verb: string }> = {
string: { unit: "знаци", verb: "да имаат" },
file: { unit: "бајти", verb: "да имаат" },
array: { unit: "ставки", verb: "да имаат" },
set: { unit: "ставки", verb: "да имаат" },
};
function getSizing(origin: string): { unit: string; verb: string } | 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: "адреса на е-пошта",
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)}`;
// return `Invalid input: expected ${issue.expected}, received ${util.getParsedType(issue.input)}`;
case "invalid_value":
if (issue.values.length === 1) return `Invalid input: expected ${util.stringifyPrimitive(issue.values[0])}`;
return `Грешана опција: се очекува една ${util.joinValues(issue.values, "|")}`;
case "too_big": {
const adj = issue.inclusive ? "<=" : "<";
const sizing = getSizing(issue.origin);
if (sizing)
return `Премногу голем: се очекува ${issue.origin ?? "вредноста"} да има ${adj}${issue.maximum.toString()} ${sizing.unit ?? "елементи"}`;
return `Премногу голем: се очекува ${issue.origin ?? "вредноста"} да биде ${adj}${issue.maximum.toString()}`;
}
case "too_small": {
const adj = issue.inclusive ? ">=" : ">";
const sizing = getSizing(issue.origin);
if (sizing) {
return `Премногу мал: се очекува ${issue.origin} да има ${adj}${issue.minimum.toString()} ${sizing.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 `Invalid ${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,27 @@
'use strict';
var $TypeError = require('es-errors/type');
var IteratorStep = require('./IteratorStep');
var IteratorValue = require('./IteratorValue');
var isIteratorRecord = require('../helpers/records/iterator-record-2023');
// https://262.ecma-international.org/14.0/#sec-iteratortolist
module.exports = function IteratorToList(iteratorRecord) {
if (!isIteratorRecord(iteratorRecord)) {
throw new $TypeError('Assertion failed: `iteratorRecord` must be an Iterator Record'); // step 1
}
var values = []; // step 1
var next = true; // step 2
while (next) { // step 3
next = IteratorStep(iteratorRecord); // step 3.a
if (next) {
var nextValue = IteratorValue(next); // step 3.b.i
values[values.length] = nextValue; // step 3.b.ii
}
}
return values; // step 4
};
@@ -0,0 +1 @@
{"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;AAOM,MAAM,4CAAgD,OAAO,aAAa,cAC7E,CAAA,GAAA,sCAAI,EAAE,eAAe,GACrB,KAAO","sources":["packages/@react-aria/utils/src/useLayoutEffect.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 React from 'react';\n\n// During SSR, React emits a warning when calling useLayoutEffect.\n// Since neither useLayoutEffect nor useEffect run on the server,\n// we can suppress this by replace it with a noop on the server.\nexport const useLayoutEffect: typeof React.useLayoutEffect = typeof document !== 'undefined'\n ? React.useLayoutEffect\n : () => {};\n"],"names":[],"version":3,"file":"useLayoutEffect.main.js.map"}
@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":"AAOA;;;;;;;;;;;GAWG;AACH,oCALW,MAAM,GAEJ,MAAM,CAKlB"}
@@ -0,0 +1,215 @@
import type { WithSlice } from '@reduxjs/toolkit'
import {
combineSlices,
createAction,
createReducer,
createSlice,
} from '@reduxjs/toolkit'
const dummyAction = createAction<void>('dummy')
const stringSlice = createSlice({
name: 'string',
initialState: '',
reducers: {},
})
const numberSlice = createSlice({
name: 'number',
initialState: 0,
reducers: {},
})
const booleanReducer = createReducer(false, () => {})
const counterReducer = createSlice({
name: 'counter',
initialState: () => ({ value: 0 }),
reducers: {},
})
// mimic - we can't use RTKQ here directly
const api = {
reducerPath: 'api' as const,
reducer: createReducer(
{
queries: {},
mutations: {},
provided: {},
subscriptions: {},
config: {
reducerPath: 'api',
invalidationBehavior: 'delayed',
online: false,
focused: false,
keepUnusedDataFor: 60,
middlewareRegistered: false,
refetchOnMountOrArgChange: false,
refetchOnReconnect: false,
refetchOnFocus: false,
},
},
() => {},
),
}
describe('combineSlices', () => {
it('calls combineReducers to combine static slices/reducers', () => {
const combinedReducer = combineSlices(
stringSlice,
{
num: numberSlice.reducer,
boolean: booleanReducer,
},
api,
)
expect(combinedReducer(undefined, dummyAction())).toEqual({
string: stringSlice.getInitialState(),
num: numberSlice.getInitialState(),
boolean: booleanReducer.getInitialState(),
api: api.reducer.getInitialState(),
})
})
it('allows passing no initial reducers', () => {
const combinedReducer = combineSlices()
const result = combinedReducer(undefined, dummyAction())
expect(result).toEqual({})
// no-op if we have no reducers yet
expect(combinedReducer(result, dummyAction())).toBe(result)
})
describe('injects', () => {
beforeEach(() => {
vi.stubEnv('NODE_ENV', 'development')
return vi.unstubAllEnvs
})
it('injects slice', () => {
const combinedReducer =
combineSlices(stringSlice).withLazyLoadedSlices<
WithSlice<typeof numberSlice>
>()
expect(combinedReducer(undefined, dummyAction()).number).toBe(undefined)
const injectedReducer = combinedReducer.inject(numberSlice)
expect(injectedReducer(undefined, dummyAction()).number).toBe(
numberSlice.getInitialState(),
)
})
it('logs error when same name is used for different reducers', () => {
const consoleSpy = vi.spyOn(console, 'error').mockImplementation(() => {})
const combinedReducer = combineSlices(stringSlice).withLazyLoadedSlices<{
boolean: boolean
}>()
combinedReducer.inject({
reducerPath: 'boolean' as const,
reducer: booleanReducer,
})
combinedReducer.inject({
reducerPath: 'boolean' as const,
reducer: booleanReducer,
})
expect(consoleSpy).not.toHaveBeenCalled()
combinedReducer.inject({
reducerPath: 'boolean' as const,
// @ts-expect-error wrong reducer
reducer: stringSlice.reducer,
})
expect(consoleSpy).toHaveBeenCalledWith(
`called \`inject\` to override already-existing reducer boolean without specifying \`overrideExisting: true\``,
)
consoleSpy.mockRestore()
})
it('allows replacement of reducers if overrideExisting is true', () => {
const consoleSpy = vi.spyOn(console, 'error').mockImplementation(() => {})
const combinedReducer = combineSlices(stringSlice).withLazyLoadedSlices<
WithSlice<typeof numberSlice> &
WithSlice<typeof api> & { boolean: boolean }
>()
combinedReducer.inject(numberSlice)
combinedReducer.inject(
{ reducerPath: 'number' as const, reducer: () => 0 },
{ overrideExisting: true },
)
expect(consoleSpy).not.toHaveBeenCalled()
})
})
describe('selector', () => {
const combinedReducer = combineSlices(stringSlice).withLazyLoadedSlices<{
boolean: boolean
counter: { value: number }
}>()
const uninjectedState = combinedReducer(undefined, dummyAction())
const injectedReducer = combinedReducer.inject({
reducerPath: 'boolean' as const,
reducer: booleanReducer,
})
it('ensures state is defined in selector even if action has not been dispatched', () => {
expect(uninjectedState.boolean).toBe(undefined)
const selectBoolean = injectedReducer.selector((state) => state.boolean)
expect(selectBoolean(uninjectedState)).toBe(
booleanReducer.getInitialState(),
)
})
it('exposes original to allow for logging', () => {
const selectBoolean = injectedReducer.selector(
(state) => injectedReducer.selector.original(state).boolean,
)
expect(selectBoolean(uninjectedState)).toBe(undefined)
})
it('throws if original is called on something other than state proxy', () => {
expect(() => injectedReducer.selector.original({} as any)).toThrow(
'original must be used on state Proxy',
)
})
it('allows passing a selectState selector, to handle nested state', () => {
const wrappedReducer = combineSlices({
inner: combinedReducer,
})
type RootState = ReturnType<typeof wrappedReducer>
const selector = injectedReducer.selector(
(state) => state.boolean,
(rootState: RootState) => rootState.inner,
)
expect(selector(wrappedReducer(undefined, dummyAction()))).toBe(
booleanReducer.getInitialState(),
)
})
it('caches initial state', () => {
const beforeInject = combinedReducer(undefined, dummyAction())
const injectedReducer = combinedReducer.inject(counterReducer)
const selectCounter = injectedReducer.selector((state) => state.counter)
const counter = selectCounter(beforeInject)
expect(counter).toBe(selectCounter(beforeInject))
injectedReducer.inject(
{ reducerPath: 'counter', reducer: () => ({ value: 0 }) },
{ overrideExisting: true },
)
const counter2 = selectCounter(beforeInject)
expect(counter2).not.toBe(counter)
expect(counter2).toBe(selectCounter(beforeInject))
})
})
})
@@ -0,0 +1 @@
{"version":3,"file":"merge-classlist.mjs","sources":["../../src/lib/merge-classlist.ts"],"sourcesContent":["import { ConfigUtils } from './config-utils'\nimport { IMPORTANT_MODIFIER, sortModifiers } from './modifier-utils'\n\nconst SPLIT_CLASSES_REGEX = /\\s+/\n\nexport function mergeClassList(classList: string, configUtils: ConfigUtils) {\n const { splitModifiers, getClassGroupId, getConflictingClassGroupIds } = configUtils\n\n /**\n * Set of classGroupIds in following format:\n * `{importantModifier}{variantModifiers}{classGroupId}`\n * @example 'float'\n * @example 'hover:focus:bg-color'\n * @example 'md:!pr'\n */\n const classGroupsInConflict = new Set<string>()\n\n return (\n classList\n .trim()\n .split(SPLIT_CLASSES_REGEX)\n .map((originalClassName) => {\n const {\n modifiers,\n hasImportantModifier,\n baseClassName,\n maybePostfixModifierPosition,\n } = splitModifiers(originalClassName)\n\n let classGroupId = getClassGroupId(\n maybePostfixModifierPosition\n ? baseClassName.substring(0, maybePostfixModifierPosition)\n : baseClassName,\n )\n\n let hasPostfixModifier = Boolean(maybePostfixModifierPosition)\n\n if (!classGroupId) {\n if (!maybePostfixModifierPosition) {\n return {\n isTailwindClass: false as const,\n originalClassName,\n }\n }\n\n classGroupId = getClassGroupId(baseClassName)\n\n if (!classGroupId) {\n return {\n isTailwindClass: false as const,\n originalClassName,\n }\n }\n\n hasPostfixModifier = false\n }\n\n const variantModifier = sortModifiers(modifiers).join(':')\n\n const modifierId = hasImportantModifier\n ? variantModifier + IMPORTANT_MODIFIER\n : variantModifier\n\n return {\n isTailwindClass: true as const,\n modifierId,\n classGroupId,\n originalClassName,\n hasPostfixModifier,\n }\n })\n .reverse()\n // Last class in conflict wins, so we need to filter conflicting classes in reverse order.\n .filter((parsed) => {\n if (!parsed.isTailwindClass) {\n return true\n }\n\n const { modifierId, classGroupId, hasPostfixModifier } = parsed\n\n const classId = modifierId + classGroupId\n\n if (classGroupsInConflict.has(classId)) {\n return false\n }\n\n classGroupsInConflict.add(classId)\n\n getConflictingClassGroupIds(classGroupId, hasPostfixModifier).forEach((group) =>\n classGroupsInConflict.add(modifierId + group),\n )\n\n return true\n })\n .reverse()\n .map((parsed) => parsed.originalClassName)\n .join(' ')\n )\n}\n"],"names":["SPLIT_CLASSES_REGEX","mergeClassList","classList","configUtils","splitModifiers","getClassGroupId","getConflictingClassGroupIds","classGroupsInConflict","Set","trim","split","map","originalClassName","modifiers","hasImportantModifier","baseClassName","maybePostfixModifierPosition","classGroupId","substring","hasPostfixModifier","Boolean","isTailwindClass","variantModifier","sortModifiers","join","modifierId","IMPORTANT_MODIFIER","reverse","filter","parsed","classId","has","add","forEach","group"],"mappings":";;AAGA,IAAMA,mBAAmB,GAAG,KAAK,CAAA;AAEjB,SAAAC,cAAc,CAACC,SAAiB,EAAEC,WAAwB,EAAA;AACtE,EAAA,IAAQC,cAAc,GAAmDD,WAAW,CAA5EC,cAAc;IAAEC,eAAe,GAAkCF,WAAW,CAA5DE,eAAe;IAAEC,2BAA2B,GAAKH,WAAW,CAA3CG,2BAA2B,CAAA;AAEpE;;;;;;AAMG;AACH,EAAA,IAAMC,qBAAqB,GAAG,IAAIC,GAAG,EAAU,CAAA;AAE/C,EAAA,OACIN,SAAS,CACJO,IAAI,EAAE,CACNC,KAAK,CAACV,mBAAmB,CAAC,CAC1BW,GAAG,CAAC,UAACC,iBAAiB,EAAI;IACvB,IAKIR,eAAAA,GAAAA,cAAc,CAACQ,iBAAiB,CAAC;AAJjCC,MAAAA,SAAS,mBAATA,SAAS;AACTC,MAAAA,oBAAoB,mBAApBA,oBAAoB;AACpBC,MAAAA,aAAa,mBAAbA,aAAa;AACbC,MAAAA,4BAA4B,mBAA5BA,4BAA4B,CAAA;AAGhC,IAAA,IAAIC,YAAY,GAAGZ,eAAe,CAC9BW,4BAA4B,GACtBD,aAAa,CAACG,SAAS,CAAC,CAAC,EAAEF,4BAA4B,CAAC,GACxDD,aAAa,CACtB,CAAA;AAED,IAAA,IAAII,kBAAkB,GAAGC,OAAO,CAACJ,4BAA4B,CAAC,CAAA;IAE9D,IAAI,CAACC,YAAY,EAAE;MACf,IAAI,CAACD,4BAA4B,EAAE;QAC/B,OAAO;AACHK,UAAAA,eAAe,EAAE,KAAc;AAC/BT,UAAAA,iBAAiB,EAAjBA,iBAAAA;SACH,CAAA;AACJ,OAAA;AAEDK,MAAAA,YAAY,GAAGZ,eAAe,CAACU,aAAa,CAAC,CAAA;MAE7C,IAAI,CAACE,YAAY,EAAE;QACfLine truncated
@@ -0,0 +1,3 @@
import { BindingConstraints, MetadataTag } from '@inversifyjs/core';
export declare function isAnyAncestorBindingConstraintsWithTag(tag: MetadataTag, value: unknown): (constraints: BindingConstraints) => boolean;
//# sourceMappingURL=isAnyAncestorBindingConstraintsWithTag.d.ts.map
@@ -0,0 +1,99 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isCertRevoked = isCertRevoked;
const x509_1 = require("@peculiar/x509");
const fetch_js_1 = require("./fetch.js");
const cacheRevokedCerts = {};
/**
* A method to pull a CRL from a certificate and compare its serial number to the list of revoked
* certificate serial numbers within the CRL.
*
* CRL certificate structure referenced from https://tools.ietf.org/html/rfc5280#page-117
*/
async function isCertRevoked(cert) {
const { extensions } = cert;
if (!extensions) {
return false;
}
let extAuthorityKeyID;
let extSubjectKeyID;
let extCRLDistributionPoints;
extensions.forEach((ext) => {
if (ext instanceof x509_1.AuthorityKeyIdentifierExtension) {
extAuthorityKeyID = ext;
}
else if (ext instanceof x509_1.SubjectKeyIdentifierExtension) {
extSubjectKeyID = ext;
}
else if (ext instanceof x509_1.CRLDistributionPointsExtension) {
extCRLDistributionPoints = ext;
}
});
// Check to see if we've got cached info for the cert's CA
let keyIdentifier = undefined;
if (extAuthorityKeyID && extAuthorityKeyID.keyId) {
keyIdentifier = extAuthorityKeyID.keyId;
}
else if (extSubjectKeyID) {
/**
* We might be dealing with a self-signed root certificate. Check the
* Subject key Identifier extension next.
*/
keyIdentifier = extSubjectKeyID.keyId;
}
if (keyIdentifier) {
const cached = cacheRevokedCerts[keyIdentifier];
if (cached) {
const now = new Date();
// If there's a nextUpdate then make sure we're before it
if (!cached.nextUpdate || cached.nextUpdate > now) {
return cached.revokedCerts.indexOf(cert.serialNumber) >= 0;
}
}
}
const crlURL = extCRLDistributionPoints?.distributionPoints?.[0].distributionPoint?.fullName?.[0]
.uniformResourceIdentifier;
// If no URL is provided then we have nothing to check
if (!crlURL) {
return false;
}
// Download and read the CRL
let certListBytes;
try {
const respCRL = await (0, fetch_js_1.fetch)(crlURL);
certListBytes = await respCRL.arrayBuffer();
}
catch (_err) {
return false;
}
let data;
try {
data = new x509_1.X509Crl(certListBytes);
}
catch (_err) {
// Something was malformed with the CRL, so pass
return false;
}
const newCached = {
revokedCerts: [],
nextUpdate: undefined,
};
// nextUpdate
if (data.nextUpdate) {
newCached.nextUpdate = data.nextUpdate;
}
// revokedCertificates
const revokedCerts = data.entries;
if (revokedCerts) {
for (const cert of revokedCerts) {
const revokedHex = cert.serialNumber;
newCached.revokedCerts.push(revokedHex);
}
// Cache the results
if (keyIdentifier) {
cacheRevokedCerts[keyIdentifier] = newCached;
}
return newCached.revokedCerts.indexOf(cert.serialNumber) >= 0;
}
return false;
}
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=buildArrayMetadataWithIndex.spec.d.ts.map
@@ -0,0 +1 @@
{"mappings":";;;AAAA;;;;;;;;;;CAUC","sources":["packages/@react-stately/utils/src/index.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nexport {useControlledState} from './useControlledState';\nexport {clamp, snapValueToStep, toFixedNumber} from './number';\n"],"names":[],"version":3,"file":"module.js.map"}
@@ -0,0 +1,4 @@
export declare enum Direction {
Forward = 1,
Backward = -1
}
@@ -0,0 +1 @@
{"name":"is-extglob","version":"2.1.1","requiresBuild":false,"files":{"package.json":{"checkedAt":1794532094682,"integrity":"sha512-qyiaS5IV5g5ro+KLaOO7DTtjZbD37KgX6ev5gSbA3Uiyqbgi2UN80jhRnlgCUCJYHitgpg7Bj/22l7qQUAcffg==","mode":420,"size":1220},"README.md":{"checkedAt":1794532094682,"integrity":"sha512-gDyPl3DORgGje7yQETCFQgDVDoOPoe1xth/lH0wGOyxcb+ySEpB4kKV3geO0m3bl1B+9BTybJsLw0okFYi2Vtg==","mode":420,"size":3469},"LICENSE":{"checkedAt":1794532094682,"integrity":"sha512-lq7/KIS38aMUNN18NX4BP1tRi9ozEmtIXAwCCZTt5964lyrKnjs3PwB73ws2p7415zW1Y4DxV6wKHIE+Ggn+cg==","mode":420,"size":1087},"index.js":{"checkedAt":1794532094682,"integrity":"sha512-A595voDgHlPV1KV+Afwx/1MwnlT4wS6ivDeqij1VAouyWSTrWUaxCC09tt0tYKFu22BbSS9k7Bo1+5v5sjLk4A==","mode":420,"size":441}}}
@@ -0,0 +1,9 @@
"use client";
import {
assignRef,
mergeRefs
} from "./chunk-LGMZDQT5.mjs";
export {
assignRef,
mergeRefs
};
@@ -0,0 +1,11 @@
import type { TSchema, SchemaOptions } from '../schema/index.mjs';
import type { Static } from '../static/index.mjs';
import { Kind } from '../symbols/index.mjs';
export interface TIterator<T extends TSchema = TSchema> extends TSchema {
[Kind]: 'Iterator';
static: IterableIterator<Static<T, this['params']>>;
type: 'Iterator';
items: T;
}
/** `[JavaScript]` Creates an Iterator type */
export declare function Iterator<T extends TSchema>(items: T, options?: SchemaOptions): TIterator<T>;
@@ -0,0 +1,23 @@
/*
* 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 type {InvalidationContext} from './types';
export type {VirtualizerState} from './useVirtualizerState';
export type {RectCorner} from './Rect';
export {Layout} from './Layout';
export {LayoutInfo} from './LayoutInfo';
export {Point} from './Point';
export {Rect} from './Rect';
export {Size} from './Size';
export {ReusableView} from './ReusableView';
export {useVirtualizerState} from './useVirtualizerState';
Loaded 100 of 35554 files, more files were not shown because too many files have changed in this diff. Show more