new license file version [CI SKIP]
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
* adds a pause and unpause method to Mousetrap
|
||||
* this allows you to enable or disable keyboard shortcuts
|
||||
* without having to reset Mousetrap and rebind everything
|
||||
*/
|
||||
/* global Mousetrap:true */
|
||||
(function(Mousetrap) {
|
||||
var _originalStopCallback = Mousetrap.prototype.stopCallback;
|
||||
|
||||
Mousetrap.prototype.stopCallback = function(e, element, combo) {
|
||||
var self = this;
|
||||
|
||||
if (self.paused) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return _originalStopCallback.call(self, e, element, combo);
|
||||
};
|
||||
|
||||
Mousetrap.prototype.pause = function() {
|
||||
var self = this;
|
||||
self.paused = true;
|
||||
};
|
||||
|
||||
Mousetrap.prototype.unpause = function() {
|
||||
var self = this;
|
||||
self.paused = false;
|
||||
};
|
||||
|
||||
Mousetrap.init();
|
||||
}) (Mousetrap);
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={C:{"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0.00465,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0.02789,"49":0,"50":0,"51":0,"52":0.00465,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0.00465,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0.03719,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0.02325,"103":0,"104":0,"105":0,"106":0.00465,"107":0.00465,"108":0.06974,"109":0.46955,"110":0.2185,"111":0,"112":0,"3.5":0,"3.6":0},D:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0.00465,"44":0.00465,"45":0,"46":0.00465,"47":0,"48":0,"49":0.00465,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0.00465,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0.00465,"72":0,"73":0,"74":0,"75":0.0093,"76":0.06974,"77":0.00465,"78":0,"79":0.00465,"80":0.00465,"81":0,"83":0.0093,"84":0.00465,"85":0.00465,"86":0,"87":0.0093,"88":0.00465,"89":0.00465,"90":0.0093,"91":0.0093,"92":0,"93":0.05114,"94":0.01395,"95":0.00465,"96":0.00465,"97":0.0186,"98":0.0093,"99":0,"100":0.0093,"101":0.00465,"102":0.03719,"103":0.13947,"104":0.00465,"105":0.07438,"106":0.02325,"107":0.05114,"108":0.49744,"109":5.43468,"110":3.22641,"111":0.00465,"112":0,"113":0},F:{"9":0,"11":0,"12":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"60":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0.00465,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0.0093,"90":0,"91":0,"92":0,"93":0.01395,"94":0.06974,"95":0.04184,"9.5-9.6":0,"10.0-10.1":0,"10.5":0,"10.6":0,"11.1":0,"11.5":0,"11.6":0,"12.1":0},B:{"12":0.00465,"13":0,"14":0,"15":0.0093,"16":0.0093,"17":0.0093,"18":0.0093,"79":0,"80":0,"81":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0.00465,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0.00465,"104":0,"105":0.01395,"106":0,"107":0.06044,"108":0.07903,"109":1.63645,"110":2.03626},E:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0.00465,"10":0,"11":0,"12":0,"13":0.00465,"14":0.04649,"15":0.01395,_:"0","3.1":0,"3.2":0,"5.1":0,"6.1":0,"7.1":0,"9.1":0,"10.1":0,"11.1":0,"12.1":0.03254,"13.1":0.16272,"14.1":0.18596,"15.1":0.04184,"15.2-15.3":0.06509,"15.4":0.08833,"15.5":0.24175,"15.6":0.99024,"16.0":0.07903,"16.1":0.26499,"16.2":1.10646,"16.3":0.58113,"16.4":0.00465},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00417,"5.0-5.1":0,"6.0-6.1":0,"7.0-7.1":0,"8.1-8.4":0.02083,"9.0-9.2":0,"9.3":0.12082,"10.0-10.2":0,"10.3":0.11249,"11.0-11.2":0.02916,"11.3-11.4":0.02916,"12.0-12.1":0.03333,"12.2-12.5":0.53329,"13.0-13.1":0.01667,"13.2":0,"13.3":0.02083,"13.4-13.7":0.04583,"14.0-14.4":0.36664,"14.5-14.8":0.83744,"15.0-15.1":0.20415,"15.2-15.3":0.4208,"15.4":0.62912,"15.5":0.96659,"15.6":4.50799,"16.0":3.83304,"16.1":11.36164,"16.2":10.5992,"16.3":4.89546,"16.4":0.01667},P:{"4":0.03098,"20":1.43535,"5.0-5.4":0,"6.2-6.4":0,"7.2-7.4":0.24783,"8.2":0,"9.2":0.02065,"10.1":0,"11.1-11.2":0.05163,"12.0":0.01033,"13.0":0.06196,"14.0":0.08261,"15.0":0.02065,"16.0":0.09294,"17.0":0.04131,"18.0":0.14457,"19.0":2.61255},I:{"0":0,"3":0,"4":0.03422,"2.1":0,"2.2":0.02053,"2.3":0.02053,"4.1":0.03422,"4.2-4.3":0.06844,"4.4":0,"4.4.3-4.4.4":0.34906},K:{_:"0 10 11 12 11.1 11.5 12.1"},A:{"6":0,"7":0,"8":0.0186,"9":0.00465,"10":0.00465,"11":0.04184,"5.5":0},N:{"10":0.0107,"11":0},S:{"2.5":0,_:"3.0-3.1"},J:{"7":0,"10":0.00535},O:{"0":0.02676},H:{"0":0.07092},L:{"0":33.40748},R:{_:"0"},M:{"0":0.14983},Q:{"13.1":0}};
|
||||
@@ -0,0 +1 @@
|
||||
{"name":"universalify","version":"0.1.2","files":{"package.json":{"checkedAt":1678883671981,"integrity":"sha512-uz2w4lZkej+TWHeZ+N9Jy6icQJl+fny3kRWvf32tpYLG/MGJqqDOyBoc7GywL3zUs44AXDLybzEuxcVwUnEaGQ==","mode":436,"size":820},"LICENSE":{"checkedAt":1678883671981,"integrity":"sha512-pbs/at7xx/YXvA/EeNUBu6IUrMMh+EerE1URm1WGO2+l8ctpSZuv/dwamKLHiKjL7PI653/zdK5KBvd/iU6u7Q==","mode":436,"size":1100},"index.js":{"checkedAt":1678883671981,"integrity":"sha512-bO/+xxruPQCbTpiNR8RCgNdDOEQLuyKONg4Zmiflox2e3VUmE2D0f9ioHEvYeNeDitMYclhJSZqfTBBZklaCfw==","mode":436,"size":777},"README.md":{"checkedAt":1678883671981,"integrity":"sha512-h5bDd0MX09yYFT+SbppMzxPdraSAZwunF6jwoRmSAWmBlUZx/o4jtDV1AwissT3LlSKlVOCwI61Mzaomw9xirA==","mode":436,"size":2008}}}
|
||||
@@ -0,0 +1,5 @@
|
||||
var convert = require('./convert'),
|
||||
func = convert('inRange', require('../inRange'));
|
||||
|
||||
func.placeholder = require('./placeholder');
|
||||
module.exports = func;
|
||||
@@ -0,0 +1,36 @@
|
||||
var baseForOwn = require('./_baseForOwn'),
|
||||
castFunction = require('./_castFunction');
|
||||
|
||||
/**
|
||||
* Iterates over own enumerable string keyed properties of an object and
|
||||
* invokes `iteratee` for each property. The iteratee is invoked with three
|
||||
* arguments: (value, key, object). Iteratee functions may exit iteration
|
||||
* early by explicitly returning `false`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 0.3.0
|
||||
* @category Object
|
||||
* @param {Object} object The object to iterate over.
|
||||
* @param {Function} [iteratee=_.identity] The function invoked per iteration.
|
||||
* @returns {Object} Returns `object`.
|
||||
* @see _.forOwnRight
|
||||
* @example
|
||||
*
|
||||
* function Foo() {
|
||||
* this.a = 1;
|
||||
* this.b = 2;
|
||||
* }
|
||||
*
|
||||
* Foo.prototype.c = 3;
|
||||
*
|
||||
* _.forOwn(new Foo, function(value, key) {
|
||||
* console.log(key);
|
||||
* });
|
||||
* // => Logs 'a' then 'b' (iteration order is not guaranteed).
|
||||
*/
|
||||
function forOwn(object, iteratee) {
|
||||
return object && baseForOwn(object, castFunction(iteratee));
|
||||
}
|
||||
|
||||
module.exports = forOwn;
|
||||
@@ -0,0 +1,41 @@
|
||||
# DOMException
|
||||
An implementation of the DOMException class from NodeJS
|
||||
|
||||
This package implements the [`DOMException`](https://developer.mozilla.org/en-US/docs/Web/API/DOMException) class, from NodeJS itself.
|
||||
NodeJS has DOMException built in, but it's not globally available, and you can't require/import it from somewhere.
|
||||
|
||||
The only possible way is to use some web-ish tools that have been introduced into NodeJS that throws an error and catch the constructor.
|
||||
This way you will have the same class that NodeJS has and you can check if the error is a instance of DOMException.
|
||||
The instanceof check would not have worked with a custom class such as the DOMexception provided by domenic which also is much larger in size.
|
||||
|
||||
```js
|
||||
import DOMException from 'node-domexception'
|
||||
|
||||
hello().catch(err => {
|
||||
if (err instanceof DOMException) {
|
||||
...
|
||||
}
|
||||
})
|
||||
|
||||
const e1 = new DOMException("Something went wrong", "BadThingsError");
|
||||
console.assert(e1.name === "BadThingsError");
|
||||
console.assert(e1.code === 0);
|
||||
|
||||
const e2 = new DOMException("Another exciting error message", "NoModificationAllowedError");
|
||||
console.assert(e2.name === "NoModificationAllowedError");
|
||||
console.assert(e2.code === 7);
|
||||
|
||||
console.assert(DOMException.INUSE_ATTRIBUTE_ERR === 10);
|
||||
```
|
||||
|
||||
## APIs
|
||||
|
||||
This package exposes two flavors of the `DOMException` interface depending on the imported module.
|
||||
|
||||
### `domexception` module
|
||||
|
||||
This module default-exports the `DOMException` interface constructor.
|
||||
|
||||
### `domexception/webidl2js-wrapper` module
|
||||
|
||||
This module exports the `DOMException` [interface wrapper API](https://github.com/jsdom/webidl2js#for-interfaces) generated by [webidl2js](https://github.com/jsdom/webidl2js).
|
||||
@@ -0,0 +1,75 @@
|
||||
import assertString from './util/assertString';
|
||||
import merge from './util/merge';
|
||||
var default_fqdn_options = {
|
||||
require_tld: true,
|
||||
allow_underscores: false,
|
||||
allow_trailing_dot: false,
|
||||
allow_numeric_tld: false,
|
||||
allow_wildcard: false,
|
||||
ignore_max_length: false
|
||||
};
|
||||
export default function isFQDN(str, options) {
|
||||
assertString(str);
|
||||
options = merge(options, default_fqdn_options);
|
||||
/* Remove the optional trailing dot before checking validity */
|
||||
|
||||
if (options.allow_trailing_dot && str[str.length - 1] === '.') {
|
||||
str = str.substring(0, str.length - 1);
|
||||
}
|
||||
/* Remove the optional wildcard before checking validity */
|
||||
|
||||
|
||||
if (options.allow_wildcard === true && str.indexOf('*.') === 0) {
|
||||
str = str.substring(2);
|
||||
}
|
||||
|
||||
var parts = str.split('.');
|
||||
var tld = parts[parts.length - 1];
|
||||
|
||||
if (options.require_tld) {
|
||||
// disallow fqdns without tld
|
||||
if (parts.length < 2) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!options.allow_numeric_tld && !/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(tld)) {
|
||||
return false;
|
||||
} // disallow spaces
|
||||
|
||||
|
||||
if (/\s/.test(tld)) {
|
||||
return false;
|
||||
}
|
||||
} // reject numeric TLDs
|
||||
|
||||
|
||||
if (!options.allow_numeric_tld && /^\d+$/.test(tld)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return parts.every(function (part) {
|
||||
if (part.length > 63 && !options.ignore_max_length) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(part)) {
|
||||
return false;
|
||||
} // disallow full-width chars
|
||||
|
||||
|
||||
if (/[\uff01-\uff5e]/.test(part)) {
|
||||
return false;
|
||||
} // disallow parts starting or ending with hyphen
|
||||
|
||||
|
||||
if (/^-|-$/.test(part)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!options.allow_underscores && /_/.test(part)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"FormatNumericToParts.d.ts","sourceRoot":"","sources":["../../../../../../packages/ecma402-abstract/NumberFormat/FormatNumericToParts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,oBAAoB,EAAE,gBAAgB,EAAC,MAAM,iBAAiB,CAAA;AAEtE,wBAAgB,oBAAoB,CAClC,EAAE,EAAE,IAAI,CAAC,YAAY,EACrB,CAAC,EAAE,MAAM,EACT,WAAW,EAAE;IACX,gBAAgB,CAAC,EAAE,EAAE,IAAI,CAAC,YAAY,GAAG,oBAAoB,CAAA;CAC9D,GACA,gBAAgB,EAAE,CAWpB"}
|
||||
@@ -0,0 +1,259 @@
|
||||
var Marker = require('../../tokenizer/marker');
|
||||
var split = require('../../utils/split');
|
||||
|
||||
var DEEP_SELECTOR_PATTERN = /\/deep\//;
|
||||
var DOUBLE_COLON_PATTERN = /^::/;
|
||||
var NOT_PSEUDO = ':not';
|
||||
var PSEUDO_CLASSES_WITH_ARGUMENTS = [
|
||||
':dir',
|
||||
':lang',
|
||||
':not',
|
||||
':nth-child',
|
||||
':nth-last-child',
|
||||
':nth-last-of-type',
|
||||
':nth-of-type'
|
||||
];
|
||||
var RELATION_PATTERN = /[>\+~]/;
|
||||
var UNMIXABLE_PSEUDO_CLASSES = [
|
||||
':after',
|
||||
':before',
|
||||
':first-letter',
|
||||
':first-line',
|
||||
':lang'
|
||||
];
|
||||
var UNMIXABLE_PSEUDO_ELEMENTS = [
|
||||
'::after',
|
||||
'::before',
|
||||
'::first-letter',
|
||||
'::first-line'
|
||||
];
|
||||
|
||||
var Level = {
|
||||
DOUBLE_QUOTE: 'double-quote',
|
||||
SINGLE_QUOTE: 'single-quote',
|
||||
ROOT: 'root'
|
||||
};
|
||||
|
||||
function isMergeable(selector, mergeablePseudoClasses, mergeablePseudoElements, multiplePseudoMerging) {
|
||||
var singleSelectors = split(selector, Marker.COMMA);
|
||||
var singleSelector;
|
||||
var i, l;
|
||||
|
||||
for (i = 0, l = singleSelectors.length; i < l; i++) {
|
||||
singleSelector = singleSelectors[i];
|
||||
|
||||
if (singleSelector.length === 0 ||
|
||||
isDeepSelector(singleSelector) ||
|
||||
(singleSelector.indexOf(Marker.COLON) > -1 && !areMergeable(singleSelector, extractPseudoFrom(singleSelector), mergeablePseudoClasses, mergeablePseudoElements, multiplePseudoMerging))) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
function isDeepSelector(selector) {
|
||||
return DEEP_SELECTOR_PATTERN.test(selector);
|
||||
}
|
||||
|
||||
function extractPseudoFrom(selector) {
|
||||
var list = [];
|
||||
var character;
|
||||
var buffer = [];
|
||||
var level = Level.ROOT;
|
||||
var roundBracketLevel = 0;
|
||||
var isQuoted;
|
||||
var isEscaped;
|
||||
var isPseudo = false;
|
||||
var isRelation;
|
||||
var wasColon = false;
|
||||
var index;
|
||||
var len;
|
||||
|
||||
for (index = 0, len = selector.length; index < len; index++) {
|
||||
character = selector[index];
|
||||
|
||||
isRelation = !isEscaped && RELATION_PATTERN.test(character);
|
||||
isQuoted = level == Level.DOUBLE_QUOTE || level == Level.SINGLE_QUOTE;
|
||||
|
||||
if (isEscaped) {
|
||||
buffer.push(character);
|
||||
} else if (character == Marker.DOUBLE_QUOTE && level == Level.ROOT) {
|
||||
buffer.push(character);
|
||||
level = Level.DOUBLE_QUOTE;
|
||||
} else if (character == Marker.DOUBLE_QUOTE && level == Level.DOUBLE_QUOTE) {
|
||||
buffer.push(character);
|
||||
level = Level.ROOT;
|
||||
} else if (character == Marker.SINGLE_QUOTE && level == Level.ROOT) {
|
||||
buffer.push(character);
|
||||
level = Level.SINGLE_QUOTE;
|
||||
} else if (character == Marker.SINGLE_QUOTE && level == Level.SINGLE_QUOTE) {
|
||||
buffer.push(character);
|
||||
level = Level.ROOT;
|
||||
} else if (isQuoted) {
|
||||
buffer.push(character);
|
||||
} else if (character == Marker.OPEN_ROUND_BRACKET) {
|
||||
buffer.push(character);
|
||||
roundBracketLevel++;
|
||||
} else if (character == Marker.CLOSE_ROUND_BRACKET && roundBracketLevel == 1 && isPseudo) {
|
||||
buffer.push(character);
|
||||
list.push(buffer.join(''));
|
||||
roundBracketLevel--;
|
||||
buffer = [];
|
||||
isPseudo = false;
|
||||
} else if (character == Marker.CLOSE_ROUND_BRACKET) {
|
||||
buffer.push(character);
|
||||
roundBracketLevel--;
|
||||
} else if (character == Marker.COLON && roundBracketLevel === 0 && isPseudo && !wasColon) {
|
||||
list.push(buffer.join(''));
|
||||
buffer = [];
|
||||
buffer.push(character);
|
||||
} else if (character == Marker.COLON && roundBracketLevel === 0 && !wasColon) {
|
||||
buffer = [];
|
||||
buffer.push(character);
|
||||
isPseudo = true;
|
||||
} else if (character == Marker.SPACE && roundBracketLevel === 0 && isPseudo) {
|
||||
list.push(buffer.join(''));
|
||||
buffer = [];
|
||||
isPseudo = false;
|
||||
} else if (isRelation && roundBracketLevel === 0 && isPseudo) {
|
||||
list.push(buffer.join(''));
|
||||
buffer = [];
|
||||
isPseudo = false;
|
||||
} else {
|
||||
buffer.push(character);
|
||||
}
|
||||
|
||||
isEscaped = character == Marker.BACK_SLASH;
|
||||
wasColon = character == Marker.COLON;
|
||||
}
|
||||
|
||||
if (buffer.length > 0 && isPseudo) {
|
||||
list.push(buffer.join(''));
|
||||
}
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
function areMergeable(selector, matches, mergeablePseudoClasses, mergeablePseudoElements, multiplePseudoMerging) {
|
||||
return areAllowed(matches, mergeablePseudoClasses, mergeablePseudoElements) &&
|
||||
needArguments(matches) &&
|
||||
(matches.length < 2 || !someIncorrectlyChained(selector, matches)) &&
|
||||
(matches.length < 2 || multiplePseudoMerging && allMixable(matches));
|
||||
}
|
||||
|
||||
function areAllowed(matches, mergeablePseudoClasses, mergeablePseudoElements) {
|
||||
var match;
|
||||
var name;
|
||||
var i, l;
|
||||
|
||||
for (i = 0, l = matches.length; i < l; i++) {
|
||||
match = matches[i];
|
||||
name = match.indexOf(Marker.OPEN_ROUND_BRACKET) > -1 ?
|
||||
match.substring(0, match.indexOf(Marker.OPEN_ROUND_BRACKET)) :
|
||||
match;
|
||||
|
||||
if (mergeablePseudoClasses.indexOf(name) === -1 && mergeablePseudoElements.indexOf(name) === -1) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
function needArguments(matches) {
|
||||
var match;
|
||||
var name;
|
||||
var bracketOpensAt;
|
||||
var hasArguments;
|
||||
var i, l;
|
||||
|
||||
for (i = 0, l = matches.length; i < l; i++) {
|
||||
match = matches[i];
|
||||
|
||||
bracketOpensAt = match.indexOf(Marker.OPEN_ROUND_BRACKET);
|
||||
hasArguments = bracketOpensAt > -1;
|
||||
name = hasArguments ?
|
||||
match.substring(0, bracketOpensAt) :
|
||||
match;
|
||||
|
||||
if (hasArguments && PSEUDO_CLASSES_WITH_ARGUMENTS.indexOf(name) == -1) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!hasArguments && PSEUDO_CLASSES_WITH_ARGUMENTS.indexOf(name) > -1) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
function someIncorrectlyChained(selector, matches) {
|
||||
var positionInSelector = 0;
|
||||
var match;
|
||||
var matchAt;
|
||||
var nextMatch;
|
||||
var nextMatchAt;
|
||||
var name;
|
||||
var nextName;
|
||||
var areChained;
|
||||
var i, l;
|
||||
|
||||
for (i = 0, l = matches.length; i < l; i++) {
|
||||
match = matches[i];
|
||||
nextMatch = matches[i + 1];
|
||||
|
||||
if (!nextMatch) {
|
||||
break;
|
||||
}
|
||||
|
||||
matchAt = selector.indexOf(match, positionInSelector);
|
||||
nextMatchAt = selector.indexOf(match, matchAt + 1);
|
||||
positionInSelector = nextMatchAt;
|
||||
areChained = matchAt + match.length == nextMatchAt;
|
||||
|
||||
if (areChained) {
|
||||
name = match.indexOf(Marker.OPEN_ROUND_BRACKET) > -1 ?
|
||||
match.substring(0, match.indexOf(Marker.OPEN_ROUND_BRACKET)) :
|
||||
match;
|
||||
nextName = nextMatch.indexOf(Marker.OPEN_ROUND_BRACKET) > -1 ?
|
||||
nextMatch.substring(0, nextMatch.indexOf(Marker.OPEN_ROUND_BRACKET)) :
|
||||
nextMatch;
|
||||
|
||||
if (name != NOT_PSEUDO || nextName != NOT_PSEUDO) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function allMixable(matches) {
|
||||
var unmixableMatches = 0;
|
||||
var match;
|
||||
var i, l;
|
||||
|
||||
for (i = 0, l = matches.length; i < l; i++) {
|
||||
match = matches[i];
|
||||
|
||||
if (isPseudoElement(match)) {
|
||||
unmixableMatches += UNMIXABLE_PSEUDO_ELEMENTS.indexOf(match) > -1 ? 1 : 0;
|
||||
} else {
|
||||
unmixableMatches += UNMIXABLE_PSEUDO_CLASSES.indexOf(match) > -1 ? 1 : 0;
|
||||
}
|
||||
|
||||
if (unmixableMatches > 1) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
function isPseudoElement(pseudo) {
|
||||
return DOUBLE_COLON_PATTERN.test(pseudo);
|
||||
}
|
||||
|
||||
module.exports = isMergeable;
|
||||
@@ -0,0 +1,10 @@
|
||||
import postcss from 'postcss'
|
||||
import cloneNodes from './cloneNodes'
|
||||
|
||||
export default function responsive(rules) {
|
||||
return postcss
|
||||
.atRule({
|
||||
name: 'responsive',
|
||||
})
|
||||
.append(cloneNodes(Array.isArray(rules) ? rules : [rules]))
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
export interface ObjectUnsubscribedError extends Error {
|
||||
}
|
||||
export interface ObjectUnsubscribedErrorCtor {
|
||||
/**
|
||||
* @deprecated Internal implementation detail. Do not construct error instances.
|
||||
* Cannot be tagged as internal: https://github.com/ReactiveX/rxjs/issues/6269
|
||||
*/
|
||||
new (): ObjectUnsubscribedError;
|
||||
}
|
||||
/**
|
||||
* An error thrown when an action is invalid because the object has been
|
||||
* unsubscribed.
|
||||
*
|
||||
* @see {@link Subject}
|
||||
* @see {@link BehaviorSubject}
|
||||
*
|
||||
* @class ObjectUnsubscribedError
|
||||
*/
|
||||
export declare const ObjectUnsubscribedError: ObjectUnsubscribedErrorCtor;
|
||||
//# sourceMappingURL=ObjectUnsubscribedError.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"J D E F A B CC"},B:{"1":"C K L G M N O P Q R S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H"},C:{"1":"cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H xB yB","2":"0 1 2 3 4 5 6 7 8 9 DC tB I v J D E F A B C K L G M N O w g x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB EC FC"},D:{"1":"HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H xB yB GC","2":"0 1 2 3 4 5 6 7 8 9 I v J D E F A B C K L G M N O w g x y z AB BB CB DB EB FB GB"},E:{"1":"F A B C K L G LC 0B qB rB 1B MC NC 2B 3B 4B 5B sB 6B 7B 8B 9B OC","2":"I v J D E HC zB IC JC KC"},F:{"1":"4 5 6 7 8 9 AB 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 aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d e","2":"0 1 2 3 F B C G M N O w g x y z PC QC RC SC qB AC TC rB"},G:{"1":"ZC aC bC cC dC eC fC gC hC iC jC kC lC mC nC 2B 3B 4B 5B sB 6B 7B 8B 9B","2":"E zB UC BC VC WC XC YC"},H:{"2":"oC"},I:{"1":"f","2":"tB I pC qC rC sC BC tC uC"},J:{"2":"D A"},K:{"1":"h","2":"A B C qB AC rB"},L:{"1":"H"},M:{"1":"H"},N:{"2":"A B"},O:{"1":"vC"},P:{"1":"g wC xC yC zC 0C 0B 1C 2C 3C 4C 5C sB 6C 7C 8C","2":"I"},Q:{"1":"1B"},R:{"1":"9C"},S:{"1":"BD","2":"AD"}},B:4,C:"Media Queries: interaction media features"};
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"root": true,
|
||||
|
||||
"extends": "@ljharb",
|
||||
|
||||
"rules": {
|
||||
"func-style": [2, "declaration"],
|
||||
"id-length": 0,
|
||||
"multiline-comment-style": 0,
|
||||
"new-cap": [2, {
|
||||
"capIsNewExceptions": [
|
||||
"GetIntrinsic",
|
||||
],
|
||||
}],
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
'use strict';
|
||||
|
||||
var GetIntrinsic = require('get-intrinsic');
|
||||
|
||||
var $Number = GetIntrinsic('%Number%');
|
||||
var $RegExp = GetIntrinsic('%RegExp%');
|
||||
var $TypeError = GetIntrinsic('%TypeError%');
|
||||
var $parseInteger = GetIntrinsic('%parseInt%');
|
||||
|
||||
var callBound = require('call-bind/callBound');
|
||||
var regexTester = require('safe-regex-test');
|
||||
|
||||
var $strSlice = callBound('String.prototype.slice');
|
||||
var isBinary = regexTester(/^0b[01]+$/i);
|
||||
var isOctal = regexTester(/^0o[0-7]+$/i);
|
||||
var isInvalidHexLiteral = regexTester(/^[-+]0x[0-9a-f]+$/i);
|
||||
var nonWS = ['\u0085', '\u200b', '\ufffe'].join('');
|
||||
var nonWSregex = new $RegExp('[' + nonWS + ']', 'g');
|
||||
var hasNonWS = regexTester(nonWSregex);
|
||||
|
||||
var $trim = require('string.prototype.trim');
|
||||
|
||||
var Type = require('./Type');
|
||||
|
||||
// https://262.ecma-international.org/13.0/#sec-stringtonumber
|
||||
|
||||
module.exports = function StringToNumber(argument) {
|
||||
if (Type(argument) !== 'String') {
|
||||
throw new $TypeError('Assertion failed: `argument` is not a String');
|
||||
}
|
||||
if (isBinary(argument)) {
|
||||
return $Number($parseInteger($strSlice(argument, 2), 2));
|
||||
}
|
||||
if (isOctal(argument)) {
|
||||
return $Number($parseInteger($strSlice(argument, 2), 8));
|
||||
}
|
||||
if (hasNonWS(argument) || isInvalidHexLiteral(argument)) {
|
||||
return NaN;
|
||||
}
|
||||
var trimmed = $trim(argument);
|
||||
if (trimmed !== argument) {
|
||||
return StringToNumber(trimmed);
|
||||
}
|
||||
return $Number(argument);
|
||||
};
|
||||
@@ -0,0 +1,29 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.pluck = void 0;
|
||||
var map_1 = require("./map");
|
||||
function pluck() {
|
||||
var properties = [];
|
||||
for (var _i = 0; _i < arguments.length; _i++) {
|
||||
properties[_i] = arguments[_i];
|
||||
}
|
||||
var length = properties.length;
|
||||
if (length === 0) {
|
||||
throw new Error('list of properties cannot be empty.');
|
||||
}
|
||||
return map_1.map(function (x) {
|
||||
var currentProp = x;
|
||||
for (var i = 0; i < length; i++) {
|
||||
var p = currentProp === null || currentProp === void 0 ? void 0 : currentProp[properties[i]];
|
||||
if (typeof p !== 'undefined') {
|
||||
currentProp = p;
|
||||
}
|
||||
else {
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
return currentProp;
|
||||
});
|
||||
}
|
||||
exports.pluck = pluck;
|
||||
//# sourceMappingURL=pluck.js.map
|
||||
@@ -0,0 +1,22 @@
|
||||
'use strict';
|
||||
|
||||
var defineProperties = require('define-properties');
|
||||
var callBind = require('call-bind');
|
||||
|
||||
var implementation = require('./implementation');
|
||||
var getPolyfill = require('./polyfill');
|
||||
var shim = require('./shim');
|
||||
|
||||
var polyfill = callBind.apply(getPolyfill());
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
var bound = function assign(target, source1) {
|
||||
return polyfill(Object, arguments);
|
||||
};
|
||||
|
||||
defineProperties(bound, {
|
||||
getPolyfill: getPolyfill,
|
||||
implementation: implementation,
|
||||
shim: shim
|
||||
});
|
||||
|
||||
module.exports = bound;
|
||||
@@ -0,0 +1,63 @@
|
||||
{
|
||||
"name": "function-bind",
|
||||
"version": "1.1.1",
|
||||
"description": "Implementation of Function.prototype.bind",
|
||||
"keywords": [
|
||||
"function",
|
||||
"bind",
|
||||
"shim",
|
||||
"es5"
|
||||
],
|
||||
"author": "Raynos <raynos2@gmail.com>",
|
||||
"repository": "git://github.com/Raynos/function-bind.git",
|
||||
"main": "index",
|
||||
"homepage": "https://github.com/Raynos/function-bind",
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Raynos"
|
||||
},
|
||||
{
|
||||
"name": "Jordan Harband",
|
||||
"url": "https://github.com/ljharb"
|
||||
}
|
||||
],
|
||||
"bugs": {
|
||||
"url": "https://github.com/Raynos/function-bind/issues",
|
||||
"email": "raynos2@gmail.com"
|
||||
},
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"@ljharb/eslint-config": "^12.2.1",
|
||||
"covert": "^1.1.0",
|
||||
"eslint": "^4.5.0",
|
||||
"jscs": "^3.0.7",
|
||||
"tape": "^4.8.0"
|
||||
},
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"pretest": "npm run lint",
|
||||
"test": "npm run tests-only",
|
||||
"posttest": "npm run coverage -- --quiet",
|
||||
"tests-only": "node test",
|
||||
"coverage": "covert test/*.js",
|
||||
"lint": "npm run jscs && npm run eslint",
|
||||
"jscs": "jscs *.js */*.js",
|
||||
"eslint": "eslint *.js */*.js"
|
||||
},
|
||||
"testling": {
|
||||
"files": "test/index.js",
|
||||
"browsers": [
|
||||
"ie/8..latest",
|
||||
"firefox/16..latest",
|
||||
"firefox/nightly",
|
||||
"chrome/22..latest",
|
||||
"chrome/canary",
|
||||
"opera/12..latest",
|
||||
"opera/next",
|
||||
"safari/5.1..latest",
|
||||
"ipad/6.0..latest",
|
||||
"iphone/6.0..latest",
|
||||
"android-browser/4.2..latest"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
var deburrLetter = require('./_deburrLetter'),
|
||||
toString = require('./toString');
|
||||
|
||||
/** Used to match Latin Unicode letters (excluding mathematical operators). */
|
||||
var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
|
||||
|
||||
/** Used to compose unicode character classes. */
|
||||
var rsComboMarksRange = '\\u0300-\\u036f',
|
||||
reComboHalfMarksRange = '\\ufe20-\\ufe2f',
|
||||
rsComboSymbolsRange = '\\u20d0-\\u20ff',
|
||||
rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange;
|
||||
|
||||
/** Used to compose unicode capture groups. */
|
||||
var rsCombo = '[' + rsComboRange + ']';
|
||||
|
||||
/**
|
||||
* Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
|
||||
* [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
|
||||
*/
|
||||
var reComboMark = RegExp(rsCombo, 'g');
|
||||
|
||||
/**
|
||||
* Deburrs `string` by converting
|
||||
* [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
|
||||
* and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
|
||||
* letters to basic Latin letters and removing
|
||||
* [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 3.0.0
|
||||
* @category String
|
||||
* @param {string} [string=''] The string to deburr.
|
||||
* @returns {string} Returns the deburred string.
|
||||
* @example
|
||||
*
|
||||
* _.deburr('déjà vu');
|
||||
* // => 'deja vu'
|
||||
*/
|
||||
function deburr(string) {
|
||||
string = toString(string);
|
||||
return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');
|
||||
}
|
||||
|
||||
module.exports = deburr;
|
||||
@@ -0,0 +1,19 @@
|
||||
'use strict';
|
||||
|
||||
var abs = require('./abs');
|
||||
var floor = require('./floor');
|
||||
var modulo = require('./modulo');
|
||||
var ToNumber = require('./ToNumber');
|
||||
|
||||
var $isNaN = require('../helpers/isNaN');
|
||||
var $isFinite = require('../helpers/isFinite');
|
||||
var $sign = require('../helpers/sign');
|
||||
|
||||
// http://262.ecma-international.org/5.1/#sec-9.7
|
||||
|
||||
module.exports = function ToUint16(value) {
|
||||
var number = ToNumber(value);
|
||||
if ($isNaN(number) || number === 0 || !$isFinite(number)) { return 0; }
|
||||
var posInt = $sign(number) * floor(abs(number));
|
||||
return modulo(posInt, 0x10000);
|
||||
};
|
||||
@@ -0,0 +1,26 @@
|
||||
'use strict';
|
||||
|
||||
var GetIntrinsic = require('get-intrinsic');
|
||||
|
||||
var $TypeError = GetIntrinsic('%TypeError%');
|
||||
var $Number = GetIntrinsic('%Number%');
|
||||
var isPrimitive = require('../helpers/isPrimitive');
|
||||
|
||||
var ToPrimitive = require('./ToPrimitive');
|
||||
var StringToNumber = require('./StringToNumber');
|
||||
|
||||
// https://262.ecma-international.org/13.0/#sec-tonumber
|
||||
|
||||
module.exports = function ToNumber(argument) {
|
||||
var value = isPrimitive(argument) ? argument : ToPrimitive(argument, $Number);
|
||||
if (typeof value === 'symbol') {
|
||||
throw new $TypeError('Cannot convert a Symbol value to a number');
|
||||
}
|
||||
if (typeof value === 'bigint') {
|
||||
throw new $TypeError('Conversion from \'BigInt\' to \'number\' is not allowed.');
|
||||
}
|
||||
if (typeof value === 'string') {
|
||||
return StringToNumber(value);
|
||||
}
|
||||
return $Number(value);
|
||||
};
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={C:{"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0.102,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0.0255,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0.00364,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0.00364,"99":0.00364,"100":0,"101":0.00729,"102":0.01093,"103":0,"104":0.00364,"105":0.00364,"106":0.00364,"107":0.00729,"108":0.01822,"109":0.27687,"110":0.17851,"111":0,"112":0,"3.5":0,"3.6":0},D:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0.00729,"50":0,"51":0.00729,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0.00364,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0.00364,"73":0,"74":0.00364,"75":0,"76":0,"77":0.00364,"78":0.00364,"79":0.01093,"80":0.00729,"81":0.00729,"83":0.00364,"84":0.00729,"85":0.01457,"86":0.00729,"87":0.01457,"88":0.00364,"89":0.00364,"90":0.00364,"91":0.01093,"92":0.01093,"93":0.00364,"94":0.00729,"95":0.00729,"96":0.01822,"97":0.01822,"98":0.02186,"99":0.00729,"100":0.03643,"101":0.01093,"102":0.0255,"103":0.0255,"104":0.01457,"105":0.03279,"106":0.05829,"107":0.0765,"108":0.26958,"109":5.24956,"110":2.38252,"111":0.00364,"112":0,"113":0},F:{"9":0,"11":0,"12":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"60":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0.00729,"80":0,"81":0,"82":0,"83":0,"84":0.00364,"85":0.0255,"86":0.00364,"87":0.00364,"88":0.00364,"89":0,"90":0,"91":0,"92":0,"93":0.0255,"94":0.38252,"95":0.35337,"9.5-9.6":0,"10.0-10.1":0,"10.5":0,"10.6":0,"11.1":0,"11.5":0,"11.6":0.17486,"12.1":0},B:{"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0.00729,"79":0,"80":0,"81":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0.00364,"89":0.00364,"90":0,"91":0,"92":0.00364,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0.00364,"105":0,"106":0.00364,"107":0.00729,"108":0.02186,"109":0.32058,"110":0.42987},E:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0.01457,"15":0,_:"0","3.1":0,"3.2":0,"5.1":0.0255,"6.1":0,"7.1":0,"9.1":0,"10.1":0,"11.1":0,"12.1":0.00364,"13.1":0.01093,"14.1":0.02914,"15.1":0.01457,"15.2-15.3":0.00729,"15.4":0.02186,"15.5":0.0255,"15.6":0.09472,"16.0":0.01457,"16.1":0.07286,"16.2":0.11293,"16.3":0.08743,"16.4":0},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0,"5.0-5.1":0,"6.0-6.1":0,"7.0-7.1":0.0028,"8.1-8.4":0.00561,"9.0-9.2":0,"9.3":0.01963,"10.0-10.2":0.00841,"10.3":0.02805,"11.0-11.2":0.03085,"11.3-11.4":0.0028,"12.0-12.1":0.01683,"12.2-12.5":0.49083,"13.0-13.1":0.01683,"13.2":0.01402,"13.3":0.05329,"13.4-13.7":0.13463,"14.0-14.4":0.58619,"14.5-14.8":0.948,"15.0-15.1":0.28608,"15.2-15.3":0.43754,"15.4":0.70679,"15.5":1.35749,"15.6":2.47377,"16.0":5.71043,"16.1":5.35703,"16.2":4.8045,"16.3":3.0263,"16.4":0.01122},P:{"4":0.12154,"20":0.58743,"5.0-5.4":0,"6.2-6.4":0,"7.2-7.4":0.31397,"8.2":0,"9.2":0.02026,"10.1":0,"11.1-11.2":0.06077,"12.0":0.02026,"13.0":0.05064,"14.0":0.05064,"15.0":0.04051,"16.0":0.11141,"17.0":0.08102,"18.0":0.13167,"19.0":1.39768},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00273,"4.4":0,"4.4.3-4.4.4":0.02184},K:{_:"0 10 11 12 11.1 11.5 12.1"},A:{"6":0,"7":0,"8":0,"9":0,"10":0,"11":0.04007,"5.5":0},N:{"10":0,"11":0},S:{"2.5":0,_:"3.0-3.1"},J:{"7":0,"10":0},O:{"0":0.31149},H:{"0":0.27083},L:{"0":53.66403},R:{_:"0"},M:{"0":0.06357},Q:{"13.1":0}};
|
||||
@@ -0,0 +1,324 @@
|
||||
import { EOL } from 'node:os';
|
||||
import test from 'ava';
|
||||
import sinon from 'sinon';
|
||||
import sh from 'shelljs';
|
||||
import Git from '../lib/plugin/git/Git.js';
|
||||
import { factory } from './util/index.js';
|
||||
import { mkTmpDir, readFile, gitAdd } from './util/helpers.js';
|
||||
|
||||
test.beforeEach(() => {
|
||||
const tmp = mkTmpDir();
|
||||
sh.pushd('-q', tmp);
|
||||
});
|
||||
|
||||
test.serial('should return whether repo has upstream branch', async t => {
|
||||
const gitClient = factory(Git);
|
||||
sh.exec('git init');
|
||||
gitAdd('line', 'file', 'Add file');
|
||||
t.false(await gitClient.hasUpstreamBranch());
|
||||
});
|
||||
|
||||
test.serial('should return branch name', async t => {
|
||||
const gitClient = factory(Git);
|
||||
sh.exec('git init');
|
||||
t.is(await gitClient.getBranchName(), null);
|
||||
sh.exec('git checkout -b feat');
|
||||
gitAdd('line', 'file', 'Add file');
|
||||
t.is(await gitClient.getBranchName(), 'feat');
|
||||
});
|
||||
|
||||
test.serial('should return whether tag exists and if working dir is clean', async t => {
|
||||
const gitClient = factory(Git);
|
||||
sh.exec('git init');
|
||||
t.false(await gitClient.tagExists('1.0.0'));
|
||||
sh.touch('file');
|
||||
t.false(await gitClient.isWorkingDirClean());
|
||||
gitAdd('line', 'file', 'Add file');
|
||||
sh.exec('git tag 1.0.0');
|
||||
t.true(await gitClient.tagExists('1.0.0'));
|
||||
t.true(await gitClient.isWorkingDirClean());
|
||||
});
|
||||
|
||||
test.serial('should throw if tag exists', async t => {
|
||||
const gitClient = factory(Git);
|
||||
sh.exec('git init');
|
||||
sh.touch('file');
|
||||
gitAdd('line', 'file', 'Add file');
|
||||
sh.exec('git tag 0.0.2');
|
||||
gitClient.config.setContext({ latestTag: '0.0.1', tagName: '0.0.2' });
|
||||
const expected = { instanceOf: Error, message: /fatal: tag '0\.0\.2' already exists/ };
|
||||
await t.throwsAsync(gitClient.tag({ name: '0.0.2' }), expected);
|
||||
});
|
||||
|
||||
test.serial('should only warn if tag exists intentionally', async t => {
|
||||
const gitClient = factory(Git);
|
||||
const { warn } = gitClient.log;
|
||||
sh.exec('git init');
|
||||
sh.touch('file');
|
||||
gitAdd('line', 'file', 'Add file');
|
||||
sh.exec('git tag 1.0.0');
|
||||
gitClient.config.setContext({ latestTag: '1.0.0', tagName: '1.0.0' });
|
||||
await t.notThrowsAsync(gitClient.tag());
|
||||
t.is(warn.callCount, 1);
|
||||
t.is(warn.firstCall.args[0], 'Tag "1.0.0" already exists');
|
||||
});
|
||||
|
||||
test.serial('should return the remote url', async t => {
|
||||
sh.exec(`git init`);
|
||||
{
|
||||
const options = { git: { pushRepo: 'origin' } };
|
||||
const gitClient = factory(Git, { options });
|
||||
t.is(await gitClient.getRemoteUrl(), null);
|
||||
sh.exec(`git remote add origin foo`);
|
||||
t.is(await gitClient.getRemoteUrl(), 'foo');
|
||||
}
|
||||
{
|
||||
const options = { git: { pushRepo: 'another' } };
|
||||
const gitClient = factory(Git, { options });
|
||||
t.is(await gitClient.getRemoteUrl(), null);
|
||||
sh.exec(`git remote add another bar`);
|
||||
t.is(await gitClient.getRemoteUrl(), 'bar');
|
||||
}
|
||||
{
|
||||
const options = { git: { pushRepo: 'git://github.com/webpro/release-it.git' } };
|
||||
const gitClient = factory(Git, { options });
|
||||
t.is(await gitClient.getRemoteUrl(), 'git://github.com/webpro/release-it.git');
|
||||
}
|
||||
});
|
||||
|
||||
test.serial('should return the non-origin remote', async t => {
|
||||
const bare = mkTmpDir();
|
||||
sh.exec(`git init --bare ${bare}`);
|
||||
sh.exec(`git clone ${bare} .`);
|
||||
gitAdd('line', 'file', 'Add file');
|
||||
sh.exec('git remote rename origin upstream');
|
||||
const gitClient = factory(Git);
|
||||
t.is(await gitClient.getRemoteUrl(), bare);
|
||||
});
|
||||
|
||||
test.serial('should stage, commit, tag and push', async t => {
|
||||
const bare = mkTmpDir();
|
||||
sh.exec(`git init --bare ${bare}`);
|
||||
sh.exec(`git clone ${bare} .`);
|
||||
const version = '1.2.3';
|
||||
gitAdd(`{"version":"${version}"}`, 'package.json', 'Add package.json');
|
||||
{
|
||||
const gitClient = factory(Git);
|
||||
sh.exec(`git tag ${version}`);
|
||||
t.is(await gitClient.getLatestTagName(), version);
|
||||
}
|
||||
{
|
||||
const gitClient = factory(Git);
|
||||
gitAdd('line', 'file', 'Add file');
|
||||
sh.exec('npm --no-git-tag-version version patch');
|
||||
await gitClient.stage('package.json');
|
||||
await gitClient.commit({ message: `Release v1.2.4` });
|
||||
await gitClient.tag({ name: 'v1.2.4', annotation: 'Release v1.2.4' });
|
||||
t.is(await gitClient.getLatestTagName(), 'v1.2.4');
|
||||
await gitClient.push();
|
||||
const status = sh.exec('git status -uno');
|
||||
t.true(status.includes('nothing to commit'));
|
||||
}
|
||||
});
|
||||
|
||||
test.serial('should commit, tag and push with extra args', async t => {
|
||||
const bare = mkTmpDir();
|
||||
sh.exec(`git init --bare ${bare}`);
|
||||
sh.exec(`git clone ${bare} .`);
|
||||
gitAdd('line', 'file', 'Add file');
|
||||
const options = { git: { commitArgs: '-S', tagArgs: ['-T', 'foo'], pushArgs: ['-U', 'bar', '-V'] } };
|
||||
const gitClient = factory(Git, { options });
|
||||
const stub = sinon.stub(gitClient.shell, 'exec').resolves();
|
||||
await gitClient.stage('package.json');
|
||||
await gitClient.commit({ message: `Release v1.2.4` });
|
||||
await gitClient.tag({ name: 'v1.2.4', annotation: 'Release v1.2.4' });
|
||||
await gitClient.push();
|
||||
t.true(stub.secondCall.args[0].includes('-S'));
|
||||
t.is(stub.thirdCall.args[0][5], '-T');
|
||||
t.is(stub.thirdCall.args[0][6], 'foo');
|
||||
t.true(stub.lastCall.args[0].join(' ').includes('-U bar -V'));
|
||||
stub.restore();
|
||||
});
|
||||
|
||||
test.serial('should amend commit without message if not provided', async t => {
|
||||
const bare = mkTmpDir();
|
||||
sh.exec(`git init --bare ${bare}`);
|
||||
sh.exec(`git clone ${bare} .`);
|
||||
gitAdd('line', 'file', 'Add file');
|
||||
const options = { git: { commitArgs: ['--amend', '--no-edit', '--no-verify'] } };
|
||||
const gitClient = factory(Git, { options });
|
||||
const stub = sinon.stub(gitClient.shell, 'exec').resolves();
|
||||
await gitClient.stage('package.json');
|
||||
await gitClient.commit();
|
||||
t.deepEqual(stub.secondCall.args[0], ['git', 'commit', '--amend', '--no-edit', '--no-verify']);
|
||||
stub.restore();
|
||||
});
|
||||
|
||||
test.serial('should commit and tag with quoted characters', async t => {
|
||||
const bare = mkTmpDir();
|
||||
sh.exec(`git init --bare ${bare}`);
|
||||
sh.exec(`git clone ${bare} .`);
|
||||
const gitClient = factory(Git, {
|
||||
options: { git: { commitMessage: 'Release ${version}', tagAnnotation: 'Release ${version}\n\n${changelog}' } }
|
||||
});
|
||||
sh.touch('file');
|
||||
const changelog = `- Foo's${EOL}- "$bar"${EOL}- '$baz'${EOL}- foo`;
|
||||
gitClient.config.setContext({ version: '1.0.0', changelog });
|
||||
|
||||
await gitClient.stage('file');
|
||||
await gitClient.commit();
|
||||
await gitClient.tag({ name: '1.0.0' });
|
||||
await gitClient.push();
|
||||
{
|
||||
const { stdout } = sh.exec('git log -1 --format=%s');
|
||||
t.is(stdout.trim(), 'Release 1.0.0');
|
||||
}
|
||||
{
|
||||
const { stdout } = sh.exec('git tag -n99');
|
||||
t.is(stdout.trim(), `1.0.0 Release 1.0.0\n \n - Foo's\n - "$bar"\n - '$baz'\n - foo`);
|
||||
}
|
||||
});
|
||||
|
||||
test.serial('should push to origin', async t => {
|
||||
const bare = mkTmpDir();
|
||||
sh.exec(`git init --bare ${bare}`);
|
||||
sh.exec(`git clone ${bare} .`);
|
||||
gitAdd('line', 'file', 'Add file');
|
||||
const gitClient = factory(Git);
|
||||
const spy = sinon.spy(gitClient.shell, 'exec');
|
||||
await gitClient.push();
|
||||
t.deepEqual(spy.lastCall.args[0], ['git', 'push']);
|
||||
const actual = sh.exec('git ls-tree -r HEAD --name-only', { cwd: bare });
|
||||
t.is(actual.trim(), 'file');
|
||||
spy.restore();
|
||||
});
|
||||
|
||||
test.serial('should push to tracked upstream branch', async t => {
|
||||
const bare = mkTmpDir();
|
||||
sh.exec(`git init --bare ${bare}`);
|
||||
sh.exec(`git clone ${bare} .`);
|
||||
sh.exec(`git remote rename origin upstream`);
|
||||
gitAdd('line', 'file', 'Add file');
|
||||
const gitClient = factory(Git);
|
||||
const spy = sinon.spy(gitClient.shell, 'exec');
|
||||
await gitClient.push();
|
||||
t.deepEqual(spy.lastCall.args[0], ['git', 'push']);
|
||||
const actual = sh.exec('git ls-tree -r HEAD --name-only', { cwd: bare });
|
||||
t.is(actual.trim(), 'file');
|
||||
spy.restore();
|
||||
});
|
||||
|
||||
test.serial('should push to repo url', async t => {
|
||||
const bare = mkTmpDir();
|
||||
sh.exec(`git init --bare ${bare}`);
|
||||
sh.exec(`git clone ${bare} .`);
|
||||
gitAdd('line', 'file', 'Add file');
|
||||
const options = { git: { pushRepo: 'https://host/repo.git' } };
|
||||
const gitClient = factory(Git, { options });
|
||||
const spy = sinon.spy(gitClient.shell, 'exec');
|
||||
try {
|
||||
await gitClient.push();
|
||||
} catch (err) {
|
||||
t.deepEqual(spy.lastCall.args[0], ['git', 'push', 'https://host/repo.git']);
|
||||
}
|
||||
spy.restore();
|
||||
});
|
||||
|
||||
test.serial('should push to remote name (not "origin")', async t => {
|
||||
const bare = mkTmpDir();
|
||||
sh.exec(`git init --bare ${bare}`);
|
||||
sh.exec(`git clone ${bare} .`);
|
||||
gitAdd('line', 'file', 'Add file');
|
||||
sh.exec(`git remote add upstream ${sh.exec('git config --get remote.origin.url')}`);
|
||||
const options = { git: { pushRepo: 'upstream' } };
|
||||
const gitClient = factory(Git, { options });
|
||||
const spy = sinon.spy(gitClient.shell, 'exec');
|
||||
await gitClient.push();
|
||||
t.deepEqual(spy.lastCall.args[0], ['git', 'push', 'upstream']);
|
||||
const actual = sh.exec('git ls-tree -r HEAD --name-only', { cwd: bare });
|
||||
t.is(actual.trim(), 'file');
|
||||
{
|
||||
sh.exec(`git checkout -b foo`);
|
||||
gitAdd('line', 'file', 'Add file');
|
||||
await gitClient.push();
|
||||
t.deepEqual(spy.lastCall.args[0], ['git', 'push', '--set-upstream', 'upstream', 'foo']);
|
||||
t.regex(
|
||||
await spy.lastCall.returnValue,
|
||||
/branch .?foo.? set up to track (remote branch .?foo.? from .?upstream.?|.?upstream\/foo.?)/i
|
||||
);
|
||||
}
|
||||
spy.restore();
|
||||
});
|
||||
|
||||
test.serial('should return repo status', async t => {
|
||||
const gitClient = factory(Git);
|
||||
sh.exec('git init');
|
||||
gitAdd('line', 'file1', 'Add file');
|
||||
sh.ShellString('line').toEnd('file1');
|
||||
sh.ShellString('line').toEnd('file2');
|
||||
sh.exec('git add file2');
|
||||
t.is(await gitClient.status(), ' M file1\nA file2');
|
||||
});
|
||||
|
||||
test.serial('should reset files', async t => {
|
||||
const gitClient = factory(Git);
|
||||
sh.exec('git init');
|
||||
gitAdd('line', 'file', 'Add file');
|
||||
sh.ShellString('line').toEnd('file');
|
||||
t.regex(await readFile('file'), /^line\s*line\s*$/);
|
||||
await gitClient.reset('file');
|
||||
t.regex(await readFile('file'), /^line\s*$/);
|
||||
await gitClient.reset(['file2, file3']);
|
||||
t.regex(gitClient.log.warn.firstCall.args[0], /Could not reset file2, file3/);
|
||||
});
|
||||
|
||||
test.serial('should roll back when cancelled', async t => {
|
||||
sh.exec('git init');
|
||||
sh.exec(`git remote add origin file://foo`);
|
||||
const version = '1.2.3';
|
||||
gitAdd(`{"version":"${version}"}`, 'package.json', 'Add package.json');
|
||||
const options = { git: { requireCleanWorkingDir: true, commit: true, tag: true, tagName: 'v${version}' } };
|
||||
const gitClient = factory(Git, { options });
|
||||
const exec = sinon.spy(gitClient.shell, 'execFormattedCommand');
|
||||
sh.exec(`git tag ${version}`);
|
||||
gitAdd('line', 'file', 'Add file');
|
||||
|
||||
await gitClient.init();
|
||||
|
||||
sh.exec('npm --no-git-tag-version version patch');
|
||||
|
||||
gitClient.bump('1.2.4');
|
||||
await gitClient.beforeRelease();
|
||||
await gitClient.stage('package.json');
|
||||
await gitClient.commit({ message: 'Add this' });
|
||||
await gitClient.tag();
|
||||
await gitClient.rollbackOnce();
|
||||
|
||||
t.is(exec.args[11][0], 'git tag --delete v1.2.4');
|
||||
t.is(exec.args[12][0], 'git reset --hard HEAD~1');
|
||||
});
|
||||
|
||||
test.serial('should not touch existing history when rolling back', async t => {
|
||||
sh.exec('git init');
|
||||
const version = '1.2.3';
|
||||
gitAdd(`{"version":"${version}"}`, 'package.json', 'Add package.json');
|
||||
const options = { git: { requireCleanWorkingDir: true, commit: true, tag: true } };
|
||||
const gitClient = factory(Git, { options });
|
||||
sh.exec(`git tag ${version}`);
|
||||
|
||||
const exec = sinon.spy(gitClient.shell, 'execFormattedCommand');
|
||||
gitClient.config.setContext({ version: '1.2.4' });
|
||||
await gitClient.beforeRelease();
|
||||
await gitClient.commit();
|
||||
await gitClient.rollbackOnce();
|
||||
|
||||
t.is(exec.args[3][0], 'git reset --hard HEAD');
|
||||
});
|
||||
|
||||
test.serial('should not roll back with risky config', async t => {
|
||||
sh.exec('git init');
|
||||
const options = { git: { requireCleanWorkingDir: false, commit: true, tag: true } };
|
||||
const gitClient = factory(Git, { options });
|
||||
await gitClient.beforeRelease();
|
||||
t.is('rollbackOnce' in gitClient, false);
|
||||
});
|
||||
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"name": "upper-case",
|
||||
"version": "1.1.3",
|
||||
"description": "Upper case a string",
|
||||
"main": "upper-case.js",
|
||||
"typings": "upper-case.d.ts",
|
||||
"files": [
|
||||
"upper-case.js",
|
||||
"upper-case.d.ts",
|
||||
"LICENSE"
|
||||
],
|
||||
"scripts": {
|
||||
"lint": "standard",
|
||||
"test-std": "mocha -- -R spec --bail",
|
||||
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- -R spec --bail",
|
||||
"test": "npm run lint && npm run test-cov"
|
||||
},
|
||||
"standard": {
|
||||
"ignore": [
|
||||
"coverage/**",
|
||||
"node_modules/**",
|
||||
"bower_components/**"
|
||||
]
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/blakeembrey/upper-case.git"
|
||||
},
|
||||
"keywords": [
|
||||
"cases",
|
||||
"upper",
|
||||
"uppercase",
|
||||
"case"
|
||||
],
|
||||
"author": {
|
||||
"name": "Blake Embrey",
|
||||
"email": "hello@blakeembrey.com",
|
||||
"url": "http://blakeembrey.me"
|
||||
},
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/blakeembrey/upper-case/issues"
|
||||
},
|
||||
"homepage": "https://github.com/blakeembrey/upper-case",
|
||||
"devDependencies": {
|
||||
"istanbul": "^0.3.5",
|
||||
"mocha": "^2.1.0",
|
||||
"pre-commit": "^1.0.2",
|
||||
"standard": "^2.4.5"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"Commands:": "명령:",
|
||||
"Options:": "옵션:",
|
||||
"Examples:": "예시:",
|
||||
"boolean": "불리언",
|
||||
"count": "개수",
|
||||
"string": "문자열",
|
||||
"number": "숫자",
|
||||
"array": "배열",
|
||||
"required": "필수",
|
||||
"default": "기본값",
|
||||
"default:": "기본값:",
|
||||
"choices:": "선택지:",
|
||||
"aliases:": "별칭:",
|
||||
"generated-value": "생성된 값",
|
||||
"Not enough non-option arguments: got %s, need at least %s": {
|
||||
"one": "옵션이 아닌 인수가 충분하지 않습니다: %s개 입력받음, 최소 %s개 입력 필요",
|
||||
"other": "옵션이 아닌 인수가 충분하지 않습니다: %s개 입력받음, 최소 %s개 입력 필요"
|
||||
},
|
||||
"Too many non-option arguments: got %s, maximum of %s": {
|
||||
"one": "옵션이 아닌 인수가 너무 많습니다: %s개 입력받음, 최대 %s개 입력 가능",
|
||||
"other": "옵션이 아닌 인수가 너무 많습니다: %s개 입력받음, 최대 %s개 입력 가능"
|
||||
},
|
||||
"Missing argument value: %s": {
|
||||
"one": "인수가 주어지지 않았습니다: %s",
|
||||
"other": "인수가 주어지지 않았습니다: %s"
|
||||
},
|
||||
"Missing required argument: %s": {
|
||||
"one": "필수 인수가 주어지지 않았습니다: %s",
|
||||
"other": "필수 인수가 주어지지 않았습니다: %s"
|
||||
},
|
||||
"Unknown argument: %s": {
|
||||
"one": "알 수 없는 인수입니다: %s",
|
||||
"other": "알 수 없는 인수입니다: %s"
|
||||
},
|
||||
"Invalid values:": "유효하지 않은 값:",
|
||||
"Argument: %s, Given: %s, Choices: %s": "인수: %s, 주어진 값: %s, 선택지: %s",
|
||||
"Argument check failed: %s": "인수 체크에 실패했습니다: %s",
|
||||
"Implications failed:": "주어진 인수에 필요한 추가 인수가 주어지지 않았습니다:",
|
||||
"Not enough arguments following: %s": "다음 인수가 주어지지 않았습니다: %s",
|
||||
"Invalid JSON config file: %s": "유효하지 않은 JSON 설정 파일: %s",
|
||||
"Path to JSON config file": "JSON 설정 파일 경로",
|
||||
"Show help": "도움말 표시",
|
||||
"Show version number": "버전 표시",
|
||||
"Did you mean %s?": "%s을(를) 찾으시나요?",
|
||||
"Arguments %s and %s are mutually exclusive" : "인수 %s과(와) %s은(는) 동시에 지정할 수 없습니다",
|
||||
"Positionals:": "위치:",
|
||||
"command": "명령"
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
export type RunnerTeamNeedsParentError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
||||
@@ -0,0 +1,23 @@
|
||||
import { operate } from '../util/lift';
|
||||
import { noop } from '../util/noop';
|
||||
import { createOperatorSubscriber } from './OperatorSubscriber';
|
||||
import { innerFrom } from '../observable/innerFrom';
|
||||
export function bufferWhen(closingSelector) {
|
||||
return operate((source, subscriber) => {
|
||||
let buffer = null;
|
||||
let closingSubscriber = null;
|
||||
const openBuffer = () => {
|
||||
closingSubscriber === null || closingSubscriber === void 0 ? void 0 : closingSubscriber.unsubscribe();
|
||||
const b = buffer;
|
||||
buffer = [];
|
||||
b && subscriber.next(b);
|
||||
innerFrom(closingSelector()).subscribe((closingSubscriber = createOperatorSubscriber(subscriber, openBuffer, noop)));
|
||||
};
|
||||
openBuffer();
|
||||
source.subscribe(createOperatorSubscriber(subscriber, (value) => buffer === null || buffer === void 0 ? void 0 : buffer.push(value), () => {
|
||||
buffer && subscriber.next(buffer);
|
||||
subscriber.complete();
|
||||
}, undefined, () => (buffer = closingSubscriber = null)));
|
||||
});
|
||||
}
|
||||
//# sourceMappingURL=bufferWhen.js.map
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"1":"F A B","2":"J D E CC"},B:{"1":"C K L G M N O P Q R S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H"},C:{"1":"0 1 2 3 4 5 6 7 8 9 tB I v J D E F A B C K L G M N O w g x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H xB yB EC FC","4":"DC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 I v J D E F A B C K L G M N O w g x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H xB yB GC"},E:{"1":"I v J D E F A B C K L G HC zB IC JC KC LC 0B qB rB 1B MC NC 2B 3B 4B 5B sB 6B 7B 8B 9B OC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G M N O w g x y z AB 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 aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d e QC RC SC qB AC TC rB","2":"F","4":"PC"},G:{"1":"E zB UC BC VC WC XC YC ZC aC bC cC dC eC fC gC hC iC jC kC lC mC nC 2B 3B 4B 5B sB 6B 7B 8B 9B"},H:{"1":"oC"},I:{"1":"tB I f pC qC rC sC BC tC uC"},J:{"1":"D A"},K:{"1":"A B C h qB AC rB"},L:{"1":"H"},M:{"1":"H"},N:{"1":"A B"},O:{"1":"vC"},P:{"1":"I g wC xC yC zC 0C 0B 1C 2C 3C 4C 5C sB 6C 7C 8C"},Q:{"1":"1B"},R:{"1":"9C"},S:{"1":"AD BD"}},B:2,C:"CSS3 Colors"};
|
||||
@@ -0,0 +1,50 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const tagInfo_1 = require("../modules/tagInfo");
|
||||
const utils_1 = require("../modules/utils");
|
||||
const prepareContent_1 = require("../modules/prepareContent");
|
||||
exports.default = (options) => ({
|
||||
async script(svelteFile) {
|
||||
const { transformer } = await Promise.resolve().then(() => __importStar(require('../transformers/coffeescript')));
|
||||
let { content, filename, attributes, lang, dependencies, } = await tagInfo_1.getTagInfo(svelteFile);
|
||||
content = prepareContent_1.prepareContent({
|
||||
options: {
|
||||
...options,
|
||||
stripIndent: true,
|
||||
},
|
||||
content,
|
||||
});
|
||||
if (lang !== 'coffeescript') {
|
||||
return { code: content };
|
||||
}
|
||||
const transformed = await transformer({
|
||||
content,
|
||||
filename,
|
||||
attributes,
|
||||
options,
|
||||
});
|
||||
return {
|
||||
...transformed,
|
||||
dependencies: utils_1.concat(dependencies, transformed.dependencies),
|
||||
};
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,139 @@
|
||||
'use strict';
|
||||
|
||||
/* eslint global-require: 0 */
|
||||
// https://262.ecma-international.org/7.0/#sec-abstract-operations
|
||||
var ES2016 = {
|
||||
'Abstract Equality Comparison': require('./2016/AbstractEqualityComparison'),
|
||||
'Abstract Relational Comparison': require('./2016/AbstractRelationalComparison'),
|
||||
'Strict Equality Comparison': require('./2016/StrictEqualityComparison'),
|
||||
abs: require('./2016/abs'),
|
||||
AdvanceStringIndex: require('./2016/AdvanceStringIndex'),
|
||||
ArrayCreate: require('./2016/ArrayCreate'),
|
||||
ArraySetLength: require('./2016/ArraySetLength'),
|
||||
ArraySpeciesCreate: require('./2016/ArraySpeciesCreate'),
|
||||
Call: require('./2016/Call'),
|
||||
CanonicalNumericIndexString: require('./2016/CanonicalNumericIndexString'),
|
||||
CharacterRange: require('./2016/CharacterRange'),
|
||||
CompletePropertyDescriptor: require('./2016/CompletePropertyDescriptor'),
|
||||
CompletionRecord: require('./2016/CompletionRecord'),
|
||||
CreateDataProperty: require('./2016/CreateDataProperty'),
|
||||
CreateDataPropertyOrThrow: require('./2016/CreateDataPropertyOrThrow'),
|
||||
CreateHTML: require('./2016/CreateHTML'),
|
||||
CreateIterResultObject: require('./2016/CreateIterResultObject'),
|
||||
CreateListFromArrayLike: require('./2016/CreateListFromArrayLike'),
|
||||
CreateMethodProperty: require('./2016/CreateMethodProperty'),
|
||||
DateFromTime: require('./2016/DateFromTime'),
|
||||
Day: require('./2016/Day'),
|
||||
DayFromYear: require('./2016/DayFromYear'),
|
||||
DaysInYear: require('./2016/DaysInYear'),
|
||||
DayWithinYear: require('./2016/DayWithinYear'),
|
||||
DefinePropertyOrThrow: require('./2016/DefinePropertyOrThrow'),
|
||||
DeletePropertyOrThrow: require('./2016/DeletePropertyOrThrow'),
|
||||
DetachArrayBuffer: require('./2016/DetachArrayBuffer'),
|
||||
EnumerableOwnNames: require('./2016/EnumerableOwnNames'),
|
||||
floor: require('./2016/floor'),
|
||||
FromPropertyDescriptor: require('./2016/FromPropertyDescriptor'),
|
||||
Get: require('./2016/Get'),
|
||||
GetGlobalObject: require('./2016/GetGlobalObject'),
|
||||
GetIterator: require('./2016/GetIterator'),
|
||||
GetMethod: require('./2016/GetMethod'),
|
||||
GetOwnPropertyKeys: require('./2016/GetOwnPropertyKeys'),
|
||||
GetPrototypeFromConstructor: require('./2016/GetPrototypeFromConstructor'),
|
||||
GetSubstitution: require('./2016/GetSubstitution'),
|
||||
GetV: require('./2016/GetV'),
|
||||
HasOwnProperty: require('./2016/HasOwnProperty'),
|
||||
HasProperty: require('./2016/HasProperty'),
|
||||
HourFromTime: require('./2016/HourFromTime'),
|
||||
InLeapYear: require('./2016/InLeapYear'),
|
||||
InstanceofOperator: require('./2016/InstanceofOperator'),
|
||||
Invoke: require('./2016/Invoke'),
|
||||
IsAccessorDescriptor: require('./2016/IsAccessorDescriptor'),
|
||||
IsArray: require('./2016/IsArray'),
|
||||
IsCallable: require('./2016/IsCallable'),
|
||||
IsCompatiblePropertyDescriptor: require('./2016/IsCompatiblePropertyDescriptor'),
|
||||
IsConcatSpreadable: require('./2016/IsConcatSpreadable'),
|
||||
IsConstructor: require('./2016/IsConstructor'),
|
||||
IsDataDescriptor: require('./2016/IsDataDescriptor'),
|
||||
IsDetachedBuffer: require('./2016/IsDetachedBuffer'),
|
||||
IsExtensible: require('./2016/IsExtensible'),
|
||||
IsGenericDescriptor: require('./2016/IsGenericDescriptor'),
|
||||
IsInteger: require('./2016/IsInteger'),
|
||||
IsPromise: require('./2016/IsPromise'),
|
||||
IsPropertyDescriptor: require('./2016/IsPropertyDescriptor'),
|
||||
IsPropertyKey: require('./2016/IsPropertyKey'),
|
||||
IsRegExp: require('./2016/IsRegExp'),
|
||||
IterableToArrayLike: require('./2016/IterableToArrayLike'),
|
||||
IteratorClose: require('./2016/IteratorClose'),
|
||||
IteratorComplete: require('./2016/IteratorComplete'),
|
||||
IteratorNext: require('./2016/IteratorNext'),
|
||||
IteratorStep: require('./2016/IteratorStep'),
|
||||
IteratorValue: require('./2016/IteratorValue'),
|
||||
MakeDate: require('./2016/MakeDate'),
|
||||
MakeDay: require('./2016/MakeDay'),
|
||||
MakeTime: require('./2016/MakeTime'),
|
||||
max: require('./2016/max'),
|
||||
min: require('./2016/min'),
|
||||
MinFromTime: require('./2016/MinFromTime'),
|
||||
modulo: require('./2016/modulo'),
|
||||
MonthFromTime: require('./2016/MonthFromTime'),
|
||||
msFromTime: require('./2016/msFromTime'),
|
||||
NormalCompletion: require('./2016/NormalCompletion'),
|
||||
ObjectCreate: require('./2016/ObjectCreate'),
|
||||
ObjectDefineProperties: require('./2016/ObjectDefineProperties'),
|
||||
OrdinaryCreateFromConstructor: require('./2016/OrdinaryCreateFromConstructor'),
|
||||
OrdinaryDefineOwnProperty: require('./2016/OrdinaryDefineOwnProperty'),
|
||||
OrdinaryGetOwnProperty: require('./2016/OrdinaryGetOwnProperty'),
|
||||
OrdinaryGetPrototypeOf: require('./2016/OrdinaryGetPrototypeOf'),
|
||||
OrdinaryHasInstance: require('./2016/OrdinaryHasInstance'),
|
||||
OrdinaryHasProperty: require('./2016/OrdinaryHasProperty'),
|
||||
OrdinarySetPrototypeOf: require('./2016/OrdinarySetPrototypeOf'),
|
||||
QuoteJSONString: require('./2016/QuoteJSONString'),
|
||||
RegExpCreate: require('./2016/RegExpCreate'),
|
||||
RegExpExec: require('./2016/RegExpExec'),
|
||||
RequireObjectCoercible: require('./2016/RequireObjectCoercible'),
|
||||
SameValue: require('./2016/SameValue'),
|
||||
SameValueNonNumber: require('./2016/SameValueNonNumber'),
|
||||
SameValueZero: require('./2016/SameValueZero'),
|
||||
SecFromTime: require('./2016/SecFromTime'),
|
||||
Set: require('./2016/Set'),
|
||||
SetFunctionName: require('./2016/SetFunctionName'),
|
||||
SetIntegrityLevel: require('./2016/SetIntegrityLevel'),
|
||||
SpeciesConstructor: require('./2016/SpeciesConstructor'),
|
||||
SplitMatch: require('./2016/SplitMatch'),
|
||||
StringCreate: require('./2016/StringCreate'),
|
||||
SymbolDescriptiveString: require('./2016/SymbolDescriptiveString'),
|
||||
TestIntegrityLevel: require('./2016/TestIntegrityLevel'),
|
||||
thisBooleanValue: require('./2016/thisBooleanValue'),
|
||||
thisNumberValue: require('./2016/thisNumberValue'),
|
||||
thisStringValue: require('./2016/thisStringValue'),
|
||||
thisTimeValue: require('./2016/thisTimeValue'),
|
||||
TimeClip: require('./2016/TimeClip'),
|
||||
TimeFromYear: require('./2016/TimeFromYear'),
|
||||
TimeWithinDay: require('./2016/TimeWithinDay'),
|
||||
ToBoolean: require('./2016/ToBoolean'),
|
||||
ToDateString: require('./2016/ToDateString'),
|
||||
ToInt16: require('./2016/ToInt16'),
|
||||
ToInt32: require('./2016/ToInt32'),
|
||||
ToInt8: require('./2016/ToInt8'),
|
||||
ToInteger: require('./2016/ToInteger'),
|
||||
ToLength: require('./2016/ToLength'),
|
||||
ToNumber: require('./2016/ToNumber'),
|
||||
ToObject: require('./2016/ToObject'),
|
||||
ToPrimitive: require('./2016/ToPrimitive'),
|
||||
ToPropertyDescriptor: require('./2016/ToPropertyDescriptor'),
|
||||
ToPropertyKey: require('./2016/ToPropertyKey'),
|
||||
ToString: require('./2016/ToString'),
|
||||
ToUint16: require('./2016/ToUint16'),
|
||||
ToUint32: require('./2016/ToUint32'),
|
||||
ToUint8: require('./2016/ToUint8'),
|
||||
ToUint8Clamp: require('./2016/ToUint8Clamp'),
|
||||
Type: require('./2016/Type'),
|
||||
UTF16Decode: require('./2016/UTF16Decode'),
|
||||
UTF16Encoding: require('./2016/UTF16Encoding'),
|
||||
ValidateAndApplyPropertyDescriptor: require('./2016/ValidateAndApplyPropertyDescriptor'),
|
||||
ValidateTypedArray: require('./2016/ValidateTypedArray'),
|
||||
WeekDay: require('./2016/WeekDay'),
|
||||
YearFromTime: require('./2016/YearFromTime')
|
||||
};
|
||||
|
||||
module.exports = ES2016;
|
||||
@@ -0,0 +1,13 @@
|
||||
type Options = {
|
||||
cwd?: string;
|
||||
dot?: boolean;
|
||||
absolute?: boolean;
|
||||
filesOnly?: boolean;
|
||||
flush?: boolean;
|
||||
};
|
||||
|
||||
type FilePath = string;
|
||||
|
||||
declare function glob(str: string, opts?: Options): FilePath[];
|
||||
|
||||
export = glob;
|
||||
@@ -0,0 +1,22 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.isGMT = exports.dnsLookup = void 0;
|
||||
const dns_1 = require("dns");
|
||||
function dnsLookup(host, opts) {
|
||||
return new Promise((resolve, reject) => {
|
||||
(0, dns_1.lookup)(host, opts, (err, res) => {
|
||||
if (err) {
|
||||
reject(err);
|
||||
}
|
||||
else {
|
||||
resolve(res);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
exports.dnsLookup = dnsLookup;
|
||||
function isGMT(v) {
|
||||
return v === 'GMT';
|
||||
}
|
||||
exports.isGMT = isGMT;
|
||||
//# sourceMappingURL=util.js.map
|
||||
@@ -0,0 +1,57 @@
|
||||
{
|
||||
"name": "http-proxy-agent",
|
||||
"version": "4.0.1",
|
||||
"description": "An HTTP(s) proxy `http.Agent` implementation for HTTP",
|
||||
"main": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"scripts": {
|
||||
"prebuild": "rimraf dist",
|
||||
"build": "tsc",
|
||||
"test": "mocha",
|
||||
"test-lint": "eslint src --ext .js,.ts",
|
||||
"prepublishOnly": "npm run build"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/TooTallNate/node-http-proxy-agent.git"
|
||||
},
|
||||
"keywords": [
|
||||
"http",
|
||||
"proxy",
|
||||
"endpoint",
|
||||
"agent"
|
||||
],
|
||||
"author": "Nathan Rajlich <nathan@tootallnate.net> (http://n8.io/)",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/TooTallNate/node-http-proxy-agent/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"@tootallnate/once": "1",
|
||||
"agent-base": "6",
|
||||
"debug": "4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/debug": "4",
|
||||
"@types/node": "^12.12.11",
|
||||
"@typescript-eslint/eslint-plugin": "1.6.0",
|
||||
"@typescript-eslint/parser": "1.1.0",
|
||||
"eslint": "5.16.0",
|
||||
"eslint-config-airbnb": "17.1.0",
|
||||
"eslint-config-prettier": "4.1.0",
|
||||
"eslint-import-resolver-typescript": "1.1.1",
|
||||
"eslint-plugin-import": "2.16.0",
|
||||
"eslint-plugin-jsx-a11y": "6.2.1",
|
||||
"eslint-plugin-react": "7.12.4",
|
||||
"mocha": "^6.2.2",
|
||||
"proxy": "1",
|
||||
"rimraf": "^3.0.0",
|
||||
"typescript": "^3.5.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 6"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"1":"J D E F A B CC"},B:{"1":"C K L G M N O P Q R S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H"},C:{"1":"PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H xB yB","2":"0 1 2 3 4 5 6 7 8 9 DC tB I v J D E F A B C K L G M N O w g x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB EC FC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 I v J D E F A B C K L G M N O w g x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H xB yB GC"},E:{"1":"I v J D E F A B C K L G HC zB IC JC KC LC 0B qB rB 1B MC NC 2B 3B 4B 5B sB 6B 7B 8B 9B OC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G M N O w g x y z AB 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 aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d e","2":"F B C PC QC RC SC qB AC TC rB"},G:{"1":"E zB UC BC VC WC XC YC ZC aC bC cC dC eC fC gC hC iC jC kC lC mC nC 2B 3B 4B 5B sB 6B 7B 8B 9B"},H:{"2":"oC"},I:{"1":"tB I f pC qC rC sC BC tC uC"},J:{"1":"D A"},K:{"1":"h","2":"A B C qB AC rB"},L:{"1":"H"},M:{"1":"H"},N:{"1":"A B"},O:{"1":"vC"},P:{"1":"I g wC xC yC zC 0C 0B 1C 2C 3C 4C 5C sB 6C 7C 8C"},Q:{"1":"1B"},R:{"1":"9C"},S:{"1":"BD","2":"AD"}},B:7,C:"background-position-x & background-position-y"};
|
||||
@@ -0,0 +1,122 @@
|
||||
[
|
||||
["8740","䏰䰲䘃䖦䕸𧉧䵷䖳𧲱䳢𧳅㮕䜶䝄䱇䱀𤊿𣘗𧍒𦺋𧃒䱗𪍑䝏䗚䲅𧱬䴇䪤䚡𦬣爥𥩔𡩣𣸆𣽡晍囻"],
|
||||
["8767","綕夝𨮹㷴霴𧯯寛𡵞媤㘥𩺰嫑宷峼杮薓𩥅瑡璝㡵𡵓𣚞𦀡㻬"],
|
||||
["87a1","𥣞㫵竼龗𤅡𨤍𣇪𠪊𣉞䌊蒄龖鐯䤰蘓墖靊鈘秐稲晠権袝瑌篅枂稬剏遆㓦珄𥶹瓆鿇垳䤯呌䄱𣚎堘穲𧭥讏䚮𦺈䆁𥶙箮𢒼鿈𢓁𢓉𢓌鿉蔄𣖻䂴鿊䓡𪷿拁灮鿋"],
|
||||
["8840","㇀",4,"𠄌㇅𠃑𠃍㇆㇇𠃋𡿨㇈𠃊㇉㇊㇋㇌𠄎㇍㇎ĀÁǍÀĒÉĚÈŌÓǑÒÊ̄ẾÊ̌ỀÊāáǎàɑēéěèīíǐìōóǒòūúǔùǖǘǚ"],
|
||||
["88a1","ǜüê̄ếê̌ềêɡ⏚⏛"],
|
||||
["8940","𪎩𡅅"],
|
||||
["8943","攊"],
|
||||
["8946","丽滝鵎釟"],
|
||||
["894c","𧜵撑会伨侨兖兴农凤务动医华发变团声处备夲头学实実岚庆总斉柾栄桥济炼电纤纬纺织经统缆缷艺苏药视设询车轧轮"],
|
||||
["89a1","琑糼緍楆竉刧"],
|
||||
["89ab","醌碸酞肼"],
|
||||
["89b0","贋胶𠧧"],
|
||||
["89b5","肟黇䳍鷉鸌䰾𩷶𧀎鸊𪄳㗁"],
|
||||
["89c1","溚舾甙"],
|
||||
["89c5","䤑马骏龙禇𨑬𡷊𠗐𢫦两亁亀亇亿仫伷㑌侽㹈倃傈㑽㒓㒥円夅凛凼刅争剹劐匧㗇厩㕑厰㕓参吣㕭㕲㚁咓咣咴咹哐哯唘唣唨㖘唿㖥㖿嗗㗅"],
|
||||
["8a40","𧶄唥"],
|
||||
["8a43","𠱂𠴕𥄫喐𢳆㧬𠍁蹆𤶸𩓥䁓𨂾睺𢰸㨴䟕𨅝𦧲𤷪擝𠵼𠾴𠳕𡃴撍蹾𠺖𠰋𠽤𢲩𨉖𤓓"],
|
||||
["8a64","𠵆𩩍𨃩䟴𤺧𢳂骲㩧𩗴㿭㔆𥋇𩟔𧣈𢵄鵮頕"],
|
||||
["8a76","䏙𦂥撴哣𢵌𢯊𡁷㧻𡁯"],
|
||||
["8aa1","𦛚𦜖𧦠擪𥁒𠱃蹨𢆡𨭌𠜱"],
|
||||
["8aac","䠋𠆩㿺塳𢶍"],
|
||||
["8ab2","𤗈𠓼𦂗𠽌𠶖啹䂻䎺"],
|
||||
["8abb","䪴𢩦𡂝膪飵𠶜捹㧾𢝵跀嚡摼㹃"],
|
||||
["8ac9","𪘁𠸉𢫏𢳉"],
|
||||
["8ace","𡃈𣧂㦒㨆𨊛㕸𥹉𢃇噒𠼱𢲲𩜠㒼氽𤸻"],
|
||||
["8adf","𧕴𢺋𢈈𪙛𨳍𠹺𠰴𦠜羓𡃏𢠃𢤹㗻𥇣𠺌𠾍𠺪㾓𠼰𠵇𡅏𠹌"],
|
||||
["8af6","𠺫𠮩𠵈𡃀𡄽㿹𢚖搲𠾭"],
|
||||
["8b40","𣏴𧘹𢯎𠵾𠵿𢱑𢱕㨘𠺘𡃇𠼮𪘲𦭐𨳒𨶙𨳊閪哌苄喹"],
|
||||
["8b55","𩻃鰦骶𧝞𢷮煀腭胬尜𦕲脴㞗卟𨂽醶𠻺𠸏𠹷𠻻㗝𤷫㘉𠳖嚯𢞵𡃉𠸐𠹸𡁸𡅈𨈇𡑕𠹹𤹐𢶤婔𡀝𡀞𡃵𡃶垜𠸑"],
|
||||
["8ba1","𧚔𨋍𠾵𠹻𥅾㜃𠾶𡆀𥋘𪊽𤧚𡠺𤅷𨉼墙剨㘚𥜽箲孨䠀䬬鼧䧧鰟鮍𥭴𣄽嗻㗲嚉丨夂𡯁屮靑𠂆乛亻㔾尣彑忄㣺扌攵歺氵氺灬爫丬犭𤣩罒礻糹罓𦉪㓁"],
|
||||
["8bde","𦍋耂肀𦘒𦥑卝衤见𧢲讠贝钅镸长门𨸏韦页风飞饣𩠐鱼鸟黄歯龜丷𠂇阝户钢"],
|
||||
["8c40","倻淾𩱳龦㷉袏𤅎灷峵䬠𥇍㕙𥴰愢𨨲辧釶熑朙玺𣊁𪄇㲋𡦀䬐磤琂冮𨜏䀉橣𪊺䈣蘏𠩯稪𩥇𨫪靕灍匤𢁾鏴盙𨧣龧矝亣俰傼丯众龨吴綋墒壐𡶶庒庙忂𢜒斋"],
|
||||
["8ca1","𣏹椙橃𣱣泿"],
|
||||
["8ca7","爀𤔅玌㻛𤨓嬕璹讃𥲤𥚕窓篬糃繬苸薗龩袐龪躹龫迏蕟駠鈡龬𨶹𡐿䁱䊢娚"],
|
||||
["8cc9","顨杫䉶圽"],
|
||||
["8cce","藖𤥻芿𧄍䲁𦵴嵻𦬕𦾾龭龮宖龯曧繛湗秊㶈䓃𣉖𢞖䎚䔶"],
|
||||
["8ce6","峕𣬚諹屸㴒𣕑嵸龲煗䕘𤃬𡸣䱷㥸㑊𠆤𦱁諌侴𠈹妿腬顖𩣺弻"],
|
||||
["8d40","𠮟"],
|
||||
["8d42","𢇁𨥭䄂䚻𩁹㼇龳𪆵䃸㟖䛷𦱆䅼𨚲𧏿䕭㣔𥒚䕡䔛䶉䱻䵶䗪㿈𤬏㙡䓞䒽䇭崾嵈嵖㷼㠏嶤嶹㠠㠸幂庽弥徃㤈㤔㤿㥍惗愽峥㦉憷憹懏㦸戬抐拥挘㧸嚱"],
|
||||
["8da1","㨃揢揻搇摚㩋擀崕嘡龟㪗斆㪽旿晓㫲暒㬢朖㭂枤栀㭘桊梄㭲㭱㭻椉楃牜楤榟榅㮼槖㯝橥橴橱檂㯬檙㯲檫檵櫔櫶殁毁毪汵沪㳋洂洆洦涁㳯涤涱渕渘温溆𨧀溻滢滚齿滨滩漤漴㵆𣽁澁澾㵪㵵熷岙㶊瀬㶑灐灔灯灿炉𠌥䏁㗱𠻘"],
|
||||
["8e40","𣻗垾𦻓焾𥟠㙎榢𨯩孴穉𥣡𩓙穥穽𥦬窻窰竂竃燑𦒍䇊竚竝竪䇯咲𥰁笋筕笩𥌎𥳾箢筯莜𥮴𦱿篐萡箒箸𥴠㶭𥱥蒒篺簆簵𥳁籄粃𤢂粦晽𤕸糉糇糦籴糳糵糎"],
|
||||
["8ea1","繧䔝𦹄絝𦻖璍綉綫焵綳緒𤁗𦀩緤㴓緵𡟹緥𨍭縝𦄡𦅚繮纒䌫鑬縧罀罁罇礶𦋐駡羗𦍑羣𡙡𠁨䕜𣝦䔃𨌺翺𦒉者耈耝耨耯𪂇𦳃耻耼聡𢜔䦉𦘦𣷣𦛨朥肧𨩈脇脚墰𢛶汿𦒘𤾸擧𡒊舘𡡞橓𤩥𤪕䑺舩𠬍𦩒𣵾俹𡓽蓢荢𦬊𤦧𣔰𡝳𣷸芪椛芳䇛"],
|
||||
["8f40","蕋苐茚𠸖𡞴㛁𣅽𣕚艻苢茘𣺋𦶣𦬅𦮗𣗎㶿茝嗬莅䔋𦶥莬菁菓㑾𦻔橗蕚㒖𦹂𢻯葘𥯤葱㷓䓤檧葊𣲵祘蒨𦮖𦹷𦹃蓞萏莑䒠蒓蓤𥲑䉀𥳀䕃蔴嫲𦺙䔧蕳䔖枿蘖"],
|
||||
["8fa1","𨘥𨘻藁𧂈蘂𡖂𧃍䕫䕪蘨㙈𡢢号𧎚虾蝱𪃸蟮𢰧螱蟚蠏噡虬桖䘏衅衆𧗠𣶹𧗤衞袜䙛袴袵揁装睷𧜏覇覊覦覩覧覼𨨥觧𧤤𧪽誜瞓釾誐𧩙竩𧬺𣾏䜓𧬸煼謌謟𥐰𥕥謿譌譍誩𤩺讐讛誯𡛟䘕衏貛𧵔𧶏貫㜥𧵓賖𧶘𧶽贒贃𡤐賛灜贑𤳉㻐起"],
|
||||
["9040","趩𨀂𡀔𤦊㭼𨆼𧄌竧躭躶軃鋔輙輭𨍥𨐒辥錃𪊟𠩐辳䤪𨧞𨔽𣶻廸𣉢迹𪀔𨚼𨔁𢌥㦀𦻗逷𨔼𧪾遡𨕬𨘋邨𨜓郄𨛦邮都酧㫰醩釄粬𨤳𡺉鈎沟鉁鉢𥖹銹𨫆𣲛𨬌𥗛"],
|
||||
["90a1","𠴱錬鍫𨫡𨯫炏嫃𨫢𨫥䥥鉄𨯬𨰹𨯿鍳鑛躼閅閦鐦閠濶䊹𢙺𨛘𡉼𣸮䧟氜陻隖䅬隣𦻕懚隶磵𨫠隽双䦡𦲸𠉴𦐐𩂯𩃥𤫑𡤕𣌊霱虂霶䨏䔽䖅𤫩灵孁霛靜𩇕靗孊𩇫靟鐥僐𣂷𣂼鞉鞟鞱鞾韀韒韠𥑬韮琜𩐳響韵𩐝𧥺䫑頴頳顋顦㬎𧅵㵑𠘰𤅜"],
|
||||
["9140","𥜆飊颷飈飇䫿𦴧𡛓喰飡飦飬鍸餹𤨩䭲𩡗𩤅駵騌騻騐驘𥜥㛄𩂱𩯕髠髢𩬅髴䰎鬔鬭𨘀倴鬴𦦨㣃𣁽魐魀𩴾婅𡡣鮎𤉋鰂鯿鰌𩹨鷔𩾷𪆒𪆫𪃡𪄣𪇟鵾鶃𪄴鸎梈"],
|
||||
["91a1","鷄𢅛𪆓𪈠𡤻𪈳鴹𪂹𪊴麐麕麞麢䴴麪麯𤍤黁㭠㧥㴝伲㞾𨰫鼂鼈䮖鐤𦶢鼗鼖鼹嚟嚊齅馸𩂋韲葿齢齩竜龎爖䮾𤥵𤦻煷𤧸𤍈𤩑玞𨯚𡣺禟𨥾𨸶鍩鏳𨩄鋬鎁鏋𨥬𤒹爗㻫睲穃烐𤑳𤏸煾𡟯炣𡢾𣖙㻇𡢅𥐯𡟸㜢𡛻𡠹㛡𡝴𡣑𥽋㜣𡛀坛𤨥𡏾𡊨"],
|
||||
["9240","𡏆𡒶蔃𣚦蔃葕𤦔𧅥𣸱𥕜𣻻𧁒䓴𣛮𩦝𦼦柹㜳㰕㷧塬𡤢栐䁗𣜿𤃡𤂋𤄏𦰡哋嚞𦚱嚒𠿟𠮨𠸍鏆𨬓鎜仸儫㠙𤐶亼𠑥𠍿佋侊𥙑婨𠆫𠏋㦙𠌊𠐔㐵伩𠋀𨺳𠉵諚𠈌亘"],
|
||||
["92a1","働儍侢伃𤨎𣺊佂倮偬傁俌俥偘僼兙兛兝兞湶𣖕𣸹𣺿浲𡢄𣺉冨凃𠗠䓝𠒣𠒒𠒑赺𨪜𠜎剙劤𠡳勡鍮䙺熌𤎌𠰠𤦬𡃤槑𠸝瑹㻞璙琔瑖玘䮎𤪼𤂍叐㖄爏𤃉喴𠍅响𠯆圝鉝雴鍦埝垍坿㘾壋媙𨩆𡛺𡝯𡜐娬妸銏婾嫏娒𥥆𡧳𡡡𤊕㛵洅瑃娡𥺃"],
|
||||
["9340","媁𨯗𠐓鏠璌𡌃焅䥲鐈𨧻鎽㞠尞岞幞幈𡦖𡥼𣫮廍孏𡤃𡤄㜁𡢠㛝𡛾㛓脪𨩇𡶺𣑲𨦨弌弎𡤧𡞫婫𡜻孄蘔𧗽衠恾𢡠𢘫忛㺸𢖯𢖾𩂈𦽳懀𠀾𠁆𢘛憙憘恵𢲛𢴇𤛔𩅍"],
|
||||
["93a1","摱𤙥𢭪㨩𢬢𣑐𩣪𢹸挷𪑛撶挱揑𤧣𢵧护𢲡搻敫楲㯴𣂎𣊭𤦉𣊫唍𣋠𡣙𩐿曎𣊉𣆳㫠䆐𥖄𨬢𥖏𡛼𥕛𥐥磮𣄃𡠪𣈴㑤𣈏𣆂𤋉暎𦴤晫䮓昰𧡰𡷫晣𣋒𣋡昞𥡲㣑𣠺𣞼㮙𣞢𣏾瓐㮖枏𤘪梶栞㯄檾㡣𣟕𤒇樳橒櫉欅𡤒攑梘橌㯗橺歗𣿀𣲚鎠鋲𨯪𨫋"],
|
||||
["9440","銉𨀞𨧜鑧涥漋𤧬浧𣽿㶏渄𤀼娽渊塇洤硂焻𤌚𤉶烱牐犇犔𤞏𤜥兹𤪤𠗫瑺𣻸𣙟𤩊𤤗𥿡㼆㺱𤫟𨰣𣼵悧㻳瓌琼鎇琷䒟𦷪䕑疃㽣𤳙𤴆㽘畕癳𪗆㬙瑨𨫌𤦫𤦎㫻"],
|
||||
["94a1","㷍𤩎㻿𤧅𤣳釺圲鍂𨫣𡡤僟𥈡𥇧睸𣈲眎眏睻𤚗𣞁㩞𤣰琸璛㺿𤪺𤫇䃈𤪖𦆮錇𥖁砞碍碈磒珐祙𧝁𥛣䄎禛蒖禥樭𣻺稺秴䅮𡛦䄲鈵秱𠵌𤦌𠊙𣶺𡝮㖗啫㕰㚪𠇔𠰍竢婙𢛵𥪯𥪜娍𠉛磰娪𥯆竾䇹籝籭䈑𥮳𥺼𥺦糍𤧹𡞰粎籼粮檲緜縇緓罎𦉡"],
|
||||
["9540","𦅜𧭈綗𥺂䉪𦭵𠤖柖𠁎𣗏埄𦐒𦏸𤥢翝笧𠠬𥫩𥵃笌𥸎駦虅驣樜𣐿㧢𤧷𦖭騟𦖠蒀𧄧𦳑䓪脷䐂胆脉腂𦞴飃𦩂艢艥𦩑葓𦶧蘐𧈛媆䅿𡡀嬫𡢡嫤𡣘蚠蜨𣶏蠭𧐢娂"],
|
||||
["95a1","衮佅袇袿裦襥襍𥚃襔𧞅𧞄𨯵𨯙𨮜𨧹㺭蒣䛵䛏㟲訽訜𩑈彍鈫𤊄旔焩烄𡡅鵭貟賩𧷜妚矃姰䍮㛔踪躧𤰉輰轊䋴汘澻𢌡䢛潹溋𡟚鯩㚵𤤯邻邗啱䤆醻鐄𨩋䁢𨫼鐧𨰝𨰻蓥訫閙閧閗閖𨴴瑅㻂𤣿𤩂𤏪㻧𣈥随𨻧𨹦𨹥㻌𤧭𤩸𣿮琒瑫㻼靁𩂰"],
|
||||
["9640","桇䨝𩂓𥟟靝鍨𨦉𨰦𨬯𦎾銺嬑譩䤼珹𤈛鞛靱餸𠼦巁𨯅𤪲頟𩓚鋶𩗗釥䓀𨭐𤩧𨭤飜𨩅㼀鈪䤥萔餻饍𧬆㷽馛䭯馪驜𨭥𥣈檏騡嫾騯𩣱䮐𩥈馼䮽䮗鍽塲𡌂堢𤦸"],
|
||||
["96a1","𡓨硄𢜟𣶸棅㵽鑘㤧慐𢞁𢥫愇鱏鱓鱻鰵鰐魿鯏𩸭鮟𪇵𪃾鴡䲮𤄄鸘䲰鴌𪆴𪃭𪃳𩤯鶥蒽𦸒𦿟𦮂藼䔳𦶤𦺄𦷰萠藮𦸀𣟗𦁤秢𣖜𣙀䤭𤧞㵢鏛銾鍈𠊿碹鉷鑍俤㑀遤𥕝砽硔碶硋𡝗𣇉𤥁㚚佲濚濙瀞瀞吔𤆵垻壳垊鴖埗焴㒯𤆬燫𦱀𤾗嬨𡞵𨩉"],
|
||||
["9740","愌嫎娋䊼𤒈㜬䭻𨧼鎻鎸𡣖𠼝葲𦳀𡐓𤋺𢰦𤏁妔𣶷𦝁綨𦅛𦂤𤦹𤦋𨧺鋥珢㻩璴𨭣𡢟㻡𤪳櫘珳珻㻖𤨾𤪔𡟙𤩦𠎧𡐤𤧥瑈𤤖炥𤥶銄珦鍟𠓾錱𨫎𨨖鎆𨯧𥗕䤵𨪂煫"],
|
||||
["97a1","𤥃𠳿嚤𠘚𠯫𠲸唂秄𡟺緾𡛂𤩐𡡒䔮鐁㜊𨫀𤦭妰𡢿𡢃𧒄媡㛢𣵛㚰鉟婹𨪁𡡢鍴㳍𠪴䪖㦊僴㵩㵌𡎜煵䋻𨈘渏𩃤䓫浗𧹏灧沯㳖𣿭𣸭渂漌㵯𠏵畑㚼㓈䚀㻚䡱姄鉮䤾轁𨰜𦯀堒埈㛖𡑒烾𤍢𤩱𢿣𡊰𢎽梹楧𡎘𣓥𧯴𣛟𨪃𣟖𣏺𤲟樚𣚭𦲷萾䓟䓎"],
|
||||
["9840","𦴦𦵑𦲂𦿞漗𧄉茽𡜺菭𦲀𧁓𡟛妉媂𡞳婡婱𡤅𤇼㜭姯𡜼㛇熎鎐暚𤊥婮娫𤊓樫𣻹𧜶𤑛𤋊焝𤉙𨧡侰𦴨峂𤓎𧹍𤎽樌𤉖𡌄炦焳𤏩㶥泟勇𤩏繥姫崯㷳彜𤩝𡟟綤萦"],
|
||||
["98a1","咅𣫺𣌀𠈔坾𠣕𠘙㿥𡾞𪊶瀃𩅛嵰玏糓𨩙𩐠俈翧狍猐𧫴猸猹𥛶獁獈㺩𧬘遬燵𤣲珡臶㻊県㻑沢国琙琞琟㻢㻰㻴㻺瓓㼎㽓畂畭畲疍㽼痈痜㿀癍㿗癴㿜発𤽜熈嘣覀塩䀝睃䀹条䁅㗛瞘䁪䁯属瞾矋売砘点砜䂨砹硇硑硦葈𥔵礳栃礲䄃"],
|
||||
["9940","䄉禑禙辻稆込䅧窑䆲窼艹䇄竏竛䇏両筢筬筻簒簛䉠䉺类粜䊌粸䊔糭输烀𠳏総緔緐緽羮羴犟䎗耠耥笹耮耱联㷌垴炠肷胩䏭脌猪脎脒畠脔䐁㬹腖腙腚"],
|
||||
["99a1","䐓堺腼膄䐥膓䐭膥埯臁臤艔䒏芦艶苊苘苿䒰荗险榊萅烵葤惣蒈䔄蒾蓡蓸蔐蔸蕒䔻蕯蕰藠䕷虲蚒蚲蛯际螋䘆䘗袮裿褤襇覑𧥧訩訸誔誴豑賔賲贜䞘塟跃䟭仮踺嗘坔蹱嗵躰䠷軎転軤軭軲辷迁迊迌逳駄䢭飠鈓䤞鈨鉘鉫銱銮銿"],
|
||||
["9a40","鋣鋫鋳鋴鋽鍃鎄鎭䥅䥑麿鐗匁鐝鐭鐾䥪鑔鑹锭関䦧间阳䧥枠䨤靀䨵鞲韂噔䫤惨颹䬙飱塄餎餙冴餜餷饂饝饢䭰駅䮝騼鬏窃魩鮁鯝鯱鯴䱭鰠㝯𡯂鵉鰺"],
|
||||
["9aa1","黾噐鶓鶽鷀鷼银辶鹻麬麱麽黆铜黢黱黸竈齄𠂔𠊷𠎠椚铃妬𠓗塀铁㞹𠗕𠘕𠙶𡚺块煳𠫂𠫍𠮿呪吆𠯋咞𠯻𠰻𠱓𠱥𠱼惧𠲍噺𠲵𠳝𠳭𠵯𠶲𠷈楕鰯螥𠸄𠸎𠻗𠾐𠼭𠹳尠𠾼帋𡁜𡁏𡁶朞𡁻𡂈𡂖㙇𡂿𡃓𡄯𡄻卤蒭𡋣𡍵𡌶讁𡕷𡘙𡟃𡟇乸炻𡠭𡥪"],
|
||||
["9b40","𡨭𡩅𡰪𡱰𡲬𡻈拃𡻕𡼕熘桕𢁅槩㛈𢉼𢏗𢏺𢜪𢡱𢥏苽𢥧𢦓𢫕覥𢫨辠𢬎鞸𢬿顇骽𢱌"],
|
||||
["9b62","𢲈𢲷𥯨𢴈𢴒𢶷𢶕𢹂𢽴𢿌𣀳𣁦𣌟𣏞徱晈暿𧩹𣕧𣗳爁𤦺矗𣘚𣜖纇𠍆墵朎"],
|
||||
["9ba1","椘𣪧𧙗𥿢𣸑𣺹𧗾𢂚䣐䪸𤄙𨪚𤋮𤌍𤀻𤌴𤎖𤩅𠗊凒𠘑妟𡺨㮾𣳿𤐄𤓖垈𤙴㦛𤜯𨗨𩧉㝢𢇃譞𨭎駖𤠒𤣻𤨕爉𤫀𠱸奥𤺥𤾆𠝹軚𥀬劏圿煱𥊙𥐙𣽊𤪧喼𥑆𥑮𦭒釔㑳𥔿𧘲𥕞䜘𥕢𥕦𥟇𤤿𥡝偦㓻𣏌惞𥤃䝼𨥈𥪮𥮉𥰆𡶐垡煑澶𦄂𧰒遖𦆲𤾚譢𦐂𦑊"],
|
||||
["9c40","嵛𦯷輶𦒄𡤜諪𤧶𦒈𣿯𦔒䯀𦖿𦚵𢜛鑥𥟡憕娧晉侻嚹𤔡𦛼乪𤤴陖涏𦲽㘘襷𦞙𦡮𦐑𦡞營𦣇筂𩃀𠨑𦤦鄄𦤹穅鷰𦧺騦𦨭㙟𦑩𠀡禃𦨴𦭛崬𣔙菏𦮝䛐𦲤画补𦶮墶"],
|
||||
["9ca1","㜜𢖍𧁋𧇍㱔𧊀𧊅銁𢅺𧊋錰𧋦𤧐氹钟𧑐𠻸蠧裵𢤦𨑳𡞱溸𤨪𡠠㦤㚹尐秣䔿暶𩲭𩢤襃𧟌𧡘囖䃟𡘊㦡𣜯𨃨𡏅熭荦𧧝𩆨婧䲷𧂯𨦫𧧽𧨊𧬋𧵦𤅺筃祾𨀉澵𪋟樃𨌘厢𦸇鎿栶靝𨅯𨀣𦦵𡏭𣈯𨁈嶅𨰰𨂃圕頣𨥉嶫𤦈斾槕叒𤪥𣾁㰑朶𨂐𨃴𨄮𡾡𨅏"],
|
||||
["9d40","𨆉𨆯𨈚𨌆𨌯𨎊㗊𨑨𨚪䣺揦𨥖砈鉕𨦸䏲𨧧䏟𨧨𨭆𨯔姸𨰉輋𨿅𩃬筑𩄐𩄼㷷𩅞𤫊运犏嚋𩓧𩗩𩖰𩖸𩜲𩣑𩥉𩥪𩧃𩨨𩬎𩵚𩶛纟𩻸𩼣䲤镇𪊓熢𪋿䶑递𪗋䶜𠲜达嗁"],
|
||||
["9da1","辺𢒰边𤪓䔉繿潖檱仪㓤𨬬𧢝㜺躀𡟵𨀤𨭬𨮙𧨾𦚯㷫𧙕𣲷𥘵𥥖亚𥺁𦉘嚿𠹭踎孭𣺈𤲞揞拐𡟶𡡻攰嘭𥱊吚𥌑㷆𩶘䱽嘢嘞罉𥻘奵𣵀蝰东𠿪𠵉𣚺脗鵞贘瘻鱅癎瞹鍅吲腈苷嘥脲萘肽嗪祢噃吖𠺝㗎嘅嗱曱𨋢㘭甴嗰喺咗啲𠱁𠲖廐𥅈𠹶𢱢"],
|
||||
["9e40","𠺢麫絚嗞𡁵抝靭咔賍燶酶揼掹揾啩𢭃鱲𢺳冚㓟𠶧冧呍唞唓癦踭𦢊疱肶蠄螆裇膶萜𡃁䓬猄𤜆宐茋𦢓噻𢛴𧴯𤆣𧵳𦻐𧊶酰𡇙鈈𣳼𪚩𠺬𠻹牦𡲢䝎𤿂𧿹𠿫䃺"],
|
||||
["9ea1","鱝攟𢶠䣳𤟠𩵼𠿬𠸊恢𧖣𠿭"],
|
||||
["9ead","𦁈𡆇熣纎鵐业丄㕷嬍沲卧㚬㧜卽㚥𤘘墚𤭮舭呋垪𥪕𠥹"],
|
||||
["9ec5","㩒𢑥獴𩺬䴉鯭𣳾𩼰䱛𤾩𩖞𩿞葜𣶶𧊲𦞳𣜠挮紥𣻷𣸬㨪逈勌㹴㙺䗩𠒎癀嫰𠺶硺𧼮墧䂿噼鮋嵴癔𪐴麅䳡痹㟻愙𣃚𤏲"],
|
||||
["9ef5","噝𡊩垧𤥣𩸆刴𧂮㖭汊鵼"],
|
||||
["9f40","籖鬹埞𡝬屓擓𩓐𦌵𧅤蚭𠴨𦴢𤫢𠵱"],
|
||||
["9f4f","凾𡼏嶎霃𡷑麁遌笟鬂峑箣扨挵髿篏鬪籾鬮籂粆鰕篼鬉鼗鰛𤤾齚啳寃俽麘俲剠㸆勑坧偖妷帒韈鶫轜呩鞴饀鞺匬愰"],
|
||||
["9fa1","椬叚鰊鴂䰻陁榀傦畆𡝭駚剳"],
|
||||
["9fae","酙隁酜"],
|
||||
["9fb2","酑𨺗捿𦴣櫊嘑醎畺抅𠏼獏籰𥰡𣳽"],
|
||||
["9fc1","𤤙盖鮝个𠳔莾衂"],
|
||||
["9fc9","届槀僭坺刟巵从氱𠇲伹咜哚劚趂㗾弌㗳"],
|
||||
["9fdb","歒酼龥鮗頮颴骺麨麄煺笔"],
|
||||
["9fe7","毺蠘罸"],
|
||||
["9feb","嘠𪙊蹷齓"],
|
||||
["9ff0","跔蹏鸜踁抂𨍽踨蹵竓𤩷稾磘泪詧瘇"],
|
||||
["a040","𨩚鼦泎蟖痃𪊲硓咢贌狢獱謭猂瓱賫𤪻蘯徺袠䒷"],
|
||||
["a055","𡠻𦸅"],
|
||||
["a058","詾𢔛"],
|
||||
["a05b","惽癧髗鵄鍮鮏蟵"],
|
||||
["a063","蠏賷猬霡鮰㗖犲䰇籑饊𦅙慙䰄麖慽"],
|
||||
["a073","坟慯抦戹拎㩜懢厪𣏵捤栂㗒"],
|
||||
["a0a1","嵗𨯂迚𨸹"],
|
||||
["a0a6","僙𡵆礆匲阸𠼻䁥"],
|
||||
["a0ae","矾"],
|
||||
["a0b0","糂𥼚糚稭聦聣絍甅瓲覔舚朌聢𧒆聛瓰脃眤覉𦟌畓𦻑螩蟎臈螌詉貭譃眫瓸蓚㘵榲趦"],
|
||||
["a0d4","覩瑨涹蟁𤀑瓧㷛煶悤憜㳑煢恷"],
|
||||
["a0e2","罱𨬭牐惩䭾删㰘𣳇𥻗𧙖𥔱𡥄𡋾𩤃𦷜𧂭峁𦆭𨨏𣙷𠃮𦡆𤼎䕢嬟𦍌齐麦𦉫"],
|
||||
["a3c0","␀",31,"␡"],
|
||||
["c6a1","①",9,"⑴",9,"ⅰ",9,"丶丿亅亠冂冖冫勹匸卩厶夊宀巛⼳广廴彐彡攴无疒癶辵隶¨ˆヽヾゝゞ〃仝々〆〇ー[]✽ぁ",23],
|
||||
["c740","す",58,"ァアィイ"],
|
||||
["c7a1","ゥ",81,"А",5,"ЁЖ",4],
|
||||
["c840","Л",26,"ёж",25,"⇧↸↹㇏𠃌乚𠂊刂䒑"],
|
||||
["c8a1","龰冈龱𧘇"],
|
||||
["c8cd","¬¦'"㈱№℡゛゜⺀⺄⺆⺇⺈⺊⺌⺍⺕⺜⺝⺥⺧⺪⺬⺮⺶⺼⺾⻆⻊⻌⻍⻏⻖⻗⻞⻣"],
|
||||
["c8f5","ʃɐɛɔɵœøŋʊɪ"],
|
||||
["f9fe","■"],
|
||||
["fa40","𠕇鋛𠗟𣿅蕌䊵珯况㙉𤥂𨧤鍄𡧛苮𣳈砼杄拟𤤳𨦪𠊠𦮳𡌅侫𢓭倈𦴩𧪄𣘀𤪱𢔓倩𠍾徤𠎀𠍇滛𠐟偽儁㑺儎顬㝃萖𤦤𠒇兠𣎴兪𠯿𢃼𠋥𢔰𠖎𣈳𡦃宂蝽𠖳𣲙冲冸"],
|
||||
["faa1","鴴凉减凑㳜凓𤪦决凢卂凭菍椾𣜭彻刋刦刼劵剗劔効勅簕蕂勠蘍𦬓包𨫞啉滙𣾀𠥔𣿬匳卄𠯢泋𡜦栛珕恊㺪㣌𡛨燝䒢卭却𨚫卾卿𡖖𡘓矦厓𨪛厠厫厮玧𥝲㽙玜叁叅汉义埾叙㪫𠮏叠𣿫𢶣叶𠱷吓灹唫晗浛呭𦭓𠵴啝咏咤䞦𡜍𠻝㶴𠵍"],
|
||||
["fb40","𨦼𢚘啇䳭启琗喆喩嘅𡣗𤀺䕒𤐵暳𡂴嘷曍𣊊暤暭噍噏磱囱鞇叾圀囯园𨭦㘣𡉏坆𤆥汮炋坂㚱𦱾埦𡐖堃𡑔𤍣堦𤯵塜墪㕡壠壜𡈼壻寿坃𪅐𤉸鏓㖡够梦㛃湙"],
|
||||
["fba1","𡘾娤啓𡚒蔅姉𠵎𦲁𦴪𡟜姙𡟻𡞲𦶦浱𡠨𡛕姹𦹅媫婣㛦𤦩婷㜈媖瑥嫓𦾡𢕔㶅𡤑㜲𡚸広勐孶斈孼𧨎䀄䡝𠈄寕慠𡨴𥧌𠖥寳宝䴐尅𡭄尓珎尔𡲥𦬨屉䣝岅峩峯嶋𡷹𡸷崐崘嵆𡺤岺巗苼㠭𤤁𢁉𢅳芇㠶㯂帮檊幵幺𤒼𠳓厦亷廐厨𡝱帉廴𨒂"],
|
||||
["fc40","廹廻㢠廼栾鐛弍𠇁弢㫞䢮𡌺强𦢈𢏐彘𢑱彣鞽𦹮彲鍀𨨶徧嶶㵟𥉐𡽪𧃸𢙨釖𠊞𨨩怱暅𡡷㥣㷇㘹垐𢞴祱㹀悞悤悳𤦂𤦏𧩓璤僡媠慤萤慂慈𦻒憁凴𠙖憇宪𣾷"],
|
||||
["fca1","𢡟懓𨮝𩥝懐㤲𢦀𢣁怣慜攞掋𠄘担𡝰拕𢸍捬𤧟㨗搸揸𡎎𡟼撐澊𢸶頔𤂌𥜝擡擥鑻㩦携㩗敍漖𤨨𤨣斅敭敟𣁾斵𤥀䬷旑䃘𡠩无旣忟𣐀昘𣇷𣇸晄𣆤𣆥晋𠹵晧𥇦晳晴𡸽𣈱𨗴𣇈𥌓矅𢣷馤朂𤎜𤨡㬫槺𣟂杞杧杢𤇍𩃭柗䓩栢湐鈼栁𣏦𦶠桝"],
|
||||
["fd40","𣑯槡樋𨫟楳棃𣗍椁椀㴲㨁𣘼㮀枬楡𨩊䋼椶榘㮡𠏉荣傐槹𣙙𢄪橅𣜃檝㯳枱櫈𩆜㰍欝𠤣惞欵歴𢟍溵𣫛𠎵𡥘㝀吡𣭚毡𣻼毜氷𢒋𤣱𦭑汚舦汹𣶼䓅𣶽𤆤𤤌𤤀"],
|
||||
["fda1","𣳉㛥㳫𠴲鮃𣇹𢒑羏样𦴥𦶡𦷫涖浜湼漄𤥿𤂅𦹲蔳𦽴凇沜渝萮𨬡港𣸯瑓𣾂秌湏媑𣁋濸㜍澝𣸰滺𡒗𤀽䕕鏰潄潜㵎潴𩅰㴻澟𤅄濓𤂑𤅕𤀹𣿰𣾴𤄿凟𤅖𤅗𤅀𦇝灋灾炧炁烌烕烖烟䄄㷨熴熖𤉷焫煅媈煊煮岜𤍥煏鍢𤋁焬𤑚𤨧𤨢熺𨯨炽爎"],
|
||||
["fe40","鑂爕夑鑃爤鍁𥘅爮牀𤥴梽牕牗㹕𣁄栍漽犂猪猫𤠣𨠫䣭𨠄猨献珏玪𠰺𦨮珉瑉𤇢𡛧𤨤昣㛅𤦷𤦍𤧻珷琕椃𤨦琹𠗃㻗瑜𢢭瑠𨺲瑇珤瑶莹瑬㜰瑴鏱樬璂䥓𤪌"],
|
||||
["fea1","𤅟𤩹𨮏孆𨰃𡢞瓈𡦈甎瓩甞𨻙𡩋寗𨺬鎅畍畊畧畮𤾂㼄𤴓疎瑝疞疴瘂瘬癑癏癯癶𦏵皐臯㟸𦤑𦤎皡皥皷盌𦾟葢𥂝𥅽𡸜眞眦着撯𥈠睘𣊬瞯𨥤𨥨𡛁矴砉𡍶𤨒棊碯磇磓隥礮𥗠磗礴碱𧘌辸袄𨬫𦂃𢘜禆褀椂禀𥡗禝𧬹礼禩渪𧄦㺨秆𩄍秔"]
|
||||
]
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"J D E F A B CC"},B:{"2":"C K L G M N O P Q R S T U V W X Y Z a b c d e i j k l m n o p q r s t u f","322":"H"},C:{"2":"0 1 2 3 4 5 6 7 8 9 DC tB I v J D E F A B C K L G M N O w g x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H EC FC","194":"xB yB"},D:{"1":"xB yB GC","2":"0 1 2 3 4 5 6 7 8 9 I v J D E F A B C K L G M N O w g x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R S T U V W X Y Z a b c d e i j k l m n o p q r s t u f","322":"H"},E:{"1":"G NC 2B 3B 4B 5B sB 6B 7B 8B 9B OC","2":"I v J D E F A B C K L HC zB IC JC KC LC 0B qB rB 1B MC"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G M N O w g x y z AB 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 aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d e PC QC RC SC qB AC TC rB"},G:{"1":"nC 2B 3B 4B 5B sB 6B 7B 8B 9B","2":"E zB UC BC VC WC XC YC ZC aC bC cC dC eC fC gC hC iC jC kC lC mC"},H:{"2":"oC"},I:{"2":"tB I f pC qC rC sC BC tC uC"},J:{"2":"D A"},K:{"2":"A B C h qB AC rB"},L:{"2":"H"},M:{"2":"H"},N:{"2":"A B"},O:{"2":"vC"},P:{"2":"I g wC xC yC zC 0C 0B 1C 2C 3C 4C 5C sB 6C 7C 8C"},Q:{"2":"1B"},R:{"2":"9C"},S:{"2":"AD BD"}},B:4,C:"LCH and Lab color values"};
|
||||
@@ -0,0 +1,16 @@
|
||||
module.exports = {
|
||||
'at': require('./wrapperAt'),
|
||||
'chain': require('./chain'),
|
||||
'commit': require('./commit'),
|
||||
'lodash': require('./wrapperLodash'),
|
||||
'next': require('./next'),
|
||||
'plant': require('./plant'),
|
||||
'reverse': require('./wrapperReverse'),
|
||||
'tap': require('./tap'),
|
||||
'thru': require('./thru'),
|
||||
'toIterator': require('./toIterator'),
|
||||
'toJSON': require('./toJSON'),
|
||||
'value': require('./wrapperValue'),
|
||||
'valueOf': require('./valueOf'),
|
||||
'wrapperChain': require('./wrapperChain')
|
||||
};
|
||||
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = require("./is-implemented")() ? Math.sinh : require("./shim");
|
||||
@@ -0,0 +1,111 @@
|
||||
/* -*- Mode: js; js-indent-level: 2; -*- */
|
||||
/*
|
||||
* Copyright 2011 Mozilla Foundation and contributors
|
||||
* Licensed under the New BSD license. See LICENSE or:
|
||||
* http://opensource.org/licenses/BSD-3-Clause
|
||||
*/
|
||||
|
||||
exports.GREATEST_LOWER_BOUND = 1;
|
||||
exports.LEAST_UPPER_BOUND = 2;
|
||||
|
||||
/**
|
||||
* Recursive implementation of binary search.
|
||||
*
|
||||
* @param aLow Indices here and lower do not contain the needle.
|
||||
* @param aHigh Indices here and higher do not contain the needle.
|
||||
* @param aNeedle The element being searched for.
|
||||
* @param aHaystack The non-empty array being searched.
|
||||
* @param aCompare Function which takes two elements and returns -1, 0, or 1.
|
||||
* @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or
|
||||
* 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the
|
||||
* closest element that is smaller than or greater than the one we are
|
||||
* searching for, respectively, if the exact element cannot be found.
|
||||
*/
|
||||
function recursiveSearch(aLow, aHigh, aNeedle, aHaystack, aCompare, aBias) {
|
||||
// This function terminates when one of the following is true:
|
||||
//
|
||||
// 1. We find the exact element we are looking for.
|
||||
//
|
||||
// 2. We did not find the exact element, but we can return the index of
|
||||
// the next-closest element.
|
||||
//
|
||||
// 3. We did not find the exact element, and there is no next-closest
|
||||
// element than the one we are searching for, so we return -1.
|
||||
var mid = Math.floor((aHigh - aLow) / 2) + aLow;
|
||||
var cmp = aCompare(aNeedle, aHaystack[mid], true);
|
||||
if (cmp === 0) {
|
||||
// Found the element we are looking for.
|
||||
return mid;
|
||||
}
|
||||
else if (cmp > 0) {
|
||||
// Our needle is greater than aHaystack[mid].
|
||||
if (aHigh - mid > 1) {
|
||||
// The element is in the upper half.
|
||||
return recursiveSearch(mid, aHigh, aNeedle, aHaystack, aCompare, aBias);
|
||||
}
|
||||
|
||||
// The exact needle element was not found in this haystack. Determine if
|
||||
// we are in termination case (3) or (2) and return the appropriate thing.
|
||||
if (aBias == exports.LEAST_UPPER_BOUND) {
|
||||
return aHigh < aHaystack.length ? aHigh : -1;
|
||||
} else {
|
||||
return mid;
|
||||
}
|
||||
}
|
||||
else {
|
||||
// Our needle is less than aHaystack[mid].
|
||||
if (mid - aLow > 1) {
|
||||
// The element is in the lower half.
|
||||
return recursiveSearch(aLow, mid, aNeedle, aHaystack, aCompare, aBias);
|
||||
}
|
||||
|
||||
// we are in termination case (3) or (2) and return the appropriate thing.
|
||||
if (aBias == exports.LEAST_UPPER_BOUND) {
|
||||
return mid;
|
||||
} else {
|
||||
return aLow < 0 ? -1 : aLow;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This is an implementation of binary search which will always try and return
|
||||
* the index of the closest element if there is no exact hit. This is because
|
||||
* mappings between original and generated line/col pairs are single points,
|
||||
* and there is an implicit region between each of them, so a miss just means
|
||||
* that you aren't on the very start of a region.
|
||||
*
|
||||
* @param aNeedle The element you are looking for.
|
||||
* @param aHaystack The array that is being searched.
|
||||
* @param aCompare A function which takes the needle and an element in the
|
||||
* array and returns -1, 0, or 1 depending on whether the needle is less
|
||||
* than, equal to, or greater than the element, respectively.
|
||||
* @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or
|
||||
* 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the
|
||||
* closest element that is smaller than or greater than the one we are
|
||||
* searching for, respectively, if the exact element cannot be found.
|
||||
* Defaults to 'binarySearch.GREATEST_LOWER_BOUND'.
|
||||
*/
|
||||
exports.search = function search(aNeedle, aHaystack, aCompare, aBias) {
|
||||
if (aHaystack.length === 0) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
var index = recursiveSearch(-1, aHaystack.length, aNeedle, aHaystack,
|
||||
aCompare, aBias || exports.GREATEST_LOWER_BOUND);
|
||||
if (index < 0) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
// We have found either the exact element, or the next-closest element than
|
||||
// the one we are searching for. However, there may be more than one such
|
||||
// element. Make sure we always return the smallest of these.
|
||||
while (index - 1 >= 0) {
|
||||
if (aCompare(aHaystack[index], aHaystack[index - 1], true) !== 0) {
|
||||
break;
|
||||
}
|
||||
--index;
|
||||
}
|
||||
|
||||
return index;
|
||||
};
|
||||
@@ -0,0 +1,5 @@
|
||||
var convert = require('./convert'),
|
||||
func = convert('toLower', require('../toLower'), require('./_falseOptions'));
|
||||
|
||||
func.placeholder = require('./placeholder');
|
||||
module.exports = func;
|
||||
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2016 Douglas Christopher Wilson <doug@somethingdoug.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 @@
|
||||
{"version":3,"file":"getXHRResponse.d.ts","sourceRoot":"","sources":["../../../../src/internal/ajax/getXHRResponse.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,cAAc,OAwBjD"}
|
||||
@@ -0,0 +1,22 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = isISO31661Alpha2;
|
||||
exports.CountryCodes = void 0;
|
||||
|
||||
var _assertString = _interopRequireDefault(require("./util/assertString"));
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
// from https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
|
||||
var validISO31661Alpha2CountriesCodes = new Set(['AD', 'AE', 'AF', 'AG', 'AI', 'AL', 'AM', 'AO', 'AQ', 'AR', 'AS', 'AT', 'AU', 'AW', 'AX', 'AZ', 'BA', 'BB', 'BD', 'BE', 'BF', 'BG', 'BH', 'BI', 'BJ', 'BL', 'BM', 'BN', 'BO', 'BQ', 'BR', 'BS', 'BT', 'BV', 'BW', 'BY', 'BZ', 'CA', 'CC', 'CD', 'CF', 'CG', 'CH', 'CI', 'CK', 'CL', 'CM', 'CN', 'CO', 'CR', 'CU', 'CV', 'CW', 'CX', 'CY', 'CZ', 'DE', 'DJ', 'DK', 'DM', 'DO', 'DZ', 'EC', 'EE', 'EG', 'EH', 'ER', 'ES', 'ET', 'FI', 'FJ', 'FK', 'FM', 'FO', 'FR', 'GA', 'GB', 'GD', 'GE', 'GF', 'GG', 'GH', 'GI', 'GL', 'GM', 'GN', 'GP', 'GQ', 'GR', 'GS', 'GT', 'GU', 'GW', 'GY', 'HK', 'HM', 'HN', 'HR', 'HT', 'HU', 'ID', 'IE', 'IL', 'IM', 'IN', 'IO', 'IQ', 'IR', 'IS', 'IT', 'JE', 'JM', 'JO', 'JP', 'KE', 'KG', 'KH', 'KI', 'KM', 'KN', 'KP', 'KR', 'KW', 'KY', 'KZ', 'LA', 'LB', 'LC', 'LI', 'LK', 'LR', 'LS', 'LT', 'LU', 'LV', 'LY', 'MA', 'MC', 'MD', 'ME', 'MF', 'MG', 'MH', 'MK', 'ML', 'MM', 'MN', 'MO', 'MP', 'MQ', 'MR', 'MS', 'MT', 'MU', 'MV', 'MW', 'MX', 'MY', 'MZ', 'NA', 'NC', 'NE', 'NF', 'NG', 'NI', 'NL', 'NO', 'NP', 'NR', 'NU', 'NZ', 'OM', 'PA', 'PE', 'PF', 'PG', 'PH', 'PK', 'PL', 'PM', 'PN', 'PR', 'PS', 'PT', 'PW', 'PY', 'QA', 'RE', 'RO', 'RS', 'RU', 'RW', 'SA', 'SB', 'SC', 'SD', 'SE', 'SG', 'SH', 'SI', 'SJ', 'SK', 'SL', 'SM', 'SN', 'SO', 'SR', 'SS', 'ST', 'SV', 'SX', 'SY', 'SZ', 'TC', 'TD', 'TF', 'TG', 'TH', 'TJ', 'TK', 'TL', 'TM', 'TN', 'TO', 'TR', 'TT', 'TV', 'TW', 'TZ', 'UA', 'UG', 'UM', 'US', 'UY', 'UZ', 'VA', 'VC', 'VE', 'VG', 'VI', 'VN', 'VU', 'WF', 'WS', 'YE', 'YT', 'ZA', 'ZM', 'ZW']);
|
||||
|
||||
function isISO31661Alpha2(str) {
|
||||
(0, _assertString.default)(str);
|
||||
return validISO31661Alpha2CountriesCodes.has(str.toUpperCase());
|
||||
}
|
||||
|
||||
var CountryCodes = validISO31661Alpha2CountriesCodes;
|
||||
exports.CountryCodes = CountryCodes;
|
||||
@@ -0,0 +1 @@
|
||||
{"name":"import-lazy","version":"4.0.0","files":{"license":{"checkedAt":1678883669272,"integrity":"sha512-nIst73auX/5NY2Fmv5Y116vWnNrEv4GaIUX3lpZG05rpXJY2S8EX+fpUS5hRjClCM0VdT2Za9DDHXXB5jdSrEw==","mode":420,"size":1109},"package.json":{"checkedAt":1678883672611,"integrity":"sha512-Cl/P0/nUwuxRs+M26Uvv73J3WVuz9jd4yAkAxwG5i1XUcCOZBklkxPyU46buTtxuRElQ3fVSWEekohjgvQPH1Q==","mode":420,"size":618},"index.d.ts":{"checkedAt":1678883672611,"integrity":"sha512-loh2BRgwjJVuqeZJLWVjCyva3jwryObkPQTo4kALqQxtLHC1Hsmo0onArmGVgPrZ0Gbt5HRoq13POtuNSKZpug==","mode":420,"size":640},"index.js":{"checkedAt":1678883672611,"integrity":"sha512-CbR3/q8rXsxOp0JEO9ywHfuGtvi3uugCv5qZXlZBWwRA3ojQj0An5VSPLnfQJmBinSQNx97DfRYB8vcMvTf97w==","mode":420,"size":859},"readme.md":{"checkedAt":1678883672611,"integrity":"sha512-B8pHoSfDFo81d87JloAMfwjwXawGAc9cmVPq3PENTY/q1RtcmFLlS0vCNlHrd0ePjxxaStIvQ1eRpymVYPB8sQ==","mode":420,"size":1672}}}
|
||||
@@ -0,0 +1,5 @@
|
||||
var convert = require('./convert'),
|
||||
func = convert('findLastIndexFrom', require('../findLastIndex'));
|
||||
|
||||
func.placeholder = require('./placeholder');
|
||||
module.exports = func;
|
||||
@@ -0,0 +1,12 @@
|
||||
'use strict';
|
||||
|
||||
var GetIntrinsic = require('get-intrinsic');
|
||||
|
||||
var $Array = GetIntrinsic('%Array%');
|
||||
|
||||
// eslint-disable-next-line global-require
|
||||
var toStr = !$Array.isArray && require('call-bind/callBound')('Object.prototype.toString');
|
||||
|
||||
module.exports = $Array.isArray || function IsArray(argument) {
|
||||
return toStr(argument) === '[object Array]';
|
||||
};
|
||||
@@ -0,0 +1,23 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = matches;
|
||||
|
||||
var _assertString = _interopRequireDefault(require("./util/assertString"));
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
function matches(str, pattern, modifiers) {
|
||||
(0, _assertString.default)(str);
|
||||
|
||||
if (Object.prototype.toString.call(pattern) !== '[object RegExp]') {
|
||||
pattern = new RegExp(pattern, modifiers);
|
||||
}
|
||||
|
||||
return !!str.match(pattern);
|
||||
}
|
||||
|
||||
module.exports = exports.default;
|
||||
module.exports.default = exports.default;
|
||||
@@ -0,0 +1,12 @@
|
||||
import Renderer from '../Renderer';
|
||||
import Block from '../Block';
|
||||
import Tag from './shared/Tag';
|
||||
import Wrapper from './shared/Wrapper';
|
||||
import MustacheTag from '../../nodes/MustacheTag';
|
||||
import RawMustacheTag from '../../nodes/RawMustacheTag';
|
||||
import { Identifier } from 'estree';
|
||||
export default class RawMustacheTagWrapper extends Tag {
|
||||
var: Identifier;
|
||||
constructor(renderer: Renderer, block: Block, parent: Wrapper, node: MustacheTag | RawMustacheTag);
|
||||
render(block: Block, parent_node: Identifier, _parent_nodes: Identifier): void;
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
var Symbol = require('./_Symbol');
|
||||
|
||||
/** Used to convert symbols to primitives and strings. */
|
||||
var symbolProto = Symbol ? Symbol.prototype : undefined,
|
||||
symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
|
||||
|
||||
/**
|
||||
* Creates a clone of the `symbol` object.
|
||||
*
|
||||
* @private
|
||||
* @param {Object} symbol The symbol object to clone.
|
||||
* @returns {Object} Returns the cloned symbol object.
|
||||
*/
|
||||
function cloneSymbol(symbol) {
|
||||
return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
|
||||
}
|
||||
|
||||
module.exports = cloneSymbol;
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"fromEventPattern.js","sourceRoot":"","sources":["../../../../src/internal/observable/fromEventPattern.ts"],"names":[],"mappings":";;;AAAA,4CAA2C;AAC3C,iDAAgD;AAEhD,6DAA4D;AAyI5D,SAAgB,gBAAgB,CAC9B,UAA8C,EAC9C,aAAiE,EACjE,cAAsC;IAEtC,IAAI,cAAc,EAAE;QAClB,OAAO,gBAAgB,CAAI,UAAU,EAAE,aAAa,CAAC,CAAC,IAAI,CAAC,mCAAgB,CAAC,cAAc,CAAC,CAAC,CAAC;KAC9F;IAED,OAAO,IAAI,uBAAU,CAAU,UAAC,UAAU;QACxC,IAAM,OAAO,GAAG;YAAC,WAAS;iBAAT,UAAS,EAAT,qBAAS,EAAT,IAAS;gBAAT,sBAAS;;YAAK,OAAA,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAA1C,CAA0C,CAAC;QAC1E,IAAM,QAAQ,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC;QACrC,OAAO,uBAAU,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,cAAM,OAAA,aAAa,CAAC,OAAO,EAAE,QAAQ,CAAC,EAAhC,CAAgC,CAAC,CAAC,CAAC,SAAS,CAAC;IACxF,CAAC,CAAC,CAAC;AACL,CAAC;AAdD,4CAcC"}
|
||||
@@ -0,0 +1,54 @@
|
||||
|
||||
# isarray
|
||||
|
||||
`Array#isArray` for older browsers.
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var isArray = require('isarray');
|
||||
|
||||
console.log(isArray([])); // => true
|
||||
console.log(isArray({})); // => false
|
||||
```
|
||||
|
||||
## Installation
|
||||
|
||||
With [npm](http://npmjs.org) do
|
||||
|
||||
```bash
|
||||
$ npm install isarray
|
||||
```
|
||||
|
||||
Then bundle for the browser with
|
||||
[browserify](https://github.com/substack/browserify).
|
||||
|
||||
With [component](http://component.io) do
|
||||
|
||||
```bash
|
||||
$ component install juliangruber/isarray
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
(MIT)
|
||||
|
||||
Copyright (c) 2013 Julian Gruber <julian@juliangruber.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 @@
|
||||
{"name":"is-utf8","version":"0.2.1","files":{"README.md":{"checkedAt":1678883668052,"integrity":"sha512-IUCixj0h+SMBe6BeFmS9NUDwlhehSZWwsr34p+N+ySWeCAB5fUVjfY7pXbrLUT9/Bl4fUrzzSEnQH7dQH605vA==","mode":420,"size":397},"LICENSE":{"checkedAt":1678883668052,"integrity":"sha512-zQ8DfLcb7GUO4c+0mft3xslb+fKkDSsX+k1ZJMtCuWlSo3L5Thi8PrvZaqyrFgc3ooPf/YadmfKH/mWN3VDzbg==","mode":420,"size":1083},"is-utf8.js":{"checkedAt":1678883668052,"integrity":"sha512-BxDkuWYgl2Zf6QRvMKkfrfTzwv9IThIzCfkNY0zS+IHVnANHkqqqn5nI0EQ4MBrVL8AL1LV0yplhgqhRWpd0hQ==","mode":420,"size":2508},"package.json":{"checkedAt":1678883668056,"integrity":"sha512-0V361bzhDtLS46pDnbeo3FfegW0/os26mAvzDgdqWOnD53Aor81xw23CEArbMEh0spCH3FxlnLb//g1Uj7ReDg==","mode":420,"size":356}}}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,281 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "normalizeConfig", {
|
||||
enumerable: true,
|
||||
get: ()=>normalizeConfig
|
||||
});
|
||||
const _log = /*#__PURE__*/ _interopRequireWildcard(require("./log"));
|
||||
function _getRequireWildcardCache(nodeInterop) {
|
||||
if (typeof WeakMap !== "function") return null;
|
||||
var cacheBabelInterop = new WeakMap();
|
||||
var cacheNodeInterop = new WeakMap();
|
||||
return (_getRequireWildcardCache = function(nodeInterop) {
|
||||
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
||||
})(nodeInterop);
|
||||
}
|
||||
function _interopRequireWildcard(obj, nodeInterop) {
|
||||
if (!nodeInterop && obj && obj.__esModule) {
|
||||
return obj;
|
||||
}
|
||||
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
||||
return {
|
||||
default: obj
|
||||
};
|
||||
}
|
||||
var cache = _getRequireWildcardCache(nodeInterop);
|
||||
if (cache && cache.has(obj)) {
|
||||
return cache.get(obj);
|
||||
}
|
||||
var newObj = {};
|
||||
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
||||
for(var key in obj){
|
||||
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
||||
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
||||
if (desc && (desc.get || desc.set)) {
|
||||
Object.defineProperty(newObj, key, desc);
|
||||
} else {
|
||||
newObj[key] = obj[key];
|
||||
}
|
||||
}
|
||||
}
|
||||
newObj.default = obj;
|
||||
if (cache) {
|
||||
cache.set(obj, newObj);
|
||||
}
|
||||
return newObj;
|
||||
}
|
||||
function normalizeConfig(config) {
|
||||
// Quick structure validation
|
||||
/**
|
||||
* type FilePath = string
|
||||
* type RawFile = { raw: string, extension?: string }
|
||||
* type ExtractorFn = (content: string) => Array<string>
|
||||
* type TransformerFn = (content: string) => string
|
||||
*
|
||||
* type Content =
|
||||
* | Array<FilePath | RawFile>
|
||||
* | {
|
||||
* files: Array<FilePath | RawFile>,
|
||||
* extract?: ExtractorFn | { [extension: string]: ExtractorFn }
|
||||
* transform?: TransformerFn | { [extension: string]: TransformerFn }
|
||||
* }
|
||||
*/ let valid = (()=>{
|
||||
// `config.purge` should not exist anymore
|
||||
if (config.purge) {
|
||||
return false;
|
||||
}
|
||||
// `config.content` should exist
|
||||
if (!config.content) {
|
||||
return false;
|
||||
}
|
||||
// `config.content` should be an object or an array
|
||||
if (!Array.isArray(config.content) && !(typeof config.content === "object" && config.content !== null)) {
|
||||
return false;
|
||||
}
|
||||
// When `config.content` is an array, it should consist of FilePaths or RawFiles
|
||||
if (Array.isArray(config.content)) {
|
||||
return config.content.every((path)=>{
|
||||
// `path` can be a string
|
||||
if (typeof path === "string") return true;
|
||||
// `path` can be an object { raw: string, extension?: string }
|
||||
// `raw` must be a string
|
||||
if (typeof (path === null || path === void 0 ? void 0 : path.raw) !== "string") return false;
|
||||
// `extension` (if provided) should also be a string
|
||||
if ((path === null || path === void 0 ? void 0 : path.extension) && typeof (path === null || path === void 0 ? void 0 : path.extension) !== "string") {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
});
|
||||
}
|
||||
// When `config.content` is an object
|
||||
if (typeof config.content === "object" && config.content !== null) {
|
||||
// Only `files`, `relative`, `extract`, and `transform` can exist in `config.content`
|
||||
if (Object.keys(config.content).some((key)=>![
|
||||
"files",
|
||||
"relative",
|
||||
"extract",
|
||||
"transform"
|
||||
].includes(key))) {
|
||||
return false;
|
||||
}
|
||||
// `config.content.files` should exist of FilePaths or RawFiles
|
||||
if (Array.isArray(config.content.files)) {
|
||||
if (!config.content.files.every((path)=>{
|
||||
// `path` can be a string
|
||||
if (typeof path === "string") return true;
|
||||
// `path` can be an object { raw: string, extension?: string }
|
||||
// `raw` must be a string
|
||||
if (typeof (path === null || path === void 0 ? void 0 : path.raw) !== "string") return false;
|
||||
// `extension` (if provided) should also be a string
|
||||
if ((path === null || path === void 0 ? void 0 : path.extension) && typeof (path === null || path === void 0 ? void 0 : path.extension) !== "string") {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
})) {
|
||||
return false;
|
||||
}
|
||||
// `config.content.extract` is optional, and can be a Function or a Record<String, Function>
|
||||
if (typeof config.content.extract === "object") {
|
||||
for (let value of Object.values(config.content.extract)){
|
||||
if (typeof value !== "function") {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} else if (!(config.content.extract === undefined || typeof config.content.extract === "function")) {
|
||||
return false;
|
||||
}
|
||||
// `config.content.transform` is optional, and can be a Function or a Record<String, Function>
|
||||
if (typeof config.content.transform === "object") {
|
||||
for (let value1 of Object.values(config.content.transform)){
|
||||
if (typeof value1 !== "function") {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} else if (!(config.content.transform === undefined || typeof config.content.transform === "function")) {
|
||||
return false;
|
||||
}
|
||||
// `config.content.relative` is optional and can be a boolean
|
||||
if (typeof config.content.relative !== "boolean" && typeof config.content.relative !== "undefined") {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
})();
|
||||
if (!valid) {
|
||||
_log.default.warn("purge-deprecation", [
|
||||
"The `purge`/`content` options have changed in Tailwind CSS v3.0.",
|
||||
"Update your configuration file to eliminate this warning.",
|
||||
"https://tailwindcss.com/docs/upgrade-guide#configure-content-sources"
|
||||
]);
|
||||
}
|
||||
// Normalize the `safelist`
|
||||
config.safelist = (()=>{
|
||||
var _purge_options;
|
||||
let { content , purge , safelist } = config;
|
||||
if (Array.isArray(safelist)) return safelist;
|
||||
if (Array.isArray(content === null || content === void 0 ? void 0 : content.safelist)) return content.safelist;
|
||||
if (Array.isArray(purge === null || purge === void 0 ? void 0 : purge.safelist)) return purge.safelist;
|
||||
if (Array.isArray(purge === null || purge === void 0 ? void 0 : (_purge_options = purge.options) === null || _purge_options === void 0 ? void 0 : _purge_options.safelist)) return purge.options.safelist;
|
||||
return [];
|
||||
})();
|
||||
// Normalize the `blocklist`
|
||||
config.blocklist = (()=>{
|
||||
let { blocklist } = config;
|
||||
if (Array.isArray(blocklist)) {
|
||||
if (blocklist.every((item)=>typeof item === "string")) {
|
||||
return blocklist;
|
||||
}
|
||||
_log.default.warn("blocklist-invalid", [
|
||||
"The `blocklist` option must be an array of strings.",
|
||||
"https://tailwindcss.com/docs/content-configuration#discarding-classes"
|
||||
]);
|
||||
}
|
||||
return [];
|
||||
})();
|
||||
// Normalize prefix option
|
||||
if (typeof config.prefix === "function") {
|
||||
_log.default.warn("prefix-function", [
|
||||
"As of Tailwind CSS v3.0, `prefix` cannot be a function.",
|
||||
"Update `prefix` in your configuration to be a string to eliminate this warning.",
|
||||
"https://tailwindcss.com/docs/upgrade-guide#prefix-cannot-be-a-function"
|
||||
]);
|
||||
config.prefix = "";
|
||||
} else {
|
||||
var _config_prefix;
|
||||
config.prefix = (_config_prefix = config.prefix) !== null && _config_prefix !== void 0 ? _config_prefix : "";
|
||||
}
|
||||
// Normalize the `content`
|
||||
config.content = {
|
||||
relative: (()=>{
|
||||
var _config_future;
|
||||
let { content } = config;
|
||||
if (content === null || content === void 0 ? void 0 : content.relative) {
|
||||
return content.relative;
|
||||
}
|
||||
var _config_future_relativeContentPathsByDefault;
|
||||
return (_config_future_relativeContentPathsByDefault = (_config_future = config.future) === null || _config_future === void 0 ? void 0 : _config_future.relativeContentPathsByDefault) !== null && _config_future_relativeContentPathsByDefault !== void 0 ? _config_future_relativeContentPathsByDefault : false;
|
||||
})(),
|
||||
files: (()=>{
|
||||
let { content , purge } = config;
|
||||
if (Array.isArray(purge)) return purge;
|
||||
if (Array.isArray(purge === null || purge === void 0 ? void 0 : purge.content)) return purge.content;
|
||||
if (Array.isArray(content)) return content;
|
||||
if (Array.isArray(content === null || content === void 0 ? void 0 : content.content)) return content.content;
|
||||
if (Array.isArray(content === null || content === void 0 ? void 0 : content.files)) return content.files;
|
||||
return [];
|
||||
})(),
|
||||
extract: (()=>{
|
||||
let extract = (()=>{
|
||||
var _config_purge, _config_content, _config_purge1, _config_purge_extract, _config_content1, _config_content_extract, _config_purge2, _config_purge_options, _config_content2, _config_content_options;
|
||||
if ((_config_purge = config.purge) === null || _config_purge === void 0 ? void 0 : _config_purge.extract) return config.purge.extract;
|
||||
if ((_config_content = config.content) === null || _config_content === void 0 ? void 0 : _config_content.extract) return config.content.extract;
|
||||
if ((_config_purge1 = config.purge) === null || _config_purge1 === void 0 ? void 0 : (_config_purge_extract = _config_purge1.extract) === null || _config_purge_extract === void 0 ? void 0 : _config_purge_extract.DEFAULT) return config.purge.extract.DEFAULT;
|
||||
if ((_config_content1 = config.content) === null || _config_content1 === void 0 ? void 0 : (_config_content_extract = _config_content1.extract) === null || _config_content_extract === void 0 ? void 0 : _config_content_extract.DEFAULT) return config.content.extract.DEFAULT;
|
||||
if ((_config_purge2 = config.purge) === null || _config_purge2 === void 0 ? void 0 : (_config_purge_options = _config_purge2.options) === null || _config_purge_options === void 0 ? void 0 : _config_purge_options.extractors) return config.purge.options.extractors;
|
||||
if ((_config_content2 = config.content) === null || _config_content2 === void 0 ? void 0 : (_config_content_options = _config_content2.options) === null || _config_content_options === void 0 ? void 0 : _config_content_options.extractors) return config.content.options.extractors;
|
||||
return {};
|
||||
})();
|
||||
let extractors = {};
|
||||
let defaultExtractor = (()=>{
|
||||
var _config_purge, _config_purge_options, _config_content, _config_content_options;
|
||||
if ((_config_purge = config.purge) === null || _config_purge === void 0 ? void 0 : (_config_purge_options = _config_purge.options) === null || _config_purge_options === void 0 ? void 0 : _config_purge_options.defaultExtractor) {
|
||||
return config.purge.options.defaultExtractor;
|
||||
}
|
||||
if ((_config_content = config.content) === null || _config_content === void 0 ? void 0 : (_config_content_options = _config_content.options) === null || _config_content_options === void 0 ? void 0 : _config_content_options.defaultExtractor) {
|
||||
return config.content.options.defaultExtractor;
|
||||
}
|
||||
return undefined;
|
||||
})();
|
||||
if (defaultExtractor !== undefined) {
|
||||
extractors.DEFAULT = defaultExtractor;
|
||||
}
|
||||
// Functions
|
||||
if (typeof extract === "function") {
|
||||
extractors.DEFAULT = extract;
|
||||
} else if (Array.isArray(extract)) {
|
||||
for (let { extensions , extractor } of extract !== null && extract !== void 0 ? extract : []){
|
||||
for (let extension of extensions){
|
||||
extractors[extension] = extractor;
|
||||
}
|
||||
}
|
||||
} else if (typeof extract === "object" && extract !== null) {
|
||||
Object.assign(extractors, extract);
|
||||
}
|
||||
return extractors;
|
||||
})(),
|
||||
transform: (()=>{
|
||||
let transform = (()=>{
|
||||
var _config_purge, _config_content, _config_purge1, _config_purge_transform, _config_content1, _config_content_transform;
|
||||
if ((_config_purge = config.purge) === null || _config_purge === void 0 ? void 0 : _config_purge.transform) return config.purge.transform;
|
||||
if ((_config_content = config.content) === null || _config_content === void 0 ? void 0 : _config_content.transform) return config.content.transform;
|
||||
if ((_config_purge1 = config.purge) === null || _config_purge1 === void 0 ? void 0 : (_config_purge_transform = _config_purge1.transform) === null || _config_purge_transform === void 0 ? void 0 : _config_purge_transform.DEFAULT) return config.purge.transform.DEFAULT;
|
||||
if ((_config_content1 = config.content) === null || _config_content1 === void 0 ? void 0 : (_config_content_transform = _config_content1.transform) === null || _config_content_transform === void 0 ? void 0 : _config_content_transform.DEFAULT) return config.content.transform.DEFAULT;
|
||||
return {};
|
||||
})();
|
||||
let transformers = {};
|
||||
if (typeof transform === "function") {
|
||||
transformers.DEFAULT = transform;
|
||||
}
|
||||
if (typeof transform === "object" && transform !== null) {
|
||||
Object.assign(transformers, transform);
|
||||
}
|
||||
return transformers;
|
||||
})()
|
||||
};
|
||||
// Validate globs to prevent bogus globs.
|
||||
// E.g.: `./src/*.{html}` is invalid, the `{html}` should just be `html`
|
||||
for (let file of config.content.files){
|
||||
if (typeof file === "string" && /{([^,]*?)}/g.test(file)) {
|
||||
_log.default.warn("invalid-glob-braces", [
|
||||
`The glob pattern ${(0, _log.dim)(file)} in your Tailwind CSS configuration is invalid.`,
|
||||
`Update it to ${(0, _log.dim)(file.replace(/{([^,]*?)}/g, "$1"))} to silence this warning.`
|
||||
]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return config;
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
root = true
|
||||
|
||||
[*]
|
||||
indent_style = tab
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
|
||||
[*.coffee]
|
||||
indent_style = space
|
||||
|
||||
[{package.json,*.yml}]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
||||
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (C) 2012-2018 by various contributors (see AUTHORS)
|
||||
|
||||
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 @@
|
||||
{"version":3,"file":"materialize.js","sourceRoot":"","sources":["../../../../src/internal/operators/materialize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAkDhE,MAAM,UAAU,WAAW;IACzB,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,MAAM,CAAC,SAAS,CACd,wBAAwB,CACtB,UAAU,EACV,UAAC,KAAK;YACJ,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;QAClD,CAAC,EACD;YACE,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,cAAc,EAAE,CAAC,CAAC;YAC/C,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,EACD,UAAC,GAAG;YACF,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC;YAC/C,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
|
||||
var uniq = require("../array/#/uniq")
|
||||
, value = require("./valid-value")
|
||||
, push = Array.prototype.push
|
||||
, getOwnPropertyNames = Object.getOwnPropertyNames
|
||||
, getPrototypeOf = Object.getPrototypeOf;
|
||||
|
||||
module.exports = function (obj) {
|
||||
var keys;
|
||||
obj = Object(value(obj));
|
||||
keys = getOwnPropertyNames(obj);
|
||||
while ((obj = getPrototypeOf(obj))) {
|
||||
push.apply(keys, getOwnPropertyNames(obj));
|
||||
}
|
||||
return uniq.call(keys);
|
||||
};
|
||||
@@ -0,0 +1,3 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = require('./async').reduce;
|
||||
@@ -0,0 +1,114 @@
|
||||
# web-streams-polyfill
|
||||
|
||||
Web Streams, based on the WHATWG spec reference implementation.
|
||||
|
||||
[](https://travis-ci.com/MattiasBuelens/web-streams-polyfill)
|
||||
[](https://www.npmjs.com/package/web-streams-polyfill)
|
||||
[](https://github.com/MattiasBuelens/web-streams-polyfill/blob/master/LICENSE)
|
||||
[](https://gitter.im/web-streams-polyfill/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
||||
|
||||
## Links
|
||||
|
||||
- [Official spec][spec]
|
||||
- [Reference implementation][ref-impl]
|
||||
|
||||
## Usage
|
||||
|
||||
This library comes in multiple variants:
|
||||
* `web-streams-polyfill`: a polyfill that replaces the native stream implementations.
|
||||
Recommended for use in web apps supporting older browsers through a `<script>` tag.
|
||||
* `web-streams-polyfill/es6`: a polyfill targeting ES2015+ environments.
|
||||
Recommended for use in web apps supporting modern browsers through a `<script>` tag.
|
||||
* `web-streams-polyfill/es2018`: a polyfill targeting ES2018+ environments.
|
||||
* `web-streams-polyfill/ponyfill`: a [ponyfill] that provides
|
||||
the stream implementations without replacing any globals.
|
||||
Recommended for use in legacy Node applications, or in web libraries supporting older browsers.
|
||||
* `web-streams-polyfill/ponyfill/es6`: a ponyfill targeting ES2015+ environments.
|
||||
Recommended for use in Node 6+ applications, or in web libraries supporting modern browsers.
|
||||
* `web-streams-polyfill/ponyfill/es2018`: a ponyfill targeting ES2018+ environments.
|
||||
Recommended for use in Node 10+ applications.
|
||||
|
||||
Each variant also includes TypeScript type definitions, compatible with the DOM type definitions for streams included in TypeScript.
|
||||
|
||||
Usage as a polyfill:
|
||||
```html
|
||||
<!-- option 1: hosted by unpkg CDN -->
|
||||
<script src="https://unpkg.com/web-streams-polyfill/dist/polyfill.min.js"></script>
|
||||
<!-- option 2: self hosted -->
|
||||
<script src="/path/to/web-streams-polyfill/dist/polyfill.min.js"></script>
|
||||
<script>
|
||||
var readable = new ReadableStream();
|
||||
</script>
|
||||
```
|
||||
Usage as a Node module:
|
||||
```js
|
||||
var streams = require("web-streams-polyfill/ponyfill");
|
||||
var readable = new streams.ReadableStream();
|
||||
```
|
||||
Usage as a ES2015 module:
|
||||
```js
|
||||
import { ReadableStream } from "web-streams-polyfill/ponyfill";
|
||||
const readable = new ReadableStream();
|
||||
```
|
||||
|
||||
### Compatibility
|
||||
|
||||
The `polyfill` and `ponyfill` variants work in any ES5-compatible environment that has a global `Promise`.
|
||||
If you need to support older browsers or Node versions that do not have a native `Promise` implementation
|
||||
(check the [support table][promise-support]), you must first include a `Promise` polyfill
|
||||
(e.g. [promise-polyfill][promise-polyfill]).
|
||||
|
||||
The `polyfill/es6` and `ponyfill/es6` variants work in any ES2015-compatible environment.
|
||||
|
||||
The `polyfill/es2018` and `ponyfill/es2018` variants work in any ES2018-compatible environment.
|
||||
|
||||
[Async iterable support for `ReadableStream`][rs-asynciterator] is available in all variants, but requires an ES2018-compatible environment or a polyfill for `Symbol.asyncIterator`.
|
||||
|
||||
[`WritableStreamDefaultController.signal`][ws-controller-signal] is available in all variants, but requires a global `AbortController` constructor. If necessary, consider using a polyfill such as [abortcontroller-polyfill].
|
||||
|
||||
### Compliance
|
||||
|
||||
The polyfill implements [version `4b6b93c` (25 Oct 2021)][spec-snapshot] of the streams specification.
|
||||
|
||||
The polyfill is tested against the same [web platform tests][wpt] that are used by browsers to test their native implementations.
|
||||
The polyfill aims to pass all tests, although it allows some exceptions for practical reasons:
|
||||
* The `es2018` variant passes all of the tests, except for the ["bad buffers and views" tests for readable byte streams][wpt-bad-buffers].
|
||||
These tests require the implementation to synchronously transfer the contents of an `ArrayBuffer`, which is not yet possible from JavaScript (although there is a [proposal][proposal-arraybuffer-transfer] to make it possible).
|
||||
The reference implementation "cheats" on these tests [by making a copy instead][ref-impl-transferarraybuffer], but that is unacceptable for the polyfill's performance ([#3][issue-3]).
|
||||
* The `es6` variant passes the same tests as the `es2018` variant, except for the [test for the prototype of `ReadableStream`'s async iterator][wpt-async-iterator-prototype].
|
||||
Retrieving the correct `%AsyncIteratorPrototype%` requires using an async generator (`async function* () {}`), which is invalid syntax before ES2018.
|
||||
Instead, the polyfill [creates its own version][stub-async-iterator-prototype] which is functionally equivalent to the real prototype.
|
||||
* The `es5` variant passes the same tests as the `es6` variant, except for various tests about specific characteristics of the constructors, properties and methods.
|
||||
These test failures do not affect the run-time behavior of the polyfill.
|
||||
For example:
|
||||
* The `name` property of down-leveled constructors is incorrect.
|
||||
* The `length` property of down-leveled constructors and methods with optional arguments is incorrect.
|
||||
* Not all properties and methods are correctly marked as non-enumerable.
|
||||
* Down-leveled class methods are not correctly marked as non-constructable.
|
||||
|
||||
The type definitions are compatible with the built-in stream types of TypeScript 3.3.
|
||||
|
||||
### Contributors
|
||||
|
||||
Thanks to these people for their work on [the original polyfill][creatorrr-polyfill]:
|
||||
|
||||
- Diwank Singh Tomer ([creatorrr](https://github.com/creatorrr))
|
||||
- Anders Riutta ([ariutta](https://github.com/ariutta))
|
||||
|
||||
[spec]: https://streams.spec.whatwg.org
|
||||
[ref-impl]: https://github.com/whatwg/streams
|
||||
[ponyfill]: https://github.com/sindresorhus/ponyfill
|
||||
[promise-support]: https://kangax.github.io/compat-table/es6/#test-Promise
|
||||
[promise-polyfill]: https://www.npmjs.com/package/promise-polyfill
|
||||
[rs-asynciterator]: https://streams.spec.whatwg.org/#rs-asynciterator
|
||||
[ws-controller-signal]: https://streams.spec.whatwg.org/#ws-default-controller-signal
|
||||
[abortcontroller-polyfill]: https://www.npmjs.com/package/abortcontroller-polyfill
|
||||
[spec-snapshot]: https://streams.spec.whatwg.org/commit-snapshots/4b6b93c69e531e2fe45a6ed4cb1484a7ba4eb8bb/
|
||||
[wpt]: https://github.com/web-platform-tests/wpt/tree/96ca25f0f7526282c0d47e6bf6a7edd439da1968/streams
|
||||
[wpt-bad-buffers]: https://github.com/web-platform-tests/wpt/blob/96ca25f0f7526282c0d47e6bf6a7edd439da1968/streams/readable-byte-streams/bad-buffers-and-views.any.js
|
||||
[proposal-arraybuffer-transfer]: https://github.com/domenic/proposal-arraybuffer-transfer
|
||||
[ref-impl-transferarraybuffer]: https://github.com/whatwg/streams/blob/4b6b93c69e531e2fe45a6ed4cb1484a7ba4eb8bb/reference-implementation/lib/abstract-ops/ecmascript.js#L16
|
||||
[issue-3]: https://github.com/MattiasBuelens/web-streams-polyfill/issues/3
|
||||
[wpt-async-iterator-prototype]: https://github.com/web-platform-tests/wpt/blob/96ca25f0f7526282c0d47e6bf6a7edd439da1968/streams/readable-streams/async-iterator.any.js#L24
|
||||
[stub-async-iterator-prototype]: https://github.com/MattiasBuelens/web-streams-polyfill/blob/v2.0.0/src/target/es5/stub/async-iterator-prototype.ts
|
||||
[creatorrr-polyfill]: https://github.com/creatorrr/web-streams-polyfill
|
||||
@@ -0,0 +1,342 @@
|
||||
'use strict';
|
||||
|
||||
const path = require('path');
|
||||
const scan = require('./scan');
|
||||
const parse = require('./parse');
|
||||
const utils = require('./utils');
|
||||
const constants = require('./constants');
|
||||
const isObject = val => val && typeof val === 'object' && !Array.isArray(val);
|
||||
|
||||
/**
|
||||
* Creates a matcher function from one or more glob patterns. The
|
||||
* returned function takes a string to match as its first argument,
|
||||
* and returns true if the string is a match. The returned matcher
|
||||
* function also takes a boolean as the second argument that, when true,
|
||||
* returns an object with additional information.
|
||||
*
|
||||
* ```js
|
||||
* const picomatch = require('picomatch');
|
||||
* // picomatch(glob[, options]);
|
||||
*
|
||||
* const isMatch = picomatch('*.!(*a)');
|
||||
* console.log(isMatch('a.a')); //=> false
|
||||
* console.log(isMatch('a.b')); //=> true
|
||||
* ```
|
||||
* @name picomatch
|
||||
* @param {String|Array} `globs` One or more glob patterns.
|
||||
* @param {Object=} `options`
|
||||
* @return {Function=} Returns a matcher function.
|
||||
* @api public
|
||||
*/
|
||||
|
||||
const picomatch = (glob, options, returnState = false) => {
|
||||
if (Array.isArray(glob)) {
|
||||
const fns = glob.map(input => picomatch(input, options, returnState));
|
||||
const arrayMatcher = str => {
|
||||
for (const isMatch of fns) {
|
||||
const state = isMatch(str);
|
||||
if (state) return state;
|
||||
}
|
||||
return false;
|
||||
};
|
||||
return arrayMatcher;
|
||||
}
|
||||
|
||||
const isState = isObject(glob) && glob.tokens && glob.input;
|
||||
|
||||
if (glob === '' || (typeof glob !== 'string' && !isState)) {
|
||||
throw new TypeError('Expected pattern to be a non-empty string');
|
||||
}
|
||||
|
||||
const opts = options || {};
|
||||
const posix = utils.isWindows(options);
|
||||
const regex = isState
|
||||
? picomatch.compileRe(glob, options)
|
||||
: picomatch.makeRe(glob, options, false, true);
|
||||
|
||||
const state = regex.state;
|
||||
delete regex.state;
|
||||
|
||||
let isIgnored = () => false;
|
||||
if (opts.ignore) {
|
||||
const ignoreOpts = { ...options, ignore: null, onMatch: null, onResult: null };
|
||||
isIgnored = picomatch(opts.ignore, ignoreOpts, returnState);
|
||||
}
|
||||
|
||||
const matcher = (input, returnObject = false) => {
|
||||
const { isMatch, match, output } = picomatch.test(input, regex, options, { glob, posix });
|
||||
const result = { glob, state, regex, posix, input, output, match, isMatch };
|
||||
|
||||
if (typeof opts.onResult === 'function') {
|
||||
opts.onResult(result);
|
||||
}
|
||||
|
||||
if (isMatch === false) {
|
||||
result.isMatch = false;
|
||||
return returnObject ? result : false;
|
||||
}
|
||||
|
||||
if (isIgnored(input)) {
|
||||
if (typeof opts.onIgnore === 'function') {
|
||||
opts.onIgnore(result);
|
||||
}
|
||||
result.isMatch = false;
|
||||
return returnObject ? result : false;
|
||||
}
|
||||
|
||||
if (typeof opts.onMatch === 'function') {
|
||||
opts.onMatch(result);
|
||||
}
|
||||
return returnObject ? result : true;
|
||||
};
|
||||
|
||||
if (returnState) {
|
||||
matcher.state = state;
|
||||
}
|
||||
|
||||
return matcher;
|
||||
};
|
||||
|
||||
/**
|
||||
* Test `input` with the given `regex`. This is used by the main
|
||||
* `picomatch()` function to test the input string.
|
||||
*
|
||||
* ```js
|
||||
* const picomatch = require('picomatch');
|
||||
* // picomatch.test(input, regex[, options]);
|
||||
*
|
||||
* console.log(picomatch.test('foo/bar', /^(?:([^/]*?)\/([^/]*?))$/));
|
||||
* // { isMatch: true, match: [ 'foo/', 'foo', 'bar' ], output: 'foo/bar' }
|
||||
* ```
|
||||
* @param {String} `input` String to test.
|
||||
* @param {RegExp} `regex`
|
||||
* @return {Object} Returns an object with matching info.
|
||||
* @api public
|
||||
*/
|
||||
|
||||
picomatch.test = (input, regex, options, { glob, posix } = {}) => {
|
||||
if (typeof input !== 'string') {
|
||||
throw new TypeError('Expected input to be a string');
|
||||
}
|
||||
|
||||
if (input === '') {
|
||||
return { isMatch: false, output: '' };
|
||||
}
|
||||
|
||||
const opts = options || {};
|
||||
const format = opts.format || (posix ? utils.toPosixSlashes : null);
|
||||
let match = input === glob;
|
||||
let output = (match && format) ? format(input) : input;
|
||||
|
||||
if (match === false) {
|
||||
output = format ? format(input) : input;
|
||||
match = output === glob;
|
||||
}
|
||||
|
||||
if (match === false || opts.capture === true) {
|
||||
if (opts.matchBase === true || opts.basename === true) {
|
||||
match = picomatch.matchBase(input, regex, options, posix);
|
||||
} else {
|
||||
match = regex.exec(output);
|
||||
}
|
||||
}
|
||||
|
||||
return { isMatch: Boolean(match), match, output };
|
||||
};
|
||||
|
||||
/**
|
||||
* Match the basename of a filepath.
|
||||
*
|
||||
* ```js
|
||||
* const picomatch = require('picomatch');
|
||||
* // picomatch.matchBase(input, glob[, options]);
|
||||
* console.log(picomatch.matchBase('foo/bar.js', '*.js'); // true
|
||||
* ```
|
||||
* @param {String} `input` String to test.
|
||||
* @param {RegExp|String} `glob` Glob pattern or regex created by [.makeRe](#makeRe).
|
||||
* @return {Boolean}
|
||||
* @api public
|
||||
*/
|
||||
|
||||
picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => {
|
||||
const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
|
||||
return regex.test(path.basename(input));
|
||||
};
|
||||
|
||||
/**
|
||||
* Returns true if **any** of the given glob `patterns` match the specified `string`.
|
||||
*
|
||||
* ```js
|
||||
* const picomatch = require('picomatch');
|
||||
* // picomatch.isMatch(string, patterns[, options]);
|
||||
*
|
||||
* console.log(picomatch.isMatch('a.a', ['b.*', '*.a'])); //=> true
|
||||
* console.log(picomatch.isMatch('a.a', 'b.*')); //=> false
|
||||
* ```
|
||||
* @param {String|Array} str The string to test.
|
||||
* @param {String|Array} patterns One or more glob patterns to use for matching.
|
||||
* @param {Object} [options] See available [options](#options).
|
||||
* @return {Boolean} Returns true if any patterns match `str`
|
||||
* @api public
|
||||
*/
|
||||
|
||||
picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
|
||||
|
||||
/**
|
||||
* Parse a glob pattern to create the source string for a regular
|
||||
* expression.
|
||||
*
|
||||
* ```js
|
||||
* const picomatch = require('picomatch');
|
||||
* const result = picomatch.parse(pattern[, options]);
|
||||
* ```
|
||||
* @param {String} `pattern`
|
||||
* @param {Object} `options`
|
||||
* @return {Object} Returns an object with useful properties and output to be used as a regex source string.
|
||||
* @api public
|
||||
*/
|
||||
|
||||
picomatch.parse = (pattern, options) => {
|
||||
if (Array.isArray(pattern)) return pattern.map(p => picomatch.parse(p, options));
|
||||
return parse(pattern, { ...options, fastpaths: false });
|
||||
};
|
||||
|
||||
/**
|
||||
* Scan a glob pattern to separate the pattern into segments.
|
||||
*
|
||||
* ```js
|
||||
* const picomatch = require('picomatch');
|
||||
* // picomatch.scan(input[, options]);
|
||||
*
|
||||
* const result = picomatch.scan('!./foo/*.js');
|
||||
* console.log(result);
|
||||
* { prefix: '!./',
|
||||
* input: '!./foo/*.js',
|
||||
* start: 3,
|
||||
* base: 'foo',
|
||||
* glob: '*.js',
|
||||
* isBrace: false,
|
||||
* isBracket: false,
|
||||
* isGlob: true,
|
||||
* isExtglob: false,
|
||||
* isGlobstar: false,
|
||||
* negated: true }
|
||||
* ```
|
||||
* @param {String} `input` Glob pattern to scan.
|
||||
* @param {Object} `options`
|
||||
* @return {Object} Returns an object with
|
||||
* @api public
|
||||
*/
|
||||
|
||||
picomatch.scan = (input, options) => scan(input, options);
|
||||
|
||||
/**
|
||||
* Compile a regular expression from the `state` object returned by the
|
||||
* [parse()](#parse) method.
|
||||
*
|
||||
* @param {Object} `state`
|
||||
* @param {Object} `options`
|
||||
* @param {Boolean} `returnOutput` Intended for implementors, this argument allows you to return the raw output from the parser.
|
||||
* @param {Boolean} `returnState` Adds the state to a `state` property on the returned regex. Useful for implementors and debugging.
|
||||
* @return {RegExp}
|
||||
* @api public
|
||||
*/
|
||||
|
||||
picomatch.compileRe = (state, options, returnOutput = false, returnState = false) => {
|
||||
if (returnOutput === true) {
|
||||
return state.output;
|
||||
}
|
||||
|
||||
const opts = options || {};
|
||||
const prepend = opts.contains ? '' : '^';
|
||||
const append = opts.contains ? '' : '$';
|
||||
|
||||
let source = `${prepend}(?:${state.output})${append}`;
|
||||
if (state && state.negated === true) {
|
||||
source = `^(?!${source}).*$`;
|
||||
}
|
||||
|
||||
const regex = picomatch.toRegex(source, options);
|
||||
if (returnState === true) {
|
||||
regex.state = state;
|
||||
}
|
||||
|
||||
return regex;
|
||||
};
|
||||
|
||||
/**
|
||||
* Create a regular expression from a parsed glob pattern.
|
||||
*
|
||||
* ```js
|
||||
* const picomatch = require('picomatch');
|
||||
* const state = picomatch.parse('*.js');
|
||||
* // picomatch.compileRe(state[, options]);
|
||||
*
|
||||
* console.log(picomatch.compileRe(state));
|
||||
* //=> /^(?:(?!\.)(?=.)[^/]*?\.js)$/
|
||||
* ```
|
||||
* @param {String} `state` The object returned from the `.parse` method.
|
||||
* @param {Object} `options`
|
||||
* @param {Boolean} `returnOutput` Implementors may use this argument to return the compiled output, instead of a regular expression. This is not exposed on the options to prevent end-users from mutating the result.
|
||||
* @param {Boolean} `returnState` Implementors may use this argument to return the state from the parsed glob with the returned regular expression.
|
||||
* @return {RegExp} Returns a regex created from the given pattern.
|
||||
* @api public
|
||||
*/
|
||||
|
||||
picomatch.makeRe = (input, options = {}, returnOutput = false, returnState = false) => {
|
||||
if (!input || typeof input !== 'string') {
|
||||
throw new TypeError('Expected a non-empty string');
|
||||
}
|
||||
|
||||
let parsed = { negated: false, fastpaths: true };
|
||||
|
||||
if (options.fastpaths !== false && (input[0] === '.' || input[0] === '*')) {
|
||||
parsed.output = parse.fastpaths(input, options);
|
||||
}
|
||||
|
||||
if (!parsed.output) {
|
||||
parsed = parse(input, options);
|
||||
}
|
||||
|
||||
return picomatch.compileRe(parsed, options, returnOutput, returnState);
|
||||
};
|
||||
|
||||
/**
|
||||
* Create a regular expression from the given regex source string.
|
||||
*
|
||||
* ```js
|
||||
* const picomatch = require('picomatch');
|
||||
* // picomatch.toRegex(source[, options]);
|
||||
*
|
||||
* const { output } = picomatch.parse('*.js');
|
||||
* console.log(picomatch.toRegex(output));
|
||||
* //=> /^(?:(?!\.)(?=.)[^/]*?\.js)$/
|
||||
* ```
|
||||
* @param {String} `source` Regular expression source string.
|
||||
* @param {Object} `options`
|
||||
* @return {RegExp}
|
||||
* @api public
|
||||
*/
|
||||
|
||||
picomatch.toRegex = (source, options) => {
|
||||
try {
|
||||
const opts = options || {};
|
||||
return new RegExp(source, opts.flags || (opts.nocase ? 'i' : ''));
|
||||
} catch (err) {
|
||||
if (options && options.debug === true) throw err;
|
||||
return /$^/;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Picomatch constants.
|
||||
* @return {Object}
|
||||
*/
|
||||
|
||||
picomatch.constants = constants;
|
||||
|
||||
/**
|
||||
* Expose "picomatch"
|
||||
*/
|
||||
|
||||
module.exports = picomatch;
|
||||
@@ -0,0 +1,3 @@
|
||||
export default function lowercaseKeys(object) {
|
||||
return Object.fromEntries(Object.entries(object).map(([key, value]) => [key.toLowerCase(), value]));
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
import { __values } from "tslib";
|
||||
import { Subscription } from '../Subscription';
|
||||
import { operate } from '../util/lift';
|
||||
import { createOperatorSubscriber } from './OperatorSubscriber';
|
||||
import { arrRemove } from '../util/arrRemove';
|
||||
import { asyncScheduler } from '../scheduler/async';
|
||||
import { popScheduler } from '../util/args';
|
||||
import { executeSchedule } from '../util/executeSchedule';
|
||||
export function bufferTime(bufferTimeSpan) {
|
||||
var _a, _b;
|
||||
var otherArgs = [];
|
||||
for (var _i = 1; _i < arguments.length; _i++) {
|
||||
otherArgs[_i - 1] = arguments[_i];
|
||||
}
|
||||
var scheduler = (_a = popScheduler(otherArgs)) !== null && _a !== void 0 ? _a : asyncScheduler;
|
||||
var bufferCreationInterval = (_b = otherArgs[0]) !== null && _b !== void 0 ? _b : null;
|
||||
var maxBufferSize = otherArgs[1] || Infinity;
|
||||
return operate(function (source, subscriber) {
|
||||
var bufferRecords = [];
|
||||
var restartOnEmit = false;
|
||||
var emit = function (record) {
|
||||
var buffer = record.buffer, subs = record.subs;
|
||||
subs.unsubscribe();
|
||||
arrRemove(bufferRecords, record);
|
||||
subscriber.next(buffer);
|
||||
restartOnEmit && startBuffer();
|
||||
};
|
||||
var startBuffer = function () {
|
||||
if (bufferRecords) {
|
||||
var subs = new Subscription();
|
||||
subscriber.add(subs);
|
||||
var buffer = [];
|
||||
var record_1 = {
|
||||
buffer: buffer,
|
||||
subs: subs,
|
||||
};
|
||||
bufferRecords.push(record_1);
|
||||
executeSchedule(subs, scheduler, function () { return emit(record_1); }, bufferTimeSpan);
|
||||
}
|
||||
};
|
||||
if (bufferCreationInterval !== null && bufferCreationInterval >= 0) {
|
||||
executeSchedule(subscriber, scheduler, startBuffer, bufferCreationInterval, true);
|
||||
}
|
||||
else {
|
||||
restartOnEmit = true;
|
||||
}
|
||||
startBuffer();
|
||||
var bufferTimeSubscriber = createOperatorSubscriber(subscriber, function (value) {
|
||||
var e_1, _a;
|
||||
var recordsCopy = bufferRecords.slice();
|
||||
try {
|
||||
for (var recordsCopy_1 = __values(recordsCopy), recordsCopy_1_1 = recordsCopy_1.next(); !recordsCopy_1_1.done; recordsCopy_1_1 = recordsCopy_1.next()) {
|
||||
var record = recordsCopy_1_1.value;
|
||||
var buffer = record.buffer;
|
||||
buffer.push(value);
|
||||
maxBufferSize <= buffer.length && emit(record);
|
||||
}
|
||||
}
|
||||
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (recordsCopy_1_1 && !recordsCopy_1_1.done && (_a = recordsCopy_1.return)) _a.call(recordsCopy_1);
|
||||
}
|
||||
finally { if (e_1) throw e_1.error; }
|
||||
}
|
||||
}, function () {
|
||||
while (bufferRecords === null || bufferRecords === void 0 ? void 0 : bufferRecords.length) {
|
||||
subscriber.next(bufferRecords.shift().buffer);
|
||||
}
|
||||
bufferTimeSubscriber === null || bufferTimeSubscriber === void 0 ? void 0 : bufferTimeSubscriber.unsubscribe();
|
||||
subscriber.complete();
|
||||
subscriber.unsubscribe();
|
||||
}, undefined, function () { return (bufferRecords = null); });
|
||||
source.subscribe(bufferTimeSubscriber);
|
||||
});
|
||||
}
|
||||
//# sourceMappingURL=bufferTime.js.map
|
||||
@@ -0,0 +1,96 @@
|
||||
import { SubscriptionLike, TeardownLogic } from './types';
|
||||
/**
|
||||
* Represents a disposable resource, such as the execution of an Observable. A
|
||||
* Subscription has one important method, `unsubscribe`, that takes no argument
|
||||
* and just disposes the resource held by the subscription.
|
||||
*
|
||||
* Additionally, subscriptions may be grouped together through the `add()`
|
||||
* method, which will attach a child Subscription to the current Subscription.
|
||||
* When a Subscription is unsubscribed, all its children (and its grandchildren)
|
||||
* will be unsubscribed as well.
|
||||
*
|
||||
* @class Subscription
|
||||
*/
|
||||
export declare class Subscription implements SubscriptionLike {
|
||||
private initialTeardown?;
|
||||
/** @nocollapse */
|
||||
static EMPTY: Subscription;
|
||||
/**
|
||||
* A flag to indicate whether this Subscription has already been unsubscribed.
|
||||
*/
|
||||
closed: boolean;
|
||||
private _parentage;
|
||||
/**
|
||||
* The list of registered finalizers to execute upon unsubscription. Adding and removing from this
|
||||
* list occurs in the {@link #add} and {@link #remove} methods.
|
||||
*/
|
||||
private _finalizers;
|
||||
/**
|
||||
* @param initialTeardown A function executed first as part of the finalization
|
||||
* process that is kicked off when {@link #unsubscribe} is called.
|
||||
*/
|
||||
constructor(initialTeardown?: (() => void) | undefined);
|
||||
/**
|
||||
* Disposes the resources held by the subscription. May, for instance, cancel
|
||||
* an ongoing Observable execution or cancel any other type of work that
|
||||
* started when the Subscription was created.
|
||||
* @return {void}
|
||||
*/
|
||||
unsubscribe(): void;
|
||||
/**
|
||||
* Adds a finalizer to this subscription, so that finalization will be unsubscribed/called
|
||||
* when this subscription is unsubscribed. If this subscription is already {@link #closed},
|
||||
* because it has already been unsubscribed, then whatever finalizer is passed to it
|
||||
* will automatically be executed (unless the finalizer itself is also a closed subscription).
|
||||
*
|
||||
* Closed Subscriptions cannot be added as finalizers to any subscription. Adding a closed
|
||||
* subscription to a any subscription will result in no operation. (A noop).
|
||||
*
|
||||
* Adding a subscription to itself, or adding `null` or `undefined` will not perform any
|
||||
* operation at all. (A noop).
|
||||
*
|
||||
* `Subscription` instances that are added to this instance will automatically remove themselves
|
||||
* if they are unsubscribed. Functions and {@link Unsubscribable} objects that you wish to remove
|
||||
* will need to be removed manually with {@link #remove}
|
||||
*
|
||||
* @param teardown The finalization logic to add to this subscription.
|
||||
*/
|
||||
add(teardown: TeardownLogic): void;
|
||||
/**
|
||||
* Checks to see if a this subscription already has a particular parent.
|
||||
* This will signal that this subscription has already been added to the parent in question.
|
||||
* @param parent the parent to check for
|
||||
*/
|
||||
private _hasParent;
|
||||
/**
|
||||
* Adds a parent to this subscription so it can be removed from the parent if it
|
||||
* unsubscribes on it's own.
|
||||
*
|
||||
* NOTE: THIS ASSUMES THAT {@link _hasParent} HAS ALREADY BEEN CHECKED.
|
||||
* @param parent The parent subscription to add
|
||||
*/
|
||||
private _addParent;
|
||||
/**
|
||||
* Called on a child when it is removed via {@link #remove}.
|
||||
* @param parent The parent to remove
|
||||
*/
|
||||
private _removeParent;
|
||||
/**
|
||||
* Removes a finalizer from this subscription that was previously added with the {@link #add} method.
|
||||
*
|
||||
* Note that `Subscription` instances, when unsubscribed, will automatically remove themselves
|
||||
* from every other `Subscription` they have been added to. This means that using the `remove` method
|
||||
* is not a common thing and should be used thoughtfully.
|
||||
*
|
||||
* If you add the same finalizer instance of a function or an unsubscribable object to a `Subscription` instance
|
||||
* more than once, you will need to call `remove` the same number of times to remove all instances.
|
||||
*
|
||||
* All finalizer instances are removed to free up memory upon unsubscription.
|
||||
*
|
||||
* @param teardown The finalizer to remove from this subscription
|
||||
*/
|
||||
remove(teardown: Exclude<TeardownLogic, void>): void;
|
||||
}
|
||||
export declare const EMPTY_SUBSCRIPTION: Subscription;
|
||||
export declare function isSubscription(value: any): value is Subscription;
|
||||
//# sourceMappingURL=Subscription.d.ts.map
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"settings":
|
||||
{
|
||||
"detect_indentation": true,
|
||||
"ensure_newline_at_eof_on_save": true,
|
||||
"tab_size": 4,
|
||||
"translate_tabs_to_spaces": true,
|
||||
"trim_automatic_white_space": false,
|
||||
"trim_trailing_white_space_on_save": true,
|
||||
},
|
||||
"folders":
|
||||
[
|
||||
{
|
||||
"path": "./",
|
||||
"folder_exclude_patterns": ["bin", "coverage", "node_modules"],
|
||||
"file_exclude_patterns": ["*.sublime-workspace"]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
var apply = require('./_apply'),
|
||||
castPath = require('./_castPath'),
|
||||
last = require('./last'),
|
||||
parent = require('./_parent'),
|
||||
toKey = require('./_toKey');
|
||||
|
||||
/**
|
||||
* The base implementation of `_.invoke` without support for individual
|
||||
* method arguments.
|
||||
*
|
||||
* @private
|
||||
* @param {Object} object The object to query.
|
||||
* @param {Array|string} path The path of the method to invoke.
|
||||
* @param {Array} args The arguments to invoke the method with.
|
||||
* @returns {*} Returns the result of the invoked method.
|
||||
*/
|
||||
function baseInvoke(object, path, args) {
|
||||
path = castPath(path, object);
|
||||
object = parent(object, path);
|
||||
var func = object == null ? object : object[toKey(last(path))];
|
||||
return func == null ? undefined : apply(func, object, args);
|
||||
}
|
||||
|
||||
module.exports = baseInvoke;
|
||||
Reference in New Issue
Block a user