diff --git a/.gitattributes b/.gitattributes
index 9c9a6d97064e84dfd659d7c5a0dc7e0f28be6e64..1751d14c6124ae209b192b28441e99cb3490f5b9 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -37,3 +37,4 @@ web/node_modules/@oxlint/binding-win32-x64-msvc/oxlint.win32-x64-msvc.node filte
web/node_modules/@rolldown/binding-win32-x64-msvc/rolldown-binding.win32-x64-msvc.node filter=lfs diff=lfs merge=lfs -text
web/node_modules/@tailwindcss/node/node_modules/lightningcss-win32-x64-msvc/lightningcss.win32-x64-msvc.node filter=lfs diff=lfs merge=lfs -text
web/node_modules/@tailwindcss/oxide-win32-x64-msvc/tailwindcss-oxide.win32-x64-msvc.node filter=lfs diff=lfs merge=lfs -text
+web/node_modules/lightningcss-win32-x64-msvc/lightningcss.win32-x64-msvc.node filter=lfs diff=lfs merge=lfs -text
diff --git a/web/node_modules/fastq/README.md b/web/node_modules/fastq/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..b44cce36ef1e06da8b5987fd9c6dc508afdff166
--- /dev/null
+++ b/web/node_modules/fastq/README.md
@@ -0,0 +1,310 @@
+# fastq
+
+![ci][ci-url]
+[![npm version][npm-badge]][npm-url]
+
+Fast, in memory work queue.
+
+Benchmarks (1 million tasks):
+
+* setImmediate: 812ms
+* fastq: 854ms
+* async.queue: 1298ms
+* neoAsync.queue: 1249ms
+
+Obtained on node 12.16.1, on a dedicated server.
+
+If you need zero-overhead series function call, check out
+[fastseries](http://npm.im/fastseries). For zero-overhead parallel
+function call, check out [fastparallel](http://npm.im/fastparallel).
+
+ * Installation
+ * Usage
+ * API
+ * Licence & copyright
+
+## Install
+
+`npm i fastq --save`
+
+## Usage (callback API)
+
+```js
+'use strict'
+
+const queue = require('fastq')(worker, 1)
+
+queue.push(42, function (err, result) {
+ if (err) { throw err }
+ console.log('the result is', result)
+})
+
+function worker (arg, cb) {
+ cb(null, arg * 2)
+}
+```
+
+## Usage (promise API)
+
+```js
+const queue = require('fastq').promise(worker, 1)
+
+async function worker (arg) {
+ return arg * 2
+}
+
+async function run () {
+ const result = await queue.push(42)
+ console.log('the result is', result)
+}
+
+run()
+```
+
+### Setting "this"
+
+```js
+'use strict'
+
+const that = { hello: 'world' }
+const queue = require('fastq')(that, worker, 1)
+
+queue.push(42, function (err, result) {
+ if (err) { throw err }
+ console.log(this)
+ console.log('the result is', result)
+})
+
+function worker (arg, cb) {
+ console.log(this)
+ cb(null, arg * 2)
+}
+```
+
+### Using with TypeScript (callback API)
+
+```ts
+'use strict'
+
+import * as fastq from "fastq";
+import type { queue, done } from "fastq";
+
+type Task = {
+ id: number
+}
+
+const q: queue = fastq(worker, 1)
+
+q.push({ id: 42})
+
+function worker (arg: Task, cb: done) {
+ console.log(arg.id)
+ cb(null)
+}
+```
+
+### Using with TypeScript (promise API)
+
+```ts
+'use strict'
+
+import * as fastq from "fastq";
+import type { queueAsPromised } from "fastq";
+
+type Task = {
+ id: number
+}
+
+const q: queueAsPromised = fastq.promise(asyncWorker, 1)
+
+q.push({ id: 42}).catch((err) => console.error(err))
+
+async function asyncWorker (arg: Task): Promise {
+ // No need for a try-catch block, fastq handles errors automatically
+ console.log(arg.id)
+}
+```
+
+## API
+
+* fastqueue()
+* queue#push()
+* queue#unshift()
+* queue#pause()
+* queue#resume()
+* queue#idle()
+* queue#length()
+* queue#getQueue()
+* queue#kill()
+* queue#killAndDrain()
+* queue#error()
+* queue#concurrency
+* queue#drain
+* queue#empty
+* queue#saturated
+* fastqueue.promise()
+
+-------------------------------------------------------
+
+### fastqueue([that], worker, concurrency)
+
+Creates a new queue.
+
+Arguments:
+
+* `that`, optional context of the `worker` function.
+* `worker`, worker function, it would be called with `that` as `this`,
+ if that is specified.
+* `concurrency`, number of concurrent tasks that could be executed in
+ parallel.
+
+-------------------------------------------------------
+
+### queue.push(task, done)
+
+Add a task at the end of the queue. `done(err, result)` will be called
+when the task was processed.
+
+-------------------------------------------------------
+
+### queue.unshift(task, done)
+
+Add a task at the beginning of the queue. `done(err, result)` will be called
+when the task was processed.
+
+-------------------------------------------------------
+
+### queue.pause()
+
+Pause the processing of tasks. Currently worked tasks are not
+stopped.
+
+-------------------------------------------------------
+
+### queue.resume()
+
+Resume the processing of tasks.
+
+-------------------------------------------------------
+
+### queue.idle()
+
+Returns `false` if there are tasks being processed or waiting to be processed.
+`true` otherwise.
+
+-------------------------------------------------------
+
+### queue.length()
+
+Returns the number of tasks waiting to be processed (in the queue).
+
+-------------------------------------------------------
+
+### queue.getQueue()
+
+Returns all the tasks be processed (in the queue). Returns empty array when there are no tasks
+
+-------------------------------------------------------
+
+### queue.kill()
+
+Removes all tasks waiting to be processed, and reset `drain` to an empty
+function.
+
+-------------------------------------------------------
+
+### queue.killAndDrain()
+
+Same than `kill` but the `drain` function will be called before reset to empty.
+
+-------------------------------------------------------
+
+### queue.error(handler)
+
+Set a global error handler. `handler(err, task)` will be called
+each time a task is completed, `err` will be not null if the task has thrown an error.
+
+-------------------------------------------------------
+
+### queue.concurrency
+
+Property that returns the number of concurrent tasks that could be executed in
+parallel. It can be altered at runtime.
+
+-------------------------------------------------------
+
+### queue.paused
+
+Property (Read-Only) that returns `true` when the queue is in a paused state.
+
+-------------------------------------------------------
+
+### queue.drain
+
+Function that will be called when the last
+item from the queue has been processed by a worker.
+It can be altered at runtime.
+
+-------------------------------------------------------
+
+### queue.empty
+
+Function that will be called when the last
+item from the queue has been assigned to a worker.
+It can be altered at runtime.
+
+-------------------------------------------------------
+
+### queue.saturated
+
+Function that will be called when the queue hits the concurrency
+limit.
+It can be altered at runtime.
+
+-------------------------------------------------------
+
+### fastqueue.promise([that], worker(arg), concurrency)
+
+Creates a new queue with `Promise` apis. It also offers all the methods
+and properties of the object returned by [`fastqueue`](#fastqueue) with the modified
+[`push`](#pushPromise) and [`unshift`](#unshiftPromise) methods.
+
+Node v10+ is required to use the promisified version.
+
+Arguments:
+* `that`, optional context of the `worker` function.
+* `worker`, worker function, it would be called with `that` as `this`,
+ if that is specified. It MUST return a `Promise`.
+* `concurrency`, number of concurrent tasks that could be executed in
+ parallel.
+
+
+#### queue.push(task) => Promise
+
+Add a task at the end of the queue. The returned `Promise` will be fulfilled (rejected)
+when the task is completed successfully (unsuccessfully).
+
+This promise could be ignored as it will not lead to a `'unhandledRejection'`.
+
+
+#### queue.unshift(task) => Promise
+
+Add a task at the beginning of the queue. The returned `Promise` will be fulfilled (rejected)
+when the task is completed successfully (unsuccessfully).
+
+This promise could be ignored as it will not lead to a `'unhandledRejection'`.
+
+
+#### queue.drained() => Promise
+
+Wait for the queue to be drained. The returned `Promise` will be resolved when all tasks in the queue have been processed by a worker.
+
+This promise could be ignored as it will not lead to a `'unhandledRejection'`.
+
+## License
+
+ISC
+
+[ci-url]: https://github.com/mcollina/fastq/workflows/ci/badge.svg
+[npm-badge]: https://badge.fury.io/js/fastq.svg
+[npm-url]: https://badge.fury.io/js/fastq
diff --git a/web/node_modules/fastq/SECURITY.md b/web/node_modules/fastq/SECURITY.md
new file mode 100644
index 0000000000000000000000000000000000000000..dd9f1d510216450b9311a3b30815fdf381baa787
--- /dev/null
+++ b/web/node_modules/fastq/SECURITY.md
@@ -0,0 +1,15 @@
+# Security Policy
+
+## Supported Versions
+
+Use this section to tell people about which versions of your project are
+currently being supported with security updates.
+
+| Version | Supported |
+| ------- | ------------------ |
+| 1.x | :white_check_mark: |
+| < 1.0 | :x: |
+
+## Reporting a Vulnerability
+
+Please report all vulnerabilities at [https://github.com/mcollina/fastq/security](https://github.com/mcollina/fastq/security).
diff --git a/web/node_modules/fastq/queue.js b/web/node_modules/fastq/queue.js
new file mode 100644
index 0000000000000000000000000000000000000000..d0fbf20279006949feda751daf8b2360b39a2da1
--- /dev/null
+++ b/web/node_modules/fastq/queue.js
@@ -0,0 +1,346 @@
+'use strict'
+
+/* eslint-disable no-var */
+
+var reusify = require('reusify')
+
+function fastqueue (context, worker, _concurrency) {
+ if (typeof context === 'function') {
+ _concurrency = worker
+ worker = context
+ context = null
+ }
+
+ if (!(_concurrency >= 1)) {
+ throw new Error('fastqueue concurrency must be equal to or greater than 1')
+ }
+
+ var cache = reusify(Task)
+ var queueHead = null
+ var queueTail = null
+ var _running = 0
+ var errorHandler = null
+
+ var self = {
+ push: push,
+ drain: noop,
+ saturated: noop,
+ pause: pause,
+ paused: false,
+
+ get concurrency () {
+ return _concurrency
+ },
+ set concurrency (value) {
+ if (!(value >= 1)) {
+ throw new Error('fastqueue concurrency must be equal to or greater than 1')
+ }
+ _concurrency = value
+
+ if (self.paused) return
+ for (; queueHead && _running < _concurrency;) {
+ _running++
+ release()
+ }
+ },
+
+ running: running,
+ resume: resume,
+ idle: idle,
+ length: length,
+ getQueue: getQueue,
+ unshift: unshift,
+ empty: noop,
+ kill: kill,
+ killAndDrain: killAndDrain,
+ error: error,
+ abort: abort
+ }
+
+ return self
+
+ function running () {
+ return _running
+ }
+
+ function pause () {
+ self.paused = true
+ }
+
+ function length () {
+ var current = queueHead
+ var counter = 0
+
+ while (current) {
+ current = current.next
+ counter++
+ }
+
+ return counter
+ }
+
+ function getQueue () {
+ var current = queueHead
+ var tasks = []
+
+ while (current) {
+ tasks.push(current.value)
+ current = current.next
+ }
+
+ return tasks
+ }
+
+ function resume () {
+ if (!self.paused) return
+ self.paused = false
+ if (queueHead === null) {
+ _running++
+ release()
+ return
+ }
+ for (; queueHead && _running < _concurrency;) {
+ _running++
+ release()
+ }
+ }
+
+ function idle () {
+ return _running === 0 && self.length() === 0
+ }
+
+ function push (value, done) {
+ var current = cache.get()
+
+ current.context = context
+ current.release = release
+ current.value = value
+ current.callback = done || noop
+ current.errorHandler = errorHandler
+
+ if (_running >= _concurrency || self.paused) {
+ if (queueTail) {
+ queueTail.next = current
+ queueTail = current
+ } else {
+ queueHead = current
+ queueTail = current
+ self.saturated()
+ }
+ } else {
+ _running++
+ worker.call(context, current.value, current.worked)
+ }
+ }
+
+ function unshift (value, done) {
+ var current = cache.get()
+
+ current.context = context
+ current.release = release
+ current.value = value
+ current.callback = done || noop
+ current.errorHandler = errorHandler
+
+ if (_running >= _concurrency || self.paused) {
+ if (queueHead) {
+ current.next = queueHead
+ queueHead = current
+ } else {
+ queueHead = current
+ queueTail = current
+ self.saturated()
+ }
+ } else {
+ _running++
+ worker.call(context, current.value, current.worked)
+ }
+ }
+
+ function release (holder) {
+ if (holder) {
+ cache.release(holder)
+ }
+ var next = queueHead
+ if (next && _running <= _concurrency) {
+ if (!self.paused) {
+ if (queueTail === queueHead) {
+ queueTail = null
+ }
+ queueHead = next.next
+ next.next = null
+ worker.call(context, next.value, next.worked)
+ if (queueTail === null) {
+ self.empty()
+ }
+ } else {
+ _running--
+ }
+ } else if (--_running === 0) {
+ self.drain()
+ }
+ }
+
+ function kill () {
+ queueHead = null
+ queueTail = null
+ self.drain = noop
+ }
+
+ function killAndDrain () {
+ queueHead = null
+ queueTail = null
+ self.drain()
+ self.drain = noop
+ }
+
+ function abort () {
+ var current = queueHead
+ queueHead = null
+ queueTail = null
+
+ while (current) {
+ var next = current.next
+ var callback = current.callback
+ var errorHandler = current.errorHandler
+ var val = current.value
+ var context = current.context
+
+ // Reset the task state
+ current.value = null
+ current.callback = noop
+ current.errorHandler = null
+
+ // Call error handler if present
+ if (errorHandler) {
+ errorHandler(new Error('abort'), val)
+ }
+
+ // Call callback with error
+ callback.call(context, new Error('abort'))
+
+ // Release the task back to the pool
+ current.release(current)
+
+ current = next
+ }
+
+ self.drain = noop
+ }
+
+ function error (handler) {
+ errorHandler = handler
+ }
+}
+
+function noop () {}
+
+function Task () {
+ this.value = null
+ this.callback = noop
+ this.next = null
+ this.release = noop
+ this.context = null
+ this.errorHandler = null
+
+ var self = this
+
+ this.worked = function worked (err, result) {
+ var callback = self.callback
+ var errorHandler = self.errorHandler
+ var val = self.value
+ self.value = null
+ self.callback = noop
+ if (self.errorHandler) {
+ errorHandler(err, val)
+ }
+ callback.call(self.context, err, result)
+ self.release(self)
+ }
+}
+
+function queueAsPromised (context, worker, _concurrency) {
+ if (typeof context === 'function') {
+ _concurrency = worker
+ worker = context
+ context = null
+ }
+
+ function asyncWrapper (arg, cb) {
+ worker.call(this, arg)
+ .then(function (res) {
+ cb(null, res)
+ }, cb)
+ }
+
+ var queue = fastqueue(context, asyncWrapper, _concurrency)
+
+ var pushCb = queue.push
+ var unshiftCb = queue.unshift
+
+ queue.push = push
+ queue.unshift = unshift
+ queue.drained = drained
+
+ return queue
+
+ function push (value) {
+ var p = new Promise(function (resolve, reject) {
+ pushCb(value, function (err, result) {
+ if (err) {
+ reject(err)
+ return
+ }
+ resolve(result)
+ })
+ })
+
+ // Let's fork the promise chain to
+ // make the error bubble up to the user but
+ // not lead to a unhandledRejection
+ p.catch(noop)
+
+ return p
+ }
+
+ function unshift (value) {
+ var p = new Promise(function (resolve, reject) {
+ unshiftCb(value, function (err, result) {
+ if (err) {
+ reject(err)
+ return
+ }
+ resolve(result)
+ })
+ })
+
+ // Let's fork the promise chain to
+ // make the error bubble up to the user but
+ // not lead to a unhandledRejection
+ p.catch(noop)
+
+ return p
+ }
+
+ function drained () {
+ var p = new Promise(function (resolve) {
+ process.nextTick(function () {
+ if (queue.idle()) {
+ resolve()
+ } else {
+ var previousDrain = queue.drain
+ queue.drain = function () {
+ if (typeof previousDrain === 'function') previousDrain()
+ resolve()
+ queue.drain = previousDrain
+ }
+ }
+ })
+ })
+
+ return p
+ }
+}
+
+module.exports = fastqueue
+module.exports.promise = queueAsPromised
diff --git a/web/node_modules/fastq/test/example.ts b/web/node_modules/fastq/test/example.ts
new file mode 100644
index 0000000000000000000000000000000000000000..a47d4419cdc04144771c747d4c0a66da990e4eaa
--- /dev/null
+++ b/web/node_modules/fastq/test/example.ts
@@ -0,0 +1,83 @@
+import * as fastq from '../'
+import { promise as queueAsPromised } from '../'
+
+// Basic example
+
+const queue = fastq(worker, 1)
+
+queue.push('world', (err, result) => {
+ if (err) throw err
+ console.log('the result is', result)
+})
+
+queue.push('push without cb')
+
+queue.concurrency
+
+queue.drain()
+
+queue.empty = () => undefined
+
+console.log('the queue tasks are', queue.getQueue())
+
+queue.idle()
+
+queue.kill()
+
+queue.killAndDrain()
+
+queue.length
+
+queue.pause()
+
+queue.resume()
+
+queue.running()
+
+queue.saturated = () => undefined
+
+queue.unshift('world', (err, result) => {
+ if (err) throw err
+ console.log('the result is', result)
+})
+
+queue.unshift('unshift without cb')
+
+function worker(task: any, cb: fastq.done) {
+ cb(null, 'hello ' + task)
+}
+
+// Generics example
+
+interface GenericsContext {
+ base: number;
+}
+
+const genericsQueue = fastq({ base: 6 }, genericsWorker, 1)
+
+genericsQueue.push(7, (err, done) => {
+ if (err) throw err
+ console.log('the result is', done)
+})
+
+genericsQueue.unshift(7, (err, done) => {
+ if (err) throw err
+ console.log('the result is', done)
+})
+
+function genericsWorker(this: GenericsContext, task: number, cb: fastq.done) {
+ cb(null, 'the meaning of life is ' + (this.base * task))
+}
+
+const queue2 = queueAsPromised(asyncWorker, 1)
+
+async function asyncWorker(task: any) {
+ return 'hello ' + task
+}
+
+async function run () {
+ await queue.push(42)
+ await queue.unshift(42)
+}
+
+run()
diff --git a/web/node_modules/fastq/test/promise.js b/web/node_modules/fastq/test/promise.js
new file mode 100644
index 0000000000000000000000000000000000000000..b425fda5e16440dc9798be5a50b85bd064c8b657
--- /dev/null
+++ b/web/node_modules/fastq/test/promise.js
@@ -0,0 +1,325 @@
+'use strict'
+
+const test = require('tape')
+const buildQueue = require('../').promise
+const { promisify } = require('util')
+const sleep = promisify(setTimeout)
+const immediate = promisify(setImmediate)
+
+test('concurrency', function (t) {
+ t.plan(2)
+ t.throws(buildQueue.bind(null, worker, 0))
+ t.doesNotThrow(buildQueue.bind(null, worker, 1))
+
+ async function worker (arg) {
+ return true
+ }
+})
+
+test('worker execution', async function (t) {
+ const queue = buildQueue(worker, 1)
+
+ const result = await queue.push(42)
+
+ t.equal(result, true, 'result matches')
+
+ async function worker (arg) {
+ t.equal(arg, 42)
+ return true
+ }
+})
+
+test('limit', async function (t) {
+ const queue = buildQueue(worker, 1)
+
+ const [res1, res2] = await Promise.all([queue.push(10), queue.push(0)])
+ t.equal(res1, 10, 'the result matches')
+ t.equal(res2, 0, 'the result matches')
+
+ async function worker (arg) {
+ await sleep(arg)
+ return arg
+ }
+})
+
+test('multiple executions', async function (t) {
+ const queue = buildQueue(worker, 1)
+ const toExec = [1, 2, 3, 4, 5]
+ const expected = ['a', 'b', 'c', 'd', 'e']
+ let count = 0
+
+ await Promise.all(toExec.map(async function (task, i) {
+ const result = await queue.push(task)
+ t.equal(result, expected[i], 'the result matches')
+ }))
+
+ async function worker (arg) {
+ t.equal(arg, toExec[count], 'arg matches')
+ return expected[count++]
+ }
+})
+
+test('drained', async function (t) {
+ const queue = buildQueue(worker, 2)
+
+ const toExec = new Array(10).fill(10)
+ let count = 0
+
+ async function worker (arg) {
+ await sleep(arg)
+ count++
+ }
+
+ toExec.forEach(function (i) {
+ queue.push(i)
+ })
+
+ await queue.drained()
+
+ t.equal(count, toExec.length)
+
+ toExec.forEach(function (i) {
+ queue.push(i)
+ })
+
+ await queue.drained()
+
+ t.equal(count, toExec.length * 2)
+})
+
+test('drained with exception should not throw', async function (t) {
+ const queue = buildQueue(worker, 2)
+
+ const toExec = new Array(10).fill(10)
+
+ async function worker () {
+ throw new Error('foo')
+ }
+
+ toExec.forEach(function (i) {
+ queue.push(i)
+ })
+
+ await queue.drained()
+})
+
+test('drained with drain function', async function (t) {
+ let drainCalled = false
+ const queue = buildQueue(worker, 2)
+
+ queue.drain = function () {
+ drainCalled = true
+ }
+
+ const toExec = new Array(10).fill(10)
+ let count = 0
+
+ async function worker (arg) {
+ await sleep(arg)
+ count++
+ }
+
+ toExec.forEach(function () {
+ queue.push()
+ })
+
+ await queue.drained()
+
+ t.equal(count, toExec.length)
+ t.equal(drainCalled, true)
+})
+
+test('drained while idle should resolve', async function (t) {
+ const queue = buildQueue(worker, 2)
+
+ async function worker (arg) {
+ await sleep(arg)
+ }
+
+ await queue.drained()
+})
+
+test('drained while idle should not call the drain function', async function (t) {
+ let drainCalled = false
+ const queue = buildQueue(worker, 2)
+
+ queue.drain = function () {
+ drainCalled = true
+ }
+
+ async function worker (arg) {
+ await sleep(arg)
+ }
+
+ await queue.drained()
+
+ t.equal(drainCalled, false)
+})
+
+test('set this', async function (t) {
+ t.plan(1)
+ const that = {}
+ const queue = buildQueue(that, worker, 1)
+
+ await queue.push(42)
+
+ async function worker (arg) {
+ t.equal(this, that, 'this matches')
+ }
+})
+
+test('unshift', async function (t) {
+ const queue = buildQueue(worker, 1)
+ const expected = [1, 2, 3, 4]
+
+ await Promise.all([
+ queue.push(1),
+ queue.push(4),
+ queue.unshift(3),
+ queue.unshift(2)
+ ])
+
+ t.is(expected.length, 0)
+
+ async function worker (arg) {
+ t.equal(expected.shift(), arg, 'tasks come in order')
+ }
+})
+
+test('push with worker throwing error', async function (t) {
+ t.plan(5)
+ const q = buildQueue(async function (task, cb) {
+ throw new Error('test error')
+ }, 1)
+ q.error(function (err, task) {
+ t.ok(err instanceof Error, 'global error handler should catch the error')
+ t.match(err.message, /test error/, 'error message should be "test error"')
+ t.equal(task, 42, 'The task executed should be passed')
+ })
+ try {
+ await q.push(42)
+ } catch (err) {
+ t.ok(err instanceof Error, 'push callback should catch the error')
+ t.match(err.message, /test error/, 'error message should be "test error"')
+ }
+})
+
+test('unshift with worker throwing error', async function (t) {
+ t.plan(2)
+ const q = buildQueue(async function (task, cb) {
+ throw new Error('test error')
+ }, 1)
+ try {
+ await q.unshift(42)
+ } catch (err) {
+ t.ok(err instanceof Error, 'push callback should catch the error')
+ t.match(err.message, /test error/, 'error message should be "test error"')
+ }
+})
+
+test('no unhandledRejection (push)', async function (t) {
+ function handleRejection () {
+ t.fail('unhandledRejection')
+ }
+ process.once('unhandledRejection', handleRejection)
+ const q = buildQueue(async function (task, cb) {
+ throw new Error('test error')
+ }, 1)
+
+ q.push(42)
+
+ await immediate()
+ process.removeListener('unhandledRejection', handleRejection)
+})
+
+test('no unhandledRejection (unshift)', async function (t) {
+ function handleRejection () {
+ t.fail('unhandledRejection')
+ }
+ process.once('unhandledRejection', handleRejection)
+ const q = buildQueue(async function (task, cb) {
+ throw new Error('test error')
+ }, 1)
+
+ q.unshift(42)
+
+ await immediate()
+ process.removeListener('unhandledRejection', handleRejection)
+})
+
+test('drained should resolve after async tasks complete', async function (t) {
+ const logs = []
+
+ async function processTask () {
+ await new Promise(resolve => setTimeout(resolve, 0))
+ logs.push('processed')
+ }
+
+ const queue = buildQueue(processTask, 1)
+ queue.drain = () => logs.push('called drain')
+
+ queue.drained().then(() => logs.push('drained promise resolved'))
+
+ await Promise.all([
+ queue.push(),
+ queue.push(),
+ queue.push()
+ ])
+
+ t.deepEqual(logs, [
+ 'processed',
+ 'processed',
+ 'processed',
+ 'called drain',
+ 'drained promise resolved'
+ ], 'events happened in correct order')
+})
+
+test('drained should handle undefined drain function', async function (t) {
+ const queue = buildQueue(worker, 1)
+
+ async function worker (arg) {
+ await sleep(10)
+ return arg
+ }
+
+ queue.drain = undefined
+ queue.push(1)
+ await queue.drained()
+
+ t.pass('drained resolved successfully with undefined drain')
+})
+
+test('abort rejects all pending promises', async function (t) {
+ const queue = buildQueue(worker, 1)
+ const promises = []
+ let rejectedCount = 0
+
+ // Pause queue to prevent tasks from starting
+ queue.pause()
+
+ for (let i = 0; i < 10; i++) {
+ promises.push(queue.push(i))
+ }
+
+ queue.abort()
+
+ // All promises should be rejected
+ for (const promise of promises) {
+ try {
+ await promise
+ t.fail('promise should have been rejected')
+ } catch (err) {
+ t.equal(err.message, 'abort', 'error message is abort')
+ rejectedCount++
+ }
+ }
+
+ t.equal(rejectedCount, 10, 'all promises were rejected')
+ t.equal(queue.length(), 0, 'queue is empty')
+
+ async function worker (arg) {
+ await sleep(500)
+ return arg
+ }
+})
diff --git a/web/node_modules/fastq/test/test.js b/web/node_modules/fastq/test/test.js
new file mode 100644
index 0000000000000000000000000000000000000000..37e211e9f3e4c15db0537bb111c313106fda03cc
--- /dev/null
+++ b/web/node_modules/fastq/test/test.js
@@ -0,0 +1,733 @@
+'use strict'
+
+/* eslint-disable no-var */
+
+var test = require('tape')
+var buildQueue = require('../')
+
+test('concurrency', function (t) {
+ t.plan(6)
+ t.throws(buildQueue.bind(null, worker, 0))
+ t.throws(buildQueue.bind(null, worker, NaN))
+ t.doesNotThrow(buildQueue.bind(null, worker, 1))
+
+ var queue = buildQueue(worker, 1)
+ t.throws(function () {
+ queue.concurrency = 0
+ })
+ t.throws(function () {
+ queue.concurrency = NaN
+ })
+ t.doesNotThrow(function () {
+ queue.concurrency = 2
+ })
+
+ function worker (arg, cb) {
+ cb(null, true)
+ }
+})
+
+test('worker execution', function (t) {
+ t.plan(3)
+
+ var queue = buildQueue(worker, 1)
+
+ queue.push(42, function (err, result) {
+ t.error(err, 'no error')
+ t.equal(result, true, 'result matches')
+ })
+
+ function worker (arg, cb) {
+ t.equal(arg, 42)
+ cb(null, true)
+ }
+})
+
+test('limit', function (t) {
+ t.plan(4)
+
+ var expected = [10, 0]
+ var queue = buildQueue(worker, 1)
+
+ queue.push(10, result)
+ queue.push(0, result)
+
+ function result (err, arg) {
+ t.error(err, 'no error')
+ t.equal(arg, expected.shift(), 'the result matches')
+ }
+
+ function worker (arg, cb) {
+ setTimeout(cb, arg, null, arg)
+ }
+})
+
+test('multiple executions', function (t) {
+ t.plan(15)
+
+ var queue = buildQueue(worker, 1)
+ var toExec = [1, 2, 3, 4, 5]
+ var count = 0
+
+ toExec.forEach(function (task) {
+ queue.push(task, done)
+ })
+
+ function done (err, result) {
+ t.error(err, 'no error')
+ t.equal(result, toExec[count - 1], 'the result matches')
+ }
+
+ function worker (arg, cb) {
+ t.equal(arg, toExec[count], 'arg matches')
+ count++
+ setImmediate(cb, null, arg)
+ }
+})
+
+test('multiple executions, one after another', function (t) {
+ t.plan(15)
+
+ var queue = buildQueue(worker, 1)
+ var toExec = [1, 2, 3, 4, 5]
+ var count = 0
+
+ queue.push(toExec[0], done)
+
+ function done (err, result) {
+ t.error(err, 'no error')
+ t.equal(result, toExec[count - 1], 'the result matches')
+ if (count < toExec.length) {
+ queue.push(toExec[count], done)
+ }
+ }
+
+ function worker (arg, cb) {
+ t.equal(arg, toExec[count], 'arg matches')
+ count++
+ setImmediate(cb, null, arg)
+ }
+})
+
+test('set this', function (t) {
+ t.plan(3)
+
+ var that = {}
+ var queue = buildQueue(that, worker, 1)
+
+ queue.push(42, function (err, result) {
+ t.error(err, 'no error')
+ t.equal(this, that, 'this matches')
+ })
+
+ function worker (arg, cb) {
+ t.equal(this, that, 'this matches')
+ cb(null, true)
+ }
+})
+
+test('drain', function (t) {
+ t.plan(4)
+
+ var queue = buildQueue(worker, 1)
+ var worked = false
+
+ queue.push(42, function (err, result) {
+ t.error(err, 'no error')
+ t.equal(result, true, 'result matches')
+ })
+
+ queue.drain = function () {
+ t.equal(true, worked, 'drained')
+ }
+
+ function worker (arg, cb) {
+ t.equal(arg, 42)
+ worked = true
+ setImmediate(cb, null, true)
+ }
+})
+
+test('pause && resume', function (t) {
+ t.plan(13)
+
+ var queue = buildQueue(worker, 1)
+ var worked = false
+ var expected = [42, 24]
+
+ t.notOk(queue.paused, 'it should not be paused')
+
+ queue.pause()
+
+ queue.push(42, function (err, result) {
+ t.error(err, 'no error')
+ t.equal(result, true, 'result matches')
+ })
+
+ queue.push(24, function (err, result) {
+ t.error(err, 'no error')
+ t.equal(result, true, 'result matches')
+ })
+
+ t.notOk(worked, 'it should be paused')
+ t.ok(queue.paused, 'it should be paused')
+
+ queue.resume()
+ queue.pause()
+ queue.resume()
+ queue.resume() // second resume is a no-op
+
+ function worker (arg, cb) {
+ t.notOk(queue.paused, 'it should not be paused')
+ t.ok(queue.running() <= queue.concurrency, 'should respect the concurrency')
+ t.equal(arg, expected.shift())
+ worked = true
+ process.nextTick(function () { cb(null, true) })
+ }
+})
+
+test('pause in flight && resume', function (t) {
+ t.plan(16)
+
+ var queue = buildQueue(worker, 1)
+ var expected = [42, 24, 12]
+
+ t.notOk(queue.paused, 'it should not be paused')
+
+ queue.push(42, function (err, result) {
+ t.error(err, 'no error')
+ t.equal(result, true, 'result matches')
+ t.ok(queue.paused, 'it should be paused')
+ process.nextTick(function () {
+ queue.resume()
+ queue.pause()
+ queue.resume()
+ })
+ })
+
+ queue.push(24, function (err, result) {
+ t.error(err, 'no error')
+ t.equal(result, true, 'result matches')
+ t.notOk(queue.paused, 'it should not be paused')
+ })
+
+ queue.push(12, function (err, result) {
+ t.error(err, 'no error')
+ t.equal(result, true, 'result matches')
+ t.notOk(queue.paused, 'it should not be paused')
+ })
+
+ queue.pause()
+
+ function worker (arg, cb) {
+ t.ok(queue.running() <= queue.concurrency, 'should respect the concurrency')
+ t.equal(arg, expected.shift())
+ process.nextTick(function () { cb(null, true) })
+ }
+})
+
+test('altering concurrency', function (t) {
+ t.plan(24)
+
+ var queue = buildQueue(worker, 1)
+
+ queue.push(24, workDone)
+ queue.push(24, workDone)
+ queue.push(24, workDone)
+
+ queue.pause()
+
+ queue.concurrency = 3 // concurrency changes are ignored while paused
+ queue.concurrency = 2
+
+ queue.resume()
+
+ t.equal(queue.running(), 2, '2 jobs running')
+
+ queue.concurrency = 3
+
+ t.equal(queue.running(), 3, '3 jobs running')
+
+ queue.concurrency = 1
+
+ t.equal(queue.running(), 3, '3 jobs running') // running jobs can't be killed
+
+ queue.push(24, workDone)
+ queue.push(24, workDone)
+ queue.push(24, workDone)
+ queue.push(24, workDone)
+
+ function workDone (err, result) {
+ t.error(err, 'no error')
+ t.equal(result, true, 'result matches')
+ }
+
+ function worker (arg, cb) {
+ t.ok(queue.running() <= queue.concurrency, 'should respect the concurrency')
+ setImmediate(function () {
+ cb(null, true)
+ })
+ }
+})
+
+test('idle()', function (t) {
+ t.plan(12)
+
+ var queue = buildQueue(worker, 1)
+
+ t.ok(queue.idle(), 'queue is idle')
+
+ queue.push(42, function (err, result) {
+ t.error(err, 'no error')
+ t.equal(result, true, 'result matches')
+ t.notOk(queue.idle(), 'queue is not idle')
+ })
+
+ queue.push(42, function (err, result) {
+ t.error(err, 'no error')
+ t.equal(result, true, 'result matches')
+ // it will go idle after executing this function
+ setImmediate(function () {
+ t.ok(queue.idle(), 'queue is now idle')
+ })
+ })
+
+ t.notOk(queue.idle(), 'queue is not idle')
+
+ function worker (arg, cb) {
+ t.notOk(queue.idle(), 'queue is not idle')
+ t.equal(arg, 42)
+ setImmediate(cb, null, true)
+ }
+})
+
+test('saturated', function (t) {
+ t.plan(9)
+
+ var queue = buildQueue(worker, 1)
+ var preworked = 0
+ var worked = 0
+
+ queue.saturated = function () {
+ t.pass('saturated')
+ t.equal(preworked, 1, 'started 1 task')
+ t.equal(worked, 0, 'worked zero task')
+ }
+
+ queue.push(42, done)
+ queue.push(42, done)
+
+ function done (err, result) {
+ t.error(err, 'no error')
+ t.equal(result, true, 'result matches')
+ }
+
+ function worker (arg, cb) {
+ t.equal(arg, 42)
+ preworked++
+ setImmediate(function () {
+ worked++
+ cb(null, true)
+ })
+ }
+})
+
+test('length', function (t) {
+ t.plan(7)
+
+ var queue = buildQueue(worker, 1)
+
+ t.equal(queue.length(), 0, 'nothing waiting')
+ queue.push(42, done)
+ t.equal(queue.length(), 0, 'nothing waiting')
+ queue.push(42, done)
+ t.equal(queue.length(), 1, 'one task waiting')
+ queue.push(42, done)
+ t.equal(queue.length(), 2, 'two tasks waiting')
+
+ function done (err, result) {
+ t.error(err, 'no error')
+ }
+
+ function worker (arg, cb) {
+ setImmediate(function () {
+ cb(null, true)
+ })
+ }
+})
+
+test('getQueue', function (t) {
+ t.plan(10)
+
+ var queue = buildQueue(worker, 1)
+
+ t.equal(queue.getQueue().length, 0, 'nothing waiting')
+ queue.push(42, done)
+ t.equal(queue.getQueue().length, 0, 'nothing waiting')
+ queue.push(42, done)
+ t.equal(queue.getQueue().length, 1, 'one task waiting')
+ t.equal(queue.getQueue()[0], 42, 'should be equal')
+ queue.push(43, done)
+ t.equal(queue.getQueue().length, 2, 'two tasks waiting')
+ t.equal(queue.getQueue()[0], 42, 'should be equal')
+ t.equal(queue.getQueue()[1], 43, 'should be equal')
+
+ function done (err, result) {
+ t.error(err, 'no error')
+ }
+
+ function worker (arg, cb) {
+ setImmediate(function () {
+ cb(null, true)
+ })
+ }
+})
+
+test('unshift', function (t) {
+ t.plan(8)
+
+ var queue = buildQueue(worker, 1)
+ var expected = [1, 2, 3, 4]
+
+ queue.push(1, done)
+ queue.push(4, done)
+ queue.unshift(3, done)
+ queue.unshift(2, done)
+
+ function done (err, result) {
+ t.error(err, 'no error')
+ }
+
+ function worker (arg, cb) {
+ t.equal(expected.shift(), arg, 'tasks come in order')
+ setImmediate(function () {
+ cb(null, true)
+ })
+ }
+})
+
+test('unshift && empty', function (t) {
+ t.plan(2)
+
+ var queue = buildQueue(worker, 1)
+ var completed = false
+
+ queue.pause()
+
+ queue.empty = function () {
+ t.notOk(completed, 'the task has not completed yet')
+ }
+
+ queue.unshift(1, done)
+
+ queue.resume()
+
+ function done (err, result) {
+ completed = true
+ t.error(err, 'no error')
+ }
+
+ function worker (arg, cb) {
+ setImmediate(function () {
+ cb(null, true)
+ })
+ }
+})
+
+test('push && empty', function (t) {
+ t.plan(2)
+
+ var queue = buildQueue(worker, 1)
+ var completed = false
+
+ queue.pause()
+
+ queue.empty = function () {
+ t.notOk(completed, 'the task has not completed yet')
+ }
+
+ queue.push(1, done)
+
+ queue.resume()
+
+ function done (err, result) {
+ completed = true
+ t.error(err, 'no error')
+ }
+
+ function worker (arg, cb) {
+ setImmediate(function () {
+ cb(null, true)
+ })
+ }
+})
+
+test('kill', function (t) {
+ t.plan(5)
+
+ var queue = buildQueue(worker, 1)
+ var expected = [1]
+
+ var predrain = queue.drain
+
+ queue.drain = function drain () {
+ t.fail('drain should never be called')
+ }
+
+ queue.push(1, done)
+ queue.push(4, done)
+ queue.unshift(3, done)
+ queue.unshift(2, done)
+ queue.kill()
+
+ function done (err, result) {
+ t.error(err, 'no error')
+ setImmediate(function () {
+ t.equal(queue.length(), 0, 'no queued tasks')
+ t.equal(queue.running(), 0, 'no running tasks')
+ t.equal(queue.drain, predrain, 'drain is back to default')
+ })
+ }
+
+ function worker (arg, cb) {
+ t.equal(expected.shift(), arg, 'tasks come in order')
+ setImmediate(function () {
+ cb(null, true)
+ })
+ }
+})
+
+test('killAndDrain', function (t) {
+ t.plan(6)
+
+ var queue = buildQueue(worker, 1)
+ var expected = [1]
+
+ var predrain = queue.drain
+
+ queue.drain = function drain () {
+ t.pass('drain has been called')
+ }
+
+ queue.push(1, done)
+ queue.push(4, done)
+ queue.unshift(3, done)
+ queue.unshift(2, done)
+ queue.killAndDrain()
+
+ function done (err, result) {
+ t.error(err, 'no error')
+ setImmediate(function () {
+ t.equal(queue.length(), 0, 'no queued tasks')
+ t.equal(queue.running(), 0, 'no running tasks')
+ t.equal(queue.drain, predrain, 'drain is back to default')
+ })
+ }
+
+ function worker (arg, cb) {
+ t.equal(expected.shift(), arg, 'tasks come in order')
+ setImmediate(function () {
+ cb(null, true)
+ })
+ }
+})
+
+test('pause && idle', function (t) {
+ t.plan(11)
+
+ var queue = buildQueue(worker, 1)
+ var worked = false
+
+ t.notOk(queue.paused, 'it should not be paused')
+ t.ok(queue.idle(), 'should be idle')
+
+ queue.pause()
+
+ queue.push(42, function (err, result) {
+ t.error(err, 'no error')
+ t.equal(result, true, 'result matches')
+ })
+
+ t.notOk(worked, 'it should be paused')
+ t.ok(queue.paused, 'it should be paused')
+ t.notOk(queue.idle(), 'should not be idle')
+
+ queue.resume()
+
+ t.notOk(queue.paused, 'it should not be paused')
+ t.notOk(queue.idle(), 'it should not be idle')
+
+ function worker (arg, cb) {
+ t.equal(arg, 42)
+ worked = true
+ process.nextTick(cb.bind(null, null, true))
+ process.nextTick(function () {
+ t.ok(queue.idle(), 'is should be idle')
+ })
+ }
+})
+
+test('push without cb', function (t) {
+ t.plan(1)
+
+ var queue = buildQueue(worker, 1)
+
+ queue.push(42)
+
+ function worker (arg, cb) {
+ t.equal(arg, 42)
+ cb()
+ }
+})
+
+test('unshift without cb', function (t) {
+ t.plan(1)
+
+ var queue = buildQueue(worker, 1)
+
+ queue.unshift(42)
+
+ function worker (arg, cb) {
+ t.equal(arg, 42)
+ cb()
+ }
+})
+
+test('push with worker throwing error', function (t) {
+ t.plan(5)
+ var q = buildQueue(function (task, cb) {
+ cb(new Error('test error'), null)
+ }, 1)
+ q.error(function (err, task) {
+ t.ok(err instanceof Error, 'global error handler should catch the error')
+ t.match(err.message, /test error/, 'error message should be "test error"')
+ t.equal(task, 42, 'The task executed should be passed')
+ })
+ q.push(42, function (err) {
+ t.ok(err instanceof Error, 'push callback should catch the error')
+ t.match(err.message, /test error/, 'error message should be "test error"')
+ })
+})
+
+test('unshift with worker throwing error', function (t) {
+ t.plan(5)
+ var q = buildQueue(function (task, cb) {
+ cb(new Error('test error'), null)
+ }, 1)
+ q.error(function (err, task) {
+ t.ok(err instanceof Error, 'global error handler should catch the error')
+ t.match(err.message, /test error/, 'error message should be "test error"')
+ t.equal(task, 42, 'The task executed should be passed')
+ })
+ q.unshift(42, function (err) {
+ t.ok(err instanceof Error, 'unshift callback should catch the error')
+ t.match(err.message, /test error/, 'error message should be "test error"')
+ })
+})
+
+test('pause/resume should trigger drain event', function (t) {
+ t.plan(1)
+
+ var queue = buildQueue(worker, 1)
+ queue.pause()
+ queue.drain = function () {
+ t.pass('drain should be called')
+ }
+
+ function worker (arg, cb) {
+ cb(null, true)
+ }
+
+ queue.resume()
+})
+
+test('paused flag', function (t) {
+ t.plan(2)
+
+ var queue = buildQueue(function (arg, cb) {
+ cb(null)
+ }, 1)
+ t.equal(queue.paused, false)
+ queue.pause()
+ t.equal(queue.paused, true)
+})
+
+test('abort', function (t) {
+ t.plan(11)
+
+ var queue = buildQueue(worker, 1)
+ var abortedTasks = 0
+
+ var predrain = queue.drain
+
+ queue.drain = function drain () {
+ t.fail('drain should never be called')
+ }
+
+ // Pause queue to prevent tasks from starting
+ queue.pause()
+ queue.push(1, doneAborted)
+ queue.push(4, doneAborted)
+ queue.unshift(3, doneAborted)
+ queue.unshift(2, doneAborted)
+
+ // Abort all queued tasks
+ queue.abort()
+
+ // Verify state after abort
+ t.equal(queue.length(), 0, 'no queued tasks after abort')
+ t.equal(queue.drain, predrain, 'drain is back to default')
+
+ setImmediate(function () {
+ t.equal(abortedTasks, 4, 'all queued tasks were aborted')
+ })
+
+ function doneAborted (err) {
+ t.ok(err, 'error is present')
+ t.equal(err.message, 'abort', 'error message is abort')
+ abortedTasks++
+ }
+
+ function worker (arg, cb) {
+ t.fail('worker should not be called')
+ setImmediate(function () {
+ cb(null, true)
+ })
+ }
+})
+
+test('abort with error handler', function (t) {
+ t.plan(7)
+
+ var queue = buildQueue(worker, 1)
+ var errorHandlerCalled = 0
+
+ queue.error(function (err, task) {
+ t.equal(err.message, 'abort', 'error handler receives abort error')
+ t.ok(task !== null, 'error handler receives task value')
+ errorHandlerCalled++
+ })
+
+ // Pause queue to prevent tasks from starting
+ queue.pause()
+ queue.push(1, doneAborted)
+ queue.push(2, doneAborted)
+
+ // Abort all queued tasks
+ queue.abort()
+
+ setImmediate(function () {
+ t.equal(errorHandlerCalled, 2, 'error handler called for all aborted tasks')
+ })
+
+ function doneAborted (err) {
+ t.ok(err, 'callback receives error')
+ }
+
+ function worker (arg, cb) {
+ t.fail('worker should not be called')
+ setImmediate(function () {
+ cb(null, true)
+ })
+ }
+})
diff --git a/web/node_modules/fastq/test/tsconfig.json b/web/node_modules/fastq/test/tsconfig.json
new file mode 100644
index 0000000000000000000000000000000000000000..66e16e93052a3411133dcc8cc957ba86eb409b8e
--- /dev/null
+++ b/web/node_modules/fastq/test/tsconfig.json
@@ -0,0 +1,11 @@
+{
+ "compilerOptions": {
+ "target": "es6",
+ "module": "commonjs",
+ "noEmit": true,
+ "strict": true
+ },
+ "files": [
+ "./example.ts"
+ ]
+}
diff --git a/web/node_modules/fdir/LICENSE b/web/node_modules/fdir/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..bb7fdee44cae62e39a6f641dddd9016f265069f7
--- /dev/null
+++ b/web/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/web/node_modules/fdir/README.md b/web/node_modules/fdir/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..5c70530fa063fb25cdffcc78b8588c0495e2cbb3
--- /dev/null
+++ b/web/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/web/node_modules/fdir/dist/index.cjs b/web/node_modules/fdir/dist/index.cjs
new file mode 100644
index 0000000000000000000000000000000000000000..4868ffba35d991e03831204695d11e703a78c2d3
--- /dev/null
+++ b/web/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/web/node_modules/fdir/dist/index.d.cts b/web/node_modules/fdir/dist/index.d.cts
new file mode 100644
index 0000000000000000000000000000000000000000..f448ef5d9b563fca8360766b16cd259be4b9df5c
--- /dev/null
+++ b/web/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/web/node_modules/fdir/dist/index.d.mts b/web/node_modules/fdir/dist/index.d.mts
new file mode 100644
index 0000000000000000000000000000000000000000..f448ef5d9b563fca8360766b16cd259be4b9df5c
--- /dev/null
+++ b/web/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/web/node_modules/fdir/dist/index.mjs b/web/node_modules/fdir/dist/index.mjs
new file mode 100644
index 0000000000000000000000000000000000000000..5c37e092b507dccc97d1b5a815cecceb94445698
--- /dev/null
+++ b/web/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/web/node_modules/fdir/package.json b/web/node_modules/fdir/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..e229dff81508001e377a1cebc22b3d81f501e7bc
--- /dev/null
+++ b/web/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/web/node_modules/fill-range/LICENSE b/web/node_modules/fill-range/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..9af4a67d206f24ecdbb5fdff2839041ca0bbd346
--- /dev/null
+++ b/web/node_modules/fill-range/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014-present, Jon Schlinkert.
+
+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/web/node_modules/fill-range/README.md b/web/node_modules/fill-range/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..8d756fe9016aec005378ea1b61e599d944ffa4d3
--- /dev/null
+++ b/web/node_modules/fill-range/README.md
@@ -0,0 +1,237 @@
+# fill-range [](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=W8YFZ425KND68) [](https://www.npmjs.com/package/fill-range) [](https://npmjs.org/package/fill-range) [](https://npmjs.org/package/fill-range) [](https://travis-ci.org/jonschlinkert/fill-range)
+
+> Fill in a range of numbers or letters, optionally passing an increment or `step` to use, or create a regex-compatible range with `options.toRegex`
+
+Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support.
+
+## Install
+
+Install with [npm](https://www.npmjs.com/):
+
+```sh
+$ npm install --save fill-range
+```
+
+## Usage
+
+Expands numbers and letters, optionally using a `step` as the last argument. _(Numbers may be defined as JavaScript numbers or strings)_.
+
+```js
+const fill = require('fill-range');
+// fill(from, to[, step, options]);
+
+console.log(fill('1', '10')); //=> ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10']
+console.log(fill('1', '10', { toRegex: true })); //=> [1-9]|10
+```
+
+**Params**
+
+* `from`: **{String|Number}** the number or letter to start with
+* `to`: **{String|Number}** the number or letter to end with
+* `step`: **{String|Number|Object|Function}** Optionally pass a [step](#optionsstep) to use.
+* `options`: **{Object|Function}**: See all available [options](#options)
+
+## Examples
+
+By default, an array of values is returned.
+
+**Alphabetical ranges**
+
+```js
+console.log(fill('a', 'e')); //=> ['a', 'b', 'c', 'd', 'e']
+console.log(fill('A', 'E')); //=> [ 'A', 'B', 'C', 'D', 'E' ]
+```
+
+**Numerical ranges**
+
+Numbers can be defined as actual numbers or strings.
+
+```js
+console.log(fill(1, 5)); //=> [ 1, 2, 3, 4, 5 ]
+console.log(fill('1', '5')); //=> [ 1, 2, 3, 4, 5 ]
+```
+
+**Negative ranges**
+
+Numbers can be defined as actual numbers or strings.
+
+```js
+console.log(fill('-5', '-1')); //=> [ '-5', '-4', '-3', '-2', '-1' ]
+console.log(fill('-5', '5')); //=> [ '-5', '-4', '-3', '-2', '-1', '0', '1', '2', '3', '4', '5' ]
+```
+
+**Steps (increments)**
+
+```js
+// numerical ranges with increments
+console.log(fill('0', '25', 4)); //=> [ '0', '4', '8', '12', '16', '20', '24' ]
+console.log(fill('0', '25', 5)); //=> [ '0', '5', '10', '15', '20', '25' ]
+console.log(fill('0', '25', 6)); //=> [ '0', '6', '12', '18', '24' ]
+
+// alphabetical ranges with increments
+console.log(fill('a', 'z', 4)); //=> [ 'a', 'e', 'i', 'm', 'q', 'u', 'y' ]
+console.log(fill('a', 'z', 5)); //=> [ 'a', 'f', 'k', 'p', 'u', 'z' ]
+console.log(fill('a', 'z', 6)); //=> [ 'a', 'g', 'm', 's', 'y' ]
+```
+
+## Options
+
+### options.step
+
+**Type**: `number` (formatted as a string or number)
+
+**Default**: `undefined`
+
+**Description**: The increment to use for the range. Can be used with letters or numbers.
+
+**Example(s)**
+
+```js
+// numbers
+console.log(fill('1', '10', 2)); //=> [ '1', '3', '5', '7', '9' ]
+console.log(fill('1', '10', 3)); //=> [ '1', '4', '7', '10' ]
+console.log(fill('1', '10', 4)); //=> [ '1', '5', '9' ]
+
+// letters
+console.log(fill('a', 'z', 5)); //=> [ 'a', 'f', 'k', 'p', 'u', 'z' ]
+console.log(fill('a', 'z', 7)); //=> [ 'a', 'h', 'o', 'v' ]
+console.log(fill('a', 'z', 9)); //=> [ 'a', 'j', 's' ]
+```
+
+### options.strictRanges
+
+**Type**: `boolean`
+
+**Default**: `false`
+
+**Description**: By default, `null` is returned when an invalid range is passed. Enable this option to throw a `RangeError` on invalid ranges.
+
+**Example(s)**
+
+The following are all invalid:
+
+```js
+fill('1.1', '2'); // decimals not supported in ranges
+fill('a', '2'); // incompatible range values
+fill(1, 10, 'foo'); // invalid "step" argument
+```
+
+### options.stringify
+
+**Type**: `boolean`
+
+**Default**: `undefined`
+
+**Description**: Cast all returned values to strings. By default, integers are returned as numbers.
+
+**Example(s)**
+
+```js
+console.log(fill(1, 5)); //=> [ 1, 2, 3, 4, 5 ]
+console.log(fill(1, 5, { stringify: true })); //=> [ '1', '2', '3', '4', '5' ]
+```
+
+### options.toRegex
+
+**Type**: `boolean`
+
+**Default**: `undefined`
+
+**Description**: Create a regex-compatible source string, instead of expanding values to an array.
+
+**Example(s)**
+
+```js
+// alphabetical range
+console.log(fill('a', 'e', { toRegex: true })); //=> '[a-e]'
+// alphabetical with step
+console.log(fill('a', 'z', 3, { toRegex: true })); //=> 'a|d|g|j|m|p|s|v|y'
+// numerical range
+console.log(fill('1', '100', { toRegex: true })); //=> '[1-9]|[1-9][0-9]|100'
+// numerical range with zero padding
+console.log(fill('000001', '100000', { toRegex: true }));
+//=> '0{5}[1-9]|0{4}[1-9][0-9]|0{3}[1-9][0-9]{2}|0{2}[1-9][0-9]{3}|0[1-9][0-9]{4}|100000'
+```
+
+### options.transform
+
+**Type**: `function`
+
+**Default**: `undefined`
+
+**Description**: Customize each value in the returned array (or [string](#optionstoRegex)). _(you can also pass this function as the last argument to `fill()`)_.
+
+**Example(s)**
+
+```js
+// add zero padding
+console.log(fill(1, 5, value => String(value).padStart(4, '0')));
+//=> ['0001', '0002', '0003', '0004', '0005']
+```
+
+## About
+
+
+Contributing
+
+Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
+
+
+
+
+Running Tests
+
+Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
+
+```sh
+$ npm install && npm test
+```
+
+
+
+
+Building docs
+
+_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_
+
+To generate the readme, run the following command:
+
+```sh
+$ npm install -g verbose/verb#dev verb-generate-readme && verb
+```
+
+
+
+### Contributors
+
+| **Commits** | **Contributor** |
+| --- | --- |
+| 116 | [jonschlinkert](https://github.com/jonschlinkert) |
+| 4 | [paulmillr](https://github.com/paulmillr) |
+| 2 | [realityking](https://github.com/realityking) |
+| 2 | [bluelovers](https://github.com/bluelovers) |
+| 1 | [edorivai](https://github.com/edorivai) |
+| 1 | [wtgtybhertgeghgtwtg](https://github.com/wtgtybhertgeghgtwtg) |
+
+### Author
+
+**Jon Schlinkert**
+
+* [GitHub Profile](https://github.com/jonschlinkert)
+* [Twitter Profile](https://twitter.com/jonschlinkert)
+* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert)
+
+Please consider supporting me on Patreon, or [start your own Patreon page](https://patreon.com/invite/bxpbvm)!
+
+
+
+
+
+### License
+
+Copyright © 2019, [Jon Schlinkert](https://github.com/jonschlinkert).
+Released under the [MIT License](LICENSE).
+
+***
+
+_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on April 08, 2019._
\ No newline at end of file
diff --git a/web/node_modules/fill-range/index.js b/web/node_modules/fill-range/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..ddb212ee2873d7c13624c47265c56f38fbb4ed1c
--- /dev/null
+++ b/web/node_modules/fill-range/index.js
@@ -0,0 +1,248 @@
+/*!
+ * fill-range
+ *
+ * Copyright (c) 2014-present, Jon Schlinkert.
+ * Licensed under the MIT License.
+ */
+
+'use strict';
+
+const util = require('util');
+const toRegexRange = require('to-regex-range');
+
+const isObject = val => val !== null && typeof val === 'object' && !Array.isArray(val);
+
+const transform = toNumber => {
+ return value => toNumber === true ? Number(value) : String(value);
+};
+
+const isValidValue = value => {
+ return typeof value === 'number' || (typeof value === 'string' && value !== '');
+};
+
+const isNumber = num => Number.isInteger(+num);
+
+const zeros = input => {
+ let value = `${input}`;
+ let index = -1;
+ if (value[0] === '-') value = value.slice(1);
+ if (value === '0') return false;
+ while (value[++index] === '0');
+ return index > 0;
+};
+
+const stringify = (start, end, options) => {
+ if (typeof start === 'string' || typeof end === 'string') {
+ return true;
+ }
+ return options.stringify === true;
+};
+
+const pad = (input, maxLength, toNumber) => {
+ if (maxLength > 0) {
+ let dash = input[0] === '-' ? '-' : '';
+ if (dash) input = input.slice(1);
+ input = (dash + input.padStart(dash ? maxLength - 1 : maxLength, '0'));
+ }
+ if (toNumber === false) {
+ return String(input);
+ }
+ return input;
+};
+
+const toMaxLen = (input, maxLength) => {
+ let negative = input[0] === '-' ? '-' : '';
+ if (negative) {
+ input = input.slice(1);
+ maxLength--;
+ }
+ while (input.length < maxLength) input = '0' + input;
+ return negative ? ('-' + input) : input;
+};
+
+const toSequence = (parts, options, maxLen) => {
+ parts.negatives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
+ parts.positives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
+
+ let prefix = options.capture ? '' : '?:';
+ let positives = '';
+ let negatives = '';
+ let result;
+
+ if (parts.positives.length) {
+ positives = parts.positives.map(v => toMaxLen(String(v), maxLen)).join('|');
+ }
+
+ if (parts.negatives.length) {
+ negatives = `-(${prefix}${parts.negatives.map(v => toMaxLen(String(v), maxLen)).join('|')})`;
+ }
+
+ if (positives && negatives) {
+ result = `${positives}|${negatives}`;
+ } else {
+ result = positives || negatives;
+ }
+
+ if (options.wrap) {
+ return `(${prefix}${result})`;
+ }
+
+ return result;
+};
+
+const toRange = (a, b, isNumbers, options) => {
+ if (isNumbers) {
+ return toRegexRange(a, b, { wrap: false, ...options });
+ }
+
+ let start = String.fromCharCode(a);
+ if (a === b) return start;
+
+ let stop = String.fromCharCode(b);
+ return `[${start}-${stop}]`;
+};
+
+const toRegex = (start, end, options) => {
+ if (Array.isArray(start)) {
+ let wrap = options.wrap === true;
+ let prefix = options.capture ? '' : '?:';
+ return wrap ? `(${prefix}${start.join('|')})` : start.join('|');
+ }
+ return toRegexRange(start, end, options);
+};
+
+const rangeError = (...args) => {
+ return new RangeError('Invalid range arguments: ' + util.inspect(...args));
+};
+
+const invalidRange = (start, end, options) => {
+ if (options.strictRanges === true) throw rangeError([start, end]);
+ return [];
+};
+
+const invalidStep = (step, options) => {
+ if (options.strictRanges === true) {
+ throw new TypeError(`Expected step "${step}" to be a number`);
+ }
+ return [];
+};
+
+const fillNumbers = (start, end, step = 1, options = {}) => {
+ let a = Number(start);
+ let b = Number(end);
+
+ if (!Number.isInteger(a) || !Number.isInteger(b)) {
+ if (options.strictRanges === true) throw rangeError([start, end]);
+ return [];
+ }
+
+ // fix negative zero
+ if (a === 0) a = 0;
+ if (b === 0) b = 0;
+
+ let descending = a > b;
+ let startString = String(start);
+ let endString = String(end);
+ let stepString = String(step);
+ step = Math.max(Math.abs(step), 1);
+
+ let padded = zeros(startString) || zeros(endString) || zeros(stepString);
+ let maxLen = padded ? Math.max(startString.length, endString.length, stepString.length) : 0;
+ let toNumber = padded === false && stringify(start, end, options) === false;
+ let format = options.transform || transform(toNumber);
+
+ if (options.toRegex && step === 1) {
+ return toRange(toMaxLen(start, maxLen), toMaxLen(end, maxLen), true, options);
+ }
+
+ let parts = { negatives: [], positives: [] };
+ let push = num => parts[num < 0 ? 'negatives' : 'positives'].push(Math.abs(num));
+ let range = [];
+ let index = 0;
+
+ while (descending ? a >= b : a <= b) {
+ if (options.toRegex === true && step > 1) {
+ push(a);
+ } else {
+ range.push(pad(format(a, index), maxLen, toNumber));
+ }
+ a = descending ? a - step : a + step;
+ index++;
+ }
+
+ if (options.toRegex === true) {
+ return step > 1
+ ? toSequence(parts, options, maxLen)
+ : toRegex(range, null, { wrap: false, ...options });
+ }
+
+ return range;
+};
+
+const fillLetters = (start, end, step = 1, options = {}) => {
+ if ((!isNumber(start) && start.length > 1) || (!isNumber(end) && end.length > 1)) {
+ return invalidRange(start, end, options);
+ }
+
+ let format = options.transform || (val => String.fromCharCode(val));
+ let a = `${start}`.charCodeAt(0);
+ let b = `${end}`.charCodeAt(0);
+
+ let descending = a > b;
+ let min = Math.min(a, b);
+ let max = Math.max(a, b);
+
+ if (options.toRegex && step === 1) {
+ return toRange(min, max, false, options);
+ }
+
+ let range = [];
+ let index = 0;
+
+ while (descending ? a >= b : a <= b) {
+ range.push(format(a, index));
+ a = descending ? a - step : a + step;
+ index++;
+ }
+
+ if (options.toRegex === true) {
+ return toRegex(range, null, { wrap: false, options });
+ }
+
+ return range;
+};
+
+const fill = (start, end, step, options = {}) => {
+ if (end == null && isValidValue(start)) {
+ return [start];
+ }
+
+ if (!isValidValue(start) || !isValidValue(end)) {
+ return invalidRange(start, end, options);
+ }
+
+ if (typeof step === 'function') {
+ return fill(start, end, 1, { transform: step });
+ }
+
+ if (isObject(step)) {
+ return fill(start, end, 0, step);
+ }
+
+ let opts = { ...options };
+ if (opts.capture === true) opts.wrap = true;
+ step = step || opts.step || 1;
+
+ if (!isNumber(step)) {
+ if (step != null && !isObject(step)) return invalidStep(step, opts);
+ return fill(start, end, 1, step);
+ }
+
+ if (isNumber(start) && isNumber(end)) {
+ return fillNumbers(start, end, step, opts);
+ }
+
+ return fillLetters(start, end, Math.max(Math.abs(step), 1), opts);
+};
+
+module.exports = fill;
diff --git a/web/node_modules/fill-range/package.json b/web/node_modules/fill-range/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..582357fb50baf6d7ceb473732ae6f2179ab4ff7b
--- /dev/null
+++ b/web/node_modules/fill-range/package.json
@@ -0,0 +1,74 @@
+{
+ "name": "fill-range",
+ "description": "Fill in a range of numbers or letters, optionally passing an increment or `step` to use, or create a regex-compatible range with `options.toRegex`",
+ "version": "7.1.1",
+ "homepage": "https://github.com/jonschlinkert/fill-range",
+ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",
+ "contributors": [
+ "Edo Rivai (edo.rivai.nl)",
+ "Jon Schlinkert (http://twitter.com/jonschlinkert)",
+ "Paul Miller (paulmillr.com)",
+ "Rouven Weßling (www.rouvenwessling.de)",
+ "(https://github.com/wtgtybhertgeghgtwtg)"
+ ],
+ "repository": "jonschlinkert/fill-range",
+ "bugs": {
+ "url": "https://github.com/jonschlinkert/fill-range/issues"
+ },
+ "license": "MIT",
+ "files": [
+ "index.js"
+ ],
+ "main": "index.js",
+ "engines": {
+ "node": ">=8"
+ },
+ "scripts": {
+ "lint": "eslint --cache --cache-location node_modules/.cache/.eslintcache --report-unused-disable-directives --ignore-path .gitignore .",
+ "mocha": "mocha --reporter dot",
+ "test": "npm run lint && npm run mocha",
+ "test:ci": "npm run test:cover",
+ "test:cover": "nyc npm run mocha"
+ },
+ "dependencies": {
+ "to-regex-range": "^5.0.1"
+ },
+ "devDependencies": {
+ "gulp-format-md": "^2.0.0",
+ "mocha": "^6.1.1",
+ "nyc": "^15.1.0"
+ },
+ "keywords": [
+ "alpha",
+ "alphabetical",
+ "array",
+ "bash",
+ "brace",
+ "expand",
+ "expansion",
+ "fill",
+ "glob",
+ "match",
+ "matches",
+ "matching",
+ "number",
+ "numerical",
+ "range",
+ "ranges",
+ "regex",
+ "sh"
+ ],
+ "verb": {
+ "toc": false,
+ "layout": "default",
+ "tasks": [
+ "readme"
+ ],
+ "plugins": [
+ "gulp-format-md"
+ ],
+ "lint": {
+ "reflinks": true
+ }
+ }
+}
diff --git a/web/node_modules/fraction.js/CHANGELOG.md b/web/node_modules/fraction.js/CHANGELOG.md
new file mode 100644
index 0000000000000000000000000000000000000000..ec492a7edea7593b02845e6051ecbcb9f8421dc7
--- /dev/null
+++ b/web/node_modules/fraction.js/CHANGELOG.md
@@ -0,0 +1,38 @@
+# CHANGELOG
+
+v5.2.2
+ - Improved documentation and removed unecessary check
+
+v5.2.1:
+ - 2bb7b05: Added negative sign check
+
+v5.2:
+ - 6f9d124: Implemented log and improved simplify
+ - b773e7a: Added named export to TS definition
+ - 70304f9: Fixed merge conflict
+ - 3b940d3: Implemented other comparing functions
+ - 10acdfc: Update README.md
+ - ba41d00: Update README.md
+ - 73ded97: Update README.md
+ - acabc39: Fixed param parsing
+
+v5.0.5:
+ - 2c9d4c2: Improved roundTo() and param parser
+
+v5.0.4:
+ - 39e61e7: Fixed bignum param passing
+
+v5.0.3:
+ - 7d9a3ec: Upgraded bundler for code quality
+
+v5.0.2:
+ - c64b1d6: fixed esm export
+
+v5.0.1:
+ - e440f9c: Fixed CJS export
+ - 9bbdd29: Fixed CJS export
+
+v5.0.0:
+ - ac7cd06: Fixed readme
+ - 33cc9e5: Added crude build
+ - 1adcc76: Release breaking v5.0. Fraction.js now builds on BigInt. The API stays the same as v4, except that the object attributes `n`, `d`, and `s`, are not Number but BigInt and may break code that directly accesses these attributes.
\ No newline at end of file
diff --git a/web/node_modules/fraction.js/LICENSE b/web/node_modules/fraction.js/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..8741015cee6c26b5fcf5962e96f717eea10fce35
--- /dev/null
+++ b/web/node_modules/fraction.js/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2025 Robert Eisele
+
+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/web/node_modules/fraction.js/README.md b/web/node_modules/fraction.js/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..e53343e850c7c3730d1e86bcd462c32b0d959269
--- /dev/null
+++ b/web/node_modules/fraction.js/README.md
@@ -0,0 +1,520 @@
+# Fraction.js - ℚ in JavaScript
+
+[](https://npmjs.org/package/fraction.js "View this project on npm")
+[](http://opensource.org/licenses/MIT)
+
+Do you find the limitations of floating-point arithmetic frustrating, especially when rational and irrational numbers like π or √2 are stored within the same finite precision? This can lead to avoidable inaccuracies such as:
+
+```javascript
+1 / 98 * 98 // Results in 0.9999999999999999
+```
+
+For applications requiring higher precision or where working with fractions is preferable, consider incorporating *Fraction.js* into your project.
+
+The library effectively addresses precision issues, as demonstrated below:
+
+```javascript
+Fraction(1).div(98).mul(98) // Returns 1
+```
+
+*Fraction.js* uses a `BigInt` representation for both the numerator and denominator, ensuring minimal performance overhead while maximizing accuracy. Its design is optimized for precision, making it an ideal choice as a foundational library for other math tools, such as [Polynomial.js](https://github.com/rawify/Polynomial.js) and [Math.js](https://github.com/josdejong/mathjs).
+
+## Convert Decimal to Fraction
+
+One of the core features of *Fraction.js* is its ability to seamlessly convert decimal numbers into fractions.
+
+```javascript
+let x = new Fraction(1.88);
+let res = x.toFraction(true); // Returns "1 22/25" as a string
+```
+
+This is particularly useful when you need precise fraction representations instead of dealing with the limitations of floating-point arithmetic. What if you allow some error tolerance?
+
+```javascript
+let x = new Fraction(0.33333);
+let res = x.simplify(0.001) // Error < 0.001
+ .toFraction(); // Returns "1/3" as a string
+```
+
+## Precision
+
+As native `BigInt` support in JavaScript becomes more common, libraries like *Fraction.js* use it to handle calculations with higher precision. This improves the speed and accuracy of math operations with large numbers, providing a better solution for tasks that need more precision than floating-point numbers can offer.
+
+## Examples / Motivation
+
+A simple example of using *Fraction.js* might look like this:
+
+```javascript
+var f = new Fraction("9.4'31'"); // 9.4313131313131...
+f.mul([-4, 3]).mod("4.'8'"); // 4.88888888888888...
+```
+
+The result can then be displayed as:
+
+```javascript
+console.log(f.toFraction()); // -4154 / 1485
+```
+
+Additionally, you can access the internal attributes of the fraction, such as the sign (s), numerator (n), and denominator (d). Keep in mind that these values are stored as `BigInt`:
+
+```javascript
+Number(f.s) * Number(f.n) / Number(f.d) = -1 * 4154 / 1485 = -2.797306...
+```
+
+If you attempted to calculate this manually using floating-point arithmetic, you'd get something like:
+
+```javascript
+(9.4313131 * (-4 / 3)) % 4.888888 = -2.797308133...
+```
+
+While the result is reasonably close, it’s not as accurate as the fraction-based approach that *Fraction.js* provides, especially when dealing with repeating decimals or complex operations. This highlights the value of precision that the library brings.
+
+### Laplace Probability
+
+Here's a straightforward example of using *Fraction.js* to calculate probabilities. Let's determine the probability of rolling a specific outcome on a fair die:
+
+- **P({3})**: The probability of rolling a 3.
+- **P({1, 4})**: The probability of rolling either 1 or 4.
+- **P({2, 4, 6})**: The probability of rolling 2, 4, or 6.
+
+#### P({3}):
+
+```javascript
+var p = new Fraction([3].length, 6).toString(); // "0.1(6)"
+```
+
+#### P({1, 4}):
+
+```javascript
+var p = new Fraction([1, 4].length, 6).toString(); // "0.(3)"
+```
+
+#### P({2, 4, 6}):
+
+```javascript
+var p = new Fraction([2, 4, 6].length, 6).toString(); // "0.5"
+```
+
+### Convert degrees/minutes/seconds to precise rational representation:
+
+57+45/60+17/3600
+
+```javascript
+var deg = 57; // 57°
+var min = 45; // 45 Minutes
+var sec = 17; // 17 Seconds
+
+new Fraction(deg).add(min, 60).add(sec, 3600).toString() // -> 57.7547(2)
+```
+
+
+### Rational approximation of irrational numbers
+
+To approximate a number like *sqrt(5) - 2* with a numerator and denominator, you can reformat the equation as follows: *pow(n / d + 2, 2) = 5*.
+
+Then the following algorithm will generate the rational number besides the binary representation.
+
+```javascript
+var x = "/", s = "";
+
+var a = new Fraction(0),
+ b = new Fraction(1);
+for (var n = 0; n <= 10; n++) {
+
+ var c = a.add(b).div(2);
+
+ console.log(n + "\t" + a + "\t" + b + "\t" + c + "\t" + x);
+
+ if (c.add(2).pow(2).valueOf() < 5) {
+ a = c;
+ x = "1";
+ } else {
+ b = c;
+ x = "0";
+ }
+ s+= x;
+}
+console.log(s)
+```
+
+The result is
+
+```
+n a[n] b[n] c[n] x[n]
+0 0/1 1/1 1/2 /
+1 0/1 1/2 1/4 0
+2 0/1 1/4 1/8 0
+3 1/8 1/4 3/16 1
+4 3/16 1/4 7/32 1
+5 7/32 1/4 15/64 1
+6 15/64 1/4 31/128 1
+7 15/64 31/128 61/256 0
+8 15/64 61/256 121/512 0
+9 15/64 121/512 241/1024 0
+10 241/1024 121/512 483/2048 1
+```
+
+Thus the approximation after 11 iterations of the bisection method is *483 / 2048* and the binary representation is 0.00111100011 (see [WolframAlpha](http://www.wolframalpha.com/input/?i=sqrt%285%29-2+binary))
+
+I published another example on how to approximate PI with fraction.js on my [blog](https://raw.org/article/rational-numbers-in-javascript/) (Still not the best idea to approximate irrational numbers, but it illustrates the capabilities of Fraction.js perfectly).
+
+
+### Get the exact fractional part of a number
+
+```javascript
+var f = new Fraction("-6.(3416)");
+console.log(f.mod(1).abs().toFraction()); // = 3416/9999
+```
+
+### Mathematical correct modulo
+
+The behaviour on negative congruences is different to most modulo implementations in computer science. Even the *mod()* function of Fraction.js behaves in the typical way. To solve the problem of having the mathematical correct modulo with Fraction.js you could come up with this:
+
+```javascript
+var a = -1;
+var b = 10.99;
+
+console.log(new Fraction(a)
+ .mod(b)); // Not correct, usual Modulo
+
+console.log(new Fraction(a)
+ .mod(b).add(b).mod(b)); // Correct! Mathematical Modulo
+```
+
+fmod() imprecision circumvented
+---
+It turns out that Fraction.js outperforms almost any fmod() implementation, including JavaScript itself, [php.js](http://phpjs.org/functions/fmod/), C++, Python, Java and even Wolframalpha due to the fact that numbers like 0.05, 0.1, ... are infinite decimal in base 2.
+
+The equation *fmod(4.55, 0.05)* gives *0.04999999999999957*, wolframalpha says *1/20*. The correct answer should be **zero**, as 0.05 divides 4.55 without any remainder.
+
+
+## Parser
+
+Any function (see below) as well as the constructor of the *Fraction* class parses its input and reduce it to the smallest term.
+
+You can pass either Arrays, Objects, Integers, Doubles or Strings.
+
+### Arrays / Objects
+
+```javascript
+new Fraction(numerator, denominator);
+new Fraction([numerator, denominator]);
+new Fraction({n: numerator, d: denominator});
+```
+
+### Integers
+
+```javascript
+new Fraction(123);
+```
+
+### Doubles
+
+```javascript
+new Fraction(55.4);
+```
+
+**Note:** If you pass a double as it is, Fraction.js will perform a number analysis based on Farey Sequences. If you concern performance, cache Fraction.js objects and pass arrays/objects.
+
+The method is really precise, but too large exact numbers, like 1234567.9991829 will result in a wrong approximation. If you want to keep the number as it is, convert it to a string, as the string parser will not perform any further observations. If you have problems with the approximation, in the file `examples/approx.js` is a different approximation algorithm, which might work better in some more specific use-cases.
+
+
+### Strings
+
+```javascript
+new Fraction("123.45");
+new Fraction("123/45"); // A rational number represented as two decimals, separated by a slash
+new Fraction("123:45"); // A rational number represented as two decimals, separated by a colon
+new Fraction("4 123/45"); // A rational number represented as a whole number and a fraction
+new Fraction("123.'456'"); // Note the quotes, see below!
+new Fraction("123.(456)"); // Note the brackets, see below!
+new Fraction("123.45'6'"); // Note the quotes, see below!
+new Fraction("123.45(6)"); // Note the brackets, see below!
+```
+
+### Two arguments
+
+```javascript
+new Fraction(3, 2); // 3/2 = 1.5
+```
+
+### Repeating decimal places
+
+*Fraction.js* can easily handle repeating decimal places. For example *1/3* is *0.3333...*. There is only one repeating digit. As you can see in the examples above, you can pass a number like *1/3* as "0.'3'" or "0.(3)", which are synonym. There are no tests to parse something like 0.166666666 to 1/6! If you really want to handle this number, wrap around brackets on your own with the function below for example: 0.1(66666666)
+
+Assume you want to divide 123.32 / 33.6(567). [WolframAlpha](http://www.wolframalpha.com/input/?i=123.32+%2F+%2812453%2F370%29) states that you'll get a period of 1776 digits. *Fraction.js* comes to the same result. Give it a try:
+
+```javascript
+var f = new Fraction("123.32");
+console.log("Bam: " + f.div("33.6(567)"));
+```
+
+To automatically make a number like "0.123123123" to something more Fraction.js friendly like "0.(123)", I hacked this little brute force algorithm in a 10 minutes. Improvements are welcome...
+
+```javascript
+function formatDecimal(str) {
+
+ var comma, pre, offset, pad, times, repeat;
+
+ if (-1 === (comma = str.indexOf(".")))
+ return str;
+
+ pre = str.substr(0, comma + 1);
+ str = str.substr(comma + 1);
+
+ for (var i = 0; i < str.length; i++) {
+
+ offset = str.substr(0, i);
+
+ for (var j = 0; j < 5; j++) {
+
+ pad = str.substr(i, j + 1);
+
+ times = Math.ceil((str.length - offset.length) / pad.length);
+
+ repeat = new Array(times + 1).join(pad); // Silly String.repeat hack
+
+ if (0 === (offset + repeat).indexOf(str)) {
+ return pre + offset + "(" + pad + ")";
+ }
+ }
+ }
+ return null;
+}
+
+var f, x = formatDecimal("13.0123123123"); // = 13.0(123)
+if (x !== null) {
+ f = new Fraction(x);
+}
+```
+
+## Attributes
+
+
+The Fraction object allows direct access to the numerator, denominator and sign attributes. It is ensured that only the sign-attribute holds sign information so that a sign comparison is only necessary against this attribute.
+
+```javascript
+var f = new Fraction('-1/2');
+console.log(f.n); // Numerator: 1
+console.log(f.d); // Denominator: 2
+console.log(f.s); // Sign: -1
+```
+
+
+## Functions
+
+### Fraction abs()
+
+Returns the actual number without any sign information
+
+### Fraction neg()
+
+Returns the actual number with flipped sign in order to get the additive inverse
+
+### Fraction add(n)
+
+Returns the sum of the actual number and the parameter n
+
+### Fraction sub(n)
+
+Returns the difference of the actual number and the parameter n
+
+### Fraction mul(n)
+
+Returns the product of the actual number and the parameter n
+
+### Fraction div(n)
+
+Returns the quotient of the actual number and the parameter n
+
+### Fraction pow(exp)
+
+Returns the power of the actual number, raised to an possible rational exponent. If the result becomes non-rational the function returns `null`.
+
+### Fraction log(base)
+
+Returns the logarithm of the actual number to a given rational base. If the result becomes non-rational the function returns `null`.
+
+### Fraction mod(n)
+
+Returns the modulus (rest of the division) of the actual object and n (this % n). It's a much more precise [fmod()](#fmod-impreciseness-circumvented) if you like. Please note that *mod()* is just like the modulo operator of most programming languages. If you want a mathematical correct modulo, see [here](#mathematical-correct-modulo).
+
+### Fraction mod()
+
+Returns the modulus (rest of the division) of the actual object (numerator mod denominator)
+
+### Fraction gcd(n)
+
+Returns the fractional greatest common divisor
+
+### Fraction lcm(n)
+
+Returns the fractional least common multiple
+
+### Fraction ceil([places=0-16])
+
+Returns the ceiling of a rational number with Math.ceil
+
+### Fraction floor([places=0-16])
+
+Returns the floor of a rational number with Math.floor
+
+### Fraction round([places=0-16])
+
+Returns the rational number rounded with Math.round
+
+### Fraction roundTo(multiple)
+
+Rounds a fraction to the closest multiple of another fraction.
+
+### Fraction inverse()
+
+Returns the multiplicative inverse of the actual number (n / d becomes d / n) in order to get the reciprocal
+
+### Fraction simplify([eps=0.001])
+
+Simplifies the rational number under a certain error threshold. Ex. `0.333` will be `1/3` with `eps=0.001`
+
+### boolean equals(n)
+
+Check if two rational numbers are equal
+
+### boolean lt(n)
+
+Check if this rational number is less than another
+
+### boolean lte(n)
+
+Check if this rational number is less than or equal another
+
+### boolean gt(n)
+
+Check if this rational number is greater than another
+
+### boolean gte(n)
+
+Check if this rational number is greater than or equal another
+
+### int compare(n)
+
+Compare two numbers.
+```
+result < 0: n is greater than actual number
+result > 0: n is smaller than actual number
+result = 0: n is equal to the actual number
+```
+
+### boolean divisible(n)
+
+Check if two numbers are divisible (n divides this)
+
+### double valueOf()
+
+Returns a decimal representation of the fraction
+
+### String toString([decimalPlaces=15])
+
+Generates an exact string representation of the given object. For repeating decimal places, digits within repeating cycles are enclosed in parentheses, e.g., `1/3 = "0.(3)"`. For other numbers, the string will include up to the specified `decimalPlaces` significant digits, including any trailing zeros if truncation occurs. For example, `1/2` will be represented as `"0.5"`, without additional trailing zeros.
+
+**Note:** Since both `valueOf()` and `toString()` are provided, `toString()` will only be invoked implicitly when the object is used in a string context. For instance, when using the plus operator like `"123" + new Fraction`, `valueOf()` will be called first, as JavaScript attempts to combine primitives before concatenating them, with the string type taking precedence. However, `alert(new Fraction)` or `String(new Fraction)` will behave as expected. To ensure specific behavior, explicitly call either `toString()` or `valueOf()`.
+
+### String toLatex(showMixed=false)
+
+Generates an exact LaTeX representation of the actual object. You can see a [live demo](https://raw.org/article/rational-numbers-in-javascript/) on my blog.
+
+The optional boolean parameter indicates if you want to show the a mixed fraction. "1 1/3" instead of "4/3"
+
+### String toFraction(showMixed=false)
+
+Gets a string representation of the fraction
+
+The optional boolean parameter indicates if you want to showa mixed fraction. "1 1/3" instead of "4/3"
+
+### Array toContinued()
+
+Gets an array of the fraction represented as a continued fraction. The first element always contains the whole part.
+
+```javascript
+var f = new Fraction('88/33');
+var c = f.toContinued(); // [2, 1, 2]
+```
+
+### Fraction clone()
+
+Creates a copy of the actual Fraction object
+
+
+## Exceptions
+
+If a really hard error occurs (parsing error, division by zero), *Fraction.js* throws exceptions! Please make sure you handle them correctly.
+
+
+## Installation
+
+You can install `Fraction.js` via npm:
+
+```bash
+npm install fraction.js
+```
+
+Or with yarn:
+
+```bash
+yarn add fraction.js
+```
+
+Alternatively, download or clone the repository:
+
+```bash
+git clone https://github.com/rawify/Fraction.js
+```
+
+## Usage
+
+Include the `fraction.min.js` file in your project:
+
+```html
+
+
+```
+
+Or in a Node.js project:
+
+```javascript
+const Fraction = require('fraction.js');
+```
+
+or
+
+```javascript
+import Fraction from 'fraction.js';
+```
+
+
+## Coding Style
+
+As every library I publish, Fraction.js is also built to be as small as possible after compressing it with Google Closure Compiler in advanced mode. Thus the coding style orientates a little on maxing-out the compression rate. Please make sure you keep this style if you plan to extend the library.
+
+## Building the library
+
+After cloning the Git repository run:
+
+```bash
+npm install
+npm run build
+```
+
+## Run a test
+
+Testing the source against the shipped test suite is as easy as
+
+```bash
+npm run test
+```
+
+## Copyright and Licensing
+
+Copyright (c) 2025, [Robert Eisele](https://raw.org/)
+Licensed under the MIT license.
diff --git a/web/node_modules/fraction.js/dist/fraction.js b/web/node_modules/fraction.js/dist/fraction.js
new file mode 100644
index 0000000000000000000000000000000000000000..816d5db079ecc25687ccf37b33a7ce09fcc565d7
--- /dev/null
+++ b/web/node_modules/fraction.js/dist/fraction.js
@@ -0,0 +1,1045 @@
+'use strict';
+
+/**
+ *
+ * This class offers the possibility to calculate fractions.
+ * You can pass a fraction in different formats. Either as array, as double, as string or as an integer.
+ *
+ * Array/Object form
+ * [ 0 => , 1 => ]
+ * { n => , d => }
+ *
+ * Integer form
+ * - Single integer value as BigInt or Number
+ *
+ * Double form
+ * - Single double value as Number
+ *
+ * String form
+ * 123.456 - a simple double
+ * 123/456 - a string fraction
+ * 123.'456' - a double with repeating decimal places
+ * 123.(456) - synonym
+ * 123.45'6' - a double with repeating last place
+ * 123.45(6) - synonym
+ *
+ * Example:
+ * let f = new Fraction("9.4'31'");
+ * f.mul([-4, 3]).div(4.9);
+ *
+ */
+
+// Set Identity function to downgrade BigInt to Number if needed
+if (typeof BigInt === 'undefined') BigInt = function (n) { if (isNaN(n)) throw new Error(""); return n; };
+
+const C_ZERO = BigInt(0);
+const C_ONE = BigInt(1);
+const C_TWO = BigInt(2);
+const C_THREE = BigInt(3);
+const C_FIVE = BigInt(5);
+const C_TEN = BigInt(10);
+const MAX_INTEGER = BigInt(Number.MAX_SAFE_INTEGER);
+
+// Maximum search depth for cyclic rational numbers. 2000 should be more than enough.
+// Example: 1/7 = 0.(142857) has 6 repeating decimal places.
+// If MAX_CYCLE_LEN gets reduced, long cycles will not be detected and toString() only gets the first 10 digits
+const MAX_CYCLE_LEN = 2000;
+
+// Parsed data to avoid calling "new" all the time
+const P = {
+ "s": C_ONE,
+ "n": C_ZERO,
+ "d": C_ONE
+};
+
+function assign(n, s) {
+
+ try {
+ n = BigInt(n);
+ } catch (e) {
+ throw InvalidParameter();
+ }
+ return n * s;
+}
+
+function ifloor(x) {
+ return typeof x === 'bigint' ? x : Math.floor(x);
+}
+
+// Creates a new Fraction internally without the need of the bulky constructor
+function newFraction(n, d) {
+
+ if (d === C_ZERO) {
+ throw DivisionByZero();
+ }
+
+ const f = Object.create(Fraction.prototype);
+ f["s"] = n < C_ZERO ? -C_ONE : C_ONE;
+
+ n = n < C_ZERO ? -n : n;
+
+ const a = gcd(n, d);
+
+ f["n"] = n / a;
+ f["d"] = d / a;
+ return f;
+}
+
+const FACTORSTEPS = [C_TWO * C_TWO, C_TWO, C_TWO * C_TWO, C_TWO, C_TWO * C_TWO, C_TWO * C_THREE, C_TWO, C_TWO * C_THREE]; // repeats
+function factorize(n) {
+
+ const factors = Object.create(null);
+ if (n <= C_ONE) {
+ factors[n] = C_ONE;
+ return factors;
+ }
+
+ const add = (p) => { factors[p] = (factors[p] || C_ZERO) + C_ONE; };
+
+ while (n % C_TWO === C_ZERO) { add(C_TWO); n /= C_TWO; }
+ while (n % C_THREE === C_ZERO) { add(C_THREE); n /= C_THREE; }
+ while (n % C_FIVE === C_ZERO) { add(C_FIVE); n /= C_FIVE; }
+
+ // 30-wheel trial division: test only residues coprime to 2*3*5
+ // Residue step pattern after 5: 7,11,13,17,19,23,29,31, ...
+ for (let si = 0, p = C_TWO + C_FIVE; p * p <= n;) {
+ while (n % p === C_ZERO) { add(p); n /= p; }
+ p += FACTORSTEPS[si];
+ si = (si + 1) & 7; // fast modulo 8
+ }
+ if (n > C_ONE) add(n);
+ return factors;
+}
+
+const parse = function (p1, p2) {
+
+ let n = C_ZERO, d = C_ONE, s = C_ONE;
+
+ if (p1 === undefined || p1 === null) { // No argument
+ /* void */
+ } else if (p2 !== undefined) { // Two arguments
+
+ if (typeof p1 === "bigint") {
+ n = p1;
+ } else if (isNaN(p1)) {
+ throw InvalidParameter();
+ } else if (p1 % 1 !== 0) {
+ throw NonIntegerParameter();
+ } else {
+ n = BigInt(p1);
+ }
+
+ if (typeof p2 === "bigint") {
+ d = p2;
+ } else if (isNaN(p2)) {
+ throw InvalidParameter();
+ } else if (p2 % 1 !== 0) {
+ throw NonIntegerParameter();
+ } else {
+ d = BigInt(p2);
+ }
+
+ s = n * d;
+
+ } else if (typeof p1 === "object") {
+ if ("d" in p1 && "n" in p1) {
+ n = BigInt(p1["n"]);
+ d = BigInt(p1["d"]);
+ if ("s" in p1)
+ n *= BigInt(p1["s"]);
+ } else if (0 in p1) {
+ n = BigInt(p1[0]);
+ if (1 in p1)
+ d = BigInt(p1[1]);
+ } else if (typeof p1 === "bigint") {
+ n = p1;
+ } else {
+ throw InvalidParameter();
+ }
+ s = n * d;
+ } else if (typeof p1 === "number") {
+
+ if (isNaN(p1)) {
+ throw InvalidParameter();
+ }
+
+ if (p1 < 0) {
+ s = -C_ONE;
+ p1 = -p1;
+ }
+
+ if (p1 % 1 === 0) {
+ n = BigInt(p1);
+ } else {
+
+ let z = 1;
+
+ let A = 0, B = 1;
+ let C = 1, D = 1;
+
+ let N = 10000000;
+
+ if (p1 >= 1) {
+ z = 10 ** Math.floor(1 + Math.log10(p1));
+ p1 /= z;
+ }
+
+ // Using Farey Sequences
+
+ while (B <= N && D <= N) {
+ let M = (A + C) / (B + D);
+
+ if (p1 === M) {
+ if (B + D <= N) {
+ n = A + C;
+ d = B + D;
+ } else if (D > B) {
+ n = C;
+ d = D;
+ } else {
+ n = A;
+ d = B;
+ }
+ break;
+
+ } else {
+
+ if (p1 > M) {
+ A += C;
+ B += D;
+ } else {
+ C += A;
+ D += B;
+ }
+
+ if (B > N) {
+ n = C;
+ d = D;
+ } else {
+ n = A;
+ d = B;
+ }
+ }
+ }
+ n = BigInt(n) * BigInt(z);
+ d = BigInt(d);
+ }
+
+ } else if (typeof p1 === "string") {
+
+ let ndx = 0;
+
+ let v = C_ZERO, w = C_ZERO, x = C_ZERO, y = C_ONE, z = C_ONE;
+
+ let match = p1.replace(/_/g, '').match(/\d+|./g);
+
+ if (match === null)
+ throw InvalidParameter();
+
+ if (match[ndx] === '-') {// Check for minus sign at the beginning
+ s = -C_ONE;
+ ndx++;
+ } else if (match[ndx] === '+') {// Check for plus sign at the beginning
+ ndx++;
+ }
+
+ if (match.length === ndx + 1) { // Check if it's just a simple number "1234"
+ w = assign(match[ndx++], s);
+ } else if (match[ndx + 1] === '.' || match[ndx] === '.') { // Check if it's a decimal number
+
+ if (match[ndx] !== '.') { // Handle 0.5 and .5
+ v = assign(match[ndx++], s);
+ }
+ ndx++;
+
+ // Check for decimal places
+ if (ndx + 1 === match.length || match[ndx + 1] === '(' && match[ndx + 3] === ')' || match[ndx + 1] === "'" && match[ndx + 3] === "'") {
+ w = assign(match[ndx], s);
+ y = C_TEN ** BigInt(match[ndx].length);
+ ndx++;
+ }
+
+ // Check for repeating places
+ if (match[ndx] === '(' && match[ndx + 2] === ')' || match[ndx] === "'" && match[ndx + 2] === "'") {
+ x = assign(match[ndx + 1], s);
+ z = C_TEN ** BigInt(match[ndx + 1].length) - C_ONE;
+ ndx += 3;
+ }
+
+ } else if (match[ndx + 1] === '/' || match[ndx + 1] === ':') { // Check for a simple fraction "123/456" or "123:456"
+ w = assign(match[ndx], s);
+ y = assign(match[ndx + 2], C_ONE);
+ ndx += 3;
+ } else if (match[ndx + 3] === '/' && match[ndx + 1] === ' ') { // Check for a complex fraction "123 1/2"
+ v = assign(match[ndx], s);
+ w = assign(match[ndx + 2], s);
+ y = assign(match[ndx + 4], C_ONE);
+ ndx += 5;
+ }
+
+ if (match.length <= ndx) { // Check for more tokens on the stack
+ d = y * z;
+ s = /* void */
+ n = x + d * v + z * w;
+ } else {
+ throw InvalidParameter();
+ }
+
+ } else if (typeof p1 === "bigint") {
+ n = p1;
+ s = p1;
+ d = C_ONE;
+ } else {
+ throw InvalidParameter();
+ }
+
+ if (d === C_ZERO) {
+ throw DivisionByZero();
+ }
+
+ P["s"] = s < C_ZERO ? -C_ONE : C_ONE;
+ P["n"] = n < C_ZERO ? -n : n;
+ P["d"] = d < C_ZERO ? -d : d;
+};
+
+function modpow(b, e, m) {
+
+ let r = C_ONE;
+ for (; e > C_ZERO; b = (b * b) % m, e >>= C_ONE) {
+
+ if (e & C_ONE) {
+ r = (r * b) % m;
+ }
+ }
+ return r;
+}
+
+function cycleLen(n, d) {
+
+ for (; d % C_TWO === C_ZERO;
+ d /= C_TWO) {
+ }
+
+ for (; d % C_FIVE === C_ZERO;
+ d /= C_FIVE) {
+ }
+
+ if (d === C_ONE) // Catch non-cyclic numbers
+ return C_ZERO;
+
+ // If we would like to compute really large numbers quicker, we could make use of Fermat's little theorem:
+ // 10^(d-1) % d == 1
+ // However, we don't need such large numbers and MAX_CYCLE_LEN should be the capstone,
+ // as we want to translate the numbers to strings.
+
+ let rem = C_TEN % d;
+ let t = 1;
+
+ for (; rem !== C_ONE; t++) {
+ rem = rem * C_TEN % d;
+
+ if (t > MAX_CYCLE_LEN)
+ return C_ZERO; // Returning 0 here means that we don't print it as a cyclic number. It's likely that the answer is `d-1`
+ }
+ return BigInt(t);
+}
+
+function cycleStart(n, d, len) {
+
+ let rem1 = C_ONE;
+ let rem2 = modpow(C_TEN, len, d);
+
+ for (let t = 0; t < 300; t++) { // s < ~log10(Number.MAX_VALUE)
+ // Solve 10^s == 10^(s+t) (mod d)
+
+ if (rem1 === rem2)
+ return BigInt(t);
+
+ rem1 = rem1 * C_TEN % d;
+ rem2 = rem2 * C_TEN % d;
+ }
+ return 0;
+}
+
+function gcd(a, b) {
+
+ if (!a)
+ return b;
+ if (!b)
+ return a;
+
+ while (1) {
+ a %= b;
+ if (!a)
+ return b;
+ b %= a;
+ if (!b)
+ return a;
+ }
+}
+
+/**
+ * Module constructor
+ *
+ * @constructor
+ * @param {number|Fraction=} a
+ * @param {number=} b
+ */
+function Fraction(a, b) {
+
+ parse(a, b);
+
+ if (this instanceof Fraction) {
+ a = gcd(P["d"], P["n"]); // Abuse a
+ this["s"] = P["s"];
+ this["n"] = P["n"] / a;
+ this["d"] = P["d"] / a;
+ } else {
+ return newFraction(P['s'] * P['n'], P['d']);
+ }
+}
+
+const DivisionByZero = function () { return new Error("Division by Zero"); };
+const InvalidParameter = function () { return new Error("Invalid argument"); };
+const NonIntegerParameter = function () { return new Error("Parameters must be integer"); };
+
+Fraction.prototype = {
+
+ "s": C_ONE,
+ "n": C_ZERO,
+ "d": C_ONE,
+
+ /**
+ * Calculates the absolute value
+ *
+ * Ex: new Fraction(-4).abs() => 4
+ **/
+ "abs": function () {
+
+ return newFraction(this["n"], this["d"]);
+ },
+
+ /**
+ * Inverts the sign of the current fraction
+ *
+ * Ex: new Fraction(-4).neg() => 4
+ **/
+ "neg": function () {
+
+ return newFraction(-this["s"] * this["n"], this["d"]);
+ },
+
+ /**
+ * Adds two rational numbers
+ *
+ * Ex: new Fraction({n: 2, d: 3}).add("14.9") => 467 / 30
+ **/
+ "add": function (a, b) {
+
+ parse(a, b);
+ return newFraction(
+ this["s"] * this["n"] * P["d"] + P["s"] * this["d"] * P["n"],
+ this["d"] * P["d"]
+ );
+ },
+
+ /**
+ * Subtracts two rational numbers
+ *
+ * Ex: new Fraction({n: 2, d: 3}).add("14.9") => -427 / 30
+ **/
+ "sub": function (a, b) {
+
+ parse(a, b);
+ return newFraction(
+ this["s"] * this["n"] * P["d"] - P["s"] * this["d"] * P["n"],
+ this["d"] * P["d"]
+ );
+ },
+
+ /**
+ * Multiplies two rational numbers
+ *
+ * Ex: new Fraction("-17.(345)").mul(3) => 5776 / 111
+ **/
+ "mul": function (a, b) {
+
+ parse(a, b);
+ return newFraction(
+ this["s"] * P["s"] * this["n"] * P["n"],
+ this["d"] * P["d"]
+ );
+ },
+
+ /**
+ * Divides two rational numbers
+ *
+ * Ex: new Fraction("-17.(345)").inverse().div(3)
+ **/
+ "div": function (a, b) {
+
+ parse(a, b);
+ return newFraction(
+ this["s"] * P["s"] * this["n"] * P["d"],
+ this["d"] * P["n"]
+ );
+ },
+
+ /**
+ * Clones the actual object
+ *
+ * Ex: new Fraction("-17.(345)").clone()
+ **/
+ "clone": function () {
+ return newFraction(this['s'] * this['n'], this['d']);
+ },
+
+ /**
+ * Calculates the modulo of two rational numbers - a more precise fmod
+ *
+ * Ex: new Fraction('4.(3)').mod([7, 8]) => (13/3) % (7/8) = (5/6)
+ * Ex: new Fraction(20, 10).mod().equals(0) ? "is Integer"
+ **/
+ "mod": function (a, b) {
+
+ if (a === undefined) {
+ return newFraction(this["s"] * this["n"] % this["d"], C_ONE);
+ }
+
+ parse(a, b);
+ if (C_ZERO === P["n"] * this["d"]) {
+ throw DivisionByZero();
+ }
+
+ /**
+ * I derived the rational modulo similar to the modulo for integers
+ *
+ * https://raw.org/book/analysis/rational-numbers/
+ *
+ * n1/d1 = (n2/d2) * q + r, where 0 ≤ r < n2/d2
+ * => d2 * n1 = n2 * d1 * q + d1 * d2 * r
+ * => r = (d2 * n1 - n2 * d1 * q) / (d1 * d2)
+ * = (d2 * n1 - n2 * d1 * floor((d2 * n1) / (n2 * d1))) / (d1 * d2)
+ * = ((d2 * n1) % (n2 * d1)) / (d1 * d2)
+ */
+ return newFraction(
+ this["s"] * (P["d"] * this["n"]) % (P["n"] * this["d"]),
+ P["d"] * this["d"]);
+ },
+
+ /**
+ * Calculates the fractional gcd of two rational numbers
+ *
+ * Ex: new Fraction(5,8).gcd(3,7) => 1/56
+ */
+ "gcd": function (a, b) {
+
+ parse(a, b);
+
+ // https://raw.org/book/analysis/rational-numbers/
+ // gcd(a / b, c / d) = gcd(a, c) / lcm(b, d)
+
+ return newFraction(gcd(P["n"], this["n"]) * gcd(P["d"], this["d"]), P["d"] * this["d"]);
+ },
+
+ /**
+ * Calculates the fractional lcm of two rational numbers
+ *
+ * Ex: new Fraction(5,8).lcm(3,7) => 15
+ */
+ "lcm": function (a, b) {
+
+ parse(a, b);
+
+ // https://raw.org/book/analysis/rational-numbers/
+ // lcm(a / b, c / d) = lcm(a, c) / gcd(b, d)
+
+ if (P["n"] === C_ZERO && this["n"] === C_ZERO) {
+ return newFraction(C_ZERO, C_ONE);
+ }
+ return newFraction(P["n"] * this["n"], gcd(P["n"], this["n"]) * gcd(P["d"], this["d"]));
+ },
+
+ /**
+ * Gets the inverse of the fraction, means numerator and denominator are exchanged
+ *
+ * Ex: new Fraction([-3, 4]).inverse() => -4 / 3
+ **/
+ "inverse": function () {
+ return newFraction(this["s"] * this["d"], this["n"]);
+ },
+
+ /**
+ * Calculates the fraction to some integer exponent
+ *
+ * Ex: new Fraction(-1,2).pow(-3) => -8
+ */
+ "pow": function (a, b) {
+
+ parse(a, b);
+
+ // Trivial case when exp is an integer
+
+ if (P['d'] === C_ONE) {
+
+ if (P['s'] < C_ZERO) {
+ return newFraction((this['s'] * this["d"]) ** P['n'], this["n"] ** P['n']);
+ } else {
+ return newFraction((this['s'] * this["n"]) ** P['n'], this["d"] ** P['n']);
+ }
+ }
+
+ // Negative roots become complex
+ // (-a/b)^(c/d) = x
+ // ⇔ (-1)^(c/d) * (a/b)^(c/d) = x
+ // ⇔ (cos(pi) + i*sin(pi))^(c/d) * (a/b)^(c/d) = x
+ // ⇔ (cos(c*pi/d) + i*sin(c*pi/d)) * (a/b)^(c/d) = x # DeMoivre's formula
+ // From which follows that only for c=0 the root is non-complex
+ if (this['s'] < C_ZERO) return null;
+
+ // Now prime factor n and d
+ let N = factorize(this['n']);
+ let D = factorize(this['d']);
+
+ // Exponentiate and take root for n and d individually
+ let n = C_ONE;
+ let d = C_ONE;
+ for (let k in N) {
+ if (k === '1') continue;
+ if (k === '0') {
+ n = C_ZERO;
+ break;
+ }
+ N[k] *= P['n'];
+
+ if (N[k] % P['d'] === C_ZERO) {
+ N[k] /= P['d'];
+ } else return null;
+ n *= BigInt(k) ** N[k];
+ }
+
+ for (let k in D) {
+ if (k === '1') continue;
+ D[k] *= P['n'];
+
+ if (D[k] % P['d'] === C_ZERO) {
+ D[k] /= P['d'];
+ } else return null;
+ d *= BigInt(k) ** D[k];
+ }
+
+ if (P['s'] < C_ZERO) {
+ return newFraction(d, n);
+ }
+ return newFraction(n, d);
+ },
+
+ /**
+ * Calculates the logarithm of a fraction to a given rational base
+ *
+ * Ex: new Fraction(27, 8).log(9, 4) => 3/2
+ */
+ "log": function (a, b) {
+
+ parse(a, b);
+
+ if (this['s'] <= C_ZERO || P['s'] <= C_ZERO) return null;
+
+ const allPrimes = Object.create(null);
+
+ const baseFactors = factorize(P['n']);
+ const T1 = factorize(P['d']);
+
+ const numberFactors = factorize(this['n']);
+ const T2 = factorize(this['d']);
+
+ for (const prime in T1) {
+ baseFactors[prime] = (baseFactors[prime] || C_ZERO) - T1[prime];
+ }
+ for (const prime in T2) {
+ numberFactors[prime] = (numberFactors[prime] || C_ZERO) - T2[prime];
+ }
+
+ for (const prime in baseFactors) {
+ if (prime === '1') continue;
+ allPrimes[prime] = true;
+ }
+ for (const prime in numberFactors) {
+ if (prime === '1') continue;
+ allPrimes[prime] = true;
+ }
+
+ let retN = null;
+ let retD = null;
+
+ // Iterate over all unique primes to determine if a consistent ratio exists
+ for (const prime in allPrimes) {
+
+ const baseExponent = baseFactors[prime] || C_ZERO;
+ const numberExponent = numberFactors[prime] || C_ZERO;
+
+ if (baseExponent === C_ZERO) {
+ if (numberExponent !== C_ZERO) {
+ return null; // Logarithm cannot be expressed as a rational number
+ }
+ continue; // Skip this prime since both exponents are zero
+ }
+
+ // Calculate the ratio of exponents for this prime
+ let curN = numberExponent;
+ let curD = baseExponent;
+
+ // Simplify the current ratio
+ const gcdValue = gcd(curN, curD);
+ curN /= gcdValue;
+ curD /= gcdValue;
+
+ // Check if this is the first ratio; otherwise, ensure ratios are consistent
+ if (retN === null && retD === null) {
+ retN = curN;
+ retD = curD;
+ } else if (curN * retD !== retN * curD) {
+ return null; // Ratios do not match, logarithm cannot be rational
+ }
+ }
+
+ return retN !== null && retD !== null
+ ? newFraction(retN, retD)
+ : null;
+ },
+
+ /**
+ * Check if two rational numbers are the same
+ *
+ * Ex: new Fraction(19.6).equals([98, 5]);
+ **/
+ "equals": function (a, b) {
+
+ parse(a, b);
+ return this["s"] * this["n"] * P["d"] === P["s"] * P["n"] * this["d"];
+ },
+
+ /**
+ * Check if this rational number is less than another
+ *
+ * Ex: new Fraction(19.6).lt([98, 5]);
+ **/
+ "lt": function (a, b) {
+
+ parse(a, b);
+ return this["s"] * this["n"] * P["d"] < P["s"] * P["n"] * this["d"];
+ },
+
+ /**
+ * Check if this rational number is less than or equal another
+ *
+ * Ex: new Fraction(19.6).lt([98, 5]);
+ **/
+ "lte": function (a, b) {
+
+ parse(a, b);
+ return this["s"] * this["n"] * P["d"] <= P["s"] * P["n"] * this["d"];
+ },
+
+ /**
+ * Check if this rational number is greater than another
+ *
+ * Ex: new Fraction(19.6).lt([98, 5]);
+ **/
+ "gt": function (a, b) {
+
+ parse(a, b);
+ return this["s"] * this["n"] * P["d"] > P["s"] * P["n"] * this["d"];
+ },
+
+ /**
+ * Check if this rational number is greater than or equal another
+ *
+ * Ex: new Fraction(19.6).lt([98, 5]);
+ **/
+ "gte": function (a, b) {
+
+ parse(a, b);
+ return this["s"] * this["n"] * P["d"] >= P["s"] * P["n"] * this["d"];
+ },
+
+ /**
+ * Compare two rational numbers
+ * < 0 iff this < that
+ * > 0 iff this > that
+ * = 0 iff this = that
+ *
+ * Ex: new Fraction(19.6).compare([98, 5]);
+ **/
+ "compare": function (a, b) {
+
+ parse(a, b);
+ let t = this["s"] * this["n"] * P["d"] - P["s"] * P["n"] * this["d"];
+
+ return (C_ZERO < t) - (t < C_ZERO);
+ },
+
+ /**
+ * Calculates the ceil of a rational number
+ *
+ * Ex: new Fraction('4.(3)').ceil() => (5 / 1)
+ **/
+ "ceil": function (places) {
+
+ places = C_TEN ** BigInt(places || 0);
+
+ return newFraction(ifloor(this["s"] * places * this["n"] / this["d"]) +
+ (places * this["n"] % this["d"] > C_ZERO && this["s"] >= C_ZERO ? C_ONE : C_ZERO),
+ places);
+ },
+
+ /**
+ * Calculates the floor of a rational number
+ *
+ * Ex: new Fraction('4.(3)').floor() => (4 / 1)
+ **/
+ "floor": function (places) {
+
+ places = C_TEN ** BigInt(places || 0);
+
+ return newFraction(ifloor(this["s"] * places * this["n"] / this["d"]) -
+ (places * this["n"] % this["d"] > C_ZERO && this["s"] < C_ZERO ? C_ONE : C_ZERO),
+ places);
+ },
+
+ /**
+ * Rounds a rational numbers
+ *
+ * Ex: new Fraction('4.(3)').round() => (4 / 1)
+ **/
+ "round": function (places) {
+
+ places = C_TEN ** BigInt(places || 0);
+
+ /* Derivation:
+
+ s >= 0:
+ round(n / d) = ifloor(n / d) + (n % d) / d >= 0.5 ? 1 : 0
+ = ifloor(n / d) + 2(n % d) >= d ? 1 : 0
+ s < 0:
+ round(n / d) =-ifloor(n / d) - (n % d) / d > 0.5 ? 1 : 0
+ =-ifloor(n / d) - 2(n % d) > d ? 1 : 0
+
+ =>:
+
+ round(s * n / d) = s * ifloor(n / d) + s * (C + 2(n % d) > d ? 1 : 0)
+ where C = s >= 0 ? 1 : 0, to fix the >= for the positve case.
+ */
+
+ return newFraction(ifloor(this["s"] * places * this["n"] / this["d"]) +
+ this["s"] * ((this["s"] >= C_ZERO ? C_ONE : C_ZERO) + C_TWO * (places * this["n"] % this["d"]) > this["d"] ? C_ONE : C_ZERO),
+ places);
+ },
+
+ /**
+ * Rounds a rational number to a multiple of another rational number
+ *
+ * Ex: new Fraction('0.9').roundTo("1/8") => 7 / 8
+ **/
+ "roundTo": function (a, b) {
+
+ /*
+ k * x/y ≤ a/b < (k+1) * x/y
+ ⇔ k ≤ a/b / (x/y) < (k+1)
+ ⇔ k = floor(a/b * y/x)
+ ⇔ k = floor((a * y) / (b * x))
+ */
+
+ parse(a, b);
+
+ const n = this['n'] * P['d'];
+ const d = this['d'] * P['n'];
+ const r = n % d;
+
+ // round(n / d) = ifloor(n / d) + 2(n % d) >= d ? 1 : 0
+ let k = ifloor(n / d);
+ if (r + r >= d) {
+ k++;
+ }
+ return newFraction(this['s'] * k * P['n'], P['d']);
+ },
+
+ /**
+ * Check if two rational numbers are divisible
+ *
+ * Ex: new Fraction(19.6).divisible(1.5);
+ */
+ "divisible": function (a, b) {
+
+ parse(a, b);
+ if (P['n'] === C_ZERO) return false;
+ return (this['n'] * P['d']) % (P['n'] * this['d']) === C_ZERO;
+ },
+
+ /**
+ * Returns a decimal representation of the fraction
+ *
+ * Ex: new Fraction("100.'91823'").valueOf() => 100.91823918239183
+ **/
+ 'valueOf': function () {
+ //if (this['n'] <= MAX_INTEGER && this['d'] <= MAX_INTEGER) {
+ return Number(this['s'] * this['n']) / Number(this['d']);
+ //}
+ },
+
+ /**
+ * Creates a string representation of a fraction with all digits
+ *
+ * Ex: new Fraction("100.'91823'").toString() => "100.(91823)"
+ **/
+ 'toString': function (dec = 15) {
+
+ let N = this["n"];
+ let D = this["d"];
+
+ let cycLen = cycleLen(N, D); // Cycle length
+ let cycOff = cycleStart(N, D, cycLen); // Cycle start
+
+ let str = this['s'] < C_ZERO ? "-" : "";
+
+ // Append integer part
+ str += ifloor(N / D);
+
+ N %= D;
+ N *= C_TEN;
+
+ if (N)
+ str += ".";
+
+ if (cycLen) {
+
+ for (let i = cycOff; i--;) {
+ str += ifloor(N / D);
+ N %= D;
+ N *= C_TEN;
+ }
+ str += "(";
+ for (let i = cycLen; i--;) {
+ str += ifloor(N / D);
+ N %= D;
+ N *= C_TEN;
+ }
+ str += ")";
+ } else {
+ for (let i = dec; N && i--;) {
+ str += ifloor(N / D);
+ N %= D;
+ N *= C_TEN;
+ }
+ }
+ return str;
+ },
+
+ /**
+ * Returns a string-fraction representation of a Fraction object
+ *
+ * Ex: new Fraction("1.'3'").toFraction() => "4 1/3"
+ **/
+ 'toFraction': function (showMixed = false) {
+
+ let n = this["n"];
+ let d = this["d"];
+ let str = this['s'] < C_ZERO ? "-" : "";
+
+ if (d === C_ONE) {
+ str += n;
+ } else {
+ const whole = ifloor(n / d);
+ if (showMixed && whole > C_ZERO) {
+ str += whole;
+ str += " ";
+ n %= d;
+ }
+
+ str += n;
+ str += '/';
+ str += d;
+ }
+ return str;
+ },
+
+ /**
+ * Returns a latex representation of a Fraction object
+ *
+ * Ex: new Fraction("1.'3'").toLatex() => "\frac{4}{3}"
+ **/
+ 'toLatex': function (showMixed = false) {
+
+ let n = this["n"];
+ let d = this["d"];
+ let str = this['s'] < C_ZERO ? "-" : "";
+
+ if (d === C_ONE) {
+ str += n;
+ } else {
+ const whole = ifloor(n / d);
+ if (showMixed && whole > C_ZERO) {
+ str += whole;
+ n %= d;
+ }
+
+ str += "\\frac{";
+ str += n;
+ str += '}{';
+ str += d;
+ str += '}';
+ }
+ return str;
+ },
+
+ /**
+ * Returns an array of continued fraction elements
+ *
+ * Ex: new Fraction("7/8").toContinued() => [0,1,7]
+ */
+ 'toContinued': function () {
+
+ let a = this['n'];
+ let b = this['d'];
+ const res = [];
+
+ while (b) {
+ res.push(ifloor(a / b));
+ const t = a % b;
+ a = b;
+ b = t;
+ }
+ return res;
+ },
+
+ "simplify": function (eps = 1e-3) {
+
+ // Continued fractions give best approximations for a max denominator,
+ // generally outperforming mediants in denominator–accuracy trade-offs.
+ // Semiconvergents can further reduce the denominator within tolerance.
+
+ const ieps = BigInt(Math.ceil(1 / eps));
+
+ const thisABS = this['abs']();
+ const cont = thisABS['toContinued']();
+
+ for (let i = 1; i < cont.length; i++) {
+
+ let s = newFraction(cont[i - 1], C_ONE);
+ for (let k = i - 2; k >= 0; k--) {
+ s = s['inverse']()['add'](cont[k]);
+ }
+
+ let t = s['sub'](thisABS);
+ if (t['n'] * ieps < t['d']) { // More robust than Math.abs(t.valueOf()) < eps
+ return s['mul'](this['s']);
+ }
+ }
+ return this;
+ }
+};
+
+Object.defineProperty(Fraction, "__esModule", { 'value': true });
+Fraction['default'] = Fraction;
+Fraction['Fraction'] = Fraction;
+module['exports'] = Fraction;
diff --git a/web/node_modules/fraction.js/dist/fraction.min.js b/web/node_modules/fraction.js/dist/fraction.min.js
new file mode 100644
index 0000000000000000000000000000000000000000..97b02ee2c71e47e8b93e1ced3322e47fbb6e9eda
--- /dev/null
+++ b/web/node_modules/fraction.js/dist/fraction.min.js
@@ -0,0 +1,21 @@
+/*
+Fraction.js v5.3.4 8/22/2025
+https://raw.org/article/rational-numbers-in-javascript/
+
+Copyright (c) 2025, Robert Eisele (https://raw.org/)
+Licensed under the MIT license.
+*/
+'use strict';(function(F){function D(){return Error("Parameters must be integer")}function x(){return Error("Invalid argument")}function C(){return Error("Division by Zero")}function q(a,b){var d=g,c=h;let f=h;if(void 0!==a&&null!==a)if(void 0!==b){if("bigint"===typeof a)d=a;else{if(isNaN(a))throw x();if(0!==a%1)throw D();d=BigInt(a)}if("bigint"===typeof b)c=b;else{if(isNaN(b))throw x();if(0!==b%1)throw D();c=BigInt(b)}f=d*c}else if("object"===typeof a){if("d"in a&&"n"in a)d=BigInt(a.n),c=BigInt(a.d),
+"s"in a&&(d*=BigInt(a.s));else if(0 in a)d=BigInt(a[0]),1 in a&&(c=BigInt(a[1]));else if("bigint"===typeof a)d=a;else throw x();f=d*c}else if("number"===typeof a){if(isNaN(a))throw x();0>a&&(f=-h,a=-a);if(0===a%1)d=BigInt(a);else{b=1;var k=0,l=1,m=1;let r=1;1<=a&&(b=10**Math.floor(1+Math.log10(a)),a/=b);for(;1E7>=l&&1E7>=r;)if(c=(k+m)/(l+r),a===c){1E7>=l+r?(d=k+m,c=l+r):r>l?(d=m,c=r):(d=k,c=l);break}else a>c?(k+=m,l+=r):(m+=k,r+=l),1E7h&&(b[a]=(b[a]||g)+h);return b}function y(a,b){if(!a)return b;if(!b)return a;for(;;){a%=b;if(!a)return b;b%=a;if(!b)return a}}function v(a,b){q(a,b);if(this instanceof v)a=y(e.d,e.n),this.s=e.s,this.n=e.n/a,this.d=e.d/a;else return n(e.s*e.n,e.d)}"undefined"===typeof BigInt&&
+(BigInt=function(a){if(isNaN(a))throw Error("");return a});const g=BigInt(0),h=BigInt(1),p=BigInt(2),B=BigInt(3),z=BigInt(5),t=BigInt(10),e={s:h,n:g,d:h},G=[p*p,p,p*p,p,p*p,p*B,p,p*B];v.prototype={s:h,n:g,d:h,abs:function(){return n(this.n,this.d)},neg:function(){return n(-this.s*this.n,this.d)},add:function(a,b){q(a,b);return n(this.s*this.n*e.d+e.s*this.d*e.n,this.d*e.d)},sub:function(a,b){q(a,b);return n(this.s*this.n*e.d-e.s*this.d*e.n,this.d*e.d)},mul:function(a,b){q(a,b);return n(this.s*e.s*
+this.n*e.n,this.d*e.d)},div:function(a,b){q(a,b);return n(this.s*e.s*this.n*e.d,this.d*e.n)},clone:function(){return n(this.s*this.n,this.d)},mod:function(a,b){if(void 0===a)return n(this.s*this.n%this.d,h);q(a,b);if(g===e.n*this.d)throw C();return n(this.s*e.d*this.n%(e.n*this.d),e.d*this.d)},gcd:function(a,b){q(a,b);return n(y(e.n,this.n)*y(e.d,this.d),e.d*this.d)},lcm:function(a,b){q(a,b);return e.n===g&&this.n===g?n(g,h):n(e.n*this.n,y(e.n,this.n)*y(e.d,this.d))},inverse:function(){return n(this.s*
+this.d,this.n)},pow:function(a,b){q(a,b);if(e.d===h)return e.se.s*e.n*this.d},gte:function(a,b){q(a,b);return this.s*this.n*e.d>=e.s*e.n*this.d},compare:function(a,b){q(a,b);a=this.s*this.n*e.d-e.s*e.n*this.d;return(gg&&this.s>=g?h:g),a)},floor:function(a){a=t**BigInt(a||0);return n(u(this.s*a*this.n/
+this.d)-(a*this.n%this.d>g&&this.s=g?h:g)+a*this.n%this.d*p>this.d?h:g),a)},roundTo:function(a,b){q(a,b);var d=this.n*e.d;a=this.d*e.n;b=d%a;d=u(d/a);b+b>=a&&d++;return n(this.s*d*e.n,e.d)},divisible:function(a,b){q(a,b);return e.n===g?!1:this.n*e.d%(e.n*this.d)===g},valueOf:function(){return Number(this.s*this.n)/Number(this.d)},toString:function(a=15){let b=this.n,d=this.d;var c;a:{for(c=d;c%p===g;c/=
+p);for(;c%z===g;c/=z);if(c===h)c=g;else{for(var f=t%c,k=1;f!==h;k++)if(f=f*t%c,2E3g;k=k*k%d,l>>=h)l&h&&(m=m*k%d);k=m;for(l=0;300>l;l++){if(f===k){f=BigInt(l);break a}f=f*t%d;k=k*t%d}f=0}k=f;f=this.sg&&(c+=f,c+=" ",b%=d);c=c+b+"/"+d}return c},toLatex:function(a=!1){let b=this.n,d=this.d,c=this.sg&&(c+=f,b%=d);c=c+"\\frac{"+b+"}{"+d;c+="}"}return c},toContinued:function(){let a=this.n,b=this.d;const d=[];for(;b;){d.push(u(a/b));const c=a%b;a=b;b=c}return d},simplify:function(a=.001){a=BigInt(Math.ceil(1/a));const b=this.abs(),d=b.toContinued();for(let f=1;f , 1 => ]
+ * { n => , d => }
+ *
+ * Integer form
+ * - Single integer value as BigInt or Number
+ *
+ * Double form
+ * - Single double value as Number
+ *
+ * String form
+ * 123.456 - a simple double
+ * 123/456 - a string fraction
+ * 123.'456' - a double with repeating decimal places
+ * 123.(456) - synonym
+ * 123.45'6' - a double with repeating last place
+ * 123.45(6) - synonym
+ *
+ * Example:
+ * let f = new Fraction("9.4'31'");
+ * f.mul([-4, 3]).div(4.9);
+ *
+ */
+
+// Set Identity function to downgrade BigInt to Number if needed
+if (typeof BigInt === 'undefined') BigInt = function (n) { if (isNaN(n)) throw new Error(""); return n; };
+
+const C_ZERO = BigInt(0);
+const C_ONE = BigInt(1);
+const C_TWO = BigInt(2);
+const C_THREE = BigInt(3);
+const C_FIVE = BigInt(5);
+const C_TEN = BigInt(10);
+const MAX_INTEGER = BigInt(Number.MAX_SAFE_INTEGER);
+
+// Maximum search depth for cyclic rational numbers. 2000 should be more than enough.
+// Example: 1/7 = 0.(142857) has 6 repeating decimal places.
+// If MAX_CYCLE_LEN gets reduced, long cycles will not be detected and toString() only gets the first 10 digits
+const MAX_CYCLE_LEN = 2000;
+
+// Parsed data to avoid calling "new" all the time
+const P = {
+ "s": C_ONE,
+ "n": C_ZERO,
+ "d": C_ONE
+};
+
+function assign(n, s) {
+
+ try {
+ n = BigInt(n);
+ } catch (e) {
+ throw InvalidParameter();
+ }
+ return n * s;
+}
+
+function ifloor(x) {
+ return typeof x === 'bigint' ? x : Math.floor(x);
+}
+
+// Creates a new Fraction internally without the need of the bulky constructor
+function newFraction(n, d) {
+
+ if (d === C_ZERO) {
+ throw DivisionByZero();
+ }
+
+ const f = Object.create(Fraction.prototype);
+ f["s"] = n < C_ZERO ? -C_ONE : C_ONE;
+
+ n = n < C_ZERO ? -n : n;
+
+ const a = gcd(n, d);
+
+ f["n"] = n / a;
+ f["d"] = d / a;
+ return f;
+}
+
+const FACTORSTEPS = [C_TWO * C_TWO, C_TWO, C_TWO * C_TWO, C_TWO, C_TWO * C_TWO, C_TWO * C_THREE, C_TWO, C_TWO * C_THREE]; // repeats
+function factorize(n) {
+
+ const factors = Object.create(null);
+ if (n <= C_ONE) {
+ factors[n] = C_ONE;
+ return factors;
+ }
+
+ const add = (p) => { factors[p] = (factors[p] || C_ZERO) + C_ONE; };
+
+ while (n % C_TWO === C_ZERO) { add(C_TWO); n /= C_TWO; }
+ while (n % C_THREE === C_ZERO) { add(C_THREE); n /= C_THREE; }
+ while (n % C_FIVE === C_ZERO) { add(C_FIVE); n /= C_FIVE; }
+
+ // 30-wheel trial division: test only residues coprime to 2*3*5
+ // Residue step pattern after 5: 7,11,13,17,19,23,29,31, ...
+ for (let si = 0, p = C_TWO + C_FIVE; p * p <= n;) {
+ while (n % p === C_ZERO) { add(p); n /= p; }
+ p += FACTORSTEPS[si];
+ si = (si + 1) & 7; // fast modulo 8
+ }
+ if (n > C_ONE) add(n);
+ return factors;
+}
+
+const parse = function (p1, p2) {
+
+ let n = C_ZERO, d = C_ONE, s = C_ONE;
+
+ if (p1 === undefined || p1 === null) { // No argument
+ /* void */
+ } else if (p2 !== undefined) { // Two arguments
+
+ if (typeof p1 === "bigint") {
+ n = p1;
+ } else if (isNaN(p1)) {
+ throw InvalidParameter();
+ } else if (p1 % 1 !== 0) {
+ throw NonIntegerParameter();
+ } else {
+ n = BigInt(p1);
+ }
+
+ if (typeof p2 === "bigint") {
+ d = p2;
+ } else if (isNaN(p2)) {
+ throw InvalidParameter();
+ } else if (p2 % 1 !== 0) {
+ throw NonIntegerParameter();
+ } else {
+ d = BigInt(p2);
+ }
+
+ s = n * d;
+
+ } else if (typeof p1 === "object") {
+ if ("d" in p1 && "n" in p1) {
+ n = BigInt(p1["n"]);
+ d = BigInt(p1["d"]);
+ if ("s" in p1)
+ n *= BigInt(p1["s"]);
+ } else if (0 in p1) {
+ n = BigInt(p1[0]);
+ if (1 in p1)
+ d = BigInt(p1[1]);
+ } else if (typeof p1 === "bigint") {
+ n = p1;
+ } else {
+ throw InvalidParameter();
+ }
+ s = n * d;
+ } else if (typeof p1 === "number") {
+
+ if (isNaN(p1)) {
+ throw InvalidParameter();
+ }
+
+ if (p1 < 0) {
+ s = -C_ONE;
+ p1 = -p1;
+ }
+
+ if (p1 % 1 === 0) {
+ n = BigInt(p1);
+ } else {
+
+ let z = 1;
+
+ let A = 0, B = 1;
+ let C = 1, D = 1;
+
+ let N = 10000000;
+
+ if (p1 >= 1) {
+ z = 10 ** Math.floor(1 + Math.log10(p1));
+ p1 /= z;
+ }
+
+ // Using Farey Sequences
+
+ while (B <= N && D <= N) {
+ let M = (A + C) / (B + D);
+
+ if (p1 === M) {
+ if (B + D <= N) {
+ n = A + C;
+ d = B + D;
+ } else if (D > B) {
+ n = C;
+ d = D;
+ } else {
+ n = A;
+ d = B;
+ }
+ break;
+
+ } else {
+
+ if (p1 > M) {
+ A += C;
+ B += D;
+ } else {
+ C += A;
+ D += B;
+ }
+
+ if (B > N) {
+ n = C;
+ d = D;
+ } else {
+ n = A;
+ d = B;
+ }
+ }
+ }
+ n = BigInt(n) * BigInt(z);
+ d = BigInt(d);
+ }
+
+ } else if (typeof p1 === "string") {
+
+ let ndx = 0;
+
+ let v = C_ZERO, w = C_ZERO, x = C_ZERO, y = C_ONE, z = C_ONE;
+
+ let match = p1.replace(/_/g, '').match(/\d+|./g);
+
+ if (match === null)
+ throw InvalidParameter();
+
+ if (match[ndx] === '-') {// Check for minus sign at the beginning
+ s = -C_ONE;
+ ndx++;
+ } else if (match[ndx] === '+') {// Check for plus sign at the beginning
+ ndx++;
+ }
+
+ if (match.length === ndx + 1) { // Check if it's just a simple number "1234"
+ w = assign(match[ndx++], s);
+ } else if (match[ndx + 1] === '.' || match[ndx] === '.') { // Check if it's a decimal number
+
+ if (match[ndx] !== '.') { // Handle 0.5 and .5
+ v = assign(match[ndx++], s);
+ }
+ ndx++;
+
+ // Check for decimal places
+ if (ndx + 1 === match.length || match[ndx + 1] === '(' && match[ndx + 3] === ')' || match[ndx + 1] === "'" && match[ndx + 3] === "'") {
+ w = assign(match[ndx], s);
+ y = C_TEN ** BigInt(match[ndx].length);
+ ndx++;
+ }
+
+ // Check for repeating places
+ if (match[ndx] === '(' && match[ndx + 2] === ')' || match[ndx] === "'" && match[ndx + 2] === "'") {
+ x = assign(match[ndx + 1], s);
+ z = C_TEN ** BigInt(match[ndx + 1].length) - C_ONE;
+ ndx += 3;
+ }
+
+ } else if (match[ndx + 1] === '/' || match[ndx + 1] === ':') { // Check for a simple fraction "123/456" or "123:456"
+ w = assign(match[ndx], s);
+ y = assign(match[ndx + 2], C_ONE);
+ ndx += 3;
+ } else if (match[ndx + 3] === '/' && match[ndx + 1] === ' ') { // Check for a complex fraction "123 1/2"
+ v = assign(match[ndx], s);
+ w = assign(match[ndx + 2], s);
+ y = assign(match[ndx + 4], C_ONE);
+ ndx += 5;
+ }
+
+ if (match.length <= ndx) { // Check for more tokens on the stack
+ d = y * z;
+ s = /* void */
+ n = x + d * v + z * w;
+ } else {
+ throw InvalidParameter();
+ }
+
+ } else if (typeof p1 === "bigint") {
+ n = p1;
+ s = p1;
+ d = C_ONE;
+ } else {
+ throw InvalidParameter();
+ }
+
+ if (d === C_ZERO) {
+ throw DivisionByZero();
+ }
+
+ P["s"] = s < C_ZERO ? -C_ONE : C_ONE;
+ P["n"] = n < C_ZERO ? -n : n;
+ P["d"] = d < C_ZERO ? -d : d;
+};
+
+function modpow(b, e, m) {
+
+ let r = C_ONE;
+ for (; e > C_ZERO; b = (b * b) % m, e >>= C_ONE) {
+
+ if (e & C_ONE) {
+ r = (r * b) % m;
+ }
+ }
+ return r;
+}
+
+function cycleLen(n, d) {
+
+ for (; d % C_TWO === C_ZERO;
+ d /= C_TWO) {
+ }
+
+ for (; d % C_FIVE === C_ZERO;
+ d /= C_FIVE) {
+ }
+
+ if (d === C_ONE) // Catch non-cyclic numbers
+ return C_ZERO;
+
+ // If we would like to compute really large numbers quicker, we could make use of Fermat's little theorem:
+ // 10^(d-1) % d == 1
+ // However, we don't need such large numbers and MAX_CYCLE_LEN should be the capstone,
+ // as we want to translate the numbers to strings.
+
+ let rem = C_TEN % d;
+ let t = 1;
+
+ for (; rem !== C_ONE; t++) {
+ rem = rem * C_TEN % d;
+
+ if (t > MAX_CYCLE_LEN)
+ return C_ZERO; // Returning 0 here means that we don't print it as a cyclic number. It's likely that the answer is `d-1`
+ }
+ return BigInt(t);
+}
+
+function cycleStart(n, d, len) {
+
+ let rem1 = C_ONE;
+ let rem2 = modpow(C_TEN, len, d);
+
+ for (let t = 0; t < 300; t++) { // s < ~log10(Number.MAX_VALUE)
+ // Solve 10^s == 10^(s+t) (mod d)
+
+ if (rem1 === rem2)
+ return BigInt(t);
+
+ rem1 = rem1 * C_TEN % d;
+ rem2 = rem2 * C_TEN % d;
+ }
+ return 0;
+}
+
+function gcd(a, b) {
+
+ if (!a)
+ return b;
+ if (!b)
+ return a;
+
+ while (1) {
+ a %= b;
+ if (!a)
+ return b;
+ b %= a;
+ if (!b)
+ return a;
+ }
+}
+
+/**
+ * Module constructor
+ *
+ * @constructor
+ * @param {number|Fraction=} a
+ * @param {number=} b
+ */
+function Fraction(a, b) {
+
+ parse(a, b);
+
+ if (this instanceof Fraction) {
+ a = gcd(P["d"], P["n"]); // Abuse a
+ this["s"] = P["s"];
+ this["n"] = P["n"] / a;
+ this["d"] = P["d"] / a;
+ } else {
+ return newFraction(P['s'] * P['n'], P['d']);
+ }
+}
+
+const DivisionByZero = function () { return new Error("Division by Zero"); };
+const InvalidParameter = function () { return new Error("Invalid argument"); };
+const NonIntegerParameter = function () { return new Error("Parameters must be integer"); };
+
+Fraction.prototype = {
+
+ "s": C_ONE,
+ "n": C_ZERO,
+ "d": C_ONE,
+
+ /**
+ * Calculates the absolute value
+ *
+ * Ex: new Fraction(-4).abs() => 4
+ **/
+ "abs": function () {
+
+ return newFraction(this["n"], this["d"]);
+ },
+
+ /**
+ * Inverts the sign of the current fraction
+ *
+ * Ex: new Fraction(-4).neg() => 4
+ **/
+ "neg": function () {
+
+ return newFraction(-this["s"] * this["n"], this["d"]);
+ },
+
+ /**
+ * Adds two rational numbers
+ *
+ * Ex: new Fraction({n: 2, d: 3}).add("14.9") => 467 / 30
+ **/
+ "add": function (a, b) {
+
+ parse(a, b);
+ return newFraction(
+ this["s"] * this["n"] * P["d"] + P["s"] * this["d"] * P["n"],
+ this["d"] * P["d"]
+ );
+ },
+
+ /**
+ * Subtracts two rational numbers
+ *
+ * Ex: new Fraction({n: 2, d: 3}).add("14.9") => -427 / 30
+ **/
+ "sub": function (a, b) {
+
+ parse(a, b);
+ return newFraction(
+ this["s"] * this["n"] * P["d"] - P["s"] * this["d"] * P["n"],
+ this["d"] * P["d"]
+ );
+ },
+
+ /**
+ * Multiplies two rational numbers
+ *
+ * Ex: new Fraction("-17.(345)").mul(3) => 5776 / 111
+ **/
+ "mul": function (a, b) {
+
+ parse(a, b);
+ return newFraction(
+ this["s"] * P["s"] * this["n"] * P["n"],
+ this["d"] * P["d"]
+ );
+ },
+
+ /**
+ * Divides two rational numbers
+ *
+ * Ex: new Fraction("-17.(345)").inverse().div(3)
+ **/
+ "div": function (a, b) {
+
+ parse(a, b);
+ return newFraction(
+ this["s"] * P["s"] * this["n"] * P["d"],
+ this["d"] * P["n"]
+ );
+ },
+
+ /**
+ * Clones the actual object
+ *
+ * Ex: new Fraction("-17.(345)").clone()
+ **/
+ "clone": function () {
+ return newFraction(this['s'] * this['n'], this['d']);
+ },
+
+ /**
+ * Calculates the modulo of two rational numbers - a more precise fmod
+ *
+ * Ex: new Fraction('4.(3)').mod([7, 8]) => (13/3) % (7/8) = (5/6)
+ * Ex: new Fraction(20, 10).mod().equals(0) ? "is Integer"
+ **/
+ "mod": function (a, b) {
+
+ if (a === undefined) {
+ return newFraction(this["s"] * this["n"] % this["d"], C_ONE);
+ }
+
+ parse(a, b);
+ if (C_ZERO === P["n"] * this["d"]) {
+ throw DivisionByZero();
+ }
+
+ /**
+ * I derived the rational modulo similar to the modulo for integers
+ *
+ * https://raw.org/book/analysis/rational-numbers/
+ *
+ * n1/d1 = (n2/d2) * q + r, where 0 ≤ r < n2/d2
+ * => d2 * n1 = n2 * d1 * q + d1 * d2 * r
+ * => r = (d2 * n1 - n2 * d1 * q) / (d1 * d2)
+ * = (d2 * n1 - n2 * d1 * floor((d2 * n1) / (n2 * d1))) / (d1 * d2)
+ * = ((d2 * n1) % (n2 * d1)) / (d1 * d2)
+ */
+ return newFraction(
+ this["s"] * (P["d"] * this["n"]) % (P["n"] * this["d"]),
+ P["d"] * this["d"]);
+ },
+
+ /**
+ * Calculates the fractional gcd of two rational numbers
+ *
+ * Ex: new Fraction(5,8).gcd(3,7) => 1/56
+ */
+ "gcd": function (a, b) {
+
+ parse(a, b);
+
+ // https://raw.org/book/analysis/rational-numbers/
+ // gcd(a / b, c / d) = gcd(a, c) / lcm(b, d)
+
+ return newFraction(gcd(P["n"], this["n"]) * gcd(P["d"], this["d"]), P["d"] * this["d"]);
+ },
+
+ /**
+ * Calculates the fractional lcm of two rational numbers
+ *
+ * Ex: new Fraction(5,8).lcm(3,7) => 15
+ */
+ "lcm": function (a, b) {
+
+ parse(a, b);
+
+ // https://raw.org/book/analysis/rational-numbers/
+ // lcm(a / b, c / d) = lcm(a, c) / gcd(b, d)
+
+ if (P["n"] === C_ZERO && this["n"] === C_ZERO) {
+ return newFraction(C_ZERO, C_ONE);
+ }
+ return newFraction(P["n"] * this["n"], gcd(P["n"], this["n"]) * gcd(P["d"], this["d"]));
+ },
+
+ /**
+ * Gets the inverse of the fraction, means numerator and denominator are exchanged
+ *
+ * Ex: new Fraction([-3, 4]).inverse() => -4 / 3
+ **/
+ "inverse": function () {
+ return newFraction(this["s"] * this["d"], this["n"]);
+ },
+
+ /**
+ * Calculates the fraction to some integer exponent
+ *
+ * Ex: new Fraction(-1,2).pow(-3) => -8
+ */
+ "pow": function (a, b) {
+
+ parse(a, b);
+
+ // Trivial case when exp is an integer
+
+ if (P['d'] === C_ONE) {
+
+ if (P['s'] < C_ZERO) {
+ return newFraction((this['s'] * this["d"]) ** P['n'], this["n"] ** P['n']);
+ } else {
+ return newFraction((this['s'] * this["n"]) ** P['n'], this["d"] ** P['n']);
+ }
+ }
+
+ // Negative roots become complex
+ // (-a/b)^(c/d) = x
+ // ⇔ (-1)^(c/d) * (a/b)^(c/d) = x
+ // ⇔ (cos(pi) + i*sin(pi))^(c/d) * (a/b)^(c/d) = x
+ // ⇔ (cos(c*pi/d) + i*sin(c*pi/d)) * (a/b)^(c/d) = x # DeMoivre's formula
+ // From which follows that only for c=0 the root is non-complex
+ if (this['s'] < C_ZERO) return null;
+
+ // Now prime factor n and d
+ let N = factorize(this['n']);
+ let D = factorize(this['d']);
+
+ // Exponentiate and take root for n and d individually
+ let n = C_ONE;
+ let d = C_ONE;
+ for (let k in N) {
+ if (k === '1') continue;
+ if (k === '0') {
+ n = C_ZERO;
+ break;
+ }
+ N[k] *= P['n'];
+
+ if (N[k] % P['d'] === C_ZERO) {
+ N[k] /= P['d'];
+ } else return null;
+ n *= BigInt(k) ** N[k];
+ }
+
+ for (let k in D) {
+ if (k === '1') continue;
+ D[k] *= P['n'];
+
+ if (D[k] % P['d'] === C_ZERO) {
+ D[k] /= P['d'];
+ } else return null;
+ d *= BigInt(k) ** D[k];
+ }
+
+ if (P['s'] < C_ZERO) {
+ return newFraction(d, n);
+ }
+ return newFraction(n, d);
+ },
+
+ /**
+ * Calculates the logarithm of a fraction to a given rational base
+ *
+ * Ex: new Fraction(27, 8).log(9, 4) => 3/2
+ */
+ "log": function (a, b) {
+
+ parse(a, b);
+
+ if (this['s'] <= C_ZERO || P['s'] <= C_ZERO) return null;
+
+ const allPrimes = Object.create(null);
+
+ const baseFactors = factorize(P['n']);
+ const T1 = factorize(P['d']);
+
+ const numberFactors = factorize(this['n']);
+ const T2 = factorize(this['d']);
+
+ for (const prime in T1) {
+ baseFactors[prime] = (baseFactors[prime] || C_ZERO) - T1[prime];
+ }
+ for (const prime in T2) {
+ numberFactors[prime] = (numberFactors[prime] || C_ZERO) - T2[prime];
+ }
+
+ for (const prime in baseFactors) {
+ if (prime === '1') continue;
+ allPrimes[prime] = true;
+ }
+ for (const prime in numberFactors) {
+ if (prime === '1') continue;
+ allPrimes[prime] = true;
+ }
+
+ let retN = null;
+ let retD = null;
+
+ // Iterate over all unique primes to determine if a consistent ratio exists
+ for (const prime in allPrimes) {
+
+ const baseExponent = baseFactors[prime] || C_ZERO;
+ const numberExponent = numberFactors[prime] || C_ZERO;
+
+ if (baseExponent === C_ZERO) {
+ if (numberExponent !== C_ZERO) {
+ return null; // Logarithm cannot be expressed as a rational number
+ }
+ continue; // Skip this prime since both exponents are zero
+ }
+
+ // Calculate the ratio of exponents for this prime
+ let curN = numberExponent;
+ let curD = baseExponent;
+
+ // Simplify the current ratio
+ const gcdValue = gcd(curN, curD);
+ curN /= gcdValue;
+ curD /= gcdValue;
+
+ // Check if this is the first ratio; otherwise, ensure ratios are consistent
+ if (retN === null && retD === null) {
+ retN = curN;
+ retD = curD;
+ } else if (curN * retD !== retN * curD) {
+ return null; // Ratios do not match, logarithm cannot be rational
+ }
+ }
+
+ return retN !== null && retD !== null
+ ? newFraction(retN, retD)
+ : null;
+ },
+
+ /**
+ * Check if two rational numbers are the same
+ *
+ * Ex: new Fraction(19.6).equals([98, 5]);
+ **/
+ "equals": function (a, b) {
+
+ parse(a, b);
+ return this["s"] * this["n"] * P["d"] === P["s"] * P["n"] * this["d"];
+ },
+
+ /**
+ * Check if this rational number is less than another
+ *
+ * Ex: new Fraction(19.6).lt([98, 5]);
+ **/
+ "lt": function (a, b) {
+
+ parse(a, b);
+ return this["s"] * this["n"] * P["d"] < P["s"] * P["n"] * this["d"];
+ },
+
+ /**
+ * Check if this rational number is less than or equal another
+ *
+ * Ex: new Fraction(19.6).lt([98, 5]);
+ **/
+ "lte": function (a, b) {
+
+ parse(a, b);
+ return this["s"] * this["n"] * P["d"] <= P["s"] * P["n"] * this["d"];
+ },
+
+ /**
+ * Check if this rational number is greater than another
+ *
+ * Ex: new Fraction(19.6).lt([98, 5]);
+ **/
+ "gt": function (a, b) {
+
+ parse(a, b);
+ return this["s"] * this["n"] * P["d"] > P["s"] * P["n"] * this["d"];
+ },
+
+ /**
+ * Check if this rational number is greater than or equal another
+ *
+ * Ex: new Fraction(19.6).lt([98, 5]);
+ **/
+ "gte": function (a, b) {
+
+ parse(a, b);
+ return this["s"] * this["n"] * P["d"] >= P["s"] * P["n"] * this["d"];
+ },
+
+ /**
+ * Compare two rational numbers
+ * < 0 iff this < that
+ * > 0 iff this > that
+ * = 0 iff this = that
+ *
+ * Ex: new Fraction(19.6).compare([98, 5]);
+ **/
+ "compare": function (a, b) {
+
+ parse(a, b);
+ let t = this["s"] * this["n"] * P["d"] - P["s"] * P["n"] * this["d"];
+
+ return (C_ZERO < t) - (t < C_ZERO);
+ },
+
+ /**
+ * Calculates the ceil of a rational number
+ *
+ * Ex: new Fraction('4.(3)').ceil() => (5 / 1)
+ **/
+ "ceil": function (places) {
+
+ places = C_TEN ** BigInt(places || 0);
+
+ return newFraction(ifloor(this["s"] * places * this["n"] / this["d"]) +
+ (places * this["n"] % this["d"] > C_ZERO && this["s"] >= C_ZERO ? C_ONE : C_ZERO),
+ places);
+ },
+
+ /**
+ * Calculates the floor of a rational number
+ *
+ * Ex: new Fraction('4.(3)').floor() => (4 / 1)
+ **/
+ "floor": function (places) {
+
+ places = C_TEN ** BigInt(places || 0);
+
+ return newFraction(ifloor(this["s"] * places * this["n"] / this["d"]) -
+ (places * this["n"] % this["d"] > C_ZERO && this["s"] < C_ZERO ? C_ONE : C_ZERO),
+ places);
+ },
+
+ /**
+ * Rounds a rational numbers
+ *
+ * Ex: new Fraction('4.(3)').round() => (4 / 1)
+ **/
+ "round": function (places) {
+
+ places = C_TEN ** BigInt(places || 0);
+
+ /* Derivation:
+
+ s >= 0:
+ round(n / d) = ifloor(n / d) + (n % d) / d >= 0.5 ? 1 : 0
+ = ifloor(n / d) + 2(n % d) >= d ? 1 : 0
+ s < 0:
+ round(n / d) =-ifloor(n / d) - (n % d) / d > 0.5 ? 1 : 0
+ =-ifloor(n / d) - 2(n % d) > d ? 1 : 0
+
+ =>:
+
+ round(s * n / d) = s * ifloor(n / d) + s * (C + 2(n % d) > d ? 1 : 0)
+ where C = s >= 0 ? 1 : 0, to fix the >= for the positve case.
+ */
+
+ return newFraction(ifloor(this["s"] * places * this["n"] / this["d"]) +
+ this["s"] * ((this["s"] >= C_ZERO ? C_ONE : C_ZERO) + C_TWO * (places * this["n"] % this["d"]) > this["d"] ? C_ONE : C_ZERO),
+ places);
+ },
+
+ /**
+ * Rounds a rational number to a multiple of another rational number
+ *
+ * Ex: new Fraction('0.9').roundTo("1/8") => 7 / 8
+ **/
+ "roundTo": function (a, b) {
+
+ /*
+ k * x/y ≤ a/b < (k+1) * x/y
+ ⇔ k ≤ a/b / (x/y) < (k+1)
+ ⇔ k = floor(a/b * y/x)
+ ⇔ k = floor((a * y) / (b * x))
+ */
+
+ parse(a, b);
+
+ const n = this['n'] * P['d'];
+ const d = this['d'] * P['n'];
+ const r = n % d;
+
+ // round(n / d) = ifloor(n / d) + 2(n % d) >= d ? 1 : 0
+ let k = ifloor(n / d);
+ if (r + r >= d) {
+ k++;
+ }
+ return newFraction(this['s'] * k * P['n'], P['d']);
+ },
+
+ /**
+ * Check if two rational numbers are divisible
+ *
+ * Ex: new Fraction(19.6).divisible(1.5);
+ */
+ "divisible": function (a, b) {
+
+ parse(a, b);
+ if (P['n'] === C_ZERO) return false;
+ return (this['n'] * P['d']) % (P['n'] * this['d']) === C_ZERO;
+ },
+
+ /**
+ * Returns a decimal representation of the fraction
+ *
+ * Ex: new Fraction("100.'91823'").valueOf() => 100.91823918239183
+ **/
+ 'valueOf': function () {
+ //if (this['n'] <= MAX_INTEGER && this['d'] <= MAX_INTEGER) {
+ return Number(this['s'] * this['n']) / Number(this['d']);
+ //}
+ },
+
+ /**
+ * Creates a string representation of a fraction with all digits
+ *
+ * Ex: new Fraction("100.'91823'").toString() => "100.(91823)"
+ **/
+ 'toString': function (dec = 15) {
+
+ let N = this["n"];
+ let D = this["d"];
+
+ let cycLen = cycleLen(N, D); // Cycle length
+ let cycOff = cycleStart(N, D, cycLen); // Cycle start
+
+ let str = this['s'] < C_ZERO ? "-" : "";
+
+ // Append integer part
+ str += ifloor(N / D);
+
+ N %= D;
+ N *= C_TEN;
+
+ if (N)
+ str += ".";
+
+ if (cycLen) {
+
+ for (let i = cycOff; i--;) {
+ str += ifloor(N / D);
+ N %= D;
+ N *= C_TEN;
+ }
+ str += "(";
+ for (let i = cycLen; i--;) {
+ str += ifloor(N / D);
+ N %= D;
+ N *= C_TEN;
+ }
+ str += ")";
+ } else {
+ for (let i = dec; N && i--;) {
+ str += ifloor(N / D);
+ N %= D;
+ N *= C_TEN;
+ }
+ }
+ return str;
+ },
+
+ /**
+ * Returns a string-fraction representation of a Fraction object
+ *
+ * Ex: new Fraction("1.'3'").toFraction() => "4 1/3"
+ **/
+ 'toFraction': function (showMixed = false) {
+
+ let n = this["n"];
+ let d = this["d"];
+ let str = this['s'] < C_ZERO ? "-" : "";
+
+ if (d === C_ONE) {
+ str += n;
+ } else {
+ const whole = ifloor(n / d);
+ if (showMixed && whole > C_ZERO) {
+ str += whole;
+ str += " ";
+ n %= d;
+ }
+
+ str += n;
+ str += '/';
+ str += d;
+ }
+ return str;
+ },
+
+ /**
+ * Returns a latex representation of a Fraction object
+ *
+ * Ex: new Fraction("1.'3'").toLatex() => "\frac{4}{3}"
+ **/
+ 'toLatex': function (showMixed = false) {
+
+ let n = this["n"];
+ let d = this["d"];
+ let str = this['s'] < C_ZERO ? "-" : "";
+
+ if (d === C_ONE) {
+ str += n;
+ } else {
+ const whole = ifloor(n / d);
+ if (showMixed && whole > C_ZERO) {
+ str += whole;
+ n %= d;
+ }
+
+ str += "\\frac{";
+ str += n;
+ str += '}{';
+ str += d;
+ str += '}';
+ }
+ return str;
+ },
+
+ /**
+ * Returns an array of continued fraction elements
+ *
+ * Ex: new Fraction("7/8").toContinued() => [0,1,7]
+ */
+ 'toContinued': function () {
+
+ let a = this['n'];
+ let b = this['d'];
+ const res = [];
+
+ while (b) {
+ res.push(ifloor(a / b));
+ const t = a % b;
+ a = b;
+ b = t;
+ }
+ return res;
+ },
+
+ "simplify": function (eps = 1e-3) {
+
+ // Continued fractions give best approximations for a max denominator,
+ // generally outperforming mediants in denominator–accuracy trade-offs.
+ // Semiconvergents can further reduce the denominator within tolerance.
+
+ const ieps = BigInt(Math.ceil(1 / eps));
+
+ const thisABS = this['abs']();
+ const cont = thisABS['toContinued']();
+
+ for (let i = 1; i < cont.length; i++) {
+
+ let s = newFraction(cont[i - 1], C_ONE);
+ for (let k = i - 2; k >= 0; k--) {
+ s = s['inverse']()['add'](cont[k]);
+ }
+
+ let t = s['sub'](thisABS);
+ if (t['n'] * ieps < t['d']) { // More robust than Math.abs(t.valueOf()) < eps
+ return s['mul'](this['s']);
+ }
+ }
+ return this;
+ }
+};
+export {
+ Fraction as default, Fraction
+};
diff --git a/web/node_modules/fraction.js/examples/angles.js b/web/node_modules/fraction.js/examples/angles.js
new file mode 100644
index 0000000000000000000000000000000000000000..436947e9a9967ec4ea4388ab82c2fa19811ced69
--- /dev/null
+++ b/web/node_modules/fraction.js/examples/angles.js
@@ -0,0 +1,26 @@
+/*
+Fraction.js v5.0.0 10/1/2024
+https://raw.org/article/rational-numbers-in-javascript/
+
+Copyright (c) 2024, Robert Eisele (https://raw.org/)
+Licensed under the MIT license.
+*/
+
+// This example generates a list of angles with human readable radians
+
+var Fraction = require('fraction.js');
+
+var tab = [];
+for (var d = 1; d <= 360; d++) {
+
+ var pi = Fraction(2, 360).mul(d);
+ var tau = Fraction(1, 360).mul(d);
+
+ if (pi.d <= 6n && pi.d != 5n)
+ tab.push([
+ d,
+ pi.toFraction() + "pi",
+ tau.toFraction() + "tau"]);
+}
+
+console.table(tab);
diff --git a/web/node_modules/fraction.js/examples/approx.js b/web/node_modules/fraction.js/examples/approx.js
new file mode 100644
index 0000000000000000000000000000000000000000..36aa030d9102869f9df50671bec168744ed2f914
--- /dev/null
+++ b/web/node_modules/fraction.js/examples/approx.js
@@ -0,0 +1,54 @@
+/*
+Fraction.js v5.0.0 10/1/2024
+https://raw.org/article/rational-numbers-in-javascript/
+
+Copyright (c) 2024, Robert Eisele (https://raw.org/)
+Licensed under the MIT license.
+*/
+const Fraction = require('fraction.js');
+
+// Another rational approximation, not using Farey Sequences but Binary Search using the mediant
+function approximate(p, precision) {
+
+ var num1 = Math.floor(p);
+ var den1 = 1;
+
+ var num2 = num1 + 1;
+ var den2 = 1;
+
+ if (p !== num1) {
+
+ while (den1 <= precision && den2 <= precision) {
+
+ var m = (num1 + num2) / (den1 + den2);
+
+ if (p === m) {
+
+ if (den1 + den2 <= precision) {
+ den1 += den2;
+ num1 += num2;
+ den2 = precision + 1;
+ } else if (den1 > den2) {
+ den2 = precision + 1;
+ } else {
+ den1 = precision + 1;
+ }
+ break;
+
+ } else if (p < m) {
+ num2 += num1;
+ den2 += den1;
+ } else {
+ num1 += num2;
+ den1 += den2;
+ }
+ }
+ }
+
+ if (den1 > precision) {
+ den1 = den2;
+ num1 = num2;
+ }
+ return new Fraction(num1, den1);
+}
+
diff --git a/web/node_modules/fraction.js/examples/egyptian.js b/web/node_modules/fraction.js/examples/egyptian.js
new file mode 100644
index 0000000000000000000000000000000000000000..66fc209f2c2a2829a4badf8deb619d7482adec2d
--- /dev/null
+++ b/web/node_modules/fraction.js/examples/egyptian.js
@@ -0,0 +1,24 @@
+/*
+Fraction.js v5.0.0 10/1/2024
+https://raw.org/article/rational-numbers-in-javascript/
+
+Copyright (c) 2024, Robert Eisele (https://raw.org/)
+Licensed under the MIT license.
+*/
+const Fraction = require('fraction.js');
+
+// Based on http://www.maths.surrey.ac.uk/hosted-sites/R.Knott/Fractions/egyptian.html
+function egyptian(a, b) {
+
+ var res = [];
+
+ do {
+ var t = Math.ceil(b / a);
+ var x = new Fraction(a, b).sub(1, t);
+ res.push(t);
+ a = Number(x.n);
+ b = Number(x.d);
+ } while (a !== 0n);
+ return res;
+}
+console.log("1 / " + egyptian(521, 1050).join(" + 1 / "));
diff --git a/web/node_modules/fraction.js/examples/hesse-convergence.js b/web/node_modules/fraction.js/examples/hesse-convergence.js
new file mode 100644
index 0000000000000000000000000000000000000000..c33a58beaa55b5c05221d88c175d8def8e951914
--- /dev/null
+++ b/web/node_modules/fraction.js/examples/hesse-convergence.js
@@ -0,0 +1,111 @@
+/*
+Fraction.js v5.0.0 10/1/2024
+https://raw.org/article/rational-numbers-in-javascript/
+
+Copyright (c) 2024, Robert Eisele (https://raw.org/)
+Licensed under the MIT license.
+*/
+const Fraction = require('fraction.js');
+
+/*
+We have the polynom f(x) = 1/3x_1^2 + x_2^2 + x_1 * x_2 + 3
+
+The gradient of f(x):
+
+grad(x) = | x_1^2+x_2 |
+ | 2x_2+x_1 |
+
+And thus the Hesse-Matrix H:
+| 2x_1 1 |
+| 1 2 |
+
+The inverse Hesse-Matrix H^-1 is
+| -2 / (1-4x_1) 1 / (1 - 4x_1) |
+| 1 / (1 - 4x_1) -2x_1 / (1 - 4x_1) |
+
+We now want to find lim ->oo x[n], with the starting element of (3 2)^T
+
+*/
+
+// Get the Hesse Matrix
+function H(x) {
+
+ var z = Fraction(1).sub(Fraction(4).mul(x[0]));
+
+ return [
+ Fraction(-2).div(z),
+ Fraction(1).div(z),
+ Fraction(1).div(z),
+ Fraction(-2).mul(x[0]).div(z),
+ ];
+}
+
+// Get the gradient of f(x)
+function grad(x) {
+
+ return [
+ Fraction(x[0]).mul(x[0]).add(x[1]),
+ Fraction(2).mul(x[1]).add(x[0])
+ ];
+}
+
+// A simple matrix multiplication helper
+function matrMult(m, v) {
+
+ return [
+ Fraction(m[0]).mul(v[0]).add(Fraction(m[1]).mul(v[1])),
+ Fraction(m[2]).mul(v[0]).add(Fraction(m[3]).mul(v[1]))
+ ];
+}
+
+// A simple vector subtraction helper
+function vecSub(a, b) {
+
+ return [
+ Fraction(a[0]).sub(b[0]),
+ Fraction(a[1]).sub(b[1])
+ ];
+}
+
+// Main function, gets a vector and the actual index
+function run(V, j) {
+
+ var t = H(V);
+ //console.log("H(X)");
+ for (var i in t) {
+
+ // console.log(t[i].toFraction());
+ }
+
+ var s = grad(V);
+ //console.log("vf(X)");
+ for (var i in s) {
+
+ // console.log(s[i].toFraction());
+ }
+
+ //console.log("multiplication");
+ var r = matrMult(t, s);
+ for (var i in r) {
+
+ // console.log(r[i].toFraction());
+ }
+
+ var R = (vecSub(V, r));
+
+ console.log("X" + j);
+ console.log(R[0].toFraction(), "= " + R[0].valueOf());
+ console.log(R[1].toFraction(), "= " + R[1].valueOf());
+ console.log("\n");
+
+ return R;
+}
+
+
+// Set the starting vector
+var v = [3, 2];
+
+for (var i = 0; i < 15; i++) {
+
+ v = run(v, i);
+}
diff --git a/web/node_modules/fraction.js/examples/integrate.js b/web/node_modules/fraction.js/examples/integrate.js
new file mode 100644
index 0000000000000000000000000000000000000000..6376aed41f87ce43e802fe27c07a0a926084af16
--- /dev/null
+++ b/web/node_modules/fraction.js/examples/integrate.js
@@ -0,0 +1,67 @@
+/*
+Fraction.js v5.0.0 10/1/2024
+https://raw.org/article/rational-numbers-in-javascript/
+
+Copyright (c) 2024, Robert Eisele (https://raw.org/)
+Licensed under the MIT license.
+*/
+const Fraction = require('fraction.js');
+
+// NOTE: This is a nice example, but a stable version of this is served with Polynomial.js:
+// https://github.com/rawify/Polynomial.js
+
+function integrate(poly) {
+
+ poly = poly.replace(/\s+/g, "");
+
+ var regex = /(\([+-]?[0-9/]+\)|[+-]?[0-9/]+)x(?:\^(\([+-]?[0-9/]+\)|[+-]?[0-9]+))?/g;
+ var arr;
+ var res = {};
+ while (null !== (arr = regex.exec(poly))) {
+
+ var a = (arr[1] || "1").replace("(", "").replace(")", "").split("/");
+ var b = (arr[2] || "1").replace("(", "").replace(")", "").split("/");
+
+ var exp = new Fraction(b).add(1);
+ var key = "" + exp;
+
+ if (res[key] !== undefined) {
+ res[key] = { x: new Fraction(a).div(exp).add(res[key].x), e: exp };
+ } else {
+ res[key] = { x: new Fraction(a).div(exp), e: exp };
+ }
+ }
+
+ var str = "";
+ var c = 0;
+ for (var i in res) {
+ if (res[i].x.s !== -1n && c > 0) {
+ str += "+";
+ } else if (res[i].x.s === -1n) {
+ str += "-";
+ }
+ if (res[i].x.n !== res[i].x.d) {
+ if (res[i].x.d !== 1n) {
+ str += res[i].x.n + "/" + res[i].x.d;
+ } else {
+ str += res[i].x.n;
+ }
+ }
+ str += "x";
+ if (res[i].e.n !== res[i].e.d) {
+ str += "^";
+ if (res[i].e.d !== 1n) {
+ str += "(" + res[i].e.n + "/" + res[i].e.d + ")";
+ } else {
+ str += res[i].e.n;
+ }
+ }
+ c++;
+ }
+ return str;
+}
+
+var poly = "-2/3x^3-2x^2+3x+8x^3-1/3x^(4/8)";
+
+console.log("f(x): " + poly);
+console.log("F(x): " + integrate(poly));
diff --git a/web/node_modules/fraction.js/examples/ratio-chain.js b/web/node_modules/fraction.js/examples/ratio-chain.js
new file mode 100644
index 0000000000000000000000000000000000000000..fab78762e5d5bba1ad3bd9c2e64f538c8384db3c
--- /dev/null
+++ b/web/node_modules/fraction.js/examples/ratio-chain.js
@@ -0,0 +1,24 @@
+/*
+Given the ratio a : b : c = 2 : 3 : 4
+What is c, given a = 40?
+
+A general ratio chain is a_1 : a_2 : a_3 : ... : a_n = r_1 : r2 : r_3 : ... : r_n.
+Now each term can be expressed as a_i = r_i * x for some unknown proportional constant x.
+If a_k is known it follows that x = a_k / r_k. Substituting x into the first equation yields
+a_i = r_i / r_k * a_k.
+
+Given an array r and a given value a_k, the following function calculates all a_i:
+*/
+
+function calculateRatios(r, a_k, k) {
+ const x = Fraction(a_k).div(r[k]);
+ return r.map(r_i => x.mul(r_i));
+}
+
+// Example usage:
+const r = [2, 3, 4]; // Ratio array representing a : b : c = 2 : 3 : 4
+const a_k = 40; // Given value of a (corresponding to r[0])
+const k = 0; // Index of the known value (a corresponds to r[0])
+
+const result = calculateRatios(r, a_k, k);
+console.log(result); // Output: [40, 60, 80]
diff --git a/web/node_modules/fraction.js/examples/rational-pow.js b/web/node_modules/fraction.js/examples/rational-pow.js
new file mode 100644
index 0000000000000000000000000000000000000000..1268e274de0b2f0301e4e292ed351a0bf6717104
--- /dev/null
+++ b/web/node_modules/fraction.js/examples/rational-pow.js
@@ -0,0 +1,29 @@
+/*
+Fraction.js v5.0.0 10/1/2024
+https://raw.org/article/rational-numbers-in-javascript/
+
+Copyright (c) 2024, Robert Eisele (https://raw.org/)
+Licensed under the MIT license.
+*/
+const Fraction = require('fraction.js');
+
+// Calculates (a/b)^(c/d) if result is rational
+// Derivation: https://raw.org/book/analysis/rational-numbers/
+function root(a, b, c, d) {
+
+ // Initial estimate
+ let x = Fraction(100 * (Math.floor(Math.pow(a / b, c / d)) || 1), 100);
+ const abc = Fraction(a, b).pow(c);
+
+ for (let i = 0; i < 30; i++) {
+ const n = abc.mul(x.pow(1 - d)).sub(x).div(d).add(x)
+
+ if (x.n === n.n && x.d === n.d) {
+ return n;
+ }
+ x = n;
+ }
+ return null;
+}
+
+root(18, 2, 1, 2); // 3/1
diff --git a/web/node_modules/fraction.js/examples/tape-measure.js b/web/node_modules/fraction.js/examples/tape-measure.js
new file mode 100644
index 0000000000000000000000000000000000000000..14ec524bc34d0ae5f1dbd80542ca20921c0e6ece
--- /dev/null
+++ b/web/node_modules/fraction.js/examples/tape-measure.js
@@ -0,0 +1,16 @@
+/*
+Fraction.js v5.0.0 10/1/2024
+https://raw.org/article/rational-numbers-in-javascript/
+
+Copyright (c) 2024, Robert Eisele (https://raw.org/)
+Licensed under the MIT license.
+*/
+const Fraction = require('fraction.js');
+
+function closestTapeMeasure(frac) {
+
+ // A tape measure is usually divided in parts of 1/16
+
+ return Fraction(frac).roundTo("1/16");
+}
+console.log(closestTapeMeasure("1/3")); // 5/16
diff --git a/web/node_modules/fraction.js/examples/toFraction.js b/web/node_modules/fraction.js/examples/toFraction.js
new file mode 100644
index 0000000000000000000000000000000000000000..f935e4733678dc5e7f1dd24f9effc2fcc4864a1f
--- /dev/null
+++ b/web/node_modules/fraction.js/examples/toFraction.js
@@ -0,0 +1,35 @@
+/*
+Fraction.js v5.0.0 10/1/2024
+https://raw.org/article/rational-numbers-in-javascript/
+
+Copyright (c) 2024, Robert Eisele (https://raw.org/)
+Licensed under the MIT license.
+*/
+
+const Fraction = require('fraction.js');
+
+function toFraction(frac) {
+
+ var map = {
+ '1:4': "¼",
+ '1:2': "½",
+ '3:4': "¾",
+ '1:7': "⅐",
+ '1:9': "⅑",
+ '1:10': "⅒",
+ '1:3': "⅓",
+ '2:3': "⅔",
+ '1:5': "⅕",
+ '2:5': "⅖",
+ '3:5': "⅗",
+ '4:5': "⅘",
+ '1:6': "⅙",
+ '5:6': "⅚",
+ '1:8': "⅛",
+ '3:8': "⅜",
+ '5:8': "⅝",
+ '7:8': "⅞"
+ };
+ return map[frac.n + ":" + frac.d] || frac.toFraction(false);
+}
+console.log(toFraction(Fraction(0.25))); // ¼
diff --git a/web/node_modules/fraction.js/examples/valueOfPi.js b/web/node_modules/fraction.js/examples/valueOfPi.js
new file mode 100644
index 0000000000000000000000000000000000000000..8fc877eb53396d0953510df1dda3d1f2069ac034
--- /dev/null
+++ b/web/node_modules/fraction.js/examples/valueOfPi.js
@@ -0,0 +1,42 @@
+/*
+Fraction.js v5.0.0 10/1/2024
+https://raw.org/article/rational-numbers-in-javascript/
+
+Copyright (c) 2024, Robert Eisele (https://raw.org/)
+Licensed under the MIT license.
+*/
+
+var Fraction = require("fraction.js")
+
+function valueOfPi(val) {
+
+ let minLen = Infinity, minI = 0, min = null;
+ const choose = [val, val * Math.PI, val / Math.PI];
+ for (let i = 0; i < choose.length; i++) {
+ let el = new Fraction(choose[i]).simplify(1e-13);
+ let len = Math.log(Number(el.n) + 1) + Math.log(Number(el.d));
+ if (len < minLen) {
+ minLen = len;
+ minI = i;
+ min = el;
+ }
+ }
+
+ if (minI == 2) {
+ return min.toFraction().replace(/(\d+)(\/\d+)?/, (_, p, q) =>
+ (p == "1" ? "" : p) + "π" + (q || ""));
+ }
+
+ if (minI == 1) {
+ return min.toFraction().replace(/(\d+)(\/\d+)?/, (_, p, q) =>
+ p + (!q ? "/π" : "/(" + q.slice(1) + "π)"));
+ }
+ return min.toFraction();
+}
+
+console.log(valueOfPi(-3)); // -3
+console.log(valueOfPi(4 * Math.PI)); // 4π
+console.log(valueOfPi(3.14)); // 157/50
+console.log(valueOfPi(3 / 2 * Math.PI)); // 3π/2
+console.log(valueOfPi(Math.PI / 2)); // π/2
+console.log(valueOfPi(-1 / (2 * Math.PI))); // -1/(2π)
diff --git a/web/node_modules/fraction.js/fraction.d.mts b/web/node_modules/fraction.js/fraction.d.mts
new file mode 100644
index 0000000000000000000000000000000000000000..0604ad7f1ba3cebbf60547930aa08beb33ddcea4
--- /dev/null
+++ b/web/node_modules/fraction.js/fraction.d.mts
@@ -0,0 +1,79 @@
+/**
+ * Interface representing a fraction with numerator and denominator.
+ */
+export interface NumeratorDenominator {
+ n: number | bigint;
+ d: number | bigint;
+}
+
+/**
+ * Type for handling multiple types of input for Fraction operations.
+ */
+export type FractionInput =
+ | Fraction
+ | number
+ | bigint
+ | string
+ | [number | bigint | string, number | bigint | string]
+ | NumeratorDenominator;
+
+/**
+ * Function signature for Fraction operations like add, sub, mul, etc.
+ */
+export type FractionParam = {
+ (numerator: number | bigint, denominator: number | bigint): Fraction;
+ (num: FractionInput): Fraction;
+};
+
+/**
+ * Fraction class representing a rational number with numerator and denominator.
+ */
+declare class Fraction {
+ constructor();
+ constructor(num: FractionInput);
+ constructor(numerator: number | bigint, denominator: number | bigint);
+
+ s: bigint;
+ n: bigint;
+ d: bigint;
+
+ abs(): Fraction;
+ neg(): Fraction;
+
+ add: FractionParam;
+ sub: FractionParam;
+ mul: FractionParam;
+ div: FractionParam;
+ pow: FractionParam;
+ log: FractionParam;
+ gcd: FractionParam;
+ lcm: FractionParam;
+
+ mod(): Fraction;
+ mod(num: FractionInput): Fraction;
+
+ ceil(places?: number): Fraction;
+ floor(places?: number): Fraction;
+ round(places?: number): Fraction;
+ roundTo: FractionParam;
+
+ inverse(): Fraction;
+ simplify(eps?: number): Fraction;
+
+ equals(num: FractionInput): boolean;
+ lt(num: FractionInput): boolean;
+ lte(num: FractionInput): boolean;
+ gt(num: FractionInput): boolean;
+ gte(num: FractionInput): boolean;
+ compare(num: FractionInput): number;
+ divisible(num: FractionInput): boolean;
+
+ valueOf(): number;
+ toString(decimalPlaces?: number): string;
+ toLatex(showMixed?: boolean): string;
+ toFraction(showMixed?: boolean): string;
+ toContinued(): bigint[];
+ clone(): Fraction;
+}
+
+export { Fraction as default, Fraction };
\ No newline at end of file
diff --git a/web/node_modules/fraction.js/fraction.d.ts b/web/node_modules/fraction.js/fraction.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..97222b90dafd3afc0be8d12923e818b2364e22cf
--- /dev/null
+++ b/web/node_modules/fraction.js/fraction.d.ts
@@ -0,0 +1,79 @@
+declare class Fraction {
+ constructor();
+ constructor(num: Fraction.FractionInput);
+ constructor(numerator: number | bigint, denominator: number | bigint);
+
+ s: bigint;
+ n: bigint;
+ d: bigint;
+
+ abs(): Fraction;
+ neg(): Fraction;
+
+ add: Fraction.FractionParam;
+ sub: Fraction.FractionParam;
+ mul: Fraction.FractionParam;
+ div: Fraction.FractionParam;
+ pow: Fraction.FractionParam;
+ log: Fraction.FractionParam;
+ gcd: Fraction.FractionParam;
+ lcm: Fraction.FractionParam;
+
+ mod(): Fraction;
+ mod(num: Fraction.FractionInput): Fraction;
+
+ ceil(places?: number): Fraction;
+ floor(places?: number): Fraction;
+ round(places?: number): Fraction;
+ roundTo: Fraction.FractionParam;
+
+ inverse(): Fraction;
+ simplify(eps?: number): Fraction;
+
+ equals(num: Fraction.FractionInput): boolean;
+ lt(num: Fraction.FractionInput): boolean;
+ lte(num: Fraction.FractionInput): boolean;
+ gt(num: Fraction.FractionInput): boolean;
+ gte(num: Fraction.FractionInput): boolean;
+ compare(num: Fraction.FractionInput): number;
+ divisible(num: Fraction.FractionInput): boolean;
+
+ valueOf(): number;
+ toString(decimalPlaces?: number): string;
+ toLatex(showMixed?: boolean): string;
+ toFraction(showMixed?: boolean): string;
+ toContinued(): bigint[];
+ clone(): Fraction;
+
+ static default: typeof Fraction;
+ static Fraction: typeof Fraction;
+}
+
+declare namespace Fraction {
+ interface NumeratorDenominator { n: number | bigint; d: number | bigint; }
+ type FractionInput =
+ | Fraction
+ | number
+ | bigint
+ | string
+ | [number | bigint | string, number | bigint | string]
+ | NumeratorDenominator;
+
+ type FractionParam = {
+ (numerator: number | bigint, denominator: number | bigint): Fraction;
+ (num: FractionInput): Fraction;
+ };
+}
+
+/**
+ * Export matches CJS runtime:
+ * module.exports = Fraction;
+ * module.exports.default = Fraction;
+ * module.exports.Fraction = Fraction;
+ */
+declare const FractionExport: typeof Fraction & {
+ default: typeof Fraction;
+ Fraction: typeof Fraction;
+};
+
+export = FractionExport;
\ No newline at end of file
diff --git a/web/node_modules/fraction.js/package.json b/web/node_modules/fraction.js/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..03f7986b1b5b50a2682ed5bf8ab552ba4b324f7c
--- /dev/null
+++ b/web/node_modules/fraction.js/package.json
@@ -0,0 +1,81 @@
+{
+ "name": "fraction.js",
+ "title": "Fraction.js",
+ "version": "5.3.4",
+ "description": "The RAW rational numbers library",
+ "homepage": "https://raw.org/article/rational-numbers-in-javascript/",
+ "bugs": "https://github.com/rawify/Fraction.js/issues",
+ "keywords": [
+ "math",
+ "numbers",
+ "parser",
+ "ratio",
+ "fraction",
+ "fractions",
+ "rational",
+ "rationals",
+ "rational numbers",
+ "bigint",
+ "arbitrary precision",
+ "mixed numbers",
+ "decimal",
+ "numerator",
+ "denominator",
+ "simplification"
+ ],
+ "private": false,
+ "main": "./dist/fraction.js",
+ "module": "./dist/fraction.mjs",
+ "browser": "./dist/fraction.min.js",
+ "unpkg": "./dist/fraction.min.js",
+ "types": "./fraction.d.mts",
+ "exports": {
+ ".": {
+ "types": {
+ "import": "./fraction.d.mts",
+ "require": "./fraction.d.ts"
+ },
+ "import": "./dist/fraction.mjs",
+ "require": "./dist/fraction.js",
+ "browser": "./dist/fraction.min.js"
+ },
+ "./package.json": "./package.json"
+ },
+ "typesVersions": {
+ "<4.7": {
+ "*": [
+ "fraction.d.ts"
+ ]
+ }
+ },
+ "sideEffects": false,
+ "repository": {
+ "type": "git",
+ "url": "git+ssh://git@github.com/rawify/Fraction.js.git"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/rawify"
+ },
+ "author": {
+ "name": "Robert Eisele",
+ "email": "robert@raw.org",
+ "url": "https://raw.org/"
+ },
+ "license": "MIT",
+ "engines": {
+ "node": "*"
+ },
+ "directories": {
+ "example": "examples",
+ "test": "tests"
+ },
+ "scripts": {
+ "build": "crude-build Fraction",
+ "test": "mocha tests/*.js"
+ },
+ "devDependencies": {
+ "crude-build": "^0.1.2",
+ "mocha": "*"
+ }
+}
\ No newline at end of file
diff --git a/web/node_modules/fraction.js/src/fraction.js b/web/node_modules/fraction.js/src/fraction.js
new file mode 100644
index 0000000000000000000000000000000000000000..4292c48b7afd859aaf97a97d6973837e9370166c
--- /dev/null
+++ b/web/node_modules/fraction.js/src/fraction.js
@@ -0,0 +1,1046 @@
+/**
+ * @license Fraction.js v5.3.4 8/22/2025
+ * https://raw.org/article/rational-numbers-in-javascript/
+ *
+ * Copyright (c) 2025, Robert Eisele (https://raw.org/)
+ * Licensed under the MIT license.
+ **/
+
+/**
+ *
+ * This class offers the possibility to calculate fractions.
+ * You can pass a fraction in different formats. Either as array, as double, as string or as an integer.
+ *
+ * Array/Object form
+ * [ 0 => , 1 => ]
+ * { n => , d => }
+ *
+ * Integer form
+ * - Single integer value as BigInt or Number
+ *
+ * Double form
+ * - Single double value as Number
+ *
+ * String form
+ * 123.456 - a simple double
+ * 123/456 - a string fraction
+ * 123.'456' - a double with repeating decimal places
+ * 123.(456) - synonym
+ * 123.45'6' - a double with repeating last place
+ * 123.45(6) - synonym
+ *
+ * Example:
+ * let f = new Fraction("9.4'31'");
+ * f.mul([-4, 3]).div(4.9);
+ *
+ */
+
+// Set Identity function to downgrade BigInt to Number if needed
+if (typeof BigInt === 'undefined') BigInt = function (n) { if (isNaN(n)) throw new Error(""); return n; };
+
+const C_ZERO = BigInt(0);
+const C_ONE = BigInt(1);
+const C_TWO = BigInt(2);
+const C_THREE = BigInt(3);
+const C_FIVE = BigInt(5);
+const C_TEN = BigInt(10);
+const MAX_INTEGER = BigInt(Number.MAX_SAFE_INTEGER);
+
+// Maximum search depth for cyclic rational numbers. 2000 should be more than enough.
+// Example: 1/7 = 0.(142857) has 6 repeating decimal places.
+// If MAX_CYCLE_LEN gets reduced, long cycles will not be detected and toString() only gets the first 10 digits
+const MAX_CYCLE_LEN = 2000;
+
+// Parsed data to avoid calling "new" all the time
+const P = {
+ "s": C_ONE,
+ "n": C_ZERO,
+ "d": C_ONE
+};
+
+function assign(n, s) {
+
+ try {
+ n = BigInt(n);
+ } catch (e) {
+ throw InvalidParameter();
+ }
+ return n * s;
+}
+
+function ifloor(x) {
+ return typeof x === 'bigint' ? x : Math.floor(x);
+}
+
+// Creates a new Fraction internally without the need of the bulky constructor
+function newFraction(n, d) {
+
+ if (d === C_ZERO) {
+ throw DivisionByZero();
+ }
+
+ const f = Object.create(Fraction.prototype);
+ f["s"] = n < C_ZERO ? -C_ONE : C_ONE;
+
+ n = n < C_ZERO ? -n : n;
+
+ const a = gcd(n, d);
+
+ f["n"] = n / a;
+ f["d"] = d / a;
+ return f;
+}
+
+const FACTORSTEPS = [C_TWO * C_TWO, C_TWO, C_TWO * C_TWO, C_TWO, C_TWO * C_TWO, C_TWO * C_THREE, C_TWO, C_TWO * C_THREE]; // repeats
+function factorize(n) {
+
+ const factors = Object.create(null);
+ if (n <= C_ONE) {
+ factors[n] = C_ONE;
+ return factors;
+ }
+
+ const add = (p) => { factors[p] = (factors[p] || C_ZERO) + C_ONE; };
+
+ while (n % C_TWO === C_ZERO) { add(C_TWO); n /= C_TWO; }
+ while (n % C_THREE === C_ZERO) { add(C_THREE); n /= C_THREE; }
+ while (n % C_FIVE === C_ZERO) { add(C_FIVE); n /= C_FIVE; }
+
+ // 30-wheel trial division: test only residues coprime to 2*3*5
+ // Residue step pattern after 5: 7,11,13,17,19,23,29,31, ...
+ for (let si = 0, p = C_TWO + C_FIVE; p * p <= n;) {
+ while (n % p === C_ZERO) { add(p); n /= p; }
+ p += FACTORSTEPS[si];
+ si = (si + 1) & 7; // fast modulo 8
+ }
+ if (n > C_ONE) add(n);
+ return factors;
+}
+
+const parse = function (p1, p2) {
+
+ let n = C_ZERO, d = C_ONE, s = C_ONE;
+
+ if (p1 === undefined || p1 === null) { // No argument
+ /* void */
+ } else if (p2 !== undefined) { // Two arguments
+
+ if (typeof p1 === "bigint") {
+ n = p1;
+ } else if (isNaN(p1)) {
+ throw InvalidParameter();
+ } else if (p1 % 1 !== 0) {
+ throw NonIntegerParameter();
+ } else {
+ n = BigInt(p1);
+ }
+
+ if (typeof p2 === "bigint") {
+ d = p2;
+ } else if (isNaN(p2)) {
+ throw InvalidParameter();
+ } else if (p2 % 1 !== 0) {
+ throw NonIntegerParameter();
+ } else {
+ d = BigInt(p2);
+ }
+
+ s = n * d;
+
+ } else if (typeof p1 === "object") {
+ if ("d" in p1 && "n" in p1) {
+ n = BigInt(p1["n"]);
+ d = BigInt(p1["d"]);
+ if ("s" in p1)
+ n *= BigInt(p1["s"]);
+ } else if (0 in p1) {
+ n = BigInt(p1[0]);
+ if (1 in p1)
+ d = BigInt(p1[1]);
+ } else if (typeof p1 === "bigint") {
+ n = p1;
+ } else {
+ throw InvalidParameter();
+ }
+ s = n * d;
+ } else if (typeof p1 === "number") {
+
+ if (isNaN(p1)) {
+ throw InvalidParameter();
+ }
+
+ if (p1 < 0) {
+ s = -C_ONE;
+ p1 = -p1;
+ }
+
+ if (p1 % 1 === 0) {
+ n = BigInt(p1);
+ } else {
+
+ let z = 1;
+
+ let A = 0, B = 1;
+ let C = 1, D = 1;
+
+ let N = 10000000;
+
+ if (p1 >= 1) {
+ z = 10 ** Math.floor(1 + Math.log10(p1));
+ p1 /= z;
+ }
+
+ // Using Farey Sequences
+
+ while (B <= N && D <= N) {
+ let M = (A + C) / (B + D);
+
+ if (p1 === M) {
+ if (B + D <= N) {
+ n = A + C;
+ d = B + D;
+ } else if (D > B) {
+ n = C;
+ d = D;
+ } else {
+ n = A;
+ d = B;
+ }
+ break;
+
+ } else {
+
+ if (p1 > M) {
+ A += C;
+ B += D;
+ } else {
+ C += A;
+ D += B;
+ }
+
+ if (B > N) {
+ n = C;
+ d = D;
+ } else {
+ n = A;
+ d = B;
+ }
+ }
+ }
+ n = BigInt(n) * BigInt(z);
+ d = BigInt(d);
+ }
+
+ } else if (typeof p1 === "string") {
+
+ let ndx = 0;
+
+ let v = C_ZERO, w = C_ZERO, x = C_ZERO, y = C_ONE, z = C_ONE;
+
+ let match = p1.replace(/_/g, '').match(/\d+|./g);
+
+ if (match === null)
+ throw InvalidParameter();
+
+ if (match[ndx] === '-') {// Check for minus sign at the beginning
+ s = -C_ONE;
+ ndx++;
+ } else if (match[ndx] === '+') {// Check for plus sign at the beginning
+ ndx++;
+ }
+
+ if (match.length === ndx + 1) { // Check if it's just a simple number "1234"
+ w = assign(match[ndx++], s);
+ } else if (match[ndx + 1] === '.' || match[ndx] === '.') { // Check if it's a decimal number
+
+ if (match[ndx] !== '.') { // Handle 0.5 and .5
+ v = assign(match[ndx++], s);
+ }
+ ndx++;
+
+ // Check for decimal places
+ if (ndx + 1 === match.length || match[ndx + 1] === '(' && match[ndx + 3] === ')' || match[ndx + 1] === "'" && match[ndx + 3] === "'") {
+ w = assign(match[ndx], s);
+ y = C_TEN ** BigInt(match[ndx].length);
+ ndx++;
+ }
+
+ // Check for repeating places
+ if (match[ndx] === '(' && match[ndx + 2] === ')' || match[ndx] === "'" && match[ndx + 2] === "'") {
+ x = assign(match[ndx + 1], s);
+ z = C_TEN ** BigInt(match[ndx + 1].length) - C_ONE;
+ ndx += 3;
+ }
+
+ } else if (match[ndx + 1] === '/' || match[ndx + 1] === ':') { // Check for a simple fraction "123/456" or "123:456"
+ w = assign(match[ndx], s);
+ y = assign(match[ndx + 2], C_ONE);
+ ndx += 3;
+ } else if (match[ndx + 3] === '/' && match[ndx + 1] === ' ') { // Check for a complex fraction "123 1/2"
+ v = assign(match[ndx], s);
+ w = assign(match[ndx + 2], s);
+ y = assign(match[ndx + 4], C_ONE);
+ ndx += 5;
+ }
+
+ if (match.length <= ndx) { // Check for more tokens on the stack
+ d = y * z;
+ s = /* void */
+ n = x + d * v + z * w;
+ } else {
+ throw InvalidParameter();
+ }
+
+ } else if (typeof p1 === "bigint") {
+ n = p1;
+ s = p1;
+ d = C_ONE;
+ } else {
+ throw InvalidParameter();
+ }
+
+ if (d === C_ZERO) {
+ throw DivisionByZero();
+ }
+
+ P["s"] = s < C_ZERO ? -C_ONE : C_ONE;
+ P["n"] = n < C_ZERO ? -n : n;
+ P["d"] = d < C_ZERO ? -d : d;
+};
+
+function modpow(b, e, m) {
+
+ let r = C_ONE;
+ for (; e > C_ZERO; b = (b * b) % m, e >>= C_ONE) {
+
+ if (e & C_ONE) {
+ r = (r * b) % m;
+ }
+ }
+ return r;
+}
+
+function cycleLen(n, d) {
+
+ for (; d % C_TWO === C_ZERO;
+ d /= C_TWO) {
+ }
+
+ for (; d % C_FIVE === C_ZERO;
+ d /= C_FIVE) {
+ }
+
+ if (d === C_ONE) // Catch non-cyclic numbers
+ return C_ZERO;
+
+ // If we would like to compute really large numbers quicker, we could make use of Fermat's little theorem:
+ // 10^(d-1) % d == 1
+ // However, we don't need such large numbers and MAX_CYCLE_LEN should be the capstone,
+ // as we want to translate the numbers to strings.
+
+ let rem = C_TEN % d;
+ let t = 1;
+
+ for (; rem !== C_ONE; t++) {
+ rem = rem * C_TEN % d;
+
+ if (t > MAX_CYCLE_LEN)
+ return C_ZERO; // Returning 0 here means that we don't print it as a cyclic number. It's likely that the answer is `d-1`
+ }
+ return BigInt(t);
+}
+
+function cycleStart(n, d, len) {
+
+ let rem1 = C_ONE;
+ let rem2 = modpow(C_TEN, len, d);
+
+ for (let t = 0; t < 300; t++) { // s < ~log10(Number.MAX_VALUE)
+ // Solve 10^s == 10^(s+t) (mod d)
+
+ if (rem1 === rem2)
+ return BigInt(t);
+
+ rem1 = rem1 * C_TEN % d;
+ rem2 = rem2 * C_TEN % d;
+ }
+ return 0;
+}
+
+function gcd(a, b) {
+
+ if (!a)
+ return b;
+ if (!b)
+ return a;
+
+ while (1) {
+ a %= b;
+ if (!a)
+ return b;
+ b %= a;
+ if (!b)
+ return a;
+ }
+}
+
+/**
+ * Module constructor
+ *
+ * @constructor
+ * @param {number|Fraction=} a
+ * @param {number=} b
+ */
+function Fraction(a, b) {
+
+ parse(a, b);
+
+ if (this instanceof Fraction) {
+ a = gcd(P["d"], P["n"]); // Abuse a
+ this["s"] = P["s"];
+ this["n"] = P["n"] / a;
+ this["d"] = P["d"] / a;
+ } else {
+ return newFraction(P['s'] * P['n'], P['d']);
+ }
+}
+
+const DivisionByZero = function () { return new Error("Division by Zero"); };
+const InvalidParameter = function () { return new Error("Invalid argument"); };
+const NonIntegerParameter = function () { return new Error("Parameters must be integer"); };
+
+Fraction.prototype = {
+
+ "s": C_ONE,
+ "n": C_ZERO,
+ "d": C_ONE,
+
+ /**
+ * Calculates the absolute value
+ *
+ * Ex: new Fraction(-4).abs() => 4
+ **/
+ "abs": function () {
+
+ return newFraction(this["n"], this["d"]);
+ },
+
+ /**
+ * Inverts the sign of the current fraction
+ *
+ * Ex: new Fraction(-4).neg() => 4
+ **/
+ "neg": function () {
+
+ return newFraction(-this["s"] * this["n"], this["d"]);
+ },
+
+ /**
+ * Adds two rational numbers
+ *
+ * Ex: new Fraction({n: 2, d: 3}).add("14.9") => 467 / 30
+ **/
+ "add": function (a, b) {
+
+ parse(a, b);
+ return newFraction(
+ this["s"] * this["n"] * P["d"] + P["s"] * this["d"] * P["n"],
+ this["d"] * P["d"]
+ );
+ },
+
+ /**
+ * Subtracts two rational numbers
+ *
+ * Ex: new Fraction({n: 2, d: 3}).add("14.9") => -427 / 30
+ **/
+ "sub": function (a, b) {
+
+ parse(a, b);
+ return newFraction(
+ this["s"] * this["n"] * P["d"] - P["s"] * this["d"] * P["n"],
+ this["d"] * P["d"]
+ );
+ },
+
+ /**
+ * Multiplies two rational numbers
+ *
+ * Ex: new Fraction("-17.(345)").mul(3) => 5776 / 111
+ **/
+ "mul": function (a, b) {
+
+ parse(a, b);
+ return newFraction(
+ this["s"] * P["s"] * this["n"] * P["n"],
+ this["d"] * P["d"]
+ );
+ },
+
+ /**
+ * Divides two rational numbers
+ *
+ * Ex: new Fraction("-17.(345)").inverse().div(3)
+ **/
+ "div": function (a, b) {
+
+ parse(a, b);
+ return newFraction(
+ this["s"] * P["s"] * this["n"] * P["d"],
+ this["d"] * P["n"]
+ );
+ },
+
+ /**
+ * Clones the actual object
+ *
+ * Ex: new Fraction("-17.(345)").clone()
+ **/
+ "clone": function () {
+ return newFraction(this['s'] * this['n'], this['d']);
+ },
+
+ /**
+ * Calculates the modulo of two rational numbers - a more precise fmod
+ *
+ * Ex: new Fraction('4.(3)').mod([7, 8]) => (13/3) % (7/8) = (5/6)
+ * Ex: new Fraction(20, 10).mod().equals(0) ? "is Integer"
+ **/
+ "mod": function (a, b) {
+
+ if (a === undefined) {
+ return newFraction(this["s"] * this["n"] % this["d"], C_ONE);
+ }
+
+ parse(a, b);
+ if (C_ZERO === P["n"] * this["d"]) {
+ throw DivisionByZero();
+ }
+
+ /**
+ * I derived the rational modulo similar to the modulo for integers
+ *
+ * https://raw.org/book/analysis/rational-numbers/
+ *
+ * n1/d1 = (n2/d2) * q + r, where 0 ≤ r < n2/d2
+ * => d2 * n1 = n2 * d1 * q + d1 * d2 * r
+ * => r = (d2 * n1 - n2 * d1 * q) / (d1 * d2)
+ * = (d2 * n1 - n2 * d1 * floor((d2 * n1) / (n2 * d1))) / (d1 * d2)
+ * = ((d2 * n1) % (n2 * d1)) / (d1 * d2)
+ */
+ return newFraction(
+ this["s"] * (P["d"] * this["n"]) % (P["n"] * this["d"]),
+ P["d"] * this["d"]);
+ },
+
+ /**
+ * Calculates the fractional gcd of two rational numbers
+ *
+ * Ex: new Fraction(5,8).gcd(3,7) => 1/56
+ */
+ "gcd": function (a, b) {
+
+ parse(a, b);
+
+ // https://raw.org/book/analysis/rational-numbers/
+ // gcd(a / b, c / d) = gcd(a, c) / lcm(b, d)
+
+ return newFraction(gcd(P["n"], this["n"]) * gcd(P["d"], this["d"]), P["d"] * this["d"]);
+ },
+
+ /**
+ * Calculates the fractional lcm of two rational numbers
+ *
+ * Ex: new Fraction(5,8).lcm(3,7) => 15
+ */
+ "lcm": function (a, b) {
+
+ parse(a, b);
+
+ // https://raw.org/book/analysis/rational-numbers/
+ // lcm(a / b, c / d) = lcm(a, c) / gcd(b, d)
+
+ if (P["n"] === C_ZERO && this["n"] === C_ZERO) {
+ return newFraction(C_ZERO, C_ONE);
+ }
+ return newFraction(P["n"] * this["n"], gcd(P["n"], this["n"]) * gcd(P["d"], this["d"]));
+ },
+
+ /**
+ * Gets the inverse of the fraction, means numerator and denominator are exchanged
+ *
+ * Ex: new Fraction([-3, 4]).inverse() => -4 / 3
+ **/
+ "inverse": function () {
+ return newFraction(this["s"] * this["d"], this["n"]);
+ },
+
+ /**
+ * Calculates the fraction to some integer exponent
+ *
+ * Ex: new Fraction(-1,2).pow(-3) => -8
+ */
+ "pow": function (a, b) {
+
+ parse(a, b);
+
+ // Trivial case when exp is an integer
+
+ if (P['d'] === C_ONE) {
+
+ if (P['s'] < C_ZERO) {
+ return newFraction((this['s'] * this["d"]) ** P['n'], this["n"] ** P['n']);
+ } else {
+ return newFraction((this['s'] * this["n"]) ** P['n'], this["d"] ** P['n']);
+ }
+ }
+
+ // Negative roots become complex
+ // (-a/b)^(c/d) = x
+ // ⇔ (-1)^(c/d) * (a/b)^(c/d) = x
+ // ⇔ (cos(pi) + i*sin(pi))^(c/d) * (a/b)^(c/d) = x
+ // ⇔ (cos(c*pi/d) + i*sin(c*pi/d)) * (a/b)^(c/d) = x # DeMoivre's formula
+ // From which follows that only for c=0 the root is non-complex
+ if (this['s'] < C_ZERO) return null;
+
+ // Now prime factor n and d
+ let N = factorize(this['n']);
+ let D = factorize(this['d']);
+
+ // Exponentiate and take root for n and d individually
+ let n = C_ONE;
+ let d = C_ONE;
+ for (let k in N) {
+ if (k === '1') continue;
+ if (k === '0') {
+ n = C_ZERO;
+ break;
+ }
+ N[k] *= P['n'];
+
+ if (N[k] % P['d'] === C_ZERO) {
+ N[k] /= P['d'];
+ } else return null;
+ n *= BigInt(k) ** N[k];
+ }
+
+ for (let k in D) {
+ if (k === '1') continue;
+ D[k] *= P['n'];
+
+ if (D[k] % P['d'] === C_ZERO) {
+ D[k] /= P['d'];
+ } else return null;
+ d *= BigInt(k) ** D[k];
+ }
+
+ if (P['s'] < C_ZERO) {
+ return newFraction(d, n);
+ }
+ return newFraction(n, d);
+ },
+
+ /**
+ * Calculates the logarithm of a fraction to a given rational base
+ *
+ * Ex: new Fraction(27, 8).log(9, 4) => 3/2
+ */
+ "log": function (a, b) {
+
+ parse(a, b);
+
+ if (this['s'] <= C_ZERO || P['s'] <= C_ZERO) return null;
+
+ const allPrimes = Object.create(null);
+
+ const baseFactors = factorize(P['n']);
+ const T1 = factorize(P['d']);
+
+ const numberFactors = factorize(this['n']);
+ const T2 = factorize(this['d']);
+
+ for (const prime in T1) {
+ baseFactors[prime] = (baseFactors[prime] || C_ZERO) - T1[prime];
+ }
+ for (const prime in T2) {
+ numberFactors[prime] = (numberFactors[prime] || C_ZERO) - T2[prime];
+ }
+
+ for (const prime in baseFactors) {
+ if (prime === '1') continue;
+ allPrimes[prime] = true;
+ }
+ for (const prime in numberFactors) {
+ if (prime === '1') continue;
+ allPrimes[prime] = true;
+ }
+
+ let retN = null;
+ let retD = null;
+
+ // Iterate over all unique primes to determine if a consistent ratio exists
+ for (const prime in allPrimes) {
+
+ const baseExponent = baseFactors[prime] || C_ZERO;
+ const numberExponent = numberFactors[prime] || C_ZERO;
+
+ if (baseExponent === C_ZERO) {
+ if (numberExponent !== C_ZERO) {
+ return null; // Logarithm cannot be expressed as a rational number
+ }
+ continue; // Skip this prime since both exponents are zero
+ }
+
+ // Calculate the ratio of exponents for this prime
+ let curN = numberExponent;
+ let curD = baseExponent;
+
+ // Simplify the current ratio
+ const gcdValue = gcd(curN, curD);
+ curN /= gcdValue;
+ curD /= gcdValue;
+
+ // Check if this is the first ratio; otherwise, ensure ratios are consistent
+ if (retN === null && retD === null) {
+ retN = curN;
+ retD = curD;
+ } else if (curN * retD !== retN * curD) {
+ return null; // Ratios do not match, logarithm cannot be rational
+ }
+ }
+
+ return retN !== null && retD !== null
+ ? newFraction(retN, retD)
+ : null;
+ },
+
+ /**
+ * Check if two rational numbers are the same
+ *
+ * Ex: new Fraction(19.6).equals([98, 5]);
+ **/
+ "equals": function (a, b) {
+
+ parse(a, b);
+ return this["s"] * this["n"] * P["d"] === P["s"] * P["n"] * this["d"];
+ },
+
+ /**
+ * Check if this rational number is less than another
+ *
+ * Ex: new Fraction(19.6).lt([98, 5]);
+ **/
+ "lt": function (a, b) {
+
+ parse(a, b);
+ return this["s"] * this["n"] * P["d"] < P["s"] * P["n"] * this["d"];
+ },
+
+ /**
+ * Check if this rational number is less than or equal another
+ *
+ * Ex: new Fraction(19.6).lt([98, 5]);
+ **/
+ "lte": function (a, b) {
+
+ parse(a, b);
+ return this["s"] * this["n"] * P["d"] <= P["s"] * P["n"] * this["d"];
+ },
+
+ /**
+ * Check if this rational number is greater than another
+ *
+ * Ex: new Fraction(19.6).lt([98, 5]);
+ **/
+ "gt": function (a, b) {
+
+ parse(a, b);
+ return this["s"] * this["n"] * P["d"] > P["s"] * P["n"] * this["d"];
+ },
+
+ /**
+ * Check if this rational number is greater than or equal another
+ *
+ * Ex: new Fraction(19.6).lt([98, 5]);
+ **/
+ "gte": function (a, b) {
+
+ parse(a, b);
+ return this["s"] * this["n"] * P["d"] >= P["s"] * P["n"] * this["d"];
+ },
+
+ /**
+ * Compare two rational numbers
+ * < 0 iff this < that
+ * > 0 iff this > that
+ * = 0 iff this = that
+ *
+ * Ex: new Fraction(19.6).compare([98, 5]);
+ **/
+ "compare": function (a, b) {
+
+ parse(a, b);
+ let t = this["s"] * this["n"] * P["d"] - P["s"] * P["n"] * this["d"];
+
+ return (C_ZERO < t) - (t < C_ZERO);
+ },
+
+ /**
+ * Calculates the ceil of a rational number
+ *
+ * Ex: new Fraction('4.(3)').ceil() => (5 / 1)
+ **/
+ "ceil": function (places) {
+
+ places = C_TEN ** BigInt(places || 0);
+
+ return newFraction(ifloor(this["s"] * places * this["n"] / this["d"]) +
+ (places * this["n"] % this["d"] > C_ZERO && this["s"] >= C_ZERO ? C_ONE : C_ZERO),
+ places);
+ },
+
+ /**
+ * Calculates the floor of a rational number
+ *
+ * Ex: new Fraction('4.(3)').floor() => (4 / 1)
+ **/
+ "floor": function (places) {
+
+ places = C_TEN ** BigInt(places || 0);
+
+ return newFraction(ifloor(this["s"] * places * this["n"] / this["d"]) -
+ (places * this["n"] % this["d"] > C_ZERO && this["s"] < C_ZERO ? C_ONE : C_ZERO),
+ places);
+ },
+
+ /**
+ * Rounds a rational numbers
+ *
+ * Ex: new Fraction('4.(3)').round() => (4 / 1)
+ **/
+ "round": function (places) {
+
+ places = C_TEN ** BigInt(places || 0);
+
+ /* Derivation:
+
+ s >= 0:
+ round(n / d) = ifloor(n / d) + (n % d) / d >= 0.5 ? 1 : 0
+ = ifloor(n / d) + 2(n % d) >= d ? 1 : 0
+ s < 0:
+ round(n / d) =-ifloor(n / d) - (n % d) / d > 0.5 ? 1 : 0
+ =-ifloor(n / d) - 2(n % d) > d ? 1 : 0
+
+ =>:
+
+ round(s * n / d) = s * ifloor(n / d) + s * (C + 2(n % d) > d ? 1 : 0)
+ where C = s >= 0 ? 1 : 0, to fix the >= for the positve case.
+ */
+
+ return newFraction(ifloor(this["s"] * places * this["n"] / this["d"]) +
+ this["s"] * ((this["s"] >= C_ZERO ? C_ONE : C_ZERO) + C_TWO * (places * this["n"] % this["d"]) > this["d"] ? C_ONE : C_ZERO),
+ places);
+ },
+
+ /**
+ * Rounds a rational number to a multiple of another rational number
+ *
+ * Ex: new Fraction('0.9').roundTo("1/8") => 7 / 8
+ **/
+ "roundTo": function (a, b) {
+
+ /*
+ k * x/y ≤ a/b < (k+1) * x/y
+ ⇔ k ≤ a/b / (x/y) < (k+1)
+ ⇔ k = floor(a/b * y/x)
+ ⇔ k = floor((a * y) / (b * x))
+ */
+
+ parse(a, b);
+
+ const n = this['n'] * P['d'];
+ const d = this['d'] * P['n'];
+ const r = n % d;
+
+ // round(n / d) = ifloor(n / d) + 2(n % d) >= d ? 1 : 0
+ let k = ifloor(n / d);
+ if (r + r >= d) {
+ k++;
+ }
+ return newFraction(this['s'] * k * P['n'], P['d']);
+ },
+
+ /**
+ * Check if two rational numbers are divisible
+ *
+ * Ex: new Fraction(19.6).divisible(1.5);
+ */
+ "divisible": function (a, b) {
+
+ parse(a, b);
+ if (P['n'] === C_ZERO) return false;
+ return (this['n'] * P['d']) % (P['n'] * this['d']) === C_ZERO;
+ },
+
+ /**
+ * Returns a decimal representation of the fraction
+ *
+ * Ex: new Fraction("100.'91823'").valueOf() => 100.91823918239183
+ **/
+ 'valueOf': function () {
+ //if (this['n'] <= MAX_INTEGER && this['d'] <= MAX_INTEGER) {
+ return Number(this['s'] * this['n']) / Number(this['d']);
+ //}
+ },
+
+ /**
+ * Creates a string representation of a fraction with all digits
+ *
+ * Ex: new Fraction("100.'91823'").toString() => "100.(91823)"
+ **/
+ 'toString': function (dec = 15) {
+
+ let N = this["n"];
+ let D = this["d"];
+
+ let cycLen = cycleLen(N, D); // Cycle length
+ let cycOff = cycleStart(N, D, cycLen); // Cycle start
+
+ let str = this['s'] < C_ZERO ? "-" : "";
+
+ // Append integer part
+ str += ifloor(N / D);
+
+ N %= D;
+ N *= C_TEN;
+
+ if (N)
+ str += ".";
+
+ if (cycLen) {
+
+ for (let i = cycOff; i--;) {
+ str += ifloor(N / D);
+ N %= D;
+ N *= C_TEN;
+ }
+ str += "(";
+ for (let i = cycLen; i--;) {
+ str += ifloor(N / D);
+ N %= D;
+ N *= C_TEN;
+ }
+ str += ")";
+ } else {
+ for (let i = dec; N && i--;) {
+ str += ifloor(N / D);
+ N %= D;
+ N *= C_TEN;
+ }
+ }
+ return str;
+ },
+
+ /**
+ * Returns a string-fraction representation of a Fraction object
+ *
+ * Ex: new Fraction("1.'3'").toFraction() => "4 1/3"
+ **/
+ 'toFraction': function (showMixed = false) {
+
+ let n = this["n"];
+ let d = this["d"];
+ let str = this['s'] < C_ZERO ? "-" : "";
+
+ if (d === C_ONE) {
+ str += n;
+ } else {
+ const whole = ifloor(n / d);
+ if (showMixed && whole > C_ZERO) {
+ str += whole;
+ str += " ";
+ n %= d;
+ }
+
+ str += n;
+ str += '/';
+ str += d;
+ }
+ return str;
+ },
+
+ /**
+ * Returns a latex representation of a Fraction object
+ *
+ * Ex: new Fraction("1.'3'").toLatex() => "\frac{4}{3}"
+ **/
+ 'toLatex': function (showMixed = false) {
+
+ let n = this["n"];
+ let d = this["d"];
+ let str = this['s'] < C_ZERO ? "-" : "";
+
+ if (d === C_ONE) {
+ str += n;
+ } else {
+ const whole = ifloor(n / d);
+ if (showMixed && whole > C_ZERO) {
+ str += whole;
+ n %= d;
+ }
+
+ str += "\\frac{";
+ str += n;
+ str += '}{';
+ str += d;
+ str += '}';
+ }
+ return str;
+ },
+
+ /**
+ * Returns an array of continued fraction elements
+ *
+ * Ex: new Fraction("7/8").toContinued() => [0,1,7]
+ */
+ 'toContinued': function () {
+
+ let a = this['n'];
+ let b = this['d'];
+ const res = [];
+
+ while (b) {
+ res.push(ifloor(a / b));
+ const t = a % b;
+ a = b;
+ b = t;
+ }
+ return res;
+ },
+
+ "simplify": function (eps = 1e-3) {
+
+ // Continued fractions give best approximations for a max denominator,
+ // generally outperforming mediants in denominator–accuracy trade-offs.
+ // Semiconvergents can further reduce the denominator within tolerance.
+
+ const ieps = BigInt(Math.ceil(1 / eps));
+
+ const thisABS = this['abs']();
+ const cont = thisABS['toContinued']();
+
+ for (let i = 1; i < cont.length; i++) {
+
+ let s = newFraction(cont[i - 1], C_ONE);
+ for (let k = i - 2; k >= 0; k--) {
+ s = s['inverse']()['add'](cont[k]);
+ }
+
+ let t = s['sub'](thisABS);
+ if (t['n'] * ieps < t['d']) { // More robust than Math.abs(t.valueOf()) < eps
+ return s['mul'](this['s']);
+ }
+ }
+ return this;
+ }
+};
diff --git a/web/node_modules/fraction.js/tests/fraction.test.js b/web/node_modules/fraction.js/tests/fraction.test.js
new file mode 100644
index 0000000000000000000000000000000000000000..b65833c5d88d264b421046163913524ee6cf2993
--- /dev/null
+++ b/web/node_modules/fraction.js/tests/fraction.test.js
@@ -0,0 +1,1806 @@
+const Fraction = require('fraction.js');
+const assert = require('assert');
+
+var DivisionByZero = function () { return new Error("Division by Zero"); };
+var InvalidParameter = function () { return new Error("Invalid argument"); };
+var NonIntegerParameter = function () { return new Error("Parameters must be integer"); };
+
+var tests = [{
+ set: "",
+ expectError: InvalidParameter()
+}, {
+ set: "foo",
+ expectError: InvalidParameter()
+}, {
+ set: " 123",
+ expectError: InvalidParameter()
+}, {
+ set: 0,
+ expect: 0
+}, {
+ set: .2,
+ expect: "0.2"
+}, {
+ set: .333,
+ expect: "0.333"
+}, {
+ set: 1.1,
+ expect: "1.1"
+}, {
+ set: 1.2,
+ expect: "1.2"
+}, {
+ set: 1.3,
+ expect: "1.3"
+}, {
+ set: 1.4,
+ expect: "1.4"
+}, {
+ set: 1.5,
+ expect: "1.5"
+}, {
+ set: 2.555,
+ expect: "2.555"
+}, {
+ set: 1e12,
+ expect: "1000000000000"
+}, {
+ set: " - ",
+ expectError: InvalidParameter()
+}, {
+ set: ".5",
+ expect: "0.5"
+}, {
+ set: "2_000_000",
+ expect: "2000000"
+}, {
+ set: "-.5",
+ expect: "-0.5"
+}, {
+ set: "123",
+ expect: "123"
+}, {
+ set: "-123",
+ expect: "-123"
+}, {
+ set: "123.4",
+ expect: "123.4"
+}, {
+ set: "-123.4",
+ expect: "-123.4"
+}, {
+ set: "123.",
+ expect: "123"
+}, {
+ set: "-123.",
+ expect: "-123"
+}, {
+ set: "123.4(56)",
+ expect: "123.4(56)"
+}, {
+ set: "-123.4(56)",
+ expect: "-123.4(56)"
+}, {
+ set: "123.(4)",
+ expect: "123.(4)"
+}, {
+ set: "-123.(4)",
+ expect: "-123.(4)"
+}, {
+ set: "0/0",
+ expectError: DivisionByZero()
+}, {
+ set: "9/0",
+ expectError: DivisionByZero()
+}, {
+ label: "0/1+0/1",
+ set: "0/1",
+ param: "0/1",
+ expect: "0"
+}, {
+ label: "1/9+0/1",
+ set: "1/9",
+ param: "0/1",
+ expect: "0.(1)"
+}, {
+ set: "123/456",
+ expect: "0.269(736842105263157894)"
+}, {
+ set: "-123/456",
+ expect: "-0.269(736842105263157894)"
+}, {
+ set: "19 123/456",
+ expect: "19.269(736842105263157894)"
+}, {
+ set: "-19 123/456",
+ expect: "-19.269(736842105263157894)"
+}, {
+ set: "123.(22)123",
+ expectError: InvalidParameter()
+}, {
+ set: "+33.3(3)",
+ expect: "33.(3)"
+}, {
+ set: "3.'09009'",
+ expect: "3.(09009)"
+}, {
+ set: "123.(((",
+ expectError: InvalidParameter()
+}, {
+ set: "123.((",
+ expectError: InvalidParameter()
+}, {
+ set: "123.()",
+ expectError: InvalidParameter()
+}, {
+ set: null,
+ expect: "0" // I would say it's just fine
+}, {
+ set: [22, 7],
+ expect: '3.(142857)' // We got Pi! - almost ;o
+}, {
+ set: "355/113",
+ expect: "3.(1415929203539823008849557522123893805309734513274336283185840707964601769911504424778761061946902654867256637168)" // Yay, a better PI
+}, {
+ set: "3 1/7",
+ expect: '3.(142857)'
+}, {
+ set: [36, -36],
+ expect: "-1"
+}, {
+ set: [1n, 3n],
+ expect: "0.(3)"
+}, {
+ set: 1n,
+ set2: 3n,
+ expect: "0.(3)"
+}, {
+ set: { n: 1n, d: 3n },
+ expect: "0.(3)"
+}, {
+ set: { n: 1n, d: 3n },
+ expect: "0.(3)"
+}, {
+ set: [1n, 3n],
+ expect: "0.(3)"
+}, {
+ set: "9/12",
+ expect: "0.75"
+}, {
+ set: "0.09(33)",
+ expect: "0.09(3)"
+}, {
+ set: 1 / 2,
+ expect: "0.5"
+}, {
+ set: 1 / 3,
+ expect: "0.(3)"
+}, {
+ set: "0.'3'",
+ expect: "0.(3)"
+}, {
+ set: "0.00002",
+ expect: "0.00002"
+}, {
+ set: 7 / 8,
+ expect: "0.875"
+}, {
+ set: 0.003,
+ expect: "0.003"
+}, {
+ set: 4,
+ expect: "4"
+}, {
+ set: -99,
+ expect: "-99"
+}, {
+ set: "-92332.1192",
+ expect: "-92332.1192"
+}, {
+ set: '88.92933(12111)',
+ expect: "88.92933(12111)"
+}, {
+ set: '-192322.823(123)',
+ expect: "-192322.8(231)"
+}, {
+ label: "-99.12 % 0.09(34)",
+ set: '-99.12',
+ fn: "mod",
+ param: "0.09(34)",
+ expect: "-0.07(95)"
+}, {
+ label: "0.4 / 0.1",
+ set: .4,
+ fn: "div",
+ param: ".1",
+ expect: "4"
+}, {
+ label: "1 / -.1",
+ set: 1,
+ fn: "div",
+ param: "-.1",
+ expect: "-10"
+}, {
+ label: "1 - (-1)",
+ set: 1,
+ fn: "sub",
+ param: "-1",
+ expect: "2"
+}, {
+ label: "1 + (-1)",
+ set: 1,
+ fn: "add",
+ param: "-1",
+ expect: "0"
+}, {
+ label: "-187 % 12",
+ set: '-187',
+ fn: "mod",
+ param: "12",
+ expect: "-7"
+}, {
+ label: "Negate by 99 * -1",
+ set: '99',
+ fn: "mul",
+ param: "-1",
+ expect: "-99"
+}, {
+ label: "0.5050000000000000000000000",
+ set: "0.5050000000000000000000000",
+ expect: "101/200",
+ fn: "toFraction",
+ param: true
+}, {
+ label: "0.505000000(0000000000)",
+ set: "0.505000000(0000000000)",
+ expect: "101/200",
+ fn: "toFraction",
+ param: true
+}, {
+ set: [20, -5],
+ expect: "-4",
+ fn: "toFraction",
+ param: true
+}, {
+ set: [-10, -7],
+ expect: "1 3/7",
+ fn: "toFraction",
+ param: true
+}, {
+ set: [21, -6],
+ expect: "-3 1/2",
+ fn: "toFraction",
+ param: true
+}, {
+ set: "10/78",
+ expect: "5/39",
+ fn: "toFraction",
+ param: true
+}, {
+ set: "0/91",
+ expect: "0",
+ fn: "toFraction",
+ param: true
+}, {
+ set: "-0/287",
+ expect: "0",
+ fn: "toFraction",
+ param: true
+}, {
+ set: "-5/20",
+ expect: "-1/4",
+ fn: "toFraction",
+ param: true
+}, {
+ set: "42/9",
+ expect: "4 2/3",
+ fn: "toFraction",
+ param: true
+}, {
+ set: "71/23",
+ expect: "3 2/23",
+ fn: "toFraction",
+ param: true
+}, {
+ set: "6/3",
+ expect: "2",
+ fn: "toFraction",
+ param: true
+}, {
+ set: "28/4",
+ expect: "7",
+ fn: "toFraction",
+ param: true
+}, {
+ set: "105/35",
+ expect: "3",
+ fn: "toFraction",
+ param: true
+}, {
+ set: "4/6",
+ expect: "2/3",
+ fn: "toFraction",
+ param: true
+}, {
+ label: "99.(9) + 66",
+ set: '99.(999999)',
+ fn: "add",
+ param: "66",
+ expect: "166"
+}, {
+ label: "123.32 / 33.'9821'",
+ set: '123.32',
+ fn: "div",
+ param: "33.'9821'",
+ expect: "3.628958880242975"
+}, {
+ label: "-82.124 / 66.(3)",
+ set: '-82.124',
+ fn: "div",
+ param: "66.(3)",
+ expect: "-1.238(050251256281407035175879396984924623115577889447236180904522613065326633165829145728643216080402010)"
+}, {
+ label: "100 - .91",
+ set: '100',
+ fn: "sub",
+ param: ".91",
+ expect: "99.09"
+}, {
+ label: "381.(33411) % 11.119(356)",
+ set: '381.(33411)',
+ fn: "mod",
+ param: "11.119(356)",
+ expect: "3.275(997225017295217)"
+}, {
+ label: "13/26 mod 1",
+ set: '13/26',
+ fn: "mod",
+ param: "1.000",
+ expect: "0.5"
+}, {
+ label: "381.(33411) % 1", // Extract fraction part of a number
+ set: '381.(33411)',
+ fn: "mod",
+ param: "1",
+ expect: "0.(33411)"
+}, {
+ label: "-222/3",
+ set: {
+ n: 3,
+ d: 222,
+ s: -1
+ },
+ fn: "inverse",
+ param: null,
+ expect: "-74"
+}, {
+ label: "inverse",
+ set: 1 / 2,
+ fn: "inverse",
+ param: null,
+ expect: "2"
+}, {
+ label: "abs(-222/3)",
+ set: {
+ n: -222,
+ d: 3
+ },
+ fn: "abs",
+ param: null,
+ expect: "74"
+}, {
+ label: "9 % -2",
+ set: 9,
+ fn: "mod",
+ param: "-2",
+ expect: "1"
+}, {
+ label: "-9 % 2",
+ set: '-9',
+ fn: "mod",
+ param: "-2",
+ expect: "-1"
+}, {
+ label: "1 / 195312500",
+ set: '1',
+ fn: "div",
+ param: "195312500",
+ expect: "0.00000000512"
+}, {
+ label: "10 / 0",
+ set: 10,
+ fn: "div",
+ param: 0,
+ expectError: DivisionByZero()
+}, {
+ label: "-3 / 4",
+ set: [-3, 4],
+ fn: "inverse",
+ param: null,
+ expect: "-1.(3)"
+}, {
+ label: "-19.6",
+ set: [-98, 5],
+ fn: "equals",
+ param: '-19.6',
+ expect: "true" // actually, we get a real bool but we call toString() in the test below
+}, {
+ label: "-19.6",
+ set: [98, -5],
+ fn: "equals",
+ param: '-19.6',
+ expect: "true"
+}, {
+ label: "99/88",
+ set: [99, 88],
+ fn: "equals",
+ param: [88, 99],
+ expect: "false"
+}, {
+ label: "99/88",
+ set: [99, -88],
+ fn: "equals",
+ param: [9, 8],
+ expect: "false"
+}, {
+ label: "12.5",
+ set: 12.5,
+ fn: "add",
+ param: 0,
+ expect: "12.5"
+}, {
+ label: "0/1 -> 1/0",
+ set: 0,
+ fn: "inverse",
+ param: null,
+ expectError: DivisionByZero()
+}, {
+ label: "abs(-100.25)",
+ set: -100.25,
+ fn: "abs",
+ param: null,
+ expect: "100.25"
+}, {
+ label: "0.022222222",
+ set: '0.0(22222222)',
+ fn: "abs",
+ param: null,
+ expect: "0.0(2)"
+}, {
+ label: "1.5 | 100.5",
+ set: 100.5,
+ fn: "divisible",
+ param: '1.5',
+ expect: "true"
+}, {
+ label: "1.5 | 100.6",
+ set: 100.6,
+ fn: "divisible",
+ param: 1.6,
+ expect: "false"
+}, {
+ label: "(1/6) | (2/3)", // == 4
+ set: [2, 3],
+ fn: "divisible",
+ param: [1, 6],
+ expect: "true"
+}, {
+ label: "(1/6) | (2/5)",
+ set: [2, 5],
+ fn: "divisible",
+ param: [1, 6],
+ expect: "false"
+}, {
+ label: "0 | (2/5)",
+ set: [2, 5],
+ fn: "divisible",
+ param: 0,
+ expect: "false"
+}, {
+ label: "6 | 0",
+ set: 0,
+ fn: "divisible",
+ param: 6,
+ expect: "true"
+}, {
+ label: "fmod(4.55, 0.05)", // http://phpjs.org/functions/fmod/ (comment section)
+ set: 4.55,
+ fn: "mod",
+ param: 0.05,
+ expect: "0"
+}, {
+ label: "fmod(99.12, 0.4)",
+ set: 99.12,
+ fn: "mod",
+ param: "0.4",
+ expect: "0.32"
+}, {
+ label: "fmod(fmod(1.0,0.1))", // http://stackoverflow.com/questions/4218961/why-fmod1-0-0-1-1
+ set: 1.0,
+ fn: "mod",
+ param: 0.1,
+ expect: "0"
+}, {
+ label: "bignum",
+ set: [5385020324, 1673196525],
+ fn: "add",
+ param: 0,
+ expect: "3.21(840276592733181776121606516006839065124164060763872313206005492988936251824931324190982287630557922656455433410609073551596098372245902196097377144624418820138297860736950789447760776337973807350574075570710380240599651018280712721418065340531352107607323652551812465663589637206543923464101146157950573080469432602963360804254598843372567965379918536467197121390148715495330113717514444395585868193217769203770011415724163065662594535928766646225254382476081224230369471990147720394052336440275597631903998844367669243157195775313960803259497565595290726533154854597848271290188102679689703515252041298615534717298077104242133182771222884293284077911887845930112722413166618308629346454087334421161315763550250022184333666363549254920906556389124702491239037207539024741878423396797336762338781453063321417070239253574830368476888869943116813489676593728283053898883754853602746993512910863832926021645903191198654921901657666901979730085800889408373591978384009612977172541043856160291750546158945674358246709841810124486123947693472528578195558946669459524487119048971249805817042322628538808374587079661786890216019304725725509141850506771761314768448972244907094819599867385572056456428511886850828834945135927771544947477105237234460548500123140047759781236696030073335228807028510891749551057667897081007863078128255137273847732859712937785356684266362554153643129279150277938809369688357439064129062782986595074359241811119587401724970711375341877428295519559485099934689381452068220139292962014728066686607540019843156200674036183526020650801913421377683054893985032630879985)"
+}, {
+ label: "ceil(0.4)",
+ set: 0.4,
+ fn: "ceil",
+ param: null,
+ expect: "1"
+},
+
+
+{
+ label: "1 < 2",
+ set: 1,
+ fn: "lt",
+ param: 2,
+ expect: "true"
+}, {
+ label: "2 < 2",
+ set: 2,
+ fn: "lt",
+ param: 2,
+ expect: "false"
+}, {
+ label: "3 > 2",
+ set: 3,
+ fn: "gt",
+ param: 2,
+ expect: "true"
+}, {
+ label: "2 > 2",
+ set: 2,
+ fn: "gt",
+ param: 2,
+ expect: "false"
+}, {
+ label: "1 <= 2",
+ set: 1,
+ fn: "lte",
+ param: 2,
+ expect: "true"
+}, {
+ label: "2 <= 2",
+ set: 2,
+ fn: "lte",
+ param: 2,
+ expect: "true"
+}, {
+ label: "3 <= 2",
+ set: 3,
+ fn: "lte",
+ param: 2,
+ expect: "false"
+}, {
+ label: "3 >= 2",
+ set: 3,
+ fn: "gte",
+ param: 2,
+ expect: "true"
+}, {
+ label: "2 >= 2",
+ set: 2,
+ fn: "gte",
+ param: 2,
+ expect: "true"
+}, {
+ label: "ceil(0.5)",
+ set: 0.5,
+ fn: "ceil",
+ param: null,
+ expect: "1"
+}, {
+ label: "ceil(0.23, 2)",
+ set: 0.23,
+ fn: "ceil",
+ param: 2,
+ expect: "0.23"
+}, {
+ label: "ceil(0.6)",
+ set: 0.6,
+ fn: "ceil",
+ param: null,
+ expect: "1"
+}, {
+ label: "ceil(-0.4)",
+ set: -0.4,
+ fn: "ceil",
+ param: null,
+ expect: "0"
+}, {
+ label: "ceil(-0.5)",
+ set: -0.5,
+ fn: "ceil",
+ param: null,
+ expect: "0"
+}, {
+ label: "ceil(-0.6)",
+ set: -0.6,
+ fn: "ceil",
+ param: null,
+ expect: "0"
+}, {
+ label: "floor(0.4)",
+ set: 0.4,
+ fn: "floor",
+ param: null,
+ expect: "0"
+}, {
+ label: "floor(0.4, 1)",
+ set: 0.4,
+ fn: "floor",
+ param: 1,
+ expect: "0.4"
+}, {
+ label: "floor(0.5)",
+ set: 0.5,
+ fn: "floor",
+ param: null,
+ expect: "0"
+}, {
+ label: "floor(0.6)",
+ set: 0.6,
+ fn: "floor",
+ param: null,
+ expect: "0"
+}, {
+ label: "floor(-0.4)",
+ set: -0.4,
+ fn: "floor",
+ param: null,
+ expect: "-1"
+}, {
+ label: "floor(-0.5)",
+ set: -0.5,
+ fn: "floor",
+ param: null,
+ expect: "-1"
+}, {
+ label: "floor(-0.6)",
+ set: -0.6,
+ fn: "floor",
+ param: null,
+ expect: "-1"
+}, {
+ label: "floor(10.4)",
+ set: 10.4,
+ fn: "floor",
+ param: null,
+ expect: "10"
+}, {
+ label: "floor(10.4, 1)",
+ set: 10.4,
+ fn: "floor",
+ param: 1,
+ expect: "10.4"
+}, {
+ label: "floor(10.5)",
+ set: 10.5,
+ fn: "floor",
+ param: null,
+ expect: "10"
+}, {
+ label: "floor(10.6)",
+ set: 10.6,
+ fn: "floor",
+ param: null,
+ expect: "10"
+}, {
+ label: "floor(-10.4)",
+ set: -10.4,
+ fn: "floor",
+ param: null,
+ expect: "-11"
+}, {
+ label: "floor(-10.5)",
+ set: -10.5,
+ fn: "floor",
+ param: null,
+ expect: "-11"
+}, {
+ label: "floor(-10.6)",
+ set: -10.6,
+ fn: "floor",
+ param: null,
+ expect: "-11"
+}, {
+ label: "floor(-10.543,3)",
+ set: -10.543,
+ fn: "floor",
+ param: 3,
+ expect: "-10.543"
+}, {
+ label: "floor(10.543,3)",
+ set: 10.543,
+ fn: "floor",
+ param: 3,
+ expect: "10.543"
+}, {
+ label: "round(-10.543,3)",
+ set: -10.543,
+ fn: "round",
+ param: 3,
+ expect: "-10.543"
+}, {
+ label: "round(10.543,3)",
+ set: 10.543,
+ fn: "round",
+ param: 3,
+ expect: "10.543"
+}, {
+ label: "round(10.4)",
+ set: 10.4,
+ fn: "round",
+ param: null,
+ expect: "10"
+}, {
+ label: "round(10.5)",
+ set: 10.5,
+ fn: "round",
+ param: null,
+ expect: "11"
+}, {
+ label: "round(10.5, 1)",
+ set: 10.5,
+ fn: "round",
+ param: 1,
+ expect: "10.5"
+}, {
+ label: "round(10.6)",
+ set: 10.6,
+ fn: "round",
+ param: null,
+ expect: "11"
+}, {
+ label: "round(-10.4)",
+ set: -10.4,
+ fn: "round",
+ param: null,
+ expect: "-10"
+}, {
+ label: "round(-10.5)",
+ set: -10.5,
+ fn: "round",
+ param: null,
+ expect: "-10"
+}, {
+ label: "round(-10.6)",
+ set: -10.6,
+ fn: "round",
+ param: null,
+ expect: "-11"
+}, {
+ label: "round(-0.4)",
+ set: -0.4,
+ fn: "round",
+ param: null,
+ expect: "0"
+}, {
+ label: "round(-0.5)",
+ set: -0.5,
+ fn: "round",
+ param: null,
+ expect: "0"
+}, {
+ label: "round(-0.6)",
+ set: -0.6,
+ fn: "round",
+ param: null,
+ expect: "-1"
+}, {
+ label: "round(-0)",
+ set: -0,
+ fn: "round",
+ param: null,
+ expect: "0"
+}, {
+ label: "round(big fraction)",
+ set: [
+ '409652136432929109317120'.repeat(100),
+ '63723676445298091081155'.repeat(100)
+ ],
+ fn: "round",
+ param: null,
+ expect: "6428570341270001560623330590225448467479093479780591305451264291405695842465355472558570608574213642"
+}, {
+ label: "round(big numerator)",
+ set: ['409652136432929109317'.repeat(100), 10],
+ fn: "round",
+ param: null,
+ expect: '409652136432929109317'.repeat(99) + '40965213643292910932'
+}, {
+ label: "17402216385200408/5539306332998545",
+ set: [17402216385200408, 5539306332998545],
+ fn: "add",
+ param: 0,
+ expect: "3.141587653589870"
+}, {
+ label: "17402216385200401/553930633299855",
+ set: [17402216385200401, 553930633299855],
+ fn: "add",
+ param: 0,
+ expect: "31.415876535898660"
+}, {
+ label: "1283191/418183",
+ set: [1283191, 418183],
+ fn: "add",
+ param: 0,
+ expect: "3.068491545567371"
+}, {
+ label: "1.001",
+ set: "1.001",
+ fn: "add",
+ param: 0,
+ expect: "1.001"
+}, {
+ label: "99+1",
+ set: [99, 1],
+ fn: "add",
+ param: 1,
+ expect: "100"
+}, {
+ label: "gcd(5/8, 3/7)",
+ set: [5, 8],
+ fn: "gcd",
+ param: [3, 7],
+ expect: "0.017(857142)" // == 1/56
+}, {
+ label: "gcd(52, 39)",
+ set: 52,
+ fn: "gcd",
+ param: 39,
+ expect: "13"
+}, {
+ label: "gcd(51357, 3819)",
+ set: 51357,
+ fn: "gcd",
+ param: 3819,
+ expect: "57"
+}, {
+ label: "gcd(841, 299)",
+ set: 841,
+ fn: "gcd",
+ param: 299,
+ expect: "1"
+}, {
+ label: "gcd(2/3, 7/5)",
+ set: [2, 3],
+ fn: "gcd",
+ param: [7, 5],
+ expect: "0.0(6)" // == 1/15
+}, {
+ label: "lcm(-3, 3)",
+ set: -3,
+ fn: "lcm",
+ param: 3,
+ expect: "3"
+}, {
+ label: "lcm(3,-3)",
+ set: 3,
+ fn: "lcm",
+ param: -3,
+ expect: "3"
+}, {
+ label: "lcm(0,3)",
+ set: 0,
+ fn: "lcm",
+ param: 3,
+ expect: "0"
+}, {
+ label: "lcm(3, 0)",
+ set: 3,
+ fn: "lcm",
+ param: 0,
+ expect: "0"
+}, {
+ label: "lcm(0, 0)",
+ set: 0,
+ fn: "lcm",
+ param: 0,
+ expect: "0"
+}, {
+ label: "lcm(200, 333)",
+ set: 200,
+ fn: "lcm",
+ param: 333, expect: "66600"
+},
+{
+ label: "1 + -1",
+ set: 1,
+ fn: "add",
+ param: -1,
+ expect: "0"
+}, {
+ label: "3/10+3/14",
+ set: "3/10",
+ fn: "add",
+ param: "3/14",
+ expect: "0.5(142857)"
+}, {
+ label: "3/10-3/14",
+ set: "3/10",
+ fn: "sub",
+ param: "3/14",
+ expect: "0.0(857142)"
+}, {
+ label: "3/10*3/14",
+ set: "3/10",
+ fn: "mul",
+ param: "3/14",
+ expect: "0.06(428571)"
+}, {
+ label: "3/10 / 3/14",
+ set: "3/10",
+ fn: "div",
+ param: "3/14",
+ expect: "1.4"
+}, {
+ label: "1-2",
+ set: "1",
+ fn: "sub",
+ param: "2",
+ expect: "-1"
+}, {
+ label: "1--1",
+ set: "1",
+ fn: "sub",
+ param: "-1",
+ expect: "2"
+}, {
+ label: "0/1*1/3",
+ set: "0/1",
+ fn: "mul",
+ param: "1/3",
+ expect: "0"
+}, {
+ label: "3/10 * 8/12",
+ set: "3/10",
+ fn: "mul",
+ param: "8/12",
+ expect: "0.2"
+}, {
+ label: ".5+5",
+ set: ".5",
+ fn: "add",
+ param: 5, expect: "5.5"
+},
+{
+ label: "10/12-5/60",
+ set: "10/12",
+ fn: "sub",
+ param: "5/60",
+ expect: "0.75"
+}, {
+ label: "10/15 / 3/4",
+ set: "10/15",
+ fn: "div",
+ param: "3/4",
+ expect: "0.(8)"
+}, {
+ label: "1/4 + 3/8",
+ set: "1/4",
+ fn: "add",
+ param: "3/8",
+ expect: "0.625"
+}, {
+ label: "2-1/3",
+ set: "2",
+ fn: "sub",
+ param: "1/3",
+ expect: "1.(6)"
+}, {
+ label: "5*6",
+ set: "5",
+ fn: "mul",
+ param: 6,
+ expect: "30"
+}, {
+ label: "1/2-1/5",
+ set: "1/2",
+ fn: "sub",
+ param: "1/5",
+ expect: "0.3"
+}, {
+ label: "1/2-5",
+ set: "1/2",
+ fn: "add",
+ param: -5,
+ expect: "-4.5"
+}, {
+ label: "1*-1",
+ set: "1",
+ fn: "mul",
+ param: -1,
+ expect: "-1"
+}, {
+ label: "5/10",
+ set: 5.0,
+ fn: "div",
+ param: 10,
+ expect: "0.5"
+}, {
+ label: "1/-1",
+ set: "1",
+ fn: "div",
+ param: -1,
+ expect: "-1"
+}, {
+ label: "4/5 + 13/2",
+ set: "4/5",
+ fn: "add",
+ param: "13/2",
+ expect: "7.3"
+}, {
+ label: "4/5 + 61/2",
+ set: "4/5",
+ fn: "add",
+ param: "61/2",
+ expect: "31.3"
+}, {
+ label: "0.8 + 6.5",
+ set: "0.8",
+ fn: "add",
+ param: "6.5",
+ expect: "7.3"
+}, {
+ label: "2/7 inverse",
+ set: "2/7",
+ fn: "inverse",
+ param: null,
+ expect: "3.5"
+}, {
+ label: "neg 1/3",
+ set: "1/3",
+ fn: "neg",
+ param: null,
+ expect: "-0.(3)"
+}, {
+ label: "1/2+1/3",
+ set: "1/2",
+ fn: "add",
+ param: "1/3",
+ expect: "0.8(3)"
+}, {
+ label: "1/2+3",
+ set: ".5",
+ fn: "add",
+ param: 3,
+ expect: "3.5"
+}, {
+ label: "1/2+3.14",
+ set: "1/2",
+ fn: "add",
+ param: "3.14",
+ expect: "3.64"
+}, {
+ label: "3.5 < 4.1",
+ set: 3.5,
+ fn: "compare",
+ param: 4.1,
+ expect: "-1"
+}, {
+ label: "3.5 > 4.1",
+ set: 4.1,
+ fn: "compare",
+ param: 3.1,
+ expect: "1"
+}, {
+ label: "-3.5 > -4.1",
+ set: -3.5,
+ fn: "compare",
+ param: -4.1,
+ expect: "1"
+}, {
+ label: "-3.5 > -4.1",
+ set: -4.1,
+ fn: "compare",
+ param: -3.5,
+ expect: "-1"
+}, {
+ label: "4.3 == 4.3",
+ set: 4.3,
+ fn: "compare",
+ param: 4.3,
+ expect: "0"
+}, {
+ label: "-4.3 == -4.3",
+ set: -4.3,
+ fn: "compare",
+ param: -4.3,
+ expect: "0"
+}, {
+ label: "-4.3 < 4.3",
+ set: -4.3,
+ fn: "compare",
+ param: 4.3,
+ expect: "-1"
+}, {
+ label: "4.3 == -4.3",
+ set: 4.3,
+ fn: "compare",
+ param: -4.3,
+ expect: "1"
+}, {
+ label: "2^0.5",
+ set: 2,
+ fn: "pow",
+ param: 0.5,
+ expect: "null"
+}, {
+ label: "(-8/27)^(1/3)",
+ set: [-8, 27],
+ fn: "pow",
+ param: [1, 3],
+ expect: "null"
+}, {
+ label: "(-8/27)^(2/3)",
+ set: [-8, 27],
+ fn: "pow",
+ param: [2, 3],
+ expect: "null"
+}, {
+ label: "(-32/243)^(5/3)",
+ set: [-32, 243],
+ fn: "pow",
+ param: [5, 3],
+ expect: "null"
+}, {
+ label: "sqrt(0)",
+ set: 0,
+ fn: "pow",
+ param: 0.5,
+ expect: "0"
+}, {
+ label: "27^(2/3)",
+ set: 27,
+ fn: "pow",
+ param: "2/3",
+ expect: "9"
+}, {
+ label: "(243/1024)^(2/5)",
+ set: "243/1024",
+ fn: "pow",
+ param: "2/5",
+ expect: "0.5625"
+}, {
+ label: "-0.5^-3",
+ set: -0.5,
+ fn: "pow",
+ param: -3,
+ expect: "-8"
+}, {
+ label: "",
+ set: -3,
+ fn: "pow",
+ param: -3,
+ expect: "-0.(037)"
+}, {
+ label: "-3",
+ set: -3,
+ fn: "pow",
+ param: 2,
+ expect: "9"
+}, {
+ label: "-3",
+ set: -3,
+ fn: "pow",
+ param: 3,
+ expect: "-27"
+}, {
+ label: "0^0",
+ set: 0,
+ fn: "pow",
+ param: 0,
+ expect: "1"
+}, {
+ label: "2/3^7",
+ set: [2, 3],
+ fn: "pow",
+ param: 7,
+ expect: "0.(058527663465935070873342478280749885688157293095564700502972107910379515317786922725194330132601737540009144947416552354823959762231367169638774577046181984453589391860996799268404206675811614083219021490626428898033836305441243712848651120256)"
+}, {
+ label: "-0.6^4",
+ set: -0.6,
+ fn: "pow",
+ param: 4,
+ expect: "0.1296"
+}, {
+ label: "8128371:12394 - 8128371/12394",
+ set: "8128371:12394",
+ fn: "sub",
+ param: "8128371/12394",
+ expect: "0"
+}, {
+ label: "3/4 + 1/4",
+ set: "3/4",
+ fn: "add",
+ param: "1/4",
+ expect: "1"
+}, {
+ label: "1/10 + 2/10",
+ set: "1/10",
+ fn: "add",
+ param: "2/10",
+ expect: "0.3"
+}, {
+ label: "5/10 + 2/10",
+ set: "5/10",
+ fn: "add",
+ param: "2/10",
+ expect: "0.7"
+}, {
+ label: "18/10 + 2/10",
+ set: "18/10",
+ fn: "add",
+ param: "2/10",
+ expect: "2"
+}, {
+ label: "1/3 + 1/6",
+ set: "1/3",
+ fn: "add",
+ param: "1/6",
+ expect: "0.5"
+}, {
+ label: "1/3 + 2/6",
+ set: "1/3",
+ fn: "add",
+ param: "2/6",
+ expect: "0.(6)"
+}, {
+ label: "3/4 / 1/4",
+ set: "3/4",
+ fn: "div",
+ param: "1/4",
+ expect: "3"
+}, {
+ label: "1/10 / 2/10",
+ set: "1/10",
+ fn: "div",
+ param: "2/10",
+ expect: "0.5"
+}, {
+ label: "5/10 / 2/10",
+ set: "5/10",
+ fn: "div",
+ param: "2/10",
+ expect: "2.5"
+}, {
+ label: "18/10 / 2/10",
+ set: "18/10",
+ fn: "div",
+ param: "2/10",
+ expect: "9"
+}, {
+ label: "1/3 / 1/6",
+ set: "1/3",
+ fn: "div",
+ param: "1/6",
+ expect: "2"
+}, {
+ label: "1/3 / 2/6",
+ set: "1/3",
+ fn: "div",
+ param: "2/6",
+ expect: "1"
+}, {
+ label: "3/4 * 1/4",
+ set: "3/4",
+ fn: "mul",
+ param: "1/4",
+ expect: "0.1875"
+}, {
+ label: "1/10 * 2/10",
+ set: "1/10",
+ fn: "mul",
+ param: "2/10",
+ expect: "0.02"
+}, {
+ label: "5/10 * 2/10",
+ set: "5/10",
+ fn: "mul",
+ param: "2/10",
+ expect: "0.1"
+}, {
+ label: "18/10 * 2/10",
+ set: "18/10",
+ fn: "mul",
+ param: "2/10",
+ expect: "0.36"
+}, {
+ label: "1/3 * 1/6",
+ set: "1/3",
+ fn: "mul",
+ param: "1/6",
+ expect: "0.0(5)"
+}, {
+ label: "1/3 * 2/6",
+ set: "1/3",
+ fn: "mul",
+ param: "2/6",
+ expect: "0.(1)"
+}, {
+ label: "5/4 - 1/4",
+ set: "5/4",
+ fn: "sub",
+ param: "1/4",
+ expect: "1"
+}, {
+ label: "5/10 - 2/10",
+ set: "5/10",
+ fn: "sub",
+ param: "2/10",
+ expect: "0.3"
+}, {
+ label: "9/10 - 2/10",
+ set: "9/10",
+ fn: "sub",
+ param: "2/10",
+ expect: "0.7"
+}, {
+ label: "22/10 - 2/10",
+ set: "22/10",
+ fn: "sub",
+ param: "2/10",
+ expect: "2"
+}, {
+ label: "2/3 - 1/6",
+ set: "2/3",
+ fn: "sub",
+ param: "1/6",
+ expect: "0.5"
+}, {
+ label: "3/3 - 2/6",
+ set: "3/3",
+ fn: "sub",
+ param: "2/6",
+ expect: "0.(6)"
+}, {
+ label: "0.006999999999999999",
+ set: 0.006999999999999999,
+ fn: "add",
+ param: 0,
+ expect: "0.007"
+}, {
+ label: "1/7 - 1",
+ set: 1 / 7,
+ fn: "add",
+ param: -1,
+ expect: "-0.(857142)"
+}, {
+ label: "0.0065 + 0.0005",
+ set: 0.0065,
+ fn: "add",
+ param: 0.0005,
+ expect: "0.007"
+}, {
+ label: "6.5/.5",
+ set: 6.5,
+ fn: "div",
+ param: .5,
+ expect: "13"
+}, {
+ label: "0.999999999999999999999999999",
+ set: 0.999999999999999999999999999,
+ fn: "sub",
+ param: 1,
+ expect: "0"
+}, {
+ label: "0.5833333333333334",
+ set: 0.5833333333333334,
+ fn: "add",
+ param: 0,
+ expect: "0.58(3)"
+}, {
+ label: "1.75/3",
+ set: 1.75 / 3,
+ fn: "add",
+ param: 0,
+ expect: "0.58(3)"
+}, {
+ label: "3.3333333333333",
+ set: 3.3333333333333,
+ fn: "add",
+ param: 0,
+ expect: "3.(3)"
+}, {
+ label: "4.285714285714285714285714",
+ set: 4.285714285714285714285714,
+ fn: "add",
+ param: 0,
+ expect: "4.(285714)"
+}, {
+ label: "-4",
+ set: -4,
+ fn: "neg",
+ param: 0,
+ expect: "4"
+}, {
+ label: "4",
+ set: 4,
+ fn: "neg",
+ param: 0,
+ expect: "-4"
+}, {
+ label: "0",
+ set: 0,
+ fn: "neg",
+ param: 0,
+ expect: "0"
+}, {
+ label: "6869570742453802/5329686054127205",
+ set: "6869570742453802/5329686054127205",
+ fn: "neg",
+ param: 0,
+ expect: "-1.288925965373540"
+}, {
+ label: "686970702/53212205",
+ set: "686970702/53212205",
+ fn: "neg",
+ param: 0,
+ expect: "-12.910021338149772"
+}, {
+ label: "1/3000000000000000",
+ set: "1/3000000000000000",
+ fn: "add",
+ param: 0,
+ expect: "0.000000000000000(3)"
+}, {
+ label: "toString(15) .0000000000000003",
+ set: ".0000000000000003",
+ fn: "toString",
+ param: 15,
+ expect: "0.000000000000000"
+}, {
+ label: "toString(16) .0000000000000003",
+ set: ".0000000000000003",
+ fn: "toString",
+ param: 16,
+ expect: "0.0000000000000003"
+}, {
+ label: "12 / 4.3",
+ set: 12,
+ set2: 4.3,
+ fn: "toString",
+ param: null,
+ expectError: NonIntegerParameter()
+}, {
+ label: "12.5 / 4",
+ set: 12.5,
+ set2: 4,
+ fn: "toString",
+ param: null,
+ expectError: NonIntegerParameter()
+}, {
+ label: "0.9 round to multiple of 1/8",
+ set: .9,
+ fn: "roundTo",
+ param: "1/8",
+ expect: "0.875"
+}, {
+ label: "1/3 round to multiple of 1/16",
+ set: 1 / 3,
+ fn: "roundTo",
+ param: "1/16",
+ expect: "0.3125"
+}, {
+ label: "1/3 round to multiple of 1/16",
+ set: -1 / 3,
+ fn: "roundTo",
+ param: "1/16",
+ expect: "-0.3125"
+}, {
+ label: "1/2 round to multiple of 1/4",
+ set: 1 / 2,
+ fn: "roundTo",
+ param: "1/4",
+ expect: "0.5"
+}, {
+ label: "1/4 round to multiple of 1/2",
+ set: 1 / 4,
+ fn: "roundTo",
+ param: "1/2",
+ expect: "0.5"
+}, {
+ label: "10/3 round to multiple of 1/2",
+ set: "10/3",
+ fn: "roundTo",
+ param: "1/2",
+ expect: "3.5"
+}, {
+ label: "-10/3 round to multiple of 1/2",
+ set: "-10/3",
+ fn: "roundTo",
+ param: "1/2",
+ expect: "-3.5"
+}, {
+ label: "log_2(8)",
+ set: "8",
+ fn: "log",
+ param: "2",
+ expect: "3" // because 2^3 = 8
+}, {
+ label: "log_2(3)",
+ set: "3",
+ fn: "log",
+ param: "2",
+ expect: 'null' // because 2^(p/q) != 3
+}, {
+ label: "log_10(1000)",
+ set: "1000",
+ fn: "log",
+ param: "10",
+ expect: "3" // because 10^3 = 1000
+}, {
+ label: "log_27(81)",
+ set: "81",
+ fn: "log",
+ param: "27",
+ expect: "1.(3)" // because 27^(4/3) = 81
+}, {
+ label: "log_27(9)",
+ set: "9",
+ fn: "log",
+ param: "27",
+ expect: "0.(6)" // because 27^(2/3) = 9
+}, {
+ label: "log_9/4(27/8)",
+ set: "27/8",
+ fn: "log",
+ param: "9/4",
+ expect: "1.5" // because (9/4)^(3/2) = 27/8
+}];
+
+describe('Fraction', function () {
+ for (var i = 0; i < tests.length; i++) {
+
+ (function (i) {
+ var action;
+
+ if (tests[i].fn) {
+ action = function () {
+ var x = Fraction(tests[i].set, tests[i].set2)[tests[i].fn](tests[i].param);
+ if (x === null) return "null";
+ return x.toString();
+ };
+ } else {
+ action = function () {
+ var x = new Fraction(tests[i].set, tests[i].set2);
+ if (x === null) return "null";
+ return x.toString();
+ };
+ }
+
+ it(String(tests[i].label || tests[i].set), function () {
+ if (tests[i].expectError) {
+ assert.throws(action, tests[i].expectError);
+ } else {
+ assert.equal(action(), tests[i].expect);
+ }
+ });
+
+ })(i);
+ }
+});
+
+describe('JSON', function () {
+
+ it("Should be possible to stringify the object", function () {
+
+ if (typeof Fraction(1).n !== 'number') {
+ return;
+ }
+ assert.equal('{"s":1,"n":14623,"d":330}', JSON.stringify(new Fraction("44.3(12)")));
+ assert.equal('{"s":-1,"n":2,"d":1}', JSON.stringify(new Fraction(-1 / 2).inverse()));
+ });
+});
+
+describe('Arguments', function () {
+
+ it("Should be possible to use different kind of params", function () {
+
+ // String
+ var fraction = new Fraction("0.1");
+ assert.equal("1/10", fraction.n + "/" + fraction.d);
+
+ var fraction = new Fraction("6234/6460");
+ assert.equal("3117/3230", fraction.n + "/" + fraction.d);
+
+ // Two params
+ var fraction = new Fraction(1, 2);
+ assert.equal("1/2", fraction.n + "/" + fraction.d);
+
+ // Object
+ var fraction = new Fraction({ n: 1, d: 3 });
+ assert.equal("1/3", fraction.n + "/" + fraction.d);
+
+ // Array
+ var fraction = new Fraction([1, 4]);
+ assert.equal("1/4", fraction.n + "/" + fraction.d);
+ });
+});
+
+describe('fractions', function () {
+
+ it("Should pass 0.08 = 2/25", function () {
+
+ var fraction = new Fraction("0.08");
+ assert.equal("2/25", fraction.n + "/" + fraction.d);
+ });
+
+ it("Should pass 0.200 = 1/5", function () {
+
+ var fraction = new Fraction("0.200");
+ assert.equal("1/5", fraction.n + "/" + fraction.d);
+ });
+
+ it("Should pass 0.125 = 1/8", function () {
+
+ var fraction = new Fraction("0.125");
+ assert.equal("1/8", fraction.n + "/" + fraction.d);
+ });
+
+ it("Should pass 8.36 = 209/25", function () {
+
+ var fraction = new Fraction(8.36);
+ assert.equal("209/25", fraction.n + "/" + fraction.d);
+ });
+
+});
+
+describe('constructors', function () {
+
+ it("Should pass 0.08 = 2/25", function () {
+
+ var tmp = new Fraction({ d: 4, n: 2, s: -1 });
+ assert.equal("-1/2", tmp.s * tmp.n + "/" + tmp.d);
+
+ var tmp = new Fraction(-88.3);
+ assert.equal("-883/10", tmp.s * tmp.n + "/" + tmp.d);
+
+ var tmp = new Fraction(-88.3).clone();
+ assert.equal("-883/10", tmp.s * tmp.n + "/" + tmp.d);
+
+ var tmp = new Fraction("123.'3'");
+ assert.equal("370/3", tmp.s * tmp.n + "/" + tmp.d);
+
+ var tmp = new Fraction("123.'3'").clone();
+ assert.equal("370/3", tmp.s * tmp.n + "/" + tmp.d);
+
+ var tmp = new Fraction([-1023461776, 334639305]);
+ tmp = tmp.add([4, 25]);
+ assert.equal("-4849597436/1673196525", tmp.s * tmp.n + "/" + tmp.d);
+ });
+});
+
+describe('Latex Output', function () {
+
+ it("Should pass 123.'3' = \\frac{370}{3}", function () {
+
+ var tmp = new Fraction("123.'3'");
+ assert.equal("\\frac{370}{3}", tmp.toLatex());
+ });
+
+ it("Should pass 1.'3' = \\frac{4}{3}", function () {
+
+ var tmp = new Fraction("1.'3'");
+ assert.equal("\\frac{4}{3}", tmp.toLatex());
+ });
+
+ it("Should pass -1.0000000000 = -1", function () {
+
+ var tmp = new Fraction("-1.0000000000");
+ assert.equal('-1', tmp.toLatex());
+ });
+
+ it("Should pass -0.0000000000 = 0", function () {
+
+ var tmp = new Fraction("-0.0000000000");
+ assert.equal('0', tmp.toLatex());
+ });
+});
+
+describe('Fraction Output', function () {
+
+ it("Should pass 123.'3' = 123 1/3", function () {
+
+ var tmp = new Fraction("123.'3'");
+ assert.equal('370/3', tmp.toFraction());
+ });
+
+ it("Should pass 1.'3' = 1 1/3", function () {
+
+ var tmp = new Fraction("1.'3'");
+ assert.equal('4/3', tmp.toFraction());
+ });
+
+ it("Should pass -1.0000000000 = -1", function () {
+
+ var tmp = new Fraction("-1.0000000000");
+ assert.equal('-1', tmp.toFraction());
+ });
+
+ it("Should pass -0.0000000000 = 0", function () {
+
+ var tmp = new Fraction("-0.0000000000");
+ assert.equal('0', tmp.toFraction());
+ });
+
+ it("Should pass 1/-99/293 = -1/29007", function () {
+
+ var tmp = new Fraction(-99).inverse().div(293);
+ assert.equal('-1/29007', tmp.toFraction());
+ });
+
+ it('Should work with large calculations', function () {
+ var x = Fraction(1123875);
+ var y = Fraction(1238750184);
+ var z = Fraction(1657134);
+ var r = Fraction(77344464613500, 92063);
+ assert.equal(x.mul(y).div(z).toFraction(), r.toFraction());
+ });
+});
+
+describe('Fraction toContinued', function () {
+
+ it("Should pass 415/93", function () {
+
+ var tmp = new Fraction(415, 93);
+ assert.equal('4,2,6,7', tmp.toContinued().toString());
+ });
+
+ it("Should pass 0/2", function () {
+
+ var tmp = new Fraction(0, 2);
+ assert.equal('0', tmp.toContinued().toString());
+ });
+
+ it("Should pass 1/7", function () {
+
+ var tmp = new Fraction(1, 7);
+ assert.equal('0,7', tmp.toContinued().toString());
+ });
+
+ it("Should pass 23/88", function () {
+
+ var tmp = new Fraction('23/88');
+ assert.equal('0,3,1,4,1,3', tmp.toContinued().toString());
+ });
+
+ it("Should pass 1/99", function () {
+
+ var tmp = new Fraction('1/99');
+ assert.equal('0,99', tmp.toContinued().toString());
+ });
+
+ it("Should pass 1768/99", function () {
+
+ var tmp = new Fraction('1768/99');
+ assert.equal('17,1,6,14', tmp.toContinued().toString());
+ });
+
+ it("Should pass 1768/99", function () {
+
+ var tmp = new Fraction('7/8');
+ assert.equal('0,1,7', tmp.toContinued().toString());
+ });
+
+});
+
+
+describe('Fraction simplify', function () {
+
+ it("Should pass 415/93", function () {
+
+ var tmp = new Fraction(415, 93);
+ assert.equal('9/2', tmp.simplify(0.1).toFraction());
+ assert.equal('58/13', tmp.simplify(0.01).toFraction());
+ assert.equal('415/93', tmp.simplify(0.0001).toFraction());
+ });
+
+});
diff --git a/web/node_modules/function-bind/.eslintrc b/web/node_modules/function-bind/.eslintrc
new file mode 100644
index 0000000000000000000000000000000000000000..71a054fd370a627af5171153377e7c78ba8937f9
--- /dev/null
+++ b/web/node_modules/function-bind/.eslintrc
@@ -0,0 +1,21 @@
+{
+ "root": true,
+
+ "extends": "@ljharb",
+
+ "rules": {
+ "func-name-matching": 0,
+ "indent": [2, 4],
+ "no-new-func": [1],
+ },
+
+ "overrides": [
+ {
+ "files": "test/**",
+ "rules": {
+ "max-lines-per-function": 0,
+ "strict": [0]
+ },
+ },
+ ],
+}
diff --git a/web/node_modules/function-bind/.github/FUNDING.yml b/web/node_modules/function-bind/.github/FUNDING.yml
new file mode 100644
index 0000000000000000000000000000000000000000..74482195934a98d0ce03d92cdabbc8a36e647d6f
--- /dev/null
+++ b/web/node_modules/function-bind/.github/FUNDING.yml
@@ -0,0 +1,12 @@
+# These are supported funding model platforms
+
+github: [ljharb]
+patreon: # Replace with a single Patreon username
+open_collective: # Replace with a single Open Collective username
+ko_fi: # Replace with a single Ko-fi username
+tidelift: npm/function-bind
+community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
+liberapay: # Replace with a single Liberapay username
+issuehunt: # Replace with a single IssueHunt username
+otechie: # Replace with a single Otechie username
+custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
diff --git a/web/node_modules/function-bind/.github/SECURITY.md b/web/node_modules/function-bind/.github/SECURITY.md
new file mode 100644
index 0000000000000000000000000000000000000000..82e4285adc6285693cd6c06af02d606e09dd8fcd
--- /dev/null
+++ b/web/node_modules/function-bind/.github/SECURITY.md
@@ -0,0 +1,3 @@
+# Security
+
+Please email [@ljharb](https://github.com/ljharb) or see https://tidelift.com/security if you have a potential security vulnerability to report.
diff --git a/web/node_modules/function-bind/.nycrc b/web/node_modules/function-bind/.nycrc
new file mode 100644
index 0000000000000000000000000000000000000000..1826526e091b89c896e7099ccd891db79165e329
--- /dev/null
+++ b/web/node_modules/function-bind/.nycrc
@@ -0,0 +1,13 @@
+{
+ "all": true,
+ "check-coverage": false,
+ "reporter": ["text-summary", "text", "html", "json"],
+ "lines": 86,
+ "statements": 85.93,
+ "functions": 82.43,
+ "branches": 76.06,
+ "exclude": [
+ "coverage",
+ "test"
+ ]
+}
diff --git a/web/node_modules/function-bind/CHANGELOG.md b/web/node_modules/function-bind/CHANGELOG.md
new file mode 100644
index 0000000000000000000000000000000000000000..f9e6cc078dadd58957c92af75542453c18169d73
--- /dev/null
+++ b/web/node_modules/function-bind/CHANGELOG.md
@@ -0,0 +1,136 @@
+# Changelog
+
+All notable changes to this project will be documented in this file.
+
+The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
+and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+
+## [v1.1.2](https://github.com/ljharb/function-bind/compare/v1.1.1...v1.1.2) - 2023-10-12
+
+### Merged
+
+- Point to the correct file [`#16`](https://github.com/ljharb/function-bind/pull/16)
+
+### Commits
+
+- [Tests] migrate tests to Github Actions [`4f8b57c`](https://github.com/ljharb/function-bind/commit/4f8b57c02f2011fe9ae353d5e74e8745f0988af8)
+- [Tests] remove `jscs` [`90eb2ed`](https://github.com/ljharb/function-bind/commit/90eb2edbeefd5b76cd6c3a482ea3454db169b31f)
+- [meta] update `.gitignore` [`53fcdc3`](https://github.com/ljharb/function-bind/commit/53fcdc371cd66634d6e9b71c836a50f437e89fed)
+- [Tests] up to `node` `v11.10`, `v10.15`, `v9.11`, `v8.15`, `v6.16`, `v4.9`; use `nvm install-latest-npm`; run audit script in tests [`1fe8f6e`](https://github.com/ljharb/function-bind/commit/1fe8f6e9aed0dfa8d8b3cdbd00c7f5ea0cd2b36e)
+- [meta] add `auto-changelog` [`1921fcb`](https://github.com/ljharb/function-bind/commit/1921fcb5b416b63ffc4acad051b6aad5722f777d)
+- [Robustness] remove runtime dependency on all builtins except `.apply` [`f743e61`](https://github.com/ljharb/function-bind/commit/f743e61aa6bb2360358c04d4884c9db853d118b7)
+- Docs: enable badges; update wording [`503cb12`](https://github.com/ljharb/function-bind/commit/503cb12d998b5f91822776c73332c7adcd6355dd)
+- [readme] update badges [`290c5db`](https://github.com/ljharb/function-bind/commit/290c5dbbbda7264efaeb886552a374b869a4bb48)
+- [Tests] switch to nyc for coverage [`ea360ba`](https://github.com/ljharb/function-bind/commit/ea360ba907fc2601ed18d01a3827fa2d3533cdf8)
+- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape` [`cae5e9e`](https://github.com/ljharb/function-bind/commit/cae5e9e07a5578dc6df26c03ee22851ce05b943c)
+- [meta] add `funding` field; create FUNDING.yml [`c9f4274`](https://github.com/ljharb/function-bind/commit/c9f4274aa80ea3aae9657a3938fdba41a3b04ca6)
+- [Tests] fix eslint errors from #15 [`f69aaa2`](https://github.com/ljharb/function-bind/commit/f69aaa2beb2fdab4415bfb885760a699d0b9c964)
+- [actions] fix permissions [`99a0cd9`](https://github.com/ljharb/function-bind/commit/99a0cd9f3b5bac223a0d572f081834cd73314be7)
+- [meta] use `npmignore` to autogenerate an npmignore file [`f03b524`](https://github.com/ljharb/function-bind/commit/f03b524ca91f75a109a5d062f029122c86ecd1ae)
+- [Dev Deps] update `@ljharb/eslint‑config`, `eslint`, `tape` [`7af9300`](https://github.com/ljharb/function-bind/commit/7af930023ae2ce7645489532821e4fbbcd7a2280)
+- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `covert`, `tape` [`64a9127`](https://github.com/ljharb/function-bind/commit/64a9127ab0bd331b93d6572eaf6e9971967fc08c)
+- [Tests] use `aud` instead of `npm audit` [`e75069c`](https://github.com/ljharb/function-bind/commit/e75069c50010a8fcce2a9ce2324934c35fdb4386)
+- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `tape` [`d03555c`](https://github.com/ljharb/function-bind/commit/d03555ca59dea3b71ce710045e4303b9e2619e28)
+- [meta] add `safe-publish-latest` [`9c8f809`](https://github.com/ljharb/function-bind/commit/9c8f8092aed027d7e80c94f517aa892385b64f09)
+- [Dev Deps] update `@ljharb/eslint-config`, `tape` [`baf6893`](https://github.com/ljharb/function-bind/commit/baf6893e27f5b59abe88bc1995e6f6ed1e527397)
+- [meta] create SECURITY.md [`4db1779`](https://github.com/ljharb/function-bind/commit/4db17799f1f28ae294cb95e0081ca2b591c3911b)
+- [Tests] add `npm run audit` [`c8b38ec`](https://github.com/ljharb/function-bind/commit/c8b38ec40ed3f85dabdee40ed4148f1748375bc2)
+- Revert "Point to the correct file" [`05cdf0f`](https://github.com/ljharb/function-bind/commit/05cdf0fa205c6a3c5ba40bbedd1dfa9874f915c9)
+
+## [v1.1.1](https://github.com/ljharb/function-bind/compare/v1.1.0...v1.1.1) - 2017-08-28
+
+### Commits
+
+- [Tests] up to `node` `v8`; newer npm breaks on older node; fix scripts [`817f7d2`](https://github.com/ljharb/function-bind/commit/817f7d28470fdbff8ef608d4d565dd4d1430bc5e)
+- [Dev Deps] update `eslint`, `jscs`, `tape`, `@ljharb/eslint-config` [`854288b`](https://github.com/ljharb/function-bind/commit/854288b1b6f5c555f89aceb9eff1152510262084)
+- [Dev Deps] update `tape`, `jscs`, `eslint`, `@ljharb/eslint-config` [`83e639f`](https://github.com/ljharb/function-bind/commit/83e639ff74e6cd6921285bccec22c1bcf72311bd)
+- Only apps should have lockfiles [`5ed97f5`](https://github.com/ljharb/function-bind/commit/5ed97f51235c17774e0832e122abda0f3229c908)
+- Use a SPDX-compliant “license” field. [`5feefea`](https://github.com/ljharb/function-bind/commit/5feefea0dc0193993e83e5df01ded424403a5381)
+
+## [v1.1.0](https://github.com/ljharb/function-bind/compare/v1.0.2...v1.1.0) - 2016-02-14
+
+### Commits
+
+- Update `eslint`, `tape`; use my personal shared `eslint` config [`9c9062a`](https://github.com/ljharb/function-bind/commit/9c9062abbe9dd70b59ea2c3a3c3a81f29b457097)
+- Add `npm run eslint` [`dd96c56`](https://github.com/ljharb/function-bind/commit/dd96c56720034a3c1ffee10b8a59a6f7c53e24ad)
+- [New] return the native `bind` when available. [`82186e0`](https://github.com/ljharb/function-bind/commit/82186e03d73e580f95ff167e03f3582bed90ed72)
+- [Dev Deps] update `tape`, `jscs`, `eslint`, `@ljharb/eslint-config` [`a3dd767`](https://github.com/ljharb/function-bind/commit/a3dd76720c795cb7f4586b0544efabf8aa107b8b)
+- Update `eslint` [`3dae2f7`](https://github.com/ljharb/function-bind/commit/3dae2f7423de30a2d20313ddb1edc19660142fe9)
+- Update `tape`, `covert`, `jscs` [`a181eee`](https://github.com/ljharb/function-bind/commit/a181eee0cfa24eb229c6e843a971f36e060a2f6a)
+- [Tests] up to `node` `v5.6`, `v4.3` [`964929a`](https://github.com/ljharb/function-bind/commit/964929a6a4ddb36fb128de2bcc20af5e4f22e1ed)
+- Test up to `io.js` `v2.1` [`2be7310`](https://github.com/ljharb/function-bind/commit/2be7310f2f74886a7124ca925be411117d41d5ea)
+- Update `tape`, `jscs`, `eslint`, `@ljharb/eslint-config` [`45f3d68`](https://github.com/ljharb/function-bind/commit/45f3d6865c6ca93726abcef54febe009087af101)
+- [Dev Deps] update `tape`, `jscs` [`6e1340d`](https://github.com/ljharb/function-bind/commit/6e1340d94642deaecad3e717825db641af4f8b1f)
+- [Tests] up to `io.js` `v3.3`, `node` `v4.1` [`d9bad2b`](https://github.com/ljharb/function-bind/commit/d9bad2b778b1b3a6dd2876087b88b3acf319f8cc)
+- Update `eslint` [`935590c`](https://github.com/ljharb/function-bind/commit/935590caa024ab356102e4858e8fc315b2ccc446)
+- [Dev Deps] update `jscs`, `eslint`, `@ljharb/eslint-config` [`8c9a1ef`](https://github.com/ljharb/function-bind/commit/8c9a1efd848e5167887aa8501857a0940a480c57)
+- Test on `io.js` `v2.2` [`9a3a38c`](https://github.com/ljharb/function-bind/commit/9a3a38c92013aed6e108666e7bd40969b84ac86e)
+- Run `travis-ci` tests on `iojs` and `node` v0.12; speed up builds; allow 0.8 failures. [`69afc26`](https://github.com/ljharb/function-bind/commit/69afc2617405b147dd2a8d8ae73ca9e9283f18b4)
+- [Dev Deps] Update `tape`, `eslint` [`36c1be0`](https://github.com/ljharb/function-bind/commit/36c1be0ab12b45fe5df6b0fdb01a5d5137fd0115)
+- Update `tape`, `jscs` [`98d8303`](https://github.com/ljharb/function-bind/commit/98d8303cd5ca1c6b8f985469f86b0d44d7d45f6e)
+- Update `jscs` [`9633a4e`](https://github.com/ljharb/function-bind/commit/9633a4e9fbf82051c240855166e468ba8ba0846f)
+- Update `tape`, `jscs` [`c80ef0f`](https://github.com/ljharb/function-bind/commit/c80ef0f46efc9791e76fa50de4414092ac147831)
+- Test up to `io.js` `v3.0` [`7e2c853`](https://github.com/ljharb/function-bind/commit/7e2c8537d52ab9cf5a655755561d8917684c0df4)
+- Test on `io.js` `v2.4` [`5a199a2`](https://github.com/ljharb/function-bind/commit/5a199a27ba46795ba5eaf0845d07d4b8232895c9)
+- Test on `io.js` `v2.3` [`a511b88`](https://github.com/ljharb/function-bind/commit/a511b8896de0bddf3b56862daa416c701f4d0453)
+- Fixing a typo from 822b4e1938db02dc9584aa434fd3a45cb20caf43 [`732d6b6`](https://github.com/ljharb/function-bind/commit/732d6b63a9b33b45230e630dbcac7a10855d3266)
+- Update `jscs` [`da52a48`](https://github.com/ljharb/function-bind/commit/da52a4886c06d6490f46ae30b15e4163ba08905d)
+- Lock covert to v1.0.0. [`d6150fd`](https://github.com/ljharb/function-bind/commit/d6150fda1e6f486718ebdeff823333d9e48e7430)
+
+## [v1.0.2](https://github.com/ljharb/function-bind/compare/v1.0.1...v1.0.2) - 2014-10-04
+
+## [v1.0.1](https://github.com/ljharb/function-bind/compare/v1.0.0...v1.0.1) - 2014-10-03
+
+### Merged
+
+- make CI build faster [`#3`](https://github.com/ljharb/function-bind/pull/3)
+
+### Commits
+
+- Using my standard jscs.json [`d8ee94c`](https://github.com/ljharb/function-bind/commit/d8ee94c993eff0a84cf5744fe6a29627f5cffa1a)
+- Adding `npm run lint` [`7571ab7`](https://github.com/ljharb/function-bind/commit/7571ab7dfdbd99b25a1dbb2d232622bd6f4f9c10)
+- Using consistent indentation [`e91a1b1`](https://github.com/ljharb/function-bind/commit/e91a1b13a61e99ec1e530e299b55508f74218a95)
+- Updating jscs [`7e17892`](https://github.com/ljharb/function-bind/commit/7e1789284bc629bc9c1547a61c9b227bbd8c7a65)
+- Using consistent quotes [`c50b57f`](https://github.com/ljharb/function-bind/commit/c50b57fcd1c5ec38320979c837006069ebe02b77)
+- Adding keywords [`cb94631`](https://github.com/ljharb/function-bind/commit/cb946314eed35f21186a25fb42fc118772f9ee00)
+- Directly export a function expression instead of using a declaration, and relying on hoisting. [`5a33c5f`](https://github.com/ljharb/function-bind/commit/5a33c5f45642de180e0d207110bf7d1843ceb87c)
+- Naming npm URL and badge in README; use SVG [`2aef8fc`](https://github.com/ljharb/function-bind/commit/2aef8fcb79d54e63a58ae557c4e60949e05d5e16)
+- Naming deps URLs in README [`04228d7`](https://github.com/ljharb/function-bind/commit/04228d766670ee45ca24e98345c1f6a7621065b5)
+- Naming travis-ci URLs in README; using SVG [`62c810c`](https://github.com/ljharb/function-bind/commit/62c810c2f54ced956cd4d4ab7b793055addfe36e)
+- Make sure functions are invoked correctly (also passing coverage tests) [`2b289b4`](https://github.com/ljharb/function-bind/commit/2b289b4dfbf037ffcfa4dc95eb540f6165e9e43a)
+- Removing the strict mode pragmas; they make tests fail. [`1aa701d`](https://github.com/ljharb/function-bind/commit/1aa701d199ddc3782476e8f7eef82679be97b845)
+- Adding myself as a contributor [`85fd57b`](https://github.com/ljharb/function-bind/commit/85fd57b0860e5a7af42de9a287f3f265fc6d72fc)
+- Adding strict mode pragmas [`915b08e`](https://github.com/ljharb/function-bind/commit/915b08e084c86a722eafe7245e21db74aa21ca4c)
+- Adding devDeps URLs to README [`4ccc731`](https://github.com/ljharb/function-bind/commit/4ccc73112c1769859e4ca3076caf4086b3cba2cd)
+- Fixing the description. [`a7a472c`](https://github.com/ljharb/function-bind/commit/a7a472cf649af515c635cf560fc478fbe48999c8)
+- Using a function expression instead of a function declaration. [`b5d3e4e`](https://github.com/ljharb/function-bind/commit/b5d3e4ea6aaffc63888953eeb1fbc7ff45f1fa14)
+- Updating tape [`f086be6`](https://github.com/ljharb/function-bind/commit/f086be6029fb56dde61a258c1340600fa174d1e0)
+- Updating jscs [`5f9bdb3`](https://github.com/ljharb/function-bind/commit/5f9bdb375ab13ba48f30852aab94029520c54d71)
+- Updating jscs [`9b409ba`](https://github.com/ljharb/function-bind/commit/9b409ba6118e23395a4e5d83ef39152aab9d3bfc)
+- Run coverage as part of tests. [`8e1b6d4`](https://github.com/ljharb/function-bind/commit/8e1b6d459f047d1bd4fee814e01247c984c80bd0)
+- Run linter as part of tests [`c1ca83f`](https://github.com/ljharb/function-bind/commit/c1ca83f832df94587d09e621beba682fabfaa987)
+- Updating covert [`701e837`](https://github.com/ljharb/function-bind/commit/701e83774b57b4d3ef631e1948143f43a72f4bb9)
+
+## [v1.0.0](https://github.com/ljharb/function-bind/compare/v0.2.0...v1.0.0) - 2014-08-09
+
+### Commits
+
+- Make sure old and unstable nodes don't fail Travis [`27adca3`](https://github.com/ljharb/function-bind/commit/27adca34a4ab6ad67b6dfde43942a1b103ce4d75)
+- Fixing an issue when the bound function is called as a constructor in ES3. [`e20122d`](https://github.com/ljharb/function-bind/commit/e20122d267d92ce553859b280cbbea5d27c07731)
+- Adding `npm run coverage` [`a2e29c4`](https://github.com/ljharb/function-bind/commit/a2e29c4ecaef9e2f6cd1603e868c139073375502)
+- Updating tape [`b741168`](https://github.com/ljharb/function-bind/commit/b741168b12b235b1717ff696087645526b69213c)
+- Upgrading tape [`63631a0`](https://github.com/ljharb/function-bind/commit/63631a04c7fbe97cc2fa61829cc27246d6986f74)
+- Updating tape [`363cb46`](https://github.com/ljharb/function-bind/commit/363cb46dafb23cb3e347729a22f9448051d78464)
+
+## v0.2.0 - 2014-03-23
+
+### Commits
+
+- Updating test coverage to match es5-shim. [`aa94d44`](https://github.com/ljharb/function-bind/commit/aa94d44b8f9d7f69f10e060db7709aa7a694e5d4)
+- initial [`942ee07`](https://github.com/ljharb/function-bind/commit/942ee07e94e542d91798137bc4b80b926137e066)
+- Setting the bound function's length properly. [`079f46a`](https://github.com/ljharb/function-bind/commit/079f46a2d3515b7c0b308c2c13fceb641f97ca25)
+- Ensuring that some older browsers will throw when given a regex. [`36ac55b`](https://github.com/ljharb/function-bind/commit/36ac55b87f460d4330253c92870aa26fbfe8227f)
+- Removing npm scripts that don't have dependencies [`9d2be60`](https://github.com/ljharb/function-bind/commit/9d2be600002cb8bc8606f8f3585ad3e05868c750)
+- Updating tape [`297a4ac`](https://github.com/ljharb/function-bind/commit/297a4acc5464db381940aafb194d1c88f4e678f3)
+- Skipping length tests for now. [`d9891ea`](https://github.com/ljharb/function-bind/commit/d9891ea4d2aaffa69f408339cdd61ff740f70565)
+- don't take my tea [`dccd930`](https://github.com/ljharb/function-bind/commit/dccd930bfd60ea10cb178d28c97550c3bc8c1e07)
diff --git a/web/node_modules/function-bind/LICENSE b/web/node_modules/function-bind/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..62d6d237ff179b118746a64a34967f7ff4b5dff8
--- /dev/null
+++ b/web/node_modules/function-bind/LICENSE
@@ -0,0 +1,20 @@
+Copyright (c) 2013 Raynos.
+
+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/web/node_modules/function-bind/README.md b/web/node_modules/function-bind/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..814c20b5a9e3c97f41dde308939b358f9ed93931
--- /dev/null
+++ b/web/node_modules/function-bind/README.md
@@ -0,0 +1,46 @@
+# function-bind [![Version Badge][npm-version-svg]][package-url]
+
+[![github actions][actions-image]][actions-url]
+
+[![dependency status][deps-svg]][deps-url]
+[![dev dependency status][dev-deps-svg]][dev-deps-url]
+[![License][license-image]][license-url]
+[![Downloads][downloads-image]][downloads-url]
+
+[![npm badge][npm-badge-png]][package-url]
+
+Implementation of function.prototype.bind
+
+Old versions of phantomjs, Internet Explorer < 9, and node < 0.6 don't support `Function.prototype.bind`.
+
+## Example
+
+```js
+Function.prototype.bind = require("function-bind")
+```
+
+## Installation
+
+`npm install function-bind`
+
+## Contributors
+
+ - Raynos
+
+## MIT Licenced
+
+[package-url]: https://npmjs.org/package/function-bind
+[npm-version-svg]: https://versionbadg.es/Raynos/function-bind.svg
+[deps-svg]: https://david-dm.org/Raynos/function-bind.svg
+[deps-url]: https://david-dm.org/Raynos/function-bind
+[dev-deps-svg]: https://david-dm.org/Raynos/function-bind/dev-status.svg
+[dev-deps-url]: https://david-dm.org/Raynos/function-bind#info=devDependencies
+[npm-badge-png]: https://nodei.co/npm/function-bind.png?downloads=true&stars=true
+[license-image]: https://img.shields.io/npm/l/function-bind.svg
+[license-url]: LICENSE
+[downloads-image]: https://img.shields.io/npm/dm/function-bind.svg
+[downloads-url]: https://npm-stat.com/charts.html?package=function-bind
+[codecov-image]: https://codecov.io/gh/Raynos/function-bind/branch/main/graphs/badge.svg
+[codecov-url]: https://app.codecov.io/gh/Raynos/function-bind/
+[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/Raynos/function-bind
+[actions-url]: https://github.com/Raynos/function-bind/actions
diff --git a/web/node_modules/function-bind/implementation.js b/web/node_modules/function-bind/implementation.js
new file mode 100644
index 0000000000000000000000000000000000000000..fd4384cc0c34ce3e1e411bc8b0557680cf000eff
--- /dev/null
+++ b/web/node_modules/function-bind/implementation.js
@@ -0,0 +1,84 @@
+'use strict';
+
+/* eslint no-invalid-this: 1 */
+
+var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
+var toStr = Object.prototype.toString;
+var max = Math.max;
+var funcType = '[object Function]';
+
+var concatty = function concatty(a, b) {
+ var arr = [];
+
+ for (var i = 0; i < a.length; i += 1) {
+ arr[i] = a[i];
+ }
+ for (var j = 0; j < b.length; j += 1) {
+ arr[j + a.length] = b[j];
+ }
+
+ return arr;
+};
+
+var slicy = function slicy(arrLike, offset) {
+ var arr = [];
+ for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
+ arr[j] = arrLike[i];
+ }
+ return arr;
+};
+
+var joiny = function (arr, joiner) {
+ var str = '';
+ for (var i = 0; i < arr.length; i += 1) {
+ str += arr[i];
+ if (i + 1 < arr.length) {
+ str += joiner;
+ }
+ }
+ return str;
+};
+
+module.exports = function bind(that) {
+ var target = this;
+ if (typeof target !== 'function' || toStr.apply(target) !== funcType) {
+ throw new TypeError(ERROR_MESSAGE + target);
+ }
+ var args = slicy(arguments, 1);
+
+ var bound;
+ var binder = function () {
+ if (this instanceof bound) {
+ var result = target.apply(
+ this,
+ concatty(args, arguments)
+ );
+ if (Object(result) === result) {
+ return result;
+ }
+ return this;
+ }
+ return target.apply(
+ that,
+ concatty(args, arguments)
+ );
+
+ };
+
+ var boundLength = max(0, target.length - args.length);
+ var boundArgs = [];
+ for (var i = 0; i < boundLength; i++) {
+ boundArgs[i] = '$' + i;
+ }
+
+ bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);
+
+ if (target.prototype) {
+ var Empty = function Empty() {};
+ Empty.prototype = target.prototype;
+ bound.prototype = new Empty();
+ Empty.prototype = null;
+ }
+
+ return bound;
+};
diff --git a/web/node_modules/function-bind/index.js b/web/node_modules/function-bind/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..3bb6b9609889f8131b2d6732ff1606e01e1365b2
--- /dev/null
+++ b/web/node_modules/function-bind/index.js
@@ -0,0 +1,5 @@
+'use strict';
+
+var implementation = require('./implementation');
+
+module.exports = Function.prototype.bind || implementation;
diff --git a/web/node_modules/function-bind/package.json b/web/node_modules/function-bind/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..618596389779061eb7f6f34edc61add4a517ca4f
--- /dev/null
+++ b/web/node_modules/function-bind/package.json
@@ -0,0 +1,87 @@
+{
+ "name": "function-bind",
+ "version": "1.1.2",
+ "description": "Implementation of Function.prototype.bind",
+ "keywords": [
+ "function",
+ "bind",
+ "shim",
+ "es5"
+ ],
+ "author": "Raynos ",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/Raynos/function-bind.git"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ },
+ "main": "index",
+ "homepage": "https://github.com/Raynos/function-bind",
+ "contributors": [
+ {
+ "name": "Raynos"
+ },
+ {
+ "name": "Jordan Harband",
+ "url": "https://github.com/ljharb"
+ }
+ ],
+ "bugs": {
+ "url": "https://github.com/Raynos/function-bind/issues",
+ "email": "raynos2@gmail.com"
+ },
+ "devDependencies": {
+ "@ljharb/eslint-config": "^21.1.0",
+ "aud": "^2.0.3",
+ "auto-changelog": "^2.4.0",
+ "eslint": "=8.8.0",
+ "in-publish": "^2.0.1",
+ "npmignore": "^0.3.0",
+ "nyc": "^10.3.2",
+ "safe-publish-latest": "^2.0.0",
+ "tape": "^5.7.1"
+ },
+ "license": "MIT",
+ "scripts": {
+ "prepublishOnly": "safe-publish-latest",
+ "prepublish": "not-in-publish || npm run prepublishOnly",
+ "prepack": "npmignore --auto --commentLines=autogenerated",
+ "pretest": "npm run lint",
+ "test": "npm run tests-only",
+ "posttest": "aud --production",
+ "tests-only": "nyc tape 'test/**/*.js'",
+ "lint": "eslint --ext=js,mjs .",
+ "version": "auto-changelog && git add CHANGELOG.md",
+ "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
+ },
+ "testling": {
+ "files": "test/index.js",
+ "browsers": [
+ "ie/8..latest",
+ "firefox/16..latest",
+ "firefox/nightly",
+ "chrome/22..latest",
+ "chrome/canary",
+ "opera/12..latest",
+ "opera/next",
+ "safari/5.1..latest",
+ "ipad/6.0..latest",
+ "iphone/6.0..latest",
+ "android-browser/4.2..latest"
+ ]
+ },
+ "auto-changelog": {
+ "output": "CHANGELOG.md",
+ "template": "keepachangelog",
+ "unreleased": false,
+ "commitLimit": false,
+ "backfillLimit": false,
+ "hideCredit": true
+ },
+ "publishConfig": {
+ "ignore": [
+ ".github/workflows"
+ ]
+ }
+}
diff --git a/web/node_modules/function-bind/test/.eslintrc b/web/node_modules/function-bind/test/.eslintrc
new file mode 100644
index 0000000000000000000000000000000000000000..8a56d5b72fb008043cc69939648790ef482cdab8
--- /dev/null
+++ b/web/node_modules/function-bind/test/.eslintrc
@@ -0,0 +1,9 @@
+{
+ "rules": {
+ "array-bracket-newline": 0,
+ "array-element-newline": 0,
+ "max-statements-per-line": [2, { "max": 2 }],
+ "no-invalid-this": 0,
+ "no-magic-numbers": 0,
+ }
+}
diff --git a/web/node_modules/function-bind/test/index.js b/web/node_modules/function-bind/test/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..2edecce2f0fa5adcc88ebc609440221621048c05
--- /dev/null
+++ b/web/node_modules/function-bind/test/index.js
@@ -0,0 +1,252 @@
+// jscs:disable requireUseStrict
+
+var test = require('tape');
+
+var functionBind = require('../implementation');
+var getCurrentContext = function () { return this; };
+
+test('functionBind is a function', function (t) {
+ t.equal(typeof functionBind, 'function');
+ t.end();
+});
+
+test('non-functions', function (t) {
+ var nonFunctions = [true, false, [], {}, 42, 'foo', NaN, /a/g];
+ t.plan(nonFunctions.length);
+ for (var i = 0; i < nonFunctions.length; ++i) {
+ try { functionBind.call(nonFunctions[i]); } catch (ex) {
+ t.ok(ex instanceof TypeError, 'throws when given ' + String(nonFunctions[i]));
+ }
+ }
+ t.end();
+});
+
+test('without a context', function (t) {
+ t.test('binds properly', function (st) {
+ var args, context;
+ var namespace = {
+ func: functionBind.call(function () {
+ args = Array.prototype.slice.call(arguments);
+ context = this;
+ })
+ };
+ namespace.func(1, 2, 3);
+ st.deepEqual(args, [1, 2, 3]);
+ st.equal(context, getCurrentContext.call());
+ st.end();
+ });
+
+ t.test('binds properly, and still supplies bound arguments', function (st) {
+ var args, context;
+ var namespace = {
+ func: functionBind.call(function () {
+ args = Array.prototype.slice.call(arguments);
+ context = this;
+ }, undefined, 1, 2, 3)
+ };
+ namespace.func(4, 5, 6);
+ st.deepEqual(args, [1, 2, 3, 4, 5, 6]);
+ st.equal(context, getCurrentContext.call());
+ st.end();
+ });
+
+ t.test('returns properly', function (st) {
+ var args;
+ var namespace = {
+ func: functionBind.call(function () {
+ args = Array.prototype.slice.call(arguments);
+ return this;
+ }, null)
+ };
+ var context = namespace.func(1, 2, 3);
+ st.equal(context, getCurrentContext.call(), 'returned context is namespaced context');
+ st.deepEqual(args, [1, 2, 3], 'passed arguments are correct');
+ st.end();
+ });
+
+ t.test('returns properly with bound arguments', function (st) {
+ var args;
+ var namespace = {
+ func: functionBind.call(function () {
+ args = Array.prototype.slice.call(arguments);
+ return this;
+ }, null, 1, 2, 3)
+ };
+ var context = namespace.func(4, 5, 6);
+ st.equal(context, getCurrentContext.call(), 'returned context is namespaced context');
+ st.deepEqual(args, [1, 2, 3, 4, 5, 6], 'passed arguments are correct');
+ st.end();
+ });
+
+ t.test('called as a constructor', function (st) {
+ var thunkify = function (value) {
+ return function () { return value; };
+ };
+ st.test('returns object value', function (sst) {
+ var expectedReturnValue = [1, 2, 3];
+ var Constructor = functionBind.call(thunkify(expectedReturnValue), null);
+ var result = new Constructor();
+ sst.equal(result, expectedReturnValue);
+ sst.end();
+ });
+
+ st.test('does not return primitive value', function (sst) {
+ var Constructor = functionBind.call(thunkify(42), null);
+ var result = new Constructor();
+ sst.notEqual(result, 42);
+ sst.end();
+ });
+
+ st.test('object from bound constructor is instance of original and bound constructor', function (sst) {
+ var A = function (x) {
+ this.name = x || 'A';
+ };
+ var B = functionBind.call(A, null, 'B');
+
+ var result = new B();
+ sst.ok(result instanceof B, 'result is instance of bound constructor');
+ sst.ok(result instanceof A, 'result is instance of original constructor');
+ sst.end();
+ });
+
+ st.end();
+ });
+
+ t.end();
+});
+
+test('with a context', function (t) {
+ t.test('with no bound arguments', function (st) {
+ var args, context;
+ var boundContext = {};
+ var namespace = {
+ func: functionBind.call(function () {
+ args = Array.prototype.slice.call(arguments);
+ context = this;
+ }, boundContext)
+ };
+ namespace.func(1, 2, 3);
+ st.equal(context, boundContext, 'binds a context properly');
+ st.deepEqual(args, [1, 2, 3], 'supplies passed arguments');
+ st.end();
+ });
+
+ t.test('with bound arguments', function (st) {
+ var args, context;
+ var boundContext = {};
+ var namespace = {
+ func: functionBind.call(function () {
+ args = Array.prototype.slice.call(arguments);
+ context = this;
+ }, boundContext, 1, 2, 3)
+ };
+ namespace.func(4, 5, 6);
+ st.equal(context, boundContext, 'binds a context properly');
+ st.deepEqual(args, [1, 2, 3, 4, 5, 6], 'supplies bound and passed arguments');
+ st.end();
+ });
+
+ t.test('returns properly', function (st) {
+ var boundContext = {};
+ var args;
+ var namespace = {
+ func: functionBind.call(function () {
+ args = Array.prototype.slice.call(arguments);
+ return this;
+ }, boundContext)
+ };
+ var context = namespace.func(1, 2, 3);
+ st.equal(context, boundContext, 'returned context is bound context');
+ st.notEqual(context, getCurrentContext.call(), 'returned context is not lexical context');
+ st.deepEqual(args, [1, 2, 3], 'passed arguments are correct');
+ st.end();
+ });
+
+ t.test('returns properly with bound arguments', function (st) {
+ var boundContext = {};
+ var args;
+ var namespace = {
+ func: functionBind.call(function () {
+ args = Array.prototype.slice.call(arguments);
+ return this;
+ }, boundContext, 1, 2, 3)
+ };
+ var context = namespace.func(4, 5, 6);
+ st.equal(context, boundContext, 'returned context is bound context');
+ st.notEqual(context, getCurrentContext.call(), 'returned context is not lexical context');
+ st.deepEqual(args, [1, 2, 3, 4, 5, 6], 'passed arguments are correct');
+ st.end();
+ });
+
+ t.test('passes the correct arguments when called as a constructor', function (st) {
+ var expected = { name: 'Correct' };
+ var namespace = {
+ Func: functionBind.call(function (arg) {
+ return arg;
+ }, { name: 'Incorrect' })
+ };
+ var returned = new namespace.Func(expected);
+ st.equal(returned, expected, 'returns the right arg when called as a constructor');
+ st.end();
+ });
+
+ t.test('has the new instance\'s context when called as a constructor', function (st) {
+ var actualContext;
+ var expectedContext = { foo: 'bar' };
+ var namespace = {
+ Func: functionBind.call(function () {
+ actualContext = this;
+ }, expectedContext)
+ };
+ var result = new namespace.Func();
+ st.equal(result instanceof namespace.Func, true);
+ st.notEqual(actualContext, expectedContext);
+ st.end();
+ });
+
+ t.end();
+});
+
+test('bound function length', function (t) {
+ t.test('sets a correct length without thisArg', function (st) {
+ var subject = functionBind.call(function (a, b, c) { return a + b + c; });
+ st.equal(subject.length, 3);
+ st.equal(subject(1, 2, 3), 6);
+ st.end();
+ });
+
+ t.test('sets a correct length with thisArg', function (st) {
+ var subject = functionBind.call(function (a, b, c) { return a + b + c; }, {});
+ st.equal(subject.length, 3);
+ st.equal(subject(1, 2, 3), 6);
+ st.end();
+ });
+
+ t.test('sets a correct length without thisArg and first argument', function (st) {
+ var subject = functionBind.call(function (a, b, c) { return a + b + c; }, undefined, 1);
+ st.equal(subject.length, 2);
+ st.equal(subject(2, 3), 6);
+ st.end();
+ });
+
+ t.test('sets a correct length with thisArg and first argument', function (st) {
+ var subject = functionBind.call(function (a, b, c) { return a + b + c; }, {}, 1);
+ st.equal(subject.length, 2);
+ st.equal(subject(2, 3), 6);
+ st.end();
+ });
+
+ t.test('sets a correct length without thisArg and too many arguments', function (st) {
+ var subject = functionBind.call(function (a, b, c) { return a + b + c; }, undefined, 1, 2, 3, 4);
+ st.equal(subject.length, 0);
+ st.equal(subject(), 6);
+ st.end();
+ });
+
+ t.test('sets a correct length with thisArg and too many arguments', function (st) {
+ var subject = functionBind.call(function (a, b, c) { return a + b + c; }, {}, 1, 2, 3, 4);
+ st.equal(subject.length, 0);
+ st.equal(subject(), 6);
+ st.end();
+ });
+});
diff --git a/web/node_modules/glob-parent/LICENSE b/web/node_modules/glob-parent/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..d701b08324fac71d4da754bbceee539b402b4623
--- /dev/null
+++ b/web/node_modules/glob-parent/LICENSE
@@ -0,0 +1,15 @@
+The ISC License
+
+Copyright (c) 2015, 2019 Elan Shanker, 2021 Blaine Bublitz , Eric Schoffstall and other contributors
+
+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/web/node_modules/glob-parent/README.md b/web/node_modules/glob-parent/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..6ae18a1a089e55a3c97e0c719e6ef9c7ffea982e
--- /dev/null
+++ b/web/node_modules/glob-parent/README.md
@@ -0,0 +1,134 @@
+
+
+
+
+
+
+# glob-parent
+
+[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Coveralls Status][coveralls-image]][coveralls-url]
+
+Extract the non-magic parent path from a glob string.
+
+## Usage
+
+```js
+var globParent = require('glob-parent');
+
+globParent('path/to/*.js'); // 'path/to'
+globParent('/root/path/to/*.js'); // '/root/path/to'
+globParent('/*.js'); // '/'
+globParent('*.js'); // '.'
+globParent('**/*.js'); // '.'
+globParent('path/{to,from}'); // 'path'
+globParent('path/!(to|from)'); // 'path'
+globParent('path/?(to|from)'); // 'path'
+globParent('path/+(to|from)'); // 'path'
+globParent('path/*(to|from)'); // 'path'
+globParent('path/@(to|from)'); // 'path'
+globParent('path/**/*'); // 'path'
+
+// if provided a non-glob path, returns the nearest dir
+globParent('path/foo/bar.js'); // 'path/foo'
+globParent('path/foo/'); // 'path/foo'
+globParent('path/foo'); // 'path' (see issue #3 for details)
+```
+
+## API
+
+### `globParent(maybeGlobString, [options])`
+
+Takes a string and returns the part of the path before the glob begins. Be aware of Escaping rules and Limitations below.
+
+#### options
+
+```js
+{
+ // Disables the automatic conversion of slashes for Windows
+ flipBackslashes: true;
+}
+```
+
+## Escaping
+
+The following characters have special significance in glob patterns and must be escaped if you want them to be treated as regular path characters:
+
+- `?` (question mark) unless used as a path segment alone
+- `*` (asterisk)
+- `|` (pipe)
+- `(` (opening parenthesis)
+- `)` (closing parenthesis)
+- `{` (opening curly brace)
+- `}` (closing curly brace)
+- `[` (opening bracket)
+- `]` (closing bracket)
+
+**Example**
+
+```js
+globParent('foo/[bar]/'); // 'foo'
+globParent('foo/\\[bar]/'); // 'foo/[bar]'
+```
+
+## Limitations
+
+### Braces & Brackets
+
+This library attempts a quick and imperfect method of determining which path
+parts have glob magic without fully parsing/lexing the pattern. There are some
+advanced use cases that can trip it up, such as nested braces where the outer
+pair is escaped and the inner one contains a path separator. If you find
+yourself in the unlikely circumstance of being affected by this or need to
+ensure higher-fidelity glob handling in your library, it is recommended that you
+pre-process your input with [expand-braces] and/or [expand-brackets].
+
+### Windows
+
+Backslashes are not valid path separators for globs. If a path with backslashes
+is provided anyway, for simple cases, glob-parent will replace the path
+separator for you and return the non-glob parent path (now with
+forward-slashes, which are still valid as Windows path separators).
+
+This cannot be used in conjunction with escape characters.
+
+```js
+// BAD
+globParent('C:\\Program Files \\(x86\\)\\*.ext'); // 'C:/Program Files /(x86/)'
+
+// GOOD
+globParent('C:/Program Files\\(x86\\)/*.ext'); // 'C:/Program Files (x86)'
+```
+
+If you are using escape characters for a pattern without path parts (i.e.
+relative to `cwd`), prefix with `./` to avoid confusing glob-parent.
+
+```js
+// BAD
+globParent('foo \\[bar]'); // 'foo '
+globParent('foo \\[bar]*'); // 'foo '
+
+// GOOD
+globParent('./foo \\[bar]'); // 'foo [bar]'
+globParent('./foo \\[bar]*'); // '.'
+```
+
+## License
+
+ISC
+
+
+[downloads-image]: https://img.shields.io/npm/dm/glob-parent.svg?style=flat-square
+[npm-url]: https://www.npmjs.com/package/glob-parent
+[npm-image]: https://img.shields.io/npm/v/glob-parent.svg?style=flat-square
+
+[ci-url]: https://github.com/gulpjs/glob-parent/actions?query=workflow:dev
+[ci-image]: https://img.shields.io/github/workflow/status/gulpjs/glob-parent/dev?style=flat-square
+
+[coveralls-url]: https://coveralls.io/r/gulpjs/glob-parent
+[coveralls-image]: https://img.shields.io/coveralls/gulpjs/glob-parent/master.svg?style=flat-square
+
+
+
+[expand-braces]: https://github.com/jonschlinkert/expand-braces
+[expand-brackets]: https://github.com/jonschlinkert/expand-brackets
+
diff --git a/web/node_modules/glob-parent/index.js b/web/node_modules/glob-parent/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..09dde64ba7c12cbfa38474af10db668d6bfd5a70
--- /dev/null
+++ b/web/node_modules/glob-parent/index.js
@@ -0,0 +1,75 @@
+'use strict';
+
+var isGlob = require('is-glob');
+var pathPosixDirname = require('path').posix.dirname;
+var isWin32 = require('os').platform() === 'win32';
+
+var slash = '/';
+var backslash = /\\/g;
+var escaped = /\\([!*?|[\](){}])/g;
+
+/**
+ * @param {string} str
+ * @param {Object} opts
+ * @param {boolean} [opts.flipBackslashes=true]
+ */
+module.exports = function globParent(str, opts) {
+ var options = Object.assign({ flipBackslashes: true }, opts);
+
+ // flip windows path separators
+ if (options.flipBackslashes && isWin32 && str.indexOf(slash) < 0) {
+ str = str.replace(backslash, slash);
+ }
+
+ // special case for strings ending in enclosure containing path separator
+ if (isEnclosure(str)) {
+ str += slash;
+ }
+
+ // preserves full path in case of trailing path separator
+ str += 'a';
+
+ // remove path parts that are globby
+ do {
+ str = pathPosixDirname(str);
+ } while (isGlobby(str));
+
+ // remove escape chars and return result
+ return str.replace(escaped, '$1');
+};
+
+function isEnclosure(str) {
+ var lastChar = str.slice(-1);
+
+ var enclosureStart;
+ switch (lastChar) {
+ case '}':
+ enclosureStart = '{';
+ break;
+ case ']':
+ enclosureStart = '[';
+ break;
+ default:
+ return false;
+ }
+
+ var foundIndex = str.indexOf(enclosureStart);
+ if (foundIndex < 0) {
+ return false;
+ }
+
+ return str.slice(foundIndex + 1, -1).includes(slash);
+}
+
+function isGlobby(str) {
+ if (/\([^()]+$/.test(str)) {
+ return true;
+ }
+ if (str[0] === '{' || str[0] === '[') {
+ return true;
+ }
+ if (/[^\\][{[]/.test(str)) {
+ return true;
+ }
+ return isGlob(str);
+}
diff --git a/web/node_modules/glob-parent/package.json b/web/node_modules/glob-parent/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..baeab4217a04fce13604502b17d4fd8cde540b1c
--- /dev/null
+++ b/web/node_modules/glob-parent/package.json
@@ -0,0 +1,54 @@
+{
+ "name": "glob-parent",
+ "version": "6.0.2",
+ "description": "Extract the non-magic parent path from a glob string.",
+ "author": "Gulp Team (https://gulpjs.com/)",
+ "contributors": [
+ "Elan Shanker (https://github.com/es128)",
+ "Blaine Bublitz "
+ ],
+ "repository": "gulpjs/glob-parent",
+ "license": "ISC",
+ "engines": {
+ "node": ">=10.13.0"
+ },
+ "main": "index.js",
+ "files": [
+ "LICENSE",
+ "index.js"
+ ],
+ "scripts": {
+ "lint": "eslint .",
+ "pretest": "npm run lint",
+ "test": "nyc mocha --async-only"
+ },
+ "dependencies": {
+ "is-glob": "^4.0.3"
+ },
+ "devDependencies": {
+ "eslint": "^7.0.0",
+ "eslint-config-gulp": "^5.0.0",
+ "expect": "^26.0.1",
+ "mocha": "^7.1.2",
+ "nyc": "^15.0.1"
+ },
+ "nyc": {
+ "reporter": [
+ "lcov",
+ "text-summary"
+ ]
+ },
+ "prettier": {
+ "singleQuote": true
+ },
+ "keywords": [
+ "glob",
+ "parent",
+ "strip",
+ "path",
+ "dirname",
+ "directory",
+ "base",
+ "wildcard"
+ ]
+}
diff --git a/web/node_modules/graceful-fs/LICENSE b/web/node_modules/graceful-fs/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..e906a25acfb5ee2f955bd39101a207e3458463bd
--- /dev/null
+++ b/web/node_modules/graceful-fs/LICENSE
@@ -0,0 +1,15 @@
+The ISC License
+
+Copyright (c) 2011-2022 Isaac Z. Schlueter, Ben Noordhuis, and Contributors
+
+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/web/node_modules/graceful-fs/README.md b/web/node_modules/graceful-fs/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..82d6e4daf0cdb8543cca8ce644e6b6dfa61b86f8
--- /dev/null
+++ b/web/node_modules/graceful-fs/README.md
@@ -0,0 +1,143 @@
+# graceful-fs
+
+graceful-fs functions as a drop-in replacement for the fs module,
+making various improvements.
+
+The improvements are meant to normalize behavior across different
+platforms and environments, and to make filesystem access more
+resilient to errors.
+
+## Improvements over [fs module](https://nodejs.org/api/fs.html)
+
+* Queues up `open` and `readdir` calls, and retries them once
+ something closes if there is an EMFILE error from too many file
+ descriptors.
+* fixes `lchmod` for Node versions prior to 0.6.2.
+* implements `fs.lutimes` if possible. Otherwise it becomes a noop.
+* ignores `EINVAL` and `EPERM` errors in `chown`, `fchown` or
+ `lchown` if the user isn't root.
+* makes `lchmod` and `lchown` become noops, if not available.
+* retries reading a file if `read` results in EAGAIN error.
+
+On Windows, it retries renaming a file for up to one second if `EACCESS`
+or `EPERM` error occurs, likely because antivirus software has locked
+the directory.
+
+## USAGE
+
+```javascript
+// use just like fs
+var fs = require('graceful-fs')
+
+// now go and do stuff with it...
+fs.readFile('some-file-or-whatever', (err, data) => {
+ // Do stuff here.
+})
+```
+
+## Sync methods
+
+This module cannot intercept or handle `EMFILE` or `ENFILE` errors from sync
+methods. If you use sync methods which open file descriptors then you are
+responsible for dealing with any errors.
+
+This is a known limitation, not a bug.
+
+## Global Patching
+
+If you want to patch the global fs module (or any other fs-like
+module) you can do this:
+
+```javascript
+// Make sure to read the caveat below.
+var realFs = require('fs')
+var gracefulFs = require('graceful-fs')
+gracefulFs.gracefulify(realFs)
+```
+
+This should only ever be done at the top-level application layer, in
+order to delay on EMFILE errors from any fs-using dependencies. You
+should **not** do this in a library, because it can cause unexpected
+delays in other parts of the program.
+
+## Changes
+
+This module is fairly stable at this point, and used by a lot of
+things. That being said, because it implements a subtle behavior
+change in a core part of the node API, even modest changes can be
+extremely breaking, and the versioning is thus biased towards
+bumping the major when in doubt.
+
+The main change between major versions has been switching between
+providing a fully-patched `fs` module vs monkey-patching the node core
+builtin, and the approach by which a non-monkey-patched `fs` was
+created.
+
+The goal is to trade `EMFILE` errors for slower fs operations. So, if
+you try to open a zillion files, rather than crashing, `open`
+operations will be queued up and wait for something else to `close`.
+
+There are advantages to each approach. Monkey-patching the fs means
+that no `EMFILE` errors can possibly occur anywhere in your
+application, because everything is using the same core `fs` module,
+which is patched. However, it can also obviously cause undesirable
+side-effects, especially if the module is loaded multiple times.
+
+Implementing a separate-but-identical patched `fs` module is more
+surgical (and doesn't run the risk of patching multiple times), but
+also imposes the challenge of keeping in sync with the core module.
+
+The current approach loads the `fs` module, and then creates a
+lookalike object that has all the same methods, except a few that are
+patched. It is safe to use in all versions of Node from 0.8 through
+7.0.
+
+### v4
+
+* Do not monkey-patch the fs module. This module may now be used as a
+ drop-in dep, and users can opt into monkey-patching the fs builtin
+ if their app requires it.
+
+### v3
+
+* Monkey-patch fs, because the eval approach no longer works on recent
+ node.
+* fixed possible type-error throw if rename fails on windows
+* verify that we *never* get EMFILE errors
+* Ignore ENOSYS from chmod/chown
+* clarify that graceful-fs must be used as a drop-in
+
+### v2.1.0
+
+* Use eval rather than monkey-patching fs.
+* readdir: Always sort the results
+* win32: requeue a file if error has an OK status
+
+### v2.0
+
+* A return to monkey patching
+* wrap process.cwd
+
+### v1.1
+
+* wrap readFile
+* Wrap fs.writeFile.
+* readdir protection
+* Don't clobber the fs builtin
+* Handle fs.read EAGAIN errors by trying again
+* Expose the curOpen counter
+* No-op lchown/lchmod if not implemented
+* fs.rename patch only for win32
+* Patch fs.rename to handle AV software on Windows
+* Close #4 Chown should not fail on einval or eperm if non-root
+* Fix isaacs/fstream#1 Only wrap fs one time
+* Fix #3 Start at 1024 max files, then back off on EMFILE
+* lutimes that doens't blow up on Linux
+* A full on-rewrite using a queue instead of just swallowing the EMFILE error
+* Wrap Read/Write streams as well
+
+### 1.0
+
+* Update engines for node 0.6
+* Be lstat-graceful on Windows
+* first
diff --git a/web/node_modules/graceful-fs/clone.js b/web/node_modules/graceful-fs/clone.js
new file mode 100644
index 0000000000000000000000000000000000000000..dff3cc8c504b4cf14054b5d7bbc64b1696bc9fec
--- /dev/null
+++ b/web/node_modules/graceful-fs/clone.js
@@ -0,0 +1,23 @@
+'use strict'
+
+module.exports = clone
+
+var getPrototypeOf = Object.getPrototypeOf || function (obj) {
+ return obj.__proto__
+}
+
+function clone (obj) {
+ if (obj === null || typeof obj !== 'object')
+ return obj
+
+ if (obj instanceof Object)
+ var copy = { __proto__: getPrototypeOf(obj) }
+ else
+ var copy = Object.create(null)
+
+ Object.getOwnPropertyNames(obj).forEach(function (key) {
+ Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key))
+ })
+
+ return copy
+}
diff --git a/web/node_modules/graceful-fs/graceful-fs.js b/web/node_modules/graceful-fs/graceful-fs.js
new file mode 100644
index 0000000000000000000000000000000000000000..8d5b89e4fa7fdbaebf58556cc044d2a912bce5de
--- /dev/null
+++ b/web/node_modules/graceful-fs/graceful-fs.js
@@ -0,0 +1,448 @@
+var fs = require('fs')
+var polyfills = require('./polyfills.js')
+var legacy = require('./legacy-streams.js')
+var clone = require('./clone.js')
+
+var util = require('util')
+
+/* istanbul ignore next - node 0.x polyfill */
+var gracefulQueue
+var previousSymbol
+
+/* istanbul ignore else - node 0.x polyfill */
+if (typeof Symbol === 'function' && typeof Symbol.for === 'function') {
+ gracefulQueue = Symbol.for('graceful-fs.queue')
+ // This is used in testing by future versions
+ previousSymbol = Symbol.for('graceful-fs.previous')
+} else {
+ gracefulQueue = '___graceful-fs.queue'
+ previousSymbol = '___graceful-fs.previous'
+}
+
+function noop () {}
+
+function publishQueue(context, queue) {
+ Object.defineProperty(context, gracefulQueue, {
+ get: function() {
+ return queue
+ }
+ })
+}
+
+var debug = noop
+if (util.debuglog)
+ debug = util.debuglog('gfs4')
+else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || ''))
+ debug = function() {
+ var m = util.format.apply(util, arguments)
+ m = 'GFS4: ' + m.split(/\n/).join('\nGFS4: ')
+ console.error(m)
+ }
+
+// Once time initialization
+if (!fs[gracefulQueue]) {
+ // This queue can be shared by multiple loaded instances
+ var queue = global[gracefulQueue] || []
+ publishQueue(fs, queue)
+
+ // Patch fs.close/closeSync to shared queue version, because we need
+ // to retry() whenever a close happens *anywhere* in the program.
+ // This is essential when multiple graceful-fs instances are
+ // in play at the same time.
+ fs.close = (function (fs$close) {
+ function close (fd, cb) {
+ return fs$close.call(fs, fd, function (err) {
+ // This function uses the graceful-fs shared queue
+ if (!err) {
+ resetQueue()
+ }
+
+ if (typeof cb === 'function')
+ cb.apply(this, arguments)
+ })
+ }
+
+ Object.defineProperty(close, previousSymbol, {
+ value: fs$close
+ })
+ return close
+ })(fs.close)
+
+ fs.closeSync = (function (fs$closeSync) {
+ function closeSync (fd) {
+ // This function uses the graceful-fs shared queue
+ fs$closeSync.apply(fs, arguments)
+ resetQueue()
+ }
+
+ Object.defineProperty(closeSync, previousSymbol, {
+ value: fs$closeSync
+ })
+ return closeSync
+ })(fs.closeSync)
+
+ if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || '')) {
+ process.on('exit', function() {
+ debug(fs[gracefulQueue])
+ require('assert').equal(fs[gracefulQueue].length, 0)
+ })
+ }
+}
+
+if (!global[gracefulQueue]) {
+ publishQueue(global, fs[gracefulQueue]);
+}
+
+module.exports = patch(clone(fs))
+if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs.__patched) {
+ module.exports = patch(fs)
+ fs.__patched = true;
+}
+
+function patch (fs) {
+ // Everything that references the open() function needs to be in here
+ polyfills(fs)
+ fs.gracefulify = patch
+
+ fs.createReadStream = createReadStream
+ fs.createWriteStream = createWriteStream
+ var fs$readFile = fs.readFile
+ fs.readFile = readFile
+ function readFile (path, options, cb) {
+ if (typeof options === 'function')
+ cb = options, options = null
+
+ return go$readFile(path, options, cb)
+
+ function go$readFile (path, options, cb, startTime) {
+ return fs$readFile(path, options, function (err) {
+ if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
+ enqueue([go$readFile, [path, options, cb], err, startTime || Date.now(), Date.now()])
+ else {
+ if (typeof cb === 'function')
+ cb.apply(this, arguments)
+ }
+ })
+ }
+ }
+
+ var fs$writeFile = fs.writeFile
+ fs.writeFile = writeFile
+ function writeFile (path, data, options, cb) {
+ if (typeof options === 'function')
+ cb = options, options = null
+
+ return go$writeFile(path, data, options, cb)
+
+ function go$writeFile (path, data, options, cb, startTime) {
+ return fs$writeFile(path, data, options, function (err) {
+ if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
+ enqueue([go$writeFile, [path, data, options, cb], err, startTime || Date.now(), Date.now()])
+ else {
+ if (typeof cb === 'function')
+ cb.apply(this, arguments)
+ }
+ })
+ }
+ }
+
+ var fs$appendFile = fs.appendFile
+ if (fs$appendFile)
+ fs.appendFile = appendFile
+ function appendFile (path, data, options, cb) {
+ if (typeof options === 'function')
+ cb = options, options = null
+
+ return go$appendFile(path, data, options, cb)
+
+ function go$appendFile (path, data, options, cb, startTime) {
+ return fs$appendFile(path, data, options, function (err) {
+ if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
+ enqueue([go$appendFile, [path, data, options, cb], err, startTime || Date.now(), Date.now()])
+ else {
+ if (typeof cb === 'function')
+ cb.apply(this, arguments)
+ }
+ })
+ }
+ }
+
+ var fs$copyFile = fs.copyFile
+ if (fs$copyFile)
+ fs.copyFile = copyFile
+ function copyFile (src, dest, flags, cb) {
+ if (typeof flags === 'function') {
+ cb = flags
+ flags = 0
+ }
+ return go$copyFile(src, dest, flags, cb)
+
+ function go$copyFile (src, dest, flags, cb, startTime) {
+ return fs$copyFile(src, dest, flags, function (err) {
+ if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
+ enqueue([go$copyFile, [src, dest, flags, cb], err, startTime || Date.now(), Date.now()])
+ else {
+ if (typeof cb === 'function')
+ cb.apply(this, arguments)
+ }
+ })
+ }
+ }
+
+ var fs$readdir = fs.readdir
+ fs.readdir = readdir
+ var noReaddirOptionVersions = /^v[0-5]\./
+ function readdir (path, options, cb) {
+ if (typeof options === 'function')
+ cb = options, options = null
+
+ var go$readdir = noReaddirOptionVersions.test(process.version)
+ ? function go$readdir (path, options, cb, startTime) {
+ return fs$readdir(path, fs$readdirCallback(
+ path, options, cb, startTime
+ ))
+ }
+ : function go$readdir (path, options, cb, startTime) {
+ return fs$readdir(path, options, fs$readdirCallback(
+ path, options, cb, startTime
+ ))
+ }
+
+ return go$readdir(path, options, cb)
+
+ function fs$readdirCallback (path, options, cb, startTime) {
+ return function (err, files) {
+ if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
+ enqueue([
+ go$readdir,
+ [path, options, cb],
+ err,
+ startTime || Date.now(),
+ Date.now()
+ ])
+ else {
+ if (files && files.sort)
+ files.sort()
+
+ if (typeof cb === 'function')
+ cb.call(this, err, files)
+ }
+ }
+ }
+ }
+
+ if (process.version.substr(0, 4) === 'v0.8') {
+ var legStreams = legacy(fs)
+ ReadStream = legStreams.ReadStream
+ WriteStream = legStreams.WriteStream
+ }
+
+ var fs$ReadStream = fs.ReadStream
+ if (fs$ReadStream) {
+ ReadStream.prototype = Object.create(fs$ReadStream.prototype)
+ ReadStream.prototype.open = ReadStream$open
+ }
+
+ var fs$WriteStream = fs.WriteStream
+ if (fs$WriteStream) {
+ WriteStream.prototype = Object.create(fs$WriteStream.prototype)
+ WriteStream.prototype.open = WriteStream$open
+ }
+
+ Object.defineProperty(fs, 'ReadStream', {
+ get: function () {
+ return ReadStream
+ },
+ set: function (val) {
+ ReadStream = val
+ },
+ enumerable: true,
+ configurable: true
+ })
+ Object.defineProperty(fs, 'WriteStream', {
+ get: function () {
+ return WriteStream
+ },
+ set: function (val) {
+ WriteStream = val
+ },
+ enumerable: true,
+ configurable: true
+ })
+
+ // legacy names
+ var FileReadStream = ReadStream
+ Object.defineProperty(fs, 'FileReadStream', {
+ get: function () {
+ return FileReadStream
+ },
+ set: function (val) {
+ FileReadStream = val
+ },
+ enumerable: true,
+ configurable: true
+ })
+ var FileWriteStream = WriteStream
+ Object.defineProperty(fs, 'FileWriteStream', {
+ get: function () {
+ return FileWriteStream
+ },
+ set: function (val) {
+ FileWriteStream = val
+ },
+ enumerable: true,
+ configurable: true
+ })
+
+ function ReadStream (path, options) {
+ if (this instanceof ReadStream)
+ return fs$ReadStream.apply(this, arguments), this
+ else
+ return ReadStream.apply(Object.create(ReadStream.prototype), arguments)
+ }
+
+ function ReadStream$open () {
+ var that = this
+ open(that.path, that.flags, that.mode, function (err, fd) {
+ if (err) {
+ if (that.autoClose)
+ that.destroy()
+
+ that.emit('error', err)
+ } else {
+ that.fd = fd
+ that.emit('open', fd)
+ that.read()
+ }
+ })
+ }
+
+ function WriteStream (path, options) {
+ if (this instanceof WriteStream)
+ return fs$WriteStream.apply(this, arguments), this
+ else
+ return WriteStream.apply(Object.create(WriteStream.prototype), arguments)
+ }
+
+ function WriteStream$open () {
+ var that = this
+ open(that.path, that.flags, that.mode, function (err, fd) {
+ if (err) {
+ that.destroy()
+ that.emit('error', err)
+ } else {
+ that.fd = fd
+ that.emit('open', fd)
+ }
+ })
+ }
+
+ function createReadStream (path, options) {
+ return new fs.ReadStream(path, options)
+ }
+
+ function createWriteStream (path, options) {
+ return new fs.WriteStream(path, options)
+ }
+
+ var fs$open = fs.open
+ fs.open = open
+ function open (path, flags, mode, cb) {
+ if (typeof mode === 'function')
+ cb = mode, mode = null
+
+ return go$open(path, flags, mode, cb)
+
+ function go$open (path, flags, mode, cb, startTime) {
+ return fs$open(path, flags, mode, function (err, fd) {
+ if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
+ enqueue([go$open, [path, flags, mode, cb], err, startTime || Date.now(), Date.now()])
+ else {
+ if (typeof cb === 'function')
+ cb.apply(this, arguments)
+ }
+ })
+ }
+ }
+
+ return fs
+}
+
+function enqueue (elem) {
+ debug('ENQUEUE', elem[0].name, elem[1])
+ fs[gracefulQueue].push(elem)
+ retry()
+}
+
+// keep track of the timeout between retry() calls
+var retryTimer
+
+// reset the startTime and lastTime to now
+// this resets the start of the 60 second overall timeout as well as the
+// delay between attempts so that we'll retry these jobs sooner
+function resetQueue () {
+ var now = Date.now()
+ for (var i = 0; i < fs[gracefulQueue].length; ++i) {
+ // entries that are only a length of 2 are from an older version, don't
+ // bother modifying those since they'll be retried anyway.
+ if (fs[gracefulQueue][i].length > 2) {
+ fs[gracefulQueue][i][3] = now // startTime
+ fs[gracefulQueue][i][4] = now // lastTime
+ }
+ }
+ // call retry to make sure we're actively processing the queue
+ retry()
+}
+
+function retry () {
+ // clear the timer and remove it to help prevent unintended concurrency
+ clearTimeout(retryTimer)
+ retryTimer = undefined
+
+ if (fs[gracefulQueue].length === 0)
+ return
+
+ var elem = fs[gracefulQueue].shift()
+ var fn = elem[0]
+ var args = elem[1]
+ // these items may be unset if they were added by an older graceful-fs
+ var err = elem[2]
+ var startTime = elem[3]
+ var lastTime = elem[4]
+
+ // if we don't have a startTime we have no way of knowing if we've waited
+ // long enough, so go ahead and retry this item now
+ if (startTime === undefined) {
+ debug('RETRY', fn.name, args)
+ fn.apply(null, args)
+ } else if (Date.now() - startTime >= 60000) {
+ // it's been more than 60 seconds total, bail now
+ debug('TIMEOUT', fn.name, args)
+ var cb = args.pop()
+ if (typeof cb === 'function')
+ cb.call(null, err)
+ } else {
+ // the amount of time between the last attempt and right now
+ var sinceAttempt = Date.now() - lastTime
+ // the amount of time between when we first tried, and when we last tried
+ // rounded up to at least 1
+ var sinceStart = Math.max(lastTime - startTime, 1)
+ // backoff. wait longer than the total time we've been retrying, but only
+ // up to a maximum of 100ms
+ var desiredDelay = Math.min(sinceStart * 1.2, 100)
+ // it's been long enough since the last retry, do it again
+ if (sinceAttempt >= desiredDelay) {
+ debug('RETRY', fn.name, args)
+ fn.apply(null, args.concat([startTime]))
+ } else {
+ // if we can't do this job yet, push it to the end of the queue
+ // and let the next iteration check again
+ fs[gracefulQueue].push(elem)
+ }
+ }
+
+ // schedule our next run if one isn't already scheduled
+ if (retryTimer === undefined) {
+ retryTimer = setTimeout(retry, 0)
+ }
+}
diff --git a/web/node_modules/graceful-fs/legacy-streams.js b/web/node_modules/graceful-fs/legacy-streams.js
new file mode 100644
index 0000000000000000000000000000000000000000..d617b50fc0832dcce4ba05f7a7200938438ead90
--- /dev/null
+++ b/web/node_modules/graceful-fs/legacy-streams.js
@@ -0,0 +1,118 @@
+var Stream = require('stream').Stream
+
+module.exports = legacy
+
+function legacy (fs) {
+ return {
+ ReadStream: ReadStream,
+ WriteStream: WriteStream
+ }
+
+ function ReadStream (path, options) {
+ if (!(this instanceof ReadStream)) return new ReadStream(path, options);
+
+ Stream.call(this);
+
+ var self = this;
+
+ this.path = path;
+ this.fd = null;
+ this.readable = true;
+ this.paused = false;
+
+ this.flags = 'r';
+ this.mode = 438; /*=0666*/
+ this.bufferSize = 64 * 1024;
+
+ options = options || {};
+
+ // Mixin options into this
+ var keys = Object.keys(options);
+ for (var index = 0, length = keys.length; index < length; index++) {
+ var key = keys[index];
+ this[key] = options[key];
+ }
+
+ if (this.encoding) this.setEncoding(this.encoding);
+
+ if (this.start !== undefined) {
+ if ('number' !== typeof this.start) {
+ throw TypeError('start must be a Number');
+ }
+ if (this.end === undefined) {
+ this.end = Infinity;
+ } else if ('number' !== typeof this.end) {
+ throw TypeError('end must be a Number');
+ }
+
+ if (this.start > this.end) {
+ throw new Error('start must be <= end');
+ }
+
+ this.pos = this.start;
+ }
+
+ if (this.fd !== null) {
+ process.nextTick(function() {
+ self._read();
+ });
+ return;
+ }
+
+ fs.open(this.path, this.flags, this.mode, function (err, fd) {
+ if (err) {
+ self.emit('error', err);
+ self.readable = false;
+ return;
+ }
+
+ self.fd = fd;
+ self.emit('open', fd);
+ self._read();
+ })
+ }
+
+ function WriteStream (path, options) {
+ if (!(this instanceof WriteStream)) return new WriteStream(path, options);
+
+ Stream.call(this);
+
+ this.path = path;
+ this.fd = null;
+ this.writable = true;
+
+ this.flags = 'w';
+ this.encoding = 'binary';
+ this.mode = 438; /*=0666*/
+ this.bytesWritten = 0;
+
+ options = options || {};
+
+ // Mixin options into this
+ var keys = Object.keys(options);
+ for (var index = 0, length = keys.length; index < length; index++) {
+ var key = keys[index];
+ this[key] = options[key];
+ }
+
+ if (this.start !== undefined) {
+ if ('number' !== typeof this.start) {
+ throw TypeError('start must be a Number');
+ }
+ if (this.start < 0) {
+ throw new Error('start must be >= zero');
+ }
+
+ this.pos = this.start;
+ }
+
+ this.busy = false;
+ this._queue = [];
+
+ if (this.fd === null) {
+ this._open = fs.open;
+ this._queue.push([this._open, this.path, this.flags, this.mode, undefined]);
+ this.flush();
+ }
+ }
+}
diff --git a/web/node_modules/graceful-fs/package.json b/web/node_modules/graceful-fs/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..87babf0248563c1767d58126c403954bf3e9e024
--- /dev/null
+++ b/web/node_modules/graceful-fs/package.json
@@ -0,0 +1,53 @@
+{
+ "name": "graceful-fs",
+ "description": "A drop-in replacement for fs, making various improvements.",
+ "version": "4.2.11",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/isaacs/node-graceful-fs"
+ },
+ "main": "graceful-fs.js",
+ "directories": {
+ "test": "test"
+ },
+ "scripts": {
+ "preversion": "npm test",
+ "postversion": "npm publish",
+ "postpublish": "git push origin --follow-tags",
+ "test": "nyc --silent node test.js | tap -c -",
+ "posttest": "nyc report"
+ },
+ "keywords": [
+ "fs",
+ "module",
+ "reading",
+ "retry",
+ "retries",
+ "queue",
+ "error",
+ "errors",
+ "handling",
+ "EMFILE",
+ "EAGAIN",
+ "EINVAL",
+ "EPERM",
+ "EACCESS"
+ ],
+ "license": "ISC",
+ "devDependencies": {
+ "import-fresh": "^2.0.0",
+ "mkdirp": "^0.5.0",
+ "rimraf": "^2.2.8",
+ "tap": "^16.3.4"
+ },
+ "files": [
+ "fs.js",
+ "graceful-fs.js",
+ "legacy-streams.js",
+ "polyfills.js",
+ "clone.js"
+ ],
+ "tap": {
+ "reporter": "classic"
+ }
+}
diff --git a/web/node_modules/graceful-fs/polyfills.js b/web/node_modules/graceful-fs/polyfills.js
new file mode 100644
index 0000000000000000000000000000000000000000..453f1a9e702d1aaf9a34cb8460f30073dc83bcf5
--- /dev/null
+++ b/web/node_modules/graceful-fs/polyfills.js
@@ -0,0 +1,355 @@
+var constants = require('constants')
+
+var origCwd = process.cwd
+var cwd = null
+
+var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform
+
+process.cwd = function() {
+ if (!cwd)
+ cwd = origCwd.call(process)
+ return cwd
+}
+try {
+ process.cwd()
+} catch (er) {}
+
+// This check is needed until node.js 12 is required
+if (typeof process.chdir === 'function') {
+ var chdir = process.chdir
+ process.chdir = function (d) {
+ cwd = null
+ chdir.call(process, d)
+ }
+ if (Object.setPrototypeOf) Object.setPrototypeOf(process.chdir, chdir)
+}
+
+module.exports = patch
+
+function patch (fs) {
+ // (re-)implement some things that are known busted or missing.
+
+ // lchmod, broken prior to 0.6.2
+ // back-port the fix here.
+ if (constants.hasOwnProperty('O_SYMLINK') &&
+ process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
+ patchLchmod(fs)
+ }
+
+ // lutimes implementation, or no-op
+ if (!fs.lutimes) {
+ patchLutimes(fs)
+ }
+
+ // https://github.com/isaacs/node-graceful-fs/issues/4
+ // Chown should not fail on einval or eperm if non-root.
+ // It should not fail on enosys ever, as this just indicates
+ // that a fs doesn't support the intended operation.
+
+ fs.chown = chownFix(fs.chown)
+ fs.fchown = chownFix(fs.fchown)
+ fs.lchown = chownFix(fs.lchown)
+
+ fs.chmod = chmodFix(fs.chmod)
+ fs.fchmod = chmodFix(fs.fchmod)
+ fs.lchmod = chmodFix(fs.lchmod)
+
+ fs.chownSync = chownFixSync(fs.chownSync)
+ fs.fchownSync = chownFixSync(fs.fchownSync)
+ fs.lchownSync = chownFixSync(fs.lchownSync)
+
+ fs.chmodSync = chmodFixSync(fs.chmodSync)
+ fs.fchmodSync = chmodFixSync(fs.fchmodSync)
+ fs.lchmodSync = chmodFixSync(fs.lchmodSync)
+
+ fs.stat = statFix(fs.stat)
+ fs.fstat = statFix(fs.fstat)
+ fs.lstat = statFix(fs.lstat)
+
+ fs.statSync = statFixSync(fs.statSync)
+ fs.fstatSync = statFixSync(fs.fstatSync)
+ fs.lstatSync = statFixSync(fs.lstatSync)
+
+ // if lchmod/lchown do not exist, then make them no-ops
+ if (fs.chmod && !fs.lchmod) {
+ fs.lchmod = function (path, mode, cb) {
+ if (cb) process.nextTick(cb)
+ }
+ fs.lchmodSync = function () {}
+ }
+ if (fs.chown && !fs.lchown) {
+ fs.lchown = function (path, uid, gid, cb) {
+ if (cb) process.nextTick(cb)
+ }
+ fs.lchownSync = function () {}
+ }
+
+ // on Windows, A/V software can lock the directory, causing this
+ // to fail with an EACCES or EPERM if the directory contains newly
+ // created files. Try again on failure, for up to 60 seconds.
+
+ // Set the timeout this long because some Windows Anti-Virus, such as Parity
+ // bit9, may lock files for up to a minute, causing npm package install
+ // failures. Also, take care to yield the scheduler. Windows scheduling gives
+ // CPU to a busy looping process, which can cause the program causing the lock
+ // contention to be starved of CPU by node, so the contention doesn't resolve.
+ if (platform === "win32") {
+ fs.rename = typeof fs.rename !== 'function' ? fs.rename
+ : (function (fs$rename) {
+ function rename (from, to, cb) {
+ var start = Date.now()
+ var backoff = 0;
+ fs$rename(from, to, function CB (er) {
+ if (er
+ && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY")
+ && Date.now() - start < 60000) {
+ setTimeout(function() {
+ fs.stat(to, function (stater, st) {
+ if (stater && stater.code === "ENOENT")
+ fs$rename(from, to, CB);
+ else
+ cb(er)
+ })
+ }, backoff)
+ if (backoff < 100)
+ backoff += 10;
+ return;
+ }
+ if (cb) cb(er)
+ })
+ }
+ if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename)
+ return rename
+ })(fs.rename)
+ }
+
+ // if read() returns EAGAIN, then just try it again.
+ fs.read = typeof fs.read !== 'function' ? fs.read
+ : (function (fs$read) {
+ function read (fd, buffer, offset, length, position, callback_) {
+ var callback
+ if (callback_ && typeof callback_ === 'function') {
+ var eagCounter = 0
+ callback = function (er, _, __) {
+ if (er && er.code === 'EAGAIN' && eagCounter < 10) {
+ eagCounter ++
+ return fs$read.call(fs, fd, buffer, offset, length, position, callback)
+ }
+ callback_.apply(this, arguments)
+ }
+ }
+ return fs$read.call(fs, fd, buffer, offset, length, position, callback)
+ }
+
+ // This ensures `util.promisify` works as it does for native `fs.read`.
+ if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read)
+ return read
+ })(fs.read)
+
+ fs.readSync = typeof fs.readSync !== 'function' ? fs.readSync
+ : (function (fs$readSync) { return function (fd, buffer, offset, length, position) {
+ var eagCounter = 0
+ while (true) {
+ try {
+ return fs$readSync.call(fs, fd, buffer, offset, length, position)
+ } catch (er) {
+ if (er.code === 'EAGAIN' && eagCounter < 10) {
+ eagCounter ++
+ continue
+ }
+ throw er
+ }
+ }
+ }})(fs.readSync)
+
+ function patchLchmod (fs) {
+ fs.lchmod = function (path, mode, callback) {
+ fs.open( path
+ , constants.O_WRONLY | constants.O_SYMLINK
+ , mode
+ , function (err, fd) {
+ if (err) {
+ if (callback) callback(err)
+ return
+ }
+ // prefer to return the chmod error, if one occurs,
+ // but still try to close, and report closing errors if they occur.
+ fs.fchmod(fd, mode, function (err) {
+ fs.close(fd, function(err2) {
+ if (callback) callback(err || err2)
+ })
+ })
+ })
+ }
+
+ fs.lchmodSync = function (path, mode) {
+ var fd = fs.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode)
+
+ // prefer to return the chmod error, if one occurs,
+ // but still try to close, and report closing errors if they occur.
+ var threw = true
+ var ret
+ try {
+ ret = fs.fchmodSync(fd, mode)
+ threw = false
+ } finally {
+ if (threw) {
+ try {
+ fs.closeSync(fd)
+ } catch (er) {}
+ } else {
+ fs.closeSync(fd)
+ }
+ }
+ return ret
+ }
+ }
+
+ function patchLutimes (fs) {
+ if (constants.hasOwnProperty("O_SYMLINK") && fs.futimes) {
+ fs.lutimes = function (path, at, mt, cb) {
+ fs.open(path, constants.O_SYMLINK, function (er, fd) {
+ if (er) {
+ if (cb) cb(er)
+ return
+ }
+ fs.futimes(fd, at, mt, function (er) {
+ fs.close(fd, function (er2) {
+ if (cb) cb(er || er2)
+ })
+ })
+ })
+ }
+
+ fs.lutimesSync = function (path, at, mt) {
+ var fd = fs.openSync(path, constants.O_SYMLINK)
+ var ret
+ var threw = true
+ try {
+ ret = fs.futimesSync(fd, at, mt)
+ threw = false
+ } finally {
+ if (threw) {
+ try {
+ fs.closeSync(fd)
+ } catch (er) {}
+ } else {
+ fs.closeSync(fd)
+ }
+ }
+ return ret
+ }
+
+ } else if (fs.futimes) {
+ fs.lutimes = function (_a, _b, _c, cb) { if (cb) process.nextTick(cb) }
+ fs.lutimesSync = function () {}
+ }
+ }
+
+ function chmodFix (orig) {
+ if (!orig) return orig
+ return function (target, mode, cb) {
+ return orig.call(fs, target, mode, function (er) {
+ if (chownErOk(er)) er = null
+ if (cb) cb.apply(this, arguments)
+ })
+ }
+ }
+
+ function chmodFixSync (orig) {
+ if (!orig) return orig
+ return function (target, mode) {
+ try {
+ return orig.call(fs, target, mode)
+ } catch (er) {
+ if (!chownErOk(er)) throw er
+ }
+ }
+ }
+
+
+ function chownFix (orig) {
+ if (!orig) return orig
+ return function (target, uid, gid, cb) {
+ return orig.call(fs, target, uid, gid, function (er) {
+ if (chownErOk(er)) er = null
+ if (cb) cb.apply(this, arguments)
+ })
+ }
+ }
+
+ function chownFixSync (orig) {
+ if (!orig) return orig
+ return function (target, uid, gid) {
+ try {
+ return orig.call(fs, target, uid, gid)
+ } catch (er) {
+ if (!chownErOk(er)) throw er
+ }
+ }
+ }
+
+ function statFix (orig) {
+ if (!orig) return orig
+ // Older versions of Node erroneously returned signed integers for
+ // uid + gid.
+ return function (target, options, cb) {
+ if (typeof options === 'function') {
+ cb = options
+ options = null
+ }
+ function callback (er, stats) {
+ if (stats) {
+ if (stats.uid < 0) stats.uid += 0x100000000
+ if (stats.gid < 0) stats.gid += 0x100000000
+ }
+ if (cb) cb.apply(this, arguments)
+ }
+ return options ? orig.call(fs, target, options, callback)
+ : orig.call(fs, target, callback)
+ }
+ }
+
+ function statFixSync (orig) {
+ if (!orig) return orig
+ // Older versions of Node erroneously returned signed integers for
+ // uid + gid.
+ return function (target, options) {
+ var stats = options ? orig.call(fs, target, options)
+ : orig.call(fs, target)
+ if (stats) {
+ if (stats.uid < 0) stats.uid += 0x100000000
+ if (stats.gid < 0) stats.gid += 0x100000000
+ }
+ return stats;
+ }
+ }
+
+ // ENOSYS means that the fs doesn't support the op. Just ignore
+ // that, because it doesn't matter.
+ //
+ // if there's no getuid, or if getuid() is something other
+ // than 0, and the error is EINVAL or EPERM, then just ignore
+ // it.
+ //
+ // This specific case is a silent failure in cp, install, tar,
+ // and most other unix tools that manage permissions.
+ //
+ // When running as root, or if other types of errors are
+ // encountered, then it's strict.
+ function chownErOk (er) {
+ if (!er)
+ return true
+
+ if (er.code === "ENOSYS")
+ return true
+
+ var nonroot = !process.getuid || process.getuid() !== 0
+ if (nonroot) {
+ if (er.code === "EINVAL" || er.code === "EPERM")
+ return true
+ }
+
+ return false
+ }
+}
diff --git a/web/node_modules/hasown/.github/FUNDING.yml b/web/node_modules/hasown/.github/FUNDING.yml
new file mode 100644
index 0000000000000000000000000000000000000000..d68c8b716ff04186cd4c0ed8f85af474cfbfbc6a
--- /dev/null
+++ b/web/node_modules/hasown/.github/FUNDING.yml
@@ -0,0 +1,12 @@
+# These are supported funding model platforms
+
+github: [ljharb]
+patreon: # Replace with a single Patreon username
+open_collective: # Replace with a single Open Collective username
+ko_fi: # Replace with a single Ko-fi username
+tidelift: npm/hasown
+community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
+liberapay: # Replace with a single Liberapay username
+issuehunt: # Replace with a single IssueHunt username
+otechie: # Replace with a single Otechie username
+custom: # Replace with a single custom sponsorship URL
diff --git a/web/node_modules/hasown/.nycrc b/web/node_modules/hasown/.nycrc
new file mode 100644
index 0000000000000000000000000000000000000000..1826526e091b89c896e7099ccd891db79165e329
--- /dev/null
+++ b/web/node_modules/hasown/.nycrc
@@ -0,0 +1,13 @@
+{
+ "all": true,
+ "check-coverage": false,
+ "reporter": ["text-summary", "text", "html", "json"],
+ "lines": 86,
+ "statements": 85.93,
+ "functions": 82.43,
+ "branches": 76.06,
+ "exclude": [
+ "coverage",
+ "test"
+ ]
+}
diff --git a/web/node_modules/hasown/CHANGELOG.md b/web/node_modules/hasown/CHANGELOG.md
new file mode 100644
index 0000000000000000000000000000000000000000..90a43dc309b047ad27d1efee6c1f08c6d522583f
--- /dev/null
+++ b/web/node_modules/hasown/CHANGELOG.md
@@ -0,0 +1,58 @@
+# Changelog
+
+All notable changes to this project will be documented in this file.
+
+The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
+and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+
+## [v2.0.4](https://github.com/inspect-js/hasOwn/compare/v2.0.3...v2.0.4) - 2026-05-28
+
+### Commits
+
+- [types] drop the dead key-narrowing overload [`fdab00e`](https://github.com/inspect-js/hasOwn/commit/fdab00e2703e65411424e19bf86a7e72a8f10da9)
+- [Dev Deps] update `@ljharb/eslint-config`, `auto-changelog`, `eslint` [`91f6247`](https://github.com/inspect-js/hasOwn/commit/91f624768dd0f7db0d019b89d4d86bd66e20ec30)
+
+## [v2.0.3](https://github.com/inspect-js/hasOwn/compare/v2.0.2...v2.0.3) - 2026-04-17
+
+### Commits
+
+- [actions] update workflows [`fb837b8`](https://github.com/inspect-js/hasOwn/commit/fb837b849bcdb8416fdc8fd344edfacd5574696c)
+- [Dev Deps] update `@arethetypeswrong/cli`, `@ljharb/eslint-config`, `@ljharb/tsconfig`, `@types/tape`, `auto-changelog`, `eslint`, `mock-property`, `npmignore`, `tape` [`f4b279b`](https://github.com/inspect-js/hasOwn/commit/f4b279bd682be34b3f0ede2a58d4e8acb58d6d47)
+- [Dev Deps] update `eslint`, `@ljharb/eslint-config`; migrate to flat config [`7e415ce`](https://github.com/inspect-js/hasOwn/commit/7e415cee55ebf43b3c34d7fd86db73a9928b05f7)
+- [Dev Deps] update `eslint` [`ef313da`](https://github.com/inspect-js/hasOwn/commit/ef313da342d33b60e23e738b9f5a86f6065f39ef)
+- [meta] use `npm audit` instead of `aud` [`d5c6d4d`](https://github.com/inspect-js/hasOwn/commit/d5c6d4d7a19c6ca4f14ac173b30d8bf25abcabee)
+- [types] add overload that narrows the key [`cc03a09`](https://github.com/inspect-js/hasOwn/commit/cc03a097e9402fb8b86d413050e67f790dd6c8c5)
+
+## [v2.0.2](https://github.com/inspect-js/hasOwn/compare/v2.0.1...v2.0.2) - 2024-03-10
+
+### Commits
+
+- [types] use shared config [`68e9d4d`](https://github.com/inspect-js/hasOwn/commit/68e9d4dab6facb4f05f02c6baea94a3f2a4e44b2)
+- [actions] remove redundant finisher; use reusable workflow [`241a68e`](https://github.com/inspect-js/hasOwn/commit/241a68e13ea1fe52bec5ba7f74144befc31fae7b)
+- [Tests] increase coverage [`4125c0d`](https://github.com/inspect-js/hasOwn/commit/4125c0d6121db56ae30e38346dfb0c000b04f0a7)
+- [Tests] skip `npm ls` in old node due to TS [`01b9282`](https://github.com/inspect-js/hasOwn/commit/01b92822f9971dea031eafdd14767df41d61c202)
+- [types] improve predicate type [`d340f85`](https://github.com/inspect-js/hasOwn/commit/d340f85ce02e286ef61096cbbb6697081d40a12b)
+- [Dev Deps] update `tape` [`70089fc`](https://github.com/inspect-js/hasOwn/commit/70089fcf544e64acc024cbe60f5a9b00acad86de)
+- [Tests] use `@arethetypeswrong/cli` [`50b272c`](https://github.com/inspect-js/hasOwn/commit/50b272c829f40d053a3dd91c9796e0ac0b2af084)
+
+## [v2.0.1](https://github.com/inspect-js/hasOwn/compare/v2.0.0...v2.0.1) - 2024-02-10
+
+### Commits
+
+- [types] use a handwritten d.ts file; fix exported type [`012b989`](https://github.com/inspect-js/hasOwn/commit/012b9898ccf91dc441e2ebf594ff70270a5fda58)
+- [Dev Deps] update `@types/function-bind`, `@types/mock-property`, `@types/tape`, `aud`, `mock-property`, `npmignore`, `tape`, `typescript` [`977a56f`](https://github.com/inspect-js/hasOwn/commit/977a56f51a1f8b20566f3c471612137894644025)
+- [meta] add `sideEffects` flag [`3a60b7b`](https://github.com/inspect-js/hasOwn/commit/3a60b7bf42fccd8c605e5f145a6fcc83b13cb46f)
+
+## [v2.0.0](https://github.com/inspect-js/hasOwn/compare/v1.0.1...v2.0.0) - 2023-10-19
+
+### Commits
+
+- revamped implementation, tests, readme [`72bf8b3`](https://github.com/inspect-js/hasOwn/commit/72bf8b338e77a638f0a290c63ffaed18339c36b4)
+- [meta] revamp package.json [`079775f`](https://github.com/inspect-js/hasOwn/commit/079775fb1ec72c1c6334069593617a0be3847458)
+- Only apps should have lockfiles [`6640e23`](https://github.com/inspect-js/hasOwn/commit/6640e233d1bb8b65260880f90787637db157d215)
+
+## v1.0.1 - 2023-10-10
+
+### Commits
+
+- Initial commit [`8dbfde6`](https://github.com/inspect-js/hasOwn/commit/8dbfde6e8fb0ebb076fab38d138f2984eb340a62)
diff --git a/web/node_modules/hasown/LICENSE b/web/node_modules/hasown/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..0314929078de8a733a0af9c8ba5bc00aca094cc9
--- /dev/null
+++ b/web/node_modules/hasown/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) Jordan Harband and contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web/node_modules/hasown/README.md b/web/node_modules/hasown/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..f759b8a8396e3993fb7901d7551d38ee2a786b31
--- /dev/null
+++ b/web/node_modules/hasown/README.md
@@ -0,0 +1,40 @@
+# hasown [![Version Badge][npm-version-svg]][package-url]
+
+[![github actions][actions-image]][actions-url]
+[![coverage][codecov-image]][codecov-url]
+[![License][license-image]][license-url]
+[![Downloads][downloads-image]][downloads-url]
+
+[![npm badge][npm-badge-png]][package-url]
+
+A robust, ES3 compatible, "has own property" predicate.
+
+## Example
+
+```js
+const assert = require('assert');
+const hasOwn = require('hasown');
+
+assert.equal(hasOwn({}, 'toString'), false);
+assert.equal(hasOwn([], 'length'), true);
+assert.equal(hasOwn({ a: 42 }, 'a'), true);
+```
+
+## Tests
+Simply clone the repo, `npm install`, and run `npm test`
+
+[package-url]: https://npmjs.org/package/hasown
+[npm-version-svg]: https://versionbadg.es/inspect-js/hasown.svg
+[deps-svg]: https://david-dm.org/inspect-js/hasOwn.svg
+[deps-url]: https://david-dm.org/inspect-js/hasOwn
+[dev-deps-svg]: https://david-dm.org/inspect-js/hasOwn/dev-status.svg
+[dev-deps-url]: https://david-dm.org/inspect-js/hasOwn#info=devDependencies
+[npm-badge-png]: https://nodei.co/npm/hasown.png?downloads=true&stars=true
+[license-image]: https://img.shields.io/npm/l/hasown.svg
+[license-url]: LICENSE
+[downloads-image]: https://img.shields.io/npm/dm/hasown.svg
+[downloads-url]: https://npm-stat.com/charts.html?package=hasown
+[codecov-image]: https://codecov.io/gh/inspect-js/hasOwn/branch/main/graphs/badge.svg
+[codecov-url]: https://app.codecov.io/gh/inspect-js/hasOwn/
+[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/hasOwn
+[actions-url]: https://github.com/inspect-js/hasOwn/actions
diff --git a/web/node_modules/hasown/eslint.config.mjs b/web/node_modules/hasown/eslint.config.mjs
new file mode 100644
index 0000000000000000000000000000000000000000..3d634a0969b313e68694b29530cd777f1d0616b2
--- /dev/null
+++ b/web/node_modules/hasown/eslint.config.mjs
@@ -0,0 +1,6 @@
+import ljharbConfig from '@ljharb/eslint-config/flat';
+
+export default [
+ ...ljharbConfig,
+ { rules: { 'no-extra-parens': 'off' } },
+];
diff --git a/web/node_modules/hasown/index.d.ts b/web/node_modules/hasown/index.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..aafdf3b2b8f0ef01aa1b3e44596560eee3f38ff7
--- /dev/null
+++ b/web/node_modules/hasown/index.d.ts
@@ -0,0 +1,3 @@
+declare function hasOwn(o: O, p: K): o is O & Record;
+
+export = hasOwn;
diff --git a/web/node_modules/hasown/index.js b/web/node_modules/hasown/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..34e60591349679d8cbdb1033a60eb5d171d7637e
--- /dev/null
+++ b/web/node_modules/hasown/index.js
@@ -0,0 +1,8 @@
+'use strict';
+
+var call = Function.prototype.call;
+var $hasOwn = Object.prototype.hasOwnProperty;
+var bind = require('function-bind');
+
+/** @type {import('.')} */
+module.exports = bind.call(call, $hasOwn);
diff --git a/web/node_modules/hasown/package.json b/web/node_modules/hasown/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..fb86cc3743bf6d1bc3ef39a0e980878b6bd07aa3
--- /dev/null
+++ b/web/node_modules/hasown/package.json
@@ -0,0 +1,91 @@
+{
+ "name": "hasown",
+ "version": "2.0.4",
+ "description": "A robust, ES3 compatible, \"has own property\" predicate.",
+ "main": "index.js",
+ "exports": {
+ ".": "./index.js",
+ "./package.json": "./package.json"
+ },
+ "types": "index.d.ts",
+ "sideEffects": false,
+ "scripts": {
+ "prepack": "npmignore --auto --commentLines=autogenerated",
+ "prepublish": "not-in-publish || npm run prepublishOnly",
+ "prepublishOnly": "safe-publish-latest",
+ "prelint": "evalmd README.md",
+ "lint": "eslint .",
+ "postlint": "npm run tsc",
+ "pretest": "npm run lint",
+ "tsc": "tsc -p .",
+ "posttsc": "attw -P",
+ "tests-only": "nyc tape 'test/**/*.js'",
+ "test": "npm run tests-only",
+ "posttest": "npx npm@\">= 10.2\" audit --production",
+ "version": "auto-changelog && git add CHANGELOG.md",
+ "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
+ },
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/inspect-js/hasOwn.git"
+ },
+ "keywords": [
+ "has",
+ "hasOwnProperty",
+ "hasOwn",
+ "has-own",
+ "own",
+ "has",
+ "property",
+ "in",
+ "javascript",
+ "ecmascript"
+ ],
+ "author": "Jordan Harband ",
+ "license": "MIT",
+ "bugs": {
+ "url": "https://github.com/inspect-js/hasOwn/issues"
+ },
+ "homepage": "https://github.com/inspect-js/hasOwn#readme",
+ "dependencies": {
+ "function-bind": "^1.1.2"
+ },
+ "devDependencies": {
+ "@arethetypeswrong/cli": "^0.18.2",
+ "@ljharb/eslint-config": "^22.2.3",
+ "@ljharb/tsconfig": "^0.3.2",
+ "@types/function-bind": "^1.1.10",
+ "@types/tape": "^5.8.1",
+ "auto-changelog": "^2.5.1",
+ "eslint": "^10.4.0",
+ "evalmd": "^0.0.19",
+ "in-publish": "^2.0.1",
+ "jiti": "^0.0.0",
+ "mock-property": "^1.1.0",
+ "npmignore": "^0.3.5",
+ "nyc": "^10.3.2",
+ "safe-publish-latest": "^2.0.0",
+ "tape": "^5.9.0",
+ "typescript": "next"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "testling": {
+ "files": "test/index.js"
+ },
+ "auto-changelog": {
+ "output": "CHANGELOG.md",
+ "template": "keepachangelog",
+ "unreleased": false,
+ "commitLimit": false,
+ "backfillLimit": false,
+ "hideCredit": true
+ },
+ "publishConfig": {
+ "ignore": [
+ ".github/workflows",
+ "test"
+ ]
+ }
+}
diff --git a/web/node_modules/hasown/tsconfig.json b/web/node_modules/hasown/tsconfig.json
new file mode 100644
index 0000000000000000000000000000000000000000..0930c565850326810b8efe09ca98895aeffd8f21
--- /dev/null
+++ b/web/node_modules/hasown/tsconfig.json
@@ -0,0 +1,6 @@
+{
+ "extends": "@ljharb/tsconfig",
+ "exclude": [
+ "coverage",
+ ],
+}
diff --git a/web/node_modules/is-binary-path/index.d.ts b/web/node_modules/is-binary-path/index.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..19dcd4327beddb4d48ffc5a79eb8c306903574b4
--- /dev/null
+++ b/web/node_modules/is-binary-path/index.d.ts
@@ -0,0 +1,17 @@
+/**
+Check if a file path is a binary file.
+
+@example
+```
+import isBinaryPath = require('is-binary-path');
+
+isBinaryPath('source/unicorn.png');
+//=> true
+
+isBinaryPath('source/unicorn.txt');
+//=> false
+```
+*/
+declare function isBinaryPath(filePath: string): boolean;
+
+export = isBinaryPath;
diff --git a/web/node_modules/is-binary-path/index.js b/web/node_modules/is-binary-path/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..ef7548c8303298520e15e7e680bf99aee21f787a
--- /dev/null
+++ b/web/node_modules/is-binary-path/index.js
@@ -0,0 +1,7 @@
+'use strict';
+const path = require('path');
+const binaryExtensions = require('binary-extensions');
+
+const extensions = new Set(binaryExtensions);
+
+module.exports = filePath => extensions.has(path.extname(filePath).slice(1).toLowerCase());
diff --git a/web/node_modules/is-binary-path/license b/web/node_modules/is-binary-path/license
new file mode 100644
index 0000000000000000000000000000000000000000..401b1c731bcd3ed3193b94d7cbb81bd3b4a1dd47
--- /dev/null
+++ b/web/node_modules/is-binary-path/license
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) 2019 Sindre Sorhus (https://sindresorhus.com), Paul Miller (https://paulmillr.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/web/node_modules/is-binary-path/package.json b/web/node_modules/is-binary-path/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..a8d005aed80f8729749e0302d16bf0a6f2ab7eb6
--- /dev/null
+++ b/web/node_modules/is-binary-path/package.json
@@ -0,0 +1,40 @@
+{
+ "name": "is-binary-path",
+ "version": "2.1.0",
+ "description": "Check if a file path is a binary file",
+ "license": "MIT",
+ "repository": "sindresorhus/is-binary-path",
+ "author": {
+ "name": "Sindre Sorhus",
+ "email": "sindresorhus@gmail.com",
+ "url": "sindresorhus.com"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "scripts": {
+ "test": "xo && ava && tsd"
+ },
+ "files": [
+ "index.js",
+ "index.d.ts"
+ ],
+ "keywords": [
+ "binary",
+ "extensions",
+ "extension",
+ "file",
+ "path",
+ "check",
+ "detect",
+ "is"
+ ],
+ "dependencies": {
+ "binary-extensions": "^2.0.0"
+ },
+ "devDependencies": {
+ "ava": "^1.4.1",
+ "tsd": "^0.7.2",
+ "xo": "^0.24.0"
+ }
+}
diff --git a/web/node_modules/is-binary-path/readme.md b/web/node_modules/is-binary-path/readme.md
new file mode 100644
index 0000000000000000000000000000000000000000..b4ab02519b0fdefb0f64748adcc1d35111a2cf75
--- /dev/null
+++ b/web/node_modules/is-binary-path/readme.md
@@ -0,0 +1,34 @@
+# is-binary-path [](https://travis-ci.org/sindresorhus/is-binary-path)
+
+> Check if a file path is a binary file
+
+
+## Install
+
+```
+$ npm install is-binary-path
+```
+
+
+## Usage
+
+```js
+const isBinaryPath = require('is-binary-path');
+
+isBinaryPath('source/unicorn.png');
+//=> true
+
+isBinaryPath('source/unicorn.txt');
+//=> false
+```
+
+
+## Related
+
+- [binary-extensions](https://github.com/sindresorhus/binary-extensions) - List of binary file extensions
+- [is-text-path](https://github.com/sindresorhus/is-text-path) - Check if a filepath is a text file
+
+
+## License
+
+MIT © [Sindre Sorhus](https://sindresorhus.com), [Paul Miller](https://paulmillr.com)
diff --git a/web/node_modules/is-core-module/.eslintrc b/web/node_modules/is-core-module/.eslintrc
new file mode 100644
index 0000000000000000000000000000000000000000..f2e07268154e3e32cb09cb164baf850c7dac9a38
--- /dev/null
+++ b/web/node_modules/is-core-module/.eslintrc
@@ -0,0 +1,18 @@
+{
+ "extends": "@ljharb",
+ "root": true,
+ "rules": {
+ "func-style": 1,
+ },
+ "overrides": [
+ {
+ "files": "test/**",
+ "rules": {
+ "global-require": 0,
+ "max-depth": 0,
+ "max-lines-per-function": 0,
+ "no-negated-condition": 0,
+ },
+ },
+ ],
+}
diff --git a/web/node_modules/is-core-module/.nycrc b/web/node_modules/is-core-module/.nycrc
new file mode 100644
index 0000000000000000000000000000000000000000..bdd626ce91477abbdd489b79988baebadbd3c897
--- /dev/null
+++ b/web/node_modules/is-core-module/.nycrc
@@ -0,0 +1,9 @@
+{
+ "all": true,
+ "check-coverage": false,
+ "reporter": ["text-summary", "text", "html", "json"],
+ "exclude": [
+ "coverage",
+ "test"
+ ]
+}
diff --git a/web/node_modules/is-core-module/CHANGELOG.md b/web/node_modules/is-core-module/CHANGELOG.md
new file mode 100644
index 0000000000000000000000000000000000000000..755ae1d38879208c0d36e5204de5bc4d1e36edd0
--- /dev/null
+++ b/web/node_modules/is-core-module/CHANGELOG.md
@@ -0,0 +1,349 @@
+# Changelog
+
+All notable changes to this project will be documented in this file.
+
+The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
+and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+
+## [v2.16.2](https://github.com/inspect-js/is-core-module.git
+/compare/v2.16.1...v2.16.2) - 2026-05-05
+
+### Commits
+
+- [Tests] increase coverage [`1fc59fe`](https://github.com/inspect-js/is-core-module.git
+/commit/1fc59fe685f0b9590b571384db1383ab8e1096a3)
+- [actions] update workflows [`0f6217b`](https://github.com/inspect-js/is-core-module.git
+/commit/0f6217b97a166fcaa4a02b0a34e0a186c40df660)
+- [Fix] node 26 drops _stream_* modules [`3acff68`](https://github.com/inspect-js/is-core-module.git
+/commit/3acff68b25b44c9ae6fee1a1dc236ebb7c5338af)
+- [Dev Deps] update `@ljharb/eslint-config`, `eslint`, `npmignore` [`f06678c`](https://github.com/inspect-js/is-core-module.git
+/commit/f06678ce7f4df97e691a8d285d4aacb5da4a9790)
+- [Deps] update `hasown` [`d9eae68`](https://github.com/inspect-js/is-core-module.git
+/commit/d9eae68fd912c2268260e52714719d1799e9a08b)
+- [Dev Deps] update `@ljharb/eslint-config` [`8273701`](https://github.com/inspect-js/is-core-module.git
+/commit/82737010e7f3ed26c6f6183ee082e66a045125b6)
+- [readme] replace runkit CI badge with shields.io check-runs badge [`6b86754`](https://github.com/inspect-js/is-core-module.git
+/commit/6b867544789c82a40db44031a30612d89978b2d9)
+
+## [v2.16.1](https://github.com/inspect-js/is-core-module.git
+/compare/v2.16.0...v2.16.1) - 2024-12-21
+
+### Fixed
+
+- [Fix] `node:sqlite` is available in node ^22.13 [`#17`](https://github.com/inspect-js/is-core-module.git
+/issues/17)
+
+## [v2.16.0](https://github.com/inspect-js/is-core-module.git
+/compare/v2.15.1...v2.16.0) - 2024-12-13
+
+### Commits
+
+- [New] add `node:sqlite` [`1ee94d2`](https://github.com/inspect-js/is-core-module.git
+/commit/1ee94d20857e22cdb24e9b4bb1a2097f2e03e26f)
+- [Dev Deps] update `auto-changelog`, `tape` [`aa84aa3`](https://github.com/inspect-js/is-core-module.git
+/commit/aa84aa34face677f14e08ec1c737f0c4bba27260)
+
+## [v2.15.1](https://github.com/inspect-js/is-core-module.git
+/compare/v2.15.0...v2.15.1) - 2024-08-21
+
+### Commits
+
+- [Tests] add `process.getBuiltinModule` tests [`28c7791`](https://github.com/inspect-js/is-core-module.git
+/commit/28c7791c196d58c64cfdf638b7e68ed1b62a4da0)
+- [Fix] `test/mock_loader` is no longer exposed as of v22.7 [`68b08b0`](https://github.com/inspect-js/is-core-module.git
+/commit/68b08b0d7963447dbffa5142e8810dca550383af)
+- [Tests] replace `aud` with `npm audit` [`32f8060`](https://github.com/inspect-js/is-core-module.git
+/commit/32f806026dac14f9016be4401a643851240c76b9)
+- [Dev Deps] update `mock-property` [`f7d3c8f`](https://github.com/inspect-js/is-core-module.git
+/commit/f7d3c8f01e922be49621683eb41477c4f50522e1)
+- [Dev Deps] add missing peer dep [`eaee885`](https://github.com/inspect-js/is-core-module.git
+/commit/eaee885b67238819e9c8ed5bd2098766e1d05331)
+
+## [v2.15.0](https://github.com/inspect-js/is-core-module.git
+/compare/v2.14.0...v2.15.0) - 2024-07-17
+
+### Commits
+
+- [New] add `node:sea` [`2819fb3`](https://github.com/inspect-js/is-core-module.git
+/commit/2819fb3eae312fa64643bc5430ebd06ec0f3fb88)
+
+## [v2.14.0](https://github.com/inspect-js/is-core-module.git
+/compare/v2.13.1...v2.14.0) - 2024-06-20
+
+### Commits
+
+- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `mock-property`, `npmignore`, `tape` [`0e43200`](https://github.com/inspect-js/is-core-module.git
+/commit/0e432006d97237cc082d41e6a593e87c81068364)
+- [meta] add missing `engines.node` [`4ea3af8`](https://github.com/inspect-js/is-core-module.git
+/commit/4ea3af88891a1d4f96026f0ec0ef08c67cd1bd24)
+- [New] add `test/mock_loader` [`e9fbd29`](https://github.com/inspect-js/is-core-module.git
+/commit/e9fbd2951383be070aeffb9ebbf3715237282610)
+- [Deps] update `hasown` [`57f1940`](https://github.com/inspect-js/is-core-module.git
+/commit/57f1940947b3e368abdf529232d2f17d88909358)
+
+## [v2.13.1](https://github.com/inspect-js/is-core-module.git
+/compare/v2.13.0...v2.13.1) - 2023-10-20
+
+### Commits
+
+- [Refactor] use `hasown` instead of `has` [`0e52096`](https://github.com/inspect-js/is-core-module.git
+/commit/0e520968b0a725276b67420ab4b877486b243ae0)
+- [Dev Deps] update `mock-property`, `tape` [`8736b35`](https://github.com/inspect-js/is-core-module.git
+/commit/8736b35464d0f297b55da2c6b30deee04b8303c5)
+
+## [v2.13.0](https://github.com/inspect-js/is-core-module.git
+/compare/v2.12.1...v2.13.0) - 2023-08-05
+
+### Commits
+
+- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `semver`, `tape` [`c75b263`](https://github.com/inspect-js/is-core-module.git
+/commit/c75b263d047cb53430c3970107e5eb64d6cd6c0c)
+- [New] `node:test/reporters` and `wasi`/`node:wasi` are in v18.17 [`d76cbf8`](https://github.com/inspect-js/is-core-module.git
+/commit/d76cbf8e9b208acfd98913fed5a5f45cb15fe5dc)
+
+## [v2.12.1](https://github.com/inspect-js/is-core-module.git
+/compare/v2.12.0...v2.12.1) - 2023-05-16
+
+### Commits
+
+- [Fix] `test/reporters` now requires the `node:` prefix as of v20.2 [`12183d0`](https://github.com/inspect-js/is-core-module.git
+/commit/12183d0d8e4edf56b6ce18a1b3be54bfce10175b)
+
+## [v2.12.0](https://github.com/inspect-js/is-core-module.git
+/compare/v2.11.0...v2.12.0) - 2023-04-10
+
+### Commits
+
+- [actions] update rebase action to use reusable workflow [`c0a7251`](https://github.com/inspect-js/is-core-module.git
+/commit/c0a7251f734f3c621932c5fcdfd1bf966b42ca32)
+- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `tape` [`9ae8b7f`](https://github.com/inspect-js/is-core-module.git
+/commit/9ae8b7fac03c369861d0991b4a2ce8d4848e6a7d)
+- [New] `test/reporters` added in v19.9, `wasi` added in v20 [`9d5341a`](https://github.com/inspect-js/is-core-module.git
+/commit/9d5341ab32053f25b7fa7db3c0e18461db24a79c)
+- [Dev Deps] add missing `in-publish` dep [`5980245`](https://github.com/inspect-js/is-core-module.git
+/commit/59802456e9ac919fa748f53be9d8fbf304a197df)
+
+## [v2.11.0](https://github.com/inspect-js/is-core-module.git
+/compare/v2.10.0...v2.11.0) - 2022-10-18
+
+### Commits
+
+- [meta] use `npmignore` to autogenerate an npmignore file [`3360011`](https://github.com/inspect-js/is-core-module.git
+/commit/33600118857b46177178072fba2affcdeb009d12)
+- [Dev Deps] update `aud`, `tape` [`651c6b0`](https://github.com/inspect-js/is-core-module.git
+/commit/651c6b0cc2799d4130866cf43ad333dcade3d26c)
+- [New] `inspector/promises` and `node:inspector/promises` is now available in node 19 [`22d332f`](https://github.com/inspect-js/is-core-module.git
+/commit/22d332fe22ac050305444e0781ff85af819abcb0)
+
+## [v2.10.0](https://github.com/inspect-js/is-core-module.git
+/compare/v2.9.0...v2.10.0) - 2022-08-03
+
+### Commits
+
+- [New] `node:test` is now available in node ^16.17 [`e8fd36e`](https://github.com/inspect-js/is-core-module.git
+/commit/e8fd36e9b86c917775a07cc473b62a3294f459f2)
+- [Tests] improve skip message [`c014a4c`](https://github.com/inspect-js/is-core-module.git
+/commit/c014a4c0cd6eb15fff573ae4709191775e70cab4)
+
+## [v2.9.0](https://github.com/inspect-js/is-core-module.git
+/compare/v2.8.1...v2.9.0) - 2022-04-19
+
+### Commits
+
+- [New] add `node:test`, in node 18+ [`f853eca`](https://github.com/inspect-js/is-core-module.git
+/commit/f853eca801d0a7d4e1dbb670f1b6d9837d9533c5)
+- [Tests] use `mock-property` [`03b3644`](https://github.com/inspect-js/is-core-module.git
+/commit/03b3644dff4417f4ba5a7d0aa0138f5f6b3e5c46)
+- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `tape` [`7c0e2d0`](https://github.com/inspect-js/is-core-module.git
+/commit/7c0e2d06ed2a89acf53abe2ab34d703ed5b03455)
+- [meta] simplify "exports" [`d6ed201`](https://github.com/inspect-js/is-core-module.git
+/commit/d6ed201eba7fbba0e59814a9050fc49a6e9878c8)
+
+## [v2.8.1](https://github.com/inspect-js/is-core-module.git
+/compare/v2.8.0...v2.8.1) - 2022-01-05
+
+### Commits
+
+- [actions] reuse common workflows [`cd2cf9b`](https://github.com/inspect-js/is-core-module.git
+/commit/cd2cf9b3b66c8d328f65610efe41e9325db7716d)
+- [Fix] update node 0.4 results [`062195d`](https://github.com/inspect-js/is-core-module.git
+/commit/062195d89f0876a88b95d378b43f7fcc1205bc5b)
+- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `safe-publish-latest`, `tape` [`0790b62`](https://github.com/inspect-js/is-core-module.git
+/commit/0790b6222848c6167132f9f73acc3520fa8d1298)
+- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape` [`7d139a6`](https://github.com/inspect-js/is-core-module.git
+/commit/7d139a6d767709eabf0a0251e074ec1fb230c06e)
+- [Tests] run `nyc` in `tests-only`, not `test` [`780e8a0`](https://github.com/inspect-js/is-core-module.git
+/commit/780e8a049951c71cf78b1707f0871c48a28bde14)
+
+## [v2.8.0](https://github.com/inspect-js/is-core-module.git
+/compare/v2.7.0...v2.8.0) - 2021-10-14
+
+### Commits
+
+- [actions] update codecov uploader [`0cfe94e`](https://github.com/inspect-js/is-core-module.git
+/commit/0cfe94e106a7d005ea03e008c0a21dec13a77904)
+- [New] add `readline/promises` to node v17+ [`4f78c30`](https://github.com/inspect-js/is-core-module.git
+/commit/4f78c3008b1b58b4db6dc91d99610b1bc859da7e)
+- [Tests] node ^14.18 supports `node:` prefixes for CJS [`43e2f17`](https://github.com/inspect-js/is-core-module.git
+/commit/43e2f177452cea2f0eaf34f61b5407217bbdb6f4)
+
+## [v2.7.0](https://github.com/inspect-js/is-core-module.git
+/compare/v2.6.0...v2.7.0) - 2021-09-27
+
+### Commits
+
+- [New] node `v14.18` added `node:`-prefixed core modules to `require` [`6d943ab`](https://github.com/inspect-js/is-core-module.git
+/commit/6d943abe81382b9bbe344384d80fbfebe1cc0526)
+- [Tests] add coverage for Object.prototype pollution [`c6baf5f`](https://github.com/inspect-js/is-core-module.git
+/commit/c6baf5f942311a1945c1af41167bb80b84df2af7)
+- [Dev Deps] update `@ljharb/eslint-config` [`6717f00`](https://github.com/inspect-js/is-core-module.git
+/commit/6717f000d063ea57beb772bded36c2f056ac404c)
+- [eslint] fix linter warning [`594c10b`](https://github.com/inspect-js/is-core-module.git
+/commit/594c10bb7d39d7eb00925c90924199ff596184b2)
+- [meta] add `sideEffects` flag [`c32cfa5`](https://github.com/inspect-js/is-core-module.git
+/commit/c32cfa5195632944c4dd4284a142b8476e75be13)
+
+## [v2.6.0](https://github.com/inspect-js/is-core-module.git
+/compare/v2.5.0...v2.6.0) - 2021-08-17
+
+### Commits
+
+- [Dev Deps] update `eslint`, `tape` [`6cc928f`](https://github.com/inspect-js/is-core-module.git
+/commit/6cc928f8a4bba66aeeccc4f6beeac736d4bd3081)
+- [New] add `stream/consumers` to node `>= 16.7` [`a1a423e`](https://github.com/inspect-js/is-core-module.git
+/commit/a1a423e467e4cc27df180234fad5bab45943e67d)
+- [Refactor] Remove duplicated `&&` operand [`86faea7`](https://github.com/inspect-js/is-core-module.git
+/commit/86faea738213a2433c62d1098488dc9314dca832)
+- [Tests] include prereleases [`a4da7a6`](https://github.com/inspect-js/is-core-module.git
+/commit/a4da7a6abf7568e2aa4fd98e69452179f1850963)
+
+## [v2.5.0](https://github.com/inspect-js/is-core-module.git
+/compare/v2.4.0...v2.5.0) - 2021-07-12
+
+### Commits
+
+- [Dev Deps] update `auto-changelog`, `eslint` [`6334cc9`](https://github.com/inspect-js/is-core-module.git
+/commit/6334cc94f3af7469685bd8f236740991baaf2705)
+- [New] add `stream/web` to node v16.5+ [`17ac59b`](https://github.com/inspect-js/is-core-module.git
+/commit/17ac59b662d63e220a2e5728625f005c24f177b2)
+
+## [v2.4.0](https://github.com/inspect-js/is-core-module.git
+/compare/v2.3.0...v2.4.0) - 2021-05-09
+
+### Commits
+
+- [readme] add actions and codecov badges [`82b7faa`](https://github.com/inspect-js/is-core-module.git
+/commit/82b7faa12b56dbe47fbea67e1a5b9e447027ba40)
+- [Dev Deps] update `@ljharb/eslint-config`, `aud` [`8096868`](https://github.com/inspect-js/is-core-module.git
+/commit/8096868c024a161ccd4d44110b136763e92eace8)
+- [Dev Deps] update `eslint` [`6726824`](https://github.com/inspect-js/is-core-module.git
+/commit/67268249b88230018c510f6532a8046d7326346f)
+- [New] add `diagnostics_channel` to node `^14.17` [`86c6563`](https://github.com/inspect-js/is-core-module.git
+/commit/86c65634201b8ff9b3e48a9a782594579c7f5c3c)
+- [meta] fix prepublish script [`697a01e`](https://github.com/inspect-js/is-core-module.git
+/commit/697a01e3c9c0be074066520954f30fb28532ec57)
+
+## [v2.3.0](https://github.com/inspect-js/is-core-module.git
+/compare/v2.2.0...v2.3.0) - 2021-04-24
+
+### Commits
+
+- [meta] do not publish github action workflow files [`060d4bb`](https://github.com/inspect-js/is-core-module.git
+/commit/060d4bb971a29451c19ff336eb56bee27f9fa95a)
+- [New] add support for `node:` prefix, in node 16+ [`7341223`](https://github.com/inspect-js/is-core-module.git
+/commit/73412230a769f6e81c05eea50b6520cebf54ed2f)
+- [actions] use `node/install` instead of `node/run`; use `codecov` action [`016269a`](https://github.com/inspect-js/is-core-module.git
+/commit/016269abae9f6657a5254adfbb813f09a05067f9)
+- [patch] remove unneeded `.0` in version ranges [`cb466a6`](https://github.com/inspect-js/is-core-module.git
+/commit/cb466a6d89e52b8389e5c12715efcd550c41cea3)
+- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `tape` [`c9f9c39`](https://github.com/inspect-js/is-core-module.git
+/commit/c9f9c396ace60ef81906f98059c064e6452473ed)
+- [actions] update workflows [`3ee4a89`](https://github.com/inspect-js/is-core-module.git
+/commit/3ee4a89fd5a02fccd43882d905448ea6a98e9a3c)
+- [Dev Deps] update `eslint`, `@ljharb/eslint-config` [`dee4fed`](https://github.com/inspect-js/is-core-module.git
+/commit/dee4fed79690c1d43a22f7fa9426abebdc6d727f)
+- [Dev Deps] update `eslint`, `@ljharb/eslint-config` [`7d046ba`](https://github.com/inspect-js/is-core-module.git
+/commit/7d046ba07ae8c9292e43652694ca808d7b309de8)
+- [meta] use `prepublishOnly` script for npm 7+ [`149e677`](https://github.com/inspect-js/is-core-module.git
+/commit/149e6771a5ede6d097e71785b467a9c4b4977cc7)
+- [readme] remove travis badge [`903b51d`](https://github.com/inspect-js/is-core-module.git
+/commit/903b51d6b69b98abeabfbc3695c345b02646f19c)
+
+## [v2.2.0](https://github.com/inspect-js/is-core-module.git
+/compare/v2.1.0...v2.2.0) - 2020-11-26
+
+### Commits
+
+- [Tests] migrate tests to Github Actions [`c919f57`](https://github.com/inspect-js/is-core-module.git
+/commit/c919f573c0a92d10a0acad0b650b5aecb033d426)
+- [patch] `core.json`: %s/ /\t/g [`db3f685`](https://github.com/inspect-js/is-core-module.git
+/commit/db3f68581f53e73cc09cd675955eb1bdd6a5a39b)
+- [Tests] run `nyc` on all tests [`b2f925f`](https://github.com/inspect-js/is-core-module.git
+/commit/b2f925f8866f210ef441f39fcc8cc42692ab89b1)
+- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`; add `safe-publish-latest` [`89f02a2`](https://github.com/inspect-js/is-core-module.git
+/commit/89f02a2b4162246dea303a6ee31bb9a550b05c72)
+- [New] add `path/posix`, `path/win32`, `util/types` [`77f94f1`](https://github.com/inspect-js/is-core-module.git
+/commit/77f94f1e90ffd7c0be2a3f1aa8574ebf7fd981b3)
+
+## [v2.1.0](https://github.com/inspect-js/is-core-module.git
+/compare/v2.0.0...v2.1.0) - 2020-11-04
+
+### Commits
+
+- [Dev Deps] update `eslint` [`5e0034e`](https://github.com/inspect-js/is-core-module.git
+/commit/5e0034eae57c09c8f1bd769f502486a00f56c6e4)
+- [New] Add `diagnostics_channel` [`c2d83d0`](https://github.com/inspect-js/is-core-module.git
+/commit/c2d83d0a0225a1a658945d9bab7036ea347d29ec)
+
+## [v2.0.0](https://github.com/inspect-js/is-core-module.git
+/compare/v1.0.2...v2.0.0) - 2020-09-29
+
+### Commits
+
+- v2 implementation [`865aeb5`](https://github.com/inspect-js/is-core-module.git
+/commit/865aeb5ca0e90248a3dfff5d7622e4751fdeb9cd)
+- Only apps should have lockfiles [`5a5e660`](https://github.com/inspect-js/is-core-module.git
+/commit/5a5e660d568e37eb44e17fb1ebb12a105205fc2b)
+- Initial commit for v2 [`5a51524`](https://github.com/inspect-js/is-core-module.git
+/commit/5a51524e06f92adece5fbb138c69b7b9748a2348)
+- Tests [`116eae4`](https://github.com/inspect-js/is-core-module.git
+/commit/116eae4fccd01bc72c1fd3cc4b7561c387afc496)
+- [meta] add `auto-changelog` [`c24388b`](https://github.com/inspect-js/is-core-module.git
+/commit/c24388bee828d223040519d1f5b226ca35beee63)
+- [actions] add "Automatic Rebase" and "require allow edits" actions [`34292db`](https://github.com/inspect-js/is-core-module.git
+/commit/34292dbcbadae0868aff03c22dbd8b7b8a11558a)
+- [Tests] add `npm run lint` [`4f9eeee`](https://github.com/inspect-js/is-core-module.git
+/commit/4f9eeee7ddff10698bbf528620f4dc8d4fa3e697)
+- [readme] fix travis badges, https all URLs [`e516a73`](https://github.com/inspect-js/is-core-module.git
+/commit/e516a73b0dccce20938c432b1ba512eae8eff9e9)
+- [meta] create FUNDING.yml [`1aabebc`](https://github.com/inspect-js/is-core-module.git
+/commit/1aabebca98d01f8a04e46bc2e2520fa93cf21ac6)
+- [Fix] `domain`: domain landed sometime > v0.7.7 and <= v0.7.12 [`2df7d37`](https://github.com/inspect-js/is-core-module.git
+/commit/2df7d37595d41b15eeada732b706b926c2771655)
+- [Fix] `sys`: worked in 0.6, not 0.7, and 0.8+ [`a75c134`](https://github.com/inspect-js/is-core-module.git
+/commit/a75c134229e1e9441801f6b73f6a52489346eb65)
+
+## [v1.0.2](https://github.com/inspect-js/is-core-module.git
+/compare/v1.0.1...v1.0.2) - 2014-09-28
+
+### Commits
+
+- simpler [`66fe90f`](https://github.com/inspect-js/is-core-module.git
+/commit/66fe90f9771581b9adc0c3900baa52c21b5baea2)
+
+## [v1.0.1](https://github.com/inspect-js/is-core-module.git
+/compare/v1.0.0...v1.0.1) - 2014-09-28
+
+### Commits
+
+- remove stupid [`f21f906`](https://github.com/inspect-js/is-core-module.git
+/commit/f21f906f882c2bd656a5fc5ed6fbe48ddaffb2ac)
+- update readme [`1eff0ec`](https://github.com/inspect-js/is-core-module.git
+/commit/1eff0ec69798d1ec65771552d1562911e90a8027)
+
+## v1.0.0 - 2014-09-28
+
+### Commits
+
+- init [`48e5e76`](https://github.com/inspect-js/is-core-module.git
+/commit/48e5e76cac378fddb8c1f7d4055b8dfc943d6b96)
diff --git a/web/node_modules/is-core-module/LICENSE b/web/node_modules/is-core-module/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..2e502872a742346343b1fd9d68a28d28c50ab178
--- /dev/null
+++ b/web/node_modules/is-core-module/LICENSE
@@ -0,0 +1,20 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Dave Justice
+
+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.
\ No newline at end of file
diff --git a/web/node_modules/is-core-module/README.md b/web/node_modules/is-core-module/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..22af27b8a3a2d93f62c3d633fd3124b72104bf99
--- /dev/null
+++ b/web/node_modules/is-core-module/README.md
@@ -0,0 +1,40 @@
+# is-core-module [![Version Badge][2]][1]
+
+[![github actions][actions-image]][actions-url]
+[![coverage][codecov-image]][codecov-url]
+[![dependency status][5]][6]
+[![dev dependency status][7]][8]
+[![License][license-image]][license-url]
+[![Downloads][downloads-image]][downloads-url]
+
+[![npm badge][11]][1]
+
+Is this specifier a node.js core module? Optionally provide a node version to check; defaults to the current node version.
+
+## Example
+
+```js
+var isCore = require('is-core-module');
+var assert = require('assert');
+assert(isCore('fs'));
+assert(!isCore('butts'));
+```
+
+## Tests
+Clone the repo, `npm install`, and run `npm test`
+
+[1]: https://npmjs.org/package/is-core-module
+[2]: https://versionbadg.es/inspect-js/is-core-module.svg
+[5]: https://david-dm.org/inspect-js/is-core-module.svg
+[6]: https://david-dm.org/inspect-js/is-core-module
+[7]: https://david-dm.org/inspect-js/is-core-module/dev-status.svg
+[8]: https://david-dm.org/inspect-js/is-core-module#info=devDependencies
+[11]: https://nodei.co/npm/is-core-module.png?downloads=true&stars=true
+[license-image]: https://img.shields.io/npm/l/is-core-module.svg
+[license-url]: LICENSE
+[downloads-image]: https://img.shields.io/npm/dm/is-core-module.svg
+[downloads-url]: https://npm-stat.com/charts.html?package=is-core-module
+[codecov-image]: https://codecov.io/gh/inspect-js/is-core-module/branch/main/graphs/badge.svg
+[codecov-url]: https://app.codecov.io/gh/inspect-js/is-core-module/
+[actions-image]: https://img.shields.io/github/check-runs/inspect-js/is-core-module/main
+[actions-url]: https://github.com/inspect-js/is-core-module/actions
diff --git a/web/node_modules/is-core-module/core.json b/web/node_modules/is-core-module/core.json
new file mode 100644
index 0000000000000000000000000000000000000000..9d24f9e681f7dfa408d93198ca672d87d5e07b24
--- /dev/null
+++ b/web/node_modules/is-core-module/core.json
@@ -0,0 +1,162 @@
+{
+ "assert": true,
+ "node:assert": [">= 14.18 && < 15", ">= 16"],
+ "assert/strict": ">= 15",
+ "node:assert/strict": ">= 16",
+ "async_hooks": ">= 8",
+ "node:async_hooks": [">= 14.18 && < 15", ">= 16"],
+ "buffer_ieee754": ">= 0.5 && < 0.9.7",
+ "buffer": true,
+ "node:buffer": [">= 14.18 && < 15", ">= 16"],
+ "child_process": true,
+ "node:child_process": [">= 14.18 && < 15", ">= 16"],
+ "cluster": ">= 0.5",
+ "node:cluster": [">= 14.18 && < 15", ">= 16"],
+ "console": true,
+ "node:console": [">= 14.18 && < 15", ">= 16"],
+ "constants": true,
+ "node:constants": [">= 14.18 && < 15", ">= 16"],
+ "crypto": true,
+ "node:crypto": [">= 14.18 && < 15", ">= 16"],
+ "_debug_agent": ">= 1 && < 8",
+ "_debugger": "< 8",
+ "dgram": true,
+ "node:dgram": [">= 14.18 && < 15", ">= 16"],
+ "diagnostics_channel": [">= 14.17 && < 15", ">= 15.1"],
+ "node:diagnostics_channel": [">= 14.18 && < 15", ">= 16"],
+ "dns": true,
+ "node:dns": [">= 14.18 && < 15", ">= 16"],
+ "dns/promises": ">= 15",
+ "node:dns/promises": ">= 16",
+ "domain": ">= 0.7.12",
+ "node:domain": [">= 14.18 && < 15", ">= 16"],
+ "events": true,
+ "node:events": [">= 14.18 && < 15", ">= 16"],
+ "freelist": "< 6",
+ "fs": true,
+ "node:fs": [">= 14.18 && < 15", ">= 16"],
+ "fs/promises": [">= 10 && < 10.1", ">= 14"],
+ "node:fs/promises": [">= 14.18 && < 15", ">= 16"],
+ "_http_agent": ">= 0.11.1",
+ "node:_http_agent": [">= 14.18 && < 15", ">= 16"],
+ "_http_client": ">= 0.11.1",
+ "node:_http_client": [">= 14.18 && < 15", ">= 16"],
+ "_http_common": ">= 0.11.1",
+ "node:_http_common": [">= 14.18 && < 15", ">= 16"],
+ "_http_incoming": ">= 0.11.1",
+ "node:_http_incoming": [">= 14.18 && < 15", ">= 16"],
+ "_http_outgoing": ">= 0.11.1",
+ "node:_http_outgoing": [">= 14.18 && < 15", ">= 16"],
+ "_http_server": ">= 0.11.1",
+ "node:_http_server": [">= 14.18 && < 15", ">= 16"],
+ "http": true,
+ "node:http": [">= 14.18 && < 15", ">= 16"],
+ "http2": ">= 8.8",
+ "node:http2": [">= 14.18 && < 15", ">= 16"],
+ "https": true,
+ "node:https": [">= 14.18 && < 15", ">= 16"],
+ "inspector": ">= 8",
+ "node:inspector": [">= 14.18 && < 15", ">= 16"],
+ "inspector/promises": [">= 19"],
+ "node:inspector/promises": [">= 19"],
+ "_linklist": "< 8",
+ "module": true,
+ "node:module": [">= 14.18 && < 15", ">= 16"],
+ "net": true,
+ "node:net": [">= 14.18 && < 15", ">= 16"],
+ "node-inspect/lib/_inspect": ">= 7.6 && < 12",
+ "node-inspect/lib/internal/inspect_client": ">= 7.6 && < 12",
+ "node-inspect/lib/internal/inspect_repl": ">= 7.6 && < 12",
+ "os": true,
+ "node:os": [">= 14.18 && < 15", ">= 16"],
+ "path": true,
+ "node:path": [">= 14.18 && < 15", ">= 16"],
+ "path/posix": ">= 15.3",
+ "node:path/posix": ">= 16",
+ "path/win32": ">= 15.3",
+ "node:path/win32": ">= 16",
+ "perf_hooks": ">= 8.5",
+ "node:perf_hooks": [">= 14.18 && < 15", ">= 16"],
+ "process": ">= 1",
+ "node:process": [">= 14.18 && < 15", ">= 16"],
+ "punycode": ">= 0.5",
+ "node:punycode": [">= 14.18 && < 15", ">= 16"],
+ "querystring": true,
+ "node:querystring": [">= 14.18 && < 15", ">= 16"],
+ "readline": true,
+ "node:readline": [">= 14.18 && < 15", ">= 16"],
+ "readline/promises": ">= 17",
+ "node:readline/promises": ">= 17",
+ "repl": true,
+ "node:repl": [">= 14.18 && < 15", ">= 16"],
+ "node:sea": [">= 20.12 && < 21", ">= 21.7"],
+ "smalloc": ">= 0.11.5 && < 3",
+ "node:sqlite": [">= 22.13 && < 23", ">= 23.4"],
+ "_stream_duplex": ">= 0.9.4 && < 26",
+ "node:_stream_duplex": [">= 14.18 && < 15", ">= 16 && < 26"],
+ "_stream_transform": ">= 0.9.4 && < 26",
+ "node:_stream_transform": [">= 14.18 && < 15", ">= 16 && < 26"],
+ "_stream_wrap": ">= 1.4.1 && < 26",
+ "node:_stream_wrap": [">= 14.18 && < 15", ">= 16 && < 26"],
+ "_stream_passthrough": ">= 0.9.4 && < 26",
+ "node:_stream_passthrough": [">= 14.18 && < 15", ">= 16 && < 26"],
+ "_stream_readable": ">= 0.9.4 && < 26",
+ "node:_stream_readable": [">= 14.18 && < 15", ">= 16 && < 26"],
+ "_stream_writable": ">= 0.9.4 && < 26",
+ "node:_stream_writable": [">= 14.18 && < 15", ">= 16 && < 26"],
+ "stream": true,
+ "node:stream": [">= 14.18 && < 15", ">= 16"],
+ "stream/consumers": ">= 16.7",
+ "node:stream/consumers": ">= 16.7",
+ "stream/promises": ">= 15",
+ "node:stream/promises": ">= 16",
+ "stream/web": ">= 16.5",
+ "node:stream/web": ">= 16.5",
+ "string_decoder": true,
+ "node:string_decoder": [">= 14.18 && < 15", ">= 16"],
+ "sys": [">= 0.4 && < 0.7", ">= 0.8"],
+ "node:sys": [">= 14.18 && < 15", ">= 16"],
+ "test/reporters": ">= 19.9 && < 20.2",
+ "node:test/reporters": [">= 18.17 && < 19", ">= 19.9", ">= 20"],
+ "test/mock_loader": ">= 22.3 && < 22.7",
+ "node:test/mock_loader": ">= 22.3 && < 22.7",
+ "node:test": [">= 16.17 && < 17", ">= 18"],
+ "timers": true,
+ "node:timers": [">= 14.18 && < 15", ">= 16"],
+ "timers/promises": ">= 15",
+ "node:timers/promises": ">= 16",
+ "_tls_common": ">= 0.11.13",
+ "node:_tls_common": [">= 14.18 && < 15", ">= 16"],
+ "_tls_legacy": ">= 0.11.3 && < 10",
+ "_tls_wrap": ">= 0.11.3",
+ "node:_tls_wrap": [">= 14.18 && < 15", ">= 16"],
+ "tls": true,
+ "node:tls": [">= 14.18 && < 15", ">= 16"],
+ "trace_events": ">= 10",
+ "node:trace_events": [">= 14.18 && < 15", ">= 16"],
+ "tty": true,
+ "node:tty": [">= 14.18 && < 15", ">= 16"],
+ "url": true,
+ "node:url": [">= 14.18 && < 15", ">= 16"],
+ "util": true,
+ "node:util": [">= 14.18 && < 15", ">= 16"],
+ "util/types": ">= 15.3",
+ "node:util/types": ">= 16",
+ "v8/tools/arguments": ">= 10 && < 12",
+ "v8/tools/codemap": [">= 4.4 && < 5", ">= 5.2 && < 12"],
+ "v8/tools/consarray": [">= 4.4 && < 5", ">= 5.2 && < 12"],
+ "v8/tools/csvparser": [">= 4.4 && < 5", ">= 5.2 && < 12"],
+ "v8/tools/logreader": [">= 4.4 && < 5", ">= 5.2 && < 12"],
+ "v8/tools/profile_view": [">= 4.4 && < 5", ">= 5.2 && < 12"],
+ "v8/tools/splaytree": [">= 4.4 && < 5", ">= 5.2 && < 12"],
+ "v8": ">= 1",
+ "node:v8": [">= 14.18 && < 15", ">= 16"],
+ "vm": true,
+ "node:vm": [">= 14.18 && < 15", ">= 16"],
+ "wasi": [">= 13.4 && < 13.5", ">= 18.17 && < 19", ">= 20"],
+ "node:wasi": [">= 18.17 && < 19", ">= 20"],
+ "worker_threads": ">= 11.7",
+ "node:worker_threads": [">= 14.18 && < 15", ">= 16"],
+ "zlib": ">= 0.5",
+ "node:zlib": [">= 14.18 && < 15", ">= 16"]
+}
diff --git a/web/node_modules/is-core-module/index.js b/web/node_modules/is-core-module/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..423e20c0d99db50f5a1238674a4420b8bad6c9fb
--- /dev/null
+++ b/web/node_modules/is-core-module/index.js
@@ -0,0 +1,69 @@
+'use strict';
+
+var hasOwn = require('hasown');
+
+function specifierIncluded(current, specifier) {
+ var nodeParts = current.split('.');
+ var parts = specifier.split(' ');
+ var op = parts.length > 1 ? parts[0] : '=';
+ var versionParts = (parts.length > 1 ? parts[1] : parts[0]).split('.');
+
+ for (var i = 0; i < 3; ++i) {
+ var cur = parseInt(nodeParts[i] || 0, 10);
+ var ver = parseInt(versionParts[i] || 0, 10);
+ if (cur === ver) {
+ continue; // eslint-disable-line no-restricted-syntax, no-continue
+ }
+ if (op === '<') {
+ return cur < ver;
+ }
+ if (op === '>=') {
+ return cur >= ver;
+ }
+ return false;
+ }
+ return op === '>=';
+}
+
+function matchesRange(current, range) {
+ var specifiers = range.split(/ ?&& ?/);
+ if (specifiers.length === 0) {
+ return false;
+ }
+ for (var i = 0; i < specifiers.length; ++i) {
+ if (!specifierIncluded(current, specifiers[i])) {
+ return false;
+ }
+ }
+ return true;
+}
+
+function versionIncluded(nodeVersion, specifierValue) {
+ if (typeof specifierValue === 'boolean') {
+ return specifierValue;
+ }
+
+ var current = typeof nodeVersion === 'undefined'
+ ? process.versions && process.versions.node
+ : nodeVersion;
+
+ if (typeof current !== 'string') {
+ throw new TypeError(typeof nodeVersion === 'undefined' ? 'Unable to determine current node version' : 'If provided, a valid node version is required');
+ }
+
+ if (specifierValue && typeof specifierValue === 'object') {
+ for (var i = 0; i < specifierValue.length; ++i) {
+ if (matchesRange(current, specifierValue[i])) {
+ return true;
+ }
+ }
+ return false;
+ }
+ return matchesRange(current, specifierValue);
+}
+
+var data = require('./core.json');
+
+module.exports = function isCore(x, nodeVersion) {
+ return hasOwn(data, x) && versionIncluded(nodeVersion, data[x]);
+};
diff --git a/web/node_modules/is-core-module/package.json b/web/node_modules/is-core-module/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..92179cfef20108890936c4893643ed6b6189a668
--- /dev/null
+++ b/web/node_modules/is-core-module/package.json
@@ -0,0 +1,76 @@
+{
+ "name": "is-core-module",
+ "version": "2.16.2",
+ "description": "Is this specifier a node.js core module?",
+ "main": "index.js",
+ "sideEffects": false,
+ "exports": {
+ ".": "./index.js",
+ "./package.json": "./package.json"
+ },
+ "scripts": {
+ "prepack": "npmignore --auto --commentLines=autogenerated",
+ "prepublish": "not-in-publish || npm run prepublishOnly",
+ "prepublishOnly": "safe-publish-latest",
+ "lint": "eslint .",
+ "pretest": "npm run lint",
+ "tests-only": "nyc tape 'test/**/*.js'",
+ "test": "npm run tests-only",
+ "posttest": "npx npm@'>=10.2' audit --production",
+ "version": "auto-changelog && git add CHANGELOG.md",
+ "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
+ },
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/inspect-js/is-core-module.git"
+ },
+ "keywords": [
+ "core",
+ "modules",
+ "module",
+ "npm",
+ "node",
+ "dependencies"
+ ],
+ "author": "Jordan Harband ",
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ },
+ "license": "MIT",
+ "bugs": {
+ "url": "https://github.com/inspect-js/is-core-module/issues"
+ },
+ "homepage": "https://github.com/inspect-js/is-core-module",
+ "dependencies": {
+ "hasown": "^2.0.3"
+ },
+ "devDependencies": {
+ "@ljharb/eslint-config": "^22.2.3",
+ "auto-changelog": "^2.5.0",
+ "encoding": "^0.1.13",
+ "eslint": "^8.57.1",
+ "in-publish": "^2.0.1",
+ "mock-property": "^1.1.0",
+ "npmignore": "^0.3.5",
+ "nyc": "^10.3.2",
+ "safe-publish-latest": "^2.0.0",
+ "semver": "^6.3.1",
+ "tape": "^5.9.0"
+ },
+ "auto-changelog": {
+ "output": "CHANGELOG.md",
+ "template": "keepachangelog",
+ "unreleased": false,
+ "commitLimit": false,
+ "backfillLimit": false,
+ "hideCredit": true
+ },
+ "publishConfig": {
+ "ignore": [
+ ".github"
+ ]
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+}
diff --git a/web/node_modules/is-core-module/test/index.js b/web/node_modules/is-core-module/test/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..749d374b211408fef0179afe82b1d72d35a8e79c
--- /dev/null
+++ b/web/node_modules/is-core-module/test/index.js
@@ -0,0 +1,258 @@
+'use strict';
+
+var test = require('tape');
+var keys = require('object-keys');
+var semver = require('semver');
+var mockProperty = require('mock-property');
+
+var isCore = require('../');
+var data = require('../core.json');
+
+var supportsNodePrefix = semver.satisfies(process.versions.node, '^14.18 || >= 16', { includePrerelease: true });
+
+test('core modules', function (t) {
+ t.test('isCore()', function (st) {
+ st.ok(isCore('fs'));
+ st.ok(isCore('net'));
+ st.ok(isCore('http'));
+
+ st.ok(!isCore('seq'));
+ st.ok(!isCore('../'));
+
+ st.ok(!isCore('toString'));
+
+ st.end();
+ });
+
+ t.test('core list', function (st) {
+ var cores = keys(data);
+ st.plan(cores.length);
+
+ for (var i = 0; i < cores.length; ++i) {
+ var mod = cores[i];
+ var requireFunc = function () { require(mod); }; // eslint-disable-line no-loop-func
+ if (isCore(mod)) {
+ st.doesNotThrow(requireFunc, mod + ' supported; requiring does not throw');
+ } else {
+ st['throws'](requireFunc, mod + ' not supported; requiring throws');
+ }
+ }
+
+ st.end();
+ });
+
+ t.test('core via repl module', { skip: !data.repl }, function (st) {
+ var libs = require('repl')._builtinLibs; // eslint-disable-line no-underscore-dangle
+ if (!libs) {
+ st.skip('repl._builtinLibs does not exist');
+ } else {
+ for (var i = 0; i < libs.length; ++i) {
+ var mod = libs[i];
+ st.ok(data[mod], mod + ' is a core module');
+ st.doesNotThrow(
+ function () { require(mod); }, // eslint-disable-line no-loop-func
+ 'requiring ' + mod + ' does not throw'
+ );
+ if (mod.slice(0, 5) !== 'node:') {
+ if (supportsNodePrefix) {
+ st.doesNotThrow(
+ function () { require('node:' + mod); }, // eslint-disable-line no-loop-func
+ 'requiring node:' + mod + ' does not throw'
+ );
+ } else {
+ st['throws'](
+ function () { require('node:' + mod); }, // eslint-disable-line no-loop-func
+ 'requiring node:' + mod + ' throws'
+ );
+ }
+ }
+ }
+ }
+ st.end();
+ });
+
+ t.test('core via builtinModules list', { skip: !data.module }, function (st) {
+ var Module = require('module');
+ var libs = Module.builtinModules;
+ if (!libs) {
+ st.skip('module.builtinModules does not exist');
+ } else {
+ var excludeList = [
+ '_debug_agent',
+ 'v8/tools/tickprocessor-driver',
+ 'v8/tools/SourceMap',
+ 'v8/tools/tickprocessor',
+ 'v8/tools/profile'
+ ];
+
+ // see https://github.com/nodejs/node/issues/42785
+ if (semver.satisfies(process.version, '>= 18')) {
+ libs = libs.concat('node:test');
+ }
+ if (semver.satisfies(process.version, '^20.12 || >= 21.7')) {
+ libs = libs.concat('node:sea');
+ }
+ if (semver.satisfies(process.version, '>= 23.4')) {
+ libs = libs.concat('node:sqlite');
+ }
+
+ for (var i = 0; i < libs.length; ++i) {
+ var mod = libs[i];
+ if (excludeList.indexOf(mod) === -1) {
+ st.ok(data[mod], mod + ' is a core module');
+
+ if (Module.isBuiltin) {
+ st.ok(Module.isBuiltin(mod), 'module.isBuiltin(' + mod + ') is true');
+ }
+
+ st.doesNotThrow(
+ function () { require(mod); }, // eslint-disable-line no-loop-func
+ 'requiring ' + mod + ' does not throw'
+ );
+
+ if (process.getBuiltinModule) {
+ st.equal(
+ process.getBuiltinModule(mod),
+ require(mod),
+ 'process.getBuiltinModule(' + mod + ') === require(' + mod + ')'
+ );
+ }
+
+ if (mod.slice(0, 5) !== 'node:') {
+ if (supportsNodePrefix) {
+ st.doesNotThrow(
+ function () { require('node:' + mod); }, // eslint-disable-line no-loop-func
+ 'requiring node:' + mod + ' does not throw'
+ );
+ } else {
+ st['throws'](
+ function () { require('node:' + mod); }, // eslint-disable-line no-loop-func
+ 'requiring node:' + mod + ' throws'
+ );
+ }
+ }
+ }
+ }
+ }
+
+ st.end();
+ });
+
+ t.test('isCore with explicit nodeVersion', function (st) {
+ st.ok(isCore('async_hooks', '8.0.0'), 'async_hooks is core in 8.0.0 (exact match on >= specifier)');
+ st.ok(isCore('buffer_ieee754', '0.5.0'), 'buffer_ieee754 is core in 0.5.0');
+ st.ok(!isCore('buffer_ieee754', '0.9.7'), 'buffer_ieee754 is not core in 0.9.7');
+ st.ok(!isCore('buffer_ieee754', '1.0.0'), 'buffer_ieee754 is not core in 1.0.0');
+ st.ok(isCore('buffer_ieee754', '0.8.0'), 'buffer_ieee754 is core in 0.8.0');
+
+ st['throws'](
+ function () { isCore('async_hooks', null); },
+ TypeError,
+ 'isCore with non-string non-undefined nodeVersion throws TypeError'
+ );
+ st['throws'](
+ function () { isCore('async_hooks', 123); },
+ TypeError,
+ 'isCore with numeric nodeVersion throws TypeError'
+ );
+
+ st.end();
+ });
+
+ t.test('isCore with non-boolean specifier and invalid nodeVersion', function (st) {
+ st['throws'](
+ function () { isCore('async_hooks', null); },
+ TypeError,
+ 'isCore with null nodeVersion on non-boolean module throws TypeError'
+ );
+ st['throws'](
+ function () { isCore('async_hooks', 123); },
+ TypeError,
+ 'isCore with numeric nodeVersion on non-boolean module throws TypeError'
+ );
+
+ st.end();
+ });
+
+ t.test('isCore with undefined nodeVersion and non-string process.versions.node', function (st) {
+ st.teardown(mockProperty(process, 'versions', { value: { node: null } }));
+
+ st['throws'](
+ function () { isCore('async_hooks'); },
+ TypeError,
+ 'isCore throws when process.versions.node is not a string'
+ );
+
+ st.end();
+ });
+
+ t.test('isCore with undefined nodeVersion and falsy process.versions', function (st) {
+ st.teardown(mockProperty(process, 'versions', { value: null }));
+
+ st['throws'](
+ function () { isCore('async_hooks'); },
+ TypeError,
+ 'isCore throws when process.versions is falsy'
+ );
+
+ st.end();
+ });
+
+ t.test('specifierIncluded with = operator (bare version)', function (st) {
+ var testKey = '__test_equal_op';
+ data[testKey] = '14.18';
+ st.teardown(function () { delete data[testKey]; });
+
+ st.ok(!isCore(testKey, '14.17.0'), 'returns false when minor version does not match with = op');
+ st.ok(!isCore(testKey, '15.0.0'), 'returns false when major version does not match with = op');
+ st.ok(!isCore(testKey, '14.18.0'), 'returns false for exact match with = op (= is not >=)');
+
+ st.end();
+ });
+
+ t.test('isCore with short version strings', function (st) {
+ st.ok(isCore('async_hooks', '8'), 'async_hooks is core with single-part version "8"');
+ st.ok(!isCore('async_hooks', '7'), 'async_hooks is not core with single-part version "7"');
+ st.ok(isCore('cluster', '0.5'), 'cluster is core with two-part version "0.5"');
+
+ st.end();
+ });
+
+ t.test('matchesRange with empty specifiers array', function (st) {
+ var testKey = '__test_empty_split';
+ var testRange = '__test_range__';
+ data[testKey] = testRange;
+ st.teardown(function () { delete data[testKey]; });
+
+ var origSplit = String.prototype.split;
+ st.teardown(mockProperty(String.prototype, 'split', {
+ value: function () {
+ if (String(this) === testRange) {
+ return [];
+ }
+ return origSplit.apply(this, arguments);
+ }
+ }));
+
+ st.ok(!isCore(testKey, '8.0.0'), 'returns false when specifiers array is empty');
+
+ st.end();
+ });
+
+ t.test('Object.prototype pollution', function (st) {
+ var nonKey = 'not a core module';
+ st.teardown(mockProperty(Object.prototype, 'fs', { value: false }));
+ st.teardown(mockProperty(Object.prototype, 'path', { value: '>= 999999999' }));
+ st.teardown(mockProperty(Object.prototype, 'http', { value: data.http }));
+ st.teardown(mockProperty(Object.prototype, nonKey, { value: true }));
+
+ st.equal(isCore('fs'), true, 'fs is a core module even if Object.prototype lies');
+ st.equal(isCore('path'), true, 'path is a core module even if Object.prototype lies');
+ st.equal(isCore('http'), true, 'path is a core module even if Object.prototype matches data');
+ st.equal(isCore(nonKey), false, '"' + nonKey + '" is not a core module even if Object.prototype lies');
+
+ st.end();
+ });
+
+ t.end();
+});
diff --git a/web/node_modules/is-extglob/LICENSE b/web/node_modules/is-extglob/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..842218cf09a20282e926305e01162174ab371a52
--- /dev/null
+++ b/web/node_modules/is-extglob/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014-2016, Jon Schlinkert
+
+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/web/node_modules/is-extglob/README.md b/web/node_modules/is-extglob/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..0416af5c326983f8817331b7a08f1cbbe22490e5
--- /dev/null
+++ b/web/node_modules/is-extglob/README.md
@@ -0,0 +1,107 @@
+# is-extglob [](https://www.npmjs.com/package/is-extglob) [](https://npmjs.org/package/is-extglob) [](https://travis-ci.org/jonschlinkert/is-extglob)
+
+> Returns true if a string has an extglob.
+
+## Install
+
+Install with [npm](https://www.npmjs.com/):
+
+```sh
+$ npm install --save is-extglob
+```
+
+## Usage
+
+```js
+var isExtglob = require('is-extglob');
+```
+
+**True**
+
+```js
+isExtglob('?(abc)');
+isExtglob('@(abc)');
+isExtglob('!(abc)');
+isExtglob('*(abc)');
+isExtglob('+(abc)');
+```
+
+**False**
+
+Escaped extglobs:
+
+```js
+isExtglob('\\?(abc)');
+isExtglob('\\@(abc)');
+isExtglob('\\!(abc)');
+isExtglob('\\*(abc)');
+isExtglob('\\+(abc)');
+```
+
+Everything else...
+
+```js
+isExtglob('foo.js');
+isExtglob('!foo.js');
+isExtglob('*.js');
+isExtglob('**/abc.js');
+isExtglob('abc/*.js');
+isExtglob('abc/(aaa|bbb).js');
+isExtglob('abc/[a-z].js');
+isExtglob('abc/{a,b}.js');
+isExtglob('abc/?.js');
+isExtglob('abc.js');
+isExtglob('abc/def/ghi.js');
+```
+
+## History
+
+**v2.0**
+
+Adds support for escaping. Escaped exglobs no longer return true.
+
+## About
+
+### Related projects
+
+* [has-glob](https://www.npmjs.com/package/has-glob): Returns `true` if an array has a glob pattern. | [homepage](https://github.com/jonschlinkert/has-glob "Returns `true` if an array has a glob pattern.")
+* [is-glob](https://www.npmjs.com/package/is-glob): Returns `true` if the given string looks like a glob pattern or an extglob pattern… [more](https://github.com/jonschlinkert/is-glob) | [homepage](https://github.com/jonschlinkert/is-glob "Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a bet")
+* [micromatch](https://www.npmjs.com/package/micromatch): Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch. | [homepage](https://github.com/jonschlinkert/micromatch "Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch.")
+
+### Contributing
+
+Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
+
+### Building docs
+
+_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_
+
+To generate the readme and API documentation with [verb](https://github.com/verbose/verb):
+
+```sh
+$ npm install -g verb verb-generate-readme && verb
+```
+
+### Running tests
+
+Install dev dependencies:
+
+```sh
+$ npm install -d && npm test
+```
+
+### Author
+
+**Jon Schlinkert**
+
+* [github/jonschlinkert](https://github.com/jonschlinkert)
+* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
+
+### License
+
+Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).
+Released under the [MIT license](https://github.com/jonschlinkert/is-extglob/blob/master/LICENSE).
+
+***
+
+_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.1.31, on October 12, 2016._
\ No newline at end of file
diff --git a/web/node_modules/is-extglob/index.js b/web/node_modules/is-extglob/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..c1d986fc5120301c654f87ee329241190b6e1987
--- /dev/null
+++ b/web/node_modules/is-extglob/index.js
@@ -0,0 +1,20 @@
+/*!
+ * is-extglob
+ *
+ * Copyright (c) 2014-2016, Jon Schlinkert.
+ * Licensed under the MIT License.
+ */
+
+module.exports = function isExtglob(str) {
+ if (typeof str !== 'string' || str === '') {
+ return false;
+ }
+
+ var match;
+ while ((match = /(\\).|([@?!+*]\(.*\))/g.exec(str))) {
+ if (match[2]) return true;
+ str = str.slice(match.index + match[0].length);
+ }
+
+ return false;
+};
diff --git a/web/node_modules/is-extglob/package.json b/web/node_modules/is-extglob/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..7a908369d39f558028f5345dd89b27c62d4d693c
--- /dev/null
+++ b/web/node_modules/is-extglob/package.json
@@ -0,0 +1,69 @@
+{
+ "name": "is-extglob",
+ "description": "Returns true if a string has an extglob.",
+ "version": "2.1.1",
+ "homepage": "https://github.com/jonschlinkert/is-extglob",
+ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",
+ "repository": "jonschlinkert/is-extglob",
+ "bugs": {
+ "url": "https://github.com/jonschlinkert/is-extglob/issues"
+ },
+ "license": "MIT",
+ "files": [
+ "index.js"
+ ],
+ "main": "index.js",
+ "engines": {
+ "node": ">=0.10.0"
+ },
+ "scripts": {
+ "test": "mocha"
+ },
+ "devDependencies": {
+ "gulp-format-md": "^0.1.10",
+ "mocha": "^3.0.2"
+ },
+ "keywords": [
+ "bash",
+ "braces",
+ "check",
+ "exec",
+ "expression",
+ "extglob",
+ "glob",
+ "globbing",
+ "globstar",
+ "is",
+ "match",
+ "matches",
+ "pattern",
+ "regex",
+ "regular",
+ "string",
+ "test"
+ ],
+ "verb": {
+ "toc": false,
+ "layout": "default",
+ "tasks": [
+ "readme"
+ ],
+ "plugins": [
+ "gulp-format-md"
+ ],
+ "related": {
+ "list": [
+ "has-glob",
+ "is-glob",
+ "micromatch"
+ ]
+ },
+ "reflinks": [
+ "verb",
+ "verb-generate-readme"
+ ],
+ "lint": {
+ "reflinks": true
+ }
+ }
+}
diff --git a/web/node_modules/is-glob/LICENSE b/web/node_modules/is-glob/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..3f2eca18f1bc0f3117748e2cea9251e5182db2f7
--- /dev/null
+++ b/web/node_modules/is-glob/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014-2017, Jon Schlinkert.
+
+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/web/node_modules/is-glob/README.md b/web/node_modules/is-glob/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..740724b276e289aec14ee6ce99d42ab9a6eb4b48
--- /dev/null
+++ b/web/node_modules/is-glob/README.md
@@ -0,0 +1,206 @@
+# is-glob [](https://www.npmjs.com/package/is-glob) [](https://npmjs.org/package/is-glob) [](https://npmjs.org/package/is-glob) [](https://github.com/micromatch/is-glob/actions)
+
+> Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a better user experience.
+
+Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support.
+
+## Install
+
+Install with [npm](https://www.npmjs.com/):
+
+```sh
+$ npm install --save is-glob
+```
+
+You might also be interested in [is-valid-glob](https://github.com/jonschlinkert/is-valid-glob) and [has-glob](https://github.com/jonschlinkert/has-glob).
+
+## Usage
+
+```js
+var isGlob = require('is-glob');
+```
+
+### Default behavior
+
+**True**
+
+Patterns that have glob characters or regex patterns will return `true`:
+
+```js
+isGlob('!foo.js');
+isGlob('*.js');
+isGlob('**/abc.js');
+isGlob('abc/*.js');
+isGlob('abc/(aaa|bbb).js');
+isGlob('abc/[a-z].js');
+isGlob('abc/{a,b}.js');
+//=> true
+```
+
+Extglobs
+
+```js
+isGlob('abc/@(a).js');
+isGlob('abc/!(a).js');
+isGlob('abc/+(a).js');
+isGlob('abc/*(a).js');
+isGlob('abc/?(a).js');
+//=> true
+```
+
+**False**
+
+Escaped globs or extglobs return `false`:
+
+```js
+isGlob('abc/\\@(a).js');
+isGlob('abc/\\!(a).js');
+isGlob('abc/\\+(a).js');
+isGlob('abc/\\*(a).js');
+isGlob('abc/\\?(a).js');
+isGlob('\\!foo.js');
+isGlob('\\*.js');
+isGlob('\\*\\*/abc.js');
+isGlob('abc/\\*.js');
+isGlob('abc/\\(aaa|bbb).js');
+isGlob('abc/\\[a-z].js');
+isGlob('abc/\\{a,b}.js');
+//=> false
+```
+
+Patterns that do not have glob patterns return `false`:
+
+```js
+isGlob('abc.js');
+isGlob('abc/def/ghi.js');
+isGlob('foo.js');
+isGlob('abc/@.js');
+isGlob('abc/+.js');
+isGlob('abc/?.js');
+isGlob();
+isGlob(null);
+//=> false
+```
+
+Arrays are also `false` (If you want to check if an array has a glob pattern, use [has-glob](https://github.com/jonschlinkert/has-glob)):
+
+```js
+isGlob(['**/*.js']);
+isGlob(['foo.js']);
+//=> false
+```
+
+### Option strict
+
+When `options.strict === false` the behavior is less strict in determining if a pattern is a glob. Meaning that
+some patterns that would return `false` may return `true`. This is done so that matching libraries like [micromatch](https://github.com/micromatch/micromatch) have a chance at determining if the pattern is a glob or not.
+
+**True**
+
+Patterns that have glob characters or regex patterns will return `true`:
+
+```js
+isGlob('!foo.js', {strict: false});
+isGlob('*.js', {strict: false});
+isGlob('**/abc.js', {strict: false});
+isGlob('abc/*.js', {strict: false});
+isGlob('abc/(aaa|bbb).js', {strict: false});
+isGlob('abc/[a-z].js', {strict: false});
+isGlob('abc/{a,b}.js', {strict: false});
+//=> true
+```
+
+Extglobs
+
+```js
+isGlob('abc/@(a).js', {strict: false});
+isGlob('abc/!(a).js', {strict: false});
+isGlob('abc/+(a).js', {strict: false});
+isGlob('abc/*(a).js', {strict: false});
+isGlob('abc/?(a).js', {strict: false});
+//=> true
+```
+
+**False**
+
+Escaped globs or extglobs return `false`:
+
+```js
+isGlob('\\!foo.js', {strict: false});
+isGlob('\\*.js', {strict: false});
+isGlob('\\*\\*/abc.js', {strict: false});
+isGlob('abc/\\*.js', {strict: false});
+isGlob('abc/\\(aaa|bbb).js', {strict: false});
+isGlob('abc/\\[a-z].js', {strict: false});
+isGlob('abc/\\{a,b}.js', {strict: false});
+//=> false
+```
+
+## About
+
+
+Contributing
+
+Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
+
+
+
+
+Running Tests
+
+Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
+
+```sh
+$ npm install && npm test
+```
+
+
+
+
+Building docs
+
+_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_
+
+To generate the readme, run the following command:
+
+```sh
+$ npm install -g verbose/verb#dev verb-generate-readme && verb
+```
+
+
+
+### Related projects
+
+You might also be interested in these projects:
+
+* [assemble](https://www.npmjs.com/package/assemble): Get the rocks out of your socks! Assemble makes you fast at creating web projects… [more](https://github.com/assemble/assemble) | [homepage](https://github.com/assemble/assemble "Get the rocks out of your socks! Assemble makes you fast at creating web projects. Assemble is used by thousands of projects for rapid prototyping, creating themes, scaffolds, boilerplates, e-books, UI components, API documentation, blogs, building websit")
+* [base](https://www.npmjs.com/package/base): Framework for rapidly creating high quality, server-side node.js applications, using plugins like building blocks | [homepage](https://github.com/node-base/base "Framework for rapidly creating high quality, server-side node.js applications, using plugins like building blocks")
+* [update](https://www.npmjs.com/package/update): Be scalable! Update is a new, open source developer framework and CLI for automating updates… [more](https://github.com/update/update) | [homepage](https://github.com/update/update "Be scalable! Update is a new, open source developer framework and CLI for automating updates of any kind in code projects.")
+* [verb](https://www.npmjs.com/package/verb): Documentation generator for GitHub projects. Verb is extremely powerful, easy to use, and is used… [more](https://github.com/verbose/verb) | [homepage](https://github.com/verbose/verb "Documentation generator for GitHub projects. Verb is extremely powerful, easy to use, and is used on hundreds of projects of all sizes to generate everything from API docs to readmes.")
+
+### Contributors
+
+| **Commits** | **Contributor** |
+| --- | --- |
+| 47 | [jonschlinkert](https://github.com/jonschlinkert) |
+| 5 | [doowb](https://github.com/doowb) |
+| 1 | [phated](https://github.com/phated) |
+| 1 | [danhper](https://github.com/danhper) |
+| 1 | [paulmillr](https://github.com/paulmillr) |
+
+### Author
+
+**Jon Schlinkert**
+
+* [GitHub Profile](https://github.com/jonschlinkert)
+* [Twitter Profile](https://twitter.com/jonschlinkert)
+* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert)
+
+### License
+
+Copyright © 2019, [Jon Schlinkert](https://github.com/jonschlinkert).
+Released under the [MIT License](LICENSE).
+
+***
+
+_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on March 27, 2019._
\ No newline at end of file
diff --git a/web/node_modules/is-glob/index.js b/web/node_modules/is-glob/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..620f563eccf081ce0d2db2dda5c9989baf778183
--- /dev/null
+++ b/web/node_modules/is-glob/index.js
@@ -0,0 +1,150 @@
+/*!
+ * is-glob
+ *
+ * Copyright (c) 2014-2017, Jon Schlinkert.
+ * Released under the MIT License.
+ */
+
+var isExtglob = require('is-extglob');
+var chars = { '{': '}', '(': ')', '[': ']'};
+var strictCheck = function(str) {
+ if (str[0] === '!') {
+ return true;
+ }
+ var index = 0;
+ var pipeIndex = -2;
+ var closeSquareIndex = -2;
+ var closeCurlyIndex = -2;
+ var closeParenIndex = -2;
+ var backSlashIndex = -2;
+ while (index < str.length) {
+ if (str[index] === '*') {
+ return true;
+ }
+
+ if (str[index + 1] === '?' && /[\].+)]/.test(str[index])) {
+ return true;
+ }
+
+ if (closeSquareIndex !== -1 && str[index] === '[' && str[index + 1] !== ']') {
+ if (closeSquareIndex < index) {
+ closeSquareIndex = str.indexOf(']', index);
+ }
+ if (closeSquareIndex > index) {
+ if (backSlashIndex === -1 || backSlashIndex > closeSquareIndex) {
+ return true;
+ }
+ backSlashIndex = str.indexOf('\\', index);
+ if (backSlashIndex === -1 || backSlashIndex > closeSquareIndex) {
+ return true;
+ }
+ }
+ }
+
+ if (closeCurlyIndex !== -1 && str[index] === '{' && str[index + 1] !== '}') {
+ closeCurlyIndex = str.indexOf('}', index);
+ if (closeCurlyIndex > index) {
+ backSlashIndex = str.indexOf('\\', index);
+ if (backSlashIndex === -1 || backSlashIndex > closeCurlyIndex) {
+ return true;
+ }
+ }
+ }
+
+ if (closeParenIndex !== -1 && str[index] === '(' && str[index + 1] === '?' && /[:!=]/.test(str[index + 2]) && str[index + 3] !== ')') {
+ closeParenIndex = str.indexOf(')', index);
+ if (closeParenIndex > index) {
+ backSlashIndex = str.indexOf('\\', index);
+ if (backSlashIndex === -1 || backSlashIndex > closeParenIndex) {
+ return true;
+ }
+ }
+ }
+
+ if (pipeIndex !== -1 && str[index] === '(' && str[index + 1] !== '|') {
+ if (pipeIndex < index) {
+ pipeIndex = str.indexOf('|', index);
+ }
+ if (pipeIndex !== -1 && str[pipeIndex + 1] !== ')') {
+ closeParenIndex = str.indexOf(')', pipeIndex);
+ if (closeParenIndex > pipeIndex) {
+ backSlashIndex = str.indexOf('\\', pipeIndex);
+ if (backSlashIndex === -1 || backSlashIndex > closeParenIndex) {
+ return true;
+ }
+ }
+ }
+ }
+
+ if (str[index] === '\\') {
+ var open = str[index + 1];
+ index += 2;
+ var close = chars[open];
+
+ if (close) {
+ var n = str.indexOf(close, index);
+ if (n !== -1) {
+ index = n + 1;
+ }
+ }
+
+ if (str[index] === '!') {
+ return true;
+ }
+ } else {
+ index++;
+ }
+ }
+ return false;
+};
+
+var relaxedCheck = function(str) {
+ if (str[0] === '!') {
+ return true;
+ }
+ var index = 0;
+ while (index < str.length) {
+ if (/[*?{}()[\]]/.test(str[index])) {
+ return true;
+ }
+
+ if (str[index] === '\\') {
+ var open = str[index + 1];
+ index += 2;
+ var close = chars[open];
+
+ if (close) {
+ var n = str.indexOf(close, index);
+ if (n !== -1) {
+ index = n + 1;
+ }
+ }
+
+ if (str[index] === '!') {
+ return true;
+ }
+ } else {
+ index++;
+ }
+ }
+ return false;
+};
+
+module.exports = function isGlob(str, options) {
+ if (typeof str !== 'string' || str === '') {
+ return false;
+ }
+
+ if (isExtglob(str)) {
+ return true;
+ }
+
+ var check = strictCheck;
+
+ // optionally relax check
+ if (options && options.strict === false) {
+ check = relaxedCheck;
+ }
+
+ return check(str);
+};
diff --git a/web/node_modules/is-glob/package.json b/web/node_modules/is-glob/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..858af0378e9d36813353b51271aec88ee0d3328b
--- /dev/null
+++ b/web/node_modules/is-glob/package.json
@@ -0,0 +1,81 @@
+{
+ "name": "is-glob",
+ "description": "Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a better user experience.",
+ "version": "4.0.3",
+ "homepage": "https://github.com/micromatch/is-glob",
+ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",
+ "contributors": [
+ "Brian Woodward (https://twitter.com/doowb)",
+ "Daniel Perez (https://tuvistavie.com)",
+ "Jon Schlinkert (http://twitter.com/jonschlinkert)"
+ ],
+ "repository": "micromatch/is-glob",
+ "bugs": {
+ "url": "https://github.com/micromatch/is-glob/issues"
+ },
+ "license": "MIT",
+ "files": [
+ "index.js"
+ ],
+ "main": "index.js",
+ "engines": {
+ "node": ">=0.10.0"
+ },
+ "scripts": {
+ "test": "mocha && node benchmark.js"
+ },
+ "dependencies": {
+ "is-extglob": "^2.1.1"
+ },
+ "devDependencies": {
+ "gulp-format-md": "^0.1.10",
+ "mocha": "^3.0.2"
+ },
+ "keywords": [
+ "bash",
+ "braces",
+ "check",
+ "exec",
+ "expression",
+ "extglob",
+ "glob",
+ "globbing",
+ "globstar",
+ "is",
+ "match",
+ "matches",
+ "pattern",
+ "regex",
+ "regular",
+ "string",
+ "test"
+ ],
+ "verb": {
+ "layout": "default",
+ "plugins": [
+ "gulp-format-md"
+ ],
+ "related": {
+ "list": [
+ "assemble",
+ "base",
+ "update",
+ "verb"
+ ]
+ },
+ "reflinks": [
+ "assemble",
+ "bach",
+ "base",
+ "composer",
+ "gulp",
+ "has-glob",
+ "is-valid-glob",
+ "micromatch",
+ "npm",
+ "scaffold",
+ "verb",
+ "vinyl"
+ ]
+ }
+}
diff --git a/web/node_modules/is-number/LICENSE b/web/node_modules/is-number/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..9af4a67d206f24ecdbb5fdff2839041ca0bbd346
--- /dev/null
+++ b/web/node_modules/is-number/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014-present, Jon Schlinkert.
+
+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/web/node_modules/is-number/README.md b/web/node_modules/is-number/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..eb8149e8cf5f148f16ba21b2d5b452e19f984696
--- /dev/null
+++ b/web/node_modules/is-number/README.md
@@ -0,0 +1,187 @@
+# is-number [](https://www.npmjs.com/package/is-number) [](https://npmjs.org/package/is-number) [](https://npmjs.org/package/is-number) [](https://travis-ci.org/jonschlinkert/is-number)
+
+> Returns true if the value is a finite number.
+
+Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support.
+
+## Install
+
+Install with [npm](https://www.npmjs.com/):
+
+```sh
+$ npm install --save is-number
+```
+
+## Why is this needed?
+
+In JavaScript, it's not always as straightforward as it should be to reliably check if a value is a number. It's common for devs to use `+`, `-`, or `Number()` to cast a string value to a number (for example, when values are returned from user input, regex matches, parsers, etc). But there are many non-intuitive edge cases that yield unexpected results:
+
+```js
+console.log(+[]); //=> 0
+console.log(+''); //=> 0
+console.log(+' '); //=> 0
+console.log(typeof NaN); //=> 'number'
+```
+
+This library offers a performant way to smooth out edge cases like these.
+
+## Usage
+
+```js
+const isNumber = require('is-number');
+```
+
+See the [tests](./test.js) for more examples.
+
+### true
+
+```js
+isNumber(5e3); // true
+isNumber(0xff); // true
+isNumber(-1.1); // true
+isNumber(0); // true
+isNumber(1); // true
+isNumber(1.1); // true
+isNumber(10); // true
+isNumber(10.10); // true
+isNumber(100); // true
+isNumber('-1.1'); // true
+isNumber('0'); // true
+isNumber('012'); // true
+isNumber('0xff'); // true
+isNumber('1'); // true
+isNumber('1.1'); // true
+isNumber('10'); // true
+isNumber('10.10'); // true
+isNumber('100'); // true
+isNumber('5e3'); // true
+isNumber(parseInt('012')); // true
+isNumber(parseFloat('012')); // true
+```
+
+### False
+
+Everything else is false, as you would expect:
+
+```js
+isNumber(Infinity); // false
+isNumber(NaN); // false
+isNumber(null); // false
+isNumber(undefined); // false
+isNumber(''); // false
+isNumber(' '); // false
+isNumber('foo'); // false
+isNumber([1]); // false
+isNumber([]); // false
+isNumber(function () {}); // false
+isNumber({}); // false
+```
+
+## Release history
+
+### 7.0.0
+
+* Refactor. Now uses `.isFinite` if it exists.
+* Performance is about the same as v6.0 when the value is a string or number. But it's now 3x-4x faster when the value is not a string or number.
+
+### 6.0.0
+
+* Optimizations, thanks to @benaadams.
+
+### 5.0.0
+
+**Breaking changes**
+
+* removed support for `instanceof Number` and `instanceof String`
+
+## Benchmarks
+
+As with all benchmarks, take these with a grain of salt. See the [benchmarks](./benchmark/index.js) for more detail.
+
+```
+# all
+v7.0 x 413,222 ops/sec ±2.02% (86 runs sampled)
+v6.0 x 111,061 ops/sec ±1.29% (85 runs sampled)
+parseFloat x 317,596 ops/sec ±1.36% (86 runs sampled)
+fastest is 'v7.0'
+
+# string
+v7.0 x 3,054,496 ops/sec ±1.05% (89 runs sampled)
+v6.0 x 2,957,781 ops/sec ±0.98% (88 runs sampled)
+parseFloat x 3,071,060 ops/sec ±1.13% (88 runs sampled)
+fastest is 'parseFloat,v7.0'
+
+# number
+v7.0 x 3,146,895 ops/sec ±0.89% (89 runs sampled)
+v6.0 x 3,214,038 ops/sec ±1.07% (89 runs sampled)
+parseFloat x 3,077,588 ops/sec ±1.07% (87 runs sampled)
+fastest is 'v6.0'
+```
+
+## About
+
+
+Contributing
+
+Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
+
+
+
+
+Running Tests
+
+Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
+
+```sh
+$ npm install && npm test
+```
+
+
+
+
+Building docs
+
+_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_
+
+To generate the readme, run the following command:
+
+```sh
+$ npm install -g verbose/verb#dev verb-generate-readme && verb
+```
+
+
+
+### Related projects
+
+You might also be interested in these projects:
+
+* [is-plain-object](https://www.npmjs.com/package/is-plain-object): Returns true if an object was created by the `Object` constructor. | [homepage](https://github.com/jonschlinkert/is-plain-object "Returns true if an object was created by the `Object` constructor.")
+* [is-primitive](https://www.npmjs.com/package/is-primitive): Returns `true` if the value is a primitive. | [homepage](https://github.com/jonschlinkert/is-primitive "Returns `true` if the value is a primitive. ")
+* [isobject](https://www.npmjs.com/package/isobject): Returns true if the value is an object and not an array or null. | [homepage](https://github.com/jonschlinkert/isobject "Returns true if the value is an object and not an array or null.")
+* [kind-of](https://www.npmjs.com/package/kind-of): Get the native type of a value. | [homepage](https://github.com/jonschlinkert/kind-of "Get the native type of a value.")
+
+### Contributors
+
+| **Commits** | **Contributor** |
+| --- | --- |
+| 49 | [jonschlinkert](https://github.com/jonschlinkert) |
+| 5 | [charlike-old](https://github.com/charlike-old) |
+| 1 | [benaadams](https://github.com/benaadams) |
+| 1 | [realityking](https://github.com/realityking) |
+
+### Author
+
+**Jon Schlinkert**
+
+* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert)
+* [GitHub Profile](https://github.com/jonschlinkert)
+* [Twitter Profile](https://twitter.com/jonschlinkert)
+
+### License
+
+Copyright © 2018, [Jon Schlinkert](https://github.com/jonschlinkert).
+Released under the [MIT License](LICENSE).
+
+***
+
+_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on June 15, 2018._
\ No newline at end of file
diff --git a/web/node_modules/is-number/index.js b/web/node_modules/is-number/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..27f19b757f7c1186b92c405a213bf0dd9b6cbe95
--- /dev/null
+++ b/web/node_modules/is-number/index.js
@@ -0,0 +1,18 @@
+/*!
+ * is-number
+ *
+ * Copyright (c) 2014-present, Jon Schlinkert.
+ * Released under the MIT License.
+ */
+
+'use strict';
+
+module.exports = function(num) {
+ if (typeof num === 'number') {
+ return num - num === 0;
+ }
+ if (typeof num === 'string' && num.trim() !== '') {
+ return Number.isFinite ? Number.isFinite(+num) : isFinite(+num);
+ }
+ return false;
+};
diff --git a/web/node_modules/is-number/package.json b/web/node_modules/is-number/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..3715072609d61a010bff7116331b71f04206af96
--- /dev/null
+++ b/web/node_modules/is-number/package.json
@@ -0,0 +1,82 @@
+{
+ "name": "is-number",
+ "description": "Returns true if a number or string value is a finite number. Useful for regex matches, parsing, user input, etc.",
+ "version": "7.0.0",
+ "homepage": "https://github.com/jonschlinkert/is-number",
+ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",
+ "contributors": [
+ "Jon Schlinkert (http://twitter.com/jonschlinkert)",
+ "Olsten Larck (https://i.am.charlike.online)",
+ "Rouven Weßling (www.rouvenwessling.de)"
+ ],
+ "repository": "jonschlinkert/is-number",
+ "bugs": {
+ "url": "https://github.com/jonschlinkert/is-number/issues"
+ },
+ "license": "MIT",
+ "files": [
+ "index.js"
+ ],
+ "main": "index.js",
+ "engines": {
+ "node": ">=0.12.0"
+ },
+ "scripts": {
+ "test": "mocha"
+ },
+ "devDependencies": {
+ "ansi": "^0.3.1",
+ "benchmark": "^2.1.4",
+ "gulp-format-md": "^1.0.0",
+ "mocha": "^3.5.3"
+ },
+ "keywords": [
+ "cast",
+ "check",
+ "coerce",
+ "coercion",
+ "finite",
+ "integer",
+ "is",
+ "isnan",
+ "is-nan",
+ "is-num",
+ "is-number",
+ "isnumber",
+ "isfinite",
+ "istype",
+ "kind",
+ "math",
+ "nan",
+ "num",
+ "number",
+ "numeric",
+ "parseFloat",
+ "parseInt",
+ "test",
+ "type",
+ "typeof",
+ "value"
+ ],
+ "verb": {
+ "toc": false,
+ "layout": "default",
+ "tasks": [
+ "readme"
+ ],
+ "related": {
+ "list": [
+ "is-plain-object",
+ "is-primitive",
+ "isobject",
+ "kind-of"
+ ]
+ },
+ "plugins": [
+ "gulp-format-md"
+ ],
+ "lint": {
+ "reflinks": true
+ }
+ }
+}
diff --git a/web/node_modules/jiti/LICENSE b/web/node_modules/jiti/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..e739abce461d8b2899aaec6529a4af24a417e0fc
--- /dev/null
+++ b/web/node_modules/jiti/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) Pooya Parsa
+
+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/web/node_modules/jiti/README.md b/web/node_modules/jiti/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..b3af4838b8a4e583c266a318422aa5755065d862
--- /dev/null
+++ b/web/node_modules/jiti/README.md
@@ -0,0 +1,258 @@
+# jiti
+
+
+
+[](https://npmjs.com/package/jiti)
+[](https://npmjs.com/package/jiti)
+[](https://bundlephobia.com/package/jiti)
+
+
+
+> This is the active development branch. Check out [jiti/v1](https://github.com/unjs/jiti/tree/v1) for legacy v1 docs and code.
+
+## 🌟 Used in
+
+[Docusaurus](https://docusaurus.io/), [ESLint](https://github.com/eslint/eslint), [FormKit](https://formkit.com/), [Histoire](https://histoire.dev/), [Knip](https://knip.dev/), [Nitro](https://nitro.unjs.io/), [Nuxt](https://nuxt.com/), [PostCSS loader](https://github.com/webpack-contrib/postcss-loader), [Rsbuild](https://rsbuild.dev/), [Size Limit](https://github.com/ai/size-limit), [Slidev](https://sli.dev/), [Tailwindcss](https://tailwindcss.com/), [Tokenami](https://github.com/tokenami/tokenami), [UnoCSS](https://unocss.dev/), [WXT](https://wxt.dev/), [Winglang](https://www.winglang.io/), [Graphql code generator](https://the-guild.dev/graphql/codegen), [Lingui](https://lingui.dev/), [Scaffdog](https://scaff.dog/), [Storybook](https://storybook.js.org), [...UnJS ecosystem](https://unjs.io/), [...60M+ npm monthly downloads](https://npm.chart.dev/jiti), [...6M+ public repositories](https://github.com/unjs/jiti/network/dependents).
+
+## ✅ Features
+
+- Seamless TypeScript and ESM syntax support for Node.js
+- Seamless interoperability between ESM and CommonJS
+- Asynchronous API to replace `import()`
+- Synchronous API to replace `require()` (deprecated)
+- Super slim and zero dependency
+- Custom resolve aliases
+- Smart syntax detection to avoid extra transforms
+- Node.js native `require.cache` integration
+- Filesystem transpile with hard disk caches
+- ESM Loader support
+- JSX support (opt-in)
+
+> [!IMPORTANT]
+> To enhance compatibility, jiti `>=2.1` enabled [`interopDefault`](#interopdefault) using a new Proxy method. If you migrated to `2.0.0` earlier, this might have caused behavior changes. In case of any issues during the upgrade, please [report](https://github.com/unjs/jiti/issues) so we can investigate to solve them. 🙏🏼
+
+## 💡 Usage
+
+### CLI
+
+You can use `jiti` CLI to quickly run any script with TypeScript and native ESM support!
+
+```bash
+npx jiti ./index.ts
+```
+
+### Programmatic
+
+Initialize a jiti instance:
+
+```js
+// ESM
+import { createJiti } from "jiti";
+const jiti = createJiti(import.meta.url);
+
+// CommonJS (deprecated)
+const { createJiti } = require("jiti");
+const jiti = createJiti(__filename);
+```
+
+Import (async) and resolve with ESM compatibility:
+
+```js
+// jiti.import(id) is similar to import(id)
+const mod = await jiti.import("./path/to/file.ts");
+
+// jiti.esmResolve(id) is similar to import.meta.resolve(id)
+const resolvedPath = jiti.esmResolve("./src");
+```
+
+If you need the default export of module, you can use `jiti.import(id, { default: true })` as shortcut to `mod?.default ?? mod`.
+
+```js
+// shortcut to mod?.default ?? mod
+const modDefault = await jiti.import("./path/to/file.ts", { default: true });
+```
+
+CommonJS (sync & deprecated):
+
+```js
+// jiti() is similar to require(id)
+const mod = jiti("./path/to/file.ts");
+
+// jiti.resolve() is similar to require.resolve(id)
+const resolvedPath = jiti.resolve("./src");
+```
+
+You can also pass options as the second argument:
+
+```js
+const jiti = createJiti(import.meta.url, { debug: true });
+```
+
+### Register global ESM loader
+
+You can globally register jiti using [global hooks](https://nodejs.org/api/module.html#initialize). (Important: Requires Node.js > 20)
+
+```js
+import "jiti/register";
+```
+
+Or:
+
+```bash
+node --import jiti/register index.ts
+```
+
+## 🎈 `jiti/native`
+
+You can alias `jiti` to `jiti/native` to directly depend on runtime's [`import.meta.resolve`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import.meta/resolve) and dynamic [`import()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import) support. This allows easing up the ecosystem transition to runtime native support by giving the same API of jiti.
+
+## ⚙️ Options
+
+### `debug`
+
+- Type: Boolean
+- Default: `false`
+- Environment variable: `JITI_DEBUG`
+
+Enable verbose logging. You can use `JITI_DEBUG=1 ` to enable it.
+
+### `fsCache`
+
+- Type: Boolean | String
+- Default: `true`
+- Environment variable: `JITI_FS_CACHE`
+
+Filesystem source cache (enabled by default)
+
+By default (when is `true`), jiti uses `node_modules/.cache/jiti` (if exists) or `{TMP_DIR}/jiti`.
+
+**Note:** It is recommended that this option be enabled for better performance.
+
+### `rebuildFsCache`
+
+- Type: Boolean
+- Default: `false`
+- Environment variable: `JITI_REBUILD_FS_CACHE`
+
+Rebuild filesystem source cache created by `fsCache`.
+
+### `moduleCache`
+
+- Type: String
+- Default: `true`
+- Environment variable: `JITI_MODULE_CACHE`
+
+Runtime module cache (enabled by default).
+
+Disabling allows editing code and importing the same module multiple times.
+
+When enabled, jiti integrates with Node.js native CommonJS cache-store.
+
+### `transform`
+
+- Type: Function
+- Default: Babel (lazy loaded)
+
+Transform function. See [src/babel](./src/babel.ts) for more details
+
+### `sourceMaps`
+
+- Type: Boolean
+- Default `false`
+- Environment variable: `JITI_SOURCE_MAPS`
+
+Add inline source map to transformed source for better debugging.
+
+### `interopDefault`
+
+- Type: Boolean
+- Default: `true`
+- Environment variable: `JITI_INTEROP_DEFAULT`
+
+Jiti combines module exports with the `default` export using an internal Proxy to improve compatibility with mixed CJS/ESM usage. You can check the current implementation [here](https://github.com/unjs/jiti/blob/main/src/utils.ts#L105).
+
+> [!WARNING]
+> This option wraps **all imported modules** in a Proxy, which adds ~25-50ns overhead per property access. For performance-critical hot paths where you access module exports very frequently, consider setting `interopDefault: false` or `JITI_INTEROP_DEFAULT=false`.
+
+### `alias`
+
+- Type: Object
+- Default: -
+- Environment variable: `JITI_ALIAS`
+
+You can also pass an object to the environment variable for inline config. Example: `JITI_ALIAS='{"~/*": "./src/*"}' jiti ...`.
+
+Custom alias map used to resolve IDs.
+
+### `tsconfigPaths`
+
+- Type: Boolean | String
+- Default: `false`
+- Environment variable: `JITI_TSCONFIG_PATHS`
+
+Enable TypeScript [`paths`](https://www.typescriptlang.org/tsconfig/#paths) resolution using [`get-tsconfig`](https://github.com/privatenumber/get-tsconfig).
+
+- `true`: Auto-discover `tsconfig.json` by walking up from the jiti instance's parent path.
+- `string`: Explicit path to a `tsconfig.json` file.
+- `false` (default): Disabled.
+
+### `nativeModules`
+
+- Type: Array
+- Default: ['typescript']
+- Environment variable: `JITI_NATIVE_MODULES`
+
+List of modules (within `node_modules`) to always use native `require()` for them.
+
+### `transformModules`
+
+- Type: Array
+- Default: []
+- Environment variable: `JITI_TRANSFORM_MODULES`
+
+List of modules (within `node_modules`) to transform them regardless of syntax.
+
+### `importMeta`
+
+Parent module's [`import.meta`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import.meta) context to use for ESM resolution. (only used for `jiti/native` import).
+
+### `tryNative`
+
+- Type: Boolean
+- Default: Enabled if bun is detected
+- Environment variable: `JITI_TRY_NATIVE`
+
+Try to use native require and import without jiti transformations first.
+
+### `jsx`
+
+- Type: Boolean | {options}
+- Default: `false`
+- Environment Variable: `JITI_JSX`
+
+Enable JSX support using [`@babel/plugin-transform-react-jsx`](https://babeljs.io/docs/babel-plugin-transform-react-jsx).
+
+See [`test/fixtures/jsx`](./test/fixtures/jsx) for framework integration examples.
+
+## Development
+
+- Clone this repository
+- Enable [Corepack](https://github.com/nodejs/corepack) using `corepack enable`
+- Install dependencies using `pnpm install`
+- Run `pnpm dev`
+- Run `pnpm jiti ./test/path/to/file.ts`
+
+## License
+
+
+
+Published under the [MIT](https://github.com/unjs/jiti/blob/main/LICENSE) license.
+Made by [@pi0](https://github.com/pi0) and [community](https://github.com/unjs/jiti/graphs/contributors) 💛
+
+
+
+
+
+
+
+
diff --git a/web/node_modules/jiti/dist/babel.cjs b/web/node_modules/jiti/dist/babel.cjs
new file mode 100644
index 0000000000000000000000000000000000000000..1e6b684f9f1586231c56a19aaebeacccda2aad4d
--- /dev/null
+++ b/web/node_modules/jiti/dist/babel.cjs
@@ -0,0 +1,257 @@
+(()=>{var e={"./node_modules/.pnpm/@babel+core@7.29.0/node_modules/@babel/core/lib/config/files lazy recursive"(e){function webpackEmptyAsyncContext(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}webpackEmptyAsyncContext.keys=()=>[],webpackEmptyAsyncContext.resolve=webpackEmptyAsyncContext,webpackEmptyAsyncContext.id="./node_modules/.pnpm/@babel+core@7.29.0/node_modules/@babel/core/lib/config/files lazy recursive",e.exports=webpackEmptyAsyncContext},"./node_modules/.pnpm/@babel+core@7.29.0/node_modules/@babel/core/lib/config/files sync recursive"(e){function webpackEmptyContext(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}webpackEmptyContext.keys=()=>[],webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id="./node_modules/.pnpm/@babel+core@7.29.0/node_modules/@babel/core/lib/config/files sync recursive",e.exports=webpackEmptyContext},"./node_modules/.pnpm/@babel+plugin-syntax-class-properties@7.12.13_@babel+core@7.29.0/node_modules/@babel/plugin-syntax-class-properties/lib/index.js"(e,t,r){"use strict";t.A=void 0;var n=(0,r("./node_modules/.pnpm/@babel+helper-plugin-utils@7.28.6/node_modules/@babel/helper-plugin-utils/lib/index.js").declare)(e=>(e.assertVersion(7),{name:"syntax-class-properties",manipulateOptions(e,t){t.plugins.push("classProperties","classPrivateProperties","classPrivateMethods")}}));t.A=n},"./node_modules/.pnpm/@jridgewell+gen-mapping@0.3.13/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js"(e,t,r){var n;!function(e,t,r){"use strict";var n=Object.create,s=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,a=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,__commonJS=(e,t)=>function(){return t||(0,e[o(e)[0]])((t={exports:{}}).exports,t),t.exports},__export=(e,t)=>{for(var r in t)s(e,r,{get:t[r],enumerable:!0})},__copyProps=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of o(t))l.call(e,a)||a===r||s(e,a,{get:()=>t[a],enumerable:!(n=i(t,a))||n.enumerable});return e},__toESM=(e,t,r)=>(r=null!=e?n(a(e)):{},__copyProps(!t&&e&&e.__esModule?r:s(r,"default",{value:e,enumerable:!0}),e)),__toCommonJS=e=>__copyProps(s({},"__esModule",{value:!0}),e),p=__commonJS({"umd:@jridgewell/sourcemap-codec"(e,r){r.exports=t}}),c=__commonJS({"umd:@jridgewell/trace-mapping"(e,t){t.exports=r}}),u={};__export(u,{GenMapping:()=>E,addMapping:()=>addMapping,addSegment:()=>addSegment,allMappings:()=>allMappings,fromMap:()=>fromMap,maybeAddMapping:()=>maybeAddMapping,maybeAddSegment:()=>maybeAddSegment,setIgnore:()=>setIgnore,setSourceContent:()=>setSourceContent,toDecodedMap:()=>toDecodedMap,toEncodedMap:()=>toEncodedMap}),e.exports=__toCommonJS(u);var d=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function cast(e){return e}function get(e,t){return cast(e)._indexes[t]}function put(e,t){const r=get(e,t);if(void 0!==r)return r;const{array:n,_indexes:s}=cast(e),i=n.push(t);return s[t]=i-1}function remove(e,t){const r=get(e,t);if(void 0===r)return;const{array:n,_indexes:s}=cast(e);for(let e=r+1;eaddSegmentInternal(!0,e,t,r,n,s,i,o,a),maybeAddMapping=(e,t)=>addMappingInternal(!0,e,t);function setSourceContent(e,t,r){const{_sources:n,_sourcesContent:s}=cast2(e);s[put(n,t)]=r}function setIgnore(e,t,r=!0){const{_sources:n,_sourcesContent:s,_ignoreList:i}=cast2(e),o=put(n,t);o===s.length&&(s[o]=null),r?put(i,o):remove(i,o)}function toDecodedMap(e){const{_mappings:t,_sources:r,_sourcesContent:n,_names:s,_ignoreList:i}=cast2(e);return removeEmptyFinalLines(t),{version:3,file:e.file||void 0,names:s.array,sourceRoot:e.sourceRoot||void 0,sources:r.array,sourcesContent:n,mappings:t,ignoreList:i.array}}function toEncodedMap(e){const t=toDecodedMap(e);return Object.assign({},t,{mappings:(0,h.encode)(t.mappings)})}function fromMap(e){const t=new m.TraceMap(e),r=new E({file:t.file,sourceRoot:t.sourceRoot});return putAll(cast2(r)._names,t.names),putAll(cast2(r)._sources,t.sources),cast2(r)._sourcesContent=t.sourcesContent||t.sources.map(()=>null),cast2(r)._mappings=(0,m.decodedMappings)(t),t.ignoreList&&putAll(cast2(r)._ignoreList,t.ignoreList),r}function allMappings(e){const t=[],{_mappings:r,_sources:n,_names:s}=cast2(e);for(let e=0;e=0&&!(t>=e[n][f]);r=n--);return r}function insert(e,t,r){for(let r=e.length;r>t;r--)e[r]=e[r-1];e[t]=r}function removeEmptyFinalLines(e){const{length:t}=e;let r=t;for(let t=r-1;t>=0&&!(e[t].length>0);r=t,t--);rfunction(){return t||(0,e[o(e)[0]])((t={exports:{}}).exports,t),t.exports},__export=(e,t)=>{for(var r in t)s(e,r,{get:t[r],enumerable:!0})},__copyProps=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of o(t))l.call(e,a)||a===r||s(e,a,{get:()=>t[a],enumerable:!(n=i(t,a))||n.enumerable});return e},__toESM=(e,t,r)=>(r=null!=e?n(a(e)):{},__copyProps(!t&&e&&e.__esModule?r:s(r,"default",{value:e,enumerable:!0}),e)),__toCommonJS=e=>__copyProps(s({},"__esModule",{value:!0}),e),p=__commonJS({"umd:@jridgewell/trace-mapping"(e,t){t.exports=r}}),c=__commonJS({"umd:@jridgewell/gen-mapping"(e,r){r.exports=t}}),u={};__export(u,{default:()=>remapping}),e.exports=__toCommonJS(u);var d=__toESM(p()),h=__toESM(c()),m=__toESM(p()),f=SegmentObject("",-1,-1,"",null,!1),y=[];function SegmentObject(e,t,r,n,s,i){return{source:e,line:t,column:r,name:n,content:s,ignore:i}}function Source(e,t,r,n,s){return{map:e,sources:t,source:r,content:n,ignore:s}}function MapSource(e,t){return Source(e,t,"",null,!1)}function OriginalSource(e,t,r){return Source(null,y,e,t,r)}function traceMappings(e){const t=new h.GenMapping({file:e.map.file}),{sources:r,map:n}=e,s=n.names,i=(0,m.decodedMappings)(n);for(let e=0;enew d.TraceMap(e,"")),n=r.pop();for(let e=0;e1)throw new Error(`Transformation map ${e} must have exactly one source file.\nDid you specify these with the most recent transformation maps first?`);let s=build(n,t,"",0);for(let e=r.length-1;e>=0;e--)s=MapSource(r[e],[s]);return s}function build(e,t,r,n){const{resolvedSources:s,sourcesContent:i,ignoreList:o}=e,a=n+1;return MapSource(e,s.map((e,n)=>{const s={importer:r,depth:a,source:e||"",content:void 0,ignore:void 0},l=t(s.source,s),{source:p,content:c,ignore:u}=s;return l?build(new d.TraceMap(l,p),t,p,a):OriginalSource(p,void 0!==c?c:i?i[n]:null,void 0!==u?u:!!o&&o.includes(n))}))}var b=__toESM(c()),g=class{constructor(e,t){const r=t.decodedMappings?(0,b.toDecodedMap)(e):(0,b.toEncodedMap)(e);this.version=r.version,this.file=r.file,this.mappings=r.mappings,this.names=r.names,this.ignoreList=r.ignoreList,this.sourceRoot=r.sourceRoot,this.sources=r.sources,t.excludeContent||(this.sourcesContent=r.sourcesContent)}toString(){return JSON.stringify(this)}};function remapping(e,t,r){const n="object"==typeof r?r:{excludeContent:!!r,decodedMappings:!1},s=buildSourceMapTree(e,t);return new g(traceMappings(s),n)}}(e=r.nmd(e),r("./node_modules/.pnpm/@jridgewell+gen-mapping@0.3.13/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js"),r("./node_modules/.pnpm/@jridgewell+trace-mapping@0.3.31/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js")),e.exports="default"in(n=e).exports?n.exports.default:n.exports},"./node_modules/.pnpm/@jridgewell+resolve-uri@3.1.2/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js"(e){e.exports=function(){"use strict";const e=/^[\w+.-]+:\/\//,t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,r=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function isAbsoluteUrl(t){return e.test(t)}function isSchemeRelativeUrl(e){return e.startsWith("//")}function isAbsolutePath(e){return e.startsWith("/")}function isFileUrl(e){return e.startsWith("file:")}function isRelative(e){return/^[.?#]/.test(e)}function parseAbsoluteUrl(e){const r=t.exec(e);return makeUrl(r[1],r[2]||"",r[3],r[4]||"",r[5]||"/",r[6]||"",r[7]||"")}function parseFileUrl(e){const t=r.exec(e),n=t[2];return makeUrl("file:","",t[1]||"","",isAbsolutePath(n)?n:"/"+n,t[3]||"",t[4]||"")}function makeUrl(e,t,r,n,s,i,o){return{scheme:e,user:t,host:r,port:n,path:s,query:i,hash:o,type:7}}function parseUrl(e){if(isSchemeRelativeUrl(e)){const t=parseAbsoluteUrl("http:"+e);return t.scheme="",t.type=6,t}if(isAbsolutePath(e)){const t=parseAbsoluteUrl("http://foo.com"+e);return t.scheme="",t.host="",t.type=5,t}if(isFileUrl(e))return parseFileUrl(e);if(isAbsoluteUrl(e))return parseAbsoluteUrl(e);const t=parseAbsoluteUrl("http://foo.com/"+e);return t.scheme="",t.host="",t.type=e?e.startsWith("?")?3:e.startsWith("#")?2:4:1,t}function stripPathFilename(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}function mergePaths(e,t){normalizePath(t,t.type),"/"===e.path?e.path=t.path:e.path=stripPathFilename(t.path)+e.path}function normalizePath(e,t){const r=t<=4,n=e.path.split("/");let s=1,i=0,o=!1;for(let e=1;en&&(n=s)}normalizePath(r,n);const s=r.query+r.hash;switch(n){case 2:case 3:return s;case 4:{const n=r.path.slice(1);return n?isRelative(t||e)&&!isRelative(n)?"./"+n+s:n+s:s||"."}case 5:return r.path+s;default:return r.scheme+"//"+r.user+r.host+r.port+r.path+s}}return resolve}()},"./node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js"(e,t,r){var n;!function(e){"use strict";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,__copyProps=(e,i,o,a)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let l of n(i))s.call(e,l)||l===o||t(e,l,{get:()=>i[l],enumerable:!(a=r(i,l))||a.enumerable});return e},__toCommonJS=e=>__copyProps(t({},"__esModule",{value:!0}),e),i={};((e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:!0})})(i,{decode:()=>decode,decodeGeneratedRanges:()=>decodeGeneratedRanges,decodeOriginalScopes:()=>decodeOriginalScopes,encode:()=>encode,encodeGeneratedRanges:()=>encodeGeneratedRanges,encodeOriginalScopes:()=>encodeOriginalScopes}),e.exports=__toCommonJS(i);var o=",".charCodeAt(0),a=";".charCodeAt(0),l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=new Uint8Array(64),c=new Uint8Array(128);for(let e=0;e>>=1,i&&(r=-2147483648|-r),t+r}function encodeInteger(e,t,r){let n=t-r;n=n<0?-n<<1|1:n<<1;do{let t=31&n;n>>>=5,n>0&&(t|=32),e.write(p[t])}while(n>0);return t}function hasMoreVlq(e,t){return!(e.pos>=t)&&e.peek()!==o}var u=16384,d="undefined"!=typeof TextDecoder?new TextDecoder:"undefined"!=typeof Buffer?{decode:e=>Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}:{decode(e){let t="";for(let r=0;r0?t+d.decode(e.subarray(0,r)):t}},m=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:t,pos:r}=this,n=t.indexOf(e,r);return-1===n?t.length:n}},f=[];function decodeOriginalScopes(e){const{length:t}=e,r=new m(e),n=[],s=[];let i=0;for(;r.pos0&&r.write(o),n[0]=encodeInteger(r,i,n[0]),encodeInteger(r,a,0),encodeInteger(r,c,0),encodeInteger(r,6===s.length?1:0,0),6===s.length&&encodeInteger(r,s[5],0);for(const e of u)encodeInteger(r,e,0);for(t++;tl||i===l&&o>=p)break;t=_encodeOriginalScopes(e,t,r,n)}return r.write(o),n[0]=encodeInteger(r,l,n[0]),encodeInteger(r,p,0),t}function decodeGeneratedRanges(e){const{length:t}=e,r=new m(e),n=[],s=[];let i=0,o=0,a=0,l=0,p=0,c=0,u=0,d=0;do{const e=r.indexOf(";");let t=0;for(;r.pose;t--){const e=u;u=decodeInteger(r,u),d=decodeInteger(r,u===e?d:0);const t=decodeInteger(r,0);n.push([t,u,d])}}else n=[[e]];x.push(n)}while(hasMoreVlq(r,e))}b.bindings=x,n.push(b),s.push(b)}i++,r.pos=e+1}while(r.pos0&&r.write(o),n[1]=encodeInteger(r,s[1],n[1]),encodeInteger(r,(6===s.length?1:0)|(u?2:0)|(c?4:0),0),6===s.length){const{4:e,5:t}=s;e!==n[2]&&(n[3]=0),n[2]=encodeInteger(r,e,n[2]),n[3]=encodeInteger(r,t,n[3])}if(u){const{0:e,1:t,2:i}=s.callsite;e!==n[4]?(n[5]=0,n[6]=0):t!==n[5]&&(n[6]=0),n[4]=encodeInteger(r,e,n[4]),n[5]=encodeInteger(r,t,n[5]),n[6]=encodeInteger(r,i,n[6])}if(d)for(const e of d){e.length>1&&encodeInteger(r,-e.length,0),encodeInteger(r,e[0][0],0);let t=i,n=a;for(let s=1;sl||i===l&&o>=p)break;t=_encodeGeneratedRanges(e,t,r,n)}return n[0]0&&t.write(a),0===p.length)continue;let c=0;for(let e=0;e0&&t.write(o),c=encodeInteger(t,a[0],c),1!==a.length&&(r=encodeInteger(t,a[1],r),n=encodeInteger(t,a[2],n),s=encodeInteger(t,a[3],s),4!==a.length&&(i=encodeInteger(t,a[4],i)))}}return t.flush()}}(e=r.nmd(e)),e.exports="default"in(n=e).exports?n.exports.default:n.exports},"./node_modules/.pnpm/@jridgewell+trace-mapping@0.3.31/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js"(e,t,r){var n;!function(e,t,r){"use strict";var n=Object.create,s=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,a=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,__commonJS=(e,t)=>function(){return t||(0,e[o(e)[0]])((t={exports:{}}).exports,t),t.exports},__export=(e,t)=>{for(var r in t)s(e,r,{get:t[r],enumerable:!0})},__copyProps=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of o(t))l.call(e,a)||a===r||s(e,a,{get:()=>t[a],enumerable:!(n=i(t,a))||n.enumerable});return e},__toESM=(e,t,r)=>(r=null!=e?n(a(e)):{},__copyProps(!t&&e&&e.__esModule?r:s(r,"default",{value:e,enumerable:!0}),e)),__toCommonJS=e=>__copyProps(s({},"__esModule",{value:!0}),e),p=__commonJS({"umd:@jridgewell/sourcemap-codec"(e,t){t.exports=r}}),c=__commonJS({"umd:@jridgewell/resolve-uri"(e,r){r.exports=t}}),u={};__export(u,{AnyMap:()=>FlattenMap,FlattenMap:()=>FlattenMap,GREATEST_LOWER_BOUND:()=>_,LEAST_UPPER_BOUND:()=>P,TraceMap:()=>A,allGeneratedPositionsFor:()=>allGeneratedPositionsFor,decodedMap:()=>decodedMap,decodedMappings:()=>decodedMappings,eachMapping:()=>eachMapping,encodedMap:()=>encodedMap,encodedMappings:()=>encodedMappings,generatedPositionFor:()=>generatedPositionFor,isIgnored:()=>isIgnored,originalPositionFor:()=>originalPositionFor,presortedDecodedMap:()=>presortedDecodedMap,sourceContentFor:()=>sourceContentFor,traceSegment:()=>traceSegment}),e.exports=__toCommonJS(u);var d=__toESM(p()),h=__toESM(c());function stripFilename(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}function resolver(e,t){const r=stripFilename(e),n=t?t+"/":"";return e=>(0,h.default)(n+(e||""),r)}var m=0,f=1,y=2,b=3,g=4,x=1,v=2;function maybeSort(e,t){const r=nextUnsortedSegmentLine(e,0);if(r===e.length)return e;t||(e=e.slice());for(let n=r;n[]);for(let t=0;t>1),i=e[s][m]-t;if(0===i)return E=!0,s;i<0?r=s+1:n=s-1}return E=!1,r-1}function upperBound(e,t,r){for(let n=r+1;n=0&&e[n][m]===t;r=n--);return r}function memoizedState(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function memoizedBinarySearch(e,t,r,n){const{lastKey:s,lastNeedle:i,lastIndex:o}=r;let a=0,l=e.length-1;if(n===s){if(t===i)return E=-1!==o&&e[o][m]===t,o;t>=i?a=-1===o?0:o:l=o}return r.lastKey=n,r.lastNeedle=t,r.lastIndex=binarySearch(e,t,a,l)}function parse(e){return"string"==typeof e?JSON.parse(e):e}var FlattenMap=function(e,t){const r=parse(e);if(!("sections"in r))return new A(r,t);const n=[],s=[],i=[],o=[],a=[];return recurse(r,t,n,s,i,o,a,0,0,1/0,1/0),presortedDecodedMap({version:3,file:r.file,names:o,sources:s,sourcesContent:i,mappings:n,ignoreList:a})};function recurse(e,t,r,n,s,i,o,a,l,p,c){const{sections:u}=e;for(let e=0;ep)return;const n=getLine(r,t),s=0===e?l:0,i=v[e];for(let e=0;e=c)return;if(1===r.length){n.push([o]);continue}const a=h+r[f],l=r[y],u=r[b];n.push(4===r.length?[o,a,l,u]:[o,a,l,u,x+r[g]])}}}function append(e,t){for(let r=0;r=n.length)return null;const s=n[t],i=traceSegmentInternal(s,cast(e)._decodedMemo,t,r,_);return-1===i?null:s[i]}function originalPositionFor(e,t){let{line:r,column:n,bias:s}=t;if(r--,r<0)throw new Error(T);if(n<0)throw new Error(S);const i=decodedMappings(e);if(r>=i.length)return OMapping(null,null,null,null);const o=i[r],a=traceSegmentInternal(o,cast(e)._decodedMemo,r,n,s||_);if(-1===a)return OMapping(null,null,null,null);const l=o[a];if(1===l.length)return OMapping(null,null,null,null);const{names:p,resolvedSources:c}=e;return OMapping(c[l[f]],l[y]+1,l[b],5===l.length?p[l[g]]:null)}function generatedPositionFor(e,t){const{source:r,line:n,column:s,bias:i}=t;return generatedPosition(e,r,n,s,i||_,!1)}function allGeneratedPositionsFor(e,t){const{source:r,line:n,column:s,bias:i}=t;return generatedPosition(e,r,n,s,i||P,!0)}function eachMapping(e,t){const r=decodedMappings(e),{names:n,resolvedSources:s}=e;for(let e=0;e{"%%"!==e&&(n++,"%c"===e&&(s=n))}),t.splice(s,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r("./node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/common.js")(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},"./node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/common.js"(e,t,r){e.exports=function(e){function createDebug(e){let t,r,n,s=null;function debug(...e){if(!debug.enabled)return;const r=debug,n=Number(new Date),s=n-(t||n);r.diff=s,r.prev=t,r.curr=n,t=n,e[0]=createDebug.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,n)=>{if("%%"===t)return"%";i++;const s=createDebug.formatters[n];if("function"==typeof s){const n=e[i];t=s.call(r,n),e.splice(i,1),i--}return t}),createDebug.formatArgs.call(r,e);(r.log||createDebug.log).apply(r,e)}return debug.namespace=e,debug.useColors=createDebug.useColors(),debug.color=createDebug.selectColor(e),debug.extend=extend,debug.destroy=createDebug.destroy,Object.defineProperty(debug,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(r!==createDebug.namespaces&&(r=createDebug.namespaces,n=createDebug.enabled(e)),n),set:e=>{s=e}}),"function"==typeof createDebug.init&&createDebug.init(debug),debug}function extend(e,t){const r=createDebug(this.namespace+(void 0===t?":":t)+e);return r.log=this.log,r}function matchesTemplate(e,t){let r=0,n=0,s=-1,i=0;for(;r"-"+e)].join(",");return createDebug.enable(""),e},createDebug.enable=function(e){createDebug.save(e),createDebug.namespaces=e,createDebug.names=[],createDebug.skips=[];const t=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of t)"-"===e[0]?createDebug.skips.push(e.slice(1)):createDebug.names.push(e)},createDebug.enabled=function(e){for(const t of createDebug.skips)if(matchesTemplate(e,t))return!1;for(const t of createDebug.names)if(matchesTemplate(e,t))return!0;return!1},createDebug.humanize=r("./node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js"),createDebug.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(t=>{createDebug[t]=e[t]}),createDebug.names=[],createDebug.skips=[],createDebug.formatters={},createDebug.selectColor=function(e){let t=0;for(let r=0;r{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=r("./node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js");e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase());let n=process.env[t];return n=!!/^(yes|on|true|enabled)$/i.test(n)||!/^(no|off|false|disabled)$/i.test(n)&&("null"===n?null:Number(n)),e[r]=n,e},{}),e.exports=r("./node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/common.js")(t);const{formatters:i}=e.exports;i.o=function(e){return this.inspectOpts.colors=this.useColors,s.inspect(e,this.inspectOpts).split("\n").map(e=>e.trim()).join(" ")},i.O=function(e){return this.inspectOpts.colors=this.useColors,s.inspect(e,this.inspectOpts)}},"./node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js"(e){"use strict";const t=Symbol.for("gensync:v1:start"),r=Symbol.for("gensync:v1:suspend"),n="GENSYNC_OPTIONS_ERROR",s="GENSYNC_RACE_NONEMPTY",i="GENSYNC_ERRBACK_NO_CALLBACK";function assertTypeof(e,t,r,s){if(typeof r===e||s&&void 0===r)return;let i;throw i=s?`Expected opts.${t} to be either a ${e}, or undefined.`:`Expected opts.${t} to be a ${e}.`,makeError(i,n)}function makeError(e,t){return Object.assign(new Error(e),{code:t})}function buildOperation({name:e,arity:n,sync:s,async:i}){return setFunctionMetadata(e,n,function*(...e){const n=yield t;if(!n){return s.call(this,e)}let o;try{i.call(this,e,e=>{o||(o={value:e},n())},e=>{o||(o={err:e},n())})}catch(e){o={err:e},n()}if(yield r,o.hasOwnProperty("err"))throw o.err;return o.value})}function evaluateSync(e){let t;for(;!({value:t}=e.next()).done;)assertStart(t,e);return t}function evaluateAsync(e,t,r){!function step(){try{let r;for(;!({value:r}=e.next()).done;){assertStart(r,e);let t=!0,n=!1;const s=e.next(()=>{t?n=!0:step()});if(t=!1,assertSuspend(s,e),!n)return}return t(r)}catch(e){return r(e)}}()}function assertStart(e,r){e!==t&&throwError(r,makeError(`Got unexpected yielded value in gensync generator: ${JSON.stringify(e)}. Did you perhaps mean to use 'yield*' instead of 'yield'?`,"GENSYNC_EXPECTED_START"))}function assertSuspend({value:e,done:t},n){(t||e!==r)&&throwError(n,makeError(t?"Unexpected generator completion. If you get this, it is probably a gensync bug.":`Expected GENSYNC_SUSPEND, got ${JSON.stringify(e)}. If you get this, it is probably a gensync bug.`,"GENSYNC_EXPECTED_SUSPEND"))}function throwError(e,t){throw e.throw&&e.throw(t),t}function setFunctionMetadata(e,t,r){if("string"==typeof e){const t=Object.getOwnPropertyDescriptor(r,"name");t&&!t.configurable||Object.defineProperty(r,"name",Object.assign(t||{},{configurable:!0,value:e}))}if("number"==typeof t){const e=Object.getOwnPropertyDescriptor(r,"length");e&&!e.configurable||Object.defineProperty(r,"length",Object.assign(e||{},{configurable:!0,value:t}))}return r}e.exports=Object.assign(function(e){let t=e;return t="function"!=typeof e?function({name:e,arity:t,sync:r,async:s,errback:i}){if(assertTypeof("string","name",e,!0),assertTypeof("number","arity",t,!0),assertTypeof("function","sync",r),assertTypeof("function","async",s,!0),assertTypeof("function","errback",i,!0),s&&i)throw makeError("Expected one of either opts.async or opts.errback, but got _both_.",n);if("string"!=typeof e){let t;i&&i.name&&"errback"!==i.name&&(t=i.name),s&&s.name&&"async"!==s.name&&(t=s.name.replace(/Async$/,"")),r&&r.name&&"sync"!==r.name&&(t=r.name.replace(/Sync$/,"")),"string"==typeof t&&(e=t)}"number"!=typeof t&&(t=r.length);return buildOperation({name:e,arity:t,sync:function(e){return r.apply(this,e)},async:function(e,t,n){s?s.apply(this,e).then(t,n):i?i.call(this,...e,(e,r)=>{null==e?t(r):n(e)}):t(r.apply(this,e))}})}(e):function(e){return setFunctionMetadata(e.name,e.length,function(...t){return e.apply(this,t)})}(e),Object.assign(t,function(e){const t={sync:function(...t){return evaluateSync(e.apply(this,t))},async:function(...t){return new Promise((r,n)=>{evaluateAsync(e.apply(this,t),r,n)})},errback:function(...t){const r=t.pop();if("function"!=typeof r)throw makeError("Asynchronous function called without callback",i);let n;try{n=e.apply(this,t)}catch(e){return void r(e)}evaluateAsync(n,e=>r(void 0,e),e=>r(e))}};return t}(t))},{all:buildOperation({name:"all",arity:1,sync:function(e){return Array.from(e[0]).map(e=>evaluateSync(e))},async:function(e,t,r){const n=Array.from(e[0]);if(0===n.length)return void Promise.resolve().then(()=>t([]));let s=0;const i=n.map(()=>{});n.forEach((e,n)=>{evaluateAsync(e,e=>{i[n]=e,s+=1,s===i.length&&t(i)},r)})}}),race:buildOperation({name:"race",arity:1,sync:function(e){const t=Array.from(e[0]);if(0===t.length)throw makeError("Must race at least 1 item",s);return evaluateSync(t[0])},async:function(e,t,r){const n=Array.from(e[0]);if(0===n.length)throw makeError("Must race at least 1 item",s);for(const e of n)evaluateAsync(e,t,r)}})})},"./node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js"(e){"use strict";e.exports=(e,t=process.argv)=>{const r=e.startsWith("-")?"":1===e.length?"-":"--",n=t.indexOf(r+e),s=t.indexOf("--");return-1!==n&&(-1===s||n{for(const n in e)r.call(e,n)&&t(n,e[n])},fourHexEscape=e=>"\\u"+("0000"+e).slice(-4),hexadecimal=(e,t)=>{let r=e.toString(16);return t?r:r.toUpperCase()},n=t.toString,s=Array.isArray,isBigInt=e=>"bigint"==typeof e,i={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},o=/[\\\b\f\n\r\t]/,a=/[0-9]/,l=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,p=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,c=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,jsesc=(e,t)=>{const increaseIndentation=()=>{g=b,++t.indentLevel,b=t.indent.repeat(t.indentLevel)},r={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:"\t",indentLevel:0,__inline1__:!1,__inline2__:!1},u=t&&t.json;var d,h;u&&(r.quotes="double",r.wrap=!0),d=r,"single"!=(t=(h=t)?(forOwn(h,(e,t)=>{d[e]=t}),d):d).quotes&&"double"!=t.quotes&&"backtick"!=t.quotes&&(t.quotes="single");const m="double"==t.quotes?'"':"backtick"==t.quotes?"`":"'",f=t.compact,y=t.lowercaseHex;let b=t.indent.repeat(t.indentLevel),g="";const x=t.__inline1__,v=t.__inline2__,E=f?"":"\n";let T,S=!0;const P="binary"==t.numbers,_="octal"==t.numbers,A="decimal"==t.numbers,C="hexadecimal"==t.numbers;if(u&&e&&(e=>"function"==typeof e)(e.toJSON)&&(e=e.toJSON()),!(e=>"string"==typeof e||"[object String]"==n.call(e))(e)){if((e=>"[object Map]"==n.call(e))(e))return 0==e.size?"new Map()":(f||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+jsesc(Array.from(e),t)+")");if((e=>"[object Set]"==n.call(e))(e))return 0==e.size?"new Set()":"new Set("+jsesc(Array.from(e),t)+")";if((e=>"function"==typeof Buffer&&Buffer.isBuffer(e))(e))return 0==e.length?"Buffer.from([])":"Buffer.from("+jsesc(Array.from(e),t)+")";if(s(e))return T=[],t.wrap=!0,x&&(t.__inline1__=!1,t.__inline2__=!0),v||increaseIndentation(),((e,t)=>{const r=e.length;let n=-1;for(;++n{S=!1,v&&(t.__inline2__=!1),T.push((f||v?"":b)+jsesc(e,t))}),S?"[]":v?"["+T.join(", ")+"]":"["+E+T.join(","+E)+E+(f?"":g)+"]";if((e=>"number"==typeof e||"[object Number]"==n.call(e))(e)||isBigInt(e)){if(u)return JSON.stringify(Number(e));let t;if(A)t=String(e);else if(C){let r=e.toString(16);y||(r=r.toUpperCase()),t="0x"+r}else P?t="0b"+e.toString(2):_&&(t="0o"+e.toString(8));return isBigInt(e)?t+"n":t}return isBigInt(e)?u?JSON.stringify(Number(e)):e+"n":(e=>"[object Object]"==n.call(e))(e)?(T=[],t.wrap=!0,increaseIndentation(),forOwn(e,(e,r)=>{S=!1,T.push((f?"":b)+jsesc(e,t)+":"+(f?"":" ")+jsesc(r,t))}),S?"{}":"{"+E+T.join(","+E)+E+(f?"":g)+"}"):u?JSON.stringify(e)||"null":String(e)}const w=t.escapeEverything?p:c;return T=e.replace(w,(e,r,n,s,p,c)=>{if(r){if(t.minimal)return r;const e=r.charCodeAt(0),n=r.charCodeAt(1);if(t.es6){return"\\u{"+hexadecimal(1024*(e-55296)+n-56320+65536,y)+"}"}return fourHexEscape(hexadecimal(e,y))+fourHexEscape(hexadecimal(n,y))}if(n)return fourHexEscape(hexadecimal(n.charCodeAt(0),y));if("\0"==e&&!u&&!a.test(c.charAt(p+1)))return"\\0";if(s)return s==m||t.escapeEverything?"\\"+s:s;if(o.test(e))return i[e];if(t.minimal&&!l.test(e))return e;const d=hexadecimal(e.charCodeAt(0),y);return u||d.length>2?fourHexEscape(d):"\\x"+("00"+d).slice(-2)}),"`"==m&&(T=T.replace(/\$\{/g,"\\${")),t.isScriptContext&&(T=T.replace(/<\/(script|style)/gi,"<\\/$1").replace(/