diff --git a/node_modules/express/lib/response.js b/node_modules/express/lib/response.js
new file mode 100644
index 0000000000000000000000000000000000000000..7a2f0ecce5658191e8670ab943d4f16655c279fc
--- /dev/null
+++ b/node_modules/express/lib/response.js
@@ -0,0 +1,1053 @@
+/*!
+ * express
+ * Copyright(c) 2009-2013 TJ Holowaychuk
+ * Copyright(c) 2014-2015 Douglas Christopher Wilson
+ * MIT Licensed
+ */
+
+'use strict';
+
+/**
+ * Module dependencies.
+ * @private
+ */
+
+var contentDisposition = require('content-disposition');
+var createError = require('http-errors')
+var deprecate = require('depd')('express');
+var encodeUrl = require('encodeurl');
+var escapeHtml = require('escape-html');
+var http = require('node:http');
+var onFinished = require('on-finished');
+var mime = require('mime-types')
+var path = require('node:path');
+var pathIsAbsolute = require('node:path').isAbsolute;
+var statuses = require('statuses')
+var sign = require('cookie-signature').sign;
+var normalizeType = require('./utils').normalizeType;
+var normalizeTypes = require('./utils').normalizeTypes;
+var setCharset = require('./utils').setCharset;
+var cookie = require('cookie');
+var send = require('send');
+var extname = path.extname;
+var resolve = path.resolve;
+var vary = require('vary');
+const { Buffer } = require('node:buffer');
+
+/**
+ * Response prototype.
+ * @public
+ */
+
+var res = Object.create(http.ServerResponse.prototype)
+
+/**
+ * Module exports.
+ * @public
+ */
+
+module.exports = res
+
+/**
+ * Set the HTTP status code for the response.
+ *
+ * Expects an integer value between 100 and 999 inclusive.
+ * Throws an error if the provided status code is not an integer or if it's outside the allowable range.
+ *
+ * @param {number} code - The HTTP status code to set.
+ * @return {ServerResponse} - Returns itself for chaining methods.
+ * @throws {TypeError} If `code` is not an integer.
+ * @throws {RangeError} If `code` is outside the range 100 to 999.
+ * @public
+ */
+
+res.status = function status(code) {
+ // Check if the status code is not an integer
+ if (!Number.isInteger(code)) {
+ throw new TypeError(`Invalid status code: ${JSON.stringify(code)}. Status code must be an integer.`);
+ }
+ // Check if the status code is outside of Node's valid range
+ if (code < 100 || code > 999) {
+ throw new RangeError(`Invalid status code: ${JSON.stringify(code)}. Status code must be greater than 99 and less than 1000.`);
+ }
+
+ this.statusCode = code;
+ return this;
+};
+
+/**
+ * Set Link header field with the given `links`.
+ *
+ * Examples:
+ *
+ * res.links({
+ * next: 'http://api.example.com/users?page=2',
+ * last: 'http://api.example.com/users?page=5',
+ * pages: [
+ * 'http://api.example.com/users?page=1',
+ * 'http://api.example.com/users?page=2'
+ * ]
+ * });
+ *
+ * @param {Object} links
+ * @return {ServerResponse}
+ * @public
+ */
+
+res.links = function(links) {
+ var link = this.get('Link') || '';
+ if (link) link += ', ';
+ return this.set('Link', link + Object.keys(links).map(function(rel) {
+ // Allow multiple links if links[rel] is an array
+ if (Array.isArray(links[rel])) {
+ return links[rel].map(function (singleLink) {
+ return `<${singleLink}>; rel="${rel}"`;
+ }).join(', ');
+ } else {
+ return `<${links[rel]}>; rel="${rel}"`;
+ }
+ }).join(', '));
+};
+
+/**
+ * Send a response.
+ *
+ * Examples:
+ *
+ * res.send(Buffer.from('wahoo'));
+ * res.send({ some: 'json' });
+ * res.send('
some html
');
+ *
+ * @param {string|number|boolean|object|Buffer} body
+ * @public
+ */
+
+res.send = function send(body) {
+ var chunk = body;
+ var encoding;
+ var req = this.req;
+ var type;
+
+ // settings
+ var app = this.app;
+
+ switch (typeof chunk) {
+ // string defaulting to html
+ case 'string':
+ if (!this.get('Content-Type')) {
+ this.type('html');
+ }
+ break;
+ case 'boolean':
+ case 'number':
+ case 'object':
+ if (chunk === null) {
+ chunk = '';
+ } else if (ArrayBuffer.isView(chunk)) {
+ if (!this.get('Content-Type')) {
+ this.type('bin');
+ }
+ } else {
+ return this.json(chunk);
+ }
+ break;
+ }
+
+ // write strings in utf-8
+ if (typeof chunk === 'string') {
+ encoding = 'utf8';
+ type = this.get('Content-Type');
+
+ // reflect this in content-type
+ if (typeof type === 'string') {
+ this.set('Content-Type', setCharset(type, 'utf-8'));
+ }
+ }
+
+ // determine if ETag should be generated
+ var etagFn = app.get('etag fn')
+ var generateETag = !this.get('ETag') && typeof etagFn === 'function'
+
+ // populate Content-Length
+ var len
+ if (chunk !== undefined) {
+ if (Buffer.isBuffer(chunk)) {
+ // get length of Buffer
+ len = chunk.length
+ } else if (!generateETag && chunk.length < 1000) {
+ // just calculate length when no ETag + small chunk
+ len = Buffer.byteLength(chunk, encoding)
+ } else {
+ // convert chunk to Buffer and calculate
+ chunk = Buffer.from(chunk, encoding)
+ encoding = undefined;
+ len = chunk.length
+ }
+
+ this.set('Content-Length', len);
+ }
+
+ // populate ETag
+ var etag;
+ if (generateETag && len !== undefined) {
+ if ((etag = etagFn(chunk, encoding))) {
+ this.set('ETag', etag);
+ }
+ }
+
+ // freshness
+ if (req.fresh) this.status(304);
+
+ // strip irrelevant headers
+ if (204 === this.statusCode || 304 === this.statusCode) {
+ this.removeHeader('Content-Type');
+ this.removeHeader('Content-Length');
+ this.removeHeader('Transfer-Encoding');
+ chunk = '';
+ }
+
+ // alter headers for 205
+ if (this.statusCode === 205) {
+ this.set('Content-Length', '0')
+ this.removeHeader('Transfer-Encoding')
+ chunk = ''
+ }
+
+ if (req.method === 'HEAD') {
+ // skip body for HEAD
+ this.end();
+ } else {
+ // respond
+ this.end(chunk, encoding);
+ }
+
+ return this;
+};
+
+/**
+ * Send JSON response.
+ *
+ * Examples:
+ *
+ * res.json(null);
+ * res.json({ user: 'tj' });
+ *
+ * @param {string|number|boolean|object} obj
+ * @public
+ */
+
+res.json = function json(obj) {
+ // settings
+ var app = this.app;
+ var escape = app.get('json escape')
+ var replacer = app.get('json replacer');
+ var spaces = app.get('json spaces');
+ var body = stringify(obj, replacer, spaces, escape)
+
+ // content-type
+ if (!this.get('Content-Type')) {
+ this.set('Content-Type', 'application/json');
+ }
+
+ return this.send(body);
+};
+
+/**
+ * Send JSON response with JSONP callback support.
+ *
+ * Examples:
+ *
+ * res.jsonp(null);
+ * res.jsonp({ user: 'tj' });
+ *
+ * @param {string|number|boolean|object} obj
+ * @public
+ */
+
+res.jsonp = function jsonp(obj) {
+ // settings
+ var app = this.app;
+ var escape = app.get('json escape')
+ var replacer = app.get('json replacer');
+ var spaces = app.get('json spaces');
+ var body = stringify(obj, replacer, spaces, escape)
+ var callback = this.req.query[app.get('jsonp callback name')];
+
+ // content-type
+ if (!this.get('Content-Type')) {
+ this.set('X-Content-Type-Options', 'nosniff');
+ this.set('Content-Type', 'application/json');
+ }
+
+ // fixup callback
+ if (Array.isArray(callback)) {
+ callback = callback[0];
+ }
+
+ // jsonp
+ if (typeof callback === 'string' && callback.length !== 0) {
+ this.set('X-Content-Type-Options', 'nosniff');
+ this.set('Content-Type', 'text/javascript');
+
+ // restrict callback charset
+ callback = callback.replace(/[^\[\]\w$.]/g, '');
+
+ if (body === undefined) {
+ // empty argument
+ body = ''
+ } else if (typeof body === 'string') {
+ // replace chars not allowed in JavaScript that are in JSON
+ body = body
+ .replace(/\u2028/g, '\\u2028')
+ .replace(/\u2029/g, '\\u2029')
+ }
+
+ // the /**/ is a specific security mitigation for "Rosetta Flash JSONP abuse"
+ // the typeof check is just to reduce client error noise
+ body = '/**/ typeof ' + callback + ' === \'function\' && ' + callback + '(' + body + ');';
+ }
+
+ return this.send(body);
+};
+
+/**
+ * Send given HTTP status code.
+ *
+ * Sets the response status to `statusCode` and the body of the
+ * response to the standard description from node's http.STATUS_CODES
+ * or the statusCode number if no description.
+ *
+ * Examples:
+ *
+ * res.sendStatus(200);
+ *
+ * @param {number} statusCode
+ * @public
+ */
+
+res.sendStatus = function sendStatus(statusCode) {
+ var body = statuses.message[statusCode] || String(statusCode)
+
+ this.status(statusCode);
+ this.type('txt');
+
+ return this.send(body);
+};
+
+/**
+ * Transfer the file at the given `path`.
+ *
+ * Automatically sets the _Content-Type_ response header field.
+ * The callback `callback(err)` is invoked when the transfer is complete
+ * or when an error occurs. Be sure to check `res.headersSent`
+ * if you wish to attempt responding, as the header and some data
+ * may have already been transferred.
+ *
+ * Options:
+ *
+ * - `maxAge` defaulting to 0 (can be string converted by `ms`)
+ * - `root` root directory for relative filenames
+ * - `headers` object of headers to serve with file
+ * - `dotfiles` serve dotfiles, defaulting to false; can be `"allow"` to send them
+ *
+ * Other options are passed along to `send`.
+ *
+ * Examples:
+ *
+ * The following example illustrates how `res.sendFile()` may
+ * be used as an alternative for the `static()` middleware for
+ * dynamic situations. The code backing `res.sendFile()` is actually
+ * the same code, so HTTP cache support etc is identical.
+ *
+ * app.get('/user/:uid/photos/:file', function(req, res){
+ * var uid = req.params.uid
+ * , file = req.params.file;
+ *
+ * req.user.mayViewFilesFrom(uid, function(yes){
+ * if (yes) {
+ * res.sendFile('/uploads/' + uid + '/' + file);
+ * } else {
+ * res.send(403, 'Sorry! you cant see that.');
+ * }
+ * });
+ * });
+ *
+ * @public
+ */
+
+res.sendFile = function sendFile(path, options, callback) {
+ var done = callback;
+ var req = this.req;
+ var res = this;
+ var next = req.next;
+ var opts = options || {};
+
+ if (!path) {
+ throw new TypeError('path argument is required to res.sendFile');
+ }
+
+ if (typeof path !== 'string') {
+ throw new TypeError('path must be a string to res.sendFile')
+ }
+
+ // support function as second arg
+ if (typeof options === 'function') {
+ done = options;
+ opts = {};
+ }
+
+ if (!opts.root && !pathIsAbsolute(path)) {
+ throw new TypeError('path must be absolute or specify root to res.sendFile');
+ }
+
+ // create file stream
+ var pathname = encodeURI(path);
+
+ // wire application etag option to send
+ opts.etag = this.app.enabled('etag');
+ var file = send(req, pathname, opts);
+
+ // transfer
+ sendfile(res, file, opts, function (err) {
+ if (done) return done(err);
+ if (err && err.code === 'EISDIR') return next();
+
+ // next() all but write errors
+ if (err && err.code !== 'ECONNABORTED' && err.syscall !== 'write') {
+ next(err);
+ }
+ });
+};
+
+/**
+ * Transfer the file at the given `path` as an attachment.
+ *
+ * Optionally providing an alternate attachment `filename`,
+ * and optional callback `callback(err)`. The callback is invoked
+ * when the data transfer is complete, or when an error has
+ * occurred. Be sure to check `res.headersSent` if you plan to respond.
+ *
+ * Optionally providing an `options` object to use with `res.sendFile()`.
+ * This function will set the `Content-Disposition` header, overriding
+ * any `Content-Disposition` header passed as header options in order
+ * to set the attachment and filename.
+ *
+ * This method uses `res.sendFile()`.
+ *
+ * @public
+ */
+
+res.download = function download (path, filename, options, callback) {
+ var done = callback;
+ var name = filename;
+ var opts = options || null
+
+ // support function as second or third arg
+ if (typeof filename === 'function') {
+ done = filename;
+ name = null;
+ opts = null
+ } else if (typeof options === 'function') {
+ done = options
+ opts = null
+ }
+
+ // support optional filename, where options may be in it's place
+ if (typeof filename === 'object' &&
+ (typeof options === 'function' || options === undefined)) {
+ name = null
+ opts = filename
+ }
+
+ // set Content-Disposition when file is sent
+ var headers = {
+ 'Content-Disposition': contentDisposition(name || path)
+ };
+
+ // merge user-provided headers
+ if (opts && opts.headers) {
+ var keys = Object.keys(opts.headers)
+ for (var i = 0; i < keys.length; i++) {
+ var key = keys[i]
+ if (key.toLowerCase() !== 'content-disposition') {
+ headers[key] = opts.headers[key]
+ }
+ }
+ }
+
+ // merge user-provided options
+ opts = Object.create(opts)
+ opts.headers = headers
+
+ // Resolve the full path for sendFile
+ var fullPath = !opts.root
+ ? resolve(path)
+ : path
+
+ // send file
+ return this.sendFile(fullPath, opts, done)
+};
+
+/**
+ * Set _Content-Type_ response header with `type` through `mime.contentType()`
+ * when it does not contain "/", or set the Content-Type to `type` otherwise.
+ * When no mapping is found though `mime.contentType()`, the type is set to
+ * "application/octet-stream".
+ *
+ * Examples:
+ *
+ * res.type('.html');
+ * res.type('html');
+ * res.type('json');
+ * res.type('application/json');
+ * res.type('png');
+ *
+ * @param {String} type
+ * @return {ServerResponse} for chaining
+ * @public
+ */
+
+res.contentType =
+res.type = function contentType(type) {
+ var ct = type.indexOf('/') === -1
+ ? (mime.contentType(type) || 'application/octet-stream')
+ : type;
+
+ return this.set('Content-Type', ct);
+};
+
+/**
+ * Respond to the Acceptable formats using an `obj`
+ * of mime-type callbacks.
+ *
+ * This method uses `req.accepted`, an array of
+ * acceptable types ordered by their quality values.
+ * When "Accept" is not present the _first_ callback
+ * is invoked, otherwise the first match is used. When
+ * no match is performed the server responds with
+ * 406 "Not Acceptable".
+ *
+ * Content-Type is set for you, however if you choose
+ * you may alter this within the callback using `res.type()`
+ * or `res.set('Content-Type', ...)`.
+ *
+ * res.format({
+ * 'text/plain': function(){
+ * res.send('hey');
+ * },
+ *
+ * 'text/html': function(){
+ * res.send('hey
');
+ * },
+ *
+ * 'application/json': function () {
+ * res.send({ message: 'hey' });
+ * }
+ * });
+ *
+ * In addition to canonicalized MIME types you may
+ * also use extnames mapped to these types:
+ *
+ * res.format({
+ * text: function(){
+ * res.send('hey');
+ * },
+ *
+ * html: function(){
+ * res.send('hey
');
+ * },
+ *
+ * json: function(){
+ * res.send({ message: 'hey' });
+ * }
+ * });
+ *
+ * By default Express passes an `Error`
+ * with a `.status` of 406 to `next(err)`
+ * if a match is not made. If you provide
+ * a `.default` callback it will be invoked
+ * instead.
+ *
+ * @param {Object} obj
+ * @return {ServerResponse} for chaining
+ * @public
+ */
+
+res.format = function(obj){
+ var req = this.req;
+ var next = req.next;
+
+ var keys = Object.keys(obj)
+ .filter(function (v) { return v !== 'default' })
+
+ var key = keys.length > 0
+ ? req.accepts(keys)
+ : false;
+
+ this.vary("Accept");
+
+ if (key) {
+ this.set('Content-Type', normalizeType(key).value);
+ obj[key](req, this, next);
+ } else if (obj.default) {
+ obj.default(req, this, next)
+ } else {
+ next(createError(406, {
+ types: normalizeTypes(keys).map(function (o) { return o.value })
+ }))
+ }
+
+ return this;
+};
+
+/**
+ * Set _Content-Disposition_ header to _attachment_ with optional `filename`.
+ *
+ * @param {String} filename
+ * @return {ServerResponse}
+ * @public
+ */
+
+res.attachment = function attachment(filename) {
+ if (filename) {
+ this.type(extname(filename));
+ }
+
+ this.set('Content-Disposition', contentDisposition(filename));
+
+ return this;
+};
+
+/**
+ * Append additional header `field` with value `val`.
+ *
+ * Example:
+ *
+ * res.append('Link', ['', '']);
+ * res.append('Set-Cookie', 'foo=bar; Path=/; HttpOnly');
+ * res.append('Warning', '199 Miscellaneous warning');
+ *
+ * @param {String} field
+ * @param {String|Array} val
+ * @return {ServerResponse} for chaining
+ * @public
+ */
+
+res.append = function append(field, val) {
+ var prev = this.get(field);
+ var value = val;
+
+ if (prev) {
+ // concat the new and prev vals
+ value = Array.isArray(prev) ? prev.concat(val)
+ : Array.isArray(val) ? [prev].concat(val)
+ : [prev, val]
+ }
+
+ return this.set(field, value);
+};
+
+/**
+ * Set header `field` to `val`, or pass
+ * an object of header fields.
+ *
+ * Examples:
+ *
+ * res.set('Foo', ['bar', 'baz']);
+ * res.set('Accept', 'application/json');
+ * res.set({ Accept: 'text/plain', 'X-API-Key': 'tobi' });
+ *
+ * Aliased as `res.header()`.
+ *
+ * When the set header is "Content-Type", the type is expanded to include
+ * the charset if not present using `mime.contentType()`.
+ *
+ * @param {String|Object} field
+ * @param {String|Array} val
+ * @return {ServerResponse} for chaining
+ * @public
+ */
+
+res.set =
+res.header = function header(field, val) {
+ if (arguments.length === 2) {
+ var value = Array.isArray(val)
+ ? val.map(String)
+ : String(val);
+
+ // add charset to content-type
+ if (field.toLowerCase() === 'content-type') {
+ if (Array.isArray(value)) {
+ throw new TypeError('Content-Type cannot be set to an Array');
+ }
+ value = mime.contentType(value)
+ }
+
+ this.setHeader(field, value);
+ } else {
+ for (var key in field) {
+ this.set(key, field[key]);
+ }
+ }
+ return this;
+};
+
+/**
+ * Get value for header `field`.
+ *
+ * @param {String} field
+ * @return {String}
+ * @public
+ */
+
+res.get = function(field){
+ return this.getHeader(field);
+};
+
+/**
+ * Clear cookie `name`.
+ *
+ * @param {String} name
+ * @param {Object} [options]
+ * @return {ServerResponse} for chaining
+ * @public
+ */
+
+res.clearCookie = function clearCookie(name, options) {
+ // Force cookie expiration by setting expires to the past
+ const opts = { path: '/', ...options, expires: new Date(1)};
+ // ensure maxAge is not passed
+ delete opts.maxAge
+
+ return this.cookie(name, '', opts);
+};
+
+/**
+ * Set cookie `name` to `value`, with the given `options`.
+ *
+ * Options:
+ *
+ * - `maxAge` max-age in milliseconds, converted to `expires`
+ * - `signed` sign the cookie
+ * - `path` defaults to "/"
+ *
+ * Examples:
+ *
+ * // "Remember Me" for 15 minutes
+ * res.cookie('rememberme', '1', { expires: new Date(Date.now() + 900000), httpOnly: true });
+ *
+ * // same as above
+ * res.cookie('rememberme', '1', { maxAge: 900000, httpOnly: true })
+ *
+ * @param {String} name
+ * @param {String|Object} value
+ * @param {Object} [options]
+ * @return {ServerResponse} for chaining
+ * @public
+ */
+
+res.cookie = function (name, value, options) {
+ var opts = { ...options };
+ var secret = this.req.secret;
+ var signed = opts.signed;
+
+ if (signed && !secret) {
+ throw new Error('cookieParser("secret") required for signed cookies');
+ }
+
+ var val = typeof value === 'object'
+ ? 'j:' + JSON.stringify(value)
+ : String(value);
+
+ if (signed) {
+ val = 's:' + sign(val, secret);
+ }
+
+ if (opts.maxAge != null) {
+ var maxAge = opts.maxAge - 0
+
+ if (!isNaN(maxAge)) {
+ opts.expires = new Date(Date.now() + maxAge)
+ opts.maxAge = Math.floor(maxAge / 1000)
+ }
+ }
+
+ if (opts.path == null) {
+ opts.path = '/';
+ }
+
+ this.append('Set-Cookie', cookie.serialize(name, String(val), opts));
+
+ return this;
+};
+
+/**
+ * Set the location header to `url`.
+ *
+ * The given `url` can also be "back", which redirects
+ * to the _Referrer_ or _Referer_ headers or "/".
+ *
+ * Examples:
+ *
+ * res.location('/foo/bar').;
+ * res.location('http://example.com');
+ * res.location('../login');
+ *
+ * @param {String} url
+ * @return {ServerResponse} for chaining
+ * @public
+ */
+
+res.location = function location(url) {
+ return this.set('Location', encodeUrl(url));
+};
+
+/**
+ * Redirect to the given `url` with optional response `status`
+ * defaulting to 302.
+ *
+ * Examples:
+ *
+ * res.redirect('/foo/bar');
+ * res.redirect('http://example.com');
+ * res.redirect(301, 'http://example.com');
+ * res.redirect('../login'); // /blog/post/1 -> /blog/login
+ *
+ * @public
+ */
+
+res.redirect = function redirect(url) {
+ var address = url;
+ var body;
+ var status = 302;
+
+ // allow status / url
+ if (arguments.length === 2) {
+ status = arguments[0]
+ address = arguments[1]
+ }
+
+ if (!address) {
+ deprecate('Provide a url argument');
+ }
+
+ if (typeof address !== 'string') {
+ deprecate('Url must be a string');
+ }
+
+ if (typeof status !== 'number') {
+ deprecate('Status must be a number');
+ }
+
+ // Set location header
+ address = this.location(address).get('Location');
+
+ // Support text/{plain,html} by default
+ this.format({
+ text: function(){
+ body = statuses.message[status] + '. Redirecting to ' + address
+ },
+
+ html: function(){
+ var u = escapeHtml(address);
+ body = '' + statuses.message[status] + '. Redirecting to ' + u + '
'
+ },
+
+ default: function(){
+ body = '';
+ }
+ });
+
+ // Respond
+ this.status(status);
+ this.set('Content-Length', Buffer.byteLength(body));
+
+ if (this.req.method === 'HEAD') {
+ this.end();
+ } else {
+ this.end(body);
+ }
+};
+
+/**
+ * Add `field` to Vary. If already present in the Vary set, then
+ * this call is simply ignored.
+ *
+ * @param {Array|String} field
+ * @return {ServerResponse} for chaining
+ * @public
+ */
+
+res.vary = function(field){
+ vary(this, field);
+
+ return this;
+};
+
+/**
+ * Render `view` with the given `options` and optional callback `fn`.
+ * When a callback function is given a response will _not_ be made
+ * automatically, otherwise a response of _200_ and _text/html_ is given.
+ *
+ * Options:
+ *
+ * - `cache` boolean hinting to the engine it should cache
+ * - `filename` filename of the view being rendered
+ *
+ * @public
+ */
+
+res.render = function render(view, options, callback) {
+ var app = this.req.app;
+ var done = callback;
+ var opts = options || {};
+ var req = this.req;
+ var self = this;
+
+ // support callback function as second arg
+ if (typeof options === 'function') {
+ done = options;
+ opts = {};
+ }
+
+ // merge res.locals
+ opts._locals = self.locals;
+
+ // default callback to respond
+ done = done || function (err, str) {
+ if (err) return req.next(err);
+ self.send(str);
+ };
+
+ // render
+ app.render(view, opts, done);
+};
+
+// pipe the send file stream
+function sendfile(res, file, options, callback) {
+ var done = false;
+ var streaming;
+
+ // request aborted
+ function onaborted() {
+ if (done) return;
+ done = true;
+
+ var err = new Error('Request aborted');
+ err.code = 'ECONNABORTED';
+ callback(err);
+ }
+
+ // directory
+ function ondirectory() {
+ if (done) return;
+ done = true;
+
+ var err = new Error('EISDIR, read');
+ err.code = 'EISDIR';
+ callback(err);
+ }
+
+ // errors
+ function onerror(err) {
+ if (done) return;
+ done = true;
+ callback(err);
+ }
+
+ // ended
+ function onend() {
+ if (done) return;
+ done = true;
+ callback();
+ }
+
+ // file
+ function onfile() {
+ streaming = false;
+ }
+
+ // finished
+ function onfinish(err) {
+ if (err && err.code === 'ECONNRESET') return onaborted();
+ if (err) return onerror(err);
+ if (done) return;
+
+ setImmediate(function () {
+ if (streaming !== false && !done) {
+ onaborted();
+ return;
+ }
+
+ if (done) return;
+ done = true;
+ callback();
+ });
+ }
+
+ // streaming
+ function onstream() {
+ streaming = true;
+ }
+
+ file.on('directory', ondirectory);
+ file.on('end', onend);
+ file.on('error', onerror);
+ file.on('file', onfile);
+ file.on('stream', onstream);
+ onFinished(res, onfinish);
+
+ if (options.headers) {
+ // set headers on successful transfer
+ file.on('headers', function headers(res) {
+ var obj = options.headers;
+ var keys = Object.keys(obj);
+
+ for (var i = 0; i < keys.length; i++) {
+ var k = keys[i];
+ res.setHeader(k, obj[k]);
+ }
+ });
+ }
+
+ // pipe
+ file.pipe(res);
+}
+
+/**
+ * Stringify JSON, like JSON.stringify, but v8 optimized, with the
+ * ability to escape characters that can trigger HTML sniffing.
+ *
+ * @param {*} value
+ * @param {function} replacer
+ * @param {number} spaces
+ * @param {boolean} escape
+ * @returns {string}
+ * @private
+ */
+
+function stringify (value, replacer, spaces, escape) {
+ // v8 checks arguments.length for optimizing simple call
+ // https://bugs.chromium.org/p/v8/issues/detail?id=4730
+ var json = replacer || spaces
+ ? JSON.stringify(value, replacer, spaces)
+ : JSON.stringify(value);
+
+ if (escape && typeof json === 'string') {
+ json = json.replace(/[<>&]/g, function (c) {
+ switch (c.charCodeAt(0)) {
+ case 0x3c:
+ return '\\u003c'
+ case 0x3e:
+ return '\\u003e'
+ case 0x26:
+ return '\\u0026'
+ /* istanbul ignore next: unreachable default */
+ default:
+ return c
+ }
+ })
+ }
+
+ return json
+}
diff --git a/node_modules/express/lib/utils.js b/node_modules/express/lib/utils.js
new file mode 100644
index 0000000000000000000000000000000000000000..4f21e7ef1e3d2ed8da18a9671f983b012e45198b
--- /dev/null
+++ b/node_modules/express/lib/utils.js
@@ -0,0 +1,271 @@
+/*!
+ * express
+ * Copyright(c) 2009-2013 TJ Holowaychuk
+ * Copyright(c) 2014-2015 Douglas Christopher Wilson
+ * MIT Licensed
+ */
+
+'use strict';
+
+/**
+ * Module dependencies.
+ * @api private
+ */
+
+var { METHODS } = require('node:http');
+var contentType = require('content-type');
+var etag = require('etag');
+var mime = require('mime-types')
+var proxyaddr = require('proxy-addr');
+var qs = require('qs');
+var querystring = require('node:querystring');
+const { Buffer } = require('node:buffer');
+
+
+/**
+ * A list of lowercased HTTP methods that are supported by Node.js.
+ * @api private
+ */
+exports.methods = METHODS.map((method) => method.toLowerCase());
+
+/**
+ * Return strong ETag for `body`.
+ *
+ * @param {String|Buffer} body
+ * @param {String} [encoding]
+ * @return {String}
+ * @api private
+ */
+
+exports.etag = createETagGenerator({ weak: false })
+
+/**
+ * Return weak ETag for `body`.
+ *
+ * @param {String|Buffer} body
+ * @param {String} [encoding]
+ * @return {String}
+ * @api private
+ */
+
+exports.wetag = createETagGenerator({ weak: true })
+
+/**
+ * Normalize the given `type`, for example "html" becomes "text/html".
+ *
+ * @param {String} type
+ * @return {Object}
+ * @api private
+ */
+
+exports.normalizeType = function(type){
+ return ~type.indexOf('/')
+ ? acceptParams(type)
+ : { value: (mime.lookup(type) || 'application/octet-stream'), params: {} }
+};
+
+/**
+ * Normalize `types`, for example "html" becomes "text/html".
+ *
+ * @param {Array} types
+ * @return {Array}
+ * @api private
+ */
+
+exports.normalizeTypes = function(types) {
+ return types.map(exports.normalizeType);
+};
+
+
+/**
+ * Parse accept params `str` returning an
+ * object with `.value`, `.quality` and `.params`.
+ *
+ * @param {String} str
+ * @return {Object}
+ * @api private
+ */
+
+function acceptParams (str) {
+ var length = str.length;
+ var colonIndex = str.indexOf(';');
+ var index = colonIndex === -1 ? length : colonIndex;
+ var ret = { value: str.slice(0, index).trim(), quality: 1, params: {} };
+
+ while (index < length) {
+ var splitIndex = str.indexOf('=', index);
+ if (splitIndex === -1) break;
+
+ var colonIndex = str.indexOf(';', index);
+ var endIndex = colonIndex === -1 ? length : colonIndex;
+
+ if (splitIndex > endIndex) {
+ index = str.lastIndexOf(';', splitIndex - 1) + 1;
+ continue;
+ }
+
+ var key = str.slice(index, splitIndex).trim();
+ var value = str.slice(splitIndex + 1, endIndex).trim();
+
+ if (key === 'q') {
+ ret.quality = parseFloat(value);
+ } else {
+ ret.params[key] = value;
+ }
+
+ index = endIndex + 1;
+ }
+
+ return ret;
+}
+
+/**
+ * Compile "etag" value to function.
+ *
+ * @param {Boolean|String|Function} val
+ * @return {Function}
+ * @api private
+ */
+
+exports.compileETag = function(val) {
+ var fn;
+
+ if (typeof val === 'function') {
+ return val;
+ }
+
+ switch (val) {
+ case true:
+ case 'weak':
+ fn = exports.wetag;
+ break;
+ case false:
+ break;
+ case 'strong':
+ fn = exports.etag;
+ break;
+ default:
+ throw new TypeError('unknown value for etag function: ' + val);
+ }
+
+ return fn;
+}
+
+/**
+ * Compile "query parser" value to function.
+ *
+ * @param {String|Function} val
+ * @return {Function}
+ * @api private
+ */
+
+exports.compileQueryParser = function compileQueryParser(val) {
+ var fn;
+
+ if (typeof val === 'function') {
+ return val;
+ }
+
+ switch (val) {
+ case true:
+ case 'simple':
+ fn = querystring.parse;
+ break;
+ case false:
+ break;
+ case 'extended':
+ fn = parseExtendedQueryString;
+ break;
+ default:
+ throw new TypeError('unknown value for query parser function: ' + val);
+ }
+
+ return fn;
+}
+
+/**
+ * Compile "proxy trust" value to function.
+ *
+ * @param {Boolean|String|Number|Array|Function} val
+ * @return {Function}
+ * @api private
+ */
+
+exports.compileTrust = function(val) {
+ if (typeof val === 'function') return val;
+
+ if (val === true) {
+ // Support plain true/false
+ return function(){ return true };
+ }
+
+ if (typeof val === 'number') {
+ // Support trusting hop count
+ return function(a, i){ return i < val };
+ }
+
+ if (typeof val === 'string') {
+ // Support comma-separated values
+ val = val.split(',')
+ .map(function (v) { return v.trim() })
+ }
+
+ return proxyaddr.compile(val || []);
+}
+
+/**
+ * Set the charset in a given Content-Type string.
+ *
+ * @param {String} type
+ * @param {String} charset
+ * @return {String}
+ * @api private
+ */
+
+exports.setCharset = function setCharset(type, charset) {
+ if (!type || !charset) {
+ return type;
+ }
+
+ // parse type
+ var parsed = contentType.parse(type);
+
+ // set charset
+ parsed.parameters.charset = charset;
+
+ // format type
+ return contentType.format(parsed);
+};
+
+/**
+ * Create an ETag generator function, generating ETags with
+ * the given options.
+ *
+ * @param {object} options
+ * @return {function}
+ * @private
+ */
+
+function createETagGenerator (options) {
+ return function generateETag (body, encoding) {
+ var buf = !Buffer.isBuffer(body)
+ ? Buffer.from(body, encoding)
+ : body
+
+ return etag(buf, options)
+ }
+}
+
+/**
+ * Parse an extended query string with qs.
+ *
+ * @param {String} str
+ * @return {Object}
+ * @private
+ */
+
+function parseExtendedQueryString(str) {
+ return qs.parse(str, {
+ allowPrototypes: true
+ });
+}
diff --git a/node_modules/express/lib/view.js b/node_modules/express/lib/view.js
new file mode 100644
index 0000000000000000000000000000000000000000..d66b4a2d89cda638ca1dcbba3da090e631175fc1
--- /dev/null
+++ b/node_modules/express/lib/view.js
@@ -0,0 +1,205 @@
+/*!
+ * express
+ * Copyright(c) 2009-2013 TJ Holowaychuk
+ * Copyright(c) 2013 Roman Shtylman
+ * Copyright(c) 2014-2015 Douglas Christopher Wilson
+ * MIT Licensed
+ */
+
+'use strict';
+
+/**
+ * Module dependencies.
+ * @private
+ */
+
+var debug = require('debug')('express:view');
+var path = require('node:path');
+var fs = require('node:fs');
+
+/**
+ * Module variables.
+ * @private
+ */
+
+var dirname = path.dirname;
+var basename = path.basename;
+var extname = path.extname;
+var join = path.join;
+var resolve = path.resolve;
+
+/**
+ * Module exports.
+ * @public
+ */
+
+module.exports = View;
+
+/**
+ * Initialize a new `View` with the given `name`.
+ *
+ * Options:
+ *
+ * - `defaultEngine` the default template engine name
+ * - `engines` template engine require() cache
+ * - `root` root path for view lookup
+ *
+ * @param {string} name
+ * @param {object} options
+ * @public
+ */
+
+function View(name, options) {
+ var opts = options || {};
+
+ this.defaultEngine = opts.defaultEngine;
+ this.ext = extname(name);
+ this.name = name;
+ this.root = opts.root;
+
+ if (!this.ext && !this.defaultEngine) {
+ throw new Error('No default engine was specified and no extension was provided.');
+ }
+
+ var fileName = name;
+
+ if (!this.ext) {
+ // get extension from default engine name
+ this.ext = this.defaultEngine[0] !== '.'
+ ? '.' + this.defaultEngine
+ : this.defaultEngine;
+
+ fileName += this.ext;
+ }
+
+ if (!opts.engines[this.ext]) {
+ // load engine
+ var mod = this.ext.slice(1)
+ debug('require "%s"', mod)
+
+ // default engine export
+ var fn = require(mod).__express
+
+ if (typeof fn !== 'function') {
+ throw new Error('Module "' + mod + '" does not provide a view engine.')
+ }
+
+ opts.engines[this.ext] = fn
+ }
+
+ // store loaded engine
+ this.engine = opts.engines[this.ext];
+
+ // lookup path
+ this.path = this.lookup(fileName);
+}
+
+/**
+ * Lookup view by the given `name`
+ *
+ * @param {string} name
+ * @private
+ */
+
+View.prototype.lookup = function lookup(name) {
+ var path;
+ var roots = [].concat(this.root);
+
+ debug('lookup "%s"', name);
+
+ for (var i = 0; i < roots.length && !path; i++) {
+ var root = roots[i];
+
+ // resolve the path
+ var loc = resolve(root, name);
+ var dir = dirname(loc);
+ var file = basename(loc);
+
+ // resolve the file
+ path = this.resolve(dir, file);
+ }
+
+ return path;
+};
+
+/**
+ * Render with the given options.
+ *
+ * @param {object} options
+ * @param {function} callback
+ * @private
+ */
+
+View.prototype.render = function render(options, callback) {
+ var sync = true;
+
+ debug('render "%s"', this.path);
+
+ // render, normalizing sync callbacks
+ this.engine(this.path, options, function onRender() {
+ if (!sync) {
+ return callback.apply(this, arguments);
+ }
+
+ // copy arguments
+ var args = new Array(arguments.length);
+ var cntx = this;
+
+ for (var i = 0; i < arguments.length; i++) {
+ args[i] = arguments[i];
+ }
+
+ // force callback to be async
+ return process.nextTick(function renderTick() {
+ return callback.apply(cntx, args);
+ });
+ });
+
+ sync = false;
+};
+
+/**
+ * Resolve the file within the given directory.
+ *
+ * @param {string} dir
+ * @param {string} file
+ * @private
+ */
+
+View.prototype.resolve = function resolve(dir, file) {
+ var ext = this.ext;
+
+ // .
+ var path = join(dir, file);
+ var stat = tryStat(path);
+
+ if (stat && stat.isFile()) {
+ return path;
+ }
+
+ // /index.
+ path = join(dir, basename(file, ext), 'index' + ext);
+ stat = tryStat(path);
+
+ if (stat && stat.isFile()) {
+ return path;
+ }
+};
+
+/**
+ * Return a stat, maybe.
+ *
+ * @param {string} path
+ * @return {fs.Stats}
+ * @private
+ */
+
+function tryStat(path) {
+ debug('stat "%s"', path);
+
+ try {
+ return fs.statSync(path);
+ } catch (e) {
+ return undefined;
+ }
+}
diff --git a/node_modules/express/package.json b/node_modules/express/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..8f358830d97f07e22bd7a38982080e9fbc4fc6a7
--- /dev/null
+++ b/node_modules/express/package.json
@@ -0,0 +1,99 @@
+{
+ "name": "express",
+ "description": "Fast, unopinionated, minimalist web framework",
+ "version": "5.2.1",
+ "author": "TJ Holowaychuk ",
+ "contributors": [
+ "Aaron Heckmann ",
+ "Ciaran Jessup ",
+ "Douglas Christopher Wilson ",
+ "Guillermo Rauch ",
+ "Jonathan Ong ",
+ "Roman Shtylman ",
+ "Young Jae Sim "
+ ],
+ "license": "MIT",
+ "repository": "expressjs/express",
+ "homepage": "https://expressjs.com/",
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ },
+ "keywords": [
+ "express",
+ "framework",
+ "sinatra",
+ "web",
+ "http",
+ "rest",
+ "restful",
+ "router",
+ "app",
+ "api"
+ ],
+ "dependencies": {
+ "accepts": "^2.0.0",
+ "body-parser": "^2.2.1",
+ "content-disposition": "^1.0.0",
+ "content-type": "^1.0.5",
+ "cookie": "^0.7.1",
+ "cookie-signature": "^1.2.1",
+ "debug": "^4.4.0",
+ "depd": "^2.0.0",
+ "encodeurl": "^2.0.0",
+ "escape-html": "^1.0.3",
+ "etag": "^1.8.1",
+ "finalhandler": "^2.1.0",
+ "fresh": "^2.0.0",
+ "http-errors": "^2.0.0",
+ "merge-descriptors": "^2.0.0",
+ "mime-types": "^3.0.0",
+ "on-finished": "^2.4.1",
+ "once": "^1.4.0",
+ "parseurl": "^1.3.3",
+ "proxy-addr": "^2.0.7",
+ "qs": "^6.14.0",
+ "range-parser": "^1.2.1",
+ "router": "^2.2.0",
+ "send": "^1.1.0",
+ "serve-static": "^2.2.0",
+ "statuses": "^2.0.1",
+ "type-is": "^2.0.1",
+ "vary": "^1.1.2"
+ },
+ "devDependencies": {
+ "after": "0.8.2",
+ "connect-redis": "^8.0.1",
+ "cookie-parser": "1.4.7",
+ "cookie-session": "2.1.1",
+ "ejs": "^3.1.10",
+ "eslint": "8.47.0",
+ "express-session": "^1.18.1",
+ "hbs": "4.2.0",
+ "marked": "^15.0.3",
+ "method-override": "3.0.0",
+ "mocha": "^10.7.3",
+ "morgan": "1.10.1",
+ "nyc": "^17.1.0",
+ "pbkdf2-password": "1.2.1",
+ "supertest": "^6.3.0",
+ "vhost": "~3.0.2"
+ },
+ "engines": {
+ "node": ">= 18"
+ },
+ "files": [
+ "LICENSE",
+ "Readme.md",
+ "index.js",
+ "lib/"
+ ],
+ "scripts": {
+ "lint": "eslint .",
+ "lint:fix": "eslint . --fix",
+ "test": "mocha --require test/support/env --reporter spec --check-leaks test/ test/acceptance/",
+ "test-ci": "nyc --exclude examples --exclude test --exclude benchmarks --reporter=lcovonly --reporter=text npm test",
+ "test-cov": "nyc --exclude examples --exclude test --exclude benchmarks --reporter=html --reporter=text npm test",
+ "test-tap": "mocha --require test/support/env --reporter tap --check-leaks test/ test/acceptance/"
+ }
+}
diff --git a/node_modules/ext/CHANGELOG.md b/node_modules/ext/CHANGELOG.md
new file mode 100644
index 0000000000000000000000000000000000000000..48bffa3a72bf2ef210d5c1ed8d602681ba5f0666
--- /dev/null
+++ b/node_modules/ext/CHANGELOG.md
@@ -0,0 +1,89 @@
+# Changelog
+
+All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
+
+## [1.7.0](https://github.com/medikoo/es5-ext/compare/v1.6.0...v1.7.0) (2022-08-31)
+
+### Features
+
+- `string.camelToHyphen` method ([b8ea4ab](https://github.com/medikoo/es5-ext/commit/b8ea4ab6c8b920ecdff224f9c92092e1c7f8cdfc))
+- `string.capitalize` method ([32e7360](https://github.com/medikoo/es5-ext/commit/32e736034bd27ed25d4566b22aa93aa66c7901cf))
+
+## [1.6.0](https://github.com/medikoo/es5-ext/compare/v1.5.0...v1.6.0) (2021-09-24)
+
+### Features
+
+- `Object.clear` util ([a955da4](https://github.com/medikoo/es5-ext/commit/a955da41e65a25ad87a46234bae065f096abd1d2))
+
+### Bug Fixes
+
+- Fix `Object.entries` to not return non enumerable properties ([44fb872](https://github.com/medikoo/es5-ext/commit/44fb87266617378d2f47a1a5baad6280bf6298a8))
+
+## [1.5.0](https://github.com/medikoo/es5-ext/compare/v1.3.0...v1.5.0) (2021-08-23)
+
+### Features
+
+- `Promise.limit` ([060a05d](https://github.com/medikoo/es5-ext/commit/060a05d4751cd291c6dd7641f5a73ba9338ea7ab))
+- `String.prototype.includes` ([ceebe8d](https://github.com/medikoo/es5-ext/commit/ceebe8dfd6f479d6a7e7b6cd79369291869ee2dd))
+- `charset` option for `String.random` ([2a20eeb](https://github.com/medikoo/es5-ext/commit/2a20eebc5ae784e5c1aacd2c54433fe92a9464c9))
+
+## [1.4.0](https://github.com///compare/v1.3.0...v1.4.0) (2019-11-29)
+
+### Features
+
+- `charset` option for `String.random` ([2a20eeb](https://github.com///commit/2a20eebc5ae784e5c1aacd2c54433fe92a9464c9))
+- `String.prototype.includes` implementation ([ceebe8d](https://github.com///commit/ceebe8dfd6f479d6a7e7b6cd79369291869ee2dd))
+
+## [1.3.0](https://github.com///compare/v1.2.1...v1.3.0) (2019-11-28)
+
+### Features
+
+- `String.random` util ([5b5860a](https://github.com///commit/5b5860ac545b05f00527e00295fdb4f97e4a4e5b))
+
+### [1.2.1](https://github.com///compare/v1.2.0...v1.2.1) (2019-11-26)
+
+## [1.2.0](https://github.com/medikoo/ext/compare/v1.1.2...v1.2.0) (2019-11-07)
+
+### Features
+
+- ceil10, floor10 and round10 for Math ([6a2bc4b](https://github.com/medikoo/ext/commit/6a2bc4b))
+
+### [1.1.2](https://github.com/medikoo/ext/compare/v1.1.1...v1.1.2) (2019-10-29)
+
+### Bug Fixes
+
+- Improve globalThis detection ([470862d](https://github.com/medikoo/ext/commit/470862d))
+
+### [1.1.1](https://github.com/medikoo/ext/compare/v1.1.0...v1.1.1) (2019-10-29)
+
+### Bug Fixes
+
+- Provide naive fallback for sealed Object.prototype case ([a8d528b](https://github.com/medikoo/ext/commit/a8d528b))
+- Workaournd Safari incompatibility case ([0b051e6](https://github.com/medikoo/ext/commit/0b051e6))
+
+## [1.1.0](https://github.com/medikoo/ext/compare/v1.0.3...v1.1.0) (2019-10-21)
+
+### Features
+
+- Object.entries implementation ([cf51e45](https://github.com/medikoo/ext/commit/cf51e45))
+
+### [1.0.3](https://github.com/medikoo/ext/compare/v1.0.1...v1.0.3) (2019-07-03)
+
+Remove obsolete files from publication
+
+### [1.0.2](https://github.com/medikoo/ext/compare/v1.0.1...v1.0.2) (2019-07-03)
+
+(no changes)
+
+### [1.0.1](https://github.com/medikoo/ext/compare/v1.0.0...v1.0.1) (2019-07-03)
+
+Prettify
+
+## 1.0.0 (2019-07-03)
+
+### Features
+
+- `function/identity` (adapted from `es5-ext`) ([f0102af](https://github.com/medikoo/ext/commit/f0102af))
+- `thenable/finally` (adapted from `es5-ext`) ([a8494ac](https://github.com/medikoo/ext/commit/a8494ac))
+- `global-this/is-implemented` ([3a80904](https://github.com/medikoo/ext/commit/3a80904))
+- `globalThis` (mostly adapted from `es5-ext`) ([6559bd3](https://github.com/medikoo/ext/commit/6559bd3))
diff --git a/node_modules/ext/LICENSE b/node_modules/ext/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..7df6b3d0797dc9ad3f9618bf0fa54fcc23365911
--- /dev/null
+++ b/node_modules/ext/LICENSE
@@ -0,0 +1,15 @@
+ISC License
+
+Copyright (c) 2011-2022, Mariusz Nowak, @medikoo, medikoo.com
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
+REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
+INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+PERFORMANCE OF THIS SOFTWARE.
diff --git a/node_modules/ext/README.md b/node_modules/ext/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..29491e2413e9e2220a021f2c1c3d68db37208fdd
--- /dev/null
+++ b/node_modules/ext/README.md
@@ -0,0 +1,46 @@
+[![Build status][build-image]][build-url]
+[![npm version][npm-image]][npm-url]
+
+# ext
+
+_(Previously known as `es5-ext`)_
+
+## JavaScript language extensions (with respect to evolving standard)
+
+Non-standard or soon to be standard language utilities in a future proof, non-invasive form.
+
+Doesn't enforce transpilation step. Where it's applicable utilities/extensions are safe to use in all ES3+ implementations.
+
+### Installation
+
+```bash
+npm install ext
+```
+
+### Utilities
+
+- [`globalThis`](docs/global-this.md)
+- `Function`
+ - [`identity`](docs/function/identity.md)
+- `Math`
+ - [`ceil10`](docs/math/ceil-10.md)
+ - [`floor10`](docs/math/floor-10.md)
+ - [`round10`](docs/math/round-10.md)
+- `Object`
+ - [`clear`](docs/object/clear.md)
+ - [`entries`](docs/object/entries.md)
+- `Promise`
+ - [`limit`](docs/promise/limit.md)
+- `String`
+ - [`random`](docs/string/random.md)
+- `String.prototype`
+ - [`campelToHyphen`](docs/string_/camel-to-hyphen.md)
+ - [`capitalize`](docs/string_/capitalize.md)
+ - [`includes`](docs/string_/includes.md)
+- `Thenable.prototype`
+ - [`finally`](docs/thenable_/finally.md)
+
+[build-image]: https://github.com/medikoo/es5-ext/workflows/Integrate%20[ext]/badge.svg
+[build-url]: https://github.com/medikoo/es5-ext/actions?query=workflow%3AIntegrate%20[ext]
+[npm-image]: https://img.shields.io/npm/v/ext.svg
+[npm-url]: https://www.npmjs.com/package/ext
diff --git a/node_modules/ext/docs/function/identity.md b/node_modules/ext/docs/function/identity.md
new file mode 100644
index 0000000000000000000000000000000000000000..b6a5c1d286456f85a614b4e245146d8911199d2d
--- /dev/null
+++ b/node_modules/ext/docs/function/identity.md
@@ -0,0 +1,9 @@
+# `Function.identity` _(ext/function/identity)_
+
+Returns input argument.
+
+```javascript
+const identity = require("ext/function/identity");
+
+identity("foo"); // "foo"
+```
diff --git a/node_modules/ext/docs/global-this.md b/node_modules/ext/docs/global-this.md
new file mode 100644
index 0000000000000000000000000000000000000000..fafd4224d2426fe072c04d953b397468a2b5bd5c
--- /dev/null
+++ b/node_modules/ext/docs/global-this.md
@@ -0,0 +1,9 @@
+# `globalThis` _(ext/global-this)_
+
+Returns global object. Resolve native [globalThis](https://github.com/tc39/proposal-global) if implemented, otherwise fallback to internal resolution of a global object.
+
+```javascript
+const globalThis = require("ext/global-this");
+
+globalThis.Array === Array; // true
+```
diff --git a/node_modules/ext/docs/math/ceil-10.md b/node_modules/ext/docs/math/ceil-10.md
new file mode 100644
index 0000000000000000000000000000000000000000..1d531226dad928e89ad5ca7b9c3c3c7d42b61c1e
--- /dev/null
+++ b/node_modules/ext/docs/math/ceil-10.md
@@ -0,0 +1,10 @@
+# `Math.ceil10` _(ext/math/ceil-10)_
+
+Decimal ceil
+
+```javascript
+const ceil10 = require("ext/math/ceil-10");
+
+ceil10(55.51, -1); // 55.6
+ceil10(-59, 1); // -50;
+```
diff --git a/node_modules/ext/docs/math/floor-10.md b/node_modules/ext/docs/math/floor-10.md
new file mode 100644
index 0000000000000000000000000000000000000000..099c1b6a01ec2f70a64fa39a8df57360f7d64695
--- /dev/null
+++ b/node_modules/ext/docs/math/floor-10.md
@@ -0,0 +1,10 @@
+# `Math.floor10` _(ext/math/floor-10)_
+
+Decimal floor
+
+```javascript
+const floor10 = require("ext/math/floor-10");
+
+floor10(55.59, -1); // 55.5
+floor10(59, 1); // 50
+```
diff --git a/node_modules/ext/docs/math/round-10.md b/node_modules/ext/docs/math/round-10.md
new file mode 100644
index 0000000000000000000000000000000000000000..727acb1edc94bbdce433d9a39cbdcc1c1bdd3d8e
--- /dev/null
+++ b/node_modules/ext/docs/math/round-10.md
@@ -0,0 +1,10 @@
+# `Math.round10` _(ext/math/round-10)_
+
+Decimal round
+
+```javascript
+const round10 = require("ext/math/round-10");
+
+round10(55.549, -1); // 55.5
+round10(1.005, -2); // 1.01
+```
diff --git a/node_modules/ext/docs/object/clear.md b/node_modules/ext/docs/object/clear.md
new file mode 100644
index 0000000000000000000000000000000000000000..468be1bf27ecf2054652dfd0803324ef3c4f1d39
--- /dev/null
+++ b/node_modules/ext/docs/object/clear.md
@@ -0,0 +1,12 @@
+# `Object.clear` _(ext/object/clear)_
+
+Deletes all own, enumerable, non-symbol properties in the object
+
+```javascript
+const clear = require("ext/object/clear");
+
+const obj = { foo: "bar" };
+
+clear(obj);
+Object.keys(obj); // []
+```
diff --git a/node_modules/ext/docs/object/entries.md b/node_modules/ext/docs/object/entries.md
new file mode 100644
index 0000000000000000000000000000000000000000..2d05f4c06fb56e0556abee686a5aa63ad51e49ae
--- /dev/null
+++ b/node_modules/ext/docs/object/entries.md
@@ -0,0 +1,11 @@
+# `Object.entries` _(ext/object/entries)_
+
+[Object.entries](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries) implementation.
+
+Returns native `Object.entries` if it's implemented, otherwise library implementation is returned
+
+```javascript
+const entries = require("ext/object/entries");
+
+entries({ foo: "bar" }); // [["foo", "bar"]]
+```
diff --git a/node_modules/ext/docs/promise/limit.md b/node_modules/ext/docs/promise/limit.md
new file mode 100644
index 0000000000000000000000000000000000000000..8b0ea3838470108f746bccce01e47639cdf94bd7
--- /dev/null
+++ b/node_modules/ext/docs/promise/limit.md
@@ -0,0 +1,13 @@
+# `Promise.limit` _(ext/promise/limit)_
+
+Helps to limit concurrency of asynchronous operations.
+
+```javascript
+const limit = require("ext/promise/limit").bind(Promise);
+
+const limittedAsyncFunction = limit(2, asyncFunction);
+
+imittedAsyncFunction(); // Async operation started
+imittedAsyncFunction(); // Async operation started
+imittedAsyncFunction(); // On hold until one of previously started finalizes
+```
diff --git a/node_modules/ext/docs/string/random.md b/node_modules/ext/docs/string/random.md
new file mode 100644
index 0000000000000000000000000000000000000000..c3099e9c1b5c92f9c5ae4c5878a0550d08efaaac
--- /dev/null
+++ b/node_modules/ext/docs/string/random.md
@@ -0,0 +1,31 @@
+# `String.random(options = { ... })` _(ext/string/random)_
+
+Returns generated random string, contained only of ascii cars `a-z` and `0-1`.
+By default returns string of length `10`.
+
+```javascript
+const random = require("ext/string/random");
+
+random(); // "upcfns0i4t"
+random({ length: 3 }); // "5tw"
+```
+
+## Supported options:
+
+### `isUnique: false`
+
+Ensures generated string is unique among ones already returned.
+
+_Note: When not applying this setting, accidental generation of same string is still highly unlikely. Provided option is just to provide a mean to eliminate possibility of an edge case of duplicate string being returned_
+
+### `length: 10`
+
+Desired length of result string
+
+### `charset: null`
+
+Fixed list of possible characters
+
+```javascript
+random({ charset: "abc" }); // "bacbccbbac"
+```
diff --git a/node_modules/ext/docs/string_/camel-to-hyphen.md b/node_modules/ext/docs/string_/camel-to-hyphen.md
new file mode 100644
index 0000000000000000000000000000000000000000..e3e4c0391eae58c1d28609f02979c192a9520a29
--- /dev/null
+++ b/node_modules/ext/docs/string_/camel-to-hyphen.md
@@ -0,0 +1,9 @@
+# `string.camelToHyphen()` _(ext/string\_/camel-to-hyphen)_
+
+Convert camelCase string to hyphen separated, e.g. `oneTwoThree` into `one-to-three`. Useful when converting names from js property convention into filename convention.
+
+```javascript
+const camelToHyphen = require("ext/string_/camelToHyphen");
+
+camelToHyphen.call("razDwaTrzy"); // raz-dwa-trzy
+```
diff --git a/node_modules/ext/docs/string_/capitalize.md b/node_modules/ext/docs/string_/capitalize.md
new file mode 100644
index 0000000000000000000000000000000000000000..319e194e2cc81f9fbc845c3596b1defdef243591
--- /dev/null
+++ b/node_modules/ext/docs/string_/capitalize.md
@@ -0,0 +1,9 @@
+# `string.capitalize()` _(ext/string\_/capitalize)_
+
+Capitalize input string, e.g. convert `this is a test` into `This is a test`.
+
+```javascript
+const capitalize = require("ext/string_/capitalize");
+
+capitalize.call("this is a test"); // This is a test
+```
diff --git a/node_modules/ext/docs/string_/includes.md b/node_modules/ext/docs/string_/includes.md
new file mode 100644
index 0000000000000000000000000000000000000000..4fe1b5824d3047dccbbe2a10970addf9425c61fc
--- /dev/null
+++ b/node_modules/ext/docs/string_/includes.md
@@ -0,0 +1,10 @@
+# `string.includes(position = 0)` _(ext/string\_/includes)_
+
+`includes` method for strings. Resolve native [includes](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes) if implemented, otherwise fallback to shim implementation.
+
+```javascript
+const includes = require("ext/string_/includes");
+
+includes.call("razdwa", "raz"); // true
+includes.call("razdwa", "trzy"); // false
+```
diff --git a/node_modules/ext/docs/thenable_/finally.md b/node_modules/ext/docs/thenable_/finally.md
new file mode 100644
index 0000000000000000000000000000000000000000..978ce0c41a9b06502f35975df0139323ffa5af0a
--- /dev/null
+++ b/node_modules/ext/docs/thenable_/finally.md
@@ -0,0 +1,9 @@
+# `thenable.finally` _(ext/thenable\_/finally)_
+
+`finally` method for any _thenable_ input
+
+```javascript
+const finally = require("ext/thenable_/finally");
+
+finally.call(thenable, () => console.log("Thenable resolved"));
+```
diff --git a/node_modules/ext/function/identity.js b/node_modules/ext/function/identity.js
new file mode 100644
index 0000000000000000000000000000000000000000..cde213f86fec7eb614ed7cfa4f3ce64d78bc5802
--- /dev/null
+++ b/node_modules/ext/function/identity.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (value) { return value; };
diff --git a/node_modules/ext/global-this/implementation.js b/node_modules/ext/global-this/implementation.js
new file mode 100644
index 0000000000000000000000000000000000000000..6a06d52357f1b0d616fc9d0f4e1bd288d424879a
--- /dev/null
+++ b/node_modules/ext/global-this/implementation.js
@@ -0,0 +1,31 @@
+var naiveFallback = function () {
+ if (typeof self === "object" && self) return self;
+ if (typeof window === "object" && window) return window;
+ throw new Error("Unable to resolve global `this`");
+};
+
+module.exports = (function () {
+ if (this) return this;
+
+ // Unexpected strict mode (may happen if e.g. bundled into ESM module)
+
+ // Thanks @mathiasbynens -> https://mathiasbynens.be/notes/globalthis
+ // In all ES5+ engines global object inherits from Object.prototype
+ // (if you approached one that doesn't please report)
+ try {
+ Object.defineProperty(Object.prototype, "__global__", {
+ get: function () { return this; },
+ configurable: true
+ });
+ } catch (error) {
+ // Unfortunate case of Object.prototype being sealed (via preventExtensions, seal or freeze)
+ return naiveFallback();
+ }
+ try {
+ // Safari case (window.__global__ is resolved with global context, but __global__ does not)
+ if (!__global__) return naiveFallback();
+ return __global__;
+ } finally {
+ delete Object.prototype.__global__;
+ }
+})();
diff --git a/node_modules/ext/global-this/index.js b/node_modules/ext/global-this/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..8a99c25e50590dbdb29be27abae46818d8da01c3
--- /dev/null
+++ b/node_modules/ext/global-this/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? globalThis : require("./implementation");
diff --git a/node_modules/ext/global-this/is-implemented.js b/node_modules/ext/global-this/is-implemented.js
new file mode 100644
index 0000000000000000000000000000000000000000..3eae23e40daca5e784096d4be1102fe0f1d8d26f
--- /dev/null
+++ b/node_modules/ext/global-this/is-implemented.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = function () {
+ if (typeof globalThis !== "object") return false;
+ if (!globalThis) return false;
+ return globalThis.Array === Array;
+};
diff --git a/node_modules/ext/lib/private/decimal-adjust.js b/node_modules/ext/lib/private/decimal-adjust.js
new file mode 100644
index 0000000000000000000000000000000000000000..e04cde9c77177196152b1c7aeb610b90e5f8235d
--- /dev/null
+++ b/node_modules/ext/lib/private/decimal-adjust.js
@@ -0,0 +1,29 @@
+// Credit:
+// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/round
+// #Decimal_rounding
+
+"use strict";
+
+var isValue = require("type/object/is")
+ , ensureInteger = require("type/integer/ensure");
+
+var split = String.prototype.split;
+
+module.exports = function (type) {
+ return function (value/*, exp*/) {
+ value = Number(value);
+ var exp = arguments[1];
+ if (isValue(exp)) exp = ensureInteger(exp);
+ if (!value) return value;
+ if (!exp) return Math[type](value);
+ if (!isFinite(value)) return value;
+
+ // Shift
+ var tokens = split.call(value, "e");
+ value = Math[type](tokens[0] + "e" + ((tokens[1] || 0) - exp));
+
+ // Shift back
+ tokens = value.toString().split("e");
+ return Number(tokens[0] + "e" + (Number(tokens[1] || 0) + exp));
+ };
+};
diff --git a/node_modules/ext/lib/private/define-function-length.js b/node_modules/ext/lib/private/define-function-length.js
new file mode 100644
index 0000000000000000000000000000000000000000..4db3228f8007ee73a0bc13eb5d4abd4243eabb7e
--- /dev/null
+++ b/node_modules/ext/lib/private/define-function-length.js
@@ -0,0 +1,56 @@
+"use strict";
+
+var test = function (arg1, arg2) { return arg2; };
+
+try {
+ Object.defineProperty(test, "length", {
+ configurable: true,
+ writable: false,
+ enumerable: false,
+ value: 1
+ });
+}
+catch (ignore) {}
+
+if (test.length === 1) {
+ // ES2015+
+ var desc = { configurable: true, writable: false, enumerable: false };
+ module.exports = function (length, fn) {
+ if (fn.length === length) return fn;
+ desc.value = length;
+ return Object.defineProperty(fn, "length", desc);
+ };
+ return;
+}
+
+module.exports = function (length, fn) {
+ if (fn.length === length) return fn;
+ switch (length) {
+ case 0:
+ return function () { return fn.apply(this, arguments); };
+ case 1:
+ return function (ignored1) { return fn.apply(this, arguments); };
+ case 2:
+ return function (ignored1, ignored2) { return fn.apply(this, arguments); };
+ case 3:
+ return function (ignored1, ignored2, ignored3) { return fn.apply(this, arguments); };
+ case 4:
+ return function (ignored1, ignored2, ignored3, ignored4) {
+ return fn.apply(this, arguments);
+ };
+ case 5:
+ return function (ignored1, ignored2, ignored3, ignored4, ignored5) {
+ return fn.apply(this, arguments);
+ };
+ case 6:
+ return function (ignored1, ignored2, ignored3, ignored4, ignored5, ignored6) {
+ return fn.apply(this, arguments);
+ };
+ case 7:
+ return function (ignored1, ignored2, ignored3, ignored4, ignored5, ignored6, ignored7) {
+ return fn.apply(this, arguments);
+ };
+ default:
+ throw new Error("Usupported function length");
+ }
+};
diff --git a/node_modules/ext/math/ceil-10.js b/node_modules/ext/math/ceil-10.js
new file mode 100644
index 0000000000000000000000000000000000000000..c57a730b7e90e2d1cb56b9004248bc0e712a0bed
--- /dev/null
+++ b/node_modules/ext/math/ceil-10.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("../lib/private/decimal-adjust")("ceil");
diff --git a/node_modules/ext/math/floor-10.js b/node_modules/ext/math/floor-10.js
new file mode 100644
index 0000000000000000000000000000000000000000..27dd1aa42361153bbeaac7719c7acb121ec45e8e
--- /dev/null
+++ b/node_modules/ext/math/floor-10.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("../lib/private/decimal-adjust")("floor");
diff --git a/node_modules/ext/math/round-10.js b/node_modules/ext/math/round-10.js
new file mode 100644
index 0000000000000000000000000000000000000000..643d67667ff3f33665a95f8852037dd44dc56ef2
--- /dev/null
+++ b/node_modules/ext/math/round-10.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("../lib/private/decimal-adjust")("round");
diff --git a/node_modules/ext/object/clear.js b/node_modules/ext/object/clear.js
new file mode 100644
index 0000000000000000000000000000000000000000..be3be2b22f06a767e8722625b30963a2aa011439
--- /dev/null
+++ b/node_modules/ext/object/clear.js
@@ -0,0 +1,15 @@
+"use strict";
+
+var ensureObject = require("type/object/ensure")
+ , ensure = require("type/ensure");
+
+var objPropertyIsEnumerable = Object.prototype.propertyIsEnumerable;
+
+module.exports = function (object) {
+ ensure(["object", object, ensureObject]);
+ for (var key in object) {
+ if (!objPropertyIsEnumerable.call(object, key)) continue;
+ delete object[key];
+ }
+ return object;
+};
diff --git a/node_modules/ext/object/entries/implement.js b/node_modules/ext/object/entries/implement.js
new file mode 100644
index 0000000000000000000000000000000000000000..383ceeee0ba19c817bf74dbf430e4a5400c52969
--- /dev/null
+++ b/node_modules/ext/object/entries/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(Object, "entries", {
+ value: require("./implementation"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/ext/object/entries/implementation.js b/node_modules/ext/object/entries/implementation.js
new file mode 100644
index 0000000000000000000000000000000000000000..d6f121c731ca50216e9291aef3c10885031d4d81
--- /dev/null
+++ b/node_modules/ext/object/entries/implementation.js
@@ -0,0 +1,15 @@
+"use strict";
+
+var ensureValue = require("type/value/ensure");
+
+var objPropertyIsEnumerable = Object.prototype.propertyIsEnumerable;
+
+module.exports = function (object) {
+ object = Object(ensureValue(object));
+ var result = [];
+ for (var key in object) {
+ if (!objPropertyIsEnumerable.call(object, key)) continue;
+ result.push([key, object[key]]);
+ }
+ return result;
+};
diff --git a/node_modules/ext/object/entries/index.js b/node_modules/ext/object/entries/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..0a784d6848e95cc93f41700ddcb6afab26be30b4
--- /dev/null
+++ b/node_modules/ext/object/entries/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? Object.entries : require("./implementation");
diff --git a/node_modules/ext/object/entries/is-implemented.js b/node_modules/ext/object/entries/is-implemented.js
new file mode 100644
index 0000000000000000000000000000000000000000..aad52b2320bd6e00e7141d1c39c32d66f1164dd0
--- /dev/null
+++ b/node_modules/ext/object/entries/is-implemented.js
@@ -0,0 +1,6 @@
+"use strict";
+
+module.exports = function () {
+ try { return Object.entries({ foo: 12 })[0][0] === "foo"; }
+ catch (e) { return false; }
+};
diff --git a/node_modules/ext/package.json b/node_modules/ext/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..4bf9e125423036aa6dd952fee3ab7d779fedbefd
--- /dev/null
+++ b/node_modules/ext/package.json
@@ -0,0 +1,152 @@
+{
+ "name": "ext",
+ "version": "1.7.0",
+ "description": "JavaScript utilities with respect to emerging standard",
+ "author": "Mariusz Nowak (http://www.medikoo.com/)",
+ "keywords": [
+ "ecmascript",
+ "es",
+ "es6",
+ "extensions",
+ "ext",
+ "addons",
+ "lodash",
+ "extras",
+ "harmony",
+ "javascript",
+ "polyfill",
+ "shim",
+ "util",
+ "utils",
+ "utilities"
+ ],
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/medikoo/es5-ext#ext"
+ },
+ "dependencies": {
+ "type": "^2.7.2"
+ },
+ "devDependencies": {
+ "chai": "^4.3.6",
+ "eslint": "^8.23.0",
+ "eslint-config-medikoo": "^4.1.2",
+ "git-list-updated": "^1.2.1",
+ "github-release-from-cc-changelog": "^2.3.0",
+ "husky": "^4.3.8",
+ "lint-staged": "^13.0.3",
+ "mocha": "^6.2.3",
+ "nyc": "^15.1.0",
+ "prettier-elastic": "^2.2.1",
+ "sinon": "^8.1.1",
+ "timers-ext": "^0.1.7"
+ },
+ "husky": {
+ "hooks": {
+ "pre-commit": "lint-staged"
+ }
+ },
+ "lint-staged": {
+ "*.js": [
+ "eslint"
+ ],
+ "*.{css,html,js,json,md,yaml,yml}": [
+ "prettier -c"
+ ]
+ },
+ "eslintIgnore": [
+ "_es5-ext"
+ ],
+ "eslintConfig": {
+ "extends": "medikoo/es3",
+ "root": true,
+ "overrides": [
+ {
+ "files": "global-this/implementation.js",
+ "globals": {
+ "__global__": true,
+ "self": true,
+ "window": true
+ },
+ "rules": {
+ "no-extend-native": "off",
+ "strict": "off"
+ }
+ },
+ {
+ "files": [
+ "global-this/is-implemented.js",
+ "global-this/index.js"
+ ],
+ "globals": {
+ "globalThis": true
+ }
+ },
+ {
+ "files": "string_/camel-to-hyphen.js",
+ "rules": {
+ "id-length": "off"
+ }
+ },
+ {
+ "files": "test/**/*.js",
+ "env": {
+ "mocha": true
+ }
+ },
+ {
+ "files": [
+ "test/promise/limit.js",
+ "test/thenable_/finally.js"
+ ],
+ "globals": {
+ "Promise": true
+ }
+ }
+ ]
+ },
+ "prettier": {
+ "printWidth": 100,
+ "tabWidth": 4,
+ "overrides": [
+ {
+ "files": [
+ "*.md",
+ "*.yml"
+ ],
+ "options": {
+ "tabWidth": 2
+ }
+ }
+ ]
+ },
+ "mocha": {
+ "recursive": true
+ },
+ "nyc": {
+ "all": true,
+ "exclude": [
+ ".github",
+ "_es5-ext",
+ "coverage/**",
+ "test/**",
+ "*.config.js"
+ ],
+ "reporter": [
+ "lcov",
+ "html",
+ "text-summary"
+ ]
+ },
+ "scripts": {
+ "coverage": "nyc npm test",
+ "lint": "eslint .",
+ "lint:updated": "pipe-git-updated --ext=js -- eslint --ignore-pattern '!*'",
+ "prettier-check": "prettier -c --ignore-path .gitignore \"**/*.{css,html,js,json,md,yaml,yml}\"",
+ "prettier-check:updated": "pipe-git-updated --ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier -c",
+ "prettify": "prettier --write --ignore-path .gitignore '**/*.{css,html,js,json,md,yaml,yml}'",
+ "prettify:updated": "pipe-git-updated ---base=main -ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier --write",
+ "test": "mocha"
+ },
+ "license": "ISC"
+}
diff --git a/node_modules/ext/promise/limit.js b/node_modules/ext/promise/limit.js
new file mode 100644
index 0000000000000000000000000000000000000000..841afadb10d112e88748d064d59900f9cbf085a8
--- /dev/null
+++ b/node_modules/ext/promise/limit.js
@@ -0,0 +1,62 @@
+"use strict";
+
+var ensureNaturalNumber = require("type/natural-number/ensure")
+ , ensurePlainFunction = require("type/plain-function/ensure")
+ , ensure = require("type/ensure")
+ , defineFunctionLength = require("../lib/private/define-function-length");
+
+module.exports = function (limit, callback) {
+ limit = ensure(
+ ["limit", limit, ensureNaturalNumber, { min: 1 }],
+ ["callback", callback, ensurePlainFunction]
+ )[0];
+
+ var Promise = this, ongoingCount = 0, pending = [];
+ var onSuccess, onFailure;
+
+ var release = function () {
+ --ongoingCount;
+ if (ongoingCount >= limit) return;
+ var next = pending.shift();
+ if (!next) return;
+ ++ongoingCount;
+ try {
+ next.resolve(
+ Promise.resolve(callback.apply(next.context, next.arguments)).then(
+ onSuccess, onFailure
+ )
+ );
+ } catch (exception) {
+ release();
+ next.reject(exception);
+ }
+ };
+
+ onSuccess = function (value) {
+ release();
+ return value;
+ };
+
+ onFailure = function (exception) {
+ release();
+ throw exception;
+ };
+
+ return defineFunctionLength(callback.length, function () {
+ if (ongoingCount >= limit) {
+ var context = this, args = arguments;
+ return new Promise(function (resolve, reject) {
+ pending.push({
+ context: context,
+ arguments: args,
+ resolve: resolve,
+ reject: reject
+ });
+ });
+ }
+ ++ongoingCount;
+ try {
+ return Promise.resolve(callback.apply(this, arguments)).then(onSuccess, onFailure);
+ } catch (exception) { return onFailure(exception); }
+ });
+};
diff --git a/node_modules/ext/string/random.js b/node_modules/ext/string/random.js
new file mode 100644
index 0000000000000000000000000000000000000000..c96ef921fec82e32f107b8fe378493df56e4a4d9
--- /dev/null
+++ b/node_modules/ext/string/random.js
@@ -0,0 +1,50 @@
+"use strict";
+
+var isObject = require("type/object/is")
+ , ensureNaturalNumber = require("type/natural-number/ensure")
+ , ensureString = require("type/string/ensure");
+
+var generated = Object.create(null), random = Math.random, uniqTryLimit = 100;
+
+var getChunk = function () { return random().toString(36).slice(2); };
+
+var getString = function (length, charset) {
+ var str;
+ if (charset) {
+ var charsetLength = charset.length;
+ str = "";
+ for (var i = 0; i < length; ++i) {
+ str += charset.charAt(Math.floor(Math.random() * charsetLength));
+ }
+ return str;
+ }
+ str = getChunk();
+ if (length === null) return str;
+ while (str.length < length) str += getChunk();
+ return str.slice(0, length);
+};
+
+module.exports = function (/* options */) {
+ var options = arguments[0];
+ if (!isObject(options)) options = {};
+ var length = ensureNaturalNumber(options.length, { "default": 10 })
+ , isUnique = options.isUnique
+ , charset = ensureString(options.charset, { isOptional: true });
+
+ var str = getString(length, charset);
+ if (isUnique) {
+ var count = 0;
+ while (generated[str]) {
+ if (++count === uniqTryLimit) {
+ throw new Error(
+ "Cannot generate random string.\n" +
+ "String.random is not designed to effectively generate many short and " +
+ "unique random strings"
+ );
+ }
+ str = getString(length);
+ }
+ generated[str] = true;
+ }
+ return str;
+};
diff --git a/node_modules/ext/string_/camel-to-hyphen.js b/node_modules/ext/string_/camel-to-hyphen.js
new file mode 100644
index 0000000000000000000000000000000000000000..feffae67b30b98959982c8059da6a1ba3ed9f65b
--- /dev/null
+++ b/node_modules/ext/string_/camel-to-hyphen.js
@@ -0,0 +1,49 @@
+"use strict";
+
+var ensureString = require("type/string/ensure")
+ , objHasOwnProperty = Object.prototype.hasOwnProperty;
+
+var capitalLetters = {
+ A: true,
+ B: true,
+ C: true,
+ D: true,
+ E: true,
+ F: true,
+ G: true,
+ H: true,
+ I: true,
+ J: true,
+ K: true,
+ L: true,
+ M: true,
+ N: true,
+ O: true,
+ P: true,
+ Q: true,
+ R: true,
+ S: true,
+ T: true,
+ U: true,
+ V: true,
+ W: true,
+ X: true,
+ Y: true,
+ Z: true
+};
+
+module.exports = function () {
+ var input = ensureString(this);
+ if (!input) return input;
+ var outputLetters = [];
+ for (var index = 0, letter; (letter = input[index]); ++index) {
+ if (objHasOwnProperty.call(capitalLetters, letter)) {
+ if (index) outputLetters.push("-");
+ outputLetters.push(letter.toLowerCase());
+ } else {
+ outputLetters.push(letter);
+ }
+ }
+
+ return outputLetters.join("");
+};
diff --git a/node_modules/ext/string_/capitalize.js b/node_modules/ext/string_/capitalize.js
new file mode 100644
index 0000000000000000000000000000000000000000..bc76311e148f4943955f5a8c90a3bc33b4728bb8
--- /dev/null
+++ b/node_modules/ext/string_/capitalize.js
@@ -0,0 +1,9 @@
+"use strict";
+
+var ensureString = require("type/string/ensure");
+
+module.exports = function () {
+ var input = ensureString(this);
+ if (!input) return input;
+ return input.charAt(0).toUpperCase() + input.slice(1);
+};
diff --git a/node_modules/ext/string_/includes/implementation.js b/node_modules/ext/string_/includes/implementation.js
new file mode 100644
index 0000000000000000000000000000000000000000..a7219f2e9d662033c3d4db87fd743a77b96b71f2
--- /dev/null
+++ b/node_modules/ext/string_/includes/implementation.js
@@ -0,0 +1,7 @@
+"use strict";
+
+var indexOf = String.prototype.indexOf;
+
+module.exports = function (searchString/*, position*/) {
+ return indexOf.call(this, searchString, arguments[1]) > -1;
+};
diff --git a/node_modules/ext/string_/includes/index.js b/node_modules/ext/string_/includes/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..ee4e28442bb72bac5bb6d53a67a794a89c5ca5ed
--- /dev/null
+++ b/node_modules/ext/string_/includes/index.js
@@ -0,0 +1,5 @@
+"use strict";
+
+module.exports = require("./is-implemented")()
+ ? String.prototype.includes
+ : require("./implementation");
diff --git a/node_modules/ext/string_/includes/is-implemented.js b/node_modules/ext/string_/includes/is-implemented.js
new file mode 100644
index 0000000000000000000000000000000000000000..edc45158a821bf48a41e0bc723e8721c0738e1a1
--- /dev/null
+++ b/node_modules/ext/string_/includes/is-implemented.js
@@ -0,0 +1,8 @@
+"use strict";
+
+var str = "razdwatrzy";
+
+module.exports = function () {
+ if (typeof str.includes !== "function") return false;
+ return str.includes("dwa") === true && str.includes("foo") === false;
+};
diff --git a/node_modules/ext/thenable_/finally.js b/node_modules/ext/thenable_/finally.js
new file mode 100644
index 0000000000000000000000000000000000000000..42274bf6e3c0e1400cd7daec58309a3792fb3cd9
--- /dev/null
+++ b/node_modules/ext/thenable_/finally.js
@@ -0,0 +1,24 @@
+"use strict";
+
+var ensurePlainFunction = require("type/plain-function/ensure")
+ , isThenable = require("type/thenable/is")
+ , ensureThenable = require("type/thenable/ensure");
+
+var resolveCallback = function (callback, next) {
+ var callbackResult = callback();
+ if (!isThenable(callbackResult)) return next();
+ return callbackResult.then(next);
+};
+
+module.exports = function (callback) {
+ ensureThenable(this);
+ ensurePlainFunction(callback);
+ return this.then(
+ function (result) {
+ return resolveCallback(callback, function () { return result; });
+ },
+ function (error) {
+ return resolveCallback(callback, function () { throw error; });
+ }
+ );
+};
diff --git a/node_modules/falafel/.github/workflows/ci.yml b/node_modules/falafel/.github/workflows/ci.yml
new file mode 100644
index 0000000000000000000000000000000000000000..2ce1c8266db90b53abba55ffdb9d924bf7fbb5a7
--- /dev/null
+++ b/node_modules/falafel/.github/workflows/ci.yml
@@ -0,0 +1,42 @@
+name: Node CI
+
+on: [push, pull_request]
+
+jobs:
+ test:
+ runs-on: ubuntu-latest
+
+ strategy:
+ matrix:
+ node-version:
+ - '0.8'
+ - '0.10'
+ - '0.12'
+ - '4.x'
+ - '6.x'
+ - '8.x'
+ - '10.x'
+ - '12.x'
+ - '14.x'
+ - '16.x'
+ - '17.x'
+ - '18.x'
+
+ steps:
+ - uses: actions/checkout@v3
+ - name: Use Node.js ${{ matrix.node-version }}
+ uses: actions/setup-node@v3
+ with:
+ node-version: ${{ matrix.node-version }}
+ - run: npm install
+ if: matrix.node-version != '0.8'
+ - name: Run npm install for Node.js 0.8
+ run: |
+ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
+ . "$HOME/.nvm/nvm.sh"
+ nvm install-latest-npm
+ npm install
+ env:
+ NPM_CONFIG_STRICT_SSL: 'false'
+ if: matrix.node-version == '0.8'
+ - run: npm test
diff --git a/node_modules/falafel/LICENSE b/node_modules/falafel/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..ff4fce28af33a4504d6960856a0bd603860a62e0
--- /dev/null
+++ b/node_modules/falafel/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2012 James Halliday
+
+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.
diff --git a/node_modules/falafel/example/array.js b/node_modules/falafel/example/array.js
new file mode 100644
index 0000000000000000000000000000000000000000..c805d5192ff3c18a57a6fa4174c35be4e4c03ea0
--- /dev/null
+++ b/node_modules/falafel/example/array.js
@@ -0,0 +1,14 @@
+var falafel = require('../');
+
+var src = '(' + function () {
+ var xs = [ 1, 2, [ 3, 4 ] ];
+ var ys = [ 5, 6 ];
+ console.dir([ xs, ys ]);
+} + ')()';
+
+var output = falafel(src, function (node) {
+ if (node.type === 'ArrayExpression') {
+ node.update('fn(' + node.source() + ')');
+ }
+});
+console.log(output);
diff --git a/node_modules/falafel/example/keyword.js b/node_modules/falafel/example/keyword.js
new file mode 100644
index 0000000000000000000000000000000000000000..b7cdd4a5446c34f3b5da09a463b8b17653cb30d5
--- /dev/null
+++ b/node_modules/falafel/example/keyword.js
@@ -0,0 +1,16 @@
+var falafel = require('../');
+var src = 'console.log(beep "boop", "BOOP");';
+
+function isKeyword (id) {
+ if (id === 'beep') return true;
+}
+
+var output = falafel(src, { isKeyword: isKeyword }, function (node) {
+ if (node.type === 'UnaryExpression'
+ && node.operator === 'beep') {
+ node.update(
+ 'String(' + node.argument.source() + ').toUpperCase()'
+ );
+ }
+});
+console.log(output);
diff --git a/node_modules/falafel/example/prompt.js b/node_modules/falafel/example/prompt.js
new file mode 100644
index 0000000000000000000000000000000000000000..49dfa0d168583b49b9318615218c2834421c7438
--- /dev/null
+++ b/node_modules/falafel/example/prompt.js
@@ -0,0 +1,49 @@
+var falafel = require('../');
+var vm = require('vm');
+
+var termExps = [
+ 'Identifier',
+ 'CallExpression',
+ 'BinaryExpression',
+ 'UpdateExpression',
+ 'UnaryExpression'
+].reduce(function (acc, key) { acc[key] = true; return acc }, {});
+
+function terminated (node) {
+ for (var p = node; p.parent; p = p.parent) {
+ if (termExps[p.type]) return true;
+ }
+ return false;
+}
+
+var src = '{"a":[2,~9,prompt(":d")],"b":4,"c":prompt("beep"),"d":6}';
+
+var offsets = [];
+var output = falafel('(' + src + ')', function (node) {
+ var isLeaf = node.parent
+ && !terminated(node.parent) && terminated(node)
+ ;
+
+ if (isLeaf) {
+ var s = node.source();
+ var prompted = false;
+ var res = vm.runInNewContext('(' + s + ')', {
+ prompt : function (x) {
+ setTimeout(function () {
+ node.update(x.toUpperCase());
+ }, Math.random() * 50);
+ prompted = true;
+ }
+ });
+ if (!prompted) {
+ var s_ = JSON.stringify(res);
+ node.update(s_);
+ }
+ }
+});
+
+setTimeout(function () {
+ console.log(src);
+ console.log('---');
+ console.log(output);
+}, 200);
diff --git a/node_modules/falafel/falafel.png b/node_modules/falafel/falafel.png
new file mode 100644
index 0000000000000000000000000000000000000000..dbd696f95f06d173673af99b14c9aac95658be7c
Binary files /dev/null and b/node_modules/falafel/falafel.png differ
diff --git a/node_modules/falafel/index.js b/node_modules/falafel/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..63e66261a7b156488320aeabbc4274148836a457
--- /dev/null
+++ b/node_modules/falafel/index.js
@@ -0,0 +1,85 @@
+var acorn = require('acorn');
+var isArray = require('isarray');
+var util = require('util');
+
+module.exports = function (src, opts, fn) {
+ if (typeof opts === 'function') {
+ fn = opts;
+ opts = {};
+ }
+ if (src && typeof src === 'object' && src.constructor.name === 'Buffer') {
+ src = src.toString();
+ }
+ else if (src && typeof src === 'object') {
+ opts = src;
+ src = opts.source;
+ delete opts.source;
+ }
+ src = src === undefined ? opts.source : src;
+ if (typeof src !== 'string') src = String(src);
+ var parser = opts.parser || acorn;
+ var ast = parser.parse(src, opts);
+
+ var result = {
+ chunks : src.split(''),
+ toString : function () { return result.chunks.join('') },
+ inspect : function () { return result.toString() }
+ };
+ if (util.inspect.custom) {
+ result[util.inspect.custom] = result.toString;
+ }
+ var index = 0;
+
+ (function walk (node, parent) {
+ insertHelpers(node, parent, result.chunks);
+
+ for (var key in node) {
+ if (key === 'parent' || !Object.prototype.hasOwnProperty.call(node, key)) {
+ continue;
+ }
+
+ var child = node[key];
+ if (isArray(child)) {
+ for (var i = 0; i < child.length; i += 1) {
+ if (child[i] && typeof child[i].type === 'string') {
+ walk(child[i], node);
+ }
+ }
+ }
+ else if (child && typeof child.type === 'string') {
+ walk(child, node);
+ }
+ }
+ fn(node);
+ })(ast, undefined);
+
+ return result;
+};
+
+function insertHelpers (node, parent, chunks) {
+ node.parent = parent;
+
+ node.source = function () {
+ return chunks.slice(node.start, node.end).join('');
+ };
+
+ if (node.update && typeof node.update === 'object') {
+ var prev = node.update;
+ for (var key in prev) {
+ if (Object.prototype.hasOwnProperty.call(prev, key)) {
+ update[key] = prev[key];
+ }
+ }
+ node.update = update;
+ }
+ else {
+ node.update = update;
+ }
+
+ function update (s) {
+ chunks[node.start] = s;
+ for (var i = node.start + 1; i < node.end; i++) {
+ chunks[i] = '';
+ }
+ }
+}
diff --git a/node_modules/falafel/package.json b/node_modules/falafel/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..cb3fb15a9e92170195eef636bc22b364eb888a49
--- /dev/null
+++ b/node_modules/falafel/package.json
@@ -0,0 +1,71 @@
+{
+ "name": "falafel",
+ "description": "transform the ast on a recursive walk",
+ "version": "2.2.5",
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/substack/node-falafel.git"
+ },
+ "main": "index.js",
+ "keywords": [
+ "ast",
+ "burrito",
+ "source",
+ "syntax",
+ "traversal",
+ "tree"
+ ],
+ "directories": {
+ "example": "example",
+ "test": "test"
+ },
+ "scripts": {
+ "coverage": "covert test/*.js",
+ "test": "node --harmony test/bin/run.js test/*.js"
+ },
+ "dependencies": {
+ "acorn": "^7.1.1",
+ "isarray": "^2.0.1"
+ },
+ "devDependencies": {
+ "acorn-jsx": "^5.2.0",
+ "covert": "^1.1.0",
+ "glob": "^6.0.4",
+ "safe-buffer": "^5.2.0",
+ "semver": "^6.0.0",
+ "tape": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=0.4.0"
+ },
+ "license": "MIT",
+ "author": {
+ "email": "mail@substack.net",
+ "name": "James Halliday",
+ "url": "http://substack.net"
+ },
+ "testling": {
+ "browsers": {
+ "chrome": [
+ "20.0"
+ ],
+ "firefox": [
+ "10.0",
+ "15.0"
+ ],
+ "iexplore": [
+ "6.0",
+ "7.0",
+ "8.0",
+ "9.0"
+ ],
+ "opera": [
+ "12.0"
+ ],
+ "safari": [
+ "5.1"
+ ]
+ },
+ "files": "test/*.js"
+ }
+}
diff --git a/node_modules/falafel/readme.markdown b/node_modules/falafel/readme.markdown
new file mode 100644
index 0000000000000000000000000000000000000000..90526799d6faeef9eaf99dd71ab2d6e47856be36
--- /dev/null
+++ b/node_modules/falafel/readme.markdown
@@ -0,0 +1,122 @@
+# falafel
+
+Transform the [ast](http://en.wikipedia.org/wiki/Abstract_syntax_tree) on a
+recursive walk.
+
+[](http://ci.testling.com/substack/node-falafel)
+
+[](https://github.com/substack/node-falafel/actions)
+
+This modules uses [acorn](https://npmjs.org/package/acorn) to create an AST from
+source code.
+
+
+
+# example
+
+## array.js
+
+Put a function wrapper around all array literals.
+
+``` js
+var falafel = require('falafel');
+
+var src = '(' + function () {
+ var xs = [ 1, 2, [ 3, 4 ] ];
+ var ys = [ 5, 6 ];
+ console.dir([ xs, ys ]);
+} + ')()';
+
+var output = falafel(src, function (node) {
+ if (node.type === 'ArrayExpression') {
+ node.update('fn(' + node.source() + ')');
+ }
+});
+console.log(output);
+```
+
+output:
+
+```
+(function () {
+ var xs = fn([ 1, 2, fn([ 3, 4 ]) ]);
+ var ys = fn([ 5, 6 ]);
+ console.dir(fn([ xs, ys ]));
+})()
+```
+
+# methods
+
+``` js
+var falafel = require('falafel')
+```
+
+## falafel(src, opts={}, fn)
+
+Transform the string source `src` with the function `fn`, returning a
+string-like transformed output object.
+
+For every node in the ast, `fn(node)` fires. The recursive walk is a
+post-order traversal, so children get called before their parents.
+
+Performing a post-order traversal makes it easier to write nested transforms since
+transforming parents often requires transforming all its children first.
+
+The return value is string-like (it defines `.toString()` and `.inspect()`) so
+that you can call `node.update()` asynchronously after the function has
+returned and still capture the output.
+
+Instead of passing a `src` you can also use `opts.source`.
+
+All of the `opts` will be passed directly to
+[acorn](https://npmjs.org/package/acorn).
+
+## custom parser
+
+You may pass in an instance of acorn to the opts as `opts.parser` to use that
+version instead of the version of acorn packaged with this library.
+
+```js
+var acorn = require('acorn-jsx');
+
+falafel(src, {parser: acorn, plugins: { jsx: true }}, function(node) {
+ // this will parse jsx
+});
+```
+
+# nodes
+
+Aside from the regular [acorn](https://npmjs.org/package/acorn) data, you can also call
+some inserted methods on nodes.
+
+Aside from updating the current node, you can also reach into sub-nodes to call
+update functions on children from parent nodes.
+
+## node.source()
+
+Return the source for the given node, including any modifications made to
+children nodes.
+
+## node.update(s)
+
+Transform the source for the present node to the string `s`.
+
+Note that in `'ForStatement'` node types, there is an existing subnode called
+`update`. For those nodes all the properties are copied over onto the
+`node.update()` function.
+
+## node.parent
+
+Reference to the parent element or `null` at the root element.
+
+# install
+
+With [npm](http://npmjs.org) do:
+
+```
+npm install falafel
+```
+
+# license
+
+MIT
diff --git a/node_modules/falafel/test/array.js b/node_modules/falafel/test/array.js
new file mode 100644
index 0000000000000000000000000000000000000000..3680cab80cba709089892b2a0589a623a6e8a7b8
--- /dev/null
+++ b/node_modules/falafel/test/array.js
@@ -0,0 +1,35 @@
+var falafel = require('../');
+var test = require('tape');
+
+test('array', function (t) {
+ t.plan(5);
+
+ var src = '(' + function () {
+ var xs = [ 1, 2, [ 3, 4 ] ];
+ var ys = [ 5, 6 ];
+ g([ xs, ys ]);
+ } + ')()';
+
+ var output = falafel(src, function (node) {
+ if (node.type === 'ArrayExpression') {
+ node.update('fn(' + node.source() + ')');
+ }
+ });
+
+ var arrays = [
+ [ 3, 4 ],
+ [ 1, 2, [ 3, 4 ] ],
+ [ 5, 6 ],
+ [ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ],
+ ];
+
+ Function(['fn','g'], output)(
+ function (xs) {
+ t.same(arrays.shift(), xs);
+ return xs;
+ },
+ function (xs) {
+ t.same(xs, [ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ]);
+ }
+ );
+});
diff --git a/node_modules/falafel/test/async.js b/node_modules/falafel/test/async.js
new file mode 100644
index 0000000000000000000000000000000000000000..b670a3c27e6d55e4447571faf6d5fd79397670fb
--- /dev/null
+++ b/node_modules/falafel/test/async.js
@@ -0,0 +1,42 @@
+var falafel = require('../');
+var test = require('tape');
+
+test('async', function (t) {
+ t.plan(5);
+
+ var src = '(function () {'
+ + 'var xs = [ 1, 2, [ 3, 4 ] ];'
+ + 'var ys = [ 5, 6 ];'
+ + 'g([ xs, ys ]);'
+ + '})()';
+
+ var pending = 0;
+ var output = falafel(src, function (node) {
+ if (node.type === 'ArrayExpression') {
+ pending ++;
+ setTimeout(function () {
+ node.update('fn(' + node.source() + ')');
+ if (--pending === 0) check();
+ }, 50 * pending * 2);
+ }
+ });
+
+ var arrays = [
+ [ 3, 4 ],
+ [ 1, 2, [ 3, 4 ] ],
+ [ 5, 6 ],
+ [ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ],
+ ];
+
+ function check () {
+ Function([ 'fn', 'g' ], output)(
+ function (xs) {
+ t.same(arrays.shift(), xs);
+ return xs;
+ },
+ function (xs) {
+ t.same(xs, [ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ]);
+ }
+ );
+ }
+});
diff --git a/node_modules/falafel/test/bin/run.js b/node_modules/falafel/test/bin/run.js
new file mode 100644
index 0000000000000000000000000000000000000000..a2dc34b0bf1b6b962ff770d0937b467a382c01b1
--- /dev/null
+++ b/node_modules/falafel/test/bin/run.js
@@ -0,0 +1,10 @@
+var path = require('path');
+var glob = require('glob');
+
+for (var i = 2; i < process.argv.length; i++) {
+ glob(process.argv[i], function (er, files) {
+ files.forEach(function (file) {
+ require(path.resolve(process.cwd(), file));
+ });
+ });
+}
diff --git a/node_modules/falafel/test/custom-parser.js b/node_modules/falafel/test/custom-parser.js
new file mode 100644
index 0000000000000000000000000000000000000000..5034eda5774059d4fa9bde399de83896bbf4a5fe
--- /dev/null
+++ b/node_modules/falafel/test/custom-parser.js
@@ -0,0 +1,46 @@
+var falafel = require('../');
+var test = require('tape');
+var semver = require('semver');
+
+// acorn-jsx requires node 4
+test('custom parser', { skip: semver.satisfies(process.version, '< 4.0.0') },function (t) {
+ var acorn = require('acorn');
+ var jsx = require('acorn-jsx');
+ var acornWithJsx = acorn.Parser.extend(jsx());
+
+ var src = '(function() { var f = {a: "b"}; var a = ; })()';
+
+ var nodeTypes = [
+ 'Identifier',
+ 'Identifier',
+ 'Literal',
+ 'Property',
+ 'ObjectExpression',
+ 'VariableDeclarator',
+ 'VariableDeclaration',
+ 'Identifier',
+ 'Identifier',
+ 'JSXSpreadAttribute',
+ 'JSXIdentifier',
+ 'Literal',
+ 'JSXAttribute',
+ 'JSXIdentifier',
+ 'JSXOpeningElement',
+ 'JSXIdentifier',
+ 'JSXClosingElement',
+ 'JSXElement',
+ 'VariableDeclarator',
+ 'VariableDeclaration',
+ 'BlockStatement',
+ 'FunctionExpression',
+ 'CallExpression',
+ 'ExpressionStatement',
+ 'Program'
+ ];
+
+ t.plan(nodeTypes.length);
+
+ var output = falafel(src, {parser: acornWithJsx, ecmaVersion: 6, plugins: { jsx: true }}, function(node) {
+ t.equal(node.type, nodeTypes.shift());
+ });
+});
diff --git a/node_modules/falafel/test/es6.js b/node_modules/falafel/test/es6.js
new file mode 100644
index 0000000000000000000000000000000000000000..b5aafe858eacfb58a5cf5fbb6108d28a52333a14
--- /dev/null
+++ b/node_modules/falafel/test/es6.js
@@ -0,0 +1,17 @@
+var falafel = require('../');
+var test = require('tape');
+var semver = require('semver');
+
+// it runs the generator so needs node 4+
+test('generators', { skip: semver.satisfies(process.version, '< 4.0.0') }, function (t) {
+ t.plan(1);
+
+ var src = 'console.log((function * () { yield 3 })().next().value)';
+ var output = falafel(src, { ecmaVersion: 6 }, function (node) {
+ if (node.type === 'Literal') {
+ node.update('555');
+ }
+ });
+ Function(['console'],output)({log:log});
+ function log (n) { t.equal(n, 555) }
+});
diff --git a/node_modules/falafel/test/for.js b/node_modules/falafel/test/for.js
new file mode 100644
index 0000000000000000000000000000000000000000..43392be7c9eba526f854b77b32c1bfcdfee59c05
--- /dev/null
+++ b/node_modules/falafel/test/for.js
@@ -0,0 +1,30 @@
+var falafel = require('../');
+var test = require('tape');
+
+test('for loop', function (t) {
+ t.plan(7);
+
+ var src = '(function () {'
+ + 'var sum = 0;'
+ + 'for (var i = 0; i < 10; i++)'
+ + 'sum += i;'
+ + 'if (true)'
+ + 'for (var i = 0; i < 10; i++)'
+ + 'sum += i;'
+ + 'return sum;'
+ + '})()';
+
+ var output = falafel(src, function (node) {
+ if (node.type === 'ForStatement') {
+ t.equal(node.update.source(), 'i++');
+ t.equal(node.update.type, "UpdateExpression");
+ node.update.update('i+=2');
+ }
+ if (node.type === 'UpdateExpression') {
+ t.equal(node.source(), 'i++');
+ }
+ });
+
+ var res = Function('return ' + output)();
+ t.equal(res, 2 + 4 + 6 + 8 + 2 + 4 + 6 + 8);
+});
diff --git a/node_modules/falafel/test/inspect.js b/node_modules/falafel/test/inspect.js
new file mode 100644
index 0000000000000000000000000000000000000000..defe98afafde13b8ef6fd72fa4dce6246f562bf9
--- /dev/null
+++ b/node_modules/falafel/test/inspect.js
@@ -0,0 +1,38 @@
+var falafel = require('../');
+var test = require('tape');
+var util = require('util');
+
+test('inspect', function (t) {
+ t.plan(7);
+
+ var src = '(function () {'
+ + 'var xs = [ 1, 2, [ 3, 4 ] ];'
+ + 'var ys = [ 5, 6 ];'
+ + 'g([ xs, ys ]);'
+ + '})()';
+
+ var output = falafel(src, function (node) {
+ if (node.type === 'ArrayExpression') {
+ node.update('fn(' + node.source() + ')');
+ }
+ });
+ t.equal(output.inspect(), output.toString());
+ t.equal(util.inspect(output), output.toString());
+
+ var arrays = [
+ [ 3, 4 ],
+ [ 1, 2, [ 3, 4 ] ],
+ [ 5, 6 ],
+ [ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ],
+ ];
+
+ Function(['fn','g'], output)(
+ function (xs) {
+ t.same(arrays.shift(), xs);
+ return xs;
+ },
+ function (xs) {
+ t.same(xs, [ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ]);
+ }
+ );
+});
diff --git a/node_modules/falafel/test/opts.js b/node_modules/falafel/test/opts.js
new file mode 100644
index 0000000000000000000000000000000000000000..96a8f1d7f27f215934ca6194df27afc331ddc0bb
--- /dev/null
+++ b/node_modules/falafel/test/opts.js
@@ -0,0 +1,135 @@
+var falafel = require('../');
+var Buffer = require('safe-buffer').Buffer;
+var test = require('tape');
+
+test('first opts arg', function (t) {
+ t.plan(5);
+
+ var src = '(function () {'
+ + 'var xs = [ 1, 2, [ 3, 4 ] ];'
+ + 'var ys = [ 5, 6 ];'
+ + 'g([ xs, ys ]);'
+ + '})()';
+
+ var output = falafel({ source: src }, function (node) {
+ if (node.type === 'ArrayExpression') {
+ node.update('fn(' + node.source() + ')');
+ }
+ });
+
+ var arrays = [
+ [ 3, 4 ],
+ [ 1, 2, [ 3, 4 ] ],
+ [ 5, 6 ],
+ [ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ],
+ ];
+
+ Function(['fn','g'], output)(
+ function (xs) {
+ t.same(arrays.shift(), xs);
+ return xs;
+ },
+ function (xs) {
+ t.same(xs, [ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ]);
+ }
+ );
+});
+
+test('opts.source', function (t) {
+ t.plan(5);
+
+ var src = '(function () {'
+ + 'var xs = [ 1, 2, [ 3, 4 ] ];'
+ + 'var ys = [ 5, 6 ];'
+ + 'g([ xs, ys ]);'
+ + '})()';
+
+ var output = falafel(undefined, { source: src }, function (node) {
+ if (node.type === 'ArrayExpression') {
+ node.update('fn(' + node.source() + ')');
+ }
+ });
+
+ var arrays = [
+ [ 3, 4 ],
+ [ 1, 2, [ 3, 4 ] ],
+ [ 5, 6 ],
+ [ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ],
+ ];
+
+ Function(['fn','g'], output)(
+ function (xs) {
+ t.same(arrays.shift(), xs);
+ return xs;
+ },
+ function (xs) {
+ t.same(xs, [ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ]);
+ }
+ );
+});
+
+test('Buffer opts.source', function (t) {
+ t.plan(5);
+
+ var src = Buffer.from('(function () {'
+ + 'var xs = [ 1, 2, [ 3, 4 ] ];'
+ + 'var ys = [ 5, 6 ];'
+ + 'g([ xs, ys ]);'
+ + '})()');
+
+ var output = falafel({ source: src }, function (node) {
+ if (node.type === 'ArrayExpression') {
+ node.update('fn(' + node.source() + ')');
+ }
+ });
+
+ var arrays = [
+ [ 3, 4 ],
+ [ 1, 2, [ 3, 4 ] ],
+ [ 5, 6 ],
+ [ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ],
+ ];
+
+ Function(['fn','g'], output)(
+ function (xs) {
+ t.same(arrays.shift(), xs);
+ return xs;
+ },
+ function (xs) {
+ t.same(xs, [ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ]);
+ }
+ );
+});
+
+test('Buffer source', function (t) {
+ t.plan(5);
+
+ var src = Buffer.from('(function () {'
+ + 'var xs = [ 1, 2, [ 3, 4 ] ];'
+ + 'var ys = [ 5, 6 ];'
+ + 'g([ xs, ys ]);'
+ + '})()');
+
+ var output = falafel(src, function (node) {
+ if (node.type === 'ArrayExpression') {
+ node.update('fn(' + node.source() + ')');
+ }
+ });
+
+ var arrays = [
+ [ 3, 4 ],
+ [ 1, 2, [ 3, 4 ] ],
+ [ 5, 6 ],
+ [ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ],
+ ];
+
+ Function(['fn','g'], output)(
+ function (xs) {
+ t.same(arrays.shift(), xs);
+ return xs;
+ },
+ function (xs) {
+ t.same(xs, [ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ]);
+ }
+ );
+});
diff --git a/node_modules/falafel/test/parent.js b/node_modules/falafel/test/parent.js
new file mode 100644
index 0000000000000000000000000000000000000000..e858303f769a53daf25da03d265cd99923d78a29
--- /dev/null
+++ b/node_modules/falafel/test/parent.js
@@ -0,0 +1,33 @@
+var falafel = require('../');
+var test = require('tape');
+
+test('parent', function (t) {
+ t.plan(5);
+
+ var src = '(function () {'
+ + 'var xs = [ 1, 2, 3 ];'
+ + 'fn(ys);'
+ + '})()';
+
+ var output = falafel(src, function (node) {
+ if (node.type === 'ArrayExpression') {
+ t.equal(node.parent.type, 'VariableDeclarator');
+ t.equal(
+ ffBracket(node.parent.source()),
+ 'xs = [ 1, 2, 3 ]'
+ );
+ t.equal(node.parent.parent.type, 'VariableDeclaration');
+ t.equal(
+ ffBracket(node.parent.parent.source()),
+ 'var xs = [ 1, 2, 3 ];'
+ );
+ node.parent.update('ys = 4;');
+ }
+ });
+
+ Function(['fn'], output)(function (x) { t.equal(x, 4) });
+});
+
+function ffBracket (s) {
+ return s.replace(/\[\s*/, '[ ').replace(/\s*\]/, ' ]');
+}
diff --git a/node_modules/fast-isnumeric/LICENSE b/node_modules/fast-isnumeric/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..9ec5eb2f61e7e23f87d776dea962234e2c8184a8
--- /dev/null
+++ b/node_modules/fast-isnumeric/LICENSE
@@ -0,0 +1,22 @@
+The MIT License (MIT)
+
+Copyright (c) 2015 Alex Johnson
+
+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.
+
diff --git a/node_modules/fast-isnumeric/README.md b/node_modules/fast-isnumeric/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..7aa3f393518c47fa6b61766a567f89dbcd9de129
--- /dev/null
+++ b/node_modules/fast-isnumeric/README.md
@@ -0,0 +1,57 @@
+# fast-isnumeric
+
+The fast way to check if a JS object is numeric
+
+### Install
+
+```
+npm install fast-isnumeric
+```
+
+### API
+
+```js
+var isNumeric = require('fast-isnumeric');
+
+isNumeric(/* any JS object */);
+```
+
+### How fast
+
+Run comparison on jsperf: http://jsperf.com/isnumeric-jquery-and-alternate/5
+
+
+
+### Warning
+
+Please look up the test cases in
+[test.js](https://github.com/plotly/fast-isnumeric/blob/master/test.js) before
+using this module.
+
+Most importantly, `fast-isnumeric` returns false on number and string
+constructors. That is, `isNumeric(new Number(1))` and `isNumeric(new
+String('1'))` are **false**.
+
+### Tests
+
+Test locally with karma:
+
+```
+npm test
+```
+
+### Why?
+
+In [plotly](https://plotly.com/)'s javascript graphing library
+[plotly.js](https://plotly.com/javascript/) numerical objects must be accounted
+for in numerous hot code paths. Inspired by Jon Schlinkert's
+[is-number](https://github.com/jonschlinkert/is-number), `fast-isnumeric` is
+significantly simplified and sped up by ignoring number and string constructors.
+
+### Author
+
+Alex Johnson | https://github.com/alexcjohnson
+
+### License
+
+Copyright (c) 2015 Alex Johnson Released under the MIT license.
diff --git a/node_modules/fast-isnumeric/index.js b/node_modules/fast-isnumeric/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..4cb8e9af26a5eb47cb5e8db92ad1fb2d4ebd8bee
--- /dev/null
+++ b/node_modules/fast-isnumeric/index.js
@@ -0,0 +1,24 @@
+/**
+ * inspired by is-number
+ * but significantly simplified and sped up by ignoring number and string constructors
+ * ie these return false:
+ * new Number(1)
+ * new String('1')
+ */
+
+'use strict';
+
+var allBlankCharCodes = require('is-string-blank');
+
+module.exports = function(n) {
+ var type = typeof n;
+ if(type === 'string') {
+ var original = n;
+ n = +n;
+ // whitespace strings cast to zero - filter them out
+ if(n===0 && allBlankCharCodes(original)) return false;
+ }
+ else if(type !== 'number') return false;
+
+ return n - n < 1;
+};
diff --git a/node_modules/fast-isnumeric/karma.conf.js b/node_modules/fast-isnumeric/karma.conf.js
new file mode 100644
index 0000000000000000000000000000000000000000..f741aed31c75aa6aa131c2e98ac03a7779aabcdd
--- /dev/null
+++ b/node_modules/fast-isnumeric/karma.conf.js
@@ -0,0 +1,67 @@
+// Karma configuration
+// Generated on Wed Sep 10 2014 15:06:40 GMT-0700 (PDT)
+
+function func(config){
+
+ // level of logging
+ // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
+ func.defaultConfig.logLevel = config.LOG_INFO;
+
+ config.set(func.defaultConfig);
+}
+
+func.defaultConfig = {
+
+ // base path that will be used to resolve all patterns (eg. files, exclude)
+ basePath: '.',
+
+ // frameworks to use
+ // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
+ frameworks: ['jasmine', 'browserify'],
+
+ // list of files / patterns to load in the browser
+ files: [
+ 'test.js'
+ ],
+
+ // list of files to exclude
+ exclude: [
+ ],
+
+ // preprocess matching files before serving them to the browser
+ // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
+ preprocessors: {
+ 'test.js': ['browserify']
+ },
+
+ // test results reporter to use
+ // possible values: 'dots', 'progress'
+ // available reporters: https://npmjs.org/browse/keyword/karma-reporter
+ reporters: ['progress'],
+
+ // web server port
+ port: 9876,
+
+ // enable / disable colors in the output (reporters and logs)
+ colors: true,
+
+ // enable / disable watching file and executing tests whenever any file changes
+ autoWatch: true,
+
+ // start these browsers
+ // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
+ browsers: ['Firefox', 'Chrome'],
+
+ // Continuous Integration mode
+ // if true, Karma captures browsers, runs the tests and exits
+ singleRun: false,
+
+ browserify: {
+ extensions: ['.js'],
+ watch: true,
+ debug: true
+ }
+};
+
+
+module.exports = func;
diff --git a/node_modules/fast-isnumeric/package.json b/node_modules/fast-isnumeric/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..30f26d157ab78f1bd0872cd9dacddac452416ffe
--- /dev/null
+++ b/node_modules/fast-isnumeric/package.json
@@ -0,0 +1,39 @@
+{
+ "name": "fast-isnumeric",
+ "version": "1.1.4",
+ "description": "The fast way to check if a JS object is numeric",
+ "main": "index.js",
+ "scripts": {
+ "test": "karma start karma.conf.js"
+ },
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/plotly/fast-isnumeric.git"
+ },
+ "keywords": [
+ "number",
+ "numeric",
+ "isnumeric",
+ "fast"
+ ],
+ "author": "Alex Johnson (@alexcjohnson)",
+ "license": "MIT",
+ "bugs": {
+ "url": "https://github.com/plotly/fast-isnumeric/issues"
+ },
+ "homepage": "https://github.com/plotly/fast-isnumeric#readme",
+ "dependencies": {
+ "is-string-blank": "^1.0.1"
+ },
+ "devDependencies": {
+ "browserify": "^16.2.3",
+ "jasmine-core": "^2.99.1",
+ "karma": "^4.1.0",
+ "karma-browserify": "^6.0.0",
+ "karma-chrome-launcher": "^2.2.0",
+ "karma-coverage": "^1.1.2",
+ "karma-firefox-launcher": "^1.1.0",
+ "karma-jasmine": "^1.1.2",
+ "watchify": "^3.11.1"
+ }
+}
diff --git a/node_modules/fast-isnumeric/test.js b/node_modules/fast-isnumeric/test.js
new file mode 100644
index 0000000000000000000000000000000000000000..16d4dfcfc3d7a424ed85aefa510a3ed8cabcd2de
--- /dev/null
+++ b/node_modules/fast-isnumeric/test.js
@@ -0,0 +1,184 @@
+/**
+ * adapted from is-number tests by AJ
+ * took out tests that only pass bcs javascript is weird
+ * but don't say anything about the routine
+ * like +'', +null, and +[] - these get turned into the number 0 before being tested
+ * so they pass, but I don't see the relevance of that conversion to the code here!
+ * of course '', null, and [] themselves should fail, and are tested as such.
+ *
+ * also took out Buffer, as we're concerned about browsers here.
+ */
+
+/*!
+ * is-number
+ *
+ * Copyright (c) 2014-2015, Jon Schlinkert.
+ * Licensed under the MIT License.
+ */
+
+var isNumeric = require('./');
+
+describe('isNumeric', function() {
+ 'use strict';
+
+ var shouldPass = [
+ 0xff,
+ 5e3,
+ 0,
+ 0.1,
+ -0.1,
+ -1.1,
+ 37,
+ 3.14,
+
+ 1,
+ 1.1,
+ 10,
+ 10.10,
+ 100,
+ -100,
+
+ '0.1',
+ '-0.1',
+ '-1.1',
+ '+0.1',
+ '+1.1',
+ '0',
+ '+0',
+ '-0',
+ '012',
+ '0xff',
+ '1',
+ '1.1',
+ '10',
+ '10.10',
+ '100',
+ '5e3',
+
+ Math.LN2,
+ Number(1),
+
+ // 012, Octal literal not allowed in strict mode
+ parseInt('012'),
+ parseFloat('012'),
+ Math.abs(1),
+ Math.acos(1),
+ Math.asin(1),
+ Math.atan(1),
+ Math.atan2(1, 2),
+ Math.ceil(1),
+ Math.cos(1),
+ Math.E,
+ Math.exp(1),
+ Math.floor(1),
+ Math.LN10,
+ Math.LN2,
+ Math.log(1),
+ Math.LOG10E,
+ Math.LOG2E,
+ Math.max(1, 2),
+ Math.min(1, 2),
+ Math.PI,
+ Math.pow(1, 2),
+ Math.pow(5, 5),
+ Math.random(1),
+ Math.round(1),
+ Math.sin(1),
+ Math.sqrt(1),
+ Math.SQRT1_2,
+ Math.SQRT2,
+ Math.tan(1),
+
+ Number.MAX_VALUE,
+ Number.MIN_VALUE,
+
+ '0.0',
+ '0x0',
+ '0e+5',
+ '000',
+ '0.0e-5',
+ '0.0E5',
+ '-0',
+ '-0.0',
+ '-0e+5',
+ '-000',
+ '-0.0e-5',
+ '-0.0E5',
+ '+0',
+ '+0.0',
+ '+0e+5',
+ '+000',
+ '+0.0e-5',
+ '+0.0E5',
+ ' 1',
+ '1 ',
+ '\t \r\n0.0 \n\r\t'
+ ];
+
+ var shouldFail = [
+ '',
+ '\t',
+ '\r',
+ '\n',
+ ' \r \t \n\r\n',
+ ' some text with spaces ',
+ '0.0 whats this?',
+ '3a',
+ 'a3',
+ '3_4',
+ '3-4',
+ '3+4',
+ '3*4',
+ '3/4',
+ 'abc',
+ 'false',
+ 'null',
+ 'true',
+ 'undefined',
+ /foo/,
+ [1, 2, 3],
+ [1],
+ [[1]],
+ [],
+ Boolean(true),
+ false,
+ function () {},
+ function() {},
+ function(){},
+ function(v) { return v; },
+ Infinity,
+ Math.sin,
+ NaN,
+ new Array(''),
+ new Array('abc'),
+ new Array(0),
+ new Boolean(true),
+ new Date(),
+ new RegExp('foo'),
+ new String('abc'),
+ null,
+ String('abc'),
+ true,
+ undefined,
+ {a: 1},
+ {abc: 'abc'},
+ {1: 2},
+ {},
+ '-0x0', // +/- hex turns out to not be supported by casting to number
+ '+0x0',
+ new Number(1), // performance decision: do not support object numbers and strings
+ new String('1')
+ ];
+
+ shouldPass.forEach(function (num) {
+ it('treats ' + JSON.stringify(num) + ' as a number', function () {
+ expect(isNumeric(num)).toBe(true);
+ });
+ });
+
+ shouldFail.forEach(function (num) {
+ it('treats ' + JSON.stringify(num) + ' as NOT a number', function () {
+ expect(isNumeric(num)).toBe(false);
+ });
+ });
+});
diff --git a/node_modules/fdir/LICENSE b/node_modules/fdir/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..bb7fdee44cae62e39a6f641dddd9016f265069f7
--- /dev/null
+++ b/node_modules/fdir/LICENSE
@@ -0,0 +1,7 @@
+Copyright 2023 Abdullah Atta
+
+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.
diff --git a/node_modules/fdir/README.md b/node_modules/fdir/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..5c70530fa063fb25cdffcc78b8588c0495e2cbb3
--- /dev/null
+++ b/node_modules/fdir/README.md
@@ -0,0 +1,91 @@
+
+
+
+
The Fastest Directory Crawler & Globber for NodeJS
+
+
+
+
+
+
+
+
+
+
+
+
+⚡ **The Fastest:** Nothing similar (in the NodeJS world) beats `fdir` in speed. It can easily crawl a directory containing **1 million files in < 1 second.**
+
+💡 **Stupidly Easy:** `fdir` uses expressive Builder pattern to build the crawler increasing code readability.
+
+🤖 **Zero Dependencies\*:** `fdir` only uses NodeJS `fs` & `path` modules.
+
+🕺 **Astonishingly Small:** < 2KB in size gzipped & minified.
+
+🖮 **Hackable:** Extending `fdir` is extremely simple now that the new Builder API is here. Feel free to experiment around.
+
+_\* `picomatch` must be installed manually by the user to support globbing._
+
+## 🚄 Quickstart
+
+### Installation
+
+You can install using `npm`:
+
+```sh
+$ npm i fdir
+```
+
+or Yarn:
+
+```sh
+$ yarn add fdir
+```
+
+### Usage
+
+```ts
+import { fdir } from "fdir";
+
+// create the builder
+const api = new fdir().withFullPaths().crawl("path/to/dir");
+
+// get all files in a directory synchronously
+const files = api.sync();
+
+// or asynchronously
+api.withPromise().then((files) => {
+ // do something with the result here.
+});
+```
+
+## Documentation:
+
+Documentation for all methods is available [here](/documentation.md).
+
+## 📊 Benchmarks:
+
+Please check the benchmark against the latest version [here](/BENCHMARKS.md).
+
+## 🙏Used by:
+
+`fdir` is downloaded over 200k+ times a week by projects around the world. Here's a list of some notable projects using `fdir` in production:
+
+> Note: if you think your project should be here, feel free to open an issue. Notable is anything with a considerable amount of GitHub stars.
+
+1. [rollup/plugins](https://github.com/rollup/plugins)
+2. [SuperchupuDev/tinyglobby](https://github.com/SuperchupuDev/tinyglobby)
+3. [pulumi/pulumi](https://github.com/pulumi/pulumi)
+4. [dotenvx/dotenvx](https://github.com/dotenvx/dotenvx)
+5. [mdn/yari](https://github.com/mdn/yari)
+6. [streetwriters/notesnook](https://github.com/streetwriters/notesnook)
+7. [imba/imba](https://github.com/imba/imba)
+8. [moroshko/react-scanner](https://github.com/moroshko/react-scanner)
+9. [netlify/build](https://github.com/netlify/build)
+10. [yassinedoghri/astro-i18next](https://github.com/yassinedoghri/astro-i18next)
+11. [selfrefactor/rambda](https://github.com/selfrefactor/rambda)
+12. [whyboris/Video-Hub-App](https://github.com/whyboris/Video-Hub-App)
+
+## 🦮 LICENSE
+
+Copyright © 2024 Abdullah Atta under MIT. [Read full text here.](https://github.com/thecodrr/fdir/raw/master/LICENSE)
diff --git a/node_modules/fdir/dist/index.cjs b/node_modules/fdir/dist/index.cjs
new file mode 100644
index 0000000000000000000000000000000000000000..4868ffba35d991e03831204695d11e703a78c2d3
--- /dev/null
+++ b/node_modules/fdir/dist/index.cjs
@@ -0,0 +1,588 @@
+//#region rolldown:runtime
+var __create = Object.create;
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __getProtoOf = Object.getPrototypeOf;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
+ key = keys[i];
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
+ get: ((k) => from[k]).bind(null, key),
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
+ });
+ }
+ return to;
+};
+var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
+ value: mod,
+ enumerable: true
+}) : target, mod));
+
+//#endregion
+const path = __toESM(require("path"));
+const fs = __toESM(require("fs"));
+
+//#region src/utils.ts
+function cleanPath(path$1) {
+ let normalized = (0, path.normalize)(path$1);
+ if (normalized.length > 1 && normalized[normalized.length - 1] === path.sep) normalized = normalized.substring(0, normalized.length - 1);
+ return normalized;
+}
+const SLASHES_REGEX = /[\\/]/g;
+function convertSlashes(path$1, separator) {
+ return path$1.replace(SLASHES_REGEX, separator);
+}
+const WINDOWS_ROOT_DIR_REGEX = /^[a-z]:[\\/]$/i;
+function isRootDirectory(path$1) {
+ return path$1 === "/" || WINDOWS_ROOT_DIR_REGEX.test(path$1);
+}
+function normalizePath(path$1, options) {
+ const { resolvePaths, normalizePath: normalizePath$1, pathSeparator } = options;
+ const pathNeedsCleaning = process.platform === "win32" && path$1.includes("/") || path$1.startsWith(".");
+ if (resolvePaths) path$1 = (0, path.resolve)(path$1);
+ if (normalizePath$1 || pathNeedsCleaning) path$1 = cleanPath(path$1);
+ if (path$1 === ".") return "";
+ const needsSeperator = path$1[path$1.length - 1] !== pathSeparator;
+ return convertSlashes(needsSeperator ? path$1 + pathSeparator : path$1, pathSeparator);
+}
+
+//#endregion
+//#region src/api/functions/join-path.ts
+function joinPathWithBasePath(filename, directoryPath) {
+ return directoryPath + filename;
+}
+function joinPathWithRelativePath(root, options) {
+ return function(filename, directoryPath) {
+ const sameRoot = directoryPath.startsWith(root);
+ if (sameRoot) return directoryPath.slice(root.length) + filename;
+ else return convertSlashes((0, path.relative)(root, directoryPath), options.pathSeparator) + options.pathSeparator + filename;
+ };
+}
+function joinPath(filename) {
+ return filename;
+}
+function joinDirectoryPath(filename, directoryPath, separator) {
+ return directoryPath + filename + separator;
+}
+function build$7(root, options) {
+ const { relativePaths, includeBasePath } = options;
+ return relativePaths && root ? joinPathWithRelativePath(root, options) : includeBasePath ? joinPathWithBasePath : joinPath;
+}
+
+//#endregion
+//#region src/api/functions/push-directory.ts
+function pushDirectoryWithRelativePath(root) {
+ return function(directoryPath, paths) {
+ paths.push(directoryPath.substring(root.length) || ".");
+ };
+}
+function pushDirectoryFilterWithRelativePath(root) {
+ return function(directoryPath, paths, filters) {
+ const relativePath = directoryPath.substring(root.length) || ".";
+ if (filters.every((filter) => filter(relativePath, true))) paths.push(relativePath);
+ };
+}
+const pushDirectory = (directoryPath, paths) => {
+ paths.push(directoryPath || ".");
+};
+const pushDirectoryFilter = (directoryPath, paths, filters) => {
+ const path$1 = directoryPath || ".";
+ if (filters.every((filter) => filter(path$1, true))) paths.push(path$1);
+};
+const empty$2 = () => {};
+function build$6(root, options) {
+ const { includeDirs, filters, relativePaths } = options;
+ if (!includeDirs) return empty$2;
+ if (relativePaths) return filters && filters.length ? pushDirectoryFilterWithRelativePath(root) : pushDirectoryWithRelativePath(root);
+ return filters && filters.length ? pushDirectoryFilter : pushDirectory;
+}
+
+//#endregion
+//#region src/api/functions/push-file.ts
+const pushFileFilterAndCount = (filename, _paths, counts, filters) => {
+ if (filters.every((filter) => filter(filename, false))) counts.files++;
+};
+const pushFileFilter = (filename, paths, _counts, filters) => {
+ if (filters.every((filter) => filter(filename, false))) paths.push(filename);
+};
+const pushFileCount = (_filename, _paths, counts, _filters) => {
+ counts.files++;
+};
+const pushFile = (filename, paths) => {
+ paths.push(filename);
+};
+const empty$1 = () => {};
+function build$5(options) {
+ const { excludeFiles, filters, onlyCounts } = options;
+ if (excludeFiles) return empty$1;
+ if (filters && filters.length) return onlyCounts ? pushFileFilterAndCount : pushFileFilter;
+ else if (onlyCounts) return pushFileCount;
+ else return pushFile;
+}
+
+//#endregion
+//#region src/api/functions/get-array.ts
+const getArray = (paths) => {
+ return paths;
+};
+const getArrayGroup = () => {
+ return [""].slice(0, 0);
+};
+function build$4(options) {
+ return options.group ? getArrayGroup : getArray;
+}
+
+//#endregion
+//#region src/api/functions/group-files.ts
+const groupFiles = (groups, directory, files) => {
+ groups.push({
+ directory,
+ files,
+ dir: directory
+ });
+};
+const empty = () => {};
+function build$3(options) {
+ return options.group ? groupFiles : empty;
+}
+
+//#endregion
+//#region src/api/functions/resolve-symlink.ts
+const resolveSymlinksAsync = function(path$1, state, callback$1) {
+ const { queue, fs: fs$1, options: { suppressErrors } } = state;
+ queue.enqueue();
+ fs$1.realpath(path$1, (error, resolvedPath) => {
+ if (error) return queue.dequeue(suppressErrors ? null : error, state);
+ fs$1.stat(resolvedPath, (error$1, stat) => {
+ if (error$1) return queue.dequeue(suppressErrors ? null : error$1, state);
+ if (stat.isDirectory() && isRecursive(path$1, resolvedPath, state)) return queue.dequeue(null, state);
+ callback$1(stat, resolvedPath);
+ queue.dequeue(null, state);
+ });
+ });
+};
+const resolveSymlinks = function(path$1, state, callback$1) {
+ const { queue, fs: fs$1, options: { suppressErrors } } = state;
+ queue.enqueue();
+ try {
+ const resolvedPath = fs$1.realpathSync(path$1);
+ const stat = fs$1.statSync(resolvedPath);
+ if (stat.isDirectory() && isRecursive(path$1, resolvedPath, state)) return;
+ callback$1(stat, resolvedPath);
+ } catch (e) {
+ if (!suppressErrors) throw e;
+ }
+};
+function build$2(options, isSynchronous) {
+ if (!options.resolveSymlinks || options.excludeSymlinks) return null;
+ return isSynchronous ? resolveSymlinks : resolveSymlinksAsync;
+}
+function isRecursive(path$1, resolved, state) {
+ if (state.options.useRealPaths) return isRecursiveUsingRealPaths(resolved, state);
+ let parent = (0, path.dirname)(path$1);
+ let depth = 1;
+ while (parent !== state.root && depth < 2) {
+ const resolvedPath = state.symlinks.get(parent);
+ const isSameRoot = !!resolvedPath && (resolvedPath === resolved || resolvedPath.startsWith(resolved) || resolved.startsWith(resolvedPath));
+ if (isSameRoot) depth++;
+ else parent = (0, path.dirname)(parent);
+ }
+ state.symlinks.set(path$1, resolved);
+ return depth > 1;
+}
+function isRecursiveUsingRealPaths(resolved, state) {
+ return state.visited.includes(resolved + state.options.pathSeparator);
+}
+
+//#endregion
+//#region src/api/functions/invoke-callback.ts
+const onlyCountsSync = (state) => {
+ return state.counts;
+};
+const groupsSync = (state) => {
+ return state.groups;
+};
+const defaultSync = (state) => {
+ return state.paths;
+};
+const limitFilesSync = (state) => {
+ return state.paths.slice(0, state.options.maxFiles);
+};
+const onlyCountsAsync = (state, error, callback$1) => {
+ report(error, callback$1, state.counts, state.options.suppressErrors);
+ return null;
+};
+const defaultAsync = (state, error, callback$1) => {
+ report(error, callback$1, state.paths, state.options.suppressErrors);
+ return null;
+};
+const limitFilesAsync = (state, error, callback$1) => {
+ report(error, callback$1, state.paths.slice(0, state.options.maxFiles), state.options.suppressErrors);
+ return null;
+};
+const groupsAsync = (state, error, callback$1) => {
+ report(error, callback$1, state.groups, state.options.suppressErrors);
+ return null;
+};
+function report(error, callback$1, output, suppressErrors) {
+ if (error && !suppressErrors) callback$1(error, output);
+ else callback$1(null, output);
+}
+function build$1(options, isSynchronous) {
+ const { onlyCounts, group, maxFiles } = options;
+ if (onlyCounts) return isSynchronous ? onlyCountsSync : onlyCountsAsync;
+ else if (group) return isSynchronous ? groupsSync : groupsAsync;
+ else if (maxFiles) return isSynchronous ? limitFilesSync : limitFilesAsync;
+ else return isSynchronous ? defaultSync : defaultAsync;
+}
+
+//#endregion
+//#region src/api/functions/walk-directory.ts
+const readdirOpts = { withFileTypes: true };
+const walkAsync = (state, crawlPath, directoryPath, currentDepth, callback$1) => {
+ state.queue.enqueue();
+ if (currentDepth < 0) return state.queue.dequeue(null, state);
+ const { fs: fs$1 } = state;
+ state.visited.push(crawlPath);
+ state.counts.directories++;
+ fs$1.readdir(crawlPath || ".", readdirOpts, (error, entries = []) => {
+ callback$1(entries, directoryPath, currentDepth);
+ state.queue.dequeue(state.options.suppressErrors ? null : error, state);
+ });
+};
+const walkSync = (state, crawlPath, directoryPath, currentDepth, callback$1) => {
+ const { fs: fs$1 } = state;
+ if (currentDepth < 0) return;
+ state.visited.push(crawlPath);
+ state.counts.directories++;
+ let entries = [];
+ try {
+ entries = fs$1.readdirSync(crawlPath || ".", readdirOpts);
+ } catch (e) {
+ if (!state.options.suppressErrors) throw e;
+ }
+ callback$1(entries, directoryPath, currentDepth);
+};
+function build(isSynchronous) {
+ return isSynchronous ? walkSync : walkAsync;
+}
+
+//#endregion
+//#region src/api/queue.ts
+/**
+* This is a custom stateless queue to track concurrent async fs calls.
+* It increments a counter whenever a call is queued and decrements it
+* as soon as it completes. When the counter hits 0, it calls onQueueEmpty.
+*/
+var Queue = class {
+ count = 0;
+ constructor(onQueueEmpty) {
+ this.onQueueEmpty = onQueueEmpty;
+ }
+ enqueue() {
+ this.count++;
+ return this.count;
+ }
+ dequeue(error, output) {
+ if (this.onQueueEmpty && (--this.count <= 0 || error)) {
+ this.onQueueEmpty(error, output);
+ if (error) {
+ output.controller.abort();
+ this.onQueueEmpty = void 0;
+ }
+ }
+ }
+};
+
+//#endregion
+//#region src/api/counter.ts
+var Counter = class {
+ _files = 0;
+ _directories = 0;
+ set files(num) {
+ this._files = num;
+ }
+ get files() {
+ return this._files;
+ }
+ set directories(num) {
+ this._directories = num;
+ }
+ get directories() {
+ return this._directories;
+ }
+ /**
+ * @deprecated use `directories` instead
+ */
+ /* c8 ignore next 3 */
+ get dirs() {
+ return this._directories;
+ }
+};
+
+//#endregion
+//#region src/api/aborter.ts
+/**
+* AbortController is not supported on Node 14 so we use this until we can drop
+* support for Node 14.
+*/
+var Aborter = class {
+ aborted = false;
+ abort() {
+ this.aborted = true;
+ }
+};
+
+//#endregion
+//#region src/api/walker.ts
+var Walker = class {
+ root;
+ isSynchronous;
+ state;
+ joinPath;
+ pushDirectory;
+ pushFile;
+ getArray;
+ groupFiles;
+ resolveSymlink;
+ walkDirectory;
+ callbackInvoker;
+ constructor(root, options, callback$1) {
+ this.isSynchronous = !callback$1;
+ this.callbackInvoker = build$1(options, this.isSynchronous);
+ this.root = normalizePath(root, options);
+ this.state = {
+ root: isRootDirectory(this.root) ? this.root : this.root.slice(0, -1),
+ paths: [""].slice(0, 0),
+ groups: [],
+ counts: new Counter(),
+ options,
+ queue: new Queue((error, state) => this.callbackInvoker(state, error, callback$1)),
+ symlinks: /* @__PURE__ */ new Map(),
+ visited: [""].slice(0, 0),
+ controller: new Aborter(),
+ fs: options.fs || fs
+ };
+ this.joinPath = build$7(this.root, options);
+ this.pushDirectory = build$6(this.root, options);
+ this.pushFile = build$5(options);
+ this.getArray = build$4(options);
+ this.groupFiles = build$3(options);
+ this.resolveSymlink = build$2(options, this.isSynchronous);
+ this.walkDirectory = build(this.isSynchronous);
+ }
+ start() {
+ this.pushDirectory(this.root, this.state.paths, this.state.options.filters);
+ this.walkDirectory(this.state, this.root, this.root, this.state.options.maxDepth, this.walk);
+ return this.isSynchronous ? this.callbackInvoker(this.state, null) : null;
+ }
+ walk = (entries, directoryPath, depth) => {
+ const { paths, options: { filters, resolveSymlinks: resolveSymlinks$1, excludeSymlinks, exclude, maxFiles, signal, useRealPaths, pathSeparator }, controller } = this.state;
+ if (controller.aborted || signal && signal.aborted || maxFiles && paths.length > maxFiles) return;
+ const files = this.getArray(this.state.paths);
+ for (let i = 0; i < entries.length; ++i) {
+ const entry = entries[i];
+ if (entry.isFile() || entry.isSymbolicLink() && !resolveSymlinks$1 && !excludeSymlinks) {
+ const filename = this.joinPath(entry.name, directoryPath);
+ this.pushFile(filename, files, this.state.counts, filters);
+ } else if (entry.isDirectory()) {
+ let path$1 = joinDirectoryPath(entry.name, directoryPath, this.state.options.pathSeparator);
+ if (exclude && exclude(entry.name, path$1)) continue;
+ this.pushDirectory(path$1, paths, filters);
+ this.walkDirectory(this.state, path$1, path$1, depth - 1, this.walk);
+ } else if (this.resolveSymlink && entry.isSymbolicLink()) {
+ let path$1 = joinPathWithBasePath(entry.name, directoryPath);
+ this.resolveSymlink(path$1, this.state, (stat, resolvedPath) => {
+ if (stat.isDirectory()) {
+ resolvedPath = normalizePath(resolvedPath, this.state.options);
+ if (exclude && exclude(entry.name, useRealPaths ? resolvedPath : path$1 + pathSeparator)) return;
+ this.walkDirectory(this.state, resolvedPath, useRealPaths ? resolvedPath : path$1 + pathSeparator, depth - 1, this.walk);
+ } else {
+ resolvedPath = useRealPaths ? resolvedPath : path$1;
+ const filename = (0, path.basename)(resolvedPath);
+ const directoryPath$1 = normalizePath((0, path.dirname)(resolvedPath), this.state.options);
+ resolvedPath = this.joinPath(filename, directoryPath$1);
+ this.pushFile(resolvedPath, files, this.state.counts, filters);
+ }
+ });
+ }
+ }
+ this.groupFiles(this.state.groups, directoryPath, files);
+ };
+};
+
+//#endregion
+//#region src/api/async.ts
+function promise(root, options) {
+ return new Promise((resolve$1, reject) => {
+ callback(root, options, (err, output) => {
+ if (err) return reject(err);
+ resolve$1(output);
+ });
+ });
+}
+function callback(root, options, callback$1) {
+ let walker = new Walker(root, options, callback$1);
+ walker.start();
+}
+
+//#endregion
+//#region src/api/sync.ts
+function sync(root, options) {
+ const walker = new Walker(root, options);
+ return walker.start();
+}
+
+//#endregion
+//#region src/builder/api-builder.ts
+var APIBuilder = class {
+ constructor(root, options) {
+ this.root = root;
+ this.options = options;
+ }
+ withPromise() {
+ return promise(this.root, this.options);
+ }
+ withCallback(cb) {
+ callback(this.root, this.options, cb);
+ }
+ sync() {
+ return sync(this.root, this.options);
+ }
+};
+
+//#endregion
+//#region src/builder/index.ts
+let pm = null;
+/* c8 ignore next 6 */
+try {
+ require.resolve("picomatch");
+ pm = require("picomatch");
+} catch {}
+var Builder = class {
+ globCache = {};
+ options = {
+ maxDepth: Infinity,
+ suppressErrors: true,
+ pathSeparator: path.sep,
+ filters: []
+ };
+ globFunction;
+ constructor(options) {
+ this.options = {
+ ...this.options,
+ ...options
+ };
+ this.globFunction = this.options.globFunction;
+ }
+ group() {
+ this.options.group = true;
+ return this;
+ }
+ withPathSeparator(separator) {
+ this.options.pathSeparator = separator;
+ return this;
+ }
+ withBasePath() {
+ this.options.includeBasePath = true;
+ return this;
+ }
+ withRelativePaths() {
+ this.options.relativePaths = true;
+ return this;
+ }
+ withDirs() {
+ this.options.includeDirs = true;
+ return this;
+ }
+ withMaxDepth(depth) {
+ this.options.maxDepth = depth;
+ return this;
+ }
+ withMaxFiles(limit) {
+ this.options.maxFiles = limit;
+ return this;
+ }
+ withFullPaths() {
+ this.options.resolvePaths = true;
+ this.options.includeBasePath = true;
+ return this;
+ }
+ withErrors() {
+ this.options.suppressErrors = false;
+ return this;
+ }
+ withSymlinks({ resolvePaths = true } = {}) {
+ this.options.resolveSymlinks = true;
+ this.options.useRealPaths = resolvePaths;
+ return this.withFullPaths();
+ }
+ withAbortSignal(signal) {
+ this.options.signal = signal;
+ return this;
+ }
+ normalize() {
+ this.options.normalizePath = true;
+ return this;
+ }
+ filter(predicate) {
+ this.options.filters.push(predicate);
+ return this;
+ }
+ onlyDirs() {
+ this.options.excludeFiles = true;
+ this.options.includeDirs = true;
+ return this;
+ }
+ exclude(predicate) {
+ this.options.exclude = predicate;
+ return this;
+ }
+ onlyCounts() {
+ this.options.onlyCounts = true;
+ return this;
+ }
+ crawl(root) {
+ return new APIBuilder(root || ".", this.options);
+ }
+ withGlobFunction(fn) {
+ this.globFunction = fn;
+ return this;
+ }
+ /**
+ * @deprecated Pass options using the constructor instead:
+ * ```ts
+ * new fdir(options).crawl("/path/to/root");
+ * ```
+ * This method will be removed in v7.0
+ */
+ /* c8 ignore next 4 */
+ crawlWithOptions(root, options) {
+ this.options = {
+ ...this.options,
+ ...options
+ };
+ return new APIBuilder(root || ".", this.options);
+ }
+ glob(...patterns) {
+ if (this.globFunction) return this.globWithOptions(patterns);
+ return this.globWithOptions(patterns, ...[{ dot: true }]);
+ }
+ globWithOptions(patterns, ...options) {
+ const globFn = this.globFunction || pm;
+ /* c8 ignore next 5 */
+ if (!globFn) throw new Error("Please specify a glob function to use glob matching.");
+ var isMatch = this.globCache[patterns.join("\0")];
+ if (!isMatch) {
+ isMatch = globFn(patterns, ...options);
+ this.globCache[patterns.join("\0")] = isMatch;
+ }
+ this.options.filters.push((path$1) => isMatch(path$1));
+ return this;
+ }
+};
+
+//#endregion
+exports.fdir = Builder;
\ No newline at end of file
diff --git a/node_modules/fdir/dist/index.d.cts b/node_modules/fdir/dist/index.d.cts
new file mode 100644
index 0000000000000000000000000000000000000000..f448ef5d9b563fca8360766b16cd259be4b9df5c
--- /dev/null
+++ b/node_modules/fdir/dist/index.d.cts
@@ -0,0 +1,155 @@
+///
+import * as nativeFs from "fs";
+import picomatch from "picomatch";
+
+//#region src/api/aborter.d.ts
+/**
+ * AbortController is not supported on Node 14 so we use this until we can drop
+ * support for Node 14.
+ */
+declare class Aborter {
+ aborted: boolean;
+ abort(): void;
+}
+//#endregion
+//#region src/api/queue.d.ts
+type OnQueueEmptyCallback = (error: Error | null, output: WalkerState) => void;
+/**
+ * This is a custom stateless queue to track concurrent async fs calls.
+ * It increments a counter whenever a call is queued and decrements it
+ * as soon as it completes. When the counter hits 0, it calls onQueueEmpty.
+ */
+declare class Queue {
+ private onQueueEmpty?;
+ count: number;
+ constructor(onQueueEmpty?: OnQueueEmptyCallback | undefined);
+ enqueue(): number;
+ dequeue(error: Error | null, output: WalkerState): void;
+}
+//#endregion
+//#region src/types.d.ts
+type Counts = {
+ files: number;
+ directories: number;
+ /**
+ * @deprecated use `directories` instead. Will be removed in v7.0.
+ */
+ dirs: number;
+};
+type Group = {
+ directory: string;
+ files: string[];
+ /**
+ * @deprecated use `directory` instead. Will be removed in v7.0.
+ */
+ dir: string;
+};
+type GroupOutput = Group[];
+type OnlyCountsOutput = Counts;
+type PathsOutput = string[];
+type Output = OnlyCountsOutput | PathsOutput | GroupOutput;
+type FSLike = {
+ readdir: typeof nativeFs.readdir;
+ readdirSync: typeof nativeFs.readdirSync;
+ realpath: typeof nativeFs.realpath;
+ realpathSync: typeof nativeFs.realpathSync;
+ stat: typeof nativeFs.stat;
+ statSync: typeof nativeFs.statSync;
+};
+type WalkerState = {
+ root: string;
+ paths: string[];
+ groups: Group[];
+ counts: Counts;
+ options: Options;
+ queue: Queue;
+ controller: Aborter;
+ fs: FSLike;
+ symlinks: Map;
+ visited: string[];
+};
+type ResultCallback = (error: Error | null, output: TOutput) => void;
+type FilterPredicate = (path: string, isDirectory: boolean) => boolean;
+type ExcludePredicate = (dirName: string, dirPath: string) => boolean;
+type PathSeparator = "/" | "\\";
+type Options = {
+ includeBasePath?: boolean;
+ includeDirs?: boolean;
+ normalizePath?: boolean;
+ maxDepth: number;
+ maxFiles?: number;
+ resolvePaths?: boolean;
+ suppressErrors: boolean;
+ group?: boolean;
+ onlyCounts?: boolean;
+ filters: FilterPredicate[];
+ resolveSymlinks?: boolean;
+ useRealPaths?: boolean;
+ excludeFiles?: boolean;
+ excludeSymlinks?: boolean;
+ exclude?: ExcludePredicate;
+ relativePaths?: boolean;
+ pathSeparator: PathSeparator;
+ signal?: AbortSignal;
+ globFunction?: TGlobFunction;
+ fs?: FSLike;
+};
+type GlobMatcher = (test: string) => boolean;
+type GlobFunction = (glob: string | string[], ...params: unknown[]) => GlobMatcher;
+type GlobParams = T extends ((globs: string | string[], ...params: infer TParams extends unknown[]) => GlobMatcher) ? TParams : [];
+//#endregion
+//#region src/builder/api-builder.d.ts
+declare class APIBuilder {
+ private readonly root;
+ private readonly options;
+ constructor(root: string, options: Options);
+ withPromise(): Promise;
+ withCallback(cb: ResultCallback): void;
+ sync(): TReturnType;
+}
+//#endregion
+//#region src/builder/index.d.ts
+declare class Builder {
+ private readonly globCache;
+ private options;
+ private globFunction?;
+ constructor(options?: Partial>);
+ group(): Builder;
+ withPathSeparator(separator: "/" | "\\"): this;
+ withBasePath(): this;
+ withRelativePaths(): this;
+ withDirs(): this;
+ withMaxDepth(depth: number): this;
+ withMaxFiles(limit: number): this;
+ withFullPaths(): this;
+ withErrors(): this;
+ withSymlinks({
+ resolvePaths
+ }?: {
+ resolvePaths?: boolean | undefined;
+ }): this;
+ withAbortSignal(signal: AbortSignal): this;
+ normalize(): this;
+ filter(predicate: FilterPredicate): this;
+ onlyDirs(): this;
+ exclude(predicate: ExcludePredicate): this;
+ onlyCounts(): Builder;
+ crawl(root?: string): APIBuilder;
+ withGlobFunction(fn: TFunc): Builder;
+ /**
+ * @deprecated Pass options using the constructor instead:
+ * ```ts
+ * new fdir(options).crawl("/path/to/root");
+ * ```
+ * This method will be removed in v7.0
+ */
+ crawlWithOptions(root: string, options: Partial>): APIBuilder;
+ glob(...patterns: string[]): Builder;
+ globWithOptions(patterns: string[]): Builder;
+ globWithOptions(patterns: string[], ...options: GlobParams): Builder;
+}
+//#endregion
+//#region src/index.d.ts
+type Fdir = typeof Builder;
+//#endregion
+export { Counts, ExcludePredicate, FSLike, Fdir, FilterPredicate, GlobFunction, GlobMatcher, GlobParams, Group, GroupOutput, OnlyCountsOutput, Options, Output, PathSeparator, PathsOutput, ResultCallback, WalkerState, Builder as fdir };
\ No newline at end of file
diff --git a/node_modules/fdir/dist/index.d.mts b/node_modules/fdir/dist/index.d.mts
new file mode 100644
index 0000000000000000000000000000000000000000..f448ef5d9b563fca8360766b16cd259be4b9df5c
--- /dev/null
+++ b/node_modules/fdir/dist/index.d.mts
@@ -0,0 +1,155 @@
+///
+import * as nativeFs from "fs";
+import picomatch from "picomatch";
+
+//#region src/api/aborter.d.ts
+/**
+ * AbortController is not supported on Node 14 so we use this until we can drop
+ * support for Node 14.
+ */
+declare class Aborter {
+ aborted: boolean;
+ abort(): void;
+}
+//#endregion
+//#region src/api/queue.d.ts
+type OnQueueEmptyCallback = (error: Error | null, output: WalkerState) => void;
+/**
+ * This is a custom stateless queue to track concurrent async fs calls.
+ * It increments a counter whenever a call is queued and decrements it
+ * as soon as it completes. When the counter hits 0, it calls onQueueEmpty.
+ */
+declare class Queue {
+ private onQueueEmpty?;
+ count: number;
+ constructor(onQueueEmpty?: OnQueueEmptyCallback | undefined);
+ enqueue(): number;
+ dequeue(error: Error | null, output: WalkerState): void;
+}
+//#endregion
+//#region src/types.d.ts
+type Counts = {
+ files: number;
+ directories: number;
+ /**
+ * @deprecated use `directories` instead. Will be removed in v7.0.
+ */
+ dirs: number;
+};
+type Group = {
+ directory: string;
+ files: string[];
+ /**
+ * @deprecated use `directory` instead. Will be removed in v7.0.
+ */
+ dir: string;
+};
+type GroupOutput = Group[];
+type OnlyCountsOutput = Counts;
+type PathsOutput = string[];
+type Output = OnlyCountsOutput | PathsOutput | GroupOutput;
+type FSLike = {
+ readdir: typeof nativeFs.readdir;
+ readdirSync: typeof nativeFs.readdirSync;
+ realpath: typeof nativeFs.realpath;
+ realpathSync: typeof nativeFs.realpathSync;
+ stat: typeof nativeFs.stat;
+ statSync: typeof nativeFs.statSync;
+};
+type WalkerState = {
+ root: string;
+ paths: string[];
+ groups: Group[];
+ counts: Counts;
+ options: Options;
+ queue: Queue;
+ controller: Aborter;
+ fs: FSLike;
+ symlinks: Map;
+ visited: string[];
+};
+type ResultCallback = (error: Error | null, output: TOutput) => void;
+type FilterPredicate = (path: string, isDirectory: boolean) => boolean;
+type ExcludePredicate = (dirName: string, dirPath: string) => boolean;
+type PathSeparator = "/" | "\\";
+type Options = {
+ includeBasePath?: boolean;
+ includeDirs?: boolean;
+ normalizePath?: boolean;
+ maxDepth: number;
+ maxFiles?: number;
+ resolvePaths?: boolean;
+ suppressErrors: boolean;
+ group?: boolean;
+ onlyCounts?: boolean;
+ filters: FilterPredicate[];
+ resolveSymlinks?: boolean;
+ useRealPaths?: boolean;
+ excludeFiles?: boolean;
+ excludeSymlinks?: boolean;
+ exclude?: ExcludePredicate;
+ relativePaths?: boolean;
+ pathSeparator: PathSeparator;
+ signal?: AbortSignal;
+ globFunction?: TGlobFunction;
+ fs?: FSLike;
+};
+type GlobMatcher = (test: string) => boolean;
+type GlobFunction = (glob: string | string[], ...params: unknown[]) => GlobMatcher;
+type GlobParams = T extends ((globs: string | string[], ...params: infer TParams extends unknown[]) => GlobMatcher) ? TParams : [];
+//#endregion
+//#region src/builder/api-builder.d.ts
+declare class APIBuilder {
+ private readonly root;
+ private readonly options;
+ constructor(root: string, options: Options);
+ withPromise(): Promise;
+ withCallback(cb: ResultCallback): void;
+ sync(): TReturnType;
+}
+//#endregion
+//#region src/builder/index.d.ts
+declare class Builder {
+ private readonly globCache;
+ private options;
+ private globFunction?;
+ constructor(options?: Partial>);
+ group(): Builder;
+ withPathSeparator(separator: "/" | "\\"): this;
+ withBasePath(): this;
+ withRelativePaths(): this;
+ withDirs(): this;
+ withMaxDepth(depth: number): this;
+ withMaxFiles(limit: number): this;
+ withFullPaths(): this;
+ withErrors(): this;
+ withSymlinks({
+ resolvePaths
+ }?: {
+ resolvePaths?: boolean | undefined;
+ }): this;
+ withAbortSignal(signal: AbortSignal): this;
+ normalize(): this;
+ filter(predicate: FilterPredicate): this;
+ onlyDirs(): this;
+ exclude(predicate: ExcludePredicate): this;
+ onlyCounts(): Builder;
+ crawl(root?: string): APIBuilder;
+ withGlobFunction(fn: TFunc): Builder;
+ /**
+ * @deprecated Pass options using the constructor instead:
+ * ```ts
+ * new fdir(options).crawl("/path/to/root");
+ * ```
+ * This method will be removed in v7.0
+ */
+ crawlWithOptions(root: string, options: Partial>): APIBuilder;
+ glob(...patterns: string[]): Builder;
+ globWithOptions(patterns: string[]): Builder;
+ globWithOptions(patterns: string[], ...options: GlobParams): Builder;
+}
+//#endregion
+//#region src/index.d.ts
+type Fdir = typeof Builder;
+//#endregion
+export { Counts, ExcludePredicate, FSLike, Fdir, FilterPredicate, GlobFunction, GlobMatcher, GlobParams, Group, GroupOutput, OnlyCountsOutput, Options, Output, PathSeparator, PathsOutput, ResultCallback, WalkerState, Builder as fdir };
\ No newline at end of file
diff --git a/node_modules/fdir/dist/index.mjs b/node_modules/fdir/dist/index.mjs
new file mode 100644
index 0000000000000000000000000000000000000000..5c37e092b507dccc97d1b5a815cecceb94445698
--- /dev/null
+++ b/node_modules/fdir/dist/index.mjs
@@ -0,0 +1,570 @@
+import { createRequire } from "module";
+import { basename, dirname, normalize, relative, resolve, sep } from "path";
+import * as nativeFs from "fs";
+
+//#region rolldown:runtime
+var __require = /* @__PURE__ */ createRequire(import.meta.url);
+
+//#endregion
+//#region src/utils.ts
+function cleanPath(path) {
+ let normalized = normalize(path);
+ if (normalized.length > 1 && normalized[normalized.length - 1] === sep) normalized = normalized.substring(0, normalized.length - 1);
+ return normalized;
+}
+const SLASHES_REGEX = /[\\/]/g;
+function convertSlashes(path, separator) {
+ return path.replace(SLASHES_REGEX, separator);
+}
+const WINDOWS_ROOT_DIR_REGEX = /^[a-z]:[\\/]$/i;
+function isRootDirectory(path) {
+ return path === "/" || WINDOWS_ROOT_DIR_REGEX.test(path);
+}
+function normalizePath(path, options) {
+ const { resolvePaths, normalizePath: normalizePath$1, pathSeparator } = options;
+ const pathNeedsCleaning = process.platform === "win32" && path.includes("/") || path.startsWith(".");
+ if (resolvePaths) path = resolve(path);
+ if (normalizePath$1 || pathNeedsCleaning) path = cleanPath(path);
+ if (path === ".") return "";
+ const needsSeperator = path[path.length - 1] !== pathSeparator;
+ return convertSlashes(needsSeperator ? path + pathSeparator : path, pathSeparator);
+}
+
+//#endregion
+//#region src/api/functions/join-path.ts
+function joinPathWithBasePath(filename, directoryPath) {
+ return directoryPath + filename;
+}
+function joinPathWithRelativePath(root, options) {
+ return function(filename, directoryPath) {
+ const sameRoot = directoryPath.startsWith(root);
+ if (sameRoot) return directoryPath.slice(root.length) + filename;
+ else return convertSlashes(relative(root, directoryPath), options.pathSeparator) + options.pathSeparator + filename;
+ };
+}
+function joinPath(filename) {
+ return filename;
+}
+function joinDirectoryPath(filename, directoryPath, separator) {
+ return directoryPath + filename + separator;
+}
+function build$7(root, options) {
+ const { relativePaths, includeBasePath } = options;
+ return relativePaths && root ? joinPathWithRelativePath(root, options) : includeBasePath ? joinPathWithBasePath : joinPath;
+}
+
+//#endregion
+//#region src/api/functions/push-directory.ts
+function pushDirectoryWithRelativePath(root) {
+ return function(directoryPath, paths) {
+ paths.push(directoryPath.substring(root.length) || ".");
+ };
+}
+function pushDirectoryFilterWithRelativePath(root) {
+ return function(directoryPath, paths, filters) {
+ const relativePath = directoryPath.substring(root.length) || ".";
+ if (filters.every((filter) => filter(relativePath, true))) paths.push(relativePath);
+ };
+}
+const pushDirectory = (directoryPath, paths) => {
+ paths.push(directoryPath || ".");
+};
+const pushDirectoryFilter = (directoryPath, paths, filters) => {
+ const path = directoryPath || ".";
+ if (filters.every((filter) => filter(path, true))) paths.push(path);
+};
+const empty$2 = () => {};
+function build$6(root, options) {
+ const { includeDirs, filters, relativePaths } = options;
+ if (!includeDirs) return empty$2;
+ if (relativePaths) return filters && filters.length ? pushDirectoryFilterWithRelativePath(root) : pushDirectoryWithRelativePath(root);
+ return filters && filters.length ? pushDirectoryFilter : pushDirectory;
+}
+
+//#endregion
+//#region src/api/functions/push-file.ts
+const pushFileFilterAndCount = (filename, _paths, counts, filters) => {
+ if (filters.every((filter) => filter(filename, false))) counts.files++;
+};
+const pushFileFilter = (filename, paths, _counts, filters) => {
+ if (filters.every((filter) => filter(filename, false))) paths.push(filename);
+};
+const pushFileCount = (_filename, _paths, counts, _filters) => {
+ counts.files++;
+};
+const pushFile = (filename, paths) => {
+ paths.push(filename);
+};
+const empty$1 = () => {};
+function build$5(options) {
+ const { excludeFiles, filters, onlyCounts } = options;
+ if (excludeFiles) return empty$1;
+ if (filters && filters.length) return onlyCounts ? pushFileFilterAndCount : pushFileFilter;
+ else if (onlyCounts) return pushFileCount;
+ else return pushFile;
+}
+
+//#endregion
+//#region src/api/functions/get-array.ts
+const getArray = (paths) => {
+ return paths;
+};
+const getArrayGroup = () => {
+ return [""].slice(0, 0);
+};
+function build$4(options) {
+ return options.group ? getArrayGroup : getArray;
+}
+
+//#endregion
+//#region src/api/functions/group-files.ts
+const groupFiles = (groups, directory, files) => {
+ groups.push({
+ directory,
+ files,
+ dir: directory
+ });
+};
+const empty = () => {};
+function build$3(options) {
+ return options.group ? groupFiles : empty;
+}
+
+//#endregion
+//#region src/api/functions/resolve-symlink.ts
+const resolveSymlinksAsync = function(path, state, callback$1) {
+ const { queue, fs, options: { suppressErrors } } = state;
+ queue.enqueue();
+ fs.realpath(path, (error, resolvedPath) => {
+ if (error) return queue.dequeue(suppressErrors ? null : error, state);
+ fs.stat(resolvedPath, (error$1, stat) => {
+ if (error$1) return queue.dequeue(suppressErrors ? null : error$1, state);
+ if (stat.isDirectory() && isRecursive(path, resolvedPath, state)) return queue.dequeue(null, state);
+ callback$1(stat, resolvedPath);
+ queue.dequeue(null, state);
+ });
+ });
+};
+const resolveSymlinks = function(path, state, callback$1) {
+ const { queue, fs, options: { suppressErrors } } = state;
+ queue.enqueue();
+ try {
+ const resolvedPath = fs.realpathSync(path);
+ const stat = fs.statSync(resolvedPath);
+ if (stat.isDirectory() && isRecursive(path, resolvedPath, state)) return;
+ callback$1(stat, resolvedPath);
+ } catch (e) {
+ if (!suppressErrors) throw e;
+ }
+};
+function build$2(options, isSynchronous) {
+ if (!options.resolveSymlinks || options.excludeSymlinks) return null;
+ return isSynchronous ? resolveSymlinks : resolveSymlinksAsync;
+}
+function isRecursive(path, resolved, state) {
+ if (state.options.useRealPaths) return isRecursiveUsingRealPaths(resolved, state);
+ let parent = dirname(path);
+ let depth = 1;
+ while (parent !== state.root && depth < 2) {
+ const resolvedPath = state.symlinks.get(parent);
+ const isSameRoot = !!resolvedPath && (resolvedPath === resolved || resolvedPath.startsWith(resolved) || resolved.startsWith(resolvedPath));
+ if (isSameRoot) depth++;
+ else parent = dirname(parent);
+ }
+ state.symlinks.set(path, resolved);
+ return depth > 1;
+}
+function isRecursiveUsingRealPaths(resolved, state) {
+ return state.visited.includes(resolved + state.options.pathSeparator);
+}
+
+//#endregion
+//#region src/api/functions/invoke-callback.ts
+const onlyCountsSync = (state) => {
+ return state.counts;
+};
+const groupsSync = (state) => {
+ return state.groups;
+};
+const defaultSync = (state) => {
+ return state.paths;
+};
+const limitFilesSync = (state) => {
+ return state.paths.slice(0, state.options.maxFiles);
+};
+const onlyCountsAsync = (state, error, callback$1) => {
+ report(error, callback$1, state.counts, state.options.suppressErrors);
+ return null;
+};
+const defaultAsync = (state, error, callback$1) => {
+ report(error, callback$1, state.paths, state.options.suppressErrors);
+ return null;
+};
+const limitFilesAsync = (state, error, callback$1) => {
+ report(error, callback$1, state.paths.slice(0, state.options.maxFiles), state.options.suppressErrors);
+ return null;
+};
+const groupsAsync = (state, error, callback$1) => {
+ report(error, callback$1, state.groups, state.options.suppressErrors);
+ return null;
+};
+function report(error, callback$1, output, suppressErrors) {
+ if (error && !suppressErrors) callback$1(error, output);
+ else callback$1(null, output);
+}
+function build$1(options, isSynchronous) {
+ const { onlyCounts, group, maxFiles } = options;
+ if (onlyCounts) return isSynchronous ? onlyCountsSync : onlyCountsAsync;
+ else if (group) return isSynchronous ? groupsSync : groupsAsync;
+ else if (maxFiles) return isSynchronous ? limitFilesSync : limitFilesAsync;
+ else return isSynchronous ? defaultSync : defaultAsync;
+}
+
+//#endregion
+//#region src/api/functions/walk-directory.ts
+const readdirOpts = { withFileTypes: true };
+const walkAsync = (state, crawlPath, directoryPath, currentDepth, callback$1) => {
+ state.queue.enqueue();
+ if (currentDepth < 0) return state.queue.dequeue(null, state);
+ const { fs } = state;
+ state.visited.push(crawlPath);
+ state.counts.directories++;
+ fs.readdir(crawlPath || ".", readdirOpts, (error, entries = []) => {
+ callback$1(entries, directoryPath, currentDepth);
+ state.queue.dequeue(state.options.suppressErrors ? null : error, state);
+ });
+};
+const walkSync = (state, crawlPath, directoryPath, currentDepth, callback$1) => {
+ const { fs } = state;
+ if (currentDepth < 0) return;
+ state.visited.push(crawlPath);
+ state.counts.directories++;
+ let entries = [];
+ try {
+ entries = fs.readdirSync(crawlPath || ".", readdirOpts);
+ } catch (e) {
+ if (!state.options.suppressErrors) throw e;
+ }
+ callback$1(entries, directoryPath, currentDepth);
+};
+function build(isSynchronous) {
+ return isSynchronous ? walkSync : walkAsync;
+}
+
+//#endregion
+//#region src/api/queue.ts
+/**
+* This is a custom stateless queue to track concurrent async fs calls.
+* It increments a counter whenever a call is queued and decrements it
+* as soon as it completes. When the counter hits 0, it calls onQueueEmpty.
+*/
+var Queue = class {
+ count = 0;
+ constructor(onQueueEmpty) {
+ this.onQueueEmpty = onQueueEmpty;
+ }
+ enqueue() {
+ this.count++;
+ return this.count;
+ }
+ dequeue(error, output) {
+ if (this.onQueueEmpty && (--this.count <= 0 || error)) {
+ this.onQueueEmpty(error, output);
+ if (error) {
+ output.controller.abort();
+ this.onQueueEmpty = void 0;
+ }
+ }
+ }
+};
+
+//#endregion
+//#region src/api/counter.ts
+var Counter = class {
+ _files = 0;
+ _directories = 0;
+ set files(num) {
+ this._files = num;
+ }
+ get files() {
+ return this._files;
+ }
+ set directories(num) {
+ this._directories = num;
+ }
+ get directories() {
+ return this._directories;
+ }
+ /**
+ * @deprecated use `directories` instead
+ */
+ /* c8 ignore next 3 */
+ get dirs() {
+ return this._directories;
+ }
+};
+
+//#endregion
+//#region src/api/aborter.ts
+/**
+* AbortController is not supported on Node 14 so we use this until we can drop
+* support for Node 14.
+*/
+var Aborter = class {
+ aborted = false;
+ abort() {
+ this.aborted = true;
+ }
+};
+
+//#endregion
+//#region src/api/walker.ts
+var Walker = class {
+ root;
+ isSynchronous;
+ state;
+ joinPath;
+ pushDirectory;
+ pushFile;
+ getArray;
+ groupFiles;
+ resolveSymlink;
+ walkDirectory;
+ callbackInvoker;
+ constructor(root, options, callback$1) {
+ this.isSynchronous = !callback$1;
+ this.callbackInvoker = build$1(options, this.isSynchronous);
+ this.root = normalizePath(root, options);
+ this.state = {
+ root: isRootDirectory(this.root) ? this.root : this.root.slice(0, -1),
+ paths: [""].slice(0, 0),
+ groups: [],
+ counts: new Counter(),
+ options,
+ queue: new Queue((error, state) => this.callbackInvoker(state, error, callback$1)),
+ symlinks: /* @__PURE__ */ new Map(),
+ visited: [""].slice(0, 0),
+ controller: new Aborter(),
+ fs: options.fs || nativeFs
+ };
+ this.joinPath = build$7(this.root, options);
+ this.pushDirectory = build$6(this.root, options);
+ this.pushFile = build$5(options);
+ this.getArray = build$4(options);
+ this.groupFiles = build$3(options);
+ this.resolveSymlink = build$2(options, this.isSynchronous);
+ this.walkDirectory = build(this.isSynchronous);
+ }
+ start() {
+ this.pushDirectory(this.root, this.state.paths, this.state.options.filters);
+ this.walkDirectory(this.state, this.root, this.root, this.state.options.maxDepth, this.walk);
+ return this.isSynchronous ? this.callbackInvoker(this.state, null) : null;
+ }
+ walk = (entries, directoryPath, depth) => {
+ const { paths, options: { filters, resolveSymlinks: resolveSymlinks$1, excludeSymlinks, exclude, maxFiles, signal, useRealPaths, pathSeparator }, controller } = this.state;
+ if (controller.aborted || signal && signal.aborted || maxFiles && paths.length > maxFiles) return;
+ const files = this.getArray(this.state.paths);
+ for (let i = 0; i < entries.length; ++i) {
+ const entry = entries[i];
+ if (entry.isFile() || entry.isSymbolicLink() && !resolveSymlinks$1 && !excludeSymlinks) {
+ const filename = this.joinPath(entry.name, directoryPath);
+ this.pushFile(filename, files, this.state.counts, filters);
+ } else if (entry.isDirectory()) {
+ let path = joinDirectoryPath(entry.name, directoryPath, this.state.options.pathSeparator);
+ if (exclude && exclude(entry.name, path)) continue;
+ this.pushDirectory(path, paths, filters);
+ this.walkDirectory(this.state, path, path, depth - 1, this.walk);
+ } else if (this.resolveSymlink && entry.isSymbolicLink()) {
+ let path = joinPathWithBasePath(entry.name, directoryPath);
+ this.resolveSymlink(path, this.state, (stat, resolvedPath) => {
+ if (stat.isDirectory()) {
+ resolvedPath = normalizePath(resolvedPath, this.state.options);
+ if (exclude && exclude(entry.name, useRealPaths ? resolvedPath : path + pathSeparator)) return;
+ this.walkDirectory(this.state, resolvedPath, useRealPaths ? resolvedPath : path + pathSeparator, depth - 1, this.walk);
+ } else {
+ resolvedPath = useRealPaths ? resolvedPath : path;
+ const filename = basename(resolvedPath);
+ const directoryPath$1 = normalizePath(dirname(resolvedPath), this.state.options);
+ resolvedPath = this.joinPath(filename, directoryPath$1);
+ this.pushFile(resolvedPath, files, this.state.counts, filters);
+ }
+ });
+ }
+ }
+ this.groupFiles(this.state.groups, directoryPath, files);
+ };
+};
+
+//#endregion
+//#region src/api/async.ts
+function promise(root, options) {
+ return new Promise((resolve$1, reject) => {
+ callback(root, options, (err, output) => {
+ if (err) return reject(err);
+ resolve$1(output);
+ });
+ });
+}
+function callback(root, options, callback$1) {
+ let walker = new Walker(root, options, callback$1);
+ walker.start();
+}
+
+//#endregion
+//#region src/api/sync.ts
+function sync(root, options) {
+ const walker = new Walker(root, options);
+ return walker.start();
+}
+
+//#endregion
+//#region src/builder/api-builder.ts
+var APIBuilder = class {
+ constructor(root, options) {
+ this.root = root;
+ this.options = options;
+ }
+ withPromise() {
+ return promise(this.root, this.options);
+ }
+ withCallback(cb) {
+ callback(this.root, this.options, cb);
+ }
+ sync() {
+ return sync(this.root, this.options);
+ }
+};
+
+//#endregion
+//#region src/builder/index.ts
+let pm = null;
+/* c8 ignore next 6 */
+try {
+ __require.resolve("picomatch");
+ pm = __require("picomatch");
+} catch {}
+var Builder = class {
+ globCache = {};
+ options = {
+ maxDepth: Infinity,
+ suppressErrors: true,
+ pathSeparator: sep,
+ filters: []
+ };
+ globFunction;
+ constructor(options) {
+ this.options = {
+ ...this.options,
+ ...options
+ };
+ this.globFunction = this.options.globFunction;
+ }
+ group() {
+ this.options.group = true;
+ return this;
+ }
+ withPathSeparator(separator) {
+ this.options.pathSeparator = separator;
+ return this;
+ }
+ withBasePath() {
+ this.options.includeBasePath = true;
+ return this;
+ }
+ withRelativePaths() {
+ this.options.relativePaths = true;
+ return this;
+ }
+ withDirs() {
+ this.options.includeDirs = true;
+ return this;
+ }
+ withMaxDepth(depth) {
+ this.options.maxDepth = depth;
+ return this;
+ }
+ withMaxFiles(limit) {
+ this.options.maxFiles = limit;
+ return this;
+ }
+ withFullPaths() {
+ this.options.resolvePaths = true;
+ this.options.includeBasePath = true;
+ return this;
+ }
+ withErrors() {
+ this.options.suppressErrors = false;
+ return this;
+ }
+ withSymlinks({ resolvePaths = true } = {}) {
+ this.options.resolveSymlinks = true;
+ this.options.useRealPaths = resolvePaths;
+ return this.withFullPaths();
+ }
+ withAbortSignal(signal) {
+ this.options.signal = signal;
+ return this;
+ }
+ normalize() {
+ this.options.normalizePath = true;
+ return this;
+ }
+ filter(predicate) {
+ this.options.filters.push(predicate);
+ return this;
+ }
+ onlyDirs() {
+ this.options.excludeFiles = true;
+ this.options.includeDirs = true;
+ return this;
+ }
+ exclude(predicate) {
+ this.options.exclude = predicate;
+ return this;
+ }
+ onlyCounts() {
+ this.options.onlyCounts = true;
+ return this;
+ }
+ crawl(root) {
+ return new APIBuilder(root || ".", this.options);
+ }
+ withGlobFunction(fn) {
+ this.globFunction = fn;
+ return this;
+ }
+ /**
+ * @deprecated Pass options using the constructor instead:
+ * ```ts
+ * new fdir(options).crawl("/path/to/root");
+ * ```
+ * This method will be removed in v7.0
+ */
+ /* c8 ignore next 4 */
+ crawlWithOptions(root, options) {
+ this.options = {
+ ...this.options,
+ ...options
+ };
+ return new APIBuilder(root || ".", this.options);
+ }
+ glob(...patterns) {
+ if (this.globFunction) return this.globWithOptions(patterns);
+ return this.globWithOptions(patterns, ...[{ dot: true }]);
+ }
+ globWithOptions(patterns, ...options) {
+ const globFn = this.globFunction || pm;
+ /* c8 ignore next 5 */
+ if (!globFn) throw new Error("Please specify a glob function to use glob matching.");
+ var isMatch = this.globCache[patterns.join("\0")];
+ if (!isMatch) {
+ isMatch = globFn(patterns, ...options);
+ this.globCache[patterns.join("\0")] = isMatch;
+ }
+ this.options.filters.push((path) => isMatch(path));
+ return this;
+ }
+};
+
+//#endregion
+export { Builder as fdir };
\ No newline at end of file
diff --git a/node_modules/fdir/package.json b/node_modules/fdir/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..e229dff81508001e377a1cebc22b3d81f501e7bc
--- /dev/null
+++ b/node_modules/fdir/package.json
@@ -0,0 +1,103 @@
+{
+ "name": "fdir",
+ "version": "6.5.0",
+ "description": "The fastest directory crawler & globbing alternative to glob, fast-glob, & tiny-glob. Crawls 1m files in < 1s",
+ "main": "./dist/index.cjs",
+ "types": "./dist/index.d.cts",
+ "type": "module",
+ "scripts": {
+ "prepublishOnly": "npm run test && npm run build",
+ "build": "tsdown",
+ "format": "prettier --write src __tests__ benchmarks",
+ "test": "vitest run __tests__/",
+ "test:coverage": "vitest run --coverage __tests__/",
+ "test:watch": "vitest __tests__/",
+ "bench": "ts-node benchmarks/benchmark.js",
+ "bench:glob": "ts-node benchmarks/glob-benchmark.ts",
+ "bench:fdir": "ts-node benchmarks/fdir-benchmark.ts",
+ "release": "./scripts/release.sh"
+ },
+ "engines": {
+ "node": ">=12.0.0"
+ },
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/thecodrr/fdir.git"
+ },
+ "keywords": [
+ "util",
+ "os",
+ "sys",
+ "fs",
+ "walk",
+ "crawler",
+ "directory",
+ "files",
+ "io",
+ "tiny-glob",
+ "glob",
+ "fast-glob",
+ "speed",
+ "javascript",
+ "nodejs"
+ ],
+ "author": "thecodrr ",
+ "license": "MIT",
+ "bugs": {
+ "url": "https://github.com/thecodrr/fdir/issues"
+ },
+ "homepage": "https://github.com/thecodrr/fdir#readme",
+ "devDependencies": {
+ "@types/glob": "^8.1.0",
+ "@types/mock-fs": "^4.13.4",
+ "@types/node": "^20.9.4",
+ "@types/picomatch": "^4.0.0",
+ "@types/tap": "^15.0.11",
+ "@vitest/coverage-v8": "^0.34.6",
+ "all-files-in-tree": "^1.1.2",
+ "benny": "^3.7.1",
+ "csv-to-markdown-table": "^1.3.1",
+ "expect": "^29.7.0",
+ "fast-glob": "^3.3.2",
+ "fdir1": "npm:fdir@1.2.0",
+ "fdir2": "npm:fdir@2.1.0",
+ "fdir3": "npm:fdir@3.4.2",
+ "fdir4": "npm:fdir@4.1.0",
+ "fdir5": "npm:fdir@5.0.0",
+ "fs-readdir-recursive": "^1.1.0",
+ "get-all-files": "^4.1.0",
+ "glob": "^10.3.10",
+ "klaw-sync": "^6.0.0",
+ "mock-fs": "^5.2.0",
+ "picomatch": "^4.0.2",
+ "prettier": "^3.5.3",
+ "recur-readdir": "0.0.1",
+ "recursive-files": "^1.0.2",
+ "recursive-fs": "^2.1.0",
+ "recursive-readdir": "^2.2.3",
+ "rrdir": "^12.1.0",
+ "systeminformation": "^5.21.17",
+ "tiny-glob": "^0.2.9",
+ "ts-node": "^10.9.1",
+ "tsdown": "^0.12.5",
+ "typescript": "^5.3.2",
+ "vitest": "^0.34.6",
+ "walk-sync": "^3.0.0"
+ },
+ "peerDependencies": {
+ "picomatch": "^3 || ^4"
+ },
+ "peerDependenciesMeta": {
+ "picomatch": {
+ "optional": true
+ }
+ },
+ "module": "./dist/index.mjs",
+ "exports": {
+ ".": {
+ "import": "./dist/index.mjs",
+ "require": "./dist/index.cjs"
+ },
+ "./package.json": "./package.json"
+ }
+}
diff --git a/node_modules/fetch-event-stream/esm/deps/jsr.io/@std/http/0.221.0/server_sent_event_stream.js b/node_modules/fetch-event-stream/esm/deps/jsr.io/@std/http/0.221.0/server_sent_event_stream.js
new file mode 100644
index 0000000000000000000000000000000000000000..fa334c8fcba7ceea0a846acb18bc23b0802b5ca3
--- /dev/null
+++ b/node_modules/fetch-event-stream/esm/deps/jsr.io/@std/http/0.221.0/server_sent_event_stream.js
@@ -0,0 +1,67 @@
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+const NEWLINE_REGEXP = /\r\n|\r|\n/;
+const encoder = new TextEncoder();
+function assertHasNoNewline(value, varName) {
+ if (value.match(NEWLINE_REGEXP) !== null) {
+ throw new RangeError(`${varName} cannot contain a newline`);
+ }
+}
+/**
+ * Converts a server-sent message object into a string for the client.
+ *
+ * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#event_stream_format}
+ */
+function stringify(message) {
+ const lines = [];
+ if (message.comment) {
+ assertHasNoNewline(message.comment, "`message.comment`");
+ lines.push(`:${message.comment}`);
+ }
+ if (message.event) {
+ assertHasNoNewline(message.event, "`message.event`");
+ lines.push(`event:${message.event}`);
+ }
+ if (message.data) {
+ message.data.split(NEWLINE_REGEXP).forEach((line) => lines.push(`data:${line}`));
+ }
+ if (message.id) {
+ assertHasNoNewline(message.id.toString(), "`message.id`");
+ lines.push(`id:${message.id}`);
+ }
+ if (message.retry)
+ lines.push(`retry:${message.retry}`);
+ return encoder.encode(lines.join("\n") + "\n\n");
+}
+/**
+ * Transforms server-sent message objects into strings for the client.
+ *
+ * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events}
+ *
+ * @example
+ * ```ts
+ * import {
+ * type ServerSentEventMessage,
+ * ServerSentEventStream,
+ * } from "@std/http/server-sent-event-stream";
+ *
+ * const stream = ReadableStream.from([
+ * { data: "hello there" }
+ * ]).pipeThrough(new ServerSentEventStream());
+ * new Response(stream, {
+ * headers: {
+ * "content-type": "text/event-stream",
+ * "cache-control": "no-cache",
+ * },
+ * });
+ * ```
+ */
+export class ServerSentEventStream extends TransformStream {
+ constructor() {
+ super({
+ transform: (message, controller) => {
+ controller.enqueue(stringify(message));
+ },
+ });
+ }
+}
diff --git a/node_modules/fetch-event-stream/esm/deps/jsr.io/@std/streams/0.221.0/text_line_stream.js b/node_modules/fetch-event-stream/esm/deps/jsr.io/@std/streams/0.221.0/text_line_stream.js
new file mode 100644
index 0000000000000000000000000000000000000000..7101222bd73326b07e8db326f517ece2820d8692
--- /dev/null
+++ b/node_modules/fetch-event-stream/esm/deps/jsr.io/@std/streams/0.221.0/text_line_stream.js
@@ -0,0 +1,51 @@
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Transform a stream into a stream where each chunk is divided by a newline,
+ * be it `\n` or `\r\n`. `\r` can be enabled via the `allowCR` option.
+ *
+ * @example
+ * ```ts
+ * import { TextLineStream } from "@std/streams/text-line-stream";
+ *
+ * const res = await fetch("https://example.com");
+ * const lines = res.body!
+ * .pipeThrough(new TextDecoderStream())
+ * .pipeThrough(new TextLineStream());
+ * ```
+ */
+export class TextLineStream extends TransformStream {
+ #currentLine = "";
+ /** Constructs a new instance. */
+ constructor(options = { allowCR: false }) {
+ super({
+ transform: (chars, controller) => {
+ chars = this.#currentLine + chars;
+ while (true) {
+ const lfIndex = chars.indexOf("\n");
+ const crIndex = options.allowCR ? chars.indexOf("\r") : -1;
+ if (crIndex !== -1 && crIndex !== (chars.length - 1) &&
+ (lfIndex === -1 || (lfIndex - 1) > crIndex)) {
+ controller.enqueue(chars.slice(0, crIndex));
+ chars = chars.slice(crIndex + 1);
+ continue;
+ }
+ if (lfIndex === -1)
+ break;
+ const endIndex = chars[lfIndex - 1] === "\r" ? lfIndex - 1 : lfIndex;
+ controller.enqueue(chars.slice(0, endIndex));
+ chars = chars.slice(lfIndex + 1);
+ }
+ this.#currentLine = chars;
+ },
+ flush: (controller) => {
+ if (this.#currentLine === "")
+ return;
+ const currentLine = options.allowCR && this.#currentLine.endsWith("\r")
+ ? this.#currentLine.slice(0, -1)
+ : this.#currentLine;
+ controller.enqueue(currentLine);
+ },
+ });
+ }
+}
diff --git a/node_modules/fetch-event-stream/esm/mod.js b/node_modules/fetch-event-stream/esm/mod.js
new file mode 100644
index 0000000000000000000000000000000000000000..dd89d0a2b6813d04760f00f64570f52512a7e1c9
--- /dev/null
+++ b/node_modules/fetch-event-stream/esm/mod.js
@@ -0,0 +1,106 @@
+import * as utils from './utils.js';
+/**
+ * Convert a `Response` body containing Server Sent Events (SSE) into an Async Iterator that yields {@linkcode ServerSentEventMessage} objects.
+ *
+ * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events}
+ *
+ * @example
+ * ```js
+ * // Optional
+ * let abort = new AbortController;
+ *
+ * // Manually fetch a Response
+ * let res = await fetch('https://...', {
+ * method: 'POST',
+ * signal: abort.signal,
+ * headers: {
+ * 'api-key': 'token ',
+ * 'content-type': 'application/json',
+ * },
+ * body: JSON.stringify({
+ * stream: true, // <- hypothetical
+ * // ...
+ * })
+ * });
+ *
+ * if (res.ok) {
+ * let stream = events(res, abort.signal);
+ * for await (let event of stream) {
+ * console.log('<<', event.data);
+ * }
+ * }
+ * ```
+ */
+export async function* events(res, signal) {
+ // TODO: throw error?
+ if (!res.body)
+ return;
+ let iter = utils.stream(res.body);
+ let line, reader = iter.getReader();
+ let event;
+ for (;;) {
+ if (signal && signal.aborted) {
+ return reader.cancel();
+ }
+ line = await reader.read();
+ if (line.done)
+ return;
+ if (!line.value) {
+ if (event)
+ yield event;
+ event = undefined;
+ continue;
+ }
+ let [field, value] = (utils.split(line.value) || []);
+ if (field === 'data') {
+ event ||= {};
+ event[field] = event[field] ? (event[field] + '\n' + value) : value;
+ }
+ else if (field === 'event') {
+ event ||= {};
+ event[field] = value;
+ }
+ else if (field === 'id') {
+ event ||= {};
+ event[field] = String(+value) === value ? +value : value;
+ }
+ else if (field === 'retry') {
+ event ||= {};
+ event[field] = +value || undefined;
+ }
+ }
+}
+/**
+ * Convenience function that will `fetch` with the given arguments and, if ok, will return the {@linkcode events} async iterator.
+ *
+ * If the response is not ok (status 200-299), the `Response` is thrown.
+ *
+ * @example
+ * ```js
+ * // NOTE: throws `Response` if not 2xx status
+ * let events = await stream('https://api.openai.com/...', {
+ * method: 'POST',
+ * headers: {
+ * 'Authorization': 'Bearer ',
+ * 'Content-Type': 'application/json',
+ * },
+ * body: JSON.stringify({
+ * stream: true,
+ * // ...
+ * })
+ * });
+ *
+ * for await (let event of events) {
+ * console.log('<<', JSON.parse(event.data));
+ * }
+ * ```
+ */
+export async function stream(input, init) {
+ let req = new Request(input, init);
+ utils.fallback(req.headers, 'Accept', 'text/event-stream');
+ utils.fallback(req.headers, 'Content-Type', 'application/json');
+ let r = await fetch(req);
+ if (!r.ok)
+ throw r;
+ return events(r, req.signal);
+}
diff --git a/node_modules/fetch-event-stream/esm/package.json b/node_modules/fetch-event-stream/esm/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..3dbc1ca591c0557e35b6004aeba250e6a70b56e3
--- /dev/null
+++ b/node_modules/fetch-event-stream/esm/package.json
@@ -0,0 +1,3 @@
+{
+ "type": "module"
+}
diff --git a/node_modules/fetch-event-stream/esm/utils.js b/node_modules/fetch-event-stream/esm/utils.js
new file mode 100644
index 0000000000000000000000000000000000000000..4badb2c84a6ef0e16ca9bae7894f85e1245131a5
--- /dev/null
+++ b/node_modules/fetch-event-stream/esm/utils.js
@@ -0,0 +1,23 @@
+import { TextLineStream } from './deps/jsr.io/@std/streams/0.221.0/text_line_stream.js';
+export function stream(input) {
+ let decoder = new TextDecoderStream();
+ let split = new TextLineStream({ allowCR: true });
+ return input.pipeThrough(decoder).pipeThrough(split);
+}
+export function split(input) {
+ let rgx = /[:]\s*/;
+ let match = rgx.exec(input);
+ // ": comment" -> index=0 -> ignore
+ let idx = match && match.index;
+ if (idx) {
+ return [
+ input.substring(0, idx),
+ input.substring(idx + match[0].length),
+ ];
+ }
+}
+export function fallback(headers, key, value) {
+ let tmp = headers.get(key);
+ if (!tmp)
+ headers.set(key, value);
+}
diff --git a/node_modules/fetch-event-stream/license b/node_modules/fetch-event-stream/license
new file mode 100644
index 0000000000000000000000000000000000000000..fa6089faba3cf381229744c9f21ed3ae9ed5014a
--- /dev/null
+++ b/node_modules/fetch-event-stream/license
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Luke Edwards (lukeed.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.
diff --git a/node_modules/fetch-event-stream/package.json b/node_modules/fetch-event-stream/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..ef586938d78cec70358331fcecffeb6664650b3b
--- /dev/null
+++ b/node_modules/fetch-event-stream/package.json
@@ -0,0 +1,42 @@
+{
+ "name": "fetch-event-stream",
+ "version": "0.1.6",
+ "description": "A tiny (741b) utility for Server Sent Event (SSE) streaming via `fetch` and Web Streams API",
+ "keywords": [
+ "SSE",
+ "Server-Sent Events",
+ "Events",
+ "EventSource"
+ ],
+ "author": {
+ "name": "Luke Edwards",
+ "email": "luke@lukeed.com",
+ "url": "https://lukeed.com"
+ },
+ "repository": "lukeed/fetch-event-stream",
+ "license": "MIT",
+ "main": "./script/mod.js",
+ "module": "./esm/mod.js",
+ "types": "./types/mod.d.ts",
+ "exports": {
+ ".": {
+ "import": {
+ "types": "./types/mod.d.ts",
+ "default": "./esm/mod.js"
+ },
+ "require": {
+ "types": "./types/mod.d.ts",
+ "default": "./script/mod.js"
+ }
+ }
+ },
+ "scripts": {
+ "test": "node test_runner.js"
+ },
+ "devDependencies": {
+ "@types/node": "^20.9.0",
+ "picocolors": "^1.0.0",
+ "@deno/shim-deno": "~0.18.0"
+ },
+ "_generatedBy": "dnt@dev"
+}
\ No newline at end of file
diff --git a/node_modules/fetch-event-stream/readme.md b/node_modules/fetch-event-stream/readme.md
new file mode 100644
index 0000000000000000000000000000000000000000..8acea55af592c89afc18bb0ecd260ba31acd6605
--- /dev/null
+++ b/node_modules/fetch-event-stream/readme.md
@@ -0,0 +1,124 @@
+
+# fetch-event-stream [](https://github.com/lukeed/fetch-event-stream/actions?query=workflow%3ACI) [](https://licenses.dev/npm/fetch-event-stream)
+
+> A tiny (741b) utility for Server Sent Event (SSE) streaming via `fetch` and Web Streams API
+
+* Allows any HTTP method
+* Built with native [Web Streams API](https://developer.mozilla.org/en-US/docs/Web/API/Streams_API)
+* Works with browser, Node.js, Cloudflare Workers, Deno, and Bun
+* Supports WebWorker or Service Worker environments
+* Accepts [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController) for cancellable streams
+
+***Why?***
+
+1. Even though [`EventSource`](https://developer.mozilla.org/en-US/docs/Web/API/EventSource) exists in browsers (and Deno!), it only sends `GET` requests and does not allow for custom HTTP headers. Most APIs (eg, Anthropic, OpenAI) require `POST` requests with an `Authorization` header and a JSON payload.
+
+2. Web Streams are new, not very well understood, and are sometimes confused with NodeJS Streams. Because of this, many other libraries embed large polyfills or manually reconstruct desired behaviors through non-standard approaches. These polyfills are generally [not necessary](https://developer.mozilla.org/en-US/docs/Web/API/Streams_API#browser_compatibility) anymore, but still make large impacts on SDK size; for example, [`openai`](https://bundlejs.com/?q=openai%404.29.2) is `17kB` (gzip).
+
+## Install
+
+> Available on [JSR](https://jsr.io/@lukeed/fetch-event-stream), [npm](https://www.npmjs.com/package/fetch-event-stream), and [deno.land](https://deno.land/x/fetch_event_stream)
+
+```
+$ npm install --save fetch-event-stream
+```
+
+
+## Usage
+
+```ts
+import { events, stream } from 'fetch-event-stream';
+// or
+import { events, stream } from 'https://deno.land/x/fetch_event_stream';
+```
+
+
+## API
+
+### events(res, signal?)
+
+Convert a `Response` body containing Server Sent Events (SSE) into an Async Iterator that yields
+`ServerSentEventMessage` objects.
+
+_**Example**_
+
+```js
+// Optional
+let abort = new AbortController();
+
+// Manually fetch a Response
+let res = await fetch('https://...', {
+ method: 'POST',
+ signal: abort.signal,
+ headers: {
+ 'api-key': 'token ',
+ 'content-type': 'application/json',
+ },
+ body: JSON.stringify({
+ stream: true, // <- hypothetical
+ // ...
+ }),
+});
+
+if (res.ok) {
+ let stream = events(res, abort.signal);
+ for await (let event of stream) {
+ console.log('<<', event.data);
+ }
+}
+```
+
+#### res
+Type: `Response`
+
+The `Response` to consume. Must contain a body that follows the Server-Sent Event message protocol.
+
+#### signal
+Type: `AbortSignal`
+
+Optional. Use the `AbortController` interface to stop iteration. The stream will be destroyed.
+
+
+### stream(input, init?)
+
+Convenience function that will `fetch` with the given arguments and, if ok, will return the [`events`](#eventsres-signal) async iterator.
+
+> **Note:** Accepts the same arguments as `fetch` but **does not** return a `Response`!
+
+> **Important:** Will `throw` the `Response` if received non-`2xx` status code.
+
+_**Example**_
+
+```js
+// NOTE: throws `Response` if not 2xx status
+let events = await stream('https://api.openai.com/...', {
+ method: 'POST',
+ headers: {
+ 'Authorization': 'Bearer ',
+ 'Content-Type': 'application/json',
+ },
+ body: JSON.stringify({
+ stream: true,
+ // ...
+ }),
+});
+
+for await (let event of events) {
+ console.log('<<', JSON.parse(event.data));
+}
+```
+
+#### input
+Type: `Request | URL | string`
+
+Refer to [`fetch#resource`](https://developer.mozilla.org/en-US/docs/Web/API/fetch#resource) documentation.
+
+#### init
+Type: `RequestInit`
+
+Refer to [`fetch#options`](https://developer.mozilla.org/en-US/docs/Web/API/fetch#options) documentation.
+
+
+## License
+
+MIT © [Luke Edwards](https://lukeed.com)
diff --git a/node_modules/fetch-event-stream/script/deps/jsr.io/@std/http/0.221.0/server_sent_event_stream.js b/node_modules/fetch-event-stream/script/deps/jsr.io/@std/http/0.221.0/server_sent_event_stream.js
new file mode 100644
index 0000000000000000000000000000000000000000..198606d6e7c638f3c3be941dbcd47f49b5225060
--- /dev/null
+++ b/node_modules/fetch-event-stream/script/deps/jsr.io/@std/http/0.221.0/server_sent_event_stream.js
@@ -0,0 +1,71 @@
+"use strict";
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.ServerSentEventStream = void 0;
+const NEWLINE_REGEXP = /\r\n|\r|\n/;
+const encoder = new TextEncoder();
+function assertHasNoNewline(value, varName) {
+ if (value.match(NEWLINE_REGEXP) !== null) {
+ throw new RangeError(`${varName} cannot contain a newline`);
+ }
+}
+/**
+ * Converts a server-sent message object into a string for the client.
+ *
+ * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#event_stream_format}
+ */
+function stringify(message) {
+ const lines = [];
+ if (message.comment) {
+ assertHasNoNewline(message.comment, "`message.comment`");
+ lines.push(`:${message.comment}`);
+ }
+ if (message.event) {
+ assertHasNoNewline(message.event, "`message.event`");
+ lines.push(`event:${message.event}`);
+ }
+ if (message.data) {
+ message.data.split(NEWLINE_REGEXP).forEach((line) => lines.push(`data:${line}`));
+ }
+ if (message.id) {
+ assertHasNoNewline(message.id.toString(), "`message.id`");
+ lines.push(`id:${message.id}`);
+ }
+ if (message.retry)
+ lines.push(`retry:${message.retry}`);
+ return encoder.encode(lines.join("\n") + "\n\n");
+}
+/**
+ * Transforms server-sent message objects into strings for the client.
+ *
+ * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events}
+ *
+ * @example
+ * ```ts
+ * import {
+ * type ServerSentEventMessage,
+ * ServerSentEventStream,
+ * } from "@std/http/server-sent-event-stream";
+ *
+ * const stream = ReadableStream.from([
+ * { data: "hello there" }
+ * ]).pipeThrough(new ServerSentEventStream());
+ * new Response(stream, {
+ * headers: {
+ * "content-type": "text/event-stream",
+ * "cache-control": "no-cache",
+ * },
+ * });
+ * ```
+ */
+class ServerSentEventStream extends TransformStream {
+ constructor() {
+ super({
+ transform: (message, controller) => {
+ controller.enqueue(stringify(message));
+ },
+ });
+ }
+}
+exports.ServerSentEventStream = ServerSentEventStream;
diff --git a/node_modules/fetch-event-stream/script/deps/jsr.io/@std/streams/0.221.0/text_line_stream.js b/node_modules/fetch-event-stream/script/deps/jsr.io/@std/streams/0.221.0/text_line_stream.js
new file mode 100644
index 0000000000000000000000000000000000000000..e5a7efafb027dd6951b4530bc1a062dadfc125e2
--- /dev/null
+++ b/node_modules/fetch-event-stream/script/deps/jsr.io/@std/streams/0.221.0/text_line_stream.js
@@ -0,0 +1,55 @@
+"use strict";
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.TextLineStream = void 0;
+/**
+ * Transform a stream into a stream where each chunk is divided by a newline,
+ * be it `\n` or `\r\n`. `\r` can be enabled via the `allowCR` option.
+ *
+ * @example
+ * ```ts
+ * import { TextLineStream } from "@std/streams/text-line-stream";
+ *
+ * const res = await fetch("https://example.com");
+ * const lines = res.body!
+ * .pipeThrough(new TextDecoderStream())
+ * .pipeThrough(new TextLineStream());
+ * ```
+ */
+class TextLineStream extends TransformStream {
+ #currentLine = "";
+ /** Constructs a new instance. */
+ constructor(options = { allowCR: false }) {
+ super({
+ transform: (chars, controller) => {
+ chars = this.#currentLine + chars;
+ while (true) {
+ const lfIndex = chars.indexOf("\n");
+ const crIndex = options.allowCR ? chars.indexOf("\r") : -1;
+ if (crIndex !== -1 && crIndex !== (chars.length - 1) &&
+ (lfIndex === -1 || (lfIndex - 1) > crIndex)) {
+ controller.enqueue(chars.slice(0, crIndex));
+ chars = chars.slice(crIndex + 1);
+ continue;
+ }
+ if (lfIndex === -1)
+ break;
+ const endIndex = chars[lfIndex - 1] === "\r" ? lfIndex - 1 : lfIndex;
+ controller.enqueue(chars.slice(0, endIndex));
+ chars = chars.slice(lfIndex + 1);
+ }
+ this.#currentLine = chars;
+ },
+ flush: (controller) => {
+ if (this.#currentLine === "")
+ return;
+ const currentLine = options.allowCR && this.#currentLine.endsWith("\r")
+ ? this.#currentLine.slice(0, -1)
+ : this.#currentLine;
+ controller.enqueue(currentLine);
+ },
+ });
+ }
+}
+exports.TextLineStream = TextLineStream;
diff --git a/node_modules/fetch-event-stream/script/mod.js b/node_modules/fetch-event-stream/script/mod.js
new file mode 100644
index 0000000000000000000000000000000000000000..e04dbbe29d9a3f9369eaca989ea478c7bed6a48f
--- /dev/null
+++ b/node_modules/fetch-event-stream/script/mod.js
@@ -0,0 +1,133 @@
+"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() { return m[k]; } };
+ }
+ Object.defineProperty(o, k2, desc);
+}) : (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 });
+exports.events = events;
+exports.stream = stream;
+const utils = __importStar(require("./utils.js"));
+/**
+ * Convert a `Response` body containing Server Sent Events (SSE) into an Async Iterator that yields {@linkcode ServerSentEventMessage} objects.
+ *
+ * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events}
+ *
+ * @example
+ * ```js
+ * // Optional
+ * let abort = new AbortController;
+ *
+ * // Manually fetch a Response
+ * let res = await fetch('https://...', {
+ * method: 'POST',
+ * signal: abort.signal,
+ * headers: {
+ * 'api-key': 'token ',
+ * 'content-type': 'application/json',
+ * },
+ * body: JSON.stringify({
+ * stream: true, // <- hypothetical
+ * // ...
+ * })
+ * });
+ *
+ * if (res.ok) {
+ * let stream = events(res, abort.signal);
+ * for await (let event of stream) {
+ * console.log('<<', event.data);
+ * }
+ * }
+ * ```
+ */
+async function* events(res, signal) {
+ // TODO: throw error?
+ if (!res.body)
+ return;
+ let iter = utils.stream(res.body);
+ let line, reader = iter.getReader();
+ let event;
+ for (;;) {
+ if (signal && signal.aborted) {
+ return reader.cancel();
+ }
+ line = await reader.read();
+ if (line.done)
+ return;
+ if (!line.value) {
+ if (event)
+ yield event;
+ event = undefined;
+ continue;
+ }
+ let [field, value] = (utils.split(line.value) || []);
+ if (field === 'data') {
+ event ||= {};
+ event[field] = event[field] ? (event[field] + '\n' + value) : value;
+ }
+ else if (field === 'event') {
+ event ||= {};
+ event[field] = value;
+ }
+ else if (field === 'id') {
+ event ||= {};
+ event[field] = String(+value) === value ? +value : value;
+ }
+ else if (field === 'retry') {
+ event ||= {};
+ event[field] = +value || undefined;
+ }
+ }
+}
+/**
+ * Convenience function that will `fetch` with the given arguments and, if ok, will return the {@linkcode events} async iterator.
+ *
+ * If the response is not ok (status 200-299), the `Response` is thrown.
+ *
+ * @example
+ * ```js
+ * // NOTE: throws `Response` if not 2xx status
+ * let events = await stream('https://api.openai.com/...', {
+ * method: 'POST',
+ * headers: {
+ * 'Authorization': 'Bearer ',
+ * 'Content-Type': 'application/json',
+ * },
+ * body: JSON.stringify({
+ * stream: true,
+ * // ...
+ * })
+ * });
+ *
+ * for await (let event of events) {
+ * console.log('<<', JSON.parse(event.data));
+ * }
+ * ```
+ */
+async function stream(input, init) {
+ let req = new Request(input, init);
+ utils.fallback(req.headers, 'Accept', 'text/event-stream');
+ utils.fallback(req.headers, 'Content-Type', 'application/json');
+ let r = await fetch(req);
+ if (!r.ok)
+ throw r;
+ return events(r, req.signal);
+}
diff --git a/node_modules/fetch-event-stream/script/package.json b/node_modules/fetch-event-stream/script/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..5bbefffbabee392d1855491b84dc0a716b6a3bf2
--- /dev/null
+++ b/node_modules/fetch-event-stream/script/package.json
@@ -0,0 +1,3 @@
+{
+ "type": "commonjs"
+}
diff --git a/node_modules/fetch-event-stream/script/utils.js b/node_modules/fetch-event-stream/script/utils.js
new file mode 100644
index 0000000000000000000000000000000000000000..feaf0f38946021124bdeaf1997679518459c697d
--- /dev/null
+++ b/node_modules/fetch-event-stream/script/utils.js
@@ -0,0 +1,28 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.stream = stream;
+exports.split = split;
+exports.fallback = fallback;
+const text_line_stream_js_1 = require("./deps/jsr.io/@std/streams/0.221.0/text_line_stream.js");
+function stream(input) {
+ let decoder = new TextDecoderStream();
+ let split = new text_line_stream_js_1.TextLineStream({ allowCR: true });
+ return input.pipeThrough(decoder).pipeThrough(split);
+}
+function split(input) {
+ let rgx = /[:]\s*/;
+ let match = rgx.exec(input);
+ // ": comment" -> index=0 -> ignore
+ let idx = match && match.index;
+ if (idx) {
+ return [
+ input.substring(0, idx),
+ input.substring(idx + match[0].length),
+ ];
+ }
+}
+function fallback(headers, key, value) {
+ let tmp = headers.get(key);
+ if (!tmp)
+ headers.set(key, value);
+}
diff --git a/node_modules/fetch-event-stream/types/_dnt.test_shims.d.ts.map b/node_modules/fetch-event-stream/types/_dnt.test_shims.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..cdea0f3f531fc8f7b506c01805b097acef8c9477
--- /dev/null
+++ b/node_modules/fetch-event-stream/types/_dnt.test_shims.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"_dnt.test_shims.d.ts","sourceRoot":"","sources":["../src/_dnt.test_shims.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAKvC,eAAO,MAAM,aAAa;;CAA2C,CAAC"}
\ No newline at end of file
diff --git a/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/_constants.d.ts.map b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/_constants.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..7e540b1307b32943e7ce6f2c7db1c113d01569ff
--- /dev/null
+++ b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/_constants.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"_constants.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.221.0/_constants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,eAAe,qBAAqB,CAAC"}
\ No newline at end of file
diff --git a/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/_diff.d.ts.map b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/_diff.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..caa028a2ebde91a495452d82dbcf4e1a3facd672
--- /dev/null
+++ b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/_diff.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"_diff.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.221.0/_diff.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,QAAQ;;;;CAIX,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,QAAQ,CAAC;AAE7C,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE,CAAC,CAAC;IACT,OAAO,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;CAChC;AA4BD;;;;GAIG;AACH,wBAAgB,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CA+L5D;AAED;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,wBAsI3C;AAwCD,wBAAgB,YAAY,CAC1B,UAAU,EAAE,aAAa,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,EAC7C,EAAE,UAAkB,EAAE;;CAAK,GAC1B,MAAM,EAAE,CAyBV"}
\ No newline at end of file
diff --git a/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/_format.d.ts.map b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/_format.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..97fe8220ff752d71bac0165c68fd72c8b2b5432c
--- /dev/null
+++ b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/_format.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"_format.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.221.0/_format.ts"],"names":[],"mappings":"AAYA,wBAAgB,MAAM,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,CAezC"}
\ No newline at end of file
diff --git a/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert.d.ts.map b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..e38fa3aaf8a8dbe89e0887ab7fb8ea31273b91ad
--- /dev/null
+++ b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"assert.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.221.0/assert.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,SAAK,GAAG,OAAO,CAAC,IAAI,CAI5D"}
\ No newline at end of file
diff --git a/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_almost_equals.d.ts.map b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_almost_equals.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..8b243983f9a1d9a028ac7e63bfbe94b38759823b
--- /dev/null
+++ b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_almost_equals.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"assert_almost_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.221.0/assert_almost_equals.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,SAAS,SAAO,EAChB,GAAG,CAAC,EAAE,MAAM,QAgBb"}
\ No newline at end of file
diff --git a/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_array_includes.d.ts.map b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_array_includes.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..4c0ff1cc29bf78245c10c906bbd4fa84de2c62b5
--- /dev/null
+++ b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_array_includes.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"assert_array_includes.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.221.0/assert_array_includes.ts"],"names":[],"mappings":"AAKA,0FAA0F;AAC1F,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,SAAS,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC;AAEpD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EACnC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,EACvB,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAC,EACzB,GAAG,CAAC,EAAE,MAAM,QAwBb"}
\ No newline at end of file
diff --git a/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_equals.d.ts.map b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_equals.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..f9e0955f1c5efecad886a0b80a65c294e1bd54fb
--- /dev/null
+++ b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_equals.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"assert_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.221.0/assert_equals.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAC5B,MAAM,EAAE,CAAC,EACT,QAAQ,EAAE,CAAC,EACX,GAAG,CAAC,EAAE,MAAM,EACZ,OAAO,GAAE;IAAE,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,MAAM,CAAA;CAAO,QAuBzD"}
\ No newline at end of file
diff --git a/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_exists.d.ts.map b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_exists.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..0636cb389ef41ce1b4cb1a89e6310cafe8866a6e
--- /dev/null
+++ b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_exists.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"assert_exists.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.221.0/assert_exists.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAC5B,MAAM,EAAE,CAAC,EACT,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,MAAM,IAAI,WAAW,CAAC,CAAC,CAAC,CAOlC"}
\ No newline at end of file
diff --git a/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_false.d.ts.map b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_false.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..648e76ee09673766121fce2508c3ddb30673e6a7
--- /dev/null
+++ b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_false.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"assert_false.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.221.0/assert_false.ts"],"names":[],"mappings":"AAGA,uDAAuD;AACvD,MAAM,MAAM,KAAK,GAAG,KAAK,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,GAAG,SAAS,CAAC;AAE3D;;;;;;;;;;GAUG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,SAAK,GAAG,OAAO,CAAC,IAAI,IAAI,KAAK,CAI1E"}
\ No newline at end of file
diff --git a/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_greater.d.ts.map b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_greater.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..b30d1499c7170925c15c029cf0b0f0a6b51a8c9e
--- /dev/null
+++ b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_greater.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"assert_greater.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.221.0/assert_greater.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,MAAM,QAMpE"}
\ No newline at end of file
diff --git a/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_greater_or_equal.d.ts.map b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_greater_or_equal.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..a7642a2dd9410012fde632d34eed6ea13ce8d850
--- /dev/null
+++ b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_greater_or_equal.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"assert_greater_or_equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.221.0/assert_greater_or_equal.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,EACpC,MAAM,EAAE,CAAC,EACT,QAAQ,EAAE,CAAC,EACX,GAAG,CAAC,EAAE,MAAM,QASb"}
\ No newline at end of file
diff --git a/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_instance_of.d.ts.map b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_instance_of.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..e3afafaba6cf937c939234617c36e5031503495b
--- /dev/null
+++ b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_instance_of.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"assert_instance_of.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.221.0/assert_instance_of.ts"],"names":[],"mappings":"AAGA,sBAAsB;AAEtB,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;AACzD,4BAA4B;AAC5B,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,cAAc,IAAI,CAAC,SAC5D,KAAK,GAAG,IAAI,EAAE,GAAG,KAAK,MAAM,CAAC,GAAG,CAAC,GAC7B,KAAK,CAAC;AAEV;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,cAAc,EACvD,MAAM,EAAE,OAAO,EACf,YAAY,EAAE,CAAC,EACf,GAAG,SAAK,GACP,OAAO,CAAC,MAAM,IAAI,kBAAkB,CAAC,CAAC,CAAC,CA6BzC"}
\ No newline at end of file
diff --git a/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_is_error.d.ts.map b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_is_error.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..094c7d18653c220736ace4fd3205d447eef108c5
--- /dev/null
+++ b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_is_error.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"assert_is_error.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.221.0/assert_is_error.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,EACnD,KAAK,EAAE,OAAO,EAEd,UAAU,CAAC,EAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EACtC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAC5B,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,KAAK,IAAI,CAAC,CAmCpB"}
\ No newline at end of file
diff --git a/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_less.d.ts.map b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_less.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..33a05d2c3cf878fe6304e70ab7ccfbb6a2244664
--- /dev/null
+++ b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_less.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"assert_less.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.221.0/assert_less.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;GAWG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,MAAM,QAMjE"}
\ No newline at end of file
diff --git a/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_less_or_equal.d.ts.map b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_less_or_equal.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..70ef8773aac6717baa9c1c73c665df001344400e
--- /dev/null
+++ b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_less_or_equal.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"assert_less_or_equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.221.0/assert_less_or_equal.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EACjC,MAAM,EAAE,CAAC,EACT,QAAQ,EAAE,CAAC,EACX,GAAG,CAAC,EAAE,MAAM,QASb"}
\ No newline at end of file
diff --git a/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_match.d.ts.map b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_match.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..0dd1c9a78fdb9f0aec013cd8d2a82ba5f9176dd9
--- /dev/null
+++ b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_match.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"assert_match.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.221.0/assert_match.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,GAAG,CAAC,EAAE,MAAM,QAOb"}
\ No newline at end of file
diff --git a/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_not_equals.d.ts.map b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_not_equals.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..3db8df21b80300bc054b43c8f7d581abf7c74f79
--- /dev/null
+++ b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_not_equals.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"assert_not_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.221.0/assert_not_equals.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;GAaG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,MAAM,QAoBtE"}
\ No newline at end of file
diff --git a/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_not_instance_of.d.ts.map b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_not_instance_of.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..d3ed0c49c73847128db03ff413c3c4f0d2277ace
--- /dev/null
+++ b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_not_instance_of.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"assert_not_instance_of.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.221.0/assert_not_instance_of.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,CAAC,EACtC,MAAM,EAAE,CAAC,EAET,cAAc,EAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EACzC,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,MAAM,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAKjC"}
\ No newline at end of file
diff --git a/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_not_match.d.ts.map b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_not_match.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..5b43e69234007241f68445188e7f75dd902fb500
--- /dev/null
+++ b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_not_match.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"assert_not_match.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.221.0/assert_not_match.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,GAAG,CAAC,EAAE,MAAM,QAQb"}
\ No newline at end of file
diff --git a/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_not_strict_equals.d.ts.map b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_not_strict_equals.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..79c1238b5405cdd35299a0d9e8c3f682c19073a6
--- /dev/null
+++ b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_not_strict_equals.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"assert_not_strict_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.221.0/assert_not_strict_equals.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;GAWG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,EACrC,MAAM,EAAE,CAAC,EACT,QAAQ,EAAE,CAAC,EACX,GAAG,CAAC,EAAE,MAAM,QAYb"}
\ No newline at end of file
diff --git a/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_object_match.d.ts.map b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_object_match.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..8c2ae5a65f9ddce88ebb00decbf0aec400deb5e0
--- /dev/null
+++ b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_object_match.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"assert_object_match.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.221.0/assert_object_match.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAE/B,MAAM,EAAE,MAAM,CAAC,WAAW,EAAE,GAAG,CAAC,EAChC,QAAQ,EAAE,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,EACtC,GAAG,CAAC,EAAE,MAAM,GACX,IAAI,CA+EN"}
\ No newline at end of file
diff --git a/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_rejects.d.ts.map b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_rejects.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..bbb8c2775640f70d92b818132e20c2c4d269dc55
--- /dev/null
+++ b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_rejects.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"assert_rejects.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.221.0/assert_rejects.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CAC3B,EAAE,EAAE,MAAM,WAAW,CAAC,OAAO,CAAC,EAC9B,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,OAAO,CAAC,CAAC;AACpB;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,EACnD,EAAE,EAAE,MAAM,WAAW,CAAC,OAAO,CAAC,EAE9B,UAAU,EAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EACrC,WAAW,CAAC,EAAE,MAAM,EACpB,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,CAAC,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_strict_equals.d.ts.map b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_strict_equals.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..5fc6ac28e961523ea45e1fc5c9ae8f41f3351b11
--- /dev/null
+++ b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_strict_equals.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"assert_strict_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.221.0/assert_strict_equals.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAClC,MAAM,EAAE,OAAO,EACf,QAAQ,EAAE,CAAC,EACX,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,MAAM,IAAI,CAAC,CAmCrB"}
\ No newline at end of file
diff --git a/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_string_includes.d.ts.map b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_string_includes.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..2e0af1790e2f8661dae6d958e74a6522ae840973
--- /dev/null
+++ b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_string_includes.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"assert_string_includes.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.221.0/assert_string_includes.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;GAWG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,GAAG,CAAC,EAAE,MAAM,QAOb"}
\ No newline at end of file
diff --git a/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_throws.d.ts.map b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_throws.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..bf1b09cdde32fdcb3dd5e3e603306598b2483c6e
--- /dev/null
+++ b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assert_throws.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"assert_throws.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.221.0/assert_throws.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,YAAY,CAC1B,EAAE,EAAE,MAAM,OAAO,EACjB,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC;AACX;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,EAClD,EAAE,EAAE,MAAM,OAAO,EAEjB,UAAU,EAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EACrC,WAAW,CAAC,EAAE,MAAM,EACpB,GAAG,CAAC,EAAE,MAAM,GACX,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assertion_error.d.ts.map b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assertion_error.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..a123d53896b0f17d270001a4a3381800359e64f6
--- /dev/null
+++ b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/assertion_error.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"assertion_error.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.221.0/assertion_error.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,qBAAa,cAAe,SAAQ,KAAK;IACvC,iCAAiC;gBACrB,OAAO,EAAE,MAAM;CAI5B"}
\ No newline at end of file
diff --git a/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/equal.d.ts.map b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/equal.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..2fa83a69a627dfbaf6e55074b90eb8d90b80e23d
--- /dev/null
+++ b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/equal.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.221.0/equal.ts"],"names":[],"mappings":"AAWA;;;;;;;;;;;;GAYG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,GAAG,OAAO,CA8FrD"}
\ No newline at end of file
diff --git a/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/fail.d.ts.map b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/fail.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..4ea3961939d36cc9191c4c1173ab4af03277c421
--- /dev/null
+++ b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/fail.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"fail.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.221.0/fail.ts"],"names":[],"mappings":"AAGA;;;;;;;;;GASG;AACH,wBAAgB,IAAI,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,KAAK,CAGxC"}
\ No newline at end of file
diff --git a/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/mod.d.ts.map b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/mod.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..686ab159ed5e861ba99cd517dae759dcd0b6697d
--- /dev/null
+++ b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/mod.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.221.0/mod.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;GAeG;AAEH,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC"}
\ No newline at end of file
diff --git a/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/unimplemented.d.ts.map b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/unimplemented.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..b7c1b93175bf48d3eee5b8fbcc0e0384586d4522
--- /dev/null
+++ b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/unimplemented.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"unimplemented.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.221.0/unimplemented.ts"],"names":[],"mappings":"AAGA;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,KAAK,CAGjD"}
\ No newline at end of file
diff --git a/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/unreachable.d.ts.map b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/unreachable.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..3428d5a9b906ec46fab7e7f9b229fb1dd5382ecc
--- /dev/null
+++ b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/assert/0.221.0/unreachable.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"unreachable.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.221.0/unreachable.ts"],"names":[],"mappings":"AAGA;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,KAAK,CAElD"}
\ No newline at end of file
diff --git a/node_modules/fetch-event-stream/types/deps/jsr.io/@std/fmt/0.221.0/colors.d.ts.map b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/fmt/0.221.0/colors.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..8e5c9fe32f908408619edfa6aabc443c4df4aefd
--- /dev/null
+++ b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/fmt/0.221.0/colors.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fmt/0.221.0/colors.ts"],"names":[],"mappings":"AAkEA,qEAAqE;AACrE,MAAM,WAAW,GAAG;IAClB,0BAA0B;IAC1B,CAAC,EAAE,MAAM,CAAC;IACV,4BAA4B;IAC5B,CAAC,EAAE,MAAM,CAAC;IACV,2BAA2B;IAC3B,CAAC,EAAE,MAAM,CAAC;CACX;AAID;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,QAM7C;AAED,4DAA4D;AAC5D,wBAAgB,eAAe,IAAI,OAAO,CAEzC;AA0BD;;;GAGG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEzC;AAED;;;GAGG;AACH,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAExC;AAED;;;;;;GAMG;AACH,wBAAgB,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEvC;AAED;;;GAGG;AACH,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE1C;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE7C;AAED;;;GAGG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE3C;AAED;;;GAGG;AACH,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE1C;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEjD;AAED;;;GAGG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEzC;AAED;;;GAGG;AACH,wBAAgB,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEvC;AAED;;;GAGG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEzC;AAED;;;GAGG;AACH,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE1C;AAED;;;GAGG;AACH,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAExC;AAED;;;GAGG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE3C;AAED;;;GAGG;AACH,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAExC;AAED;;;GAGG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEzC;AAED;;;GAGG;AACH,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAExC;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE/C;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE7C;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE/C;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEhD;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE9C;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEjD;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE9C;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE/C;AAED;;;GAGG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE3C;AAED;;;GAGG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEzC;AAED;;;GAGG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE3C;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE5C;AAED;;;GAGG;AACH,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE1C;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE7C;AAED;;;GAGG;AACH,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE1C;AAED;;;GAGG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE3C;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEjD;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE/C;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEjD;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAElD;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEhD;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEnD;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEhD;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEjD;AAcD;;;;;GAKG;AACH,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAEvD;AAED;;;;;GAKG;AACH,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAEzD;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,GAAG,GAAG,MAAM,CAuB9D;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,GAAG,GAAG,MAAM,CAuBhE;AAWD;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEjD;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEpD"}
\ No newline at end of file
diff --git a/node_modules/fetch-event-stream/types/deps/jsr.io/@std/http/0.221.0/server_sent_event_stream.d.ts b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/http/0.221.0/server_sent_event_stream.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..35e1ffdc5d00ed5cfb98e0db44856c05e4a0fbbb
--- /dev/null
+++ b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/http/0.221.0/server_sent_event_stream.d.ts
@@ -0,0 +1,44 @@
+/**
+ * Represents a message in the Server-Sent Event (SSE) protocol.
+ *
+ * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#fields}
+ */
+export interface ServerSentEventMessage {
+ /** Ignored by the client. */
+ comment?: string;
+ /** A string identifying the type of event described. */
+ event?: string;
+ /** The data field for the message. Split by new lines. */
+ data?: string;
+ /** The event ID to set the {@linkcode EventSource} object's last event ID value. */
+ id?: string | number;
+ /** The reconnection time. */
+ retry?: number;
+}
+/**
+ * Transforms server-sent message objects into strings for the client.
+ *
+ * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events}
+ *
+ * @example
+ * ```ts
+ * import {
+ * type ServerSentEventMessage,
+ * ServerSentEventStream,
+ * } from "@std/http/server-sent-event-stream";
+ *
+ * const stream = ReadableStream.from([
+ * { data: "hello there" }
+ * ]).pipeThrough(new ServerSentEventStream());
+ * new Response(stream, {
+ * headers: {
+ * "content-type": "text/event-stream",
+ * "cache-control": "no-cache",
+ * },
+ * });
+ * ```
+ */
+export declare class ServerSentEventStream extends TransformStream {
+ constructor();
+}
+//# sourceMappingURL=server_sent_event_stream.d.ts.map
\ No newline at end of file
diff --git a/node_modules/fetch-event-stream/types/deps/jsr.io/@std/http/0.221.0/server_sent_event_stream.d.ts.map b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/http/0.221.0/server_sent_event_stream.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..d5939adc7d26f0c3f1ead1d19e61274389ce1d5a
--- /dev/null
+++ b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/http/0.221.0/server_sent_event_stream.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"server_sent_event_stream.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/http/0.221.0/server_sent_event_stream.ts"],"names":[],"mappings":"AAMA;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC,6BAA6B;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,wDAAwD;IACxD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0DAA0D;IAC1D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oFAAoF;IACpF,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACrB,6BAA6B;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAoCD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,qBAAa,qBACX,SAAQ,eAAe,CAAC,sBAAsB,EAAE,UAAU,CAAC;;CAQ5D"}
\ No newline at end of file
diff --git a/node_modules/fetch-event-stream/types/deps/jsr.io/@std/streams/0.221.0/text_line_stream.d.ts b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/streams/0.221.0/text_line_stream.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..064cdfd8f954ee3dfd35fa248d0fd37e404da6ee
--- /dev/null
+++ b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/streams/0.221.0/text_line_stream.d.ts
@@ -0,0 +1,29 @@
+/** Options for {@linkcode TextLineStream}. */
+export interface TextLineStreamOptions {
+ /**
+ * Allow splitting by `\r`.
+ *
+ * @default {false}
+ */
+ allowCR?: boolean;
+}
+/**
+ * Transform a stream into a stream where each chunk is divided by a newline,
+ * be it `\n` or `\r\n`. `\r` can be enabled via the `allowCR` option.
+ *
+ * @example
+ * ```ts
+ * import { TextLineStream } from "@std/streams/text-line-stream";
+ *
+ * const res = await fetch("https://example.com");
+ * const lines = res.body!
+ * .pipeThrough(new TextDecoderStream())
+ * .pipeThrough(new TextLineStream());
+ * ```
+ */
+export declare class TextLineStream extends TransformStream {
+ #private;
+ /** Constructs a new instance. */
+ constructor(options?: TextLineStreamOptions);
+}
+//# sourceMappingURL=text_line_stream.d.ts.map
\ No newline at end of file
diff --git a/node_modules/fetch-event-stream/types/deps/jsr.io/@std/streams/0.221.0/text_line_stream.d.ts.map b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/streams/0.221.0/text_line_stream.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..3dcec37e97905f6405cc4464db536b9d1a24ac72
--- /dev/null
+++ b/node_modules/fetch-event-stream/types/deps/jsr.io/@std/streams/0.221.0/text_line_stream.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"text_line_stream.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/streams/0.221.0/text_line_stream.ts"],"names":[],"mappings":"AAGA,8CAA8C;AAC9C,MAAM,WAAW,qBAAqB;IACpC;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;;;;;;;;;;GAaG;AACH,qBAAa,cAAe,SAAQ,eAAe,CAAC,MAAM,EAAE,MAAM,CAAC;;IAGjE,iCAAiC;gBACrB,OAAO,GAAE,qBAA0C;CAoChE"}
\ No newline at end of file
diff --git a/node_modules/fetch-event-stream/types/mod.d.ts b/node_modules/fetch-event-stream/types/mod.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..9592fffc40499a736fe2dcef7c7295307e8cecd0
--- /dev/null
+++ b/node_modules/fetch-event-stream/types/mod.d.ts
@@ -0,0 +1,62 @@
+import type { ServerSentEventMessage } from './deps/jsr.io/@std/http/0.221.0/server_sent_event_stream.js';
+export type { ServerSentEventMessage };
+/**
+ * Convert a `Response` body containing Server Sent Events (SSE) into an Async Iterator that yields {@linkcode ServerSentEventMessage} objects.
+ *
+ * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events}
+ *
+ * @example
+ * ```js
+ * // Optional
+ * let abort = new AbortController;
+ *
+ * // Manually fetch a Response
+ * let res = await fetch('https://...', {
+ * method: 'POST',
+ * signal: abort.signal,
+ * headers: {
+ * 'api-key': 'token ',
+ * 'content-type': 'application/json',
+ * },
+ * body: JSON.stringify({
+ * stream: true, // <- hypothetical
+ * // ...
+ * })
+ * });
+ *
+ * if (res.ok) {
+ * let stream = events(res, abort.signal);
+ * for await (let event of stream) {
+ * console.log('<<', event.data);
+ * }
+ * }
+ * ```
+ */
+export declare function events(res: Response, signal?: AbortSignal | null): AsyncGenerator;
+/**
+ * Convenience function that will `fetch` with the given arguments and, if ok, will return the {@linkcode events} async iterator.
+ *
+ * If the response is not ok (status 200-299), the `Response` is thrown.
+ *
+ * @example
+ * ```js
+ * // NOTE: throws `Response` if not 2xx status
+ * let events = await stream('https://api.openai.com/...', {
+ * method: 'POST',
+ * headers: {
+ * 'Authorization': 'Bearer ',
+ * 'Content-Type': 'application/json',
+ * },
+ * body: JSON.stringify({
+ * stream: true,
+ * // ...
+ * })
+ * });
+ *
+ * for await (let event of events) {
+ * console.log('<<', JSON.parse(event.data));
+ * }
+ * ```
+ */
+export declare function stream(input: RequestInfo | URL, init?: RequestInit): Promise>;
+//# sourceMappingURL=mod.d.ts.map
\ No newline at end of file
diff --git a/node_modules/fetch-event-stream/types/mod.d.ts.map b/node_modules/fetch-event-stream/types/mod.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..0ee1be359d11213bad2ec475c8b8bcfcbea137c0
--- /dev/null
+++ b/node_modules/fetch-event-stream/types/mod.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6DAA6D,CAAC;AAE1G,YAAY,EAAE,sBAAsB,EAAE,CAAC;AAEvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAuB,MAAM,CAC5B,GAAG,EAAE,QAAQ,EACb,MAAM,CAAC,EAAE,WAAW,GAAG,IAAI,GACzB,cAAc,CAAC,sBAAsB,EAAE,IAAI,EAAE,OAAO,CAAC,CAsCvD;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAsB,MAAM,CAC3B,KAAK,EAAE,WAAW,GAAG,GAAG,EACxB,IAAI,CAAC,EAAE,WAAW,GAChB,OAAO,CACT,cAAc,CAAC,sBAAsB,EAAE,IAAI,EAAE,OAAO,CAAC,CACrD,CASA"}
\ No newline at end of file
diff --git a/node_modules/fetch-event-stream/types/mod.test.d.ts.map b/node_modules/fetch-event-stream/types/mod.test.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..73a935b629f0c320be28c78eef0128bdc9df3531
--- /dev/null
+++ b/node_modules/fetch-event-stream/types/mod.test.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"mod.test.d.ts","sourceRoot":"","sources":["../src/mod.test.ts"],"names":[],"mappings":""}
\ No newline at end of file
diff --git a/node_modules/fetch-event-stream/types/utils.d.ts b/node_modules/fetch-event-stream/types/utils.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..6fac807e76dc5dace2c4fb30a20ae945665cf402
--- /dev/null
+++ b/node_modules/fetch-event-stream/types/utils.d.ts
@@ -0,0 +1,4 @@
+export declare function stream(input: ReadableStream): ReadableStream;
+export declare function split(input: string): string[] | undefined;
+export declare function fallback(headers: Headers, key: string, value: string): void;
+//# sourceMappingURL=utils.d.ts.map
\ No newline at end of file
diff --git a/node_modules/fetch-event-stream/types/utils.d.ts.map b/node_modules/fetch-event-stream/types/utils.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..fb732f1dd2d84ef1f993568ece2e8e68d4ef0019
--- /dev/null
+++ b/node_modules/fetch-event-stream/types/utils.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAEA,wBAAgB,MAAM,CAAC,KAAK,EAAE,cAAc,CAAC,UAAU,CAAC,0BAIvD;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,wBAWlC;AAED,wBAAgB,QAAQ,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAGpE"}
\ No newline at end of file
diff --git a/node_modules/fetch-event-stream/types/utils.test.d.ts.map b/node_modules/fetch-event-stream/types/utils.test.d.ts.map
new file mode 100644
index 0000000000000000000000000000000000000000..074bacb9650fa9e2d8573d4038ab02d3ffcbb4c3
--- /dev/null
+++ b/node_modules/fetch-event-stream/types/utils.test.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"utils.test.d.ts","sourceRoot":"","sources":["../src/utils.test.ts"],"names":[],"mappings":""}
\ No newline at end of file
diff --git a/node_modules/finalhandler/HISTORY.md b/node_modules/finalhandler/HISTORY.md
new file mode 100644
index 0000000000000000000000000000000000000000..8b011be00a99399ac5c79dac3251efa5964907cf
--- /dev/null
+++ b/node_modules/finalhandler/HISTORY.md
@@ -0,0 +1,239 @@
+v2.1.1. / 2025-12-01
+==================
+
+* update engines field in the package.json to reflect the current compatibility (Node <18). See: 2.0.0
+* Minor changes (package metadata)
+
+v2.1.0 / 2025-03-05
+==================
+
+ * deps:
+ * use caret notation for dependency versions
+ * encodeurl@^2.0.0
+ * debug@^4.4.0
+ * remove `ServerResponse.headersSent` support check
+ * remove setImmediate support check
+ * update test dependencies
+ * remove unnecessary devDependency `safe-buffer`
+ * remove `unpipe` package and use native `unpipe()` method
+ * remove unnecessary devDependency `readable-stream`
+ * refactor: use object spread to copy error headers
+ * refactor: use replaceAll instead of replace with a regex
+ * refactor: replace setHeaders function with optimized inline header setting
+
+v2.0.0 / 2024-09-02
+==================
+
+ * drop support for node <18
+ * ignore status message for HTTP/2 (#53)
+
+v1.3.1 / 2024-09-11
+==================
+
+ * deps: encodeurl@~2.0.0
+
+v1.3.0 / 2024-09-03
+==================
+
+ * ignore status message for HTTP/2 (#53)
+
+v1.2.1 / 2024-09-02
+==================
+
+ * Gracefully handle when handling an error and socket is null
+
+1.2.0 / 2022-03-22
+==================
+
+ * Remove set content headers that break response
+ * deps: on-finished@2.4.1
+ * deps: statuses@2.0.1
+ - Rename `425 Unordered Collection` to standard `425 Too Early`
+
+1.1.2 / 2019-05-09
+==================
+
+ * Set stricter `Content-Security-Policy` header
+ * deps: parseurl@~1.3.3
+ * deps: statuses@~1.5.0
+
+1.1.1 / 2018-03-06
+==================
+
+ * Fix 404 output for bad / missing pathnames
+ * deps: encodeurl@~1.0.2
+ - Fix encoding `%` as last character
+ * deps: statuses@~1.4.0
+
+1.1.0 / 2017-09-24
+==================
+
+ * Use `res.headersSent` when available
+
+1.0.6 / 2017-09-22
+==================
+
+ * deps: debug@2.6.9
+
+1.0.5 / 2017-09-15
+==================
+
+ * deps: parseurl@~1.3.2
+ - perf: reduce overhead for full URLs
+ - perf: unroll the "fast-path" `RegExp`
+
+1.0.4 / 2017-08-03
+==================
+
+ * deps: debug@2.6.8
+
+1.0.3 / 2017-05-16
+==================
+
+ * deps: debug@2.6.7
+ - deps: ms@2.0.0
+
+1.0.2 / 2017-04-22
+==================
+
+ * deps: debug@2.6.4
+ - deps: ms@0.7.3
+
+1.0.1 / 2017-03-21
+==================
+
+ * Fix missing `