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,79 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GeneralName = exports.EDIPartyName = exports.OtherName = exports.AsnIpConverter = void 0;
const tslib_1 = require("tslib");
const asn1_schema_1 = require("@peculiar/asn1-schema");
const ip_converter_1 = require("./ip_converter");
const name_1 = require("./name");
exports.AsnIpConverter = {
fromASN: (value) => ip_converter_1.IpConverter.toString(asn1_schema_1.AsnOctetStringConverter.fromASN(value)),
toASN: (value) => asn1_schema_1.AsnOctetStringConverter.toASN(ip_converter_1.IpConverter.fromString(value)),
};
class OtherName {
constructor(params = {}) {
this.typeId = "";
this.value = new ArrayBuffer(0);
Object.assign(this, params);
}
}
exports.OtherName = OtherName;
tslib_1.__decorate([
(0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.AsnPropTypes.ObjectIdentifier })
], OtherName.prototype, "typeId", void 0);
tslib_1.__decorate([
(0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.AsnPropTypes.Any, context: 0 })
], OtherName.prototype, "value", void 0);
class EDIPartyName {
constructor(params = {}) {
this.partyName = new name_1.DirectoryString();
Object.assign(this, params);
}
}
exports.EDIPartyName = EDIPartyName;
tslib_1.__decorate([
(0, asn1_schema_1.AsnProp)({ type: name_1.DirectoryString, optional: true, context: 0, implicit: true })
], EDIPartyName.prototype, "nameAssigner", void 0);
tslib_1.__decorate([
(0, asn1_schema_1.AsnProp)({ type: name_1.DirectoryString, context: 1, implicit: true })
], EDIPartyName.prototype, "partyName", void 0);
let GeneralName = class GeneralName {
constructor(params = {}) {
Object.assign(this, params);
}
};
exports.GeneralName = GeneralName;
tslib_1.__decorate([
(0, asn1_schema_1.AsnProp)({ type: OtherName, context: 0, implicit: true })
], GeneralName.prototype, "otherName", void 0);
tslib_1.__decorate([
(0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.AsnPropTypes.IA5String, context: 1, implicit: true })
], GeneralName.prototype, "rfc822Name", void 0);
tslib_1.__decorate([
(0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.AsnPropTypes.IA5String, context: 2, implicit: true })
], GeneralName.prototype, "dNSName", void 0);
tslib_1.__decorate([
(0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.AsnPropTypes.Any, context: 3, implicit: true })
], GeneralName.prototype, "x400Address", void 0);
tslib_1.__decorate([
(0, asn1_schema_1.AsnProp)({ type: name_1.Name, context: 4, implicit: false })
], GeneralName.prototype, "directoryName", void 0);
tslib_1.__decorate([
(0, asn1_schema_1.AsnProp)({ type: EDIPartyName, context: 5 })
], GeneralName.prototype, "ediPartyName", void 0);
tslib_1.__decorate([
(0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.AsnPropTypes.IA5String, context: 6, implicit: true })
], GeneralName.prototype, "uniformResourceIdentifier", void 0);
tslib_1.__decorate([
(0, asn1_schema_1.AsnProp)({
type: asn1_schema_1.AsnPropTypes.OctetString,
context: 7,
implicit: true,
converter: exports.AsnIpConverter,
})
], GeneralName.prototype, "iPAddress", void 0);
tslib_1.__decorate([
(0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.AsnPropTypes.ObjectIdentifier, context: 8, implicit: true })
], GeneralName.prototype, "registeredID", void 0);
exports.GeneralName = GeneralName = tslib_1.__decorate([
(0, asn1_schema_1.AsnType)({ type: asn1_schema_1.AsnTypeTypes.Choice })
], GeneralName);
@@ -0,0 +1,88 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
parseBoxShadowValue: function() {
return parseBoxShadowValue;
},
formatBoxShadowValue: function() {
return formatBoxShadowValue;
}
});
const _splitAtTopLevelOnly = require("./splitAtTopLevelOnly");
let KEYWORDS = new Set([
"inset",
"inherit",
"initial",
"revert",
"unset"
]);
let SPACE = /\ +(?![^(]*\))/g // Similar to the one above, but with spaces instead.
;
let LENGTH = /^-?(\d+|\.\d+)(.*?)$/g;
function parseBoxShadowValue(input) {
let shadows = (0, _splitAtTopLevelOnly.splitAtTopLevelOnly)(input, ",");
return shadows.map((shadow)=>{
let value = shadow.trim();
let result = {
raw: value
};
let parts = value.split(SPACE);
let seen = new Set();
for (let part of parts){
// Reset index, since the regex is stateful.
LENGTH.lastIndex = 0;
// Keyword
if (!seen.has("KEYWORD") && KEYWORDS.has(part)) {
result.keyword = part;
seen.add("KEYWORD");
} else if (LENGTH.test(part)) {
if (!seen.has("X")) {
result.x = part;
seen.add("X");
} else if (!seen.has("Y")) {
result.y = part;
seen.add("Y");
} else if (!seen.has("BLUR")) {
result.blur = part;
seen.add("BLUR");
} else if (!seen.has("SPREAD")) {
result.spread = part;
seen.add("SPREAD");
}
} else {
if (!result.color) {
result.color = part;
} else {
if (!result.unknown) result.unknown = [];
result.unknown.push(part);
}
}
}
// Check if valid
result.valid = result.x !== undefined && result.y !== undefined;
return result;
});
}
function formatBoxShadowValue(shadows) {
return shadows.map((shadow)=>{
if (!shadow.valid) {
return shadow.raw;
}
return [
shadow.keyword,
shadow.x,
shadow.y,
shadow.blur,
shadow.spread,
shadow.color
].filter(Boolean).join(" ");
}).join(", ");
}
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=ServiceIdentifier.js.map
@@ -0,0 +1,6 @@
import { InstanceBinding } from '../../binding/models/InstanceBinding';
import { InstanceBindingNode } from '../../planning/models/InstanceBindingNode';
import { ResolutionParams } from '../models/ResolutionParams';
import { Resolved } from '../models/Resolved';
export declare const resolveScopedInstanceBindingNode: <TActivated>(resolve: (params: ResolutionParams, node: InstanceBindingNode<InstanceBinding<TActivated>>) => Resolved<TActivated>) => (params: ResolutionParams, node: InstanceBindingNode<InstanceBinding<TActivated>>) => Resolved<TActivated>;
//# sourceMappingURL=resolveScopedInstanceBindingNode.d.ts.map
@@ -0,0 +1,6 @@
function _class_private_method_get(receiver, privateSet, fn) {
if (!privateSet.has(receiver)) throw new TypeError("attempted to get private field on non-instance");
return fn;
}
export { _class_private_method_get as _ };
@@ -0,0 +1,40 @@
import baseRest from './_baseRest.js';
import toInteger from './toInteger.js';
/** Error message constants. */
var FUNC_ERROR_TEXT = 'Expected a function';
/**
* Creates a function that invokes `func` with the `this` binding of the
* created function and arguments from `start` and beyond provided as
* an array.
*
* **Note:** This method is based on the
* [rest parameter](https://mdn.io/rest_parameters).
*
* @static
* @memberOf _
* @since 4.0.0
* @category Function
* @param {Function} func The function to apply a rest parameter to.
* @param {number} [start=func.length-1] The start position of the rest parameter.
* @returns {Function} Returns the new function.
* @example
*
* var say = _.rest(function(what, names) {
* return what + ' ' + _.initial(names).join(', ') +
* (_.size(names) > 1 ? ', & ' : '') + _.last(names);
* });
*
* say('hello', 'fred', 'barney', 'pebbles');
* // => 'hello fred, barney, & pebbles'
*/
function rest(func, start) {
if (typeof func != 'function') {
throw new TypeError(FUNC_ERROR_TEXT);
}
start = start === undefined ? start : toInteger(start);
return baseRest(func, start);
}
export default rest;
@@ -0,0 +1,8 @@
var $55b0693b2cf3fe91$exports = {};
$55b0693b2cf3fe91$exports = {
"breadcrumbs": `\u{422}\u{440}\u{43E}\u{445}\u{438} \u{445}\u{43B}\u{44F}\u{431}`
};
export {$55b0693b2cf3fe91$exports as default};
//# sourceMappingURL=bg-BG.module.js.map
@@ -0,0 +1,20 @@
import { stepsOrder } from './order.mjs';
import { frame, cancelFrame } from './frame.mjs';
/**
* @deprecated
*
* Import as `frame` instead.
*/
const sync = frame;
/**
* @deprecated
*
* Use cancelFrame(callback) instead.
*/
const cancelSync = stepsOrder.reduce((acc, key) => {
acc[key] = (process) => cancelFrame(process);
return acc;
}, {});
export { cancelSync, sync };
@@ -0,0 +1 @@
{"version":3,"file":"stringify.js","sourceRoot":"https://raw.githubusercontent.com/fb55/domutils/0ab8bcf1ecfc70dfc93291a4cb2496578ac25e9c/src/","sources":["stringify.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,EACL,OAAO,EACP,MAAM,EACN,WAAW,EAEX,SAAS,GACZ,MAAM,YAAY,CAAC;AACpB,OAAO,UAAoC,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C;;;;;;GAMG;AACH,MAAM,UAAU,YAAY,CACxB,IAAkC,EAClC,OAA8B;IAE9B,OAAO,UAAU,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AACrC,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,YAAY,CACxB,IAAa,EACb,OAA8B;IAE9B,OAAO,WAAW,CAAC,IAAI,CAAC;QACpB,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;QACnE,CAAC,CAAC,EAAE,CAAC;AACb,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,OAAO,CAAC,IAAyB;IAC7C,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;QAAE,OAAO,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC3D,IAAI,KAAK,CAAC,IAAI,CAAC;QAAE,OAAO,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC3E,IAAI,OAAO,CAAC,IAAI,CAAC;QAAE,OAAO,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACjD,IAAI,MAAM,CAAC,IAAI,CAAC;QAAE,OAAO,IAAI,CAAC,IAAI,CAAC;IACnC,OAAO,EAAE,CAAC;AACd,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,WAAW,CAAC,IAAyB;IACjD,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;QAAE,OAAO,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC/D,IAAI,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;QACxC,OAAO,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACtC,CAAC;IACD,IAAI,MAAM,CAAC,IAAI,CAAC;QAAE,OAAO,IAAI,CAAC,IAAI,CAAC;IACnC,OAAO,EAAE,CAAC;AACd,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,SAAS,CAAC,IAAyB;IAC/C,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;QAAE,OAAO,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC7D,IAAI,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,WAAW,CAAC,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC;QACxE,OAAO,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACpC,CAAC;IACD,IAAI,MAAM,CAAC,IAAI,CAAC;QAAE,OAAO,IAAI,CAAC,IAAI,CAAC;IACnC,OAAO,EAAE,CAAC;AACd,CAAC"}
@@ -0,0 +1,61 @@
'use strict';
var test = require('tape');
var callBound = require('../');
/** @template {true} T @template U @typedef {T extends U ? T : never} AssertType */
test('callBound', function (t) {
// static primitive
t.equal(callBound('Array.length'), Array.length, 'Array.length yields itself');
t.equal(callBound('%Array.length%'), Array.length, '%Array.length% yields itself');
// static non-function object
t.equal(callBound('Array.prototype'), Array.prototype, 'Array.prototype yields itself');
t.equal(callBound('%Array.prototype%'), Array.prototype, '%Array.prototype% yields itself');
t.equal(callBound('Array.constructor'), Array.constructor, 'Array.constructor yields itself');
t.equal(callBound('%Array.constructor%'), Array.constructor, '%Array.constructor% yields itself');
// static function
t.equal(callBound('Date.parse'), Date.parse, 'Date.parse yields itself');
t.equal(callBound('%Date.parse%'), Date.parse, '%Date.parse% yields itself');
// prototype primitive
t.equal(callBound('Error.prototype.message'), Error.prototype.message, 'Error.prototype.message yields itself');
t.equal(callBound('%Error.prototype.message%'), Error.prototype.message, '%Error.prototype.message% yields itself');
var x = callBound('Object.prototype.toString');
var y = callBound('%Object.prototype.toString%');
// prototype function
t.notEqual(x, Object.prototype.toString, 'Object.prototype.toString does not yield itself');
t.notEqual(y, Object.prototype.toString, '%Object.prototype.toString% does not yield itself');
t.equal(x(true), Object.prototype.toString.call(true), 'call-bound Object.prototype.toString calls into the original');
t.equal(y(true), Object.prototype.toString.call(true), 'call-bound %Object.prototype.toString% calls into the original');
t['throws'](
// @ts-expect-error
function () { callBound('does not exist'); },
SyntaxError,
'nonexistent intrinsic throws'
);
t['throws'](
// @ts-expect-error
function () { callBound('does not exist', true); },
SyntaxError,
'allowMissing arg still throws for unknown intrinsic'
);
t.test('real but absent intrinsic', { skip: typeof WeakRef !== 'undefined' }, function (st) {
st['throws'](
function () { callBound('WeakRef'); },
TypeError,
'real but absent intrinsic throws'
);
st.equal(callBound('WeakRef', true), undefined, 'allowMissing arg avoids exception');
st.end();
});
t.end();
});
@@ -0,0 +1 @@
{"name":"@react-aria/ssr","version":"3.9.7","requiresBuild":false,"files":{"LICENSE":{"checkedAt":1794532105972,"integrity":"sha512-cil7stSp3ik41Hdv2Dj+GMcbvUfs1q+MZ2Yte0804py9i6oJJN/diCiIr/brcQOZ5ZqwAI6dgaHA7l8FZheQBw==","mode":420,"size":11335},"dist/main.js":{"checkedAt":1794532108048,"integrity":"sha512-5H9/974ocKhAJLA+QipB6pBpO+AeJSOj9cKIJl3fPyDVexaX95YZzuhUOyIbSznjLScBLNJeUUkutkit8VxTTA==","mode":420,"size":1124},"dist/module.js":{"checkedAt":1794532108049,"integrity":"sha512-qtdLYQ4i758y8HFkJdKAig5h9pwgxTIl0vrdUuU7Q0oZEl5BaQ+IGUkYZJ2y8z83CiZNJHliiRGOvzX+V1Uo5A==","mode":420,"size":1052},"dist/SSRProvider.main.js":{"checkedAt":1794532108049,"integrity":"sha512-3OhuDwerQ1hv2513Ghfaux1p1Ocs1KKJDB4ZFGJKbriPbuSAT++FfFiDV+r1e/+t4MtgSA3ThSX8epp7itYI8g==","mode":420,"size":10098},"dist/SSRProvider.module.js":{"checkedAt":1794532108049,"integrity":"sha512-fR9KdaDRFNu7MbnUHno8zDd8QYAMLc/IsMFNQEgPs1iGqrZHjBprQgdsAqGiK2QxCT53XbulqqN6MfD6HDKD1w==","mode":420,"size":9546},"package.json":{"checkedAt":1794532108049,"integrity":"sha512-j0kZ0CLycnKeTlEM8L8sQrTin0UGE5LqJq7RQFdps/TPXdhcnPAj2jP+EkcHsHh1AtQSPAR4OAtoNax0LP3WTA==","mode":420,"size":933},"dist/main.js.map":{"checkedAt":1794532108049,"integrity":"sha512-AyzgZXyqhxvCH4A34DPe4PzwN5KAFqIJaNs5GEqZgtaVedba8I2d4rUGZ4jU6YtiZCfGDAYhUu/zl7bgDLtFyQ==","mode":420,"size":946},"dist/module.js.map":{"checkedAt":1794532108049,"integrity":"sha512-cdqeQzCuVkRJ0r9pF4iVGX6USyd38P4NNDzDWCW4dBu4ylGSP2KWlNpVitG02gKRveUytSAGsgWtGc8CQQTCMQ==","mode":420,"size":940},"dist/SSRProvider.main.js.map":{"checkedAt":1794532108049,"integrity":"sha512-FuuRfkH6MddfO46jQrpVwg1pg/QxkszVzedS20JU9a2JTzSN2/NLT35Le+hxdefnY0qJqdYivHoBSosDVDaO1g==","mode":420,"size":11676},"dist/SSRProvider.module.js.map":{"checkedAt":1794532108049,"integrity":"sha512-p7yxHTp8WMS3uQjE1FUSVOUXVSnAGFyLLAnAP8o4arXunXv7DUR0WUKjuuYzRCN74SckOKjwFmB/c2qT/cV+7w==","mode":420,"size":11654},"dist/types.d.ts.map":{"checkedAt":1794532108049,"integrity":"sha512-lTIbKS4PU4J0RUn7T197f55tkfnz+Zap9mFSSi+tes1/NCC0cBiUCGeQ3M0V8+LP1vC09OuljPFB0L/uwpuV6Q==","mode":420,"size":1285},"README.md":{"checkedAt":1794532108050,"integrity":"sha512-5SVKzgAZuvrUD8FaP4XJfoMKdEie12LzmwheuD+5WU598OfVvWBFE575iqElQYNe6fCC4cGXhauW9bFp/eCIFA==","mode":420,"size":133},"dist/import.mjs":{"checkedAt":1794532108050,"integrity":"sha512-kqIaJeEcVl7Hfa215T5BUW4CR7RIm9bka+TBQ8D04EOqlrXLlYez9DSIxxNmqvgSvZUQuw4bakgdF30TJI24dw==","mode":420,"size":1046},"dist/SSRProvider.mjs":{"checkedAt":1794532108049,"integrity":"sha512-fR9KdaDRFNu7MbnUHno8zDd8QYAMLc/IsMFNQEgPs1iGqrZHjBprQgdsAqGiK2QxCT53XbulqqN6MfD6HDKD1w==","mode":420,"size":9546},"src/index.ts":{"checkedAt":1794532108050,"integrity":"sha512-vCVwjebNQlXSWic3bL/sPhZ1dcRpsY+qRWdW9iQlxDT1QMwaomd153Xs1GtOTJC6A0A/JKVvYODkLAWOu9r2Lg==","mode":420,"size":740},"dist/types.d.ts":{"checkedAt":1794532108050,"integrity":"sha512-/2y7VyWnWBYIeWEsMiXz3Pqm6NheGrNW9TrIymNyTdyomQq1w+umKXTk5rm3TBR3t2qf4Z2psE6X+AKaKrTpBQ==","mode":420,"size":793},"src/SSRProvider.tsx":{"checkedAt":1794532108050,"integrity":"sha512-QUnDXOBQzbETk3SF/nO74h0V0HBI+FfiK0iVH6goM8pCq4JTu2CGuniBLpn+tgA9DzPSkRIKCu8z0yOXcAujLg==","mode":420,"size":8341}}}
@@ -0,0 +1,131 @@
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; subject: string }> = {
string: { unit: "merkkiä", subject: "merkkijonon" },
file: { unit: "tavua", subject: "tiedoston" },
array: { unit: "alkiota", subject: "listan" },
set: { unit: "alkiota", subject: "joukon" },
number: { unit: "", subject: "luvun" },
bigint: { unit: "", subject: "suuren kokonaisluvun" },
int: { unit: "", subject: "kokonaisluvun" },
date: { unit: "", subject: "päivämäärän" },
};
function getSizing(origin: string): { unit: string; subject: string } | null {
return Sizable[origin] ?? null;
}
const parsedType = (data: any): string => {
const t = typeof data;
switch (t) {
case "number": {
return Number.isNaN(data) ? "NaN" : "number";
}
case "object": {
if (Array.isArray(data)) {
return "array";
}
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: "säännöllinen lauseke",
email: "sähköpostiosoite",
url: "URL-osoite",
emoji: "emoji",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "ISO-aikaleima",
date: "ISO-päivämäärä",
time: "ISO-aika",
duration: "ISO-kesto",
ipv4: "IPv4-osoite",
ipv6: "IPv6-osoite",
cidrv4: "IPv4-alue",
cidrv6: "IPv6-alue",
base64: "base64-koodattu merkkijono",
base64url: "base64url-koodattu merkkijono",
json_string: "JSON-merkkijono",
e164: "E.164-luku",
jwt: "JWT",
template_literal: "templaattimerkkijono",
};
return (issue) => {
switch (issue.code) {
case "invalid_type":
return `Virheellinen tyyppi: odotettiin ${issue.expected}, oli ${parsedType(issue.input)}`;
case "invalid_value":
if (issue.values.length === 1)
return `Virheellinen syöte: täytyy olla ${util.stringifyPrimitive(issue.values[0])}`;
return `Virheellinen valinta: täytyy olla yksi seuraavista: ${util.joinValues(issue.values, "|")}`;
case "too_big": {
const adj = issue.inclusive ? "<=" : "<";
const sizing = getSizing(issue.origin);
if (sizing) {
return `Liian suuri: ${sizing.subject} täytyy olla ${adj}${issue.maximum.toString()} ${sizing.unit}`.trim();
}
return `Liian suuri: arvon täytyy olla ${adj}${issue.maximum.toString()}`;
}
case "too_small": {
const adj = issue.inclusive ? ">=" : ">";
const sizing = getSizing(issue.origin);
if (sizing) {
return `Liian pieni: ${sizing.subject} täytyy olla ${adj}${issue.minimum.toString()} ${sizing.unit}`.trim();
}
return `Liian pieni: arvon täytyy olla ${adj}${issue.minimum.toString()}`;
}
case "invalid_format": {
const _issue = issue as errors.$ZodStringFormatIssues;
if (_issue.format === "starts_with") return `Virheellinen syöte: täytyy alkaa "${_issue.prefix}"`;
if (_issue.format === "ends_with") return `Virheellinen syöte: täytyy loppua "${_issue.suffix}"`;
if (_issue.format === "includes") return `Virheellinen syöte: täytyy sisältää "${_issue.includes}"`;
if (_issue.format === "regex") {
return `Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${_issue.pattern}`;
}
return `Virheellinen ${Nouns[_issue.format] ?? issue.format}`;
}
case "not_multiple_of":
return `Virheellinen luku: täytyy olla luvun ${issue.divisor} monikerta`;
case "unrecognized_keys":
return `${issue.keys.length > 1 ? "Tuntemattomat avaimet" : "Tuntematon avain"}: ${util.joinValues(issue.keys, ", ")}`;
case "invalid_key":
return "Virheellinen avain tietueessa";
case "invalid_union":
return "Virheellinen unioni";
case "invalid_element":
return "Virheellinen arvo joukossa";
default:
return `Virheellinen syöte`;
}
};
};
export default function (): { localeError: errors.$ZodErrorMap } {
return {
localeError: error(),
};
}
@@ -0,0 +1 @@
{"name":"parent-module","version":"1.0.1","requiresBuild":false,"files":{"package.json":{"checkedAt":1794532093345,"integrity":"sha512-SlJLI/85Xyu6pGAIveCMgmQIs+uZgOTJpgLmR/RxdlESuj1Av07sNN9BcYAQTVxBzZCr9895hcT40R7THt9OxQ==","mode":420,"size":712},"index.js":{"checkedAt":1794532093346,"integrity":"sha512-2wnfCb/sc7WKNctb/fkD83lEshnmODcODe7LTQvEe2/wA2lxOC7hHYbGR3m9moci1nevegf1M+7vTNX5sopNng==","mode":420,"size":641},"license":{"checkedAt":1794532093346,"integrity":"sha512-nIst73auX/5NY2Fmv5Y116vWnNrEv4GaIUX3lpZG05rpXJY2S8EX+fpUS5hRjClCM0VdT2Za9DDHXXB5jdSrEw==","mode":420,"size":1109},"readme.md":{"checkedAt":1794532093346,"integrity":"sha512-gnTetT192Dj3r0nw1AA5PouZtHuCsY7Fk0PsXZfkRzSiAMZmU24Lg/w9VYRY7vwDishJv+pszDogU5ExgIwNvQ==","mode":420,"size":1460}}}
@@ -0,0 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.WHITE_SPACE_REGEX = exports.SPACE_SEPARATOR_REGEX = void 0;
// @generated from regex-gen.ts
exports.SPACE_SEPARATOR_REGEX = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
exports.WHITE_SPACE_REGEX = /[\t-\r \x85\u200E\u200F\u2028\u2029]/;
@@ -0,0 +1,212 @@
/*!
Copyright 2013 Lovell Fuller and others.
SPDX-License-Identifier: Apache-2.0
*/
const is = require('./is');
/**
* Blend modes.
* @member
* @private
*/
const blend = {
clear: 'clear',
source: 'source',
over: 'over',
in: 'in',
out: 'out',
atop: 'atop',
dest: 'dest',
'dest-over': 'dest-over',
'dest-in': 'dest-in',
'dest-out': 'dest-out',
'dest-atop': 'dest-atop',
xor: 'xor',
add: 'add',
saturate: 'saturate',
multiply: 'multiply',
screen: 'screen',
overlay: 'overlay',
darken: 'darken',
lighten: 'lighten',
'colour-dodge': 'colour-dodge',
'color-dodge': 'colour-dodge',
'colour-burn': 'colour-burn',
'color-burn': 'colour-burn',
'hard-light': 'hard-light',
'soft-light': 'soft-light',
difference: 'difference',
exclusion: 'exclusion'
};
/**
* Composite image(s) over the processed (resized, extracted etc.) image.
*
* The images to composite must be the same size or smaller than the processed image.
* If both `top` and `left` options are provided, they take precedence over `gravity`.
*
* Other operations in the same processing pipeline (e.g. resize, rotate, flip,
* flop, extract) will always be applied to the input image before composition.
*
* The `blend` option can be one of `clear`, `source`, `over`, `in`, `out`, `atop`,
* `dest`, `dest-over`, `dest-in`, `dest-out`, `dest-atop`,
* `xor`, `add`, `saturate`, `multiply`, `screen`, `overlay`, `darken`, `lighten`,
* `colour-dodge`, `color-dodge`, `colour-burn`,`color-burn`,
* `hard-light`, `soft-light`, `difference`, `exclusion`.
*
* More information about blend modes can be found at
* https://www.libvips.org/API/current/enum.BlendMode.html
* and https://www.cairographics.org/operators/
*
* @since 0.22.0
*
* @example
* await sharp(background)
* .composite([
* { input: layer1, gravity: 'northwest' },
* { input: layer2, gravity: 'southeast' },
* ])
* .toFile('combined.png');
*
* @example
* const output = await sharp('input.gif', { animated: true })
* .composite([
* { input: 'overlay.png', tile: true, blend: 'saturate' }
* ])
* .toBuffer();
*
* @example
* sharp('input.png')
* .rotate(180)
* .resize(300)
* .flatten( { background: '#ff6600' } )
* .composite([{ input: 'overlay.png', gravity: 'southeast' }])
* .sharpen()
* .withMetadata()
* .webp( { quality: 90 } )
* .toBuffer()
* .then(function(outputBuffer) {
* // outputBuffer contains upside down, 300px wide, alpha channel flattened
* // onto orange background, composited with overlay.png with SE gravity,
* // sharpened, with metadata, 90% quality WebP image data. Phew!
* });
*
* @param {Object[]} images - Ordered list of images to composite
* @param {Buffer|String} [images[].input] - Buffer containing image data, String containing the path to an image file, or Create object (see below)
* @param {Object} [images[].input.create] - describes a blank overlay to be created.
* @param {Number} [images[].input.create.width]
* @param {Number} [images[].input.create.height]
* @param {Number} [images[].input.create.channels] - 3-4
* @param {String|Object} [images[].input.create.background] - parsed by the [color](https://www.npmjs.org/package/color) module to extract values for red, green, blue and alpha.
* @param {Object} [images[].input.text] - describes a new text image to be created.
* @param {string} [images[].input.text.text] - text to render as a UTF-8 string. It can contain Pango markup, for example `<i>Le</i>Monde`.
* @param {string} [images[].input.text.font] - font name to render with.
* @param {string} [images[].input.text.fontfile] - absolute filesystem path to a font file that can be used by `font`.
* @param {number} [images[].input.text.width=0] - integral number of pixels to word-wrap at. Lines of text wider than this will be broken at word boundaries.
* @param {number} [images[].input.text.height=0] - integral number of pixels high. When defined, `dpi` will be ignored and the text will automatically fit the pixel resolution defined by `width` and `height`. Will be ignored if `width` is not specified or set to 0.
* @param {string} [images[].input.text.align='left'] - text alignment (`'left'`, `'centre'`, `'center'`, `'right'`).
* @param {boolean} [images[].input.text.justify=false] - set this to true to apply justification to the text.
* @param {number} [images[].input.text.dpi=72] - the resolution (size) at which to render the text. Does not take effect if `height` is specified.
* @param {boolean} [images[].input.text.rgba=false] - set this to true to enable RGBA output. This is useful for colour emoji rendering, or support for Pango markup features like `<span foreground="red">Red!</span>`.
* @param {number} [images[].input.text.spacing=0] - text line height in points. Will use the font line height if none is specified.
* @param {Boolean} [images[].autoOrient=false] - set to true to use EXIF orientation data, if present, to orient the image.
* @param {String} [images[].blend='over'] - how to blend this image with the image below.
* @param {String} [images[].gravity='centre'] - gravity at which to place the overlay.
* @param {Number} [images[].top] - the pixel offset from the top edge.
* @param {Number} [images[].left] - the pixel offset from the left edge.
* @param {Boolean} [images[].tile=false] - set to true to repeat the overlay image across the entire image with the given `gravity`.
* @param {Boolean} [images[].premultiplied=false] - set to true to avoid premultiplying the image below. Equivalent to the `--premultiplied` vips option.
* @param {Number} [images[].density=72] - number representing the DPI for vector overlay image.
* @param {Object} [images[].raw] - describes overlay when using raw pixel data.
* @param {Number} [images[].raw.width]
* @param {Number} [images[].raw.height]
* @param {Number} [images[].raw.channels]
* @param {boolean} [images[].animated=false] - Set to `true` to read all frames/pages of an animated image.
* @param {string} [images[].failOn='warning'] - @see {@link /api-constructor/ constructor parameters}
* @param {number|boolean} [images[].limitInputPixels=268402689] - @see {@link /api-constructor/ constructor parameters}
* @returns {Sharp}
* @throws {Error} Invalid parameters
*/
function composite (images) {
if (!Array.isArray(images)) {
throw is.invalidParameterError('images to composite', 'array', images);
}
this.options.composite = images.map(image => {
if (!is.object(image)) {
throw is.invalidParameterError('image to composite', 'object', image);
}
const inputOptions = this._inputOptionsFromObject(image);
const composite = {
input: this._createInputDescriptor(image.input, inputOptions, { allowStream: false }),
blend: 'over',
tile: false,
left: 0,
top: 0,
hasOffset: false,
gravity: 0,
premultiplied: false
};
if (is.defined(image.blend)) {
if (is.string(blend[image.blend])) {
composite.blend = blend[image.blend];
} else {
throw is.invalidParameterError('blend', 'valid blend name', image.blend);
}
}
if (is.defined(image.tile)) {
if (is.bool(image.tile)) {
composite.tile = image.tile;
} else {
throw is.invalidParameterError('tile', 'boolean', image.tile);
}
}
if (is.defined(image.left)) {
if (is.integer(image.left)) {
composite.left = image.left;
} else {
throw is.invalidParameterError('left', 'integer', image.left);
}
}
if (is.defined(image.top)) {
if (is.integer(image.top)) {
composite.top = image.top;
} else {
throw is.invalidParameterError('top', 'integer', image.top);
}
}
if (is.defined(image.top) !== is.defined(image.left)) {
throw new Error('Expected both left and top to be set');
} else {
composite.hasOffset = is.integer(image.top) && is.integer(image.left);
}
if (is.defined(image.gravity)) {
if (is.integer(image.gravity) && is.inRange(image.gravity, 0, 8)) {
composite.gravity = image.gravity;
} else if (is.string(image.gravity) && is.integer(this.constructor.gravity[image.gravity])) {
composite.gravity = this.constructor.gravity[image.gravity];
} else {
throw is.invalidParameterError('gravity', 'valid gravity', image.gravity);
}
}
if (is.defined(image.premultiplied)) {
if (is.bool(image.premultiplied)) {
composite.premultiplied = image.premultiplied;
} else {
throw is.invalidParameterError('premultiplied', 'boolean', image.premultiplied);
}
}
return composite;
});
return this;
}
/**
* Decorate the Sharp prototype with composite-related functions.
* @module Sharp
* @private
*/
module.exports = (Sharp) => {
Sharp.prototype.composite = composite;
Sharp.blend = blend;
};
@@ -0,0 +1,27 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var definitionRole = {
abstract: false,
accessibleNameRequired: false,
baseConcepts: [],
childrenPresentational: false,
nameFrom: ['author'],
prohibitedProps: [],
props: {},
relatedConcepts: [{
concept: {
name: 'dd'
},
module: 'HTML'
}],
requireContextRole: [],
requiredContextRole: [],
requiredOwnedElements: [],
requiredProps: {},
superClass: [['roletype', 'structure', 'section']]
};
var _default = exports.default = definitionRole;
@@ -0,0 +1,190 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getFeed = getFeed;
var stringify_js_1 = require("./stringify.js");
var legacy_js_1 = require("./legacy.js");
/**
* Get the feed object from the root of a DOM tree.
*
* @category Feeds
* @param doc - The DOM to to extract the feed from.
* @returns The feed.
*/
function getFeed(doc) {
var feedRoot = getOneElement(isValidFeed, doc);
return !feedRoot
? null
: feedRoot.name === "feed"
? getAtomFeed(feedRoot)
: getRssFeed(feedRoot);
}
/**
* Parse an Atom feed.
*
* @param feedRoot The root of the feed.
* @returns The parsed feed.
*/
function getAtomFeed(feedRoot) {
var _a;
var childs = feedRoot.children;
var feed = {
type: "atom",
items: (0, legacy_js_1.getElementsByTagName)("entry", childs).map(function (item) {
var _a;
var children = item.children;
var entry = { media: getMediaElements(children) };
addConditionally(entry, "id", "id", children);
addConditionally(entry, "title", "title", children);
var href = (_a = getOneElement("link", children)) === null || _a === void 0 ? void 0 : _a.attribs["href"];
if (href) {
entry.link = href;
}
var description = fetch("summary", children) || fetch("content", children);
if (description) {
entry.description = description;
}
var pubDate = fetch("updated", children);
if (pubDate) {
entry.pubDate = new Date(pubDate);
}
return entry;
}),
};
addConditionally(feed, "id", "id", childs);
addConditionally(feed, "title", "title", childs);
var href = (_a = getOneElement("link", childs)) === null || _a === void 0 ? void 0 : _a.attribs["href"];
if (href) {
feed.link = href;
}
addConditionally(feed, "description", "subtitle", childs);
var updated = fetch("updated", childs);
if (updated) {
feed.updated = new Date(updated);
}
addConditionally(feed, "author", "email", childs, true);
return feed;
}
/**
* Parse a RSS feed.
*
* @param feedRoot The root of the feed.
* @returns The parsed feed.
*/
function getRssFeed(feedRoot) {
var _a, _b;
var childs = (_b = (_a = getOneElement("channel", feedRoot.children)) === null || _a === void 0 ? void 0 : _a.children) !== null && _b !== void 0 ? _b : [];
var feed = {
type: feedRoot.name.substr(0, 3),
id: "",
items: (0, legacy_js_1.getElementsByTagName)("item", feedRoot.children).map(function (item) {
var children = item.children;
var entry = { media: getMediaElements(children) };
addConditionally(entry, "id", "guid", children);
addConditionally(entry, "title", "title", children);
addConditionally(entry, "link", "link", children);
addConditionally(entry, "description", "description", children);
var pubDate = fetch("pubDate", children) || fetch("dc:date", children);
if (pubDate)
entry.pubDate = new Date(pubDate);
return entry;
}),
};
addConditionally(feed, "title", "title", childs);
addConditionally(feed, "link", "link", childs);
addConditionally(feed, "description", "description", childs);
var updated = fetch("lastBuildDate", childs);
if (updated) {
feed.updated = new Date(updated);
}
addConditionally(feed, "author", "managingEditor", childs, true);
return feed;
}
var MEDIA_KEYS_STRING = ["url", "type", "lang"];
var MEDIA_KEYS_INT = [
"fileSize",
"bitrate",
"framerate",
"samplingrate",
"channels",
"duration",
"height",
"width",
];
/**
* Get all media elements of a feed item.
*
* @param where Nodes to search in.
* @returns Media elements.
*/
function getMediaElements(where) {
return (0, legacy_js_1.getElementsByTagName)("media:content", where).map(function (elem) {
var attribs = elem.attribs;
var media = {
medium: attribs["medium"],
isDefault: !!attribs["isDefault"],
};
for (var _i = 0, MEDIA_KEYS_STRING_1 = MEDIA_KEYS_STRING; _i < MEDIA_KEYS_STRING_1.length; _i++) {
var attrib = MEDIA_KEYS_STRING_1[_i];
if (attribs[attrib]) {
media[attrib] = attribs[attrib];
}
}
for (var _a = 0, MEDIA_KEYS_INT_1 = MEDIA_KEYS_INT; _a < MEDIA_KEYS_INT_1.length; _a++) {
var attrib = MEDIA_KEYS_INT_1[_a];
if (attribs[attrib]) {
media[attrib] = parseInt(attribs[attrib], 10);
}
}
if (attribs["expression"]) {
media.expression = attribs["expression"];
}
return media;
});
}
/**
* Get one element by tag name.
*
* @param tagName Tag name to look for
* @param node Node to search in
* @returns The element or null
*/
function getOneElement(tagName, node) {
return (0, legacy_js_1.getElementsByTagName)(tagName, node, true, 1)[0];
}
/**
* Get the text content of an element with a certain tag name.
*
* @param tagName Tag name to look for.
* @param where Node to search in.
* @param recurse Whether to recurse into child nodes.
* @returns The text content of the element.
*/
function fetch(tagName, where, recurse) {
if (recurse === void 0) { recurse = false; }
return (0, stringify_js_1.textContent)((0, legacy_js_1.getElementsByTagName)(tagName, where, recurse, 1)).trim();
}
/**
* Adds a property to an object if it has a value.
*
* @param obj Object to be extended
* @param prop Property name
* @param tagName Tag name that contains the conditionally added property
* @param where Element to search for the property
* @param recurse Whether to recurse into child nodes.
*/
function addConditionally(obj, prop, tagName, where, recurse) {
if (recurse === void 0) { recurse = false; }
var val = fetch(tagName, where, recurse);
if (val)
obj[prop] = val;
}
/**
* Checks if an element is a feed root node.
*
* @param value The name of the element to check.
* @returns Whether an element is a feed root node.
*/
function isValidFeed(value) {
return value === "rss" || value === "feed" || value === "rdf:RDF";
}
//# sourceMappingURL=feeds.js.map
@@ -0,0 +1 @@
{"name":"fn.name","version":"1.1.0","requiresBuild":false,"files":{"package.json":{"checkedAt":1794532101466,"integrity":"sha512-CrnP5yZWBMIqZK9JEGj5XgRWaj9l7E5kC3GR6365CQJnU15xeoLTnlkKiOwzIyhIkz2/HNUo0/U4U3L4MgJC9Q==","mode":420,"size":883},".gitattributes":{"checkedAt":1794532101286,"integrity":"sha512-NvupX4GatvfOEyiT/TiqykbYNiuJlvNDGLiBjRzxNxfaYXvtoOXXSYVOvttQZIZx5K74xwmo9O+c+dCOWb4HTw==","mode":420,"size":25},".travis.yml":{"checkedAt":1794532101466,"integrity":"sha512-l016hGleRlwYv5QYAOYocFlzbEJk1FecutGyv5J3yCLKf1KQO19q3ydElR3HXP8rpL3TwAV3jSbp9AbXGsayGA==","mode":420,"size":181},"index.js":{"checkedAt":1794532101466,"integrity":"sha512-GmnnikU0v0PMYU7hM0YqXEv4YEHAmY/eSSyOySbFBbbGfnKYYk149TCMCaEd5fbeLD03/I6aBzh0H6TTJuSpsQ==","mode":420,"size":988},"LICENSE":{"checkedAt":1794532101466,"integrity":"sha512-1MHZX2Tm3y5i20Pd2wkln3KAOmYw86hdwEFKM8MOU4FVkZTpW/bVW0Vj5mnVL1JpuxAr2ZwzaN53KdIe9CJvWA==","mode":420,"size":1120},"README.md":{"checkedAt":1794532101467,"integrity":"sha512-A4EeN+wTJNXmvjkBHUiGVPa5XQvX5BZIoZKmraNdONzjomWacHJnaA9QWM6eHmSemi59Xfa1UAzVkqrEbk4WCw==","mode":420,"size":1130},"test.js":{"checkedAt":1794532101467,"integrity":"sha512-7zDNFMA4LlRm3ogkgRv2QqcJXBZVsupnC7S87lfFBk6XjXGlH/yZJO1wRyIjRfZkRUkOjFmfc0126pv6ELhjLw==","mode":420,"size":1882}}}
@@ -0,0 +1,164 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.isBindingIdentifier = isBindingIdentifier;
exports.isBlockScoped = isBlockScoped;
exports.isExpression = isExpression;
exports.isFlow = isFlow;
exports.isForAwaitStatement = isForAwaitStatement;
exports.isGenerated = isGenerated;
exports.isPure = isPure;
exports.isReferenced = isReferenced;
exports.isReferencedIdentifier = isReferencedIdentifier;
exports.isReferencedMemberExpression = isReferencedMemberExpression;
exports.isRestProperty = isRestProperty;
exports.isScope = isScope;
exports.isSpreadProperty = isSpreadProperty;
exports.isStatement = isStatement;
exports.isUser = isUser;
exports.isVar = isVar;
var _t = require("@babel/types");
const {
isBinding,
isBlockScoped: nodeIsBlockScoped,
isExportDeclaration,
isExpression: nodeIsExpression,
isFlow: nodeIsFlow,
isForStatement,
isForXStatement,
isIdentifier,
isImportDeclaration,
isImportSpecifier,
isJSXIdentifier,
isJSXMemberExpression,
isMemberExpression,
isRestElement: nodeIsRestElement,
isReferenced: nodeIsReferenced,
isScope: nodeIsScope,
isStatement: nodeIsStatement,
isVar: nodeIsVar,
isVariableDeclaration,
react,
isForOfStatement
} = _t;
const {
isCompatTag
} = react;
function isReferencedIdentifier(opts) {
const {
node,
parent
} = this;
if (isIdentifier(node, opts)) {
return nodeIsReferenced(node, parent, this.parentPath.parent);
} else if (isJSXIdentifier(node, opts)) {
if (!isJSXMemberExpression(parent) && isCompatTag(node.name)) return false;
return nodeIsReferenced(node, parent, this.parentPath.parent);
} else {
return false;
}
}
function isReferencedMemberExpression() {
const {
node,
parent
} = this;
return isMemberExpression(node) && nodeIsReferenced(node, parent);
}
function isBindingIdentifier() {
const {
node,
parent
} = this;
const grandparent = this.parentPath.parent;
return isIdentifier(node) && isBinding(node, parent, grandparent);
}
function isStatement() {
const {
node,
parent
} = this;
if (nodeIsStatement(node)) {
if (isVariableDeclaration(node)) {
if (isForXStatement(parent, {
left: node
})) return false;
if (isForStatement(parent, {
init: node
})) return false;
}
return true;
} else {
return false;
}
}
function isExpression() {
if (this.isIdentifier()) {
return this.isReferencedIdentifier();
} else {
return nodeIsExpression(this.node);
}
}
function isScope() {
return nodeIsScope(this.node, this.parent);
}
function isReferenced() {
return nodeIsReferenced(this.node, this.parent);
}
function isBlockScoped() {
return nodeIsBlockScoped(this.node);
}
function isVar() {
return nodeIsVar(this.node);
}
function isUser() {
var _this$node;
return !!((_this$node = this.node) != null && _this$node.loc);
}
function isGenerated() {
return !this.isUser();
}
function isPure(constantsOnly) {
return this.scope.isPure(this.node, constantsOnly);
}
function isFlow() {
const {
node
} = this;
if (nodeIsFlow(node)) {
return true;
} else if (isImportDeclaration(node)) {
return node.importKind === "type" || node.importKind === "typeof";
} else if (isExportDeclaration(node)) {
return node.exportKind === "type";
} else if (isImportSpecifier(node)) {
return node.importKind === "type" || node.importKind === "typeof";
} else {
return false;
}
}
function isRestProperty() {
var _this$parentPath;
return nodeIsRestElement(this.node) && ((_this$parentPath = this.parentPath) == null ? void 0 : _this$parentPath.isObjectPattern());
}
function isSpreadProperty() {
var _this$parentPath2;
return nodeIsRestElement(this.node) && ((_this$parentPath2 = this.parentPath) == null ? void 0 : _this$parentPath2.isObjectExpression());
}
function isForAwaitStatement() {
return isForOfStatement(this.node, {
await: true
});
}
{
exports.isExistentialTypeParam = function isExistentialTypeParam() {
throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.");
};
exports.isNumericLiteralTypeAnnotation = function isNumericLiteralTypeAnnotation() {
throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.");
};
}
//# sourceMappingURL=virtual-types-validator.js.map
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=BindingActivation.js.map
@@ -0,0 +1,27 @@
/**
* A message of unknown type.
*/
export interface UnknownMessage {
[k: string]: UnknownScalar | UnknownEnum | UnknownMessage | UnknownOneofGroup | UnknownMap | UnknownScalar[] | UnknownMessage[] | UnknownEnum[] | undefined;
}
/**
* A map field of unknown type.
*/
export declare type UnknownMap<T = UnknownMessage | UnknownScalar | UnknownEnum> = {
[key: string]: T;
};
/**
* A scalar field of unknown type.
*/
export declare type UnknownScalar = string | number | bigint | boolean | Uint8Array;
/**
* A enum field of unknown type.
*/
export declare type UnknownEnum = number;
/**
* A unknown oneof group. See `isOneofGroup()` for details.
*/
export declare type UnknownOneofGroup = {
oneofKind: undefined | string;
[k: string]: UnknownScalar | UnknownEnum | UnknownMessage | undefined;
};
@@ -0,0 +1,7 @@
import * as react_jsx_runtime from 'react/jsx-runtime';
import { IconSvgProps } from './types.mjs';
import 'react';
declare const EyeIcon: (props: IconSvgProps) => react_jsx_runtime.JSX.Element;
export { EyeIcon };
@@ -0,0 +1 @@
{"version":3,"names":["_traverseFast","require","_removeProperties","removePropertiesDeep","tree","opts","traverseFast","removeProperties"],"sources":["../../src/modifications/removePropertiesDeep.ts"],"sourcesContent":["import traverseFast from \"../traverse/traverseFast.ts\";\nimport removeProperties from \"./removeProperties.ts\";\nimport type * as t from \"../index.ts\";\n\nexport default function removePropertiesDeep<T extends t.Node>(\n tree: T,\n opts?: { preserveComments: boolean } | null,\n): T {\n traverseFast(tree, removeProperties, opts);\n\n return tree;\n}\n"],"mappings":";;;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AAGe,SAASE,oBAAoBA,CAC1CC,IAAO,EACPC,IAA2C,EACxC;EACH,IAAAC,qBAAY,EAACF,IAAI,EAAEG,yBAAgB,EAAEF,IAAI,CAAC;EAE1C,OAAOD,IAAI;AACb","ignoreList":[]}
@@ -0,0 +1,5 @@
var assertClassBrand = require("./assertClassBrand.js");
function _classPrivateGetter(s, r, a) {
return a(assertClassBrand(s, r));
}
module.exports = _classPrivateGetter, module.exports.__esModule = true, module.exports["default"] = module.exports;
@@ -0,0 +1,6 @@
export interface Options {
esmodule?: boolean;
}
export type MessageId = 'import' | 'require';
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<MessageId, [(Options | undefined)?], import("../utils/create-rule.ts").ImportXPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
export default _default;
@@ -0,0 +1,82 @@
/**
* @import {Info, State} from 'mdast-util-to-markdown'
* @import {Image, Parents} from 'mdast'
*/
import {checkQuote} from '../util/check-quote.js'
image.peek = imagePeek
/**
* @param {Image} node
* @param {Parents | undefined} _
* @param {State} state
* @param {Info} info
* @returns {string}
*/
export function image(node, _, state, info) {
const quote = checkQuote(state)
const suffix = quote === '"' ? 'Quote' : 'Apostrophe'
const exit = state.enter('image')
let subexit = state.enter('label')
const tracker = state.createTracker(info)
let value = tracker.move('![')
value += tracker.move(
state.safe(node.alt, {before: value, after: ']', ...tracker.current()})
)
value += tracker.move('](')
subexit()
if (
// If there’s no url but there is a title…
(!node.url && node.title) ||
// If there are control characters or whitespace.
/[\0- \u007F]/.test(node.url)
) {
subexit = state.enter('destinationLiteral')
value += tracker.move('<')
value += tracker.move(
state.safe(node.url, {before: value, after: '>', ...tracker.current()})
)
value += tracker.move('>')
} else {
// No whitespace, raw is prettier.
subexit = state.enter('destinationRaw')
value += tracker.move(
state.safe(node.url, {
before: value,
after: node.title ? ' ' : ')',
...tracker.current()
})
)
}
subexit()
if (node.title) {
subexit = state.enter(`title${suffix}`)
value += tracker.move(' ' + quote)
value += tracker.move(
state.safe(node.title, {
before: value,
after: quote,
...tracker.current()
})
)
value += tracker.move(quote)
subexit()
}
value += tracker.move(')')
exit()
return value
}
/**
* @returns {string}
*/
function imagePeek() {
return '!'
}
@@ -0,0 +1,38 @@
{
"name": "prettier-linter-helpers",
"version": "1.0.0",
"description": "Utilities to help expose prettier output in linting tools",
"contributors": [
"Ben Scott",
"Teddy Katz"
],
"main": "index.js",
"license": "MIT",
"scripts": {
"lint": "eslint .",
"test": "npm run lint && mocha",
"format": "yarn run prettier '**/*.{js,json,md,yml}' --write && yarn run lint --fix"
},
"repository": {
"type": "git",
"url": "git+https://github.com/prettier/prettier-linter-helpers.git"
},
"bugs": {
"url": "https://github.com/prettier/prettier-linter-helpers/issues"
},
"homepage": "https://github.com/prettier/prettier-linter-helpers#readme",
"dependencies": {
"fast-diff": "^1.1.2"
},
"devDependencies": {
"eslint": "^5.6.1",
"eslint-config-prettier": "^3.1.0",
"eslint-plugin-node": "^7.0.1",
"eslint-plugin-prettier": "^2.7.0",
"mocha": "^5.2.0",
"prettier": "^1.14.3"
},
"engines": {
"node": ">=6.0.0"
}
}
@@ -0,0 +1,7 @@
export { default as Input, InputProps } from './input.js';
export { TextAreaProps, default as Textarea } from './textarea.js';
export { useInput } from './use-input.js';
import '@heroui/system';
import 'react';
import '@heroui/theme';
import '@react-types/textfield';
@@ -0,0 +1,67 @@
var test = require('tape')
var Expand = require('./')
test('default expands {} placeholders', function (t) {
var expand = Expand()
t.equal(typeof expand, 'function', 'is a function')
t.equal(expand('{foo}/{bar}', {
foo: 'BAR', bar: 'FOO'
}), 'BAR/FOO')
t.equal(expand('{foo}{foo}{foo}', {
foo: 'FOO'
}), 'FOOFOOFOO', 'expands one placeholder many times')
t.end()
})
test('support for custom separators', function (t) {
var expand = Expand({ sep: '[]' })
t.equal(expand('[foo]/[bar]', {
foo: 'BAR', bar: 'FOO'
}), 'BAR/FOO')
t.equal(expand('[foo][foo][foo]', {
foo: 'FOO'
}), 'FOOFOOFOO', 'expands one placeholder many times')
t.end()
})
test('support for longer custom separators', function (t) {
var expand = Expand({ sep: '[[]]' })
t.equal(expand('[[foo]]/[[bar]]', {
foo: 'BAR', bar: 'FOO'
}), 'BAR/FOO')
t.equal(expand('[[foo]][[foo]][[foo]]', {
foo: 'FOO'
}), 'FOOFOOFOO', 'expands one placeholder many times')
t.end()
})
test('whitespace-insensitive', function (t) {
var expand = Expand({ sep: '[]' })
t.equal(expand('[ foo ]/[ bar ]', {
foo: 'BAR', bar: 'FOO'
}), 'BAR/FOO')
t.equal(expand('[ foo ][ foo ][ foo]', {
foo: 'FOO'
}), 'FOOFOOFOO', 'expands one placeholder many times')
t.end()
})
test('dollar escape', function (t) {
var expand = Expand()
t.equal(expand('before {foo} after', {
foo: '$'
}), 'before $ after')
t.equal(expand('before {foo} after', {
foo: '$&'
}), 'before $& after')
t.equal(expand('before {foo} after', {
foo: '$`'
}), 'before $` after')
t.equal(expand('before {foo} after', {
foo: '$\''
}), 'before $\' after')
t.equal(expand('before {foo} after', {
foo: '$0'
}), 'before $0 after')
t.end()
})
@@ -0,0 +1,290 @@
import * as react_jsx_runtime from 'react/jsx-runtime';
import { FocusableElement } from '@react-types/shared';
import React__default, { ReactNode, RefObject } from 'react';
import { MultiSelectState, MultiSelectProps } from '@heroui/use-aria-multiselect';
interface AriaHiddenSelectProps {
/**
* Describes the type of autocomplete functionality the input should provide if any. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefautocomplete).
*/
autoComplete?: string;
/** The text label for the select. */
label?: ReactNode;
/** HTML form input name. */
name?: string;
/** Sets the disabled state of the select and input. */
isDisabled?: boolean;
/** Whether the select is required. */
isRequired?: boolean;
}
type NativeHTMLSelectProps = Omit<React__default.SelectHTMLAttributes<HTMLSelectElement>, keyof AriaHiddenSelectProps>;
type CombinedAriaSelectProps = NativeHTMLSelectProps & AriaHiddenSelectProps;
interface HiddenSelectProps<T> extends CombinedAriaSelectProps {
/** State for the select. */
state: MultiSelectState<T>;
/** The selection mode for the select. */
selectionMode: MultiSelectProps<T>["selectionMode"];
/** A ref to the trigger element. */
triggerRef: RefObject<FocusableElement>;
/** A ref to the hidden `<select>` element. */
selectRef?: RefObject<HTMLSelectElement>;
}
interface AriaHiddenSelectOptions<T> extends CombinedAriaSelectProps {
/** A ref to the hidden `<select>` element. */
selectRef?: RefObject<HTMLSelectElement>;
/** The selection mode for the select. */
selectionMode: MultiSelectProps<T>["selectionMode"];
}
/**
* Provides the behavior and accessibility implementation for a hidden `<select>` element, which
* can be used in combination with `useSelect` to support browser form autofill, mobile form
* navigation, and native HTML form submission.
*/
declare function useHiddenSelect<T>(props: AriaHiddenSelectOptions<T>, state: MultiSelectState<T>, triggerRef: RefObject<FocusableElement>): {
containerProps: {
"aria-hidden": boolean;
"data-a11y-ignore": string;
id?: string | undefined;
role?: React__default.AriaRole | undefined;
tabIndex?: number | undefined;
style?: React__default.CSSProperties | undefined;
className?: string | undefined;
'aria-activedescendant'?: string | undefined;
'aria-atomic'?: (boolean | "true" | "false") | undefined;
'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
'aria-busy'?: (boolean | "true" | "false") | undefined;
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
'aria-colcount'?: number | undefined;
'aria-colindex'?: number | undefined;
'aria-colspan'?: number | undefined;
'aria-controls'?: string | undefined;
'aria-current'?: boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time" | undefined;
'aria-describedby'?: string | undefined;
'aria-details'?: string | undefined;
'aria-disabled'?: (boolean | "true" | "false") | undefined;
'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
'aria-errormessage'?: string | undefined;
'aria-expanded'?: (boolean | "true" | "false") | undefined;
'aria-flowto'?: string | undefined;
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
'aria-haspopup'?: boolean | "dialog" | "grid" | "listbox" | "menu" | "tree" | "true" | "false" | undefined;
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
'aria-keyshortcuts'?: string | undefined;
'aria-label'?: string | undefined;
'aria-labelledby'?: string | undefined;
'aria-level'?: number | undefined;
'aria-live'?: "off" | "assertive" | "polite" | undefined;
'aria-modal'?: (boolean | "true" | "false") | undefined;
'aria-multiline'?: (boolean | "true" | "false") | undefined;
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
'aria-orientation'?: "horizontal" | "vertical" | undefined;
'aria-owns'?: string | undefined;
'aria-placeholder'?: string | undefined;
'aria-posinset'?: number | undefined;
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
'aria-readonly'?: (boolean | "true" | "false") | undefined;
'aria-relevant'?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
'aria-required'?: (boolean | "true" | "false") | undefined;
'aria-roledescription'?: string | undefined;
'aria-rowcount'?: number | undefined;
'aria-rowindex'?: number | undefined;
'aria-rowspan'?: number | undefined;
'aria-selected'?: (boolean | "true" | "false") | undefined;
'aria-setsize'?: number | undefined;
'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
'aria-valuemax'?: number | undefined;
'aria-valuemin'?: number | undefined;
'aria-valuenow'?: number | undefined;
'aria-valuetext'?: string | undefined;
children?: React__default.ReactNode;
dangerouslySetInnerHTML?: {
__html: string | TrustedHTML;
} | undefined;
onCopy?: React__default.ClipboardEventHandler<FocusableElement> | undefined;
onCopyCapture?: React__default.ClipboardEventHandler<FocusableElement> | undefined;
onCut?: React__default.ClipboardEventHandler<FocusableElement> | undefined;
onCutCapture?: React__default.ClipboardEventHandler<FocusableElement> | undefined;
onPaste?: React__default.ClipboardEventHandler<FocusableElement> | undefined;
onPasteCapture?: React__default.ClipboardEventHandler<FocusableElement> | undefined;
onCompositionEnd?: React__default.CompositionEventHandler<FocusableElement> | undefined;
onCompositionEndCapture?: React__default.CompositionEventHandler<FocusableElement> | undefined;
onCompositionStart?: React__default.CompositionEventHandler<FocusableElement> | undefined;
onCompositionStartCapture?: React__default.CompositionEventHandler<FocusableElement> | undefined;
onCompositionUpdate?: React__default.CompositionEventHandler<FocusableElement> | undefined;
onCompositionUpdateCapture?: React__default.CompositionEventHandler<FocusableElement> | undefined;
onFocus?: React__default.FocusEventHandler<FocusableElement> | undefined;
onFocusCapture?: React__default.FocusEventHandler<FocusableElement> | undefined;
onBlur?: React__default.FocusEventHandler<FocusableElement> | undefined;
onBlurCapture?: React__default.FocusEventHandler<FocusableElement> | undefined;
onChange?: React__default.FormEventHandler<FocusableElement> | undefined;
onChangeCapture?: React__default.FormEventHandler<FocusableElement> | undefined;
onBeforeInput?: React__default.FormEventHandler<FocusableElement> | undefined;
onBeforeInputCapture?: React__default.FormEventHandler<FocusableElement> | undefined;
onInput?: React__default.FormEventHandler<FocusableElement> | undefined;
onInputCapture?: React__default.FormEventHandler<FocusableElement> | undefined;
onReset?: React__default.FormEventHandler<FocusableElement> | undefined;
onResetCapture?: React__default.FormEventHandler<FocusableElement> | undefined;
onSubmit?: React__default.FormEventHandler<FocusableElement> | undefined;
onSubmitCapture?: React__default.FormEventHandler<FocusableElement> | undefined;
onInvalid?: React__default.FormEventHandler<FocusableElement> | undefined;
onInvalidCapture?: React__default.FormEventHandler<FocusableElement> | undefined;
onLoad?: React__default.ReactEventHandler<FocusableElement> | undefined;
onLoadCapture?: React__default.ReactEventHandler<FocusableElement> | undefined;
onError?: React__default.ReactEventHandler<FocusableElement> | undefined;
onErrorCapture?: React__default.ReactEventHandler<FocusableElement> | undefined;
onKeyDown?: React__default.KeyboardEventHandler<FocusableElement> | undefined;
onKeyDownCapture?: React__default.KeyboardEventHandler<FocusableElement> | undefined;
onKeyPress?: React__default.KeyboardEventHandler<FocusableElement> | undefined;
onKeyPressCapture?: React__default.KeyboardEventHandler<FocusableElement> | undefined;
onKeyUp?: React__default.KeyboardEventHandler<FocusableElement> | undefined;
onKeyUpCapture?: React__default.KeyboardEventHandler<FocusableElement> | undefined;
onAbort?: React__default.ReactEventHandler<FocusableElement> | undefined;
onAbortCapture?: React__default.ReactEventHandler<FocusableElement> | undefined;
onCanPlay?: React__default.ReactEventHandler<FocusableElement> | undefined;
onCanPlayCapture?: React__default.ReactEventHandler<FocusableElement> | undefined;
onCanPlayThrough?: React__default.ReactEventHandler<FocusableElement> | undefined;
onCanPlayThroughCapture?: React__default.ReactEventHandler<FocusableElement> | undefined;
onDurationChange?: React__default.ReactEventHandler<FocusableElement> | undefined;
onDurationChangeCapture?: React__default.ReactEventHandler<FocusableElement> | undefined;
onEmptied?: React__default.ReactEventHandler<FocusableElement> | undefined;
onEmptiedCapture?: React__default.ReactEventHandler<FocusableElement> | undefined;
onEncrypted?: React__default.ReactEventHandler<FocusableElement> | undefined;
onEncryptedCapture?: React__default.ReactEventHandler<FocusableElement> | undefined;
onEnded?: React__default.ReactEventHandler<FocusableElement> | undefined;
onEndedCapture?: React__default.ReactEventHandler<FocusableElement> | undefined;
onLoadedData?: React__default.ReactEventHandler<FocusableElement> | undefined;
onLoadedDataCapture?: React__default.ReactEventHandler<FocusableElement> | undefined;
onLoadedMetadata?: React__default.ReactEventHandler<FocusableElement> | undefined;
onLoadedMetadataCapture?: React__default.ReactEventHandler<FocusableElement> | undefined;
onLoadStart?: React__default.ReactEventHandler<FocusableElement> | undefined;
onLoadStartCapture?: React__default.ReactEventHandler<FocusableElement> | undefined;
onPause?: React__default.ReactEventHandler<FocusableElement> | undefined;
onPauseCapture?: React__default.ReactEventHandler<FocusableElement> | undefined;
onPlay?: React__default.ReactEventHandler<FocusableElement> | undefined;
onPlayCapture?: React__default.ReactEventHandler<FocusableElement> | undefined;
onPlaying?: React__default.ReactEventHandler<FocusableElement> | undefined;
onPlayingCapture?: React__default.ReactEventHandler<FocusableElement> | undefined;
onProgress?: React__default.ReactEventHandler<FocusableElement> | undefined;
onProgressCapture?: React__default.ReactEventHandler<FocusableElement> | undefined;
onRateChange?: React__default.ReactEventHandler<FocusableElement> | undefined;
onRateChangeCapture?: React__default.ReactEventHandler<FocusableElement> | undefined;
onResize?: React__default.ReactEventHandler<FocusableElement> | undefined;
onResizeCapture?: React__default.ReactEventHandler<FocusableElement> | undefined;
onSeeked?: React__default.ReactEventHandler<FocusableElement> | undefined;
onSeekedCapture?: React__default.ReactEventHandler<FocusableElement> | undefined;
onSeeking?: React__default.ReactEventHandler<FocusableElement> | undefined;
onSeekingCapture?: React__default.ReactEventHandler<FocusableElement> | undefined;
onStalled?: React__default.ReactEventHandler<FocusableElement> | undefined;
onStalledCapture?: React__default.ReactEventHandler<FocusableElement> | undefined;
onSuspend?: React__default.ReactEventHandler<FocusableElement> | undefined;
onSuspendCapture?: React__default.ReactEventHandler<FocusableElement> | undefined;
onTimeUpdate?: React__default.ReactEventHandler<FocusableElement> | undefined;
onTimeUpdateCapture?: React__default.ReactEventHandler<FocusableElement> | undefined;
onVolumeChange?: React__default.ReactEventHandler<FocusableElement> | undefined;
onVolumeChangeCapture?: React__default.ReactEventHandler<FocusableElement> | undefined;
onWaiting?: React__default.ReactEventHandler<FocusableElement> | undefined;
onWaitingCapture?: React__default.ReactEventHandler<FocusableElement> | undefined;
onAuxClick?: React__default.MouseEventHandler<FocusableElement> | undefined;
onAuxClickCapture?: React__default.MouseEventHandler<FocusableElement> | undefined;
onClick?: React__default.MouseEventHandler<FocusableElement> | undefined;
onClickCapture?: React__default.MouseEventHandler<FocusableElement> | undefined;
onContextMenu?: React__default.MouseEventHandler<FocusableElement> | undefined;
onContextMenuCapture?: React__default.MouseEventHandler<FocusableElement> | undefined;
onDoubleClick?: React__default.MouseEventHandler<FocusableElement> | undefined;
onDoubleClickCapture?: React__default.MouseEventHandler<FocusableElement> | undefined;
onDrag?: React__default.DragEventHandler<FocusableElement> | undefined;
onDragCapture?: React__default.DragEventHandler<FocusableElement> | undefined;
onDragEnd?: React__default.DragEventHandler<FocusableElement> | undefined;
onDragEndCapture?: React__default.DragEventHandler<FocusableElement> | undefined;
onDragEnter?: React__default.DragEventHandler<FocusableElement> | undefined;
onDragEnterCapture?: React__default.DragEventHandler<FocusableElement> | undefined;
onDragExit?: React__default.DragEventHandler<FocusableElement> | undefined;
onDragExitCapture?: React__default.DragEventHandler<FocusableElement> | undefined;
onDragLeave?: React__default.DragEventHandler<FocusableElement> | undefined;
onDragLeaveCapture?: React__default.DragEventHandler<FocusableElement> | undefined;
onDragOver?: React__default.DragEventHandler<FocusableElement> | undefined;
onDragOverCapture?: React__default.DragEventHandler<FocusableElement> | undefined;
onDragStart?: React__default.DragEventHandler<FocusableElement> | undefined;
onDragStartCapture?: React__default.DragEventHandler<FocusableElement> | undefined;
onDrop?: React__default.DragEventHandler<FocusableElement> | undefined;
onDropCapture?: React__default.DragEventHandler<FocusableElement> | undefined;
onMouseDown?: React__default.MouseEventHandler<FocusableElement> | undefined;
onMouseDownCapture?: React__default.MouseEventHandler<FocusableElement> | undefined;
onMouseEnter?: React__default.MouseEventHandler<FocusableElement> | undefined;
onMouseLeave?: React__default.MouseEventHandler<FocusableElement> | undefined;
onMouseMove?: React__default.MouseEventHandler<FocusableElement> | undefined;
onMouseMoveCapture?: React__default.MouseEventHandler<FocusableElement> | undefined;
onMouseOut?: React__default.MouseEventHandler<FocusableElement> | undefined;
onMouseOutCapture?: React__default.MouseEventHandler<FocusableElement> | undefined;
onMouseOver?: React__default.MouseEventHandler<FocusableElement> | undefined;
onMouseOverCapture?: React__default.MouseEventHandler<FocusableElement> | undefined;
onMouseUp?: React__default.MouseEventHandler<FocusableElement> | undefined;
onMouseUpCapture?: React__default.MouseEventHandler<FocusableElement> | undefined;
onSelect?: React__default.ReactEventHandler<FocusableElement> | undefined;
onSelectCapture?: React__default.ReactEventHandler<FocusableElement> | undefined;
onTouchCancel?: React__default.TouchEventHandler<FocusableElement> | undefined;
onTouchCancelCapture?: React__default.TouchEventHandler<FocusableElement> | undefined;
onTouchEnd?: React__default.TouchEventHandler<FocusableElement> | undefined;
onTouchEndCapture?: React__default.TouchEventHandler<FocusableElement> | undefined;
onTouchMove?: React__default.TouchEventHandler<FocusableElement> | undefined;
onTouchMoveCapture?: React__default.TouchEventHandler<FocusableElement> | undefined;
onTouchStart?: React__default.TouchEventHandler<FocusableElement> | undefined;
onTouchStartCapture?: React__default.TouchEventHandler<FocusableElement> | undefined;
onPointerDown?: React__default.PointerEventHandler<FocusableElement> | undefined;
onPointerDownCapture?: React__default.PointerEventHandler<FocusableElement> | undefined;
onPointerMove?: React__default.PointerEventHandler<FocusableElement> | undefined;
onPointerMoveCapture?: React__default.PointerEventHandler<FocusableElement> | undefined;
onPointerUp?: React__default.PointerEventHandler<FocusableElement> | undefined;
onPointerUpCapture?: React__default.PointerEventHandler<FocusableElement> | undefined;
onPointerCancel?: React__default.PointerEventHandler<FocusableElement> | undefined;
onPointerCancelCapture?: React__default.PointerEventHandler<FocusableElement> | undefined;
onPointerEnter?: React__default.PointerEventHandler<FocusableElement> | undefined;
onPointerEnterCapture?: React__default.PointerEventHandler<FocusableElement> | undefined;
onPointerLeave?: React__default.PointerEventHandler<FocusableElement> | undefined;
onPointerLeaveCapture?: React__default.PointerEventHandler<FocusableElement> | undefined;
onPointerOver?: React__default.PointerEventHandler<FocusableElement> | undefined;
onPointerOverCapture?: React__default.PointerEventHandler<FocusableElement> | undefined;
onPointerOut?: React__default.PointerEventHandler<FocusableElement> | undefined;
onPointerOutCapture?: React__default.PointerEventHandler<FocusableElement> | undefined;
onGotPointerCapture?: React__default.PointerEventHandler<FocusableElement> | undefined;
onGotPointerCaptureCapture?: React__default.PointerEventHandler<FocusableElement> | undefined;
onLostPointerCapture?: React__default.PointerEventHandler<FocusableElement> | undefined;
onLostPointerCaptureCapture?: React__default.PointerEventHandler<FocusableElement> | undefined;
onScroll?: React__default.UIEventHandler<FocusableElement> | undefined;
onScrollCapture?: React__default.UIEventHandler<FocusableElement> | undefined;
onWheel?: React__default.WheelEventHandler<FocusableElement> | undefined;
onWheelCapture?: React__default.WheelEventHandler<FocusableElement> | undefined;
onAnimationStart?: React__default.AnimationEventHandler<FocusableElement> | undefined;
onAnimationStartCapture?: React__default.AnimationEventHandler<FocusableElement> | undefined;
onAnimationEnd?: React__default.AnimationEventHandler<FocusableElement> | undefined;
onAnimationEndCapture?: React__default.AnimationEventHandler<FocusableElement> | undefined;
onAnimationIteration?: React__default.AnimationEventHandler<FocusableElement> | undefined;
onAnimationIterationCapture?: React__default.AnimationEventHandler<FocusableElement> | undefined;
onTransitionEnd?: React__default.TransitionEventHandler<FocusableElement> | undefined;
onTransitionEndCapture?: React__default.TransitionEventHandler<FocusableElement> | undefined;
};
inputProps: {
style: {
display: string;
};
};
selectProps: {
autoComplete: string | undefined;
disabled: boolean | undefined;
"aria-invalid": true | undefined;
"aria-required": true | undefined;
required: boolean | undefined;
name: string | undefined;
tabIndex: number;
value: React__default.Key | string[];
multiple: boolean;
onChange: (e: React__default.ChangeEvent<HTMLSelectElement>) => void;
};
};
/**
* Renders a hidden native `<select>` element, which can be used to support browser
* form autofill, mobile form navigation, and native form submission.
*/
declare function HiddenSelect<T>(props: HiddenSelectProps<T>): react_jsx_runtime.JSX.Element | null;
export { AriaHiddenSelectOptions, AriaHiddenSelectProps, HiddenSelect, HiddenSelectProps, useHiddenSelect };
@@ -0,0 +1,49 @@
;(function (root, factory, undef) {
if (typeof exports === "object") {
// CommonJS
module.exports = exports = factory(require("./core"), require("./cipher-core"));
}
else if (typeof define === "function" && define.amd) {
// AMD
define(["./core", "./cipher-core"], factory);
}
else {
// Global (browser)
factory(root.CryptoJS);
}
}(this, function (CryptoJS) {
/**
* ANSI X.923 padding strategy.
*/
CryptoJS.pad.AnsiX923 = {
pad: function (data, blockSize) {
// Shortcuts
var dataSigBytes = data.sigBytes;
var blockSizeBytes = blockSize * 4;
// Count padding bytes
var nPaddingBytes = blockSizeBytes - dataSigBytes % blockSizeBytes;
// Compute last byte position
var lastBytePos = dataSigBytes + nPaddingBytes - 1;
// Pad
data.clamp();
data.words[lastBytePos >>> 2] |= nPaddingBytes << (24 - (lastBytePos % 4) * 8);
data.sigBytes += nPaddingBytes;
},
unpad: function (data) {
// Get number of padding bytes from last byte
var nPaddingBytes = data.words[(data.sigBytes - 1) >>> 2] & 0xff;
// Remove padding
data.sigBytes -= nPaddingBytes;
}
};
return CryptoJS.pad.Ansix923;
}));
@@ -0,0 +1,21 @@
MIT License
Copyright (c) Hiroki Osame <hiroki.osame@gmail.com>
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,62 @@
# side-channel-weakmap <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
[![github actions][actions-image]][actions-url]
[![coverage][codecov-image]][codecov-url]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]
[![npm badge][npm-badge-png]][package-url]
Store information about any JS value in a side channel. Uses WeakMap if available.
Warning: this implementation will leak memory until you `delete` the `key`.
Use [`side-channel`](https://npmjs.com/side-channel) for the best available strategy.
## Getting started
```sh
npm install --save side-channel-weakmap
```
## Usage/Examples
```js
const assert = require('assert');
const getSideChannelList = require('side-channel-weakmap');
const channel = getSideChannelList();
const key = {};
assert.equal(channel.has(key), false);
assert.throws(() => channel.assert(key), TypeError);
channel.set(key, 42);
channel.assert(key); // does not throw
assert.equal(channel.has(key), true);
assert.equal(channel.get(key), 42);
channel.delete(key);
assert.equal(channel.has(key), false);
assert.throws(() => channel.assert(key), TypeError);
```
## Tests
Clone the repo, `npm install`, and run `npm test`
[package-url]: https://npmjs.org/package/side-channel-weakmap
[npm-version-svg]: https://versionbadg.es/ljharb/side-channel-weakmap.svg
[deps-svg]: https://david-dm.org/ljharb/side-channel-weakmap.svg
[deps-url]: https://david-dm.org/ljharb/side-channel-weakmap
[dev-deps-svg]: https://david-dm.org/ljharb/side-channel-weakmap/dev-status.svg
[dev-deps-url]: https://david-dm.org/ljharb/side-channel-weakmap#info=devDependencies
[npm-badge-png]: https://nodei.co/npm/side-channel-weakmap.png?downloads=true&stars=true
[license-image]: https://img.shields.io/npm/l/side-channel-weakmap.svg
[license-url]: LICENSE
[downloads-image]: https://img.shields.io/npm/dm/side-channel-weakmap.svg
[downloads-url]: https://npm-stat.com/charts.html?package=side-channel-weakmap
[codecov-image]: https://codecov.io/gh/ljharb/side-channel-weakmap/branch/main/graphs/badge.svg
[codecov-url]: https://app.codecov.io/gh/ljharb/side-channel-weakmap/
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/side-channel-weakmap
[actions-url]: https://github.com/ljharb/side-channel-weakmap/actions
@@ -0,0 +1 @@
{"version":3,"file":"updateMetadataOptional.spec.d.ts","sourceRoot":"","sources":["../../../../src/metadata/actions/updateMetadataOptional.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,78 @@
{
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me)",
"name": "minimatch",
"description": "a glob matcher in javascript",
"version": "10.1.1",
"repository": {
"type": "git",
"url": "git@github.com:isaacs/minimatch"
},
"main": "./dist/commonjs/index.js",
"types": "./dist/commonjs/index.d.ts",
"exports": {
"./package.json": "./package.json",
".": {
"import": {
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
},
"require": {
"types": "./dist/commonjs/index.d.ts",
"default": "./dist/commonjs/index.js"
}
}
},
"files": [
"dist"
],
"scripts": {
"preversion": "npm test",
"postversion": "npm publish",
"prepublishOnly": "git push origin --follow-tags",
"prepare": "tshy",
"pretest": "npm run prepare",
"presnap": "npm run prepare",
"test": "tap",
"snap": "tap",
"format": "prettier --write . --log-level warn",
"benchmark": "node benchmark/index.js",
"typedoc": "typedoc --tsconfig .tshy/esm.json ./src/*.ts"
},
"prettier": {
"semi": false,
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"singleQuote": true,
"jsxSingleQuote": false,
"bracketSameLine": true,
"arrowParens": "avoid",
"endOfLine": "lf"
},
"engines": {
"node": "20 || >=22"
},
"devDependencies": {
"@types/node": "^24.0.0",
"mkdirp": "^3.0.1",
"prettier": "^3.6.2",
"tap": "^21.1.0",
"tshy": "^3.0.2",
"typedoc": "^0.28.5"
},
"funding": {
"url": "https://github.com/sponsors/isaacs"
},
"license": "BlueOak-1.0.0",
"tshy": {
"exports": {
"./package.json": "./package.json",
".": "./src/index.ts"
}
},
"type": "module",
"module": "./dist/esm/index.js",
"dependencies": {
"@isaacs/brace-expansion": "^5.0.0"
}
}
@@ -0,0 +1 @@
!function(e,a){"object"==typeof exports&&"undefined"!=typeof module?module.exports=a(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],a):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_hr=a(e.dayjs)}(this,(function(e){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=a(e),s="siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),n="siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_"),_=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/,o=function(e,a){return _.test(a)?s[e.month()]:n[e.month()]};o.s=n,o.f=s;var i={name:"hr",weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),months:o,monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},relativeTime:{future:"za %s",past:"prije %s",s:"sekunda",m:"minuta",mm:"%d minuta",h:"sat",hh:"%d sati",d:"dan",dd:"%d dana",M:"mjesec",MM:"%d mjeseci",y:"godina",yy:"%d godine"},ordinal:function(e){return e+"."}};return t.default.locale(i,null,!0),i}));
@@ -0,0 +1,89 @@
"use client";
// src/use-aria-popover.ts
import { useEffect } from "react";
import {
useOverlay,
useOverlayPosition
} from "@react-aria/overlays";
import {
ariaHideOutside,
toReactAriaPlacement,
ariaShouldCloseOnInteractOutside
} from "@heroui/aria-utils";
import { mergeProps } from "@react-aria/utils";
import { useSafeLayoutEffect } from "@heroui/use-safe-layout-effect";
function useReactAriaPopover(props, state) {
const {
triggerRef,
popoverRef,
showArrow,
offset = 7,
crossOffset = 0,
scrollRef,
shouldFlip,
boundaryElement,
isDismissable = true,
shouldCloseOnBlur = true,
shouldCloseOnScroll = true,
placement: placementProp = "top",
containerPadding,
shouldCloseOnInteractOutside,
isNonModal: isNonModalProp,
isKeyboardDismissDisabled,
updatePositionDeps = [],
...otherProps
} = props;
const isNonModal = isNonModalProp != null ? isNonModalProp : true;
const { overlayProps, underlayProps } = useOverlay(
{
isOpen: state.isOpen,
onClose: state.close,
shouldCloseOnBlur,
isDismissable,
isKeyboardDismissDisabled,
shouldCloseOnInteractOutside: shouldCloseOnInteractOutside ? shouldCloseOnInteractOutside : (element) => ariaShouldCloseOnInteractOutside(element, triggerRef, state)
},
popoverRef
);
const {
overlayProps: positionProps,
arrowProps,
placement,
updatePosition
} = useOverlayPosition({
...otherProps,
shouldFlip,
crossOffset,
targetRef: triggerRef,
overlayRef: popoverRef,
isOpen: state.isOpen,
scrollRef,
boundaryElement,
containerPadding,
placement: toReactAriaPlacement(placementProp),
offset: showArrow ? offset + 3 : offset,
onClose: isNonModal && shouldCloseOnScroll ? state.close : () => {
}
});
useSafeLayoutEffect(() => {
if (!updatePositionDeps.length)
return;
updatePosition();
}, updatePositionDeps);
useEffect(() => {
if (state.isOpen && !isNonModal && popoverRef.current) {
return ariaHideOutside([popoverRef.current]);
}
}, [isNonModal, state.isOpen, popoverRef]);
return {
popoverProps: mergeProps(overlayProps, positionProps),
arrowProps,
underlayProps,
placement
};
}
export {
useReactAriaPopover
};
@@ -0,0 +1,52 @@
import {PressResponderContext as $ae1eeba8b9eafd08$export$5165eccb35aaadb5} from "./context.module.js";
import {useObjectRef as $87RPk$useObjectRef, mergeProps as $87RPk$mergeProps, useSyncRef as $87RPk$useSyncRef} from "@react-aria/utils";
import $87RPk$react, {useRef as $87RPk$useRef, useContext as $87RPk$useContext, useEffect as $87RPk$useEffect, useMemo as $87RPk$useMemo} 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.
*/
const $f1ab8c75478c6f73$export$3351871ee4b288b8 = /*#__PURE__*/ (0, $87RPk$react).forwardRef(({ children: children, ...props }, ref)=>{
let isRegistered = (0, $87RPk$useRef)(false);
let prevContext = (0, $87RPk$useContext)((0, $ae1eeba8b9eafd08$export$5165eccb35aaadb5));
ref = (0, $87RPk$useObjectRef)(ref || (prevContext === null || prevContext === void 0 ? void 0 : prevContext.ref));
let context = (0, $87RPk$mergeProps)(prevContext || {}, {
...props,
ref: ref,
register () {
isRegistered.current = true;
if (prevContext) prevContext.register();
}
});
(0, $87RPk$useSyncRef)(prevContext, ref);
(0, $87RPk$useEffect)(()=>{
if (!isRegistered.current) {
if (process.env.NODE_ENV !== 'production') console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component.");
isRegistered.current = true; // only warn once in strict mode.
}
}, []);
return /*#__PURE__*/ (0, $87RPk$react).createElement((0, $ae1eeba8b9eafd08$export$5165eccb35aaadb5).Provider, {
value: context
}, children);
});
function $f1ab8c75478c6f73$export$cf75428e0b9ed1ea({ children: children }) {
let context = (0, $87RPk$useMemo)(()=>({
register: ()=>{}
}), []);
return /*#__PURE__*/ (0, $87RPk$react).createElement((0, $ae1eeba8b9eafd08$export$5165eccb35aaadb5).Provider, {
value: context
}, children);
}
export {$f1ab8c75478c6f73$export$3351871ee4b288b8 as PressResponder, $f1ab8c75478c6f73$export$cf75428e0b9ed1ea as ClearPressResponder};
//# sourceMappingURL=PressResponder.module.js.map
@@ -0,0 +1,118 @@
# sharp
<img src="https://sharp.pixelplumbing.com/sharp-logo.svg" width="160" height="160" alt="sharp logo" align="right">
The typical use case for this high speed Node-API module
is to convert large images in common formats to
smaller, web-friendly JPEG, PNG, WebP, GIF and AVIF images of varying dimensions.
It can be used with all JavaScript runtimes
that provide support for Node-API v9, including
Node.js (^18.17.0 or >= 20.3.0), Deno and Bun.
Resizing an image is typically 4x-5x faster than using the
quickest ImageMagick and GraphicsMagick settings
due to its use of [libvips](https://github.com/libvips/libvips).
Colour spaces, embedded ICC profiles and alpha transparency channels are all handled correctly.
Lanczos resampling ensures quality is not sacrificed for speed.
As well as image resizing, operations such as
rotation, extraction, compositing and gamma correction are available.
Most modern macOS, Windows and Linux systems
do not require any additional install or runtime dependencies.
## Documentation
Visit [sharp.pixelplumbing.com](https://sharp.pixelplumbing.com/) for complete
[installation instructions](https://sharp.pixelplumbing.com/install),
[API documentation](https://sharp.pixelplumbing.com/api-constructor),
[benchmark tests](https://sharp.pixelplumbing.com/performance) and
[changelog](https://sharp.pixelplumbing.com/changelog).
## Examples
```sh
npm install sharp
```
```javascript
const sharp = require('sharp');
```
### Callback
```javascript
sharp(inputBuffer)
.resize(320, 240)
.toFile('output.webp', (err, info) => { ... });
```
### Promise
```javascript
sharp('input.jpg')
.rotate()
.resize(200)
.jpeg({ mozjpeg: true })
.toBuffer()
.then( data => { ... })
.catch( err => { ... });
```
### Async/await
```javascript
const semiTransparentRedPng = await sharp({
create: {
width: 48,
height: 48,
channels: 4,
background: { r: 255, g: 0, b: 0, alpha: 0.5 }
}
})
.png()
.toBuffer();
```
### Stream
```javascript
const roundedCorners = Buffer.from(
'<svg><rect x="0" y="0" width="200" height="200" rx="50" ry="50"/></svg>'
);
const roundedCornerResizer =
sharp()
.resize(200, 200)
.composite([{
input: roundedCorners,
blend: 'dest-in'
}])
.png();
readableStream
.pipe(roundedCornerResizer)
.pipe(writableStream);
```
## Contributing
A [guide for contributors](https://github.com/lovell/sharp/blob/main/.github/CONTRIBUTING.md)
covers reporting bugs, requesting features and submitting code changes.
## Licensing
Copyright 2013 Lovell Fuller and others.
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
[https://www.apache.org/licenses/LICENSE-2.0](https://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.
@@ -0,0 +1 @@
{"name":"eslint-plugin-es","version":"3.0.1","requiresBuild":false,"files":{"LICENSE":{"checkedAt":1794532118216,"integrity":"sha512-mU2zG37iToppUpJAeVzAygm/RjK7uiIHsBwn5ymHYdwCyKfYX1/ZNQTRdjEbLPtQXuiXKulo9U8sJqWe6Y7Iug==","mode":438,"size":1071},"lib/index.js":{"checkedAt":1794532118216,"integrity":"sha512-Duy7pPhmOE1S4rJJ1dMtp5yBfoFtshM9C0a5qqSB+Xpw+uJgRvp9hCl3fpPKgA1RgkihHkc/dzTn+qeHRPIvYg==","mode":438,"size":12933},"lib/rules/no-accessor-properties.js":{"checkedAt":1794532118216,"integrity":"sha512-8JP+65xWzOfMcVBrzJj2LvD0cuPGJQiQtCwHzGspUcUdzyNx/c55sj/9lbymkt1wE3ATHAIXkxotL882UzGEHQ==","mode":438,"size":892},"lib/rules/no-array-from.js":{"checkedAt":1794532118216,"integrity":"sha512-SDudLiSNw9cgDDcHHIU2OMBGENfoYtjVVCm0YjnQAldWsXdrYLJKx7HZWiqw7/Kj0tKOiO2I0li88nb2SY7HXQ==","mode":438,"size":1247},"lib/rules/no-array-isarray.js":{"checkedAt":1794532118217,"integrity":"sha512-MXPxELDrnQKQmnuEW6agJ3+W/WsztqitFx/nQi5zGlk1y3srB6ZvYeQ7/AJPRpylRTMO7CSQT5VV9EB2BtF2BA==","mode":438,"size":1250},"lib/rules/no-array-of.js":{"checkedAt":1794532118217,"integrity":"sha512-V0V26FyyWCn+ZXrKBKvJfobIk8/Hug7pcVYgfj536g5895RV0Q2Q9bxu4n4VW1mip/HUtS0KbXP/awSIBpvGlg==","mode":438,"size":1241},"lib/rules/no-arrow-functions.js":{"checkedAt":1794532118217,"integrity":"sha512-BVwLWSQysvk6TTBtQLDk19a1W6sZXPdl//dtw3BOpj4RTyWQ55frwsVB5D8Wt4rNXWqUWmhT6Vjmv4lmYpOBdw==","mode":438,"size":4245},"lib/rules/no-async-functions.js":{"checkedAt":1794532118217,"integrity":"sha512-nZ7FIBaxiJ9f6a81iViSrtsJCJ5jhV7p/xtT4SeQbE7l83n3We0YzAl06LNgi2uHXuEAABheHWAVXB8c0xpwUg==","mode":438,"size":799},"lib/rules/no-async-iteration.js":{"checkedAt":1794532118217,"integrity":"sha512-X1Emkk+k7Vgq7A1iXMl4ChfGTbglw4dz2xsHjTNEvZ6xYod1TRhEj06RAcIc7HlvABpj5biKbOEZFogF6etyTA==","mode":438,"size":919},"lib/rules/no-atomics.js":{"checkedAt":1794532118217,"integrity":"sha512-u2XEzO2CiiSk1FOOntiXKRcgih8dRDktarigOql8wnLAcGlqh5/TX+Hm5Gc3BlsVaq35coLTY3cib3sKVNHSYg==","mode":438,"size":1186},"lib/rules/no-bigint.js":{"checkedAt":1794532118217,"integrity":"sha512-ipL9wdQgcmPPqX7ihcC1jUWxZH7/eTnf1tf5J9+L1nu8MhMUt9FmTcInFFOgZVBNNbf8l29rtUeRD97Q9oPQwQ==","mode":438,"size":1425},"lib/rules/no-binary-numeric-literals.js":{"checkedAt":1794532118217,"integrity":"sha512-BNvdwLXCGFCeeQ02Jgk7+jsABbdsFdKhpkYXEhNPqui4ijaLzIHH9UpVtNiTAT/QAX6ALRTjdjID4MA7l4mRcA==","mode":438,"size":912},"lib/rules/no-block-scoped-functions.js":{"checkedAt":1794532118218,"integrity":"sha512-fYcmeiOZQ0doq+Qx5LvymBQIDKMONLUdOoWCRnKc1/wiYgPvzWQD/WgYHFZP6aw68Qif8qFJhNKeaFoht08B9A==","mode":438,"size":841},"lib/rules/no-block-scoped-variables.js":{"checkedAt":1794532118218,"integrity":"sha512-1sx3PjdKfpP9Ax+8CuTft0DFcrTi4TAi+XfOZQD2wU2GuhgySoUjwZAqk1MsaL7oWspTx8u36/fc7v36dYxJmA==","mode":438,"size":883},"lib/rules/no-classes.js":{"checkedAt":1794532118218,"integrity":"sha512-KUaU+DZS0TQKcJ8cLaYX0gyNJG+M/4RTRFgP0gubc+vFAjUP9uAyPvslNmrfvM0OtYXQaW54Ks9zub5fZi6ZlA==","mode":438,"size":785},"lib/rules/no-computed-properties.js":{"checkedAt":1794532118218,"integrity":"sha512-pssnmtHYk3AT/6RWJKqLkmUywqhg4dn5AbDDJeLoYr/af6MCTxDy0p3r9osEH4oV+SrP0CzAI1bUgciy27jp2w==","mode":438,"size":817},"lib/rules/no-date-now.js":{"checkedAt":1794532118218,"integrity":"sha512-Jj4SARYRjE7x9IVedpBqfuWV1K7DYcrUJ9Qy8qHHS02NyI/RhjmI6WoayhJS38PpqPZP1o0lIZLnTk9IGGveXQ==","mode":438,"size":1235},"lib/rules/no-default-parameters.js":{"checkedAt":1794532118218,"integrity":"sha512-YHlrtTHTPvdCHwZj6WSitJaoB7nuhQAwGhypQ5EIN3jYgb4HEKoQk6PUIiqflrl8q8EbVmxiXFAKodkp2BBZFw==","mode":438,"size":792},"lib/rules/no-destructuring.js":{"checkedAt":1794532118218,"integrity":"sha512-UR/qZZStNNL3JOMB+t70WGfw3d1SGwbdOHpgbrtXVerKNb4rXwuVdBAntePz/EXvz5mHCpuO582mtuwfiZeLVQ==","mode":438,"size":964},"lib/rules/no-dynamic-import.js":{"checkedAt":1794532118218,"integrity":"sha512-DXUQb+xcZJn2v4ExPyQSL6JyhhUnMuct8QyvEdelQxeS3T1zCGJDbCmQHI8Y21/ZwmXirFYv3mixbmPp40R/tA==","mode":438,"size":769},"lib/rules/no-exponential-operators.js":{"checkedAt":1794532118218,"integrity":"sha512-ysI1XAi9rCrnLrjEHXb2ehGZOcSa/BCF7GmaLigAyJJMAYZaAPw+XY3yb6KrUX07dBTwvoFVpwWnv9CSpPFa2w==","mode":438,"size":871},"lib/rules/no-for-of-loops.js":{"checkedAt":1794532118219,"integrity":"sha512-hgldA3GnGhmqZP1MOmDpPHqbnigyX/26OBP+L7De7lvCQiKUcQZIFcpQ0tH62dK3LeoQUDGIUrlsPA2jxnm9bg==","mode":438,"size":771},"lib/rules/no-generators.js":{"checkedAt":1794532118219,"integrity":"sha512-cqSBWQRWe2y1lMgoNW2JSkIWfML/BWLBOOcNa/T3J7BA2gQb7vdAlfZY5x7vtGCG6uPAkRJxkogDCM2EdQBRYg==","mode":438,"size":806},"lib/rules/no-global-this.js":{"checkedAt":1794532118219,"integrity":"sha512-Fk/u/FS2V8M31dUrVR4KIBGs0zE3vzIzn5P9sG5Zc6fL4YIAoezQSCHO34XpSib5UEA5aoHgC2goN/jCCYfEvA==","mode":438,"size":1201},"lib/rules/no-json-superset.js":{"checkedAt":1794532118219,"integrity":"sha512-uVUNnR8pYv4PLUsPU6ujaD9DXmojI+zTIsSe9J1nxq/U+LLE6GUQbw1b+qOjPkU7g6eyKpHhpx9iofkObtLQkA==","mode":438,"size":1786},"lib/rules/no-json.js":{"checkedAt":1794532118219,"integrity":"sha512-3n48PkBMQS0qDPrtdUKm3HuHoe7scZiy5STvmcFVq9Xf8ukW/e/oynj5OVLine truncated
@@ -0,0 +1,25 @@
/**
* Check if the value is a Promise-like object.
*
* 校验是否是一个 Promise-like 对象
*
* @example
* ```js
* import { isPromiseLike } from 'is-what-type';
*
* isPromiseLike(null); // false
* isPromiseLike(undefined); // false
* isPromiseLike({}); // false
* isPromiseLike(new Promise(() => { })); // true
* isPromiseLike({ then: () => { }, catch: () => { } }); // true
* isPromiseLike({ then: () => { } }); // true
* isPromiseLike({ catch: () => { } }); // false
* isPromiseLike('string'); // false
* isPromiseLike(123); // false
* isPromiseLike(function() {}); // false
* ```
*
* @param value - The value to check
* @returns `true` if the value is a Promise-like object, `false` otherwise
*/
export declare function isPromiseLike<T = unknown>(value: T): value is T;
@@ -0,0 +1 @@
{"parent":null,"pid":28538,"argv":["/Users/dabh/.nvm/versions/node/v16.18.0/bin/node","/Users/dabh/triple-beam/node_modules/.bin/mocha","test.js"],"execArgv":[],"cwd":"/Users/dabh/triple-beam","time":1689003099183,"ppid":28537,"coverageFilename":"/Users/dabh/triple-beam/.nyc_output/c579bf8f-6820-47a5-b2da-a11267eb8435.json","externalId":"","uuid":"c579bf8f-6820-47a5-b2da-a11267eb8435","files":["/Users/dabh/triple-beam/index.js","/Users/dabh/triple-beam/config/index.js","/Users/dabh/triple-beam/config/cli.js","/Users/dabh/triple-beam/config/npm.js","/Users/dabh/triple-beam/config/syslog.js"]}
@@ -0,0 +1,39 @@
{
"name": "type-check",
"version": "0.4.0",
"author": "George Zahariev <z@georgezahariev.com>",
"description": "type-check allows you to check the types of JavaScript values at runtime with a Haskell like type syntax.",
"homepage": "https://github.com/gkz/type-check",
"keywords": [
"type",
"check",
"checking",
"library"
],
"files": [
"lib",
"README.md",
"LICENSE"
],
"main": "./lib/",
"bugs": "https://github.com/gkz/type-check/issues",
"license": "MIT",
"engines": {
"node": ">= 0.8.0"
},
"repository": {
"type": "git",
"url": "git://github.com/gkz/type-check.git"
},
"scripts": {
"test": "make test"
},
"dependencies": {
"prelude-ls": "^1.2.1"
},
"devDependencies": {
"livescript": "^1.6.0",
"mocha": "^7.1.1",
"browserify": "^16.5.1"
}
}
@@ -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","132":"TC 0C 1C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 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","260":"J ZB K D E F A"},E:{"1":"ZB 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","260":"J 2C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z ID NC uC JD OC","260":"F FD GD HD"},G:{"1":"E 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","260":"ZC KD vC"},H:{"260":"hD"},I:{"1":"J I lD vC mD nD","260":"TC iD jD kD"},J:{"1":"A","260":"D"},K:{"1":"B C H NC uC OC","260":"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:2,C:"getComputedStyle",D:true};
@@ -0,0 +1,305 @@
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
#ifndef NAN_STRING_BYTES_H_
#define NAN_STRING_BYTES_H_
// Decodes a v8::Local<v8::String> or Buffer to a raw char*
namespace imp {
using v8::Local;
using v8::Object;
using v8::String;
using v8::Value;
//// Base 64 ////
#define base64_encoded_size(size) ((size + 2 - ((size + 2) % 3)) / 3 * 4)
//// HEX ////
static bool contains_non_ascii_slow(const char* buf, size_t len) {
for (size_t i = 0; i < len; ++i) {
if (buf[i] & 0x80) return true;
}
return false;
}
static bool contains_non_ascii(const char* src, size_t len) {
if (len < 16) {
return contains_non_ascii_slow(src, len);
}
const unsigned bytes_per_word = sizeof(void*);
const unsigned align_mask = bytes_per_word - 1;
const unsigned unaligned = reinterpret_cast<uintptr_t>(src) & align_mask;
if (unaligned > 0) {
const unsigned n = bytes_per_word - unaligned;
if (contains_non_ascii_slow(src, n)) return true;
src += n;
len -= n;
}
#if defined(__x86_64__) || defined(_WIN64)
const uintptr_t mask = 0x8080808080808080ll;
#else
const uintptr_t mask = 0x80808080l;
#endif
const uintptr_t* srcw = reinterpret_cast<const uintptr_t*>(src);
for (size_t i = 0, n = len / bytes_per_word; i < n; ++i) {
if (srcw[i] & mask) return true;
}
const unsigned remainder = len & align_mask;
if (remainder > 0) {
const size_t offset = len - remainder;
if (contains_non_ascii_slow(src + offset, remainder)) return true;
}
return false;
}
static void force_ascii_slow(const char* src, char* dst, size_t len) {
for (size_t i = 0; i < len; ++i) {
dst[i] = src[i] & 0x7f;
}
}
static void force_ascii(const char* src, char* dst, size_t len) {
if (len < 16) {
force_ascii_slow(src, dst, len);
return;
}
const unsigned bytes_per_word = sizeof(void*);
const unsigned align_mask = bytes_per_word - 1;
const unsigned src_unalign = reinterpret_cast<uintptr_t>(src) & align_mask;
const unsigned dst_unalign = reinterpret_cast<uintptr_t>(dst) & align_mask;
if (src_unalign > 0) {
if (src_unalign == dst_unalign) {
const unsigned unalign = bytes_per_word - src_unalign;
force_ascii_slow(src, dst, unalign);
src += unalign;
dst += unalign;
len -= src_unalign;
} else {
force_ascii_slow(src, dst, len);
return;
}
}
#if defined(__x86_64__) || defined(_WIN64)
const uintptr_t mask = ~0x8080808080808080ll;
#else
const uintptr_t mask = ~0x80808080l;
#endif
const uintptr_t* srcw = reinterpret_cast<const uintptr_t*>(src);
uintptr_t* dstw = reinterpret_cast<uintptr_t*>(dst);
for (size_t i = 0, n = len / bytes_per_word; i < n; ++i) {
dstw[i] = srcw[i] & mask;
}
const unsigned remainder = len & align_mask;
if (remainder > 0) {
const size_t offset = len - remainder;
force_ascii_slow(src + offset, dst + offset, remainder);
}
}
static size_t base64_encode(const char* src,
size_t slen,
char* dst,
size_t dlen) {
// We know how much we'll write, just make sure that there's space.
assert(dlen >= base64_encoded_size(slen) &&
"not enough space provided for base64 encode");
dlen = base64_encoded_size(slen);
unsigned a;
unsigned b;
unsigned c;
unsigned i;
unsigned k;
unsigned n;
static const char table[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"abcdefghijklmnopqrstuvwxyz"
"0123456789+/";
i = 0;
k = 0;
n = slen / 3 * 3;
while (i < n) {
a = src[i + 0] & 0xff;
b = src[i + 1] & 0xff;
c = src[i + 2] & 0xff;
dst[k + 0] = table[a >> 2];
dst[k + 1] = table[((a & 3) << 4) | (b >> 4)];
dst[k + 2] = table[((b & 0x0f) << 2) | (c >> 6)];
dst[k + 3] = table[c & 0x3f];
i += 3;
k += 4;
}
if (n != slen) {
switch (slen - n) {
case 1:
a = src[i + 0] & 0xff;
dst[k + 0] = table[a >> 2];
dst[k + 1] = table[(a & 3) << 4];
dst[k + 2] = '=';
dst[k + 3] = '=';
break;
case 2:
a = src[i + 0] & 0xff;
b = src[i + 1] & 0xff;
dst[k + 0] = table[a >> 2];
dst[k + 1] = table[((a & 3) << 4) | (b >> 4)];
dst[k + 2] = table[(b & 0x0f) << 2];
dst[k + 3] = '=';
break;
}
}
return dlen;
}
static size_t hex_encode(const char* src, size_t slen, char* dst, size_t dlen) {
// We know how much we'll write, just make sure that there's space.
assert(dlen >= slen * 2 &&
"not enough space provided for hex encode");
dlen = slen * 2;
for (uint32_t i = 0, k = 0; k < dlen; i += 1, k += 2) {
static const char hex[] = "0123456789abcdef";
uint8_t val = static_cast<uint8_t>(src[i]);
dst[k + 0] = hex[val >> 4];
dst[k + 1] = hex[val & 15];
}
return dlen;
}
static Local<Value> Encode(const char* buf,
size_t buflen,
enum Encoding encoding) {
assert(buflen <= node::Buffer::kMaxLength);
if (!buflen && encoding != BUFFER)
return New("").ToLocalChecked();
Local<String> val;
switch (encoding) {
case BUFFER:
return CopyBuffer(buf, buflen).ToLocalChecked();
case ASCII:
if (contains_non_ascii(buf, buflen)) {
char* out = new char[buflen];
force_ascii(buf, out, buflen);
val = New<String>(out, buflen).ToLocalChecked();
delete[] out;
} else {
val = New<String>(buf, buflen).ToLocalChecked();
}
break;
case UTF8:
val = New<String>(buf, buflen).ToLocalChecked();
break;
case BINARY: {
// TODO(isaacs) use ExternalTwoByteString?
const unsigned char *cbuf = reinterpret_cast<const unsigned char*>(buf);
uint16_t * twobytebuf = new uint16_t[buflen];
for (size_t i = 0; i < buflen; i++) {
// XXX is the following line platform independent?
twobytebuf[i] = cbuf[i];
}
val = New<String>(twobytebuf, buflen).ToLocalChecked();
delete[] twobytebuf;
break;
}
case BASE64: {
size_t dlen = base64_encoded_size(buflen);
char* dst = new char[dlen];
size_t written = base64_encode(buf, buflen, dst, dlen);
assert(written == dlen);
val = New<String>(dst, dlen).ToLocalChecked();
delete[] dst;
break;
}
case UCS2: {
const uint16_t* data = reinterpret_cast<const uint16_t*>(buf);
val = New<String>(data, buflen / 2).ToLocalChecked();
break;
}
case HEX: {
size_t dlen = buflen * 2;
char* dst = new char[dlen];
size_t written = hex_encode(buf, buflen, dst, dlen);
assert(written == dlen);
val = New<String>(dst, dlen).ToLocalChecked();
delete[] dst;
break;
}
default:
assert(0 && "unknown encoding");
break;
}
return val;
}
#undef base64_encoded_size
} // end of namespace imp
#endif // NAN_STRING_BYTES_H_
@@ -0,0 +1,33 @@
var isObject = require('./isObject'),
isPrototype = require('./_isPrototype'),
nativeKeysIn = require('./_nativeKeysIn');
/** Used for built-in method references. */
var objectProto = Object.prototype;
/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;
/**
* The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
*
* @private
* @param {Object} object The object to query.
* @returns {Array} Returns the array of property names.
*/
function baseKeysIn(object) {
if (!isObject(object)) {
return nativeKeysIn(object);
}
var isProto = isPrototype(object),
result = [];
for (var key in object) {
if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
result.push(key);
}
}
return result;
}
module.exports = baseKeysIn;
@@ -0,0 +1,4 @@
import type { PluginObj } from "@babel/core";
export declare function TransformImportMetaPlugin(_ctx: any, opts: {
filename?: string;
}): PluginObj;
@@ -0,0 +1,17 @@
'use strict';
var fromEntries = require('../');
var test = require('tape');
var runTests = require('./tests');
test('as a function', function (t) {
t.test('bad array/this value', function (st) {
st['throws'](function () { fromEntries(undefined); }, TypeError, 'undefined is not an object');
st['throws'](function () { fromEntries(null); }, TypeError, 'null is not an object');
st.end();
});
runTests(fromEntries, t);
t.end();
});
@@ -0,0 +1 @@
{"mappings":"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","sources":["packages/@react-aria/grid/src/useGridCell.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the ApaLine truncated
@@ -0,0 +1,2 @@
export { fromEvent } from './file-selector';
//# sourceMappingURL=index.js.map
@@ -0,0 +1,3 @@
export declare function objectForEachKey<T extends Record<string, unknown>>(obj: T, callback: (key: keyof T) => void): void;
export declare function objectMapKey<T extends Record<string, unknown>, Return>(obj: T, callback: (key: keyof T) => Return): Return[];
export declare function objectReduceKey<T extends Record<string, unknown>, Accumulator>(obj: T, callback: (acc: Accumulator, key: keyof T) => Accumulator, initial: Accumulator): Accumulator;
@@ -0,0 +1 @@
module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 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 L M G N O P Q H R S T"},C:{"1":"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 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r 0C 1C","194":"0 1 2 3 4 5 s t u v w x y z GB HB"},D:{"1":"0 1 2 3 4 5 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 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"},E:{"1":"SC nC oC pC qC rC sC tC DD ED","2":"J ZB K D E F A B C L M G 2C ZC 3C 4C 5C 6C aC NC OC 7C 8C 9C bC cC PC AD QC dC eC fC gC hC BD RC iC jC kC lC mC CD"},F:{"1":"0 1 2 3 4 5 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":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC FD GD HD ID NC uC JD OC"},G:{"1":"SC nC oC pC qC rC sC tC","2":"E ZC KD vC LD MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD bC cC PC eD QC dC eC fC gC hC fD RC iC jC kC lC mC gD"},H:{"2":"hD"},I:{"1":"I","2":"TC J iD jD kD lD vC mD nD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB wD xD QC RC SC yD","2":"J oD pD qD rD sD aC tD uD vD"},Q:{"2":"zD"},R:{"1":"0D"},S:{"2":"1D 2D"}},B:5,C:"CSS content-visibility",D:true};
@@ -0,0 +1,82 @@
{
"name": "compute-scroll-into-view",
"version": "3.1.1",
"description": "The engine that powers scroll-into-view-if-needed",
"keywords": [
"if-needed",
"scroll",
"scroll-into-view",
"scroll-into-view-if-needed",
"scrollIntoView",
"scrollIntoViewIfNeeded",
"scrollMode",
"typescript"
],
"homepage": "https://scroll-into-view.dev",
"repository": {
"type": "git",
"url": "git+https://github.com/scroll-into-view/compute-scroll-into-view.git"
},
"license": "MIT",
"author": "Cody Olsen",
"sideEffects": false,
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"source": "./src/index.ts",
"require": "./dist/index.cjs",
"import": "./dist/index.js",
"default": "./dist/index.js"
},
"./package.json": "./package.json"
},
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"source": "./src/index.ts",
"typings": "./dist/index.d.ts",
"files": [
"dist",
"src"
],
"scripts": {
"prebuild": "npx rimraf 'dist'",
"build": "pkg build --strict",
"prepublishOnly": "npm run build",
"test": "npx cross-env JEST_PUPPETEER_CONFIG='jest-puppeteer.config.cjs' jest -c integration/jest.config.cjs",
"typecheck": "tsc"
},
"browserslist": [
"> 0.2% and supports es6-module and supports es6-module-dynamic-import and not dead",
"maintained node versions"
],
"prettier": {
"semi": false,
"singleQuote": true
},
"devDependencies": {
"@sanity/pkg-utils": "^2.2.5",
"@sanity/semantic-release-preset": "^4.0.0",
"@types/expect-puppeteer": "^5.0.2",
"@types/jest": "^29.4.0",
"@types/jest-environment-puppeteer": "^5.0.3",
"@types/puppeteer": "^7.0.4",
"cross-env": "^7.0.3",
"jest": "^29.5.0",
"jest-junit": "^15.0.0",
"jest-puppeteer": "^8.0.0",
"prettier": "^2.8.4",
"prettier-plugin-packagejson": "^2.4.3",
"puppeteer": "^19.7.0",
"rimraf": "^4.1.2",
"serve": "^14.2.0",
"typescript": "^5.0.0"
},
"bundlesize": [
{
"path": "./dist/index.js",
"maxSize": "3 kB",
"compression": "none"
}
]
}
@@ -0,0 +1,21 @@
import type { TSchema, SchemaOptions } from '../schema/index.mjs';
import { Kind } from '../symbols/index.mjs';
export interface DateOptions extends SchemaOptions {
/** The exclusive maximum timestamp value */
exclusiveMaximumTimestamp?: number;
/** The exclusive minimum timestamp value */
exclusiveMinimumTimestamp?: number;
/** The maximum timestamp value */
maximumTimestamp?: number;
/** The minimum timestamp value */
minimumTimestamp?: number;
/** The multiple of timestamp value */
multipleOfTimestamp?: number;
}
export interface TDate extends TSchema, DateOptions {
[Kind]: 'Date';
static: Date;
type: 'date';
}
/** `[JavaScript]` Creates a Date type */
export declare function Date(options?: DateOptions): TDate;
@@ -0,0 +1,14 @@
function compareByTime(a, b) {
if (a.at === b.at) {
if (a.value === null)
return 1;
if (b.value === null)
return -1;
return 0;
}
else {
return a.at - b.at;
}
}
export { compareByTime };
@@ -0,0 +1,210 @@
'use strict';Object.defineProperty(exports, "__esModule", { value: true });var _createClass = function () {function defineProperties(target, props) {for (var i = 0; i < props.length; i++) {var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if ("value" in descriptor) descriptor.writable = true;Object.defineProperty(target, descriptor.key, descriptor);}}return function (Constructor, protoProps, staticProps) {if (protoProps) defineProperties(Constructor.prototype, protoProps);if (staticProps) defineProperties(Constructor, staticProps);return Constructor;};}();var _fs = require('fs');var _fs2 = _interopRequireDefault(_fs);
var _doctrine = require('doctrine');var _doctrine2 = _interopRequireDefault(_doctrine);
var _debug = require('debug');var _debug2 = _interopRequireDefault(_debug);
var _parse2 = require('eslint-module-utils/parse');var _parse3 = _interopRequireDefault(_parse2);
var _visit = require('eslint-module-utils/visit');var _visit2 = _interopRequireDefault(_visit);
var _resolve = require('eslint-module-utils/resolve');var _resolve2 = _interopRequireDefault(_resolve);
var _ignore = require('eslint-module-utils/ignore');var _ignore2 = _interopRequireDefault(_ignore);
var _hash = require('eslint-module-utils/hash');
var _unambiguous = require('eslint-module-utils/unambiguous');var unambiguous = _interopRequireWildcard(_unambiguous);
var _ = require('.');var _2 = _interopRequireDefault(_);
var _childContext = require('./childContext');var _childContext2 = _interopRequireDefault(_childContext);
var _typescript = require('./typescript');
var _remotePath = require('./remotePath');
var _visitor = require('./visitor');var _visitor2 = _interopRequireDefault(_visitor);function _interopRequireWildcard(obj) {if (obj && obj.__esModule) {return obj;} else {var newObj = {};if (obj != null) {for (var key in obj) {if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];}}newObj['default'] = obj;return newObj;}}function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { 'default': obj };}function _classCallCheck(instance, Constructor) {if (!(instance instanceof Constructor)) {throw new TypeError("Cannot call a class as a function");}}
var log = (0, _debug2['default'])('eslint-plugin-import:ExportMap');
var exportCache = new Map();
/**
* The creation of this closure is isolated from other scopes
* to avoid over-retention of unrelated variables, which has
* caused memory leaks. See #1266.
*/
function thunkFor(p, context) {
// eslint-disable-next-line no-use-before-define
return function () {return ExportMapBuilder['for']((0, _childContext2['default'])(p, context));};
}var
ExportMapBuilder = function () {function ExportMapBuilder() {_classCallCheck(this, ExportMapBuilder);}_createClass(ExportMapBuilder, null, [{ key: 'get', value: function () {function get(
source, context) {
var path = (0, _resolve2['default'])(source, context);
if (path == null) {return null;}
return ExportMapBuilder['for']((0, _childContext2['default'])(path, context));
}return get;}() }, { key: 'for', value: function () {function _for(
context) {var
path = context.path;
var cacheKey = context.cacheKey || (0, _hash.hashObject)(context).digest('hex');
var exportMap = exportCache.get(cacheKey);
// return cached ignore
if (exportMap === null) {return null;}
var stats = _fs2['default'].statSync(path);
if (exportMap != null) {
// date equality check
if (exportMap.mtime - stats.mtime === 0) {
return exportMap;
}
// future: check content equality?
}
// check valid extensions first
if (!(0, _ignore.hasValidExtension)(path, context)) {
exportCache.set(cacheKey, null);
return null;
}
// check for and cache ignore
if ((0, _ignore2['default'])(path, context)) {
log('ignored path due to ignore settings:', path);
exportCache.set(cacheKey, null);
return null;
}
var content = _fs2['default'].readFileSync(path, { encoding: 'utf8' });
// check for and cache unambiguous modules
if (!unambiguous.test(content)) {
log('ignored path due to unambiguous regex:', path);
exportCache.set(cacheKey, null);
return null;
}
log('cache miss', cacheKey, 'for path', path);
exportMap = ExportMapBuilder.parse(path, content, context);
// ambiguous modules return null
if (exportMap == null) {
log('ignored path due to ambiguous parse:', path);
exportCache.set(cacheKey, null);
return null;
}
exportMap.mtime = stats.mtime;
// If the visitor keys were not populated, then we shouldn't save anything to the cache,
// since the parse results may not be reliable.
if (exportMap.visitorKeys) {
exportCache.set(cacheKey, exportMap);
}
return exportMap;
}return _for;}() }, { key: 'parse', value: function () {function parse(
path, content, context) {
var exportMap = new _2['default'](path);
var isEsModuleInteropTrue = (0, _typescript.isEsModuleInterop)(context);
var ast = void 0;
var visitorKeys = void 0;
try {
var result = (0, _parse3['default'])(path, content, context);
ast = result.ast;
visitorKeys = result.visitorKeys;
} catch (err) {
exportMap.errors.push(err);
return exportMap; // can't continue
}
exportMap.visitorKeys = visitorKeys;
var hasDynamicImports = false;
var remotePathResolver = new _remotePath.RemotePath(path, context);
function processDynamicImport(source) {
hasDynamicImports = true;
if (source.type !== 'Literal') {
return null;
}
var p = remotePathResolver.resolve(source.value);
if (p == null) {
return null;
}
var importedSpecifiers = new Set();
importedSpecifiers.add('ImportNamespaceSpecifier');
var getter = thunkFor(p, context);
exportMap.imports.set(p, {
getter: getter,
declarations: new Set([{
source: {
// capturing actual node reference holds full AST in memory!
value: source.value,
loc: source.loc },
importedSpecifiers: importedSpecifiers,
dynamic: true }]) });
}
(0, _visit2['default'])(ast, visitorKeys, {
ImportExpression: function () {function ImportExpression(node) {
processDynamicImport(node.source);
}return ImportExpression;}(),
CallExpression: function () {function CallExpression(node) {
if (node.callee.type === 'Import') {
processDynamicImport(node.arguments[0]);
}
}return CallExpression;}() });
var unambiguouslyESM = unambiguous.isModule(ast);
if (!unambiguouslyESM && !hasDynamicImports) {return null;}
// attempt to collect module doc
if (ast.comments) {
ast.comments.some(function (c) {
if (c.type !== 'Block') {return false;}
try {
var doc = _doctrine2['default'].parse(c.value, { unwrap: true });
if (doc.tags.some(function (t) {return t.title === 'module';})) {
exportMap.doc = doc;
return true;
}
} catch (err) {/* ignore */}
return false;
});
}
var visitorBuilder = new _visitor2['default'](
path,
context,
exportMap,
ExportMapBuilder,
content,
ast,
isEsModuleInteropTrue,
thunkFor);
ast.body.forEach(function (astNode) {
var visitor = visitorBuilder.build(astNode);
if (visitor[astNode.type]) {
visitor[astNode.type].call(visitorBuilder);
}
});
if (
isEsModuleInteropTrue // esModuleInterop is on in tsconfig
&& exportMap.namespace.size > 0 // anything is exported
&& !exportMap.namespace.has('default') // and default isn't added already
) {
exportMap.namespace.set('default', {}); // add default export
}
if (unambiguouslyESM) {
exportMap.parseGoal = 'Module';
}
return exportMap;
}return parse;}() }]);return ExportMapBuilder;}();exports['default'] = ExportMapBuilder;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9leHBvcnRNYXAvYnVpbGRlci5qcyJdLCJuYW1lcyI6WyJ1bmFtYmlndW91cyIsImxvZyIsImV4cG9ydENhY2hlIiwiTWFwIiwidGh1bmtGb3IiLCJwIiwiY29udGV4dCIsIkV4cG9ydE1hcEJ1aWxkZXIiLCJzb3VyY2UiLCJwYXRoIiwiY2FjaGVLZXkiLCJkaWdlc3QiLCJleHBvcnRNYXAiLCJnZXQiLCJzdGF0cyIsImZzIiwic3RhdFN5bmMiLCJtdGltZSIsInNldCIsImNvbnRlbnQiLCJyZWFkRmlsZVN5bmMiLCJlbmNvZGluZyIsInRlc3QiLCJwYXJzZSIsInZpc2l0b3JLZXlzIiwiRXhwb3J0TWFwIiwiaXNFc01vZHVsZUludGVyb3BUcnVlIiwiYXN0IiwicmVzdWx0IiwiZXJyIiwiZXJyb3JzIiwicHVzaCIsImhhc0R5bmFtaWNJbXBvcnRzIiwicmVtb3RlUGF0aFJlc29sdmVyIiwiUmVtb3RlUGF0aCIsInByb2Nlc3NEeW5hbWljSW1wb3J0IiwidHlwZSIsInJlc29sdmUiLCJ2YWx1ZSIsImltcG9ydGVkU3BlY2lmaWVycyIsIlNldCIsImFkZCIsImdldHRlciIsImltcG9ydHMiLCJkZWNsYXJhdGlvbnMiLCJsb2MiLCJkeW5hbWljIiwiSW1wb3J0RXhwcmVzc2lvbiIsIm5vZGUiLCJDYWxsRXhwcmVzc2lvbiIsImNhbGxlZSIsImFyZ3VtZW50cyIsInVuYW1iaWd1b3VzbHlFU00iLCJpc01vZHVsZSIsImNvbW1lbnRzIiwic29tZSIsImMiLCJkb2MiLCJkb2N0cmluZSIsInVud3JhcCIsInRhZ3MiLCJ0IiwidGl0bGUiLCJ2aXNpdG9yQnVpbGRlciIsIkltcG9ydEV4cG9ydFZpc2l0b3JCdWlsZGVyIiwiYm9keSIsImZvckVhY2giLCJhc3ROb2RlIiwidmlzaXRvciIsImJ1aWxkIiwiY2FsbCIsIm5hbWVzcGFjZSIsInNpemUiLCJoYXMiLCJwYXJzZUdvYWwiXSwibWFwcGluZ3MiOiJnbkJBQUEsd0I7O0FBRUEsb0M7O0FBRUEs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 truncated
@@ -0,0 +1,43 @@
import { CheckboxGroupProps } from "@react-types/checkbox";
import { FormValidationState } from "@react-stately/form";
import { ValidationResult, ValidationState } from "@react-types/shared";
export interface CheckboxGroupState extends FormValidationState {
/** Current selected values. */
readonly value: readonly string[];
/** Whether the checkbox group is disabled. */
readonly isDisabled: boolean;
/** Whether the checkbox group is read only. */
readonly isReadOnly: boolean;
/**
* The current validation state of the checkbox group.
* @deprecated Use `isInvalid` instead.
*/
readonly validationState: ValidationState | null;
/** Whether the checkbox group is invalid. */
readonly isInvalid: boolean;
/**
* Whether the checkboxes in the group are required.
* This changes to false once at least one item is selected.
*/
readonly isRequired: boolean;
/** Returns whether the given value is selected. */
isSelected(value: string): boolean;
/** Sets the selected values. */
setValue(value: string[]): void;
/** Adds a value to the set of selected values. */
addValue(value: string): void;
/** Removes a value from the set of selected values. */
removeValue(value: string): void;
/** Toggles a value in the set of selected values. */
toggleValue(value: string): void;
/** Sets whether one of the checkboxes is invalid. */
setInvalid(value: string, validation: ValidationResult): void;
}
/**
* Provides state management for a checkbox group component. Provides a name for the group,
* and manages selection and focus state.
*/
export function useCheckboxGroupState(props?: CheckboxGroupProps): CheckboxGroupState;
export type { CheckboxGroupProps } from '@react-types/checkbox';
//# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
{"name":"eventemitter3","version":"5.0.1","requiresBuild":false,"files":{"LICENSE":{"checkedAt":1794532111756,"integrity":"sha512-V02Vb9kGecdbPY2+TGFQ6oG8dbjzYEBff2vau/R8mjeDv32V1NQSAdq3+/EzER4Ff/KQa3PT0mbUEp6vK3qrWA==","mode":420,"size":1082},"dist/eventemitter3.esm.js":{"checkedAt":1794532111756,"integrity":"sha512-YrLMUOIYcvvHeJ9UyYXcCvQYUzgJgdxC4DgXLsuIkoWYoEE2oYw/Jbs7Kcx7m7mhuvH1vZKrv8HPnJKjbTR74g==","mode":420,"size":9666},"dist/eventemitter3.esm.min.js":{"checkedAt":1794532111756,"integrity":"sha512-6Enqeetnj1alSqHBKxLtWox6rYws9lLE0ycDMrT0yyGQbXu6ulcuZDlLCcwp0AMgrLmeTkODXR9boV7WSRE+6w==","mode":420,"size":2891},"dist/eventemitter3.umd.js":{"checkedAt":1794532111756,"integrity":"sha512-5i2vRmZ+czK+ickvF6r0YmbKjIdEh5oBNU4dw1X5roLjU0I2Lan2H9NiUR/tpYwN7T+QhEXnkY1zqUdi0UlbTA==","mode":420,"size":10581},"dist/eventemitter3.umd.min.js":{"checkedAt":1794532111756,"integrity":"sha512-OSlplbn3ZpNkUJFMfNRC6l71QdfXxyAj354G6dG5/aLsc9SA33K1jfaji35mU9bYGIK5uVIHSM3jKN4Ppn72yQ==","mode":420,"size":3093},"index.js":{"checkedAt":1794532111757,"integrity":"sha512-kWmB+GMRVLzQUKOBTzmm0q3JLBttW57/X6n8ImHZTSBjolDlTBA/MxHNvfLBRpnJkTFOOhXFrjeFNS5eH1HXsw==","mode":420,"size":9141},"package.json":{"checkedAt":1794532111757,"integrity":"sha512-hi6KvzBUi0MPfWNOWXXram8M6sONPaq8LalJ3T1UX6PCuRXI/xosjqbwyiT4vss18LxiB6oA0tciuGrhwbmk+A==","mode":420,"size":1613},"dist/eventemitter3.esm.min.js.map":{"checkedAt":1794532111757,"integrity":"sha512-0AEwdv8eBuBNal9Ot9qYODUo8Wki/4TB+pVDYecU2fC5nES1vtPGLvrA18NBBG8Wi8NQ+Qjn12zw4CIwRRaw7A==","mode":420,"size":14151},"dist/eventemitter3.umd.min.js.map":{"checkedAt":1794532111757,"integrity":"sha512-VziawkpMOYw3fiSdtlK59UEzm68aBbNCVbZUSd1oKdfCq2i4J3V1uNhD1259RnN5zBSuvi2ARqvPTXR5Tu0G2A==","mode":420,"size":14151},"README.md":{"checkedAt":1794532111757,"integrity":"sha512-UPnWXYb8DXvmfMUBOCbqGx28vBS7ESkWFRI/bKVZHm/ZgMRAVkyHmQK/NIAIW7zi68W4lYv3Bb2OMP3Xxfe/6w==","mode":420,"size":3430},"index.mjs":{"checkedAt":1794532111758,"integrity":"sha512-LtAz3uHsGf4BBO2BTsH2yciNj8px7s9mJYQntN7FlUQ3bZwDZPN/dRe5jID1BT+yj9nP+Ic7pGpHv58Kqp5gRQ==","mode":420,"size":91},"index.d.ts":{"checkedAt":1794532111758,"integrity":"sha512-dUuYEIyzT4752vN4SbVy510QaeLHJ7rICVWXSdyj2kHk+ZAzzt/F+ftl24CXPhBzzHVk253gy84BO7b2wnHC9Q==","mode":420,"size":3500}}}
@@ -0,0 +1,187 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const utils_1 = require("@typescript-eslint/utils");
const util_1 = require("../util");
const getESLintCoreRule_1 = require("../util/getESLintCoreRule");
const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('no-loop-func');
exports.default = (0, util_1.createRule)({
name: 'no-loop-func',
meta: {
type: 'suggestion',
// defaultOptions, -- base rule does not use defaultOptions
docs: {
description: 'Disallow function declarations that contain unsafe references inside loop statements',
extendsBaseRule: true,
},
hasSuggestions: baseRule.meta.hasSuggestions,
messages: baseRule.meta.messages,
schema: [],
},
defaultOptions: [],
create(context) {
const SKIPPED_IIFE_NODES = new Set();
/**
* Gets the containing loop node of a specified node.
*
* We don't need to check nested functions, so this ignores those.
* `Scope.through` contains references of nested functions.
*
* @param node An AST node to get.
* @returns The containing loop node of the specified node, or `null`.
*/
function getContainingLoopNode(node) {
for (let currentNode = node; currentNode.parent; currentNode = currentNode.parent) {
const parent = currentNode.parent;
switch (parent.type) {
case utils_1.AST_NODE_TYPES.WhileStatement:
case utils_1.AST_NODE_TYPES.DoWhileStatement:
return parent;
case utils_1.AST_NODE_TYPES.ForStatement:
// `init` is outside of the loop.
if (parent.init !== currentNode) {
return parent;
}
break;
case utils_1.AST_NODE_TYPES.ForInStatement:
case utils_1.AST_NODE_TYPES.ForOfStatement:
// `right` is outside of the loop.
if (parent.right !== currentNode) {
return parent;
}
break;
case utils_1.AST_NODE_TYPES.ArrowFunctionExpression:
case utils_1.AST_NODE_TYPES.FunctionExpression:
case utils_1.AST_NODE_TYPES.FunctionDeclaration:
// We don't need to check nested functions.
// We need to check nested functions only in case of IIFE.
if (SKIPPED_IIFE_NODES.has(parent)) {
break;
}
return null;
default:
break;
}
}
return null;
}
/**
* Gets the containing loop node of a given node.
* If the loop was nested, this returns the most outer loop.
* @param node A node to get. This is a loop node.
* @param excludedNode A node that the result node should not include.
* @returns The most outer loop node.
*/
function getTopLoopNode(node, excludedNode) {
const border = excludedNode ? excludedNode.range[1] : 0;
let retv = node;
let containingLoopNode = node;
while (containingLoopNode && containingLoopNode.range[0] >= border) {
retv = containingLoopNode;
containingLoopNode = getContainingLoopNode(containingLoopNode);
}
return retv;
}
/**
* Checks whether a given reference which refers to an upper scope's variable is
* safe or not.
* @param loopNode A containing loop node.
* @param reference A reference to check.
* @returns `true` if the reference is safe or not.
*/
function isSafe(loopNode, reference) {
const variable = reference.resolved;
const definition = variable?.defs[0];
const declaration = definition?.parent;
const kind = declaration?.type === utils_1.AST_NODE_TYPES.VariableDeclaration
? declaration.kind
: '';
// type references are all safe
// this only really matters for global types that haven't been configured
if (reference.isTypeReference) {
return true;
}
// Variables which are declared by `const` is safe.
if (kind === 'const') {
return true;
}
/*
* Variables which are declared by `let` in the loop is safe.
* It's a different instance from the next loop step's.
*/
if (kind === 'let' &&
declaration &&
declaration.range[0] > loopNode.range[0] &&
declaration.range[1] < loopNode.range[1]) {
return true;
}
/*
* WriteReferences which exist after this border are unsafe because those
* can modify the variable.
*/
const border = getTopLoopNode(loopNode, kind === 'let' ? declaration : null).range[0];
/**
* Checks whether a given reference is safe or not.
* The reference is every reference of the upper scope's variable we are
* looking now.
*
* It's safe if the reference matches one of the following condition.
* - is readonly.
* - doesn't exist inside a local function and after the border.
*
* @param upperRef A reference to check.
* @returns `true` if the reference is safe.
*/
function isSafeReference(upperRef) {
const id = upperRef.identifier;
return (!upperRef.isWrite() ||
(variable?.scope.variableScope === upperRef.from.variableScope &&
id.range[0] < border));
}
return variable?.references.every(isSafeReference) ?? false;
}
/**
* Reports functions which match the following condition:
* - has a loop node in ancestors.
* - has any references which refers to an unsafe variable.
*
* @param node The AST node to check.
*/
function checkForLoops(node) {
const loopNode = getContainingLoopNode(node);
if (!loopNode) {
return;
}
const references = context.sourceCode.getScope(node).through;
if (!(node.async || node.generator) && isIIFE(node)) {
const isFunctionExpression = node.type === utils_1.AST_NODE_TYPES.FunctionExpression;
// Check if the function is referenced elsewhere in the code
const isFunctionReferenced = isFunctionExpression && node.id
? references.some(r => r.identifier.name === node.id?.name)
: false;
if (!isFunctionReferenced) {
SKIPPED_IIFE_NODES.add(node);
return;
}
}
const unsafeRefs = references
.filter(r => r.resolved && !isSafe(loopNode, r))
.map(r => r.identifier.name);
if (unsafeRefs.length > 0) {
context.report({
node,
messageId: 'unsafeRefs',
data: { varNames: `'${unsafeRefs.join("', '")}'` },
});
}
}
return {
ArrowFunctionExpression: checkForLoops,
FunctionDeclaration: checkForLoops,
FunctionExpression: checkForLoops,
};
},
});
function isIIFE(node) {
return (node.parent.type === utils_1.AST_NODE_TYPES.CallExpression &&
node.parent.callee === node);
}
@@ -0,0 +1,31 @@
"use strict";
function _iterable_to_array_limit(arr, i) {
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
if (_i == null) return;
var _arr = [];
var _n = true;
var _d = false;
var _s, _e;
try {
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
_arr.push(_s.value);
if (i && _arr.length === i) break;
}
} catch (err) {
_d = true;
_e = err;
} finally {
try {
if (!_n && _i["return"] != null) _i["return"]();
} finally {
if (_d) throw _e;
}
}
return _arr;
}
exports._ = _iterable_to_array_limit;
@@ -0,0 +1,71 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const utils_1 = require("@typescript-eslint/utils");
const util_1 = require("../util");
exports.default = (0, util_1.createRule)({
name: 'prefer-ts-expect-error',
meta: {
type: 'problem',
deprecated: {
deprecatedSince: '7.11.0',
replacedBy: [
{
rule: {
name: '@typescript-eslint/ban-ts-comment',
url: 'https://typescript-eslint.io/rules/ban-ts-comment',
},
},
],
url: 'https://github.com/typescript-eslint/typescript-eslint/pull/9081',
},
docs: {
description: 'Enforce using `@ts-expect-error` over `@ts-ignore`',
},
fixable: 'code',
messages: {
preferExpectErrorComment: 'Use "@ts-expect-error" to ensure an error is actually being suppressed.',
},
replacedBy: ['@typescript-eslint/ban-ts-comment'],
schema: [],
},
defaultOptions: [],
create(context) {
const tsIgnoreRegExpSingleLine = /^\s*\/?\s*@ts-ignore/;
const tsIgnoreRegExpMultiLine = /^\s*(?:\/|\*)*\s*@ts-ignore/;
function isLineComment(comment) {
return comment.type === utils_1.AST_TOKEN_TYPES.Line;
}
function getLastCommentLine(comment) {
if (isLineComment(comment)) {
return comment.value;
}
// For multiline comments - we look at only the last line.
const commentlines = comment.value.split('\n');
return commentlines[commentlines.length - 1];
}
function isValidTsIgnorePresent(comment) {
const line = getLastCommentLine(comment);
return isLineComment(comment)
? tsIgnoreRegExpSingleLine.test(line)
: tsIgnoreRegExpMultiLine.test(line);
}
return {
Program() {
const comments = context.sourceCode.getAllComments();
comments.forEach(comment => {
if (isValidTsIgnorePresent(comment)) {
const lineCommentRuleFixer = (fixer) => fixer.replaceText(comment, `//${comment.value.replace('@ts-ignore', '@ts-expect-error')}`);
const blockCommentRuleFixer = (fixer) => fixer.replaceText(comment, `/*${comment.value.replace('@ts-ignore', '@ts-expect-error')}*/`);
context.report({
node: comment,
messageId: 'preferExpectErrorComment',
fix: isLineComment(comment)
? lineCommentRuleFixer
: blockCommentRuleFixer,
});
}
});
},
};
},
});
@@ -0,0 +1,51 @@
{
"author": "GitHub Inc.",
"name": "npmlog",
"description": "logger for npm",
"version": "6.0.2",
"repository": {
"type": "git",
"url": "https://github.com/npm/npmlog.git"
},
"main": "lib/log.js",
"files": [
"bin/",
"lib/"
],
"scripts": {
"test": "tap",
"npmclilint": "npmcli-lint",
"lint": "eslint \"**/*.js\"",
"lintfix": "npm run lint -- --fix",
"posttest": "npm run lint",
"postsnap": "npm run lintfix --",
"postlint": "template-oss-check",
"preversion": "npm test",
"postversion": "npm publish",
"prepublishOnly": "git push origin --follow-tags",
"snap": "tap",
"template-oss-apply": "template-oss-apply --force"
},
"dependencies": {
"are-we-there-yet": "^3.0.0",
"console-control-strings": "^1.1.0",
"gauge": "^4.0.3",
"set-blocking": "^2.0.0"
},
"devDependencies": {
"@npmcli/eslint-config": "^3.0.1",
"@npmcli/template-oss": "3.4.1",
"tap": "^16.0.1"
},
"license": "ISC",
"engines": {
"node": "^12.13.0 || ^14.15.0 || >=16.0.0"
},
"tap": {
"branches": 95
},
"templateOSS": {
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
"version": "3.4.1"
}
}
@@ -0,0 +1,14 @@
/**
* A list of values that can be hardware-accelerated.
*/
const acceleratedValues = new Set([
"opacity",
"clipPath",
"filter",
"transform",
// TODO: Can be accelerated but currently disabled until https://issues.chromium.org/issues/41491098 is resolved
// or until we implement support for linear() easing.
// "background-color"
]);
export { acceleratedValues };
@@ -0,0 +1,5 @@
'use strict';
module.exports = require('functions-have-names')();
// TODO: semver-major, remove
@@ -0,0 +1,7 @@
"use client";
import {
useModal
} from "./chunk-Z2LRST4N.mjs";
export {
useModal
};
@@ -0,0 +1,44 @@
# replace-ext [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Dependency Status][david-image]][david-url]
## Information
<table>
<tr>
<td>Package</td><td>replace-ext</td>
</tr>
<tr>
<td>Description</td>
<td>Replaces a file extension with another one</td>
</tr>
<tr>
<td>Node Version</td>
<td>>= 0.4</td>
</tr>
</table>
## Usage
```javascript
var replaceExt = require('replace-ext');
var path = '/some/dir/file.js';
var npath = replaceExt(path, '.coffee');
console.log(npath); // /some/dir/file.coffee
```
[npm-url]: https://npmjs.org/package/replace-ext
[npm-image]: https://badge.fury.io/js/replace-ext.png
[travis-url]: https://travis-ci.org/wearefractal/replace-ext
[travis-image]: https://travis-ci.org/wearefractal/replace-ext.png?branch=master
[coveralls-url]: https://coveralls.io/r/wearefractal/replace-ext
[coveralls-image]: https://coveralls.io/repos/wearefractal/replace-ext/badge.png
[depstat-url]: https://david-dm.org/wearefractal/replace-ext
[depstat-image]: https://david-dm.org/wearefractal/replace-ext.png
[david-url]: https://david-dm.org/wearefractal/replace-ext
[david-image]: https://david-dm.org/wearefractal/replace-ext.png?theme=shields.io
@@ -0,0 +1 @@
module.exports={A:{A:{"2":"K D E F A B 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 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","33":"J ZB K D E F A B C L M G N O P 0C 1C","164":"xC TC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G ZC 3C 4C 5C 6C aC NC OC 7C 8C 9C bC cC PC AD QC dC eC fC gC hC BD RC iC jC kC lC mC CD SC nC oC pC qC rC sC tC DD ED","16":"2C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 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","2":"F B C FD GD HD ID NC uC JD OC"},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:{"2":"hD"},I:{"1":"TC J I kD lD vC mD nD","16":"iD jD"},J:{"1":"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:4,C:"CSS initial value",D:true};
@@ -0,0 +1,39 @@
// Swahili [sw]
import dayjs from '../index';
var locale = {
name: 'sw',
weekdays: 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split('_'),
weekdaysShort: 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),
weekdaysMin: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),
months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split('_'),
monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),
weekStart: 1,
ordinal: function ordinal(n) {
return n;
},
relativeTime: {
future: '%s baadaye',
past: 'tokea %s',
s: 'hivi punde',
m: 'dakika moja',
mm: 'dakika %d',
h: 'saa limoja',
hh: 'masaa %d',
d: 'siku moja',
dd: 'masiku %d',
M: 'mwezi mmoja',
MM: 'miezi %d',
y: 'mwaka mmoja',
yy: 'miaka %d'
},
formats: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD.MM.YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd, D MMMM YYYY HH:mm'
}
};
dayjs.locale(locale, null, true);
export default locale;
@@ -0,0 +1,47 @@
/**
* @author Toru Nagashima <https://github.com/mysticatea>
* See LICENSE file in root directory for full license.
*/
"use strict"
module.exports = {
meta: {
docs: {
description:
"disallow `super` property accesses in object literals.",
category: "ES2015",
recommended: false,
url:
"http://mysticatea.github.io/eslint-plugin-es/rules/no-object-super-properties.html",
},
fixable: null,
messages: {
forbidden:
"ES2015 'super' property accesses in object literals are forbidden.",
},
schema: [],
type: "problem",
},
create(context) {
let stack = null
return {
Super(node) {
if (stack && stack.inObjectMethod) {
context.report({ node, messageId: "forbidden" })
}
},
":matches(FunctionExpression, FunctionDeclaration)"(node) {
const { type, method } = node.parent
stack = {
inObjectMethod: type === "Property" && method === true,
upper: stack,
}
},
":matches(FunctionExpression, FunctionDeclaration):exit"() {
stack = stack.upper
},
}
},
}
@@ -0,0 +1,20 @@
'use strict';
var GetIntrinsic = require('get-intrinsic');
var $Number = GetIntrinsic('%Number%');
var isPrimitive = require('../helpers/isPrimitive');
var ToPrimitive = require('./ToPrimitive');
var ToNumber = require('./ToNumber');
// https://262.ecma-international.org/11.0/#sec-tonumeric
module.exports = function ToNumeric(argument) {
var primValue = isPrimitive(argument) ? argument : ToPrimitive(argument, $Number);
if (typeof primValue === 'bigint') {
return primValue;
}
return ToNumber(primValue);
};
@@ -0,0 +1 @@
{"name":"flatted","version":"3.3.3","requiresBuild":false,"files":{"LICENSE":{"checkedAt":1794532092397,"integrity":"sha512-2SaZOkxJbyqdUbdgX9T1K0FtkknjwNDeYxEaJXMnabU8qUSjI9+c2k1tH4hFE33eU20CrBahVVrtKeZsmTstDg==","mode":420,"size":770},"es.js":{"checkedAt":1794532092398,"integrity":"sha512-6j99mZCpOJI8RLI1hxWlBhlZ7V5h0c8EwJh2pIDJKlp95aVnI5pAlrDwKtniCunXwaUjXfo0CU6BKAmVFG9YJQ==","mode":420,"size":1133},"esm.js":{"checkedAt":1794532092398,"integrity":"sha512-R2srmfWfNSlXskSKZaC6cEtn+sZ/khgnvA/VmHLBxRGzx4SZd8/SPaY8xrvY5opRukE2WkUArHssiHPhwDFGAA==","mode":420,"size":1101},"cjs/index.js":{"checkedAt":1794532092398,"integrity":"sha512-jafBY+SmJSd/Fvre951/N0Q3TKiju+JSwwt4qmkVWLN6//DfunEMCucgzCM5LYyJ2y4hS94KLWu1iwI12dwxlw==","mode":420,"size":3503},"esm/index.js":{"checkedAt":1794532092398,"integrity":"sha512-4eBxOCi1E2clXsSa92nexTCwldg3Fb0MxgPp2JZ/banPRVnhV99WIpa1fjdcr44KPKO+4RlSzPykNOShW0o9cQ==","mode":420,"size":3409},"index.js":{"checkedAt":1794532092398,"integrity":"sha512-ZDZuJZjiuaZPWkxB3b93Dv5aVfLndraZApz9Ci/x79DnAcYHAETtdFFvw5dJ3ZjFbsomyS6Aub2O/wf2g33qiA==","mode":420,"size":4354},"min.js":{"checkedAt":1794532092398,"integrity":"sha512-FhTQtM9QxZ0XxN5+cmnF224070MxnhKCioqMB/59/odPbkiAQMnd2njda948K2gD6CbUGJsN6FLd2BSZeMGL+w==","mode":420,"size":1438},"cjs/package.json":{"checkedAt":1794532092399,"integrity":"sha512-ZcZkWKviEBAyzdG1DKbmQ+DDaNCd+mzHAGsz7YFeEGuyD5r/EYGBgH59+fXU2Nl5Zwmx7Jp+BFRCMWNv34/fQg==","mode":420,"size":19},"package.json":{"checkedAt":1794532092399,"integrity":"sha512-RvW67+0P41NYmas7QdXjC4jbC1PE49c3hop0alLJ6ZVq3Ij5ORlzqy1RO+Ak7qpKFRr2G88ZfYUwgISKXeULQA==","mode":420,"size":2377},"README.md":{"checkedAt":1794532092399,"integrity":"sha512-c4sjn2lElqXZ2PMMiAjqTGBmL96Ni+f3YBpatKHV0aAsrIloJNIoYEitC9TJWY2AqMcSXm5Yeh+wHJllVMfcNQ==","mode":420,"size":4608},"php/flatted.php":{"checkedAt":1794532092399,"integrity":"sha512-OBR0zXrrnNZNdS4vuuijoSTRUbWnUNO1LGNzYzTLFU0DrtO0c6eiN3G7JAXNFRNDfbIhFIKBRMXVbZFjniqUWw==","mode":420,"size":4613},"python/flatted.py":{"checkedAt":1794532092399,"integrity":"sha512-bNYROepj10zw64VOMXfsD4DOEQLIrS1sexyltREApY9u+hY8Xs74p93YDQnyip1ol2wgjZiM9X6QVerO/zyNNw==","mode":420,"size":3860},"types/index.d.ts":{"checkedAt":1794532092399,"integrity":"sha512-QOLmLaHeiGM1OQwkmEu5ulI0LcG8brAoeGlkT0okVn3YWDCjW9O3dbdca+SRfMyyurIeJXIIn3owmshXvGKjAQ==","mode":420,"size":345}}}
@@ -0,0 +1,18 @@
'use strict';
var _this = void 0;
var format = require('./format');
var ms = require('ms');
/*
* function ms (info)
* Returns an `info` with a `ms` property. The `ms` property holds the Value
* of the time difference between two calls in milliseconds.
*/
module.exports = format(function (info) {
var curr = +new Date();
_this.diff = curr - (_this.prevTime || curr);
_this.prevTime = curr;
info.ms = "+".concat(ms(_this.diff));
return info;
});
@@ -0,0 +1 @@
{"version":3,"file":"decode-data-html.js","sourceRoot":"https://raw.githubusercontent.com/fb55/entities/61afd4701eaa736978b13c7351cd3de9a96b04bc/src/","sources":["generated/decode-data-html.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAE9C,eAAe,IAAI,WAAW;AAC1B,kBAAkB;AAClB,268CAA268C;KACt68C,KAAK,CAAC,EAAE,CAAC;KACT,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CACnC,CAAC"}
@@ -0,0 +1,476 @@
/*
* 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 {AnyCalendarDate, AnyDateTime, AnyTime, CycleOptions, CycleTimeOptions, DateDuration, DateField, DateFields, DateTimeDuration, Disambiguation, TimeDuration, TimeField, TimeFields} from './types';
import {CalendarDate, CalendarDateTime, Time, ZonedDateTime} from './CalendarDate';
import {epochFromDate, fromAbsolute, toAbsolute, toCalendar, toCalendarDateTime} from './conversion';
import {GregorianCalendar} from './calendars/GregorianCalendar';
import {Mutable} from './utils';
const ONE_HOUR = 3600000;
export function add(date: CalendarDateTime, duration: DateTimeDuration): CalendarDateTime;
export function add(date: CalendarDate, duration: DateDuration): CalendarDate;
export function add(date: CalendarDate | CalendarDateTime, duration: DateTimeDuration): CalendarDate | CalendarDateTime;
export function add(date: CalendarDate | CalendarDateTime, duration: DateTimeDuration): Mutable<AnyCalendarDate | AnyDateTime> {
let mutableDate: Mutable<AnyCalendarDate | AnyDateTime> = date.copy();
let days = 'hour' in mutableDate ? addTimeFields(mutableDate, duration) : 0;
addYears(mutableDate, duration.years || 0);
if (mutableDate.calendar.balanceYearMonth) {
mutableDate.calendar.balanceYearMonth(mutableDate, date);
}
mutableDate.month += duration.months || 0;
balanceYearMonth(mutableDate);
constrainMonthDay(mutableDate);
mutableDate.day += (duration.weeks || 0) * 7;
mutableDate.day += duration.days || 0;
mutableDate.day += days;
balanceDay(mutableDate);
if (mutableDate.calendar.balanceDate) {
mutableDate.calendar.balanceDate(mutableDate);
}
// Constrain in case adding ended up with a date outside the valid range for the calendar system.
// The behavior here is slightly different than when constraining in the `set` function in that
// we adjust smaller fields to their minimum/maximum values rather than constraining each field
// individually. This matches the general behavior of `add` vs `set` regarding how fields are balanced.
if (mutableDate.year < 1) {
mutableDate.year = 1;
mutableDate.month = 1;
mutableDate.day = 1;
}
let maxYear = mutableDate.calendar.getYearsInEra(mutableDate);
if (mutableDate.year > maxYear) {
let isInverseEra = mutableDate.calendar.isInverseEra?.(mutableDate);
mutableDate.year = maxYear;
mutableDate.month = isInverseEra ? 1 : mutableDate.calendar.getMonthsInYear(mutableDate);
mutableDate.day = isInverseEra ? 1 : mutableDate.calendar.getDaysInMonth(mutableDate);
}
if (mutableDate.month < 1) {
mutableDate.month = 1;
mutableDate.day = 1;
}
let maxMonth = mutableDate.calendar.getMonthsInYear(mutableDate);
if (mutableDate.month > maxMonth) {
mutableDate.month = maxMonth;
mutableDate.day = mutableDate.calendar.getDaysInMonth(mutableDate);
}
mutableDate.day = Math.max(1, Math.min(mutableDate.calendar.getDaysInMonth(mutableDate), mutableDate.day));
return mutableDate;
}
function addYears(date: Mutable<AnyCalendarDate>, years: number) {
if (date.calendar.isInverseEra?.(date)) {
years = -years;
}
date.year += years;
}
function balanceYearMonth(date: Mutable<AnyCalendarDate>) {
while (date.month < 1) {
addYears(date, -1);
date.month += date.calendar.getMonthsInYear(date);
}
let monthsInYear = 0;
while (date.month > (monthsInYear = date.calendar.getMonthsInYear(date))) {
date.month -= monthsInYear;
addYears(date, 1);
}
}
function balanceDay(date: Mutable<AnyCalendarDate>) {
while (date.day < 1) {
date.month--;
balanceYearMonth(date);
date.day += date.calendar.getDaysInMonth(date);
}
while (date.day > date.calendar.getDaysInMonth(date)) {
date.day -= date.calendar.getDaysInMonth(date);
date.month++;
balanceYearMonth(date);
}
}
function constrainMonthDay(date: Mutable<AnyCalendarDate>) {
date.month = Math.max(1, Math.min(date.calendar.getMonthsInYear(date), date.month));
date.day = Math.max(1, Math.min(date.calendar.getDaysInMonth(date), date.day));
}
export function constrain(date: Mutable<AnyCalendarDate>): void {
if (date.calendar.constrainDate) {
date.calendar.constrainDate(date);
}
date.year = Math.max(1, Math.min(date.calendar.getYearsInEra(date), date.year));
constrainMonthDay(date);
}
export function invertDuration(duration: DateTimeDuration): DateTimeDuration {
let inverseDuration = {};
for (let key in duration) {
if (typeof duration[key] === 'number') {
inverseDuration[key] = -duration[key];
}
}
return inverseDuration;
}
export function subtract(date: CalendarDateTime, duration: DateTimeDuration): CalendarDateTime;
export function subtract(date: CalendarDate, duration: DateDuration): CalendarDate;
export function subtract(date: CalendarDate | CalendarDateTime, duration: DateTimeDuration): CalendarDate | CalendarDateTime {
return add(date, invertDuration(duration));
}
export function set(date: CalendarDateTime, fields: DateFields): CalendarDateTime;
export function set(date: CalendarDate, fields: DateFields): CalendarDate;
export function set(date: CalendarDate | CalendarDateTime, fields: DateFields): Mutable<AnyCalendarDate> {
let mutableDate: Mutable<AnyCalendarDate> = date.copy();
if (fields.era != null) {
mutableDate.era = fields.era;
}
if (fields.year != null) {
mutableDate.year = fields.year;
}
if (fields.month != null) {
mutableDate.month = fields.month;
}
if (fields.day != null) {
mutableDate.day = fields.day;
}
constrain(mutableDate);
return mutableDate;
}
export function setTime(value: CalendarDateTime, fields: TimeFields): CalendarDateTime;
export function setTime(value: Time, fields: TimeFields): Time;
export function setTime(value: Time | CalendarDateTime, fields: TimeFields): Mutable<Time | CalendarDateTime> {
let mutableValue: Mutable<Time | CalendarDateTime> = value.copy();
if (fields.hour != null) {
mutableValue.hour = fields.hour;
}
if (fields.minute != null) {
mutableValue.minute = fields.minute;
}
if (fields.second != null) {
mutableValue.second = fields.second;
}
if (fields.millisecond != null) {
mutableValue.millisecond = fields.millisecond;
}
constrainTime(mutableValue);
return mutableValue;
}
function balanceTime(time: Mutable<AnyTime>): number {
time.second += Math.floor(time.millisecond / 1000);
time.millisecond = nonNegativeMod(time.millisecond, 1000);
time.minute += Math.floor(time.second / 60);
time.second = nonNegativeMod(time.second, 60);
time.hour += Math.floor(time.minute / 60);
time.minute = nonNegativeMod(time.minute, 60);
let days = Math.floor(time.hour / 24);
time.hour = nonNegativeMod(time.hour, 24);
return days;
}
export function constrainTime(time: Mutable<AnyTime>): void {
time.millisecond = Math.max(0, Math.min(time.millisecond, 1000));
time.second = Math.max(0, Math.min(time.second, 59));
time.minute = Math.max(0, Math.min(time.minute, 59));
time.hour = Math.max(0, Math.min(time.hour, 23));
}
function nonNegativeMod(a: number, b: number) {
let result = a % b;
if (result < 0) {
result += b;
}
return result;
}
function addTimeFields(time: Mutable<AnyTime>, duration: TimeDuration): number {
time.hour += duration.hours || 0;
time.minute += duration.minutes || 0;
time.second += duration.seconds || 0;
time.millisecond += duration.milliseconds || 0;
return balanceTime(time);
}
export function addTime(time: Time, duration: TimeDuration): Time {
let res = time.copy();
addTimeFields(res, duration);
return res;
}
export function subtractTime(time: Time, duration: TimeDuration): Time {
return addTime(time, invertDuration(duration));
}
export function cycleDate(value: CalendarDateTime, field: DateField, amount: number, options?: CycleOptions): CalendarDateTime;
export function cycleDate(value: CalendarDate, field: DateField, amount: number, options?: CycleOptions): CalendarDate;
export function cycleDate(value: CalendarDate | CalendarDateTime, field: DateField, amount: number, options?: CycleOptions): Mutable<CalendarDate | CalendarDateTime> {
let mutable: Mutable<CalendarDate | CalendarDateTime> = value.copy();
switch (field) {
case 'era': {
let eras = value.calendar.getEras();
let eraIndex = eras.indexOf(value.era);
if (eraIndex < 0) {
throw new Error('Invalid era: ' + value.era);
}
eraIndex = cycleValue(eraIndex, amount, 0, eras.length - 1, options?.round);
mutable.era = eras[eraIndex];
// Constrain the year and other fields within the era, so the era doesn't change when we balance below.
constrain(mutable);
break;
}
case 'year': {
if (mutable.calendar.isInverseEra?.(mutable)) {
amount = -amount;
}
// The year field should not cycle within the era as that can cause weird behavior affecting other fields.
// We need to also allow values < 1 so that decrementing goes to the previous era. If we get -Infinity back
// we know we wrapped around after reaching 9999 (the maximum), so set the year back to 1.
mutable.year = cycleValue(value.year, amount, -Infinity, 9999, options?.round);
if (mutable.year === -Infinity) {
mutable.year = 1;
}
if (mutable.calendar.balanceYearMonth) {
mutable.calendar.balanceYearMonth(mutable, value);
}
break;
}
case 'month':
mutable.month = cycleValue(value.month, amount, 1, value.calendar.getMonthsInYear(value), options?.round);
break;
case 'day':
mutable.day = cycleValue(value.day, amount, 1, value.calendar.getDaysInMonth(value), options?.round);
break;
default:
throw new Error('Unsupported field ' + field);
}
if (value.calendar.balanceDate) {
value.calendar.balanceDate(mutable);
}
constrain(mutable);
return mutable;
}
export function cycleTime(value: CalendarDateTime, field: TimeField, amount: number, options?: CycleTimeOptions): CalendarDateTime;
export function cycleTime(value: Time, field: TimeField, amount: number, options?: CycleTimeOptions): Time;
export function cycleTime(value: Time | CalendarDateTime, field: TimeField, amount: number, options?: CycleTimeOptions): Mutable<Time | CalendarDateTime> {
let mutable: Mutable<Time | CalendarDateTime> = value.copy();
switch (field) {
case 'hour': {
let hours = value.hour;
let min = 0;
let max = 23;
if (options?.hourCycle === 12) {
let isPM = hours >= 12;
min = isPM ? 12 : 0;
max = isPM ? 23 : 11;
}
mutable.hour = cycleValue(hours, amount, min, max, options?.round);
break;
}
case 'minute':
mutable.minute = cycleValue(value.minute, amount, 0, 59, options?.round);
break;
case 'second':
mutable.second = cycleValue(value.second, amount, 0, 59, options?.round);
break;
case 'millisecond':
mutable.millisecond = cycleValue(value.millisecond, amount, 0, 999, options?.round);
break;
default:
throw new Error('Unsupported field ' + field);
}
return mutable;
}
function cycleValue(value: number, amount: number, min: number, max: number, round = false) {
if (round) {
value += Math.sign(amount);
if (value < min) {
value = max;
}
let div = Math.abs(amount);
if (amount > 0) {
value = Math.ceil(value / div) * div;
} else {
value = Math.floor(value / div) * div;
}
if (value > max) {
value = min;
}
} else {
value += amount;
if (value < min) {
value = max - (min - value - 1);
} else if (value > max) {
value = min + (value - max - 1);
}
}
return value;
}
export function addZoned(dateTime: ZonedDateTime, duration: DateTimeDuration): ZonedDateTime {
let ms: number;
if ((duration.years != null && duration.years !== 0) || (duration.months != null && duration.months !== 0) || (duration.weeks != null && duration.weeks !== 0) || (duration.days != null && duration.days !== 0)) {
let res = add(toCalendarDateTime(dateTime), {
years: duration.years,
months: duration.months,
weeks: duration.weeks,
days: duration.days
});
// Changing the date may change the timezone offset, so we need to recompute
// using the 'compatible' disambiguation.
ms = toAbsolute(res, dateTime.timeZone);
} else {
// Otherwise, preserve the offset of the original date.
ms = epochFromDate(dateTime) - dateTime.offset;
}
// Perform time manipulation in milliseconds rather than on the original time fields to account for DST.
// For example, adding one hour during a DST transition may result in the hour field staying the same or
// skipping an hour. This results in the offset field changing value instead of the specified field.
ms += duration.milliseconds || 0;
ms += (duration.seconds || 0) * 1000;
ms += (duration.minutes || 0) * 60 * 1000;
ms += (duration.hours || 0) * 60 * 60 * 1000;
let res = fromAbsolute(ms, dateTime.timeZone);
return toCalendar(res, dateTime.calendar);
}
export function subtractZoned(dateTime: ZonedDateTime, duration: DateTimeDuration): ZonedDateTime {
return addZoned(dateTime, invertDuration(duration));
}
export function cycleZoned(dateTime: ZonedDateTime, field: DateField | TimeField, amount: number, options?: CycleTimeOptions): ZonedDateTime {
// For date fields, we want the time to remain consistent and the UTC offset to potentially change to account for DST changes.
// For time fields, we want the time to change by the amount given. This may result in the hour field staying the same, but the UTC
// offset changing in the case of a backward DST transition, or skipping an hour in the case of a forward DST transition.
switch (field) {
case 'hour': {
let min = 0;
let max = 23;
if (options?.hourCycle === 12) {
let isPM = dateTime.hour >= 12;
min = isPM ? 12 : 0;
max = isPM ? 23 : 11;
}
// The minimum and maximum hour may be affected by daylight saving time.
// For example, it might jump forward at midnight, and skip 1am.
// Or it might end at midnight and repeat the 11pm hour. To handle this, we get
// the possible absolute times for the min and max, and find the maximum range
// that is within the current day.
let plainDateTime = toCalendarDateTime(dateTime);
let minDate = toCalendar(setTime(plainDateTime, {hour: min}), new GregorianCalendar());
let minAbsolute = [toAbsolute(minDate, dateTime.timeZone, 'earlier'), toAbsolute(minDate, dateTime.timeZone, 'later')]
.filter(ms => fromAbsolute(ms, dateTime.timeZone).day === minDate.day)[0];
let maxDate = toCalendar(setTime(plainDateTime, {hour: max}), new GregorianCalendar());
let maxAbsolute = [toAbsolute(maxDate, dateTime.timeZone, 'earlier'), toAbsolute(maxDate, dateTime.timeZone, 'later')]
.filter(ms => fromAbsolute(ms, dateTime.timeZone).day === maxDate.day).pop()!;
// Since hours may repeat, we need to operate on the absolute time in milliseconds.
// This is done in hours from the Unix epoch so that cycleValue works correctly,
// and then converted back to milliseconds.
let ms = epochFromDate(dateTime) - dateTime.offset;
let hours = Math.floor(ms / ONE_HOUR);
let remainder = ms % ONE_HOUR;
ms = cycleValue(
hours,
amount,
Math.floor(minAbsolute / ONE_HOUR),
Math.floor(maxAbsolute / ONE_HOUR),
options?.round
) * ONE_HOUR + remainder;
// Now compute the new timezone offset, and convert the absolute time back to local time.
return toCalendar(fromAbsolute(ms, dateTime.timeZone), dateTime.calendar);
}
case 'minute':
case 'second':
case 'millisecond':
// @ts-ignore
return cycleTime(dateTime, field, amount, options);
case 'era':
case 'year':
case 'month':
case 'day': {
let res = cycleDate(toCalendarDateTime(dateTime), field, amount, options);
let ms = toAbsolute(res, dateTime.timeZone);
return toCalendar(fromAbsolute(ms, dateTime.timeZone), dateTime.calendar);
}
default:
throw new Error('Unsupported field ' + field);
}
}
export function setZoned(dateTime: ZonedDateTime, fields: DateFields & TimeFields, disambiguation?: Disambiguation): ZonedDateTime {
// Set the date/time fields, and recompute the UTC offset to account for DST changes.
// We also need to validate by converting back to a local time in case hours are skipped during forward DST transitions.
let plainDateTime = toCalendarDateTime(dateTime);
let res = setTime(set(plainDateTime, fields), fields);
// If the resulting plain date time values are equal, return the original time.
// We don't want to change the offset when setting the time to the same value.
if (res.compare(plainDateTime) === 0) {
return dateTime;
}
let ms = toAbsolute(res, dateTime.timeZone, disambiguation);
return toCalendar(fromAbsolute(ms, dateTime.timeZone), dateTime.calendar);
}
@@ -0,0 +1,5 @@
var convert = require('./convert'),
func = convert('ary', require('../ary'));
func.placeholder = require('./placeholder');
module.exports = func;
@@ -0,0 +1,30 @@
/**
* List of lowercase HTML “block” tag names.
*
* The list, when parsing HTML (flow), results in more relaxed rules (condition
* 6).
* Because they are known blocks, the HTML-like syntax doesn’t have to be
* strictly parsed.
* For tag names not in this list, a more strict algorithm (condition 7) is used
* to detect whether the HTML-like syntax is seen as HTML (flow) or not.
*
* This is copied from:
* <https://spec.commonmark.org/0.30/#html-blocks>.
*
* > 👉 **Note**: `search` was added in `CommonMark@0.31`.
*/
export const htmlBlockNames: string[];
/**
* List of lowercase HTML “raw” tag names.
*
* The list, when parsing HTML (flow), results in HTML that can include lines
* without exiting, until a closing tag also in this list is found (condition
* 1).
*
* This module is copied from:
* <https://spec.commonmark.org/0.30/#html-blocks>.
*
* > 👉 **Note**: `textarea` was added in `CommonMark@0.30`.
*/
export const htmlRawNames: string[];
//# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,3 @@
export declare type EqualityFn = (newArgs: any[], lastArgs: any[]) => boolean;
declare function memoizeOne<ResultFn extends (this: any, ...newArgs: any[]) => ReturnType<ResultFn>>(resultFn: ResultFn, isEqual?: EqualityFn): ResultFn;
export default memoizeOne;
@@ -0,0 +1,49 @@
/**
* ```asn1
* keyBag BAG-TYPE ::=
* {KeyBag IDENTIFIED BY {bagtypes 1}}
* ```
*/
export declare const id_keyBag = "1.2.840.113549.1.12.10.1.1";
/**
* ```asn1
* pkcs8ShroudedKeyBag BAG-TYPE ::=
* {PKCS8ShroudedKeyBag IDENTIFIED BY {bagtypes 2}}
* ```
*/
export declare const id_pkcs8ShroudedKeyBag = "1.2.840.113549.1.12.10.1.2";
/**
* ```asn1
* certBag BAG-TYPE ::=
* {CertBag IDENTIFIED BY {bagtypes 3}}
* ```
*/
export declare const id_certBag = "1.2.840.113549.1.12.10.1.3";
/**
* ```asn1
* crlBag BAG-TYPE ::=
* {CRLBag IDENTIFIED BY {bagtypes 4}}
* ```
*/
export declare const id_CRLBag = "1.2.840.113549.1.12.10.1.4";
/**
* ```asn1
* secretBag BAG-TYPE ::=
* {SecretBag IDENTIFIED BY {bagtypes 5}}
* ```
*/
export declare const id_SecretBag = "1.2.840.113549.1.12.10.1.5";
/**
* ```asn1
* safeContentsBag BAG-TYPE ::=
* {SafeContents IDENTIFIED BY {bagtypes 6}}
* ```
*/
export declare const id_SafeContents = "1.2.840.113549.1.12.10.1.6";
/**
* ```asn1
* pkcs-9 OBJECT IDENTIFIER ::= {iso(1) member-body(2) us(840)
* rsadsi(113549) pkcs(1) 9}
* ```
*/
export declare const id_pkcs_9 = "1.2.840.113549.1.9";
@@ -0,0 +1,154 @@
{
"name": "goober",
"version": "2.1.18",
"description": "A less than 1KB css-in-js solution",
"sideEffects": false,
"main": "dist/goober.cjs",
"module": "dist/goober.esm.js",
"umd:main": "dist/goober.umd.js",
"source": "src/index.js",
"unpkg": "dist/goober.umd.js",
"types": "goober.d.ts",
"type": "module",
"files": [
"src",
"macro",
"global/dist",
"global/src",
"global/package.json",
"global/global.d.ts",
"prefixer/dist",
"prefixer/src",
"prefixer/package.json",
"prefixer/autoprefixer.d.ts",
"prefixer/README.md",
"should-forward-prop/dist",
"should-forward-prop/src",
"should-forward-prop/package.json",
"should-forward-prop/should-forward-prop.d.ts",
"should-forward-prop/README.md",
"README.md",
"dist",
"package.json",
"typings.json",
"goober.d.ts"
],
"exports": {
".": {
"require": "./dist/goober.cjs",
"import": "./dist/goober.modern.js",
"umd": "./dist/goober.umd.js",
"types": "./goober.d.ts"
},
"./macro": "./macro/index.js",
"./global": {
"import": "./global/dist/goober-global.modern.js",
"require": "./global/dist/goober-global.cjs",
"umd": "./global/dist/goober-global.umd.js",
"types": "./global/global.d.ts"
},
"./prefixer": {
"import": "./prefixer/dist/goober-autoprefixer.modern.js",
"require": "./prefixer/dist/goober-autoprefixer.cjs",
"umd": "./prefixer/dist/goober-autoprefixer.umd.js",
"types": "./prefixer/autoprefixer.d.ts"
},
"./should-forward-prop": {
"import": "./should-forward-prop/dist/goober-should-forward-prop.modern.js",
"require": "./should-forward-prop/dist/goober-should-forward-prop.cjs",
"umd": "./should-forward-prop/dist/goober-should-forward-prop.umd.js",
"types": "./should-forward-prop/should-forward-prop.d.ts"
}
},
"scripts": {
"test": "npm run test-ts && npm run test-unit -- --ci --coverage && npm run build && npm run test-perf",
"test-perf": "NODE_ENV=production node benchmarks/perf.cjs",
"test-perf-hash": "NODE_ENV=production node benchmarks/perf-hash.cjs",
"test-unit-core": "jest --setupFiles ./tests/setup.js --roots ./src packages",
"test-unit": "npm run test-unit-core && npm run test-addon-global && npm run test-addon-prefixer",
"test-addon-global": "cd global && npm run test",
"test-addon-prefixer": "cd prefixer && npm run test",
"test-ts": "tsc -p ts-tests",
"clean": "rimraf dist",
"size-check": "filesize",
"build": "npm run build:core && npm run build:prefixer && npm run build:global && npm run build:should-forward-prop",
"build:prefixer": "cd ./prefixer && npm run build",
"build:global": "cd ./global && npm run build",
"build:should-forward-prop": "cd ./should-forward-prop && npm run build",
"build:core": "npm run clean && npm run build:dist && npm run size-check",
"build:lib": "microbundle --entry src/index.js --name goober --no-sourcemap --generateTypes false",
"build:dist": "npm run build:lib -- --output dist",
"build:debug": "npm run build:lib -- --output debug --no-compress",
"dev": "npm run clean && microbundle watch --entry src/index.js --output dist --name goober",
"sandbox": "wmr --public sandbox/wmr",
"deploy": "npm run build && npm publish",
"format": "prettier \"**/*.{js,ts,tsx,md}\" --write"
},
"keywords": [
"css-in-js",
"goober",
"styled",
"emotion",
"styled-components",
"javascript",
"react",
"preact"
],
"author": "Cristian <botecristian@yahoo.com>",
"repository": {
"type": "git",
"url": "https://github.com/cristianbote/goober"
},
"license": "MIT",
"devDependencies": {
"@ampproject/filesize": "^4.0.0",
"@babel/core": "^7.2.2",
"@babel/plugin-transform-react-jsx": "^7.7.0",
"@babel/preset-env": "^7.3.1",
"@emotion/core": "^11.0.0",
"@emotion/styled": "^11.0.0",
"@emotion/react": "^11.1.4",
"@types/react": "^16.9.34",
"babel-jest": "^24.1.0",
"benchmark": "^2.1.4",
"csstype": "^3.0.10",
"husky": "4.2.4",
"jest": "^24.1.0",
"lint-staged": "10.2.0",
"microbundle": "^0.15.0",
"preact": "^10.0.0",
"prettier": "2.0.5",
"react": "^16.12.0",
"react-dom": "^16.12.0",
"rimraf": "3.0.2",
"styled-components": "^5.2.1",
"typescript": "^3.6.3",
"wmr": "^3.7.2"
},
"peerDependencies": {
"csstype": "^3.0.10"
},
"typings": "./goober.d.ts",
"filesize": {
"./dist/goober.modern.js": {
"gzip": "1300B"
},
"./dist/goober.cjs": {
"gzip": "1300B"
}
},
"lint-staged": {
"*.{js,ts,tsx,md}": [
"prettier --write"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"collective": {
"type": "opencollective",
"url": "https://opencollective.com/goober"
}
}
@@ -0,0 +1,123 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ToRawFixed = ToRawFixed;
var tslib_1 = require("tslib");
var decimal_js_1 = tslib_1.__importDefault(require("decimal.js"));
var utils_1 = require("../utils");
var ApplyUnsignedRoundingMode_1 = require("./ApplyUnsignedRoundingMode");
//IMPL: Setting Decimal configuration
decimal_js_1.default.set({
toExpPos: 100,
});
//IMPL: Helper function to calculate raw fixed value
function ToRawFixedFn(n, f) {
return n.times(decimal_js_1.default.pow(10, -f));
}
//IMPL: Helper function to find n1 and r1
function findN1R1(x, f, roundingIncrement) {
var nx = x.times(decimal_js_1.default.pow(10, f)).floor();
var n1 = nx.div(roundingIncrement).floor().times(roundingIncrement);
var r1 = ToRawFixedFn(n1, f);
return {
n1: n1,
r1: r1,
};
}
//IMPL: Helper function to find n2 and r2
function findN2R2(x, f, roundingIncrement) {
var nx = x.times(decimal_js_1.default.pow(10, f)).ceil();
var n2 = nx.div(roundingIncrement).ceil().times(roundingIncrement);
var r2 = ToRawFixedFn(n2, f);
return {
n2: n2,
r2: r2,
};
}
/**
* https://tc39.es/ecma402/#sec-torawfixed
* @param x a finite non-negative Number or BigInt
* @param minFraction an integer between 0 and 20
* @param maxFraction an integer between 0 and 20
*/
function ToRawFixed(x, minFraction, maxFraction, roundingIncrement, unsignedRoundingMode) {
// 1. Let f be maxFraction.
var f = maxFraction;
// 2. Let n1 and r1 be the results of performing the maximized rounding of x to f fraction digits.
var _a = findN1R1(x, f, roundingIncrement), n1 = _a.n1, r1 = _a.r1;
// 3. Let n2 and r2 be the results of performing the minimized rounding of x to f fraction digits.
var _b = findN2R2(x, f, roundingIncrement), n2 = _b.n2, r2 = _b.r2;
// 4. Let r be ApplyUnsignedRoundingMode(x, r1, r2, unsignedRoundingMode).
var r = (0, ApplyUnsignedRoundingMode_1.ApplyUnsignedRoundingMode)(x, r1, r2, unsignedRoundingMode);
var n, xFinal;
var m;
// 5. If r is equal to r1, then
if (r.eq(r1)) {
// a. Let n be n1.
n = n1;
// b. Let xFinal be r1.
xFinal = r1;
}
else {
// 6. Else,
// a. Let n be n2.
n = n2;
// b. Let xFinal be r2.
xFinal = r2;
}
// 7. If n is 0, let m be "0".
if (n.isZero()) {
m = '0';
}
else {
// 8. Else, let m be the String representation of n.
m = n.toString();
}
var int;
// 9. If f is not 0, then
if (f !== 0) {
// a. Let k be the length of m.
var k = m.length;
// b. If k < f, then
if (k <= f) {
// i. Let z be the String value consisting of f + 1 - k occurrences of the character "0".
var z = (0, utils_1.repeat)('0', f - k + 1);
// ii. Set m to the string-concatenation of z and m.
m = z + m;
// iii. Set k to f + 1.
k = f + 1;
}
// c. Let a be the substring of m from 0 to k - f.
var a = m.slice(0, k - f);
// d. Let b be the substring of m from k - f to k.
var b = m.slice(m.length - f);
// e. Set m to the string-concatenation of a, ".", and b.
m = a + '.' + b;
// f. Let int be the length of a.
int = a.length;
}
else {
// 10. Else, let int be the length of m.
int = m.length;
}
// 11. Let cut be maxFraction - minFraction.
var cut = maxFraction - minFraction;
// 12. Repeat, while cut > 0 and the last character of m is "0",
while (cut > 0 && m[m.length - 1] === '0') {
// a. Remove the last character from m.
m = m.slice(0, m.length - 1);
// b. Decrease cut by 1.
cut--;
}
// 13. If the last character of m is ".", then
if (m[m.length - 1] === '\u002e') {
// a. Remove the last character from m.
m = m.slice(0, m.length - 1);
}
// 14. Return the Record { [[FormattedString]]: m, [[RoundedNumber]]: xFinal, [[IntegerDigitsCount]]: int, [[RoundingMagnitude]]: -f }.
return {
formattedString: m,
roundedNumber: xFinal,
integerDigitsCount: int,
roundingMagnitude: -f,
};
}
@@ -0,0 +1 @@
module.exports={A:{D:{"1":"0 1 2 3 4 5 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","33":"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"},L:{"1":"I"},B:{"1":"0 1 2 3 4 5 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 L M G N O P","33":"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"},C:{"1":"0 1 2 3 4 5 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 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U 0C 1C"},M:{"1":"MC"},A:{"2":"K D E F A B wC"},F:{"1":"0 1 2 3 4 5 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","33":"6 7 8 9 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"},K:{"1":"H","2":"A B C NC uC OC"},E:{"1":"G 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","2":"ED","33":"J ZB K D E F A B C L M 2C ZC 3C 4C 5C 6C aC NC OC 7C 8C"},G:{"1":"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","33":"E ZC KD vC LD MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD"},P:{"1":"7 8 9 AB BB CB DB EB FB","33":"6 J oD pD qD rD sD aC tD uD vD wD xD QC RC SC yD"},I:{"1":"I","2":"TC J iD jD kD lD vC","33":"mD nD"}},B:6,C:":autofill CSS pseudo-class",D:undefined};
@@ -0,0 +1,246 @@
{
"name": "ttf2woff2",
"version": "4.0.5",
"description": "Convert TTF files to WOFF2 ones.",
"main": "dist/index",
"browser": "jssrc/index.js",
"engines": {
"node": ">=12"
},
"directories": {
"test": "tests"
},
"metapak": {
"configs": [
"main",
"readme",
"eslint",
"babel",
"jest"
],
"data": {
"files": "'src/**/*.js' 'jssrc/**/*.js'",
"testsFiles": "'tests/**/*.test.js'",
"distFiles": "'dist/**/*.js'",
"ignore": [
"dist",
"build"
],
"bundleFiles": [
"dist",
"src",
"jssrc",
"binding.gyp",
"csrc"
]
}
},
"scripts": {
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md",
"cli": "env NODE_ENV=${NODE_ENV:-cli}",
"compile": "rimraf -f 'dist' && npm run compile:cjs && npm run compile:mjs",
"compile:cjs": "babel --env-name=cjs --out-dir=dist --source-maps=true src",
"compile:mjs": "babel --env-name=mjs --out-file-extension=.mjs --out-dir=dist --source-maps=true src",
"configure": "node-gyp configure",
"cover": "npm run jest -- --coverage",
"coveralls": "npm run cover && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage",
"cz": "env NODE_ENV=${NODE_ENV:-cli} git cz",
"emcc": "miniquery -p \"targets.#.sources.#\" ./binding.gyp | grep -v \"csrc/addon.cc\" | xargs emcc --bind -o jssrc/ttf2woff2.js -O3 --memory-init-file 0 -s \"TOTAL_MEMORY=536870912\" -s \"ALLOW_MEMORY_GROWTH=1\" -s BINARYEN_ASYNC_COMPILATION=0 -s 'EXPORTED_RUNTIME_METHODS=[\"getValue\", \"writeArrayToMemory\"]' -s NODEJS_CATCH_EXIT=0 -s NODEJS_CATCH_REJECTION=0 --post-js jssrc/post.js csrc/fallback.cc",
"emcc-debug": "miniquery -p \"targets.#.sources.#\" ./binding.gyp | grep -v \"csrc/addon.cc\" | xargs emcc --bind -o jssrc/ttf2woff2.js -s \"ALLOW_MEMORY_GROWTH=1\" -s \"ASSERTIONS=1\" -s BINARYEN_ASYNC_COMPILATION=0 -s 'EXPORTED_RUNTIME_METHODS=[\"getValue\", \"writeArrayToMemory\"]' -s NODEJS_CATCH_EXIT=0 -s NODEJS_CATCH_REJECTION=0 --post-js jssrc/post.js csrc/fallback.cc",
"install": "((node-gyp configure && node-gyp build) > builderror.log) || (exit 0)",
"jest": "NODE_ENV=test jest",
"lint": "eslint 'src/**/*.js' 'jssrc/**/*.js'",
"make": "node-gyp build",
"metapak": "metapak",
"precz": "npm t && npm run lint && npm run metapak -- -s && npm run compile",
"prepare": "npm run compile",
"prettier": "prettier --write 'src/**/*.js' 'jssrc/**/*.js'",
"preversion": "npm run lint && npm test && npm t && npm run metapak -- -s && npm run compile",
"test": "npm run jest",
"version": "npm run changelog"
},
"repository": {
"type": "git",
"url": "git@github.com:nfroidure/ttf2woff2.git"
},
"keywords": [
"ttf",
"woff2",
"fonts"
],
"author": {
"name": "Nicolas Froidure",
"email": "nicolas.froidure@insertafter.com",
"url": "https://insertafter.com/en/index.html"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/nfroidure/ttf2woff2/issues"
},
"homepage": "https://github.com/nfroidure/ttf2woff2",
"dependencies": {
"bindings": "^1.5.0",
"bufferstreams": "^3.0.0",
"nan": "^2.14.2",
"node-gyp": "^9.0.0"
},
"devDependencies": {
"@babel/cli": "^7.12.1",
"@babel/core": "^7.12.3",
"@babel/preset-env": "^7.12.1",
"commitizen": "^4.1.2",
"conventional-changelog-cli": "^2.1.1",
"coveralls": "^3.1.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.14.0",
"eslint-plugin-prettier": "^4.0.0",
"jest": "^27.0.6",
"metapak": "^3.1.10",
"metapak-nfroidure": "11.0.4",
"miniquery": "^1.1.2",
"mocha": "^9.0.2",
"mocha-lcov-reporter": "^1.3.0",
"prettier": "^2.6.2"
},
"bin": {
"ttf2woff2": "bin/ttf2woff2.js"
},
"gypfile": true,
"contributors": [
{
"name": "Anders Kaseorg",
"email": "andersk@mit.edu"
}
],
"files": [
"dist",
"src",
"jssrc",
"binding.gyp",
"csrc",
"LICENSE",
"README.md",
"CHANGELOG.md"
],
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"greenkeeper": {
"ignore": [
"commitizen",
"cz-conventional-changelog",
"conventional-changelog-cli",
"eslint",
"eslint-config-prettier",
"prettier",
"@babel/cli",
"@babel/core",
"@babel/preset-env",
"jest",
"coveralls"
]
},
"eslintConfig": {
"extends": [
"eslint:recommended"
],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"modules": true
},
"env": {
"es6": true,
"node": true,
"jest": true,
"mocha": true
},
"plugins": [
"prettier"
],
"rules": {
"prettier/prettier": "error"
}
},
"eslintIgnore": [
"jssrc/ttf2woff2.wasm",
"jssrc/ttf2woff2.js",
"jssrc/post.js"
],
"prettier": {
"semi": true,
"printWidth": 80,
"singleQuote": true,
"trailingComma": "all",
"proseWrap": "always"
},
"module": "src/index.mjs",
"babel": {
"ignore": [
"jssrc/ttf2woff2.wasm",
"jssrc/ttf2woff2.js"
],
"presets": [
[
"@babel/env",
{
"targets": {
"node": "12"
}
}
]
],
"env": {
"cjs": {
"presets": [
[
"@babel/env",
{
"targets": {
"node": "12"
},
"modules": "commonjs"
}
]
],
"comments": true
},
"mjs": {
"presets": [
[
"@babel/env",
{
"targets": {
"node": "12"
},
"modules": false
}
]
],
"comments": false
}
},
"sourceMaps": true
},
"jest": {
"coverageReporters": [
"lcov"
],
"testPathIgnorePatterns": [
"/node_modules/"
],
"roots": [
"<rootDir>/tests"
],
"transformIgnorePatterns": [
"jssrc/ttf2woff2.wasm",
"jssrc/ttf2woff2.js"
],
"moduleFileExtensions": [
"js",
"wasm"
]
}
}
@@ -0,0 +1,40 @@
/**
* @file 对轮廓进行transform变换
* @author mengke01(kekee000@gmail.com)
*
* 参考资料:
* http://blog.csdn.net/henren555/article/details/9699449
*
* |X| |a c e| |x|
* |Y| = |b d f| * |y|
* |1| |0 0 1| |1|
*
* X = x * a + y * c + e
* Y = x * b + y * d + f
*/
/**
* 图形仿射矩阵变换
*
* @param {Array.<Object>} contour 轮廓点
* @param {number} a m11
* @param {number} b m12
* @param {number} c m21
* @param {number} d m22
* @param {number} e dx
* @param {number} f dy
* @return {Array.<Object>} contour 轮廓点
*/
export default function transform(contour, a, b, c, d, e, f) {
let x;
let y;
let p;
for (let i = 0, l = contour.length; i < l; i++) {
p = contour[i];
x = p.x;
y = p.y;
p.x = x * a + y * c + e;
p.y = x * b + y * d + f;
}
return contour;
}
@@ -0,0 +1,37 @@
/*
* 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 {EffectCallback, useRef} from 'react';
import {useLayoutEffect} from './useLayoutEffect';
// Like useLayoutEffect, but only called for updates after the initial render.
export function useUpdateLayoutEffect(effect: EffectCallback, dependencies: any[]): void {
const isInitialMount = useRef(true);
const lastDeps = useRef<any[] | null>(null);
useLayoutEffect(() => {
isInitialMount.current = true;
return () => {
isInitialMount.current = false;
};
}, []);
useLayoutEffect(() => {
if (isInitialMount.current) {
isInitialMount.current = false;
} else if (!lastDeps.current || dependencies.some((dep, i) => !Object.is(dep, lastDeps[i]))) {
effect();
}
lastDeps.current = dependencies;
// eslint-disable-next-line react-hooks/exhaustive-deps
}, dependencies);
}
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=isAnyAncestorBindingConstraints.spec.d.ts.map
@@ -0,0 +1,45 @@
{
"name": "@so-ric/colorspace",
"version": "1.1.6",
"description": "Generate HEX colors for a given namespace using color v5",
"main": "dist/index.cjs.js",
"scripts": {
"build": "rollup -c",
"prepare": "npm run build",
"test": "mocha test.js"
},
"keywords": [
"namespace",
"color",
"hex",
"colorize",
"name",
"space",
"colorspace"
],
"author": "Arnout Kazemier",
"license": "MIT",
"bugs": {
"url": "https://github.com/so-ric/colorspace/issues"
},
"homepage": "https://github.com/so-ric/colorspace",
"repository": {
"type": "git",
"url": "https://github.com/so-ric/colorspace"
},
"dependencies": {
"color": "^5.0.2",
"text-hex": "1.0.x"
},
"devDependencies": {
"assume": "2.3.x",
"mocha": "11.7.x",
"pre-commit": "1.2.x",
"rollup": "^3.0.0",
"@rollup/plugin-node-resolve": "^15.0.0",
"@rollup/plugin-commonjs": "^25.0.0",
"@rollup/plugin-json": "^5.0.0",
"@rollup/plugin-babel": "^6.0.0",
"rimraf": "^5.0.0"
}
}
@@ -0,0 +1,3 @@
import { ResolutionParams } from '../models/ResolutionParams';
export declare function resolve(params: ResolutionParams): unknown;
//# sourceMappingURL=resolve.d.ts.map
@@ -0,0 +1,77 @@
import {Except} from 'type-fest';
import {readPackageAsync, readPackageSync, Options as ReadPackageOptions, NormalizeOptions as ReadPackageNormalizeOptions, PackageJson, NormalizedPackageJson} from 'read-pkg';
export type Options = {
/**
Directory to start looking for a package.json file.
@default process.cwd()
*/
cwd?: string;
} & Except<ReadPackageOptions, 'cwd'>;
export type NormalizeOptions = {
/**
Directory to start looking for a package.json file.
@default process.cwd()
*/
cwd?: string;
} & Except<ReadPackageNormalizeOptions, 'cwd'>;
export interface ReadResult {
packageJson: PackageJson;
path: string;
}
export interface NormalizedReadResult {
packageJson: NormalizedPackageJson;
path: string;
}
export {
PackageJson,
NormalizedPackageJson
};
/**
Read the closest `package.json` file.
@example
```
import {readPackageUpAsync} from 'read-pkg-up';
console.log(await readPackageUpAsync());
// {
// packageJson: {
// name: 'awesome-package',
// version: '1.0.0',
// …
// },
// path: '/Users/sindresorhus/dev/awesome-package/package.json'
// }
```
*/
export function readPackageUpAsync(options?: NormalizeOptions): Promise<NormalizedReadResult | undefined>;
export function readPackageUpAsync(options: Options): Promise<ReadResult | undefined>;
/**
Synchronously read the closest `package.json` file.
@example
```
import {readPackageUpSync} from 'read-pkg-up';
console.log(readPackageUpSync());
// {
// packageJson: {
// name: 'awesome-package',
// version: '1.0.0',
// …
// },
// path: '/Users/sindresorhus/dev/awesome-package/package.json'
// }
```
*/
export function readPackageUpSync(options?: NormalizeOptions): NormalizedReadResult | undefined;
export function readPackageUpSync(options: Options): ReadResult | undefined;
@@ -0,0 +1,9 @@
/**
* This module was automatically generated by `ts-interface-builder`
*/
import * as t from "ts-interface-checker";
export declare const Transform: t.TUnion;
export declare const SourceMapOptions: t.TIface;
export declare const Options: t.TIface;
declare const exportedTypeSuite: t.ITypeSuite;
export default exportedTypeSuite;
Loaded 100 of 35554 files, more files were not shown because too many files have changed in this diff. Show more