diff --git a/.github/dependabot.yml b/.github/dependabot.yml index bdece67..ba9a3f0 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,13 +1,15 @@ version: 2 updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "monthly" - package-ecosystem: "npm" directory: "/" schedule: interval: "monthly" - reviewers: - - "Naramsim" groups: dependencies: patterns: - "*" - versioning-strategy: increase + versioning-strategy: auto diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 652caad..36181c4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,21 +7,22 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [ 16, 18, 20 ] + node-version: [ 16, 18, 20, lts/*, latest ] steps: - name: Clone repository - uses: actions/checkout@v2 + uses: actions/checkout@v6 - name: Setup node - uses: actions/setup-node@v2 + uses: actions/setup-node@v6 with: node-version: ${{ matrix.node }} - name: Install dependencies run: | npm ci npm install -g codecov - - name: Build - run: npm run build - name: Unit test - run: npm t + run: npm run coverage - name: Upload coverage - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v6 + with: + files: ./lcov.info + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.gitignore b/.gitignore index e564bb9..80ae1ad 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ node_modules *.js.map -.nyc_output -coverage +lcov.info \ No newline at end of file diff --git a/.npmignore b/.npmignore index 11d4a13..3f09941 100644 --- a/.npmignore +++ b/.npmignore @@ -1,4 +1,3 @@ node_modules test -.travis.yml -webpack.config.js +.github \ No newline at end of file diff --git a/README.md b/README.md index 9df4a51..6816b7c 100644 --- a/README.md +++ b/README.md @@ -3,14 +3,11 @@ [![npm](https://img.shields.io/npm/v/pokeapi-js-wrapper)](https://www.npmjs.com/package/pokeapi-js-wrapper) [![Tests](https://github.com/PokeAPI/pokeapi-js-wrapper/actions/workflows/test.yml/badge.svg)](https://github.com/PokeAPI/pokeapi-js-wrapper/actions/workflows/test.yml) [![Mocha browser tests](https://img.shields.io/badge/test-browser-brightgreen.svg)](https://pokeapi.github.io/pokeapi-js-wrapper/test/test.html) -[![codecov](https://codecov.io/gh/PokeAPI/pokeapi-js-wrapper/branch/master/graph/badge.svg)](https://codecov.io/gh/PokeAPI/pokeapi-js-wrapper) +[![codecov](https://codecov.io/github/PokeAPI/pokeapi-js-wrapper/graph/badge.svg?token=4oXXOVxG2n)](https://codecov.io/github/PokeAPI/pokeapi-js-wrapper) Maintainer: [Naramsim](https://github.com/Naramsim) -A PokeAPI wrapper intended for browsers only. Comes fully asynchronous (with [localForage](https://github.com/localForage/localForage)) and built-in cache. Offers also Image Caching through the inclusion of a Service Worker. _For a Node (server-side) wrapper see: [pokedex-promise-v2](https://github.com/PokeAPI/pokedex-promise-v2)_ - - - +A PokeAPI wrapper intended for browsers. Comes fully asynchronous, zero dependencies and built-in cache. Offers also Image Caching through the inclusion of a Service Worker. _For a Node (server-side) wrapper see: [pokedex-promise-v2](https://github.com/PokeAPI/pokedex-promise-v2)_ - [Install](#install) - [Usage](#usage) @@ -21,49 +18,42 @@ A PokeAPI wrapper intended for browsers only. Comes fully asynchronous (with [lo - [Endpoints](#endpoints) - [Root Endpoints list](#root-endpoints-list) - [Custom URLs and paths](#custom-urls-and-paths) -- [Internet Explorer 8](#internet-explorer-8) - - - -## Install - -```sh -npm install pokeapi-js-wrapper --save -``` - -```html - -``` ## Usage ```js -const Pokedex = require("pokeapi-js-wrapper") -const P = new Pokedex.Pokedex() +// As a Node module +// npm install pokeapi-js-wrapper --save +const pokedex = await Pokedex.init(); +console.log(await pokedex.getPokemonsList()) ``` ```html - ``` -### [Example](https://jsbin.com/jedakor/5/edit?html,console) requests +### [Example](https://jsbin.com/jedakor/9/edit?html,console) requests ```js // with await, be sure to be in an async function (and in a try/catch) (async () => { - const golduck = await P.getPokemonByName("golduck") + const golduck = await pokedex.getPokemonByName("golduck") console.log(golduck) })() // or with Promises -P.getPokemonByName("eevee") +pokedex.getPokemonByName("eevee") .then(function(response) { console.log(response) }) -P.resource([ +pokedex.resource([ "/api/v2/pokemon/36", "api/v2/berry/8", "https://pokeapi.co/api/v2/ability/9/", @@ -74,11 +64,10 @@ P.resource([ ## Configuration -Pass an Object to `Pokedex()` in order to configure it. Available options: `protocol`, `hostName`, `versionPath`, `cache`, `timeout`(ms), and `cacheImages`. +Pass an Object to `Pokedex.init()` in order to configure it. Available options: `protocol`, `hostName`, `versionPath`, `cache`, `timeout`(ms), and `cacheImages`. Any option is optional :smile:. All the default values can be found [here](https://github.com/PokeAPI/pokeapi-js-wrapper/blob/master/src/config.js#L3-L10) ```js -const Pokedex = require("pokeapi-js-wrapper") const customOptions = { protocol: "https", hostName: "localhost:443", @@ -87,7 +76,7 @@ const customOptions = { timeout: 5 * 1000, // 5s cacheImages: true } -const P = new Pokedex.Pokedex(customOptions) +const pokedex = await Pokedex.init(customOptions); ``` ### Caching images @@ -97,17 +86,17 @@ Pokeapi.co serves its Pokemon images through [Github](https://github.com/PokeAPI `pokeapi-js-wrapper` enables browsers to cache all these images by: 1. enabling the config parameter `cacheImages` - 2. serving [our service worker](https://raw.githubusercontent.com/PokeAPI/pokeapi-js-wrapper/master/dist/pokeapi-js-wrapper-sw.js) from the root of your project + 2. serving [our service worker](https://raw.githubusercontent.com/PokeAPI/pokeapi-js-wrapper/master/src/pokeapi-js-wrapper-sw.js) from the root of your project -In this way when `pokeapi-js-wrapper`'s `Pokedex` is created it will install and start the Service Worker you are serving at the root of your server. The Service Worker will intercept all the calls your HTML/CSS/JS are making to get PokeAPI's images and will cache them. +In this way when `pokeapi-js-wrapper`'s `Pokedex` is initialized it will install and start the Service Worker you are serving at the root of your server. The Service Worker will intercept all the calls your HTML/CSS/JS are making to get PokeAPI's images and will cache them. -It's fundamental that you download the Service Worker [we provide](https://raw.githubusercontent.com/PokeAPI/pokeapi-js-wrapper/master/dist/pokeapi-js-wrapper-sw.js)_(Right Click + Save As)_ and you serve it from the root of your project/server. Service Workers in fact cannot be installed from a domain different than yours. +It's fundamental that you download the Service Worker [we provide](https://raw.githubusercontent.com/PokeAPI/pokeapi-js-wrapper/master/src/pokeapi-js-wrapper-sw.js)_(Right Click + Save As)_ and you serve it from the root of your project/server. Service Workers in fact cannot be installed from a domain different than yours. A [basic example](https://github.com/PokeAPI/pokeapi-js-wrapper/blob/master/test/example-sw.html) is hosted [here](https://pokeapi.github.io/pokeapi-js-wrapper/test/example-sw.html). ## Tests -`pokeapi-js-wrapper` can be tested using two strategies. One is with Node, since this package works with Node (although not recommended), and the other with a browser. +`pokeapi-js-wrapper` can be tested using two strategies. One is with Node, since this package works with Node, and the other with a browser. ```js npm test @@ -120,23 +109,15 @@ Or open `/test/test.html` in your browser. A live version can be found at [`gh-p All the endpoints and the functions to access PokeAPI's endpoints are listed in the long table below. Each function `.ByName(name)` accepts names and ids. The only 5 functions `.ById(id)` only accept ids. You can also pass an array to each function, it will retrieve the data for each element asynchronously. ```js -P.getPokemonByName("eevee").then(function(response) { - console.log(response) -}) +response = await pokedex.getPokemonByName("eevee") -P.getPokemonSpeciesByName(25).then(function(response) { - console.log(response) -}) +response = await pokedex.getPokemonSpeciesByName(25) -P.getBerryByName(["cheri", "chesto", 5]).then(function(response) { - // `response` will be an Array containing 3 Objects - // response.forEach((item) => {console.log(item.size)}) // 80,50,20 - console.log(response) -}) +// `response` will be an Array containing 3 Objects +// response.forEach((item) => {console.log(item.size)}) // 80,50,20 +response = await pokedex.getBerryByName(["cheri", "chesto", 5]) -P.getMachineById(3).then(function(response) { - console.log(response) -}) +response = await pokedex.getMachineById(3) ``` | Function | Mapped PokeAPI endpoint | Documentation | @@ -207,42 +188,11 @@ const interval = { offset: 34, limit: 10, } -P.getPokemonsList(interval).then(function(response) { +pokedex.getPokemonsList(interval).then(function(response) { console.log(response) }) ``` - - | Function | Mapped PokeAPI endpoint | | --- | --- | | `getEndpointsList()` | [/](https://pokeapi.co/api/v2/) | @@ -267,6 +217,7 @@ This is what you will get: | `getItemFlingEffectsList()` | [/item-fling-effect](https://pokeapi.co/api/v2/item-fling-effect/) | | `getItemPocketsList()` | [/item-pocket](https://pokeapi.co/api/v2/item-pocket/) | | `getMachinesList()` | [/machine](https://pokeapi.co/api/v2/machine/) | +| `getMeta()` | [/meta](https://pokeapi.co/api/v2/meta/) | | `getMovesList()` | [/move](https://pokeapi.co/api/v2/move/) | | `getMoveAilmentsList()` | [/move-ailment](https://pokeapi.co/api/v2/move-ailment/) | | `getMoveBattleStylesList()` | [/move-battle-style](https://pokeapi.co/api/v2/move-battle-style/) | @@ -300,7 +251,7 @@ This is what you will get: Use `.resource()` to query any URL or path. Also this function accepts both single values and Arrays. ```js -P.resource([ +pokedex.resource([ "/api/v2/pokemon/36", "api/v2/berry/8", "https://pokeapi.co/api/v2/ability/9/", @@ -308,11 +259,7 @@ P.resource([ console.log(response) }) -P.resource("api/v2/berry/5").then(function(response) { +pokedex.resource("api/v2/berry/5").then(function(response) { console.log(response) }) ``` - -## Internet Explorer 8 - -In order to target this browser you must load a `Promise` polyfill before `pokeapi-js-wrapper`. You can choose one of your choice, we recommend [jakearchibald/es6-promise](https://cdnjs.com/libraries/es6-promise) or [stefanpenner/es6-promise](https://github.com/stefanpenner/es6-promise) diff --git a/codecov.yml b/codecov.yml deleted file mode 100644 index 69cb760..0000000 --- a/codecov.yml +++ /dev/null @@ -1 +0,0 @@ -comment: false diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 3abe81f..0000000 --- a/dist/index.js +++ /dev/null @@ -1,3 +0,0 @@ -/*! For license information please see index.js.LICENSE.txt */ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Pokedex=t():e.Pokedex=t()}("undefined"!=typeof self?self:this,(()=>(()=>{var e={790:(e,t,n)=>{e.exports=function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[a]={exports:{}};t[a][0].call(u.exports,(function(e){return o(t[a][1][e]||e)}),u,u.exports,e,t,n,r)}return n[a].exports}for(var i=void 0,a=0;a=43)}})).catch((function(){return!1}))}(e).then((function(e){return d=e}))}function b(e){var t=h[e.name],n={};n.promise=new a((function(e,t){n.resolve=e,n.reject=t})),t.deferredOperations.push(n),t.dbReady?t.dbReady=t.dbReady.then((function(){return n.promise})):t.dbReady=n.promise}function w(e){var t=h[e.name].deferredOperations.pop();if(t)return t.resolve(),t.promise}function E(e,t){var n=h[e.name].deferredOperations.pop();if(n)return n.reject(t),n.promise}function S(e,t){return new a((function(n,r){if(h[e.name]=h[e.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},e.db){if(!t)return n(e.db);b(e),e.db.close()}var i=[e.name];t&&i.push(e.version);var a=o.open.apply(o,i);t&&(a.onupgradeneeded=function(t){var n=a.result;try{n.createObjectStore(e.storeName),t.oldVersion<=1&&n.createObjectStore(l)}catch(n){if("ConstraintError"!==n.name)throw n;console.warn('The database "'+e.name+'" has been upgraded from version '+t.oldVersion+" to version "+t.newVersion+', but the storage "'+e.storeName+'" already exists.')}}),a.onerror=function(e){e.preventDefault(),r(a.error)},a.onsuccess=function(){var t=a.result;t.onversionchange=function(e){e.target.close()},n(t),w(e)}}))}function _(e){return S(e,!1)}function O(e){return S(e,!0)}function R(e,t){if(!e.db)return!0;var n=!e.db.objectStoreNames.contains(e.storeName),r=e.versione.db.version;if(r&&(e.version!==t&&console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),o||n){if(n){var i=e.db.version+1;i>e.version&&(e.version=i)}return!0}return!1}function A(e){return i([y(atob(e.data))],{type:e.type})}function T(e){return e&&e.__local_forage_encoded_blob}function N(e){var t=this,n=t._initReady().then((function(){var e=h[t._dbInfo.name];if(e&&e.dbReady)return e.dbReady}));return c(n,e,e),n}function I(e,t,n,r){void 0===r&&(r=1);try{var o=e.db.transaction(e.storeName,t);n(null,o)}catch(o){if(r>0&&(!e.db||"InvalidStateError"===o.name||"NotFoundError"===o.name))return a.resolve().then((function(){if(!e.db||"NotFoundError"===o.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),O(e)})).then((function(){return function(e){b(e);for(var t=h[e.name],n=t.forages,r=0;r>4,f[c++]=(15&r)<<4|o>>2,f[c++]=(3&o)<<6|63&i;return u}function V(e){var t,n=new Uint8Array(e),r="";for(t=0;t>2],r+=C[(3&n[t])<<4|n[t+1]>>4],r+=C[(15&n[t+1])<<2|n[t+2]>>6],r+=C[63&n[t+2]];return n.length%3==2?r=r.substring(0,r.length-1)+"=":n.length%3==1&&(r=r.substring(0,r.length-2)+"=="),r}var K={serialize:function(e,t){var n="";if(e&&(n=$.call(e)),e&&("[object ArrayBuffer]"===n||e.buffer&&"[object ArrayBuffer]"===$.call(e.buffer))){var r,o=P;e instanceof ArrayBuffer?(r=e,o+=x):(r=e.buffer,"[object Int8Array]"===n?o+=D:"[object Uint8Array]"===n?o+=L:"[object Uint8ClampedArray]"===n?o+=F:"[object Int16Array]"===n?o+=U:"[object Uint16Array]"===n?o+=q:"[object Int32Array]"===n?o+=M:"[object Uint32Array]"===n?o+=z:"[object Float32Array]"===n?o+=W:"[object Float64Array]"===n?o+=H:t(new Error("Failed to get type for BinaryArray"))),t(o+V(r))}else if("[object Blob]"===n){var i=new FileReader;i.onload=function(){var n="~~local_forage_type~"+e.type+"~"+V(this.result);t(P+B+n)},i.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(n){console.error("Couldn't convert value into a JSON string: ",e),t(null,n)}},deserialize:function(e){if(e.substring(0,9)!==P)return JSON.parse(e);var t,n=e.substring(13),r=e.substring(9,13);if(r===B&&k.test(n)){var o=n.match(k);t=o[1],n=n.substring(o[0].length)}var a=J(n);switch(r){case x:return a;case B:return i([a],{type:t});case D:return new Int8Array(a);case L:return new Uint8Array(a);case F:return new Uint8ClampedArray(a);case U:return new Int16Array(a);case q:return new Uint16Array(a);case M:return new Int32Array(a);case z:return new Uint32Array(a);case W:return new Float32Array(a);case H:return new Float64Array(a);default:throw new Error("Unkown type: "+r)}},stringToBuffer:J,bufferToString:V};function G(e,t,n,r){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],n,r)}function X(e,t,n,r,o,i){e.executeSql(n,r,o,(function(e,a){a.code===a.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],(function(e,s){s.rows.length?i(e,a):G(e,t,(function(){e.executeSql(n,r,o,i)}),i)}),i):i(e,a)}),i)}function Q(e,t,n,r){var o=this;e=u(e);var i=new a((function(i,a){o.ready().then((function(){void 0===t&&(t=null);var s=t,c=o._dbInfo;c.serializer.serialize(t,(function(t,u){u?a(u):c.db.transaction((function(n){X(n,c,"INSERT OR REPLACE INTO "+c.storeName+" (key, value) VALUES (?, ?)",[e,t],(function(){i(s)}),(function(e,t){a(t)}))}),(function(t){if(t.code===t.QUOTA_ERR){if(r>0)return void i(Q.apply(o,[e,s,n,r-1]));a(t)}}))}))})).catch(a)}));return s(i,n),i}var Y={_driver:"webSQLStorage",_initStorage:function(e){var t=this,n={db:null};if(e)for(var r in e)n[r]="string"!=typeof e[r]?e[r].toString():e[r];var o=new a((function(e,r){try{n.db=openDatabase(n.name,String(n.version),n.description,n.size)}catch(e){return r(e)}n.db.transaction((function(o){G(o,n,(function(){t._dbInfo=n,e()}),(function(e,t){r(t)}))}),r)}));return n.serializer=K,o},_support:"function"==typeof openDatabase,iterate:function(e,t){var n=this,r=new a((function(t,r){n.ready().then((function(){var o=n._dbInfo;o.db.transaction((function(n){X(n,o,"SELECT * FROM "+o.storeName,[],(function(n,r){for(var i=r.rows,a=i.length,s=0;s '__WebKitDatabaseInfoTable__'",[],(function(n,r){for(var o=[],i=0;i0}var te={_driver:"localStorageWrapper",_initStorage:function(e){var t={};if(e)for(var n in e)t[n]=e[n];return t.keyPrefix=Z(e,this._defaultConfig),ee()?(this._dbInfo=t,t.serializer=K,a.resolve()):a.reject()},_support:function(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(e){return!1}}(),iterate:function(e,t){var n=this,r=n.ready().then((function(){for(var t=n._dbInfo,r=t.keyPrefix,o=r.length,i=localStorage.length,a=1,s=0;s=0;n--){var r=localStorage.key(n);0===r.indexOf(e)&&localStorage.removeItem(r)}}));return s(n,e),n},length:function(e){var t=this.keys().then((function(e){return e.length}));return s(t,e),t},key:function(e,t){var n=this,r=n.ready().then((function(){var t,r=n._dbInfo;try{t=localStorage.key(e)}catch(e){t=null}return t&&(t=t.substring(r.keyPrefix.length)),t}));return s(r,t),r},keys:function(e){var t=this,n=t.ready().then((function(){for(var e=t._dbInfo,n=localStorage.length,r=[],o=0;o=0;t--){var n=localStorage.key(t);0===n.indexOf(e)&&localStorage.removeItem(n)}})):a.reject("Invalid arguments"),s(r,t),r}},ne=function(e,t){for(var n=e.length,r=0;r{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.r(r),n.d(r,{Pokedex:()=>Tt});var e={};n.r(e),n.d(e,{hasBrowserEnv:()=>ge,hasStandardBrowserEnv:()=>ve,hasStandardBrowserWebWorkerEnv:()=>be,navigator:()=>ye,origin:()=>we});var t=n(790),o=n.n(t);const i=JSON.parse('[["getBerry","name","berry/:id/"],["getBerryFirmness","name","berry-firmness/:id/"],["getBerryFlavor","name","berry-flavor/:id/"],["getContestType","name","contest-type/:id/"],["getContestEffect","id","contest-effect/:id/"],["getSuperContestEffect","id","super-contest-effect/:id/"],["getEncounterMethod","name","encounter-method/:id/"],["getEncounterCondition","name","encounter-condition/:id/"],["getEncounterConditionValue","name","encounter-condition-value/:id/"],["getEvolutionChain","id","evolution-chain/:id/"],["getEvolutionTrigger","name","evolution-trigger/:id/"],["getGeneration","name","generation/:id/"],["getPokedex","name","pokedex/:id/"],["getVersion","name","version/:id/"],["getVersionGroup","name","version-group/:id/"],["getItem","name","item/:id/"],["getItemAttribute","name","item-attribute/:id/"],["getItemCategory","name","item-category/:id/"],["getItemFlingEffect","name","item-fling-effect/:id/"],["getItemPocket","name","item-pocket/:id/"],["getMachine","id","machine/:id/"],["getMove","name","move/:id/"],["getMoveAilment","name","move-ailment/:id/"],["getMoveBattleStyle","name","move-battle-style/:id/"],["getMoveCategory","name","move-category/:id/"],["getMoveDamageClass","name","move-damage-class/:id/"],["getMoveLearnMethod","name","move-learn-method/:id/"],["getMoveTarget","name","move-target/:id/"],["getLocation","name","location/:id/"],["getLocationArea","name","location-area/:id/"],["getPalParkArea","name","pal-park-area/:id/"],["getRegion","name","region/:id/"],["getAbility","name","ability/:id/"],["getCharacteristic","id","characteristic/:id/"],["getEggGroup","name","egg-group/:id/"],["getGender","name","gender/:id/"],["getGrowthRate","name","growth-rate/:id/"],["getNature","name","nature/:id/"],["getPokeathlonStat","name","pokeathlon-stat/:id/"],["getPokemon","name","pokemon/:id/"],["getPokemonEncounterAreas","name","pokemon/:id/encounters/"],["getPokemonColor","name","pokemon-color/:id/"],["getPokemonForm","name","pokemon-form/:id/"],["getPokemonHabitat","name","pokemon-habitat/:id/"],["getPokemonShape","name","pokemon-shape/:id/"],["getPokemonSpecies","name","pokemon-species/:id/"],["getStat","name","stat/:id/"],["getType","name","type/:id/"],["getLanguage","name","language/:id/"]]'),a=JSON.parse('[["getEndpoints",""],["getBerries","berry/"],["getBerriesFirmnesss","berry-firmness/"],["getBerriesFlavors","berry-flavor/"],["getContestTypes","contest-type/"],["getContestEffects","contest-effect/"],["getSuperContestEffects","super-contest-effect/"],["getEncounterMethods","encounter-method/"],["getEncounterConditions","encounter-condition/"],["getEncounterConditionValues","encounter-condition-value/"],["getEvolutionChains","evolution-chain/"],["getEvolutionTriggers","evolution-trigger/"],["getGenerations","generation/"],["getPokedexs","pokedex/"],["getVersions","version/"],["getVersionGroups","version-group/"],["getItems","item/"],["getItemAttributes","item-attribute/"],["getItemCategories","item-category/"],["getItemFlingEffects","item-fling-effect/"],["getItemPockets","item-pocket/"],["getMachines","machine/"],["getMoves","move/"],["getMoveAilments","move-ailment/"],["getMoveBattleStyles","move-battle-style/"],["getMoveCategories","move-category/"],["getMoveDamageClasses","move-damage-class/"],["getMoveLearnMethods","move-learn-method/"],["getMoveTargets","move-target/"],["getLocations","location/"],["getLocationAreas","location-area/"],["getPalParkAreas","pal-park-area/"],["getRegions","region/"],["getAbilities","ability/"],["getCharacteristics","characteristic/"],["getEggGroups","egg-group/"],["getGenders","gender/"],["getGrowthRates","growth-rate/"],["getNatures","nature/"],["getPokeathlonStats","pokeathlon-stat/"],["getPokemons","pokemon/"],["getPokemonColors","pokemon-color/"],["getPokemonForms","pokemon-form/"],["getPokemonHabitats","pokemon-habitat/"],["getPokemonShapes","pokemon-shape/"],["getPokemonSpecies","pokemon-species/"],["getStats","stat/"],["getTypes","type/"],["getLanguages","language/"]]');function s(e,t){return function(){return e.apply(t,arguments)}}const{toString:c}=Object.prototype,{getPrototypeOf:u}=Object,f=(l=Object.create(null),e=>{const t=c.call(e);return l[t]||(l[t]=t.slice(8,-1).toLowerCase())});var l;const d=e=>(e=e.toLowerCase(),t=>f(t)===e),h=e=>t=>typeof t===e,{isArray:p}=Array,m=h("undefined"),g=d("ArrayBuffer"),y=h("string"),v=h("function"),b=h("number"),w=e=>null!==e&&"object"==typeof e,E=e=>{if("object"!==f(e))return!1;const t=u(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},S=d("Date"),_=d("File"),O=d("Blob"),R=d("FileList"),A=d("URLSearchParams"),[T,N,I,j]=["ReadableStream","Request","Response","Headers"].map(d);function C(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),p(e))for(r=0,o=e.length;r0;)if(r=n[o],t===r.toLowerCase())return r;return null}const P="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,x=e=>!m(e)&&e!==P,B=(D="undefined"!=typeof Uint8Array&&u(Uint8Array),e=>D&&e instanceof D);var D;const L=d("HTMLFormElement"),F=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),U=d("RegExp"),M=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};C(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},q="abcdefghijklmnopqrstuvwxyz",z="0123456789",W={DIGIT:z,ALPHA:q,ALPHA_DIGIT:q+q.toUpperCase()+z},H=d("AsyncFunction"),$=(J="function"==typeof setImmediate,V=v(P.postMessage),J?setImmediate:V?(K=`axios@${Math.random()}`,G=[],P.addEventListener("message",(({source:e,data:t})=>{e===P&&t===K&&G.length&&G.shift()()}),!1),e=>{G.push(e),P.postMessage(K,"*")}):e=>setTimeout(e));var J,V,K,G;const X="undefined"!=typeof queueMicrotask?queueMicrotask.bind(P):"undefined"!=typeof process&&process.nextTick||$,Q={isArray:p,isArrayBuffer:g,isBuffer:function(e){return null!==e&&!m(e)&&null!==e.constructor&&!m(e.constructor)&&v(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||v(e.append)&&("formdata"===(t=f(e))||"object"===t&&v(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&g(e.buffer),t},isString:y,isNumber:b,isBoolean:e=>!0===e||!1===e,isObject:w,isPlainObject:E,isReadableStream:T,isRequest:N,isResponse:I,isHeaders:j,isUndefined:m,isDate:S,isFile:_,isBlob:O,isRegExp:U,isFunction:v,isStream:e=>w(e)&&v(e.pipe),isURLSearchParams:A,isTypedArray:B,isFileList:R,forEach:C,merge:function e(){const{caseless:t}=x(this)&&this||{},n={},r=(r,o)=>{const i=t&&k(n,o)||o;E(n[i])&&E(r)?n[i]=e(n[i],r):E(r)?n[i]=e({},r):p(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e(C(t,((t,r)=>{n&&v(t)?e[r]=s(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&u(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:f,kindOfTest:d,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(p(e))return e;let t=e.length;if(!b(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:L,hasOwnProperty:F,hasOwnProp:F,reduceDescriptors:M,freezeMethods:e=>{M(e,((t,n)=>{if(v(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];v(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return p(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:k,global:P,isContextDefined:x,ALPHABET:W,generateString:(e=16,t=W.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&v(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(w(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=p(e)?[]:{};return C(e,((e,t)=>{const i=n(e,r+1);!m(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:H,isThenable:e=>e&&(w(e)||v(e))&&v(e.then)&&v(e.catch),setImmediate:$,asap:X};function Y(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}Q.inherits(Y,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Q.toJSONObject(this.config),code:this.code,status:this.status}}});const Z=Y.prototype,ee={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{ee[e]={value:e}})),Object.defineProperties(Y,ee),Object.defineProperty(Z,"isAxiosError",{value:!0}),Y.from=(e,t,n,r,o,i)=>{const a=Object.create(Z);return Q.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Y.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const te=Y;function ne(e){return Q.isPlainObject(e)||Q.isArray(e)}function re(e){return Q.endsWith(e,"[]")?e.slice(0,-2):e}function oe(e,t,n){return e?e.concat(t).map((function(e,t){return e=re(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const ie=Q.toFlatObject(Q,{},null,(function(e){return/^is[A-Z]/.test(e)})),ae=function(e,t,n){if(!Q.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Q.isUndefined(t[e])}))).metaTokens,o=n.visitor||u,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Q.isSpecCompliantForm(t);if(!Q.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(Q.isDate(e))return e.toISOString();if(!s&&Q.isBlob(e))throw new te("Blob is not supported. Use a Buffer instead.");return Q.isArrayBuffer(e)||Q.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(Q.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Q.isArray(e)&&function(e){return Q.isArray(e)&&!e.some(ne)}(e)||(Q.isFileList(e)||Q.endsWith(n,"[]"))&&(s=Q.toArray(e)))return n=re(n),s.forEach((function(e,r){!Q.isUndefined(e)&&null!==e&&t.append(!0===a?oe([n],r,i):null===a?n:n+"[]",c(e))})),!1;return!!ne(e)||(t.append(oe(o,n,i),c(e)),!1)}const f=[],l=Object.assign(ie,{defaultVisitor:u,convertValue:c,isVisitable:ne});if(!Q.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Q.isUndefined(n)){if(-1!==f.indexOf(n))throw Error("Circular reference detected in "+r.join("."));f.push(n),Q.forEach(n,(function(n,i){!0===(!(Q.isUndefined(n)||null===n)&&o.call(t,n,Q.isString(i)?i.trim():i,r,l))&&e(n,r?r.concat(i):[i])})),f.pop()}}(e),t};function se(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function ce(e,t){this._pairs=[],e&&ae(e,this,t)}const ue=ce.prototype;ue.append=function(e,t){this._pairs.push([e,t])},ue.toString=function(e){const t=e?function(t){return e.call(this,t,se)}:se;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const fe=ce;function le(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function de(e,t,n){if(!t)return e;const r=n&&n.encode||le,o=n&&n.serialize;let i;if(i=o?o(t,n):Q.isURLSearchParams(t)?t.toString():new fe(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const he=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Q.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},pe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},me={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:fe,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},ge="undefined"!=typeof window&&"undefined"!=typeof document,ye="object"==typeof navigator&&navigator||void 0,ve=ge&&(!ye||["ReactNative","NativeScript","NS"].indexOf(ye.product)<0),be="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,we=ge&&window.location.href||"http://localhost",Ee={...e,...me},Se=function(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;return i=!i&&Q.isArray(r)?r.length:i,s?(Q.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a):(r[i]&&Q.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&Q.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r{t(function(e){return Q.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null},_e={transitional:pe,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Q.isObject(e);if(o&&Q.isHTMLForm(e)&&(e=new FormData(e)),Q.isFormData(e))return r?JSON.stringify(Se(e)):e;if(Q.isArrayBuffer(e)||Q.isBuffer(e)||Q.isStream(e)||Q.isFile(e)||Q.isBlob(e)||Q.isReadableStream(e))return e;if(Q.isArrayBufferView(e))return e.buffer;if(Q.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return ae(e,new Ee.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Ee.isNode&&Q.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=Q.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return ae(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Q.isString(e))try{return(0,JSON.parse)(e),Q.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||_e.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Q.isResponse(e)||Q.isReadableStream(e))return e;if(e&&Q.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw te.from(e,te.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ee.classes.FormData,Blob:Ee.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Q.forEach(["delete","get","head","post","put","patch"],(e=>{_e.headers[e]={}}));const Oe=_e,Re=Q.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ae=Symbol("internals");function Te(e){return e&&String(e).trim().toLowerCase()}function Ne(e){return!1===e||null==e?e:Q.isArray(e)?e.map(Ne):String(e)}function Ie(e,t,n,r,o){return Q.isFunction(r)?r.call(this,t,n):(o&&(t=n),Q.isString(t)?Q.isString(r)?-1!==t.indexOf(r):Q.isRegExp(r)?r.test(t):void 0:void 0)}class je{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Te(t);if(!o)throw new Error("header name must be a non-empty string");const i=Q.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=Ne(e))}const i=(e,t)=>Q.forEach(e,((e,n)=>o(e,n,t)));if(Q.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Q.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Re[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(Q.isHeaders(e))for(const[t,r]of e.entries())o(r,t,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=Te(e)){const n=Q.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(Q.isFunction(t))return t.call(this,e,n);if(Q.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Te(e)){const n=Q.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ie(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Te(e)){const o=Q.findKey(n,e);!o||t&&!Ie(0,n[o],o,t)||(delete n[o],r=!0)}}return Q.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Ie(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Q.forEach(this,((r,o)=>{const i=Q.findKey(n,o);if(i)return t[i]=Ne(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=Ne(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Q.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Q.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[Ae]=this[Ae]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Te(e);t[r]||(function(e,t){const n=Q.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return Q.isArray(e)?e.forEach(r):r(e),this}}je.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Q.reduceDescriptors(je.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Q.freezeMethods(je);const Ce=je;function ke(e,t){const n=this||Oe,r=t||n,o=Ce.from(r.headers);let i=r.data;return Q.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Pe(e){return!(!e||!e.__CANCEL__)}function xe(e,t,n){te.call(this,null==e?"canceled":e,te.ERR_CANCELED,t,n),this.name="CanceledError"}Q.inherits(xe,te,{__CANCEL__:!0});const Be=xe;function De(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new te("Request failed with status code "+n.status,[te.ERR_BAD_REQUEST,te.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const Le=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),u=r[a];o||(o=c),n[i]=s,r[i]=c;let f=a,l=0;for(;f!==i;)l+=n[f++],f%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o{o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout((()=>{r=null,a(n)}),i-s)))},()=>n&&a(n)]}((n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,c=o(s);r=i,e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&i<=a?(a-i)/c:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},Fe=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ue=e=>(...t)=>Q.asap((()=>e(...t))),Me=Ee.hasStandardBrowserEnv?function(){const e=Ee.navigator&&/(msie|trident)/i.test(Ee.navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=Q.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0},qe=Ee.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Q.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Q.isString(r)&&a.push("path="+r),Q.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function ze(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const We=e=>e instanceof Ce?{...e}:e;function He(e,t){t=t||{};const n={};function r(e,t,n){return Q.isPlainObject(e)&&Q.isPlainObject(t)?Q.merge.call({caseless:n},e,t):Q.isPlainObject(t)?Q.merge({},t):Q.isArray(t)?t.slice():t}function o(e,t,n){return Q.isUndefined(t)?Q.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!Q.isUndefined(t))return r(void 0,t)}function a(e,t){return Q.isUndefined(t)?Q.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(We(e),We(t),!0)};return Q.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=c[r]||o,a=i(e[r],t[r],r);Q.isUndefined(a)&&i!==s||(n[r]=a)})),n}const $e=e=>{const t=He({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:c}=t;if(t.headers=s=Ce.from(s),t.url=de(ze(t.baseURL,t.url),e.params,e.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),Q.isFormData(r))if(Ee.hasStandardBrowserEnv||Ee.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(Ee.hasStandardBrowserEnv&&(o&&Q.isFunction(o)&&(o=o(t)),o||!1!==o&&Me(t.url))){const e=i&&a&&qe.read(a);e&&s.set(i,e)}return t},Je="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=$e(e);let o=r.data;const i=Ce.from(r.headers).normalize();let a,s,c,u,f,{responseType:l,onUploadProgress:d,onDownloadProgress:h}=r;function p(){u&&u(),f&&f(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=Ce.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());De((function(e){t(e),p()}),(function(e){n(e),p()}),{data:l&&"text"!==l&&"json"!==l?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new te("Request aborted",te.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new te("Network Error",te.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||pe;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new te(t,o.clarifyTimeoutError?te.ETIMEDOUT:te.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&Q.forEach(i.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),Q.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),l&&"json"!==l&&(m.responseType=r.responseType),h&&([c,f]=Le(h,!0),m.addEventListener("progress",c)),d&&m.upload&&([s,u]=Le(d),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new Be(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===Ee.protocols.indexOf(y)?n(new te("Unsupported protocol "+y+":",te.ERR_BAD_REQUEST,e)):m.send(o||null)}))},Ve=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof te?t:new Be(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new te(`timeout ${t} of ms exceeded`,te.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=()=>Q.asap(a),s}},Ke=function*(e,t){let n=e.byteLength;if(!t||n{const o=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*Ke(n,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},Xe="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Qe=Xe&&"function"==typeof ReadableStream,Ye=Xe&&("function"==typeof TextEncoder?(Ze=new TextEncoder,e=>Ze.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Ze;const et=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},tt=Qe&&et((()=>{let e=!1;const t=new Request(Ee.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),nt=Qe&&et((()=>Q.isReadableStream(new Response("").body))),rt={stream:nt&&(e=>e.body)};var ot;Xe&&(ot=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!rt[e]&&(rt[e]=Q.isFunction(ot[e])?t=>t[e]():(t,n)=>{throw new te(`Response type '${e}' is not supported`,te.ERR_NOT_SUPPORT,n)})})));const it={http:null,xhr:Je,fetch:Xe&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:c,responseType:u,headers:f,withCredentials:l="same-origin",fetchOptions:d}=$e(e);u=u?(u+"").toLowerCase():"text";let h,p=Ve([o,i&&i.toAbortSignal()],a);const m=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let g;try{if(c&&tt&&"get"!==n&&"head"!==n&&0!==(g=await(async(e,t)=>{const n=Q.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(Q.isBlob(e))return e.size;if(Q.isSpecCompliantForm(e)){const t=new Request(Ee.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Q.isArrayBufferView(e)||Q.isArrayBuffer(e)?e.byteLength:(Q.isURLSearchParams(e)&&(e+=""),Q.isString(e)?(await Ye(e)).byteLength:void 0)})(t):n})(f,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(Q.isFormData(r)&&(e=n.headers.get("content-type"))&&f.setContentType(e),n.body){const[e,t]=Fe(g,Le(Ue(c)));r=Ge(n.body,65536,e,t)}}Q.isString(l)||(l=l?"include":"omit");const o="credentials"in Request.prototype;h=new Request(t,{...d,signal:p,method:n.toUpperCase(),headers:f.normalize().toJSON(),body:r,duplex:"half",credentials:o?l:void 0});let i=await fetch(h);const a=nt&&("stream"===u||"response"===u);if(nt&&(s||a&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=Q.toFiniteNumber(i.headers.get("content-length")),[n,r]=s&&Fe(t,Le(Ue(s),!0))||[];i=new Response(Ge(i.body,65536,n,(()=>{r&&r(),m&&m()})),e)}u=u||"text";let y=await rt[Q.findKey(rt,u)||"text"](i,e);return!a&&m&&m(),await new Promise(((t,n)=>{De(t,n,{data:y,headers:Ce.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:h})}))}catch(t){if(m&&m(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new te("Network Error",te.ERR_NETWORK,e,h),{cause:t.cause||t});throw te.from(t,t&&t.code,e,h)}})};Q.forEach(it,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const at=e=>`- ${e}`,st=e=>Q.isFunction(e)||null===e||!1===e,ct=e=>{e=Q.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(at).join("\n"):" "+at(e[0]):"as no adapter specified";throw new te("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function ut(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Be(null,e)}function ft(e){return ut(e),e.headers=Ce.from(e.headers),e.data=ke.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ct(e.adapter||Oe.adapter)(e).then((function(t){return ut(e),t.data=ke.call(e,e.transformResponse,t),t.headers=Ce.from(t.headers),t}),(function(t){return Pe(t)||(ut(e),t&&t.response&&(t.response.data=ke.call(e,e.transformResponse,t.response),t.response.headers=Ce.from(t.response.headers))),Promise.reject(t)}))}const lt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{lt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const dt={};lt.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.7] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new te(r(o," has been removed"+(t?" in "+t:"")),te.ERR_DEPRECATED);return t&&!dt[o]&&(dt[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};const ht={assertOptions:function(e,t,n){if("object"!=typeof e)throw new te("options must be an object",te.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new te("option "+i+" must be "+n,te.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new te("Unknown option "+i,te.ERR_BAD_OPTION)}},validators:lt},pt=ht.validators;class mt{constructor(e){this.defaults=e,this.interceptors={request:new he,response:new he}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=He(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&ht.assertOptions(n,{silentJSONParsing:pt.transitional(pt.boolean),forcedJSONParsing:pt.transitional(pt.boolean),clarifyTimeoutError:pt.transitional(pt.boolean)},!1),null!=r&&(Q.isFunction(r)?t.paramsSerializer={serialize:r}:ht.assertOptions(r,{encode:pt.function,serialize:pt.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Q.merge(o.common,o[t.method]);o&&Q.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Ce.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let f,l=0;if(!s){const e=[ft.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,c),f=e.length,u=Promise.resolve(t);l{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new Be(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new yt((function(t){e=t})),cancel:e}}}const vt=yt,bt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(bt).forEach((([e,t])=>{bt[t]=e}));const wt=bt,Et=function e(t){const n=new gt(t),r=s(gt.prototype.request,n);return Q.extend(r,gt.prototype,n,{allOwnKeys:!0}),Q.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(He(t,n))},r}(Oe);Et.Axios=gt,Et.CanceledError=Be,Et.CancelToken=vt,Et.isCancel=Pe,Et.VERSION="1.7.7",Et.toFormData=ae,Et.AxiosError=te,Et.Cancel=Et.CanceledError,Et.all=function(e){return Promise.all(e)},Et.spread=function(e){return function(t){return e.apply(null,t)}},Et.isAxiosError=function(e){return Q.isObject(e)&&!0===e.isAxiosError},Et.mergeConfig=He,Et.AxiosHeaders=Ce,Et.formToJSON=e=>Se(Q.isHTMLForm(e)?new FormData(e):e),Et.getAdapter=ct,Et.HttpStatusCode=wt,Et.default=Et;const St=Et,_t="pokeapi-js-wrapper-";function Ot(e,t){return new Promise(((n,r)=>{o().ready().then((()=>{o().getItem(`${_t}${t}`).then((o=>{null===o?Rt(e,t).then((e=>{n(e)})).catch((e=>{r(e)})):n(addCacheMark(o))})).catch((o=>{Rt(e,t).then((e=>{n(e)})).catch((e=>{r(e)}))}))})).catch((o=>{Rt(e,t).then((e=>{n(e)})).catch((e=>{r(e)}))}))}))}function Rt(e,t){return new Promise(((n,r)=>{let i={baseURL:`${e.protocol}://${e.hostName}/`,timeout:e.timeout};St.get(t,i).then((i=>{i.status>=400?r(i):(e.cache&&o().setItem(`${_t}${t}`,i.data),n(i.data))})).catch((e=>{r(e)}))}))}class At{constructor(e={}){this.protocol="https",this.hostName="pokeapi.co",this.versionPath="/api/v2/",this.offset=0,this.limit=1e5,this.timeout=1e4,this.cache=!0,this.cacheImages=!1,e.hasOwnProperty("protocol")&&(this.protocol=e.protocol),e.hasOwnProperty("hostName")&&(this.hostName=e.hostName),e.hasOwnProperty("versionPath")&&(this.versionPath=e.versionPath),e.hasOwnProperty("offset")&&(this.offset=e.offset-1),e.hasOwnProperty("limit")&&(this.limit=e.limit),e.hasOwnProperty("timeout")&&(this.timeout=e.timeout),e.hasOwnProperty("cache")&&(this.cache=e.cache),e.hasOwnProperty("cacheImages")&&(this.cacheImages=e.cacheImages)}}o().config({name:"pokeapi-js-wrapper"});class Tt{constructor(e){this.config=new At(e),i.forEach((e=>{const t=function(e){return`${e[0]}By${function([e,...t]){return e.toUpperCase()+t.join("").toLowerCase()}(e[1])}`}(e);this[t]=t=>{if(t){if("number"==typeof t||"string"==typeof t)return Ot(this.config,`${this.config.versionPath}${e[2].replace(":id",t)}`);if("object"==typeof t)return Promise.all(function(e,t,n){return n.map((n=>Ot(e,`${e.versionPath}${t[2].replace(":id",n)}`)))}(this.config,e,t))}},this[function(e){return`${e[0]}`}(e)]=this[t]})),a.forEach((e=>{const t=`${e[0]}List`;this[t]=t=>{var n=this.config.limit,r=this.config.offset;return t&&(t.hasOwnProperty("offset")&&(r=t.offset),t.hasOwnProperty("limit")&&(n=t.limit)),Ot(this.config,`${this.config.versionPath}${e[1]}?limit=${n}&offset=${r}`)},this[e[0]]=this[t]})),this.config.cacheImages&&navigator&&window&&"serviceWorker"in navigator&&window.addEventListener("load",(function(){navigator.serviceWorker.register("./pokeapi-js-wrapper-sw.js",{scope:"./"}).catch((e=>{console.log("Pokeapi-js-wrapper SW installation failed with the following error:"),console.error(e)}))}))}getConfig(){return this.config}getCacheLength(){return o().length()}clearCache(){return o().clear()}resource(e){return"string"==typeof e?Ot(this.config,e):Array.isArray(e)?Promise.all(e.map((e=>Ot(this.config,e)))):"String or Array is required"}}})(),r})())); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/index.js.LICENSE.txt b/dist/index.js.LICENSE.txt deleted file mode 100644 index c982862..0000000 --- a/dist/index.js.LICENSE.txt +++ /dev/null @@ -1,6 +0,0 @@ -/*! - localForage -- Offline Storage, Improved - Version 1.10.0 - https://localforage.github.io/localForage - (c) 2013-2017 Mozilla, Apache License 2.0 -*/ diff --git a/dist/pokeapi-js-wrapper-sw.js b/dist/pokeapi-js-wrapper-sw.js deleted file mode 100644 index f838864..0000000 --- a/dist/pokeapi-js-wrapper-sw.js +++ /dev/null @@ -1 +0,0 @@ -const imgRe=/https:\/\/raw\.githubusercontent\.com\/PokeAPI\/sprites\/[\/-\w\d]+\/[\d\w-]+\.(?:png|svg|gif)/,version=1;self.addEventListener("fetch",(function(e){e.request.url.match(imgRe)&&e.respondWith(caches.match(e.request).then((function(t){return t||fetch(e.request).then((function(t){return e.request.url.match(imgRe)&&caches.open("pokeapi-js-wrapper-images-1").then((function(t){t.add(e.request.url)})),t})).catch((function(e){console.error(e)}))})))})),self.addEventListener("install",(function(e){self.skipWaiting()})); \ No newline at end of file diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index bde8853..0000000 --- a/index.d.ts +++ /dev/null @@ -1,2406 +0,0 @@ -declare module "pokeapi-js-wrapper" { - interface APIResource { - /** The URL of the referenced resource. */ - url: string; - [property: string]: any; - } - - interface EndpointsList { - ability: string; - berry: string; - "berry-firmness": string; - "berry-flavor": string; - characteristic: string; - "contest-effect": string; - "contest-type": string; - "egg-group": string; - "encounter-condition": string; - "encounter-condition-value": string; - "encounter-method": string; - "evolution-chain": string; - "evolution-trigger": string; - gender: string; - generation: string; - "growth-rate": string; - item: string; - "item-attribute": string; - "item-category": string; - "item-fling-effect": string; - "item-pocket": string; - language: string; - location: string; - "location-area": string; - machine: string; - move: string; - "move-ailment": string; - "move-battle-style": string; - "move-category": string; - "move-damage-class": string; - "move-learn-method": string; - "move-target": string; - nature: string; - "pal-park-area": string; - "pokeathlon-stat": string; - pokedex: string; - pokemon: string; - "pokemon-color": string; - "pokemon-form": string; - "pokemon-habitat": string; - "pokemon-shape": string; - "pokemon-species": string; - region: string; - stat: string; - "super-contest-effect": string; - type: string; - version: string; - "version-group": string; - } - - interface APIResourceList { - count: number; - next: null | string; - previous: null | string; - results: APIResource[]; - [property: string]: any; - } - - interface NamedAPIResource { - /** The name of the referenced resource. */ - name: string; - /** The URL of the referenced resource. */ - url: string; - [property: string]: any; - } - - interface NamedAPIResourceList { - /** The total number of resources available from this API. */ - count: number; - /** The URL for the next page in the list. */ - next: null | string; - /** The URL for the previous page in the list. */ - previous: null | string; - /** A list of named API resources. */ - results: NamedAPIResource[]; - [property: string]: any; - } - - /** Abilities provide passive effects for Pokémon in battle or in the overworld. Pokémon have multiple possible abilities but can have only one ability at a time. Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Ability) for greater detail. */ - interface Ability { - /** The list of previous effects this ability has had across version groups. */ - effect_changes: AbilityEffectChange[]; - /** The effect of this ability listed in different languages. */ - effect_entries: AbilityEffectEntry[]; - /** The flavor text of this ability listed in different languages. */ - flavor_text_entries: AbilityFlavorTextEntry[]; - /** The generation this ability originated in. */ - generation: NamedAPIResource; - /** The identifier for this resource. */ - id: number; - /** Whether or not this ability originated in the main series of the video games. */ - is_main_series: boolean; - /** The name for this resource. */ - name: string; - /** The name of this resource listed in different languages. */ - names: AbilityName[]; - /** A list of Pokémon that could potentially have this ability. */ - pokemon: AbilityPokemon[]; - [property: string]: any; - } - - interface AbilityEffectChange { - /** The previous effect of this ability listed in different languages. */ - effect_entries: PurpleEffectEntry[]; - /** The version group in which the previous effect of this ability originated. */ - version_group: NamedAPIResource; - [property: string]: any; - } - - interface PurpleEffectEntry { - effect: string; - language: NamedAPIResource; - [property: string]: any; - } - - interface AbilityEffectEntry { - effect: string; - language: NamedAPIResource; - short_effect: string; - [property: string]: any; - } - - interface AbilityFlavorTextEntry { - flavor_text: string; - language: NamedAPIResource; - version_group: NamedAPIResource; - [property: string]: any; - } - - interface AbilityName { - language: NamedAPIResource; - name: string; - [property: string]: any; - } - - interface AbilityPokemon { - /** Whether or not this a hidden ability for the referenced Pokémon. */ - is_hidden: boolean; - /** The Pokémon this ability could belong to. */ - pokemon: NamedAPIResource; - /** Pokémon have 3 ability 'slots' which hold references to possible abilities they could have. This is the slot of this ability for the referenced pokemon. */ - slot: number; - [property: string]: any; - } - - /** Berries are small fruits that can provide HP and status condition restoration, stat enhancement, and even damage negation when eaten by Pokémon. Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Berry) for greater detail. */ - interface Berry { - /** The firmness of this berry, used in making Pokéblocks or Poffins. */ - firmness: NamedAPIResource; - /** A list of references to each flavor a berry can have and the potency of each of those flavors in regard to this berry. */ - flavors: Flavor[]; - /** Time it takes the tree to grow one stage, in hours. Berry trees go through four of these growth stages before they can be picked. */ - growth_time: number; - /** The identifier for this resource. */ - id: number; - /** Berries are actually items. This is a reference to the item specific data for this berry. */ - item: NamedAPIResource; - /** The maximum number of these berries that can grow on one tree in Generation IV. */ - max_harvest: number; - /** The name for this resource. */ - name: string; - /** The power of the move "Natural Gift" when used with this Berry. */ - natural_gift_power: number; - /** The type inherited by "Natural Gift" when used with this Berry. */ - natural_gift_type: NamedAPIResource; - /** The size of this Berry, in millimeters. */ - size: number; - /** The smoothness of this Berry, used in making Pokéblocks or Poffins. */ - smoothness: number; - /** The speed at which this Berry dries out the soil as it grows. A higher rate means the soil dries more quickly. */ - soil_dryness: number; - [property: string]: any; - } - - interface Flavor { - flavor: NamedAPIResource; - potency: number; - [property: string]: any; - } - - /** Berries can be soft or hard. Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Category:Berries_by_firmness) for greater detail. */ - interface BerryFirmness { - /** A list of the berries with this firmness. */ - berries: NamedAPIResource[]; - /** The identifier for this resource. */ - id: number; - /** The name for this resource. */ - name: string; - /** The name of this resource listed in different languages. */ - names: BerryFirmnessName[]; - [property: string]: any; - } - - interface BerryFirmnessName { - language: NamedAPIResource; - name: string; - [property: string]: any; - } - - /** Flavors determine whether a Pokémon will benefit or suffer from eating a berry based on their [nature](#natures). Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Flavor) for greater detail. */ - interface BerryFlavor { - /** A list of the berries with this flavor. */ - berries: BerryElement[]; - /** The contest type that correlates with this berry flavor. */ - contest_type: NamedAPIResource; - /** The identifier for this resource. */ - id: number; - /** The name for this resource. */ - name: string; - /** The name of this resource listed in different languages. */ - names: BerryFlavorName[]; - [property: string]: any; - } - - interface BerryElement { - berry: NamedAPIResource; - potency: number; - [property: string]: any; - } - - interface BerryFlavorName { - language: NamedAPIResource; - name: string; - [property: string]: any; - } - - /** Characteristics indicate which stat contains a Pokémon's highest IV. A Pokémon's Characteristic is determined by the remainder of its highest IV divided by 5 (gene_modulo). Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Characteristic) for greater detail. */ - interface Characteristic { - /** The descriptions of this characteristic listed in different languages. */ - descriptions: CharacteristicDescription[]; - /** The remainder of the highest stat/IV divided by 5. */ - gene_modulo: number; - /** The stat which results in this characteristic. */ - highest_stat: NamedAPIResource; - /** The identifier for this resource. */ - id: number; - /** The possible values of the highest stat that would result in a Pokémon recieving this characteristic when divided by 5. */ - possible_values: number[]; - [property: string]: any; - } - - interface CharacteristicDescription { - description: string; - language: NamedAPIResource; - [property: string]: any; - } - - interface SuperContestEffectList { - count: number; - next: null | string; - previous: null | string; - results: APIResource[]; - [property: string]: any; - } - - /** Contest effects refer to the effects of moves when used in contests. */ - interface ContestEffect { - /** The base number of hearts the user of this move gets. */ - appeal: number; - /** The result of this contest effect listed in different languages. */ - effect_entries: ContestEffectEffectEntry[]; - /** The flavor text of this contest effect listed in different languages. */ - flavor_text_entries: ContestEffectFlavorTextEntry[]; - /** The identifier for this resource. */ - id: number; - /** The base number of hearts the user's opponent loses. */ - jam: number; - [property: string]: any; - } - - interface ContestEffectEffectEntry { - effect: string; - language: NamedAPIResource; - [property: string]: any; - } - - interface ContestEffectFlavorTextEntry { - flavor_text: string; - language: NamedAPIResource; - [property: string]: any; - } - - /** Contest types are categories judges used to weigh a Pokémon's condition in Pokémon contests. Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Contest_condition) for greater detail. */ - interface ContestType { - /** The berry flavor that correlates with this contest type. */ - berry_flavor: NamedAPIResource; - /** The identifier for this resource. */ - id: number; - /** The name for this resource. */ - name: string; - /** The name of this contest type listed in different languages. */ - names: ContestTypeName[]; - [property: string]: any; - } - - interface ContestTypeName { - color: string; - language: NamedAPIResource; - name: string; - [property: string]: any; - } - - /** Egg Groups are categories which determine which Pokémon are able to interbreed. Pokémon may belong to either one or two Egg Groups. Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Egg_Group) for greater detail. */ - interface EggGroup { - /** The identifier for this resource. */ - id: number; - /** The name for this resource. */ - name: string; - /** The name of this resource listed in different languages. */ - names: EggGroupName[]; - /** A list of all Pokémon species that are members of this egg group. */ - pokemon_species: NamedAPIResource[]; - [property: string]: any; - } - - interface EggGroupName { - language: NamedAPIResource; - name: string; - [property: string]: any; - } - - /** Conditions which affect what pokemon might appear in the wild, e.g., day or night. */ - interface EncounterCondition { - /** The identifier for this resource. */ - id: number; - /** The name for this resource. */ - name: string; - /** The name of this resource listed in different languages. */ - names: EncounterConditionName[]; - /** A list of possible values for this encounter condition. */ - values: NamedAPIResource[]; - [property: string]: any; - } - - interface EncounterConditionName { - language: NamedAPIResource; - name: string; - [property: string]: any; - } - - /** Encounter condition values are the various states that an encounter condition can have, i.e., time of day can be either day or night. */ - interface EncounterConditionValue { - /** The condition this encounter condition value pertains to. */ - condition: NamedAPIResource; - /** The identifier for this resource. */ - id: number; - /** The name for this resource. */ - name: string; - /** The name of this resource listed in different languages. */ - names: EncounterConditionValueName[]; - [property: string]: any; - } - - interface EncounterConditionValueName { - language: NamedAPIResource; - name: string; - [property: string]: any; - } - - /** Methods by which the player might can encounter Pokémon in the wild, e.g., walking in tall grass. Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Wild_Pok%C3%A9mon) for greater detail. */ - interface EncounterMethod { - /** The identifier for this resource. */ - id: number; - /** The name for this resource. */ - name: string; - /** The name of this resource listed in different languages. */ - names: EncounterMethodName[]; - /** A good value for sorting. */ - order: number; - [property: string]: any; - } - - interface EncounterMethodName { - language: NamedAPIResource; - name: string; - [property: string]: any; - } - - /** Evolution chains are essentially family trees. They start with the lowest stage within a family and detail evolution conditions for each as well as Pokémon they can evolve into up through the hierarchy. */ - interface EvolutionChain { - /** The item that a Pokémon would be holding when mating that would trigger the egg hatching a baby Pokémon rather than a basic Pokémon. */ - baby_trigger_item: null | NamedAPIResource; - /** The base chain link object. Each link contains evolution details for a Pokémon in the chain. Each link references the next Pokémon in the natural evolution order. */ - chain: Chain; - /** The identifier for this resource. */ - id: number; - [property: string]: any; - } - - interface Chain { - evolution_details: any[]; - evolves_to: ChainEvolvesTo[]; - is_baby: boolean; - species: NamedAPIResource; - [property: string]: any; - } - - interface ChainEvolvesTo { - evolution_details: PurpleEvolutionDetail[]; - evolves_to: EvolvesToEvolvesTo[]; - is_baby: boolean; - species: NamedAPIResource; - [property: string]: any; - } - - interface PurpleEvolutionDetail { - /** The id of the gender of the evolving Pokémon species must be in order to evolve into this Pokémon species. */ - gender: number | null; - /** The item the evolving Pokémon species must be holding during the evolution trigger event to evolve into this Pokémon species. */ - held_item: null | NamedAPIResource; - /** The item required to cause evolution this into Pokémon species. */ - item: null | NamedAPIResource; - /** The move that must be known by the evolving Pokémon species during the evolution trigger event in order to evolve into this Pokémon species. */ - known_move: null | NamedAPIResource; - /** The evolving Pokémon species must know a move with this type during the evolution trigger event in order to evolve into this Pokémon species. */ - known_move_type: null | NamedAPIResource; - /** The location the evolution must be triggered at. */ - location: null | NamedAPIResource; - /** The minimum required level of affection the evolving Pokémon species to evolve into this Pokémon species. */ - min_affection: number | null; - /** The minimum required level of beauty the evolving Pokémon species to evolve into this Pokémon species. */ - min_beauty: number | null; - /** The minimum required level of happiness the evolving Pokémon species to evolve into this Pokémon species. */ - min_happiness: number | null; - /** The minimum required level of the evolving Pokémon species to evolve into this Pokémon species. */ - min_level: number | null; - /** Whether or not it must be raining in the overworld to cause evolution this Pokémon species. */ - needs_overworld_rain: boolean; - /** The Pokémon species that must be in the players party in order for the evolving Pokémon species to evolve into this Pokémon species. */ - party_species: null | NamedAPIResource; - /** The player must have a Pokémon of this type in their party during the evolution trigger event in order for the evolving Pokémon species to evolve into this Pokémon species. */ - party_type: null | NamedAPIResource; - /** The required relation between the Pokémon's Attack and Defense stats. 1 means Attack > Defense. 0 means Attack = Defense. -1 means Attack < Defense. */ - relative_physical_stats: number | null; - /** The required time of day. Day or night. */ - time_of_day: string; - /** Pokémon species for which this one must be traded. */ - trade_species: null | NamedAPIResource; - /** The type of event that triggers evolution into this Pokémon species. */ - trigger: NamedAPIResource; - /** Whether or not the 3DS needs to be turned upside-down as this Pokémon levels up. */ - turn_upside_down: boolean; - [property: string]: any; - } - - interface EvolvesToEvolvesTo { - evolution_details: FluffyEvolutionDetail[]; - evolves_to: any[]; - is_baby: boolean; - species: NamedAPIResource; - [property: string]: any; - } - - interface FluffyEvolutionDetail { - /** The id of the gender of the evolving Pokémon species must be in order to evolve into this Pokémon species. */ - gender: number | null; - /** The item the evolving Pokémon species must be holding during the evolution trigger event to evolve into this Pokémon species. */ - held_item: null | NamedAPIResource; - /** The item required to cause evolution this into Pokémon species. */ - item: null | NamedAPIResource; - /** The move that must be known by the evolving Pokémon species during the evolution trigger event in order to evolve into this Pokémon species. */ - known_move: null | NamedAPIResource; - /** The evolving Pokémon species must know a move with this type during the evolution trigger event in order to evolve into this Pokémon species. */ - known_move_type: null; - /** The location the evolution must be triggered at. */ - location: null | NamedAPIResource; - /** The minimum required level of affection the evolving Pokémon species to evolve into this Pokémon species. */ - min_affection: null; - /** The minimum required level of beauty the evolving Pokémon species to evolve into this Pokémon species. */ - min_beauty: null; - /** The minimum required level of happiness the evolving Pokémon species to evolve into this Pokémon species. */ - min_happiness: number | null; - /** The minimum required level of the evolving Pokémon species to evolve into this Pokémon species. */ - min_level: number | null; - /** Whether or not it must be raining in the overworld to cause evolution this Pokémon species. */ - needs_overworld_rain: boolean; - /** The Pokémon species that must be in the players party in order for the evolving Pokémon species to evolve into this Pokémon species. */ - party_species: null; - /** The player must have a Pokémon of this type in their party during the evolution trigger event in order for the evolving Pokémon species to evolve into this Pokémon species. */ - party_type: null; - /** The required relation between the Pokémon's Attack and Defense stats. 1 means Attack > Defense. 0 means Attack = Defense. -1 means Attack < Defense. */ - relative_physical_stats: null; - /** The required time of day. Day or night. */ - time_of_day: string; - /** Pokémon species for which this one must be traded. */ - trade_species: null; - /** The type of event that triggers evolution into this Pokémon species. */ - trigger: NamedAPIResource; - /** Whether or not the 3DS needs to be turned upside-down as this Pokémon levels up. */ - turn_upside_down: boolean; - [property: string]: any; - } - - /** Evolution triggers are the events and conditions that cause a Pokémon to evolve. Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Methods_of_evolution) for greater detail. */ - interface EvolutionTrigger { - /** The identifier for this resource. */ - id: number; - /** The name for this resource. */ - name: string; - /** The name of this resource listed in different languages. */ - names: EvolutionTriggerName[]; - /** A list of pokemon species that result from this evolution trigger. */ - pokemon_species: NamedAPIResource[]; - [property: string]: any; - } - - interface EvolutionTriggerName { - language: NamedAPIResource; - name: string; - [property: string]: any; - } - - /** Genders were introduced in Generation II for the purposes of breeding Pokémon but can also result in visual differences or even different evolutionary lines. Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Gender) for greater detail. */ - interface Gender { - /** The identifier for this resource. */ - id: number; - /** The name for this resource. */ - name: string; - /** A list of Pokémon species that can be this gender and how likely it is that they will be. */ - pokemon_species_details: PokemonSpeciesDetail[]; - /** A list of Pokémon species that required this gender in order for a Pokémon to evolve into them. */ - required_for_evolution: NamedAPIResource[]; - [property: string]: any; - } - - interface PokemonSpeciesDetail { - pokemon_species: NamedAPIResource; - rate: number; - [property: string]: any; - } - - /** A generation is a grouping of the Pokémon games that separates them based on the Pokémon they include. In each generation, a new set of Pokémon, Moves, Abilities and Types that did not exist in the previous generation are released. */ - interface Generation { - /** A list of abilities that were introduced in this generation. */ - abilities: NamedAPIResource[]; - /** The identifier for this resource. */ - id: number; - /** The main region travelled in this generation. */ - main_region: NamedAPIResource; - /** A list of moves that were introduced in this generation. */ - moves: NamedAPIResource[]; - /** The name for this resource. */ - name: string; - /** The name of this resource listed in different languages. */ - names: GenerationName[]; - /** A list of Pokémon species that were introduced in this generation. */ - pokemon_species: NamedAPIResource[]; - /** A list of types that were introduced in this generation. */ - types: NamedAPIResource[]; - /** A list of version groups that were introduced in this generation. */ - version_groups: NamedAPIResource[]; - [property: string]: any; - } - - interface GenerationName { - language: NamedAPIResource; - name: string; - [property: string]: any; - } - - /** Growth rates are the speed with which Pokémon gain levels through experience. Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Experience) for greater detail. */ - interface GrowthRate { - /** The descriptions of this characteristic listed in different languages. */ - descriptions: GrowthRateDescription[]; - /** The formula used to calculate the rate at which the Pokémon species gains level. */ - formula: string; - /** The identifier for this resource. */ - id: number; - /** A list of levels and the amount of experienced needed to atain them based on this growth rate. */ - levels: Level[]; - /** The name for this resource. */ - name: string; - /** A list of Pokémon species that gain levels at this growth rate. */ - pokemon_species: NamedAPIResource[]; - [property: string]: any; - } - - interface GrowthRateDescription { - description: string; - language: NamedAPIResource; - [property: string]: any; - } - - interface Level { - experience: number; - level: number; - [property: string]: any; - } - - /** An item is an object in the games which the player can pick up, keep in their bag, and use in some manner. They have various uses, including healing, powering up, helping catch Pokémon, or to access a new area. */ - interface Item { - /** A list of attributes this item has. */ - attributes: NamedAPIResource[]; - /** An evolution chain this item requires to produce a bay during mating. */ - baby_trigger_for: null | APIResource; - /** The category of items this item falls into. */ - category: NamedAPIResource; - /** The price of this item in stores. */ - cost: number; - /** The effect of this ability listed in different languages. */ - effect_entries: ItemEffectEntry[]; - /** The flavor text of this ability listed in different languages. */ - flavor_text_entries: ItemFlavorTextEntry[]; - /** The effect of the move Fling when used with this item. */ - fling_effect: null | NamedAPIResource; - /** The power of the move Fling when used with this item. */ - fling_power: number | null; - /** A list of game indices relevent to this item by generation. */ - game_indices: ItemGameIndex[]; - /** A list of Pokémon that might be found in the wild holding this item. */ - held_by_pokemon: HeldByPokemon[]; - /** The identifier for this resource. */ - id: number; - /** A list of the machines related to this item. */ - machines: ItemMachine[]; - /** The name for this resource. */ - name: string; - /** The name of this item listed in different languages. */ - names: ItemName[]; - /** A set of sprites used to depict this item in the game. */ - sprites: ItemSprites; - [property: string]: any; - } - - interface ItemEffectEntry { - effect: string; - language: NamedAPIResource; - short_effect: string; - [property: string]: any; - } - - interface ItemFlavorTextEntry { - language: NamedAPIResource; - text: string; - version_group: NamedAPIResource; - [property: string]: any; - } - - interface ItemGameIndex { - game_index: number; - generation: NamedAPIResource; - [property: string]: any; - } - - interface HeldByPokemon { - pokemon: NamedAPIResource; - version_details: HeldByPokemonVersionDetail[]; - [property: string]: any; - } - - interface HeldByPokemonVersionDetail { - rarity: number; - version: NamedAPIResource; - [property: string]: any; - } - - interface ItemMachine { - machine: APIResource; - version_group: NamedAPIResource; - [property: string]: any; - } - - interface ItemName { - language: NamedAPIResource; - name: string; - [property: string]: any; - } - - interface ItemSprites { - /** The default depiction of this item. */ - default: null | string; - [property: string]: any; - } - - /** Item attributes define particular aspects of items, e.g. "usable in battle" or "consumable". */ - interface ItemAttribute { - /** The description of this item attribute listed in different languages. */ - descriptions: ItemAttributeDescription[]; - /** The identifier for this resource. */ - id: number; - /** A list of items that have this attribute. */ - items: NamedAPIResource[]; - /** The name for this resource. */ - name: string; - /** The name of this item attribute listed in different languages. */ - names: ItemAttributeName[]; - [property: string]: any; - } - - interface ItemAttributeDescription { - description: string; - language: NamedAPIResource; - [property: string]: any; - } - - interface ItemAttributeName { - language: NamedAPIResource; - name: string; - [property: string]: any; - } - - /** Item categories determine where items will be placed in the players bag. */ - interface ItemCategory { - /** The identifier for this resource. */ - id: number; - /** A list of items that are a part of this category. */ - items: NamedAPIResource[]; - /** The name for this resource. */ - name: string; - /** The name of this item category listed in different languages. */ - names: ItemCategoryName[]; - /** The pocket items in this category would be put in. */ - pocket: NamedAPIResource; - [property: string]: any; - } - - interface ItemCategoryName { - language: NamedAPIResource; - name: string; - [property: string]: any; - } - - /** The various effects of the move "Fling" when used with different items. */ - interface ItemFlingEffect { - /** The result of this fling effect listed in different languages. */ - effect_entries: ItemFlingEffectEffectEntry[]; - /** The identifier for this resource. */ - id: number; - /** A list of items that have this fling effect. */ - items: NamedAPIResource[]; - /** The name for this resource. */ - name: string; - [property: string]: any; - } - - interface ItemFlingEffectEffectEntry { - effect: string; - language: NamedAPIResource; - [property: string]: any; - } - - /** Pockets within the players bag used for storing items by category. */ - interface ItemPocket { - /** A list of item categories that are relevant to this item pocket. */ - categories: NamedAPIResource[]; - /** The identifier for this resource. */ - id: number; - /** The name for this resource. */ - name: string; - /** The name of this resource listed in different languages. */ - names: ItemPocketName[]; - [property: string]: any; - } - - interface ItemPocketName { - language: NamedAPIResource; - name: string; - [property: string]: any; - } - - /** Languages for translations of API resource information. */ - interface Language { - /** The identifier for this resource. */ - id: number; - /** The two-letter code of the language. Note that it is not unique. */ - iso3166: string; - /** The two-letter code of the country where this language is spoken. Note that it is not unique. */ - iso639: string; - /** The name for this resource. */ - name: string; - /** The name of this resource listed in different languages. */ - names: LanguageName[]; - /** Whether or not the games are published in this language. */ - official: boolean; - [property: string]: any; - } - - interface LanguageName { - language: NamedAPIResource; - name: string; - [property: string]: any; - } - - /** Locations that can be visited within the games. Locations make up sizable portions of regions, like cities or routes. */ - interface Location { - /** Areas that can be found within this location. */ - areas: NamedAPIResource[]; - /** A list of game indices relevent to this location by generation. */ - game_indices: LocationGameIndex[]; - /** The identifier for this resource. */ - id: number; - /** The name for this resource. */ - name: string; - /** The name of this resource listed in different languages. */ - names: LocationName[]; - /** The region this location can be found in. */ - region: null | NamedAPIResource; - [property: string]: any; - } - - interface LocationGameIndex { - game_index: number; - generation: NamedAPIResource; - [property: string]: any; - } - - interface LocationName { - language: NamedAPIResource; - name: string; - [property: string]: any; - } - - /** Location areas are sections of areas, such as floors in a building or cave. Each area has its own set of possible Pokémon encounters. */ - interface LocationArea { - /** A list of methods in which Pokémon may be encountered in this area and how likely the method will occur depending on the version of the game. */ - encounter_method_rates: EncounterMethodRate[]; - /** The internal id of an API resource within game data. */ - game_index: number; - /** The identifier for this resource. */ - id: number; - /** The region this location area can be found in. */ - location: NamedAPIResource; - /** The name for this resource. */ - name: string; - /** The name of this resource listed in different languages. */ - names: LocationAreaName[]; - /** A list of Pokémon that can be encountered in this area along with version specific details about the encounter. */ - pokemon_encounters: LocationAreaPokemonEncounter[]; - [property: string]: any; - } - - interface EncounterMethodRate { - /** The method in which Pokémon may be encountered in an area.. */ - encounter_method: NamedAPIResource; - /** The chance of the encounter to occur on a version of the game. */ - version_details: EncounterMethodRateVersionDetail[]; - [property: string]: any; - } - - interface EncounterMethodRateVersionDetail { - rate: number; - version: NamedAPIResource; - [property: string]: any; - } - - interface LocationAreaName { - language: NamedAPIResource; - name: string; - [property: string]: any; - } - - interface LocationAreaPokemonEncounter { - /** The Pokémon being encountered. */ - pokemon: NamedAPIResource; - /** A list of versions and encounters with Pokémon that might happen in the referenced location area. */ - version_details: PokemonEncounterVersionDetail[]; - [property: string]: any; - } - - interface PokemonEncounterVersionDetail { - encounter_details: PurpleEncounterDetail[]; - max_chance: number; - version: NamedAPIResource; - [property: string]: any; - } - - interface PurpleEncounterDetail { - chance: number; - condition_values: NamedAPIResource[]; - max_level: number; - method: NamedAPIResource; - min_level: number; - [property: string]: any; - } - - /** Machines are the representation of items that teach moves to Pokémon. They vary from version to version, so it is not certain that one specific TM or HM corresponds to a single Machine. */ - interface Machine { - /** The identifier for this resource. */ - id: number; - /** The TM or HM item that corresponds to this machine. */ - item: NamedAPIResource; - /** The move that is taught by this machine. */ - move: NamedAPIResource; - /** The version group that this machine applies to. */ - version_group: NamedAPIResource; - [property: string]: any; - } - - /** Moves are the skills of Pokémon in battle. In battle, a Pokémon uses one move each turn. Some moves (including those learned by Hidden Machine) can be used outside of battle as well, usually for the purpose of removing obstacles or exploring new areas. */ - interface Move { - /** The percent value of how likely this move is to be successful. */ - accuracy: number | null; - /** A detail of normal and super contest combos that require this move. */ - contest_combos: null | ContestCombos; - /** The effect the move has when used in a contest. */ - contest_effect: null | APIResource; - /** The type of appeal this move gives a Pokémon when used in a contest. */ - contest_type: null | NamedAPIResource; - /** The type of damage the move inflicts on the target, e.g. physical. */ - damage_class: NamedAPIResource; - /** The percent value of how likely it is this moves effect will happen. */ - effect_chance: number | null; - /** The list of previous effects this move has had across version groups of the games. */ - effect_changes: MoveEffectChange[]; - /** The effect of this move listed in different languages. */ - effect_entries: MoveEffectEntry[]; - /** The flavor text of this move listed in different languages. */ - flavor_text_entries: MoveFlavorTextEntry[]; - /** The generation in which this move was introduced. */ - generation: NamedAPIResource; - /** The identifier for this resource. */ - id: number; - /** List of Pokemon that can learn the move */ - learned_by_pokemon: NamedAPIResource[]; - /** A list of the machines that teach this move. */ - machines: MoveMachine[]; - /** Metadata about this move */ - meta: null | Meta; - /** The name for this resource. */ - name: string; - /** The name of this resource listed in different languages. */ - names: MoveName[]; - /** A list of move resource value changes across version groups of the game. */ - past_values: PastValue[]; - /** The base power of this move with a value of 0 if it does not have a base power. */ - power: number | null; - /** Power points. The number of times this move can be used. */ - pp: number | null; - /** A value between -8 and 8. Sets the order in which moves are executed during battle. See [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Priority) for greater detail. */ - priority: number; - /** A list of stats this moves effects and how much it effects them. */ - stat_changes: StatChange[]; - /** The effect the move has when used in a super contest. */ - super_contest_effect: null | APIResource; - /** The type of target that will receive the effects of the attack. */ - target: NamedAPIResource; - /** The elemental type of this move. */ - type: NamedAPIResource; - [property: string]: any; - } - - interface ContestCombos { - normal: Normal; - super: Super; - [property: string]: any; - } - - interface Normal { - use_after: NamedAPIResource[] | null; - use_before: NamedAPIResource[] | null; - [property: string]: any; - } - - interface Super { - use_after: NamedAPIResource[] | null; - use_before: NamedAPIResource[] | null; - [property: string]: any; - } - - interface MoveEffectChange { - effect_entries: FluffyEffectEntry[]; - version_group: NamedAPIResource; - [property: string]: any; - } - - interface FluffyEffectEntry { - effect: string; - language: NamedAPIResource; - [property: string]: any; - } - - interface MoveEffectEntry { - effect: string; - language: NamedAPIResource; - short_effect: string; - [property: string]: any; - } - - interface MoveFlavorTextEntry { - flavor_text: string; - language: NamedAPIResource; - version_group: NamedAPIResource; - [property: string]: any; - } - - interface MoveMachine { - machine: APIResource; - version_group: NamedAPIResource; - [property: string]: any; - } - - interface Meta { - ailment: NamedAPIResource; - ailment_chance: number; - category: NamedAPIResource; - crit_rate: number; - drain: number; - flinch_chance: number; - healing: number; - max_hits: number | null; - max_turns: number | null; - min_hits: number | null; - min_turns: number | null; - stat_chance: number; - [property: string]: any; - } - - interface MoveName { - language: NamedAPIResource; - name: string; - [property: string]: any; - } - - interface PastValue { - accuracy: number | null; - effect_chance: number | null; - effect_entries: PastValueEffectEntry[]; - power: number | null; - pp: number | null; - type: null | NamedAPIResource; - version_group: NamedAPIResource; - [property: string]: any; - } - - interface PastValueEffectEntry { - effect: string; - language: NamedAPIResource; - short_effect: string; - [property: string]: any; - } - - interface StatChange { - change: number; - stat: NamedAPIResource; - [property: string]: any; - } - - /** Move Ailments are status conditions caused by moves used during battle. See [Bulbapedia](https://bulbapedia.bulbagarden.net/wiki/Status_condition) for greater detail. */ - interface MoveAilment { - /** The identifier for this resource. */ - id: number; - /** A list of moves that cause this ailment. */ - moves: NamedAPIResource[]; - /** The name for this resource. */ - name: string; - /** The name of this resource listed in different languages. */ - names: MoveAilmentName[]; - [property: string]: any; - } - - interface MoveAilmentName { - language: NamedAPIResource; - name: string; - [property: string]: any; - } - - /** Styles of moves when used in the Battle Palace. See [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Battle_Frontier_(Generation_III)) for greater detail. */ - interface MoveBattleStyle { - /** The identifier for this resource. */ - id: number; - /** The name for this resource. */ - name: string; - /** The name of this resource listed in different languages. */ - names: MoveBattleStyleName[]; - [property: string]: any; - } - - interface MoveBattleStyleName { - language: NamedAPIResource; - name: string; - [property: string]: any; - } - - /** Very general categories that loosely group move effects. */ - interface MoveCategory { - /** The description of this resource listed in different languages. */ - descriptions: MoveCategoryDescription[]; - /** The identifier for this resource. */ - id: number; - /** A list of moves that fall into this category. */ - moves: NamedAPIResource[]; - /** The name for this resource. */ - name: string; - [property: string]: any; - } - - interface MoveCategoryDescription { - description: string; - language: NamedAPIResource; - [property: string]: any; - } - - /** Damage classes moves can have, e.g. physical, special, or non-damaging. */ - interface MoveDamageClass { - /** The description of this resource listed in different languages. */ - descriptions: MoveDamageClassDescription[]; - /** The identifier for this resource. */ - id: number; - /** A list of moves that fall into this damage class. */ - moves: NamedAPIResource[]; - /** The name for this resource. */ - name: string; - /** The name of this resource listed in different languages. */ - names: MoveDamageClassName[]; - [property: string]: any; - } - - interface MoveDamageClassDescription { - description: string; - language: NamedAPIResource; - [property: string]: any; - } - - interface MoveDamageClassName { - language: NamedAPIResource; - name: string; - [property: string]: any; - } - - /** Methods by which Pokémon can learn moves. */ - interface MoveLearnMethod { - /** The description of this resource listed in different languages. */ - descriptions: MoveLearnMethodDescription[]; - /** The identifier for this resource. */ - id: number; - /** The name for this resource. */ - name: string; - /** The name of this resource listed in different languages. */ - names: MoveLearnMethodName[]; - /** A list of version groups where moves can be learned through this method. */ - version_groups: NamedAPIResource[]; - [property: string]: any; - } - - interface MoveLearnMethodDescription { - description: string; - language: NamedAPIResource; - [property: string]: any; - } - - interface MoveLearnMethodName { - language: NamedAPIResource; - name: string; - [property: string]: any; - } - - /** Targets moves can be directed at during battle. Targets can be Pokémon, environments or even other moves. */ - interface MoveTarget { - /** The description of this resource listed in different languages. */ - descriptions: MoveTargetDescription[]; - /** The identifier for this resource. */ - id: number; - /** A list of moves that that are directed at this target. */ - moves: NamedAPIResource[]; - /** The name for this resource. */ - name: string; - /** The name of this resource listed in different languages. */ - names: MoveTargetName[]; - [property: string]: any; - } - - interface MoveTargetDescription { - description: string; - language: NamedAPIResource; - [property: string]: any; - } - - interface MoveTargetName { - language: NamedAPIResource; - name: string; - [property: string]: any; - } - - /** Natures influence how a Pokémon's stats grow. See [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Nature) for greater detail. */ - interface Nature { - /** The stat decreased by 10% in Pokémon with this nature. */ - decreased_stat: null | NamedAPIResource; - /** The flavor hated by Pokémon with this nature. */ - hates_flavor: null | NamedAPIResource; - /** The identifier for this resource. */ - id: number; - /** The stat increased by 10% in Pokémon with this nature. */ - increased_stat: null | NamedAPIResource; - /** The flavor liked by Pokémon with this nature. */ - likes_flavor: null | NamedAPIResource; - /** A list of battle styles and how likely a Pokémon with this nature is to use them in the Battle Palace or Battle Tent. */ - move_battle_style_preferences: MoveBattleStylePreference[]; - /** The name for this resource. */ - name: string; - /** The name of this resource listed in different languages. */ - names: NatureName[]; - /** A list of Pokéathlon stats this nature effects and how much it effects them. */ - pokeathlon_stat_changes: PokeathlonStatChange[]; - [property: string]: any; - } - - interface MoveBattleStylePreference { - /** Chance of using the move, in percent, if HP is over one half. */ - high_hp_preference: number; - /** Chance of using the move, in percent, if HP is under one half. */ - low_hp_preference: number; - /** The move battle style. */ - move_battle_style: NamedAPIResource; - [property: string]: any; - } - - interface NatureName { - language: NamedAPIResource; - name: string; - [property: string]: any; - } - - interface PokeathlonStatChange { - max_change: number; - pokeathlon_stat: NamedAPIResource; - [property: string]: any; - } - - /** Areas used for grouping Pokémon encounters in Pal Park. They're like habitats that are specific to [Pal Park](https://bulbapedia.bulbagarden.net/wiki/Pal_Park). */ - interface PalParkArea { - /** The identifier for this resource. */ - id: number; - /** The name for this resource. */ - name: string; - /** The name of this resource listed in different languages. */ - names: PalParkAreaName[]; - /** A list of Pokémon encountered in thi pal park area along with details. */ - pokemon_encounters: PalParkAreaPokemonEncounter[]; - [property: string]: any; - } - - interface PalParkAreaName { - language: NamedAPIResource; - name: string; - [property: string]: any; - } - - interface PalParkAreaPokemonEncounter { - base_score: number; - pokemon_species: NamedAPIResource; - rate: number; - [property: string]: any; - } - - /** Pokeathlon Stats are different attributes of a Pokémon's performance in Pokéathlons. In Pokéathlons, competitions happen on different courses; one for each of the different Pokéathlon stats. See [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Pok%C3%A9athlon) for greater detail. */ - interface PokeathlonStat { - /** A detail of natures which affect this Pokéathlon stat positively or negatively. */ - affecting_natures: PokeathlonStatAffectingNatures; - /** The identifier for this resource. */ - id: number; - /** The name for this resource. */ - name: string; - /** The name of this resource listed in different languages. */ - names: PokeathlonStatName[]; - [property: string]: any; - } - - interface PokeathlonStatAffectingNatures { - decrease: AffectingNaturesDecrease[]; - increase: AffectingNaturesIncrease[]; - [property: string]: any; - } - - interface AffectingNaturesDecrease { - max_change: number; - nature: NamedAPIResource; - [property: string]: any; - } - - interface AffectingNaturesIncrease { - max_change: number; - nature: NamedAPIResource; - [property: string]: any; - } - - interface PokeathlonStatName { - language: NamedAPIResource; - name: string; - [property: string]: any; - } - - /** A Pokédex is a handheld electronic encyclopedia device; one which is capable of recording and retaining information of the various Pokémon in a given region with the exception of the national dex and some smaller dexes related to portions of a region. See [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Pokedex) for greater detail. */ - interface PokedexObject { - /** The description of this resource listed in different languages. */ - descriptions: PokedexDescription[]; - /** The identifier for this resource. */ - id: number; - /** Whether or not this Pokédex originated in the main series of the video games. */ - is_main_series: boolean; - /** The name for this resource. */ - name: string; - /** The name of this resource listed in different languages. */ - names: PokedexName[]; - /** A list of Pokémon catalogued in this Pokédex and their indexes. */ - pokemon_entries: PokemonEntry[]; - /** The region this Pokédex catalogues Pokémon for. */ - region: null | NamedAPIResource; - /** A list of version groups this Pokédex is relevant to. */ - version_groups: NamedAPIResource[]; - [property: string]: any; - } - - interface PokedexDescription { - description: string; - language: NamedAPIResource; - [property: string]: any; - } - - interface PokedexName { - language: NamedAPIResource; - name: string; - [property: string]: any; - } - - interface PokemonEntry { - /** The index of this Pokémon species entry within the Pokédex. */ - entry_number: number; - /** The Pokémon species being encountered. */ - pokemon_species: NamedAPIResource; - [property: string]: any; - } - - interface PokemonEncounter { - location_area: NamedAPIResource; - version_details: PokemonEncounterVersionDetailObject[]; - [property: string]: any; - } - - interface PokemonEncounterVersionDetailObject { - encounter_details: FluffyEncounterDetail[]; - max_chance: number; - version: NamedAPIResource; - [property: string]: any; - } - - interface FluffyEncounterDetail { - chance: number; - condition_values: NamedAPIResource[]; - max_level: number; - method: NamedAPIResource; - min_level: number; - [property: string]: any; - } - - /** Pokémon are the creatures that inhabit the world of the Pokémon games. They can be caught using Pokéballs and trained by battling with other Pokémon. Each Pokémon belongs to a specific species but may take on a variant which makes it differ from other Pokémon of the same species, such as base stats, available abilities and typings. See [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Pok%C3%A9mon_(species)) for greater detail. */ - interface Pokemon { - /** A list of abilities this Pokémon could potentially have. */ - abilities: PokemonAbility[]; - /** The base experience gained for defeating this Pokémon. */ - base_experience: number | null; - /** A list of forms this Pokémon can take on. */ - forms: NamedAPIResource[]; - /** A list of game indices relevent to Pokémon item by generation. */ - game_indices: PokemonGameIndex[]; - /** The height of this Pokémon in decimetres. */ - height: number; - /** A list of items this Pokémon may be holding when encountered. */ - held_items: HeldItem[]; - /** The identifier for this resource. */ - id: number; - /** Set for exactly one Pokémon used as the default for each species. */ - is_default: boolean; - /** A link to a list of location areas, as well as encounter details pertaining to specific versions. */ - location_area_encounters: string; - /** A list of moves along with learn methods and level details pertaining to specific version groups. */ - moves: MoveElement[]; - /** The name for this resource. */ - name: string; - /** Order for sorting. Almost national order, except families are grouped together. */ - order: number; - past_abilities: PastAbility[]; - /** A list of details showing types this pokémon had in previous generations */ - past_types: PastType[]; - /** The species this Pokémon belongs to. */ - species: NamedAPIResource; - /** A set of sprites used to depict this Pokémon in the game. A visual representation of the various sprites can be found at PokeAPI/sprites */ - sprites: PokemonSprites; - /** A list of base stat values for this Pokémon. */ - stats: StatElement[]; - /** A list of details showing types this Pokémon has. */ - types: PokemonType[]; - /** The weight of this Pokémon in hectograms. */ - weight: number; - [property: string]: any; - } - - interface PokemonAbility { - /** The ability the Pokémon may have. */ - ability: NamedAPIResource; - /** Whether or not this is a hidden ability. */ - is_hidden: boolean; - /** The slot this ability occupies in this Pokémon species. */ - slot: number; - [property: string]: any; - } - - interface PokemonGameIndex { - game_index: number; - version: NamedAPIResource; - [property: string]: any; - } - - interface HeldItem { - item: NamedAPIResource; - version_details: HeldItemVersionDetail[]; - [property: string]: any; - } - - interface HeldItemVersionDetail { - rarity: number; - version: NamedAPIResource; - [property: string]: any; - } - - interface MoveElement { - move: NamedAPIResource; - version_group_details: VersionGroupDetail[]; - [property: string]: any; - } - - interface VersionGroupDetail { - level_learned_at: number; - move_learn_method: NamedAPIResource; - version_group: NamedAPIResource; - [property: string]: any; - } - - interface PastAbility { - abilities: PastAbilityAbility[]; - generation: NamedAPIResource; - [property: string]: any; - } - - interface PastAbilityAbility { - ability: NamedAPIResource; - is_hidden: boolean; - slot: number; - [property: string]: any; - } - - interface PastType { - generation: NamedAPIResource; - types: PastTypeType[]; - [property: string]: any; - } - - interface PastTypeType { - slot: number; - type: NamedAPIResource; - [property: string]: any; - } - - interface PokemonSprites { - /** The default depiction of this Pokémon from the back in battle. */ - back_default: null | string; - /** The female depiction of this Pokémon from the back in battle. */ - back_female: null | string; - /** The shiny depiction of this Pokémon from the back in battle. */ - back_shiny: null | string; - /** The shiny female depiction of this Pokémon from the back in battle. */ - back_shiny_female: null | string; - /** The default depiction of this Pokémon from the front in battle. */ - front_default: null | string; - /** The female depiction of this Pokémon from the front in battle. */ - front_female: null | string; - /** The shiny depiction of this Pokémon from the front in battle. */ - front_shiny: null | string; - /** The shiny female depiction of this Pokémon from the front in battle. */ - front_shiny_female: null | string; - other: Other; - versions: Versions; - [property: string]: any; - } - - interface Other { - dream_world: DreamWorld; - home: Home; - "official-artwork": OfficialArtwork; - showdown: Showdown; - [property: string]: any; - } - - interface DreamWorld { - front_default: null | string; - front_female: null | string; - [property: string]: any; - } - - interface Home { - front_default: null | string; - front_female: null | string; - front_shiny: null | string; - front_shiny_female: null | string; - [property: string]: any; - } - - interface OfficialArtwork { - front_default: null | string; - front_shiny: null | string; - [property: string]: any; - } - - interface Showdown { - back_default: null | string; - back_female: null | string; - back_shiny: null | string; - back_shiny_female: null; - front_default: null | string; - front_female: null | string; - front_shiny: null | string; - front_shiny_female: null | string; - [property: string]: any; - } - - interface Versions { - "generation-i": GenerationI; - "generation-ii": GenerationIi; - "generation-iii": GenerationIii; - "generation-iv": GenerationIv; - "generation-v": GenerationV; - "generation-vi": GenerationVi; - "generation-vii": GenerationVii; - "generation-viii": GenerationViii; - [property: string]: any; - } - - interface GenerationI { - "red-blue": RedBlue; - yellow: Yellow; - [property: string]: any; - } - - interface RedBlue { - back_default: null | string; - back_gray: null | string; - back_transparent: null | string; - front_default: null | string; - front_gray: null | string; - front_transparent: null | string; - [property: string]: any; - } - - interface Yellow { - back_default: null | string; - back_gray: null | string; - back_transparent: null | string; - front_default: null | string; - front_gray: null | string; - front_transparent: null | string; - [property: string]: any; - } - - interface GenerationIi { - crystal: Crystal; - gold: Gold; - silver: Silver; - [property: string]: any; - } - - interface Crystal { - back_default: null | string; - back_shiny: null | string; - back_shiny_transparent: null | string; - back_transparent: null | string; - front_default: null | string; - front_shiny: null | string; - front_shiny_transparent: null | string; - front_transparent: null | string; - [property: string]: any; - } - - interface Gold { - back_default: null | string; - back_shiny: null | string; - front_default: null | string; - front_shiny: null | string; - front_transparent: null | string; - [property: string]: any; - } - - interface Silver { - back_default: null | string; - back_shiny: null | string; - front_default: null | string; - front_shiny: null | string; - front_transparent: null | string; - [property: string]: any; - } - - interface GenerationIii { - emerald: Emerald; - "firered-leafgreen": FireredLeafgreen; - "ruby-sapphire": RubySapphire; - [property: string]: any; - } - - interface Emerald { - front_default: null | string; - front_shiny: null | string; - [property: string]: any; - } - - interface FireredLeafgreen { - back_default: null | string; - back_shiny: null | string; - front_default: null | string; - front_shiny: null | string; - [property: string]: any; - } - - interface RubySapphire { - back_default: null | string; - back_shiny: null | string; - front_default: null | string; - front_shiny: null | string; - [property: string]: any; - } - - interface GenerationIv { - "diamond-pearl": DiamondPearl; - "heartgold-soulsilver": HeartgoldSoulsilver; - platinum: Platinum; - [property: string]: any; - } - - interface DiamondPearl { - back_default: null | string; - back_female: null | string; - back_shiny: null | string; - back_shiny_female: null | string; - front_default: null | string; - front_female: null | string; - front_shiny: null | string; - front_shiny_female: null | string; - [property: string]: any; - } - - interface HeartgoldSoulsilver { - back_default: null | string; - back_female: null | string; - back_shiny: null | string; - back_shiny_female: null | string; - front_default: null | string; - front_female: null | string; - front_shiny: null | string; - front_shiny_female: null | string; - [property: string]: any; - } - - interface Platinum { - back_default: null | string; - back_female: null | string; - back_shiny: null | string; - back_shiny_female: null | string; - front_default: null | string; - front_female: null | string; - front_shiny: null | string; - front_shiny_female: null | string; - [property: string]: any; - } - - interface GenerationV { - "black-white": BlackWhite; - [property: string]: any; - } - - interface BlackWhite { - animated: Animated; - back_default: null | string; - back_female: null | string; - back_shiny: null | string; - back_shiny_female: null | string; - front_default: null | string; - front_female: null | string; - front_shiny: null | string; - front_shiny_female: null | string; - [property: string]: any; - } - - interface Animated { - back_default: null | string; - back_female: null | string; - back_shiny: null | string; - back_shiny_female: null | string; - front_default: null | string; - front_female: null | string; - front_shiny: null | string; - front_shiny_female: null | string; - [property: string]: any; - } - - interface GenerationVi { - "omegaruby-alphasapphire": OmegarubyAlphasapphire; - "x-y": XY; - [property: string]: any; - } - - interface OmegarubyAlphasapphire { - front_default: null | string; - front_female: null | string; - front_shiny: null | string; - front_shiny_female: null | string; - [property: string]: any; - } - - interface XY { - front_default: null | string; - front_female: null | string; - front_shiny: null | string; - front_shiny_female: null | string; - [property: string]: any; - } - - interface GenerationVii { - icons: GenerationViiIcons; - "ultra-sun-ultra-moon": UltraSunUltraMoon; - [property: string]: any; - } - - interface GenerationViiIcons { - front_default: null | string; - front_female: null | string; - [property: string]: any; - } - - interface UltraSunUltraMoon { - front_default: null | string; - front_female: null | string; - front_shiny: null | string; - front_shiny_female: null | string; - [property: string]: any; - } - - interface GenerationViii { - icons: GenerationViiiIcons; - [property: string]: any; - } - - interface GenerationViiiIcons { - front_default: null | string; - front_female: null | string; - [property: string]: any; - } - - interface StatElement { - base_stat: number; - effort: number; - stat: NamedAPIResource; - [property: string]: any; - } - - interface PokemonType { - /** The order the Pokémon's types are listed in. */ - slot: number; - /** The type the referenced Pokémon has. */ - type: NamedAPIResource; - [property: string]: any; - } - - /** Colors used for sorting Pokémon in a Pokédex. The color listed in the Pokédex is usually the color most apparent or covering each Pokémon's body. No orange category exists; Pokémon that are primarily orange are listed as red or brown. */ - interface PokemonColor { - /** The identifier for this resource. */ - id: number; - /** The name for this resource. */ - name: string; - /** The name of this resource listed in different languages. */ - names: PokemonColorName[]; - /** A list of the Pokémon species that have this color. */ - pokemon_species: NamedAPIResource[]; - [property: string]: any; - } - - interface PokemonColorName { - language: NamedAPIResource; - name: string; - [property: string]: any; - } - - /** Some Pokémon may appear in one of multiple, visually different forms. These differences are purely cosmetic. For variations within a Pokémon species, which do differ in more than just visuals, the 'Pokémon' entity is used to represent such a variety. */ - interface PokemonForm { - /** The name of this form. */ - form_name: string; - /** The form specific form name of this Pokémon form, or empty if the form does not have a specific name. */ - form_names: FormName[]; - /** The order in which forms should be sorted within a species' forms. */ - form_order: number; - /** The identifier for this resource. */ - id: number; - /** Whether or not this form can only happen during battle. */ - is_battle_only: boolean; - /** True for exactly one form used as the default for each Pokémon. */ - is_default: boolean; - /** Whether or not this form requires mega evolution. */ - is_mega: boolean; - /** The name for this resource. */ - name: string; - /** The form specific full name of this Pokémon form, or empty if the form does not have a specific name. */ - names: PokemonFormName[]; - /** The order in which forms should be sorted within all forms. Multiple forms may have equal order, in which case they should fall back on sorting by name. */ - order: number; - /** The Pokémon that can take on this form. */ - pokemon: NamedAPIResource; - /** A set of sprites used to depict this Pokémon form in the game. */ - sprites: PokemonFormSprites; - /** A list of details showing types this Pokémon form has. */ - types: PokemonFormType[]; - /** The version group this Pokémon form was introduced in. */ - version_group: NamedAPIResource; - [property: string]: any; - } - - interface FormName { - language: NamedAPIResource; - name: string; - [property: string]: any; - } - - interface PokemonFormName { - language: NamedAPIResource; - name: string; - [property: string]: any; - } - - interface PokemonFormSprites { - /** The default depiction of this Pokémon form from the back in battle. */ - back_default: null | string; - back_female: null | string; - /** The shiny depiction of this Pokémon form from the back in battle. */ - back_shiny: null | string; - back_shiny_female: null | string; - /** The default depiction of this Pokémon form from the front in battle. */ - front_default: null | string; - front_female: null | string; - /** The shiny depiction of this Pokémon form from the front in battle. */ - front_shiny: null | string; - front_shiny_female: null | string; - [property: string]: any; - } - - interface PokemonFormType { - /** The order the Pokémon's types are listed in. */ - slot: number; - /** The type the referenced Form has. */ - type: NamedAPIResource; - [property: string]: any; - } - - /** Habitats are generally different terrain Pokémon can be found in but can also be areas designated for rare or legendary Pokémon. */ - interface PokemonHabitat { - /** The identifier for this resource. */ - id: number; - /** The name for this resource. */ - name: string; - /** The name of this resource listed in different languages. */ - names: PokemonHabitatName[]; - /** A list of the Pokémon species that can be found in this habitat. */ - pokemon_species: NamedAPIResource[]; - [property: string]: any; - } - - interface PokemonHabitatName { - language: NamedAPIResource; - name: string; - [property: string]: any; - } - - /** Shapes used for sorting Pokémon in a Pokédex. */ - interface PokemonShape { - /** The "scientific" name of this Pokémon shape listed in different languages. */ - awesome_names: AwesomeName[]; - /** The identifier for this resource. */ - id: number; - /** The name for this resource. */ - name: string; - /** The name of this resource listed in different languages. */ - names: PokemonShapeName[]; - /** A list of the Pokémon species that have this shape. */ - pokemon_species: NamedAPIResource[]; - [property: string]: any; - } - - interface AwesomeName { - /** The localized "scientific" name for an API resource in a specific language. */ - awesome_name: string; - /** The language this "scientific" name is in. */ - language: NamedAPIResource; - [property: string]: any; - } - - interface PokemonShapeName { - language: NamedAPIResource; - name: string; - [property: string]: any; - } - - /** A Pokémon Species forms the basis for at least one Pokémon. Attributes of a Pokémon species are shared across all varieties of Pokémon within the species. A good example is Wormadam; Wormadam is the species which can be found in three different varieties, Wormadam-Trash, Wormadam-Sandy and Wormadam-Plant. */ - interface PokemonSpecies { - /** The happiness when caught by a normal Pokéball; up to 255. The higher the number, the happier the Pokémon. */ - base_happiness: number | null; - /** The base capture rate; up to 255. The higher the number, the easier the catch. */ - capture_rate: number; - /** The color of this Pokémon for Pokédex search. */ - color: NamedAPIResource; - /** A list of egg groups this Pokémon species is a member of. */ - egg_groups: NamedAPIResource[]; - /** The evolution chain this Pokémon species is a member of. */ - evolution_chain: APIResource; - /** The Pokémon species that evolves into this Pokemon_species. */ - evolves_from_species: null | NamedAPIResource; - /** A list of flavor text entries for this Pokémon species. */ - flavor_text_entries: PokemonSpeciesFlavorTextEntry[]; - /** Descriptions of different forms Pokémon take on within the Pokémon species. */ - form_descriptions: FormDescription[]; - /** Whether or not this Pokémon has multiple forms and can switch between them. */ - forms_switchable: boolean; - /** The chance of this Pokémon being female, in eighths; or -1 for genderless. */ - gender_rate: number; - /** The genus of this Pokémon species listed in multiple languages. */ - genera: Genus[]; - /** The generation this Pokémon species was introduced in. */ - generation: NamedAPIResource; - /** The rate at which this Pokémon species gains levels. */ - growth_rate: NamedAPIResource; - /** The habitat this Pokémon species can be encountered in. */ - habitat: null | NamedAPIResource; - /** Whether or not this Pokémon has visual gender differences. */ - has_gender_differences: boolean; - /** Initial hatch counter: one must walk 255 × (hatch_counter + 1) steps before this Pokémon's egg hatches, unless utilizing bonuses like Flame Body's. */ - hatch_counter: number | null; - /** The identifier for this resource. */ - id: number; - /** Whether or not this is a baby Pokémon. */ - is_baby: boolean; - /** Whether or not this is a legendary Pokémon. */ - is_legendary: boolean; - /** Whether or not this is a mythical Pokémon. */ - is_mythical: boolean; - /** The name for this resource. */ - name: string; - /** The name of this resource listed in different languages. */ - names: PokemonSpeciesName[]; - /** The order in which species should be sorted. Based on National Dex order, except families are grouped together and sorted by stage. */ - order: number; - /** A list of encounters that can be had with this Pokémon species in pal park. */ - pal_park_encounters: PalParkEncounter[]; - /** A list of Pokedexes and the indexes reserved within them for this Pokémon species. */ - pokedex_numbers: PokedexNumber[]; - /** The shape of this Pokémon for Pokédex search. */ - shape: null | NamedAPIResource; - /** A list of the Pokémon that exist within this Pokémon species. */ - varieties: Variety[]; - [property: string]: any; - } - - interface PokemonSpeciesFlavorTextEntry { - flavor_text: string; - language: NamedAPIResource; - version: NamedAPIResource; - [property: string]: any; - } - - interface FormDescription { - description: string; - language: NamedAPIResource; - [property: string]: any; - } - - interface Genus { - /** The localized genus for the referenced Pokémon species */ - genus: string; - /** The language this genus is in. */ - language: NamedAPIResource; - [property: string]: any; - } - - interface PokemonSpeciesName { - language: NamedAPIResource; - name: string; - [property: string]: any; - } - - interface PalParkEncounter { - area: NamedAPIResource; - base_score: number; - rate: number; - [property: string]: any; - } - - interface PokedexNumber { - entry_number: number; - pokedex: NamedAPIResource; - [property: string]: any; - } - - interface Variety { - is_default: boolean; - pokemon: NamedAPIResource; - [property: string]: any; - } - - /** A region is an organized area of the Pokémon world. Most often, the main difference between regions is the species of Pokémon that can be encountered within them. */ - interface Region { - /** The identifier for this resource. */ - id: number; - /** A list of locations that can be found in this region. */ - locations: NamedAPIResource[]; - /** The generation this region was introduced in. */ - main_generation: null | NamedAPIResource; - /** The name for this resource. */ - name: string; - /** The name of this resource listed in different languages. */ - names: RegionName[]; - /** A list of pokédexes that catalogue Pokémon in this region. */ - pokedexes: NamedAPIResource[]; - /** A list of version groups where this region can be visited. */ - version_groups: NamedAPIResource[]; - [property: string]: any; - } - - interface RegionName { - language: NamedAPIResource; - name: string; - [property: string]: any; - } - - /** Stats determine certain aspects of battles. Each Pokémon has a value for each stat which grows as they gain levels and can be altered momentarily by effects in battles. */ - interface Stat { - /** A detail of moves which affect this stat positively or negatively. */ - affecting_moves: AffectingMoves; - /** A detail of natures which affect this stat positively or negatively. */ - affecting_natures: StatAffectingNatures; - /** A list of characteristics that are set on a Pokémon when its highest base stat is this stat. */ - characteristics: APIResource[]; - /** ID the games use for this stat. */ - game_index: number; - /** The identifier for this resource. */ - id: number; - /** Whether this stat only exists within a battle. */ - is_battle_only: boolean; - /** The class of damage this stat is directly related to. */ - move_damage_class: null | NamedAPIResource; - /** The name for this resource. */ - name: string; - /** The name of this resource listed in different languages. */ - names: StatName[]; - [property: string]: any; - } - - interface AffectingMoves { - decrease: AffectingMovesDecrease[]; - increase: AffectingMovesIncrease[]; - [property: string]: any; - } - - interface AffectingMovesDecrease { - change: number; - move: NamedAPIResource; - [property: string]: any; - } - - interface AffectingMovesIncrease { - change: number; - move: NamedAPIResource; - [property: string]: any; - } - - interface StatAffectingNatures { - decrease: NamedAPIResource[]; - increase: NamedAPIResource[]; - [property: string]: any; - } - - interface StatName { - language: NamedAPIResource; - name: string; - [property: string]: any; - } - - /** Super contest effects refer to the effects of moves when used in super contests. */ - interface SuperContestEffect { - /** The level of appeal this super contest effect has. */ - appeal: number; - /** The flavor text of this super contest effect listed in different languages. */ - flavor_text_entries: SuperContestEffectFlavorTextEntry[]; - /** The identifier for this resource. */ - id: number; - /** A list of moves that have the effect when used in super contests. */ - moves: NamedAPIResource[]; - [property: string]: any; - } - - interface SuperContestEffectFlavorTextEntry { - flavor_text: string; - language: NamedAPIResource; - [property: string]: any; - } - - /** Types are properties for Pokémon and their moves. Each type has three properties: which types of Pokémon it is super effective against, which types of Pokémon it is not very effective against, and which types of Pokémon it is completely ineffective against. */ - interface Type { - /** A detail of how effective this type is toward others and vice versa. */ - damage_relations: TypeDamageRelations; - /** A list of game indices relevent to this item by generation. */ - game_indices: TypeGameIndex[]; - /** The generation this type was introduced in. */ - generation: NamedAPIResource; - /** The identifier for this resource. */ - id: number; - /** The class of damage inflicted by this type. */ - move_damage_class: null | NamedAPIResource; - /** A list of moves that have this type. */ - moves: NamedAPIResource[]; - /** The name for this resource. */ - name: string; - /** The name of this resource listed in different languages. */ - names: TypeName[]; - /** A list of details of how effective this type was toward others and vice versa in previous generations */ - past_damage_relations: PastDamageRelation[]; - /** A list of details of Pokémon that have this type. */ - pokemon: TypePokemon[]; - [property: string]: any; - } - - interface TypeDamageRelations { - double_damage_from: NamedAPIResource[]; - double_damage_to: NamedAPIResource[]; - half_damage_from: NamedAPIResource[]; - half_damage_to: NamedAPIResource[]; - no_damage_from: NamedAPIResource[]; - no_damage_to: NamedAPIResource[]; - [property: string]: any; - } - - interface TypeGameIndex { - game_index: number; - generation: NamedAPIResource; - [property: string]: any; - } - - interface TypeName { - language: NamedAPIResource; - name: string; - [property: string]: any; - } - - interface PastDamageRelation { - damage_relations: PastDamageRelationDamageRelations; - generation: NamedAPIResource; - [property: string]: any; - } - - interface PastDamageRelationDamageRelations { - double_damage_from: NamedAPIResource[]; - double_damage_to: NamedAPIResource[]; - half_damage_from: NamedAPIResource[]; - half_damage_to: NamedAPIResource[]; - no_damage_from: NamedAPIResource[]; - no_damage_to: NamedAPIResource[]; - [property: string]: any; - } - - interface TypePokemon { - /** The Pokémon that has the referenced type. */ - pokemon: NamedAPIResource; - /** The order the Pokémon's types are listed in. */ - slot: number; - [property: string]: any; - } - - /** Versions of the games, e.g., Red, Blue or Yellow. */ - interface Version { - /** The identifier for this resource. */ - id: number; - /** The name for this resource. */ - name: string; - /** The name of this resource listed in different languages. */ - names: VersionName[]; - /** The version group this version belongs to. */ - version_group: NamedAPIResource; - [property: string]: any; - } - - interface VersionName { - language: NamedAPIResource; - name: string; - [property: string]: any; - } - - /** Version groups categorize highly similar versions of the games. */ - interface VersionGroup { - /** The generation this version was introduced in. */ - generation: NamedAPIResource; - /** The identifier for this resource. */ - id: number; - /** A list of methods in which Pokémon can learn moves in this version group. */ - move_learn_methods: NamedAPIResource[]; - /** The name for this resource. */ - name: string; - /** Order for sorting. Almost by date of release, except similar versions are grouped together. */ - order: number; - /** A list of Pokédexes introduces in this version group. */ - pokedexes: NamedAPIResource[]; - /** A list of regions that can be visited in this version group. */ - regions: NamedAPIResource[]; - /** The versions this version group owns. */ - versions: NamedAPIResource[]; - [property: string]: any; - } - - interface ListEndpointOptions { - /** The offset to be used in the request */ - offset?: number; - /** The limit to be used in the request */ - limit?: number; - /** The limit of the cache in milliseconds */ - cacheLimit?: number; - } - - export class Pokedex { - constructor(config?: { - /** The protocol to be used - * @default 'https' */ - protocol?: "https" | "http"; - /** The hostname of the PokeAPI instance - * @default 'pokeapi.co' */ - hostName?: string; - /** The version path of the API - * @default '/api/v2/' */ - versionPath?: string; - /** The offset to be used in list requests - * @default 0 */ - offset?: number; - /** The limit to be used in list requests - * @default 100000 */ - limit?: number; - /** The timeout of a response in milliseconds - * @default 10 * 1000 // (10 seconds) */ - timeout?: number; - /** Enables browsers to cache all responses when set to `true` - * @default true */ - cache?: boolean; - /** Enables browsers to cache images when set to `true`. [Learn more](https://github.com/PokeAPI/pokeapi-js-wrapper#caching-images) - * @default false */ - cacheImages?: boolean; - }); - - getBerryByName(name: string | number): Promise; - getBerryByName(names: Array): Promise; - getBerryFirmnessByName(name: string): Promise; - getBerryFirmnessByName(names: Array): Promise; - getBerryFlavorByName(name: string | number): Promise; - getBerryFlavorByName(names: Array): Promise; - getContestTypeByName(name: string | number): Promise; - getContestTypeByName(names: Array): Promise; - getContestEffectById(id: number): Promise; - getContestEffectById(ids: number[]): Promise; - getSuperContestEffectById(id: number): Promise; - getSuperContestEffectById(ids: number[]): Promise; - getEncounterMethodByName(name: string | number): Promise; - getEncounterMethodByName(names: Array): Promise; - getEncounterConditionByName(name: string | number): Promise; - getEncounterConditionByName(names: Array): Promise; - getEncounterConditionValueByName(name: string | number): Promise; - getEncounterConditionValueByName(names: Array): Promise; - getEvolutionChainById(id: number): Promise; - getEvolutionChainById(ids: number[]): Promise; - getEvolutionTriggerByName(name: string | number): Promise; - getEvolutionTriggerByName(names: Array): Promise; - getGenerationByName(name: string | number): Promise; - getGenerationByName(names: Array): Promise; - getPokedexByName(name: string | number): Promise; - getPokedexByName(names: Array): Promise; - getVersionByName(name: string | number): Promise; - getVersionByName(names: Array): Promise; - getVersionGroupByName(name: string | number): Promise; - getVersionGroupByName(names: Array): Promise; - getItemByName(name: string | number): Promise; - getItemByName(names: Array): Promise; - getItemAttributeByName(name: string | number): Promise; - getItemAttributeByName(names: Array): Promise; - getItemCategoryByName(name: string | number): Promise; - getItemCategoryByName(names: Array): Promise; - getItemFlingEffectByName(name: string | number): Promise; - getItemFlingEffectByName(names: Array): Promise; - getItemPocketByName(name: string | number): Promise; - getItemPocketByName(names: Array): Promise; - getMachineById(id: number): Promise; - getMachineById(ids: number[]): Promise; - getMoveByName(name: string | number): Promise; - getMoveByName(names: Array): Promise; - getMoveAilmentByName(name: string | number): Promise; - getMoveAilmentByName(names: Array): Promise; - getMoveBattleStyleByName(name: string | number): Promise; - getMoveBattleStyleByName(names: Array): Promise; - getMoveCategoryByName(name: string | number): Promise; - getMoveCategoryByName(names: Array): Promise; - getMoveDamageClassByName(name: string | number): Promise; - getMoveDamageClassByName(names: Array): Promise; - getMoveLearnMethodByName(name: string | number): Promise; - getMoveLearnMethodByName(names: Array): Promise; - getMoveTargetByName(name: string | number): Promise; - getMoveTargetByName(names: Array): Promise; - getLocationByName(name: string | number): Promise; - getLocationByName(names: Array): Promise; - getLocationAreaByName(name: string | number): Promise; - getLocationAreaByName(names: Array): Promise; - getPalParkAreaByName(name: string | number): Promise; - getPalParkAreaByName(names: Array): Promise; - getRegionByName(name: string | number): Promise; - getRegionByName(names: Array): Promise; - getAbilityByName(name: string | number): Promise; - getAbilityByName(names: Array): Promise; - getCharacteristicById(id: number): Promise; - getCharacteristicById(ids: number[]): Promise; - getEggGroupByName(name: string | number): Promise; - getEggGroupByName(names: Array): Promise; - getGenderByName(name: string | number): Promise; - getGenderByName(names: Array): Promise; - getGrowthRateByName(name: string | number): Promise; - getGrowthRateByName(names: Array): Promise; - getNatureByName(name: string | number): Promise; - getNatureByName(names: Array): Promise; - getPokeathlonStatByName(name: string | number): Promise; - getPokeathlonStatByName(names: Array): Promise; - getPokemonByName(name: string | number): Promise; - getPokemonByName(names: Array): Promise; - getPokemonEncounterAreasByName(name: string | number | Array): Promise; - getPokemonColorByName(name: string | number): Promise; - getPokemonColorByName(names: Array): Promise; - getPokemonFormByName(name: string | number): Promise; - getPokemonFormByName(names: Array): Promise; - getPokemonHabitatByName(name: string | number): Promise; - getPokemonHabitatByName(names: Array): Promise; - getPokemonShapeByName(name: string | number): Promise; - getPokemonShapeByName(names: Array): Promise; - getPokemonSpeciesByName(name: string | number): Promise; - getPokemonSpeciesByName(names: Array): Promise; - getStatByName(name: string | number): Promise; - getStatByName(names: Array): Promise; - getTypeByName(name: string | number): Promise; - getTypeByName(names: Array): Promise; - getLanguageByName(name: string | number): Promise; - getLanguageByName(names: Array): Promise; - - getEndpointsList(dict?: { offset: number, limit: number }): Promise; - getBerriesList(dict?: { offset: number, limit: number }): Promise; - getBerriesFirmnesssList(dict?: { offset: number, limit: number }): Promise; - getBerriesFlavorsList(dict?: { offset: number, limit: number }): Promise; - getContestTypesList(dict?: { offset: number, limit: number }): Promise; - getContestEffectsList(dict?: { offset: number, limit: number }): Promise; - getSuperContestEffectsList(dict?: { offset: number, limit: number }): Promise; - getEncounterMethodsList(dict?: { offset: number, limit: number }): Promise; - getEncounterConditionsList(dict?: { offset: number, limit: number }): Promise; - getEncounterConditionValuesList(dict?: { offset: number, limit: number }): Promise; - getEvolutionChainsList(dict?: { offset: number, limit: number }): Promise; - getEvolutionTriggersList(dict?: { offset: number, limit: number }): Promise; - getGenerationsList(dict?: { offset: number, limit: number }): Promise; - getPokedexsList(dict?: { offset: number, limit: number }): Promise; - getVersionsList(dict?: { offset: number, limit: number }): Promise; - getVersionGroupsList(dict?: { offset: number, limit: number }): Promise; - getItemsList(dict?: { offset: number, limit: number }): Promise; - getItemAttributesList(dict?: { offset: number, limit: number }): Promise; - getItemCategoriesList(dict?: { offset: number, limit: number }): Promise; - getItemFlingEffectsList(dict?: { offset: number, limit: number }): Promise; - getItemPocketsList(dict?: { offset: number, limit: number }): Promise; - getMachinesList(dict?: { offset: number, limit: number }): Promise; - getMovesList(dict?: { offset: number, limit: number }): Promise; - getMoveAilmentsList(dict?: { offset: number, limit: number }): Promise; - getMoveBattleStylesList(dict?: { offset: number, limit: number }): Promise; - getMoveCategoriesList(dict?: { offset: number, limit: number }): Promise; - getMoveDamageClassesList(dict?: { offset: number, limit: number }): Promise; - getMoveLearnMethodsList(dict?: { offset: number, limit: number }): Promise; - getMoveTargetsList(dict?: { offset: number, limit: number }): Promise; - getLocationsList(dict?: { offset: number, limit: number }): Promise; - getLocationAreasList(dict?: { offset: number, limit: number }): Promise; - getPalParkAreasList(dict?: { offset: number, limit: number }): Promise; - getRegionsList(dict?: { offset: number, limit: number }): Promise; - getAbilitiesList(dict?: { offset: number, limit: number }): Promise; - getCharacteristicsList(dict?: { offset: number, limit: number }): Promise; - getEggGroupsList(dict?: { offset: number, limit: number }): Promise; - getGendersList(dict?: { offset: number, limit: number }): Promise; - getGrowthRatesList(dict?: { offset: number, limit: number }): Promise; - getNaturesList(dict?: { offset: number, limit: number }): Promise; - getPokeathlonStatsList(dict?: { offset: number, limit: number }): Promise; - getPokemonsList(dict?: { offset: number, limit: number }): Promise; - getPokemonColorsList(dict?: { offset: number, limit: number }): Promise; - getPokemonFormsList(dict?: { offset: number, limit: number }): Promise; - getPokemonHabitatsList(dict?: { offset: number, limit: number }): Promise; - getPokemonShapesList(dict?: { offset: number, limit: number }): Promise; - getPokemonSpeciesList(dict?: { offset: number, limit: number }): Promise; - getStatsList(dict?: { offset: number, limit: number }): Promise; - getTypesList(dict?: { offset: number, limit: number }): Promise; - getLanguagesList(dict?: { offset: number, limit: number }): Promise; - - /** Use .resource() to query any URL or path. */ - resource(param: string): Promise; - resource(params: string[]): Promise; - } -} diff --git a/package-lock.json b/package-lock.json index 4843a6f..9fbdcae 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5616 +1,643 @@ { "name": "pokeapi-js-wrapper", - "version": "1.2.8", + "version": "2.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "pokeapi-js-wrapper", - "version": "1.2.8", + "version": "2.0.0", "license": "MPL-2.0", - "dependencies": { - "axios": "^1.11.0", - "localforage": "^1.10.0" - }, "devDependencies": { - "chai": "^4.5.0", - "chai-as-promised": "^7.1.2", - "chai-things": "^0.2.0", - "copy-webpack-plugin": "^13.0.0", - "doctoc": "^2.2.1", - "http-server": "^14.1.1", - "mocha": "^11.7.1", - "mock-local-storage": "^1.1.24", - "nyc": "^17.1.0", - "webpack": "^5.101.0", - "webpack-cli": "^6.0.1" - } - }, - "node_modules/@ampproject/remapping": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", - "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.24" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/code-frame": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.7.tgz", - "integrity": "sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/highlight": "^7.24.7", - "picocolors": "^1.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/compat-data": { - "version": "7.25.4", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.25.4.tgz", - "integrity": "sha512-+LGRog6RAsCJrrrg/IO6LGmpphNe5DiK30dGjCoxxeGv49B10/3XYGxPsAwrDlMFcFEvdAUavDT8r9k/hSyQqQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" + "http-server": "^14.1.1" } }, - "node_modules/@babel/core": { - "version": "7.25.2", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.25.2.tgz", - "integrity": "sha512-BBt3opiCOxUr9euZ5/ro/Xv8/V7yJ5bjYMqG/C1YAo8MIKAnumZalCN+msbci3Pigy4lIQfPUpfMM27HMGaYEA==", + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "license": "MIT", "dependencies": { - "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.24.7", - "@babel/generator": "^7.25.0", - "@babel/helper-compilation-targets": "^7.25.2", - "@babel/helper-module-transforms": "^7.25.2", - "@babel/helpers": "^7.25.0", - "@babel/parser": "^7.25.0", - "@babel/template": "^7.25.0", - "@babel/traverse": "^7.25.2", - "@babel/types": "^7.25.2", - "convert-source-map": "^2.0.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.2", - "json5": "^2.2.3", - "semver": "^6.3.1" + "color-convert": "^2.0.1" }, "engines": { - "node": ">=6.9.0" + "node": ">=8" }, "funding": { - "type": "opencollective", - "url": "https://opencollective.com/babel" + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/@babel/core/node_modules/convert-source-map": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", - "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "node_modules/async": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.6.tgz", + "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==", "dev": true, "license": "MIT" }, - "node_modules/@babel/generator": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.25.6.tgz", - "integrity": "sha512-VPC82gr1seXOpkjAAKoLhP50vx4vGNlF4msF64dSFq1P8RfB+QAuJWGHPXXPc8QyfVWwwB/TNNU4+ayZmHNbZw==", + "node_modules/basic-auth": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/basic-auth/-/basic-auth-2.0.1.tgz", + "integrity": "sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg==", "dev": true, "license": "MIT", "dependencies": { - "@babel/types": "^7.25.6", - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.25", - "jsesc": "^2.5.1" + "safe-buffer": "5.1.2" }, "engines": { - "node": ">=6.9.0" + "node": ">= 0.8" } }, - "node_modules/@babel/helper-compilation-targets": { - "version": "7.25.2", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.25.2.tgz", - "integrity": "sha512-U2U5LsSaZ7TAt3cfaymQ8WHh0pxvdHoEk6HVpaexxixjyEquMh0L0YNJNM6CTGKMXV1iksi0iZkGw4AcFkPaaw==", + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", "dev": true, "license": "MIT", "dependencies": { - "@babel/compat-data": "^7.25.2", - "@babel/helper-validator-option": "^7.24.8", - "browserslist": "^4.23.1", - "lru-cache": "^5.1.1", - "semver": "^6.3.1" + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" }, "engines": { - "node": ">=6.9.0" + "node": ">= 0.4" } }, - "node_modules/@babel/helper-module-imports": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.24.7.tgz", - "integrity": "sha512-8AyH3C+74cgCVVXow/myrynrAGv+nTVg5vKu2nZph9x7RcRwzmh0VFallJuFTZ9mx6u4eSdXZfcOzSqTUm0HCA==", + "node_modules/call-bound": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", + "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", "dev": true, "license": "MIT", "dependencies": { - "@babel/traverse": "^7.24.7", - "@babel/types": "^7.24.7" + "call-bind-apply-helpers": "^1.0.2", + "get-intrinsic": "^1.3.0" }, "engines": { - "node": ">=6.9.0" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/@babel/helper-module-transforms": { - "version": "7.25.2", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.25.2.tgz", - "integrity": "sha512-BjyRAbix6j/wv83ftcVJmBt72QtHI56C7JXZoG2xATiLpmoC7dpd8WnkikExHDVPpi/3qCmO6WY1EaXOluiecQ==", + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-module-imports": "^7.24.7", - "@babel/helper-simple-access": "^7.24.7", - "@babel/helper-validator-identifier": "^7.24.7", - "@babel/traverse": "^7.25.2" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, "engines": { - "node": ">=6.9.0" + "node": ">=10" }, - "peerDependencies": { - "@babel/core": "^7.0.0" + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/@babel/helper-simple-access": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.24.7.tgz", - "integrity": "sha512-zBAIvbCMh5Ts+b86r/CjU+4XGYIs+R1j951gxI3KmmxBMhCg4oQMsv6ZXQ64XOm/cvzfU1FmoCyt6+owc5QMYg==", + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "license": "MIT", "dependencies": { - "@babel/traverse": "^7.24.7", - "@babel/types": "^7.24.7" + "color-name": "~1.1.4" }, "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-string-parser": { - "version": "7.24.8", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.24.8.tgz", - "integrity": "sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" + "node": ">=7.0.0" } }, - "node_modules/@babel/helper-validator-identifier": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz", - "integrity": "sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==", + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } + "license": "MIT" }, - "node_modules/@babel/helper-validator-option": { - "version": "7.24.8", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.24.8.tgz", - "integrity": "sha512-xb8t9tD1MHLungh/AIoWYN+gVHaB9kwlu8gffXGSt3FFEIT7RjS+xWbc2vUD1UTZdIpKj/ab3rdqJ7ufngyi2Q==", + "node_modules/corser": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/corser/-/corser-2.0.1.tgz", + "integrity": "sha512-utCYNzRSQIZNPIcGZdQc92UVJYAhtGAteCFg0yRaFm8f0P+CPtyGyHXJcGXnffjCybUCEx3FQ2G7U3/o9eIkVQ==", "dev": true, "license": "MIT", "engines": { - "node": ">=6.9.0" + "node": ">= 0.4.0" } }, - "node_modules/@babel/helpers": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.25.6.tgz", - "integrity": "sha512-Xg0tn4HcfTijTwfDwYlvVCl43V6h4KyVVX2aEm4qdO/PC6L2YvzLHFdmxhoeSA3eslcE6+ZVXHgWwopXYLNq4Q==", + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", "dev": true, "license": "MIT", "dependencies": { - "@babel/template": "^7.25.0", - "@babel/types": "^7.25.6" + "ms": "^2.1.3" }, "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/highlight": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.24.7.tgz", - "integrity": "sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.24.7", - "chalk": "^2.4.2", - "js-tokens": "^4.0.0", - "picocolors": "^1.0.0" + "node": ">=6.0" }, - "engines": { - "node": ">=6.9.0" + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } } }, - "node_modules/@babel/parser": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.25.6.tgz", - "integrity": "sha512-trGdfBdbD0l1ZPmcJ83eNxB9rbEax4ALFTF7fN386TMYbeCQbyme5cOEXQhbGXKebwGaB/J52w1mrklMcbgy6Q==", + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", "dev": true, "license": "MIT", "dependencies": { - "@babel/types": "^7.25.6" - }, - "bin": { - "parser": "bin/babel-parser.js" + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" }, "engines": { - "node": ">=6.0.0" + "node": ">= 0.4" } }, - "node_modules/@babel/template": { - "version": "7.25.0", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.25.0.tgz", - "integrity": "sha512-aOOgh1/5XzKvg1jvVz7AVrx2piJ2XBi227DHmbY6y+bM9H2FlN+IfecYu4Xl0cNiiVejlsCri89LUsbj8vJD9Q==", + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", "dev": true, "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.24.7", - "@babel/parser": "^7.25.0", - "@babel/types": "^7.25.0" - }, "engines": { - "node": ">=6.9.0" + "node": ">= 0.4" } }, - "node_modules/@babel/traverse": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.25.6.tgz", - "integrity": "sha512-9Vrcx5ZW6UwK5tvqsj0nGpp/XzqthkT0dqIc9g1AdtygFToNtTF67XzYS//dm+SAK9cp3B9R4ZO/46p63SCjlQ==", + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", "dev": true, "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.24.7", - "@babel/generator": "^7.25.6", - "@babel/parser": "^7.25.6", - "@babel/template": "^7.25.0", - "@babel/types": "^7.25.6", - "debug": "^4.3.1", - "globals": "^11.1.0" - }, "engines": { - "node": ">=6.9.0" + "node": ">= 0.4" } }, - "node_modules/@babel/types": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.25.6.tgz", - "integrity": "sha512-/l42B1qxpG6RdfYf343Uw1vmDjeNhneUXtzhojE7pDgfpEypmRhI6j1kr17XCVv4Cgl9HdAiQY2x0GwKm7rWCw==", + "node_modules/es-object-atoms": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-string-parser": "^7.24.8", - "@babel/helper-validator-identifier": "^7.24.7", - "to-fast-properties": "^2.0.0" + "es-errors": "^1.3.0" }, "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@discoveryjs/json-ext": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.6.3.tgz", - "integrity": "sha512-4B4OijXeVNOPZlYA2oEwWOTkzyltLao+xbotHQeqN++Rv27Y6s818+n2Qkp8q+Fxhn0t/5lA5X1Mxktud8eayQ==", - "dev": true, - "engines": { - "node": ">=14.17.0" + "node": ">= 0.4" } }, - "node_modules/@isaacs/cliui": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", - "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", + "node_modules/eventemitter3": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", + "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==", "dev": true, - "dependencies": { - "string-width": "^5.1.2", - "string-width-cjs": "npm:string-width@^4.2.0", - "strip-ansi": "^7.0.1", - "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", - "wrap-ansi": "^8.1.0", - "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" - }, - "engines": { - "node": ">=12" - } + "license": "MIT" }, - "node_modules/@isaacs/cliui/node_modules/ansi-styles": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", - "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "node_modules/follow-redirects": { + "version": "1.16.0", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.16.0.tgz", + "integrity": "sha512-y5rN/uOsadFT/JfYwhxRS5R7Qce+g3zG97+JrtFZlC9klX/W5hD7iiLzScI4nZqUS7DNUdhPgw4xI8W2LuXlUw==", "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "license": "MIT", "engines": { - "node": ">=12" + "node": ">=4.0" }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "peerDependenciesMeta": { + "debug": { + "optional": true + } } }, - "node_modules/@isaacs/cliui/node_modules/emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", - "dev": true - }, - "node_modules/@isaacs/cliui/node_modules/string-width": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", - "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", "dev": true, - "dependencies": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, + "license": "MIT", "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/@isaacs/cliui/node_modules/wrap-ansi": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", - "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", "dev": true, + "license": "MIT", "dependencies": { - "ansi-styles": "^6.1.0", - "string-width": "^5.0.1", - "strip-ansi": "^7.0.1" + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" }, "engines": { - "node": ">=12" + "node": ">= 0.4" }, "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/@istanbuljs/load-nyc-config": { - "version": "1.1.0", + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", "dev": true, - "license": "ISC", + "license": "MIT", "dependencies": { - "camelcase": "^5.3.1", - "find-up": "^4.1.0", - "get-package-type": "^0.1.0", - "js-yaml": "^3.13.1", - "resolve-from": "^5.0.0" + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" }, "engines": { - "node": ">=8" + "node": ">= 0.4" } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/find-up": { - "version": "4.1.0", + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", "dev": true, "license": "MIT", - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, "engines": { - "node": ">=8" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/locate-path": { - "version": "5.0.0", + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, "license": "MIT", - "dependencies": { - "p-locate": "^4.1.0" - }, "engines": { "node": ">=8" } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/p-limit": { - "version": "2.3.0", + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", "dev": true, "license": "MIT", - "dependencies": { - "p-try": "^2.0.0" - }, "engines": { - "node": ">=6" + "node": ">= 0.4" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/p-locate": { - "version": "4.1.0", + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", "dev": true, "license": "MIT", "dependencies": { - "p-limit": "^2.2.0" + "function-bind": "^1.1.2" }, "engines": { - "node": ">=8" + "node": ">= 0.4" } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/p-try": { - "version": "2.2.0", + "node_modules/he": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", + "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", "dev": true, "license": "MIT", - "engines": { - "node": ">=6" + "bin": { + "he": "bin/he" } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/path-exists": { - "version": "4.0.0", + "node_modules/html-encoding-sniffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-3.0.0.tgz", + "integrity": "sha512-oWv4T4yJ52iKrufjnyZPkrN0CH3QnrUqdB6In1g5Fe1mia8GmF36gnfNySxoZtxD5+NmYw1EElVXiBk93UeskA==", "dev": true, "license": "MIT", + "dependencies": { + "whatwg-encoding": "^2.0.0" + }, "engines": { - "node": ">=8" + "node": ">=12" } }, - "node_modules/@istanbuljs/schema": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", - "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", + "node_modules/http-proxy": { + "version": "1.18.1", + "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.1.tgz", + "integrity": "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==", "dev": true, "license": "MIT", + "dependencies": { + "eventemitter3": "^4.0.0", + "follow-redirects": "^1.0.0", + "requires-port": "^1.0.0" + }, "engines": { - "node": ">=8" + "node": ">=8.0.0" } }, - "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", - "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", + "node_modules/http-server": { + "version": "14.1.1", + "resolved": "https://registry.npmjs.org/http-server/-/http-server-14.1.1.tgz", + "integrity": "sha512-+cbxadF40UXd9T01zUHgA+rlo2Bg1Srer4+B4NwIHdaGxAGGv59nYRnGGDJ9LBk7alpS0US+J+bLLdQOOkJq4A==", "dev": true, "license": "MIT", "dependencies": { - "@jridgewell/set-array": "^1.2.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.24" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", - "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", - "dev": true, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/set-array": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", - "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/source-map": { - "version": "0.3.6", - "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.6.tgz", - "integrity": "sha512-1ZJTZebgqllO79ue2bm3rIGud/bOe0pP5BjSRCRxxYkEZS8STV7zN84UBbiYu7jy+eCKSnVIUgoWWE/tt+shMQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.25" - } - }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.4.15", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", - "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", - "dev": true - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.25", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", - "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" - } - }, - "node_modules/@pkgjs/parseargs": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", - "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", - "dev": true, - "optional": true, - "engines": { - "node": ">=14" - } - }, - "node_modules/@textlint/ast-node-types": { - "version": "12.6.1", - "resolved": "https://registry.npmjs.org/@textlint/ast-node-types/-/ast-node-types-12.6.1.tgz", - "integrity": "sha512-uzlJ+ZsCAyJm+lBi7j0UeBbj+Oy6w/VWoGJ3iHRHE5eZ8Z4iK66mq+PG/spupmbllLtz77OJbY89BYqgFyjXmA==", - "dev": true - }, - "node_modules/@textlint/markdown-to-ast": { - "version": "12.6.1", - "resolved": "https://registry.npmjs.org/@textlint/markdown-to-ast/-/markdown-to-ast-12.6.1.tgz", - "integrity": "sha512-T0HO+VrU9VbLRiEx/kH4+gwGMHNMIGkp0Pok+p0I33saOOLyhfGvwOKQgvt2qkxzQEV2L5MtGB8EnW4r5d3CqQ==", - "dev": true, - "dependencies": { - "@textlint/ast-node-types": "^12.6.1", - "debug": "^4.3.4", - "mdast-util-gfm-autolink-literal": "^0.1.3", - "remark-footnotes": "^3.0.0", - "remark-frontmatter": "^3.0.0", - "remark-gfm": "^1.0.0", - "remark-parse": "^9.0.0", - "traverse": "^0.6.7", - "unified": "^9.2.2" - } - }, - "node_modules/@types/eslint": { - "version": "9.6.1", - "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-9.6.1.tgz", - "integrity": "sha512-FXx2pKgId/WyYo2jXw63kk7/+TY7u7AziEJxJAnSFzHlqTAS3Ync6SvgYAN/k4/PQpnnVuzoMuVnByKK2qp0ag==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/estree": "*", - "@types/json-schema": "*" - } - }, - "node_modules/@types/eslint-scope": { - "version": "3.7.7", - "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.7.tgz", - "integrity": "sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/eslint": "*", - "@types/estree": "*" - } - }, - "node_modules/@types/estree": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", - "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/json-schema": { - "version": "7.0.15", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", - "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/mdast": { - "version": "3.0.12", - "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.12.tgz", - "integrity": "sha512-DT+iNIRNX884cx0/Q1ja7NyUPpZuv0KPyL5rGNxm1WC1OtHstl7n4Jb7nk+xacNShQMbczJjt8uFzznpp6kYBg==", - "dev": true, - "dependencies": { - "@types/unist": "^2" - } - }, - "node_modules/@types/node": { - "version": "22.13.8", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.8.tgz", - "integrity": "sha512-G3EfaZS+iOGYWLLRCEAXdWK9my08oHNZ+FHluRiggIYJPOXzhOiDgpVCUHaUvyIC5/fj7C/p637jdzC666AOKQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "undici-types": "~6.20.0" - } - }, - "node_modules/@types/unist": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.7.tgz", - "integrity": "sha512-cputDpIbFgLUaGQn6Vqg3/YsJwxUwHLO13v3i5ouxT4lat0khip9AEWxtERujXV9wxIB1EyF97BSJFt6vpdI8g==", - "dev": true - }, - "node_modules/@webassemblyjs/ast": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.14.1.tgz", - "integrity": "sha512-nuBEDgQfm1ccRp/8bCQrx1frohyufl4JlbMMZ4P1wpeOfDhF6FQkxZJ1b/e+PLwr6X1Nhw6OLme5usuBWYBvuQ==", - "dev": true, - "dependencies": { - "@webassemblyjs/helper-numbers": "1.13.2", - "@webassemblyjs/helper-wasm-bytecode": "1.13.2" - } - }, - "node_modules/@webassemblyjs/floating-point-hex-parser": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.13.2.tgz", - "integrity": "sha512-6oXyTOzbKxGH4steLbLNOu71Oj+C8Lg34n6CqRvqfS2O71BxY6ByfMDRhBytzknj9yGUPVJ1qIKhRlAwO1AovA==", - "dev": true - }, - "node_modules/@webassemblyjs/helper-api-error": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.13.2.tgz", - "integrity": "sha512-U56GMYxy4ZQCbDZd6JuvvNV/WFildOjsaWD3Tzzvmw/mas3cXzRJPMjP83JqEsgSbyrmaGjBfDtV7KDXV9UzFQ==", - "dev": true - }, - "node_modules/@webassemblyjs/helper-buffer": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.14.1.tgz", - "integrity": "sha512-jyH7wtcHiKssDtFPRB+iQdxlDf96m0E39yb0k5uJVhFGleZFoNw1c4aeIcVUPPbXUVJ94wwnMOAqUHyzoEPVMA==", - "dev": true - }, - "node_modules/@webassemblyjs/helper-numbers": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.13.2.tgz", - "integrity": "sha512-FE8aCmS5Q6eQYcV3gI35O4J789wlQA+7JrqTTpJqn5emA4U2hvwJmvFRC0HODS+3Ye6WioDklgd6scJ3+PLnEA==", - "dev": true, - "dependencies": { - "@webassemblyjs/floating-point-hex-parser": "1.13.2", - "@webassemblyjs/helper-api-error": "1.13.2", - "@xtuc/long": "4.2.2" - } - }, - "node_modules/@webassemblyjs/helper-wasm-bytecode": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.13.2.tgz", - "integrity": "sha512-3QbLKy93F0EAIXLh0ogEVR6rOubA9AoZ+WRYhNbFyuB70j3dRdwH9g+qXhLAO0kiYGlg3TxDV+I4rQTr/YNXkA==", - "dev": true - }, - "node_modules/@webassemblyjs/helper-wasm-section": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.14.1.tgz", - "integrity": "sha512-ds5mXEqTJ6oxRoqjhWDU83OgzAYjwsCV8Lo/N+oRsNDmx/ZDpqalmrtgOMkHwxsG0iI//3BwWAErYRHtgn0dZw==", - "dev": true, - "dependencies": { - "@webassemblyjs/ast": "1.14.1", - "@webassemblyjs/helper-buffer": "1.14.1", - "@webassemblyjs/helper-wasm-bytecode": "1.13.2", - "@webassemblyjs/wasm-gen": "1.14.1" - } - }, - "node_modules/@webassemblyjs/ieee754": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.13.2.tgz", - "integrity": "sha512-4LtOzh58S/5lX4ITKxnAK2USuNEvpdVV9AlgGQb8rJDHaLeHciwG4zlGr0j/SNWlr7x3vO1lDEsuePvtcDNCkw==", - "dev": true, - "dependencies": { - "@xtuc/ieee754": "^1.2.0" - } - }, - "node_modules/@webassemblyjs/leb128": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.13.2.tgz", - "integrity": "sha512-Lde1oNoIdzVzdkNEAWZ1dZ5orIbff80YPdHx20mrHwHrVNNTjNr8E3xz9BdpcGqRQbAEa+fkrCb+fRFTl/6sQw==", - "dev": true, - "dependencies": { - "@xtuc/long": "4.2.2" - } - }, - "node_modules/@webassemblyjs/utf8": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.13.2.tgz", - "integrity": "sha512-3NQWGjKTASY1xV5m7Hr0iPeXD9+RDobLll3T9d2AO+g3my8xy5peVyjSag4I50mR1bBSN/Ct12lo+R9tJk0NZQ==", - "dev": true - }, - "node_modules/@webassemblyjs/wasm-edit": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.14.1.tgz", - "integrity": "sha512-RNJUIQH/J8iA/1NzlE4N7KtyZNHi3w7at7hDjvRNm5rcUXa00z1vRz3glZoULfJ5mpvYhLybmVcwcjGrC1pRrQ==", - "dev": true, - "dependencies": { - "@webassemblyjs/ast": "1.14.1", - "@webassemblyjs/helper-buffer": "1.14.1", - "@webassemblyjs/helper-wasm-bytecode": "1.13.2", - "@webassemblyjs/helper-wasm-section": "1.14.1", - "@webassemblyjs/wasm-gen": "1.14.1", - "@webassemblyjs/wasm-opt": "1.14.1", - "@webassemblyjs/wasm-parser": "1.14.1", - "@webassemblyjs/wast-printer": "1.14.1" - } - }, - "node_modules/@webassemblyjs/wasm-gen": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.14.1.tgz", - "integrity": "sha512-AmomSIjP8ZbfGQhumkNvgC33AY7qtMCXnN6bL2u2Js4gVCg8fp735aEiMSBbDR7UQIj90n4wKAFUSEd0QN2Ukg==", - "dev": true, - "dependencies": { - "@webassemblyjs/ast": "1.14.1", - "@webassemblyjs/helper-wasm-bytecode": "1.13.2", - "@webassemblyjs/ieee754": "1.13.2", - "@webassemblyjs/leb128": "1.13.2", - "@webassemblyjs/utf8": "1.13.2" - } - }, - "node_modules/@webassemblyjs/wasm-opt": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.14.1.tgz", - "integrity": "sha512-PTcKLUNvBqnY2U6E5bdOQcSM+oVP/PmrDY9NzowJjislEjwP/C4an2303MCVS2Mg9d3AJpIGdUFIQQWbPds0Sw==", - "dev": true, - "dependencies": { - "@webassemblyjs/ast": "1.14.1", - "@webassemblyjs/helper-buffer": "1.14.1", - "@webassemblyjs/wasm-gen": "1.14.1", - "@webassemblyjs/wasm-parser": "1.14.1" - } - }, - "node_modules/@webassemblyjs/wasm-parser": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.14.1.tgz", - "integrity": "sha512-JLBl+KZ0R5qB7mCnud/yyX08jWFw5MsoalJ1pQ4EdFlgj9VdXKGuENGsiCIjegI1W7p91rUlcB/LB5yRJKNTcQ==", - "dev": true, - "dependencies": { - "@webassemblyjs/ast": "1.14.1", - "@webassemblyjs/helper-api-error": "1.13.2", - "@webassemblyjs/helper-wasm-bytecode": "1.13.2", - "@webassemblyjs/ieee754": "1.13.2", - "@webassemblyjs/leb128": "1.13.2", - "@webassemblyjs/utf8": "1.13.2" - } - }, - "node_modules/@webassemblyjs/wast-printer": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.14.1.tgz", - "integrity": "sha512-kPSSXE6De1XOR820C90RIo2ogvZG+c3KiHzqUoO/F34Y2shGzesfqv7o57xrxovZJH/MetF5UjroJ/R/3isoiw==", - "dev": true, - "dependencies": { - "@webassemblyjs/ast": "1.14.1", - "@xtuc/long": "4.2.2" - } - }, - "node_modules/@webpack-cli/configtest": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-3.0.1.tgz", - "integrity": "sha512-u8d0pJ5YFgneF/GuvEiDA61Tf1VDomHHYMjv/wc9XzYj7nopltpG96nXN5dJRstxZhcNpV1g+nT6CydO7pHbjA==", - "dev": true, - "engines": { - "node": ">=18.12.0" - }, - "peerDependencies": { - "webpack": "^5.82.0", - "webpack-cli": "6.x.x" - } - }, - "node_modules/@webpack-cli/info": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@webpack-cli/info/-/info-3.0.1.tgz", - "integrity": "sha512-coEmDzc2u/ffMvuW9aCjoRzNSPDl/XLuhPdlFRpT9tZHmJ/039az33CE7uH+8s0uL1j5ZNtfdv0HkfaKRBGJsQ==", - "dev": true, - "engines": { - "node": ">=18.12.0" - }, - "peerDependencies": { - "webpack": "^5.82.0", - "webpack-cli": "6.x.x" - } - }, - "node_modules/@webpack-cli/serve": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@webpack-cli/serve/-/serve-3.0.1.tgz", - "integrity": "sha512-sbgw03xQaCLiT6gcY/6u3qBDn01CWw/nbaXl3gTdTFuJJ75Gffv3E3DBpgvY2fkkrdS1fpjaXNOmJlnbtKauKg==", - "dev": true, - "engines": { - "node": ">=18.12.0" - }, - "peerDependencies": { - "webpack": "^5.82.0", - "webpack-cli": "6.x.x" - }, - "peerDependenciesMeta": { - "webpack-dev-server": { - "optional": true - } - } - }, - "node_modules/@xtuc/ieee754": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", - "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", - "dev": true - }, - "node_modules/@xtuc/long": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", - "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", - "dev": true - }, - "node_modules/acorn": { - "version": "8.15.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", - "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", - "dev": true, - "license": "MIT", - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-import-phases": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/acorn-import-phases/-/acorn-import-phases-1.0.4.tgz", - "integrity": "sha512-wKmbr/DDiIXzEOiWrTTUcDm24kQ2vGfZQvM2fwg2vXqR5uW6aapr7ObPtj1th32b9u90/Pf4AItvdTh42fBmVQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10.13.0" - }, - "peerDependencies": { - "acorn": "^8.14.0" - } - }, - "node_modules/aggregate-error": { - "version": "3.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "clean-stack": "^2.0.0", - "indent-string": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/ajv": { - "version": "8.17.1", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", - "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", - "dev": true, - "license": "MIT", - "dependencies": { - "fast-deep-equal": "^3.1.3", - "fast-uri": "^3.0.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ajv-formats": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", - "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", - "dev": true, - "dependencies": { - "ajv": "^8.0.0" - }, - "peerDependencies": { - "ajv": "^8.0.0" - }, - "peerDependenciesMeta": { - "ajv": { - "optional": true - } - } - }, - "node_modules/ajv-keywords": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", - "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", - "dev": true, - "license": "MIT", - "dependencies": { - "fast-deep-equal": "^3.1.3" - }, - "peerDependencies": { - "ajv": "^8.8.2" - } - }, - "node_modules/anchor-markdown-header": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/anchor-markdown-header/-/anchor-markdown-header-0.6.0.tgz", - "integrity": "sha512-v7HJMtE1X7wTpNFseRhxsY/pivP4uAJbidVhPT+yhz4i/vV1+qx371IXuV9V7bN6KjFtheLJxqaSm0Y/8neJTA==", - "dev": true, - "dependencies": { - "emoji-regex": "~10.1.0" - } - }, - "node_modules/anchor-markdown-header/node_modules/emoji-regex": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.1.0.tgz", - "integrity": "sha512-xAEnNCT3w2Tg6MA7ly6QqYJvEoY1tm9iIjJ3yMKK9JPlWuRHAMoe5iETwQnx3M9TVbFMfsrBgWKR+IsmswwNjg==", - "dev": true - }, - "node_modules/ansi-regex": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", - "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" - } - }, - "node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/append-transform": { - "version": "2.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "default-require-extensions": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/archy": { - "version": "1.0.0", - "dev": true, - "license": "MIT" - }, - "node_modules/argparse": { - "version": "1.0.10", - "dev": true, - "license": "MIT", - "dependencies": { - "sprintf-js": "~1.0.2" - } - }, - "node_modules/assertion-error": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", - "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/async": { - "version": "2.6.4", - "resolved": "https://registry.npmjs.org/async/-/async-2.6.4.tgz", - "integrity": "sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA==", - "dev": true, - "dependencies": { - "lodash": "^4.17.14" - } - }, - "node_modules/asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", - "license": "MIT" - }, - "node_modules/axios": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.11.0.tgz", - "integrity": "sha512-1Lx3WLFQWm3ooKDYZD1eXmoGO9fxYQjrycfHFC8P0sCfQVXyROp0p9PFWBehewBOdCwHc+f/b8I0fMto5eSfwA==", - "license": "MIT", - "dependencies": { - "follow-redirects": "^1.15.6", - "form-data": "^4.0.4", - "proxy-from-env": "^1.1.0" - } - }, - "node_modules/bail": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/bail/-/bail-1.0.5.tgz", - "integrity": "sha512-xFbRxM1tahm08yHBP16MMjVUAvDaBMD38zsM9EMAUN61omwLmKlOpB/Zku5QkjZ8TZ4vn53pj+t518cH0S03RQ==", - "dev": true, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/balanced-match": { - "version": "1.0.0", - "dev": true, - "license": "MIT" - }, - "node_modules/basic-auth": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/basic-auth/-/basic-auth-2.0.1.tgz", - "integrity": "sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg==", - "dev": true, - "dependencies": { - "safe-buffer": "5.1.2" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/brace-expansion": { - "version": "1.1.11", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/browser-stdout": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", - "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", - "dev": true - }, - "node_modules/browserslist": { - "version": "4.24.2", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.24.2.tgz", - "integrity": "sha512-ZIc+Q62revdMcqC6aChtW4jz3My3klmCO1fEmINZY/8J3EpBg5/A/D0AKmBveUh6pgoeycoMkVMko84tuYS+Gg==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "caniuse-lite": "^1.0.30001669", - "electron-to-chromium": "^1.5.41", - "node-releases": "^2.0.18", - "update-browserslist-db": "^1.1.1" - }, - "bin": { - "browserslist": "cli.js" - }, - "engines": { - "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" - } - }, - "node_modules/buffer-from": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/caching-transform": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "hasha": "^5.0.0", - "make-dir": "^3.0.0", - "package-hash": "^4.0.0", - "write-file-atomic": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/caching-transform/node_modules/make-dir": { - "version": "3.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "semver": "^6.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/call-bind": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", - "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", - "dev": true, - "dependencies": { - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/call-bind-apply-helpers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", - "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/camelcase": { - "version": "5.3.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/caniuse-lite": { - "version": "1.0.30001684", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001684.tgz", - "integrity": "sha512-G1LRwLIQjBQoyq0ZJGqGIJUXzJ8irpbjHLpVRXDvBEScFJ9b17sgK6vlx0GAJFE21okD7zXl08rRRUfq6HdoEQ==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/caniuse-lite" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "CC-BY-4.0" - }, - "node_modules/ccount": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/ccount/-/ccount-1.1.0.tgz", - "integrity": "sha512-vlNK021QdI7PNeiUh/lKkC/mNHHfV0m/Ad5JoI0TYtlBnJAslM/JIkm/tGC88bkLIwO6OQ5uV6ztS6kVAtCDlg==", - "dev": true, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/chai": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/chai/-/chai-4.5.0.tgz", - "integrity": "sha512-RITGBfijLkBddZvnn8jdqoTypxvqbOLYQkGGxXzeFjVHvudaPw0HNFD9x928/eUwYWd2dPCugVqspGALTZZQKw==", - "dev": true, - "license": "MIT", - "dependencies": { - "assertion-error": "^1.1.0", - "check-error": "^1.0.3", - "deep-eql": "^4.1.3", - "get-func-name": "^2.0.2", - "loupe": "^2.3.6", - "pathval": "^1.1.1", - "type-detect": "^4.1.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/chai-as-promised": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/chai-as-promised/-/chai-as-promised-7.1.2.tgz", - "integrity": "sha512-aBDHZxRzYnUYuIAIPBH2s511DjlKPzXNlXSGFC8CwmroWQLfrW0LtE1nK3MAwwNhJPa9raEjNCmRoFpG0Hurdw==", - "dev": true, - "license": "WTFPL", - "dependencies": { - "check-error": "^1.0.2" - }, - "peerDependencies": { - "chai": ">= 2.1.2 < 6" - } - }, - "node_modules/chai-things": { - "version": "0.2.0", - "dev": true, - "license": "MIT" - }, - "node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/chalk/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/chalk/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "license": "MIT", - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/character-entities": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/character-entities/-/character-entities-1.2.4.tgz", - "integrity": "sha512-iBMyeEHxfVnIakwOuDXpVkc54HijNgCyQB2w0VfGQThle6NXn50zU6V/u+LDhxHcDUPojn6Kpga3PTAD8W1bQw==", - "dev": true, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/character-entities-legacy": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-1.1.4.tgz", - "integrity": "sha512-3Xnr+7ZFS1uxeiUDvV02wQ+QDbc55o97tIV5zHScSPJpcLm/r0DFPcoY3tYRp+VZukxuMeKgXYmsXQHO05zQeA==", - "dev": true, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/character-reference-invalid": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/character-reference-invalid/-/character-reference-invalid-1.1.4.tgz", - "integrity": "sha512-mKKUkUbhPpQlCOfIuZkvSEgktjPFIsZKRRbC6KWVEMvlzblj3i3asQv5ODsrwt0N3pHAEvjP8KTQPHkp0+6jOg==", - "dev": true, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/check-error": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.3.tgz", - "integrity": "sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg==", - "dev": true, - "dependencies": { - "get-func-name": "^2.0.2" - }, - "engines": { - "node": "*" - } - }, - "node_modules/chokidar": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz", - "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==", - "dev": true, - "dependencies": { - "readdirp": "^4.0.1" - }, - "engines": { - "node": ">= 14.16.0" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/chrome-trace-event": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", - "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", - "dev": true, - "engines": { - "node": ">=6.0" - } - }, - "node_modules/clean-stack": { - "version": "2.2.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/cliui": { - "version": "6.0.0", - "dev": true, - "license": "ISC", - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^6.2.0" - } - }, - "node_modules/cliui/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/cliui/node_modules/strip-ansi": { - "version": "6.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/clone-deep": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", - "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", - "dev": true, - "dependencies": { - "is-plain-object": "^2.0.4", - "kind-of": "^6.0.2", - "shallow-clone": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", - "dev": true, - "license": "MIT" - }, - "node_modules/colorette": { - "version": "2.0.20", - "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz", - "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==", - "dev": true - }, - "node_modules/combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "license": "MIT", - "dependencies": { - "delayed-stream": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/commondir": { - "version": "1.0.1", - "dev": true, - "license": "MIT" - }, - "node_modules/concat-map": { - "version": "0.0.1", - "dev": true, - "license": "MIT" - }, - "node_modules/convert-source-map": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", - "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", - "dev": true, - "license": "MIT" - }, - "node_modules/copy-webpack-plugin": { - "version": "13.0.0", - "resolved": "https://registry.npmjs.org/copy-webpack-plugin/-/copy-webpack-plugin-13.0.0.tgz", - "integrity": "sha512-FgR/h5a6hzJqATDGd9YG41SeDViH+0bkHn6WNXCi5zKAZkeESeSxLySSsFLHqLEVCh0E+rITmCf0dusXWYukeQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "glob-parent": "^6.0.1", - "normalize-path": "^3.0.0", - "schema-utils": "^4.2.0", - "serialize-javascript": "^6.0.2", - "tinyglobby": "^0.2.12" - }, - "engines": { - "node": ">= 18.12.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^5.1.0" - } - }, - "node_modules/copy-webpack-plugin/node_modules/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dev": true, - "dependencies": { - "is-glob": "^4.0.3" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/corser": { - "version": "2.0.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4.0" - } - }, - "node_modules/cross-spawn": { - "version": "7.0.3", - "dev": true, - "license": "MIT", - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/debug": { - "version": "4.3.6", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.6.tgz", - "integrity": "sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==", - "dev": true, - "license": "MIT", - "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/decamelize": { - "version": "1.2.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/deep-eql": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-4.1.3.tgz", - "integrity": "sha512-WaEtAOpRA1MQ0eohqZjpGD8zdI0Ovsm8mmFhaDN8dvDZzyoUMcYDnf5Y6iu7HTXxf8JDS23qWa4a+hKCDyOPzw==", - "dev": true, - "dependencies": { - "type-detect": "^4.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/default-require-extensions": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "strip-bom": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", - "license": "MIT", - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/diff": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-7.0.0.tgz", - "integrity": "sha512-PJWHUb1RFevKCwaFA9RlG5tCd+FO5iRh9A8HEtkmBH2Li03iJriB6m6JIN4rGz3K3JLawI7/veA1xzRKP6ISBw==", - "dev": true, - "engines": { - "node": ">=0.3.1" - } - }, - "node_modules/doctoc": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/doctoc/-/doctoc-2.2.1.tgz", - "integrity": "sha512-qNJ1gsuo7hH40vlXTVVrADm6pdg30bns/Mo7Nv1SxuXSM1bwF9b4xQ40a6EFT/L1cI+Yylbyi8MPI4G4y7XJzQ==", - "dev": true, - "dependencies": { - "@textlint/markdown-to-ast": "^12.1.1", - "anchor-markdown-header": "^0.6.0", - "htmlparser2": "^7.2.0", - "minimist": "^1.2.6", - "underscore": "^1.13.2", - "update-section": "^0.3.3" - }, - "bin": { - "doctoc": "doctoc.js" - } - }, - "node_modules/dom-serializer": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.4.1.tgz", - "integrity": "sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==", - "dev": true, - "dependencies": { - "domelementtype": "^2.0.1", - "domhandler": "^4.2.0", - "entities": "^2.0.0" - }, - "funding": { - "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" - } - }, - "node_modules/dom-serializer/node_modules/entities": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", - "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", - "dev": true, - "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" - } - }, - "node_modules/dom-walk": { - "version": "0.1.2", - "dev": true - }, - "node_modules/domelementtype": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", - "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/fb55" - } - ] - }, - "node_modules/domhandler": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz", - "integrity": "sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==", - "dev": true, - "dependencies": { - "domelementtype": "^2.2.0" - }, - "engines": { - "node": ">= 4" - }, - "funding": { - "url": "https://github.com/fb55/domhandler?sponsor=1" - } - }, - "node_modules/domutils": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz", - "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==", - "dev": true, - "dependencies": { - "dom-serializer": "^1.0.1", - "domelementtype": "^2.2.0", - "domhandler": "^4.2.0" - }, - "funding": { - "url": "https://github.com/fb55/domutils?sponsor=1" - } - }, - "node_modules/dunder-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", - "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.1", - "es-errors": "^1.3.0", - "gopd": "^1.2.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/eastasianwidth": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", - "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", - "dev": true - }, - "node_modules/electron-to-chromium": { - "version": "1.5.67", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.67.tgz", - "integrity": "sha512-nz88NNBsD7kQSAGGJyp8hS6xSPtWwqNogA0mjtc2nUYeEf3nURK9qpV18TuBdDmEDgVWotS8Wkzf+V52dSQ/LQ==", - "dev": true, - "license": "ISC" - }, - "node_modules/emoji-regex": { - "version": "8.0.0", - "dev": true, - "license": "MIT" - }, - "node_modules/enhanced-resolve": { - "version": "5.18.2", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.18.2.tgz", - "integrity": "sha512-6Jw4sE1maoRJo3q8MsSIn2onJFbLTOjY9hlx4DZXmOKvLRd1Ok2kXmAGXaafL2+ijsJZ1ClYbl/pmqr9+k4iUQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "graceful-fs": "^4.2.4", - "tapable": "^2.2.0" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/entities": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/entities/-/entities-3.0.1.tgz", - "integrity": "sha512-WiyBqoomrwMdFG1e0kqvASYfnlb0lp8M5o5Fw2OFq1hNZxxcNk8Ik0Xm7LxzBhuidnZB/UtBqVCgUz3kBOP51Q==", - "dev": true, - "engines": { - "node": ">=0.12" - }, - "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" - } - }, - "node_modules/envinfo": { - "version": "7.14.0", - "resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.14.0.tgz", - "integrity": "sha512-CO40UI41xDQzhLB1hWyqUKgFhs250pNcGbyGKe1l/e4FSaI/+YE4IMG76GDt0In67WLPACIITC+sOi08x4wIvg==", - "dev": true, - "bin": { - "envinfo": "dist/cli.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/es-define-property": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", - "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-errors": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", - "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-module-lexer": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.3.0.tgz", - "integrity": "sha512-vZK7T0N2CBmBOixhmjdqx2gWVbFZ4DXZ/NyRMZVlJXPa7CyFS+/a4QQsDGDQy9ZfEzxFuNEsMLeQJnKP2p5/JA==", - "dev": true - }, - "node_modules/es-object-atoms": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", - "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-set-tostringtag": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", - "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.6", - "has-tostringtag": "^1.0.2", - "hasown": "^2.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es6-error": { - "version": "4.1.1", - "dev": true, - "license": "MIT" - }, - "node_modules/escalade": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", - "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", - "dev": true, - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/esprima": { - "version": "4.0.1", - "dev": true, - "license": "BSD-2-Clause", - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dev": true, - "dependencies": { - "estraverse": "^5.2.0" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/esrecurse/node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "dev": true, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/eventemitter3": { - "version": "4.0.7", - "dev": true, - "license": "MIT" - }, - "node_modules/events": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", - "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", - "dev": true, - "engines": { - "node": ">=0.8.x" - } - }, - "node_modules/extend": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", - "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", - "dev": true - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "dev": true, - "license": "MIT" - }, - "node_modules/fast-uri": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.0.6.tgz", - "integrity": "sha512-Atfo14OibSv5wAp4VWNsFYE1AchQRTv9cBGWET4pZWHzYshFSS9NQI6I57rdKn9croWVMbYFbLhJ+yJvmZIIHw==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/fastify" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/fastify" - } - ], - "license": "BSD-3-Clause" - }, - "node_modules/fastest-levenshtein": { - "version": "1.0.16", - "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz", - "integrity": "sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==", - "dev": true, - "engines": { - "node": ">= 4.9.1" - } - }, - "node_modules/fault": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/fault/-/fault-1.0.4.tgz", - "integrity": "sha512-CJ0HCB5tL5fYTEA7ToAq5+kTwd++Borf1/bifxd9iT70QcXr4MRrO3Llf8Ifs70q+SJcGHFtnIE/Nw6giCtECA==", - "dev": true, - "dependencies": { - "format": "^0.2.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/flat": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", - "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==", - "dev": true, - "bin": { - "flat": "cli.js" - } - }, - "node_modules/follow-redirects": { - "version": "1.15.8", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.8.tgz", - "integrity": "sha512-xgrmBhBToVKay1q2Tao5LI26B83UhrB/vM1avwVSDzt8rx3rO6AizBAaF46EgksTVr+rFTQaqZZ9MVBfUe4nig==", - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/RubenVerborgh" - } - ], - "license": "MIT", - "engines": { - "node": ">=4.0" - }, - "peerDependenciesMeta": { - "debug": { - "optional": true - } - } - }, - "node_modules/foreground-child": { - "version": "2.0.0", - "dev": true, - "license": "ISC", - "dependencies": { - "cross-spawn": "^7.0.0", - "signal-exit": "^3.0.2" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/form-data": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.4.tgz", - "integrity": "sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==", - "license": "MIT", - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "es-set-tostringtag": "^2.1.0", - "hasown": "^2.0.2", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/format": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/format/-/format-0.2.2.tgz", - "integrity": "sha512-wzsgA6WOq+09wrU1tsJ09udeR/YZRaeArL9e1wPbFg3GG2yDnC2ldKpxs4xunpFF9DgqCqOIra3bc1HWrJ37Ww==", - "dev": true, - "engines": { - "node": ">=0.4.x" - } - }, - "node_modules/fromentries": { - "version": "1.3.2", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "dev": true, - "license": "ISC" - }, - "node_modules/function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/gensync": { - "version": "1.0.0-beta.2", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", - "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/get-caller-file": { - "version": "2.0.5", - "dev": true, - "license": "ISC", - "engines": { - "node": "6.* || 8.* || >= 10.*" - } - }, - "node_modules/get-func-name": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.2.tgz", - "integrity": "sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/get-intrinsic": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", - "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "es-define-property": "^1.0.1", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.1", - "function-bind": "^1.1.2", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-symbols": "^1.1.0", - "hasown": "^2.0.2", - "math-intrinsics": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-package-type": { - "version": "0.1.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/get-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", - "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", - "license": "MIT", - "dependencies": { - "dunder-proto": "^1.0.1", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/glob": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", - "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", - "dev": true, - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/glob-to-regexp": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", - "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", - "dev": true - }, - "node_modules/global": { - "version": "4.4.0", - "dev": true, - "license": "MIT", - "dependencies": { - "min-document": "^2.19.0", - "process": "^0.11.10" - } - }, - "node_modules/globals": { - "version": "11.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/gopd": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", - "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/graceful-fs": { - "version": "4.2.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", - "dev": true - }, - "node_modules/has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dev": true, - "dependencies": { - "function-bind": "^1.1.1" - }, - "engines": { - "node": ">= 0.4.0" - } - }, - "node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/has-symbols": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", - "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-tostringtag": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", - "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", - "license": "MIT", - "dependencies": { - "has-symbols": "^1.0.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/hasha": { - "version": "5.2.2", - "dev": true, - "license": "MIT", - "dependencies": { - "is-stream": "^2.0.0", - "type-fest": "^0.8.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/hasown": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", - "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", - "license": "MIT", - "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/he": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", - "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", - "dev": true, - "bin": { - "he": "bin/he" - } - }, - "node_modules/html-encoding-sniffer": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-3.0.0.tgz", - "integrity": "sha512-oWv4T4yJ52iKrufjnyZPkrN0CH3QnrUqdB6In1g5Fe1mia8GmF36gnfNySxoZtxD5+NmYw1EElVXiBk93UeskA==", - "dev": true, - "dependencies": { - "whatwg-encoding": "^2.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/html-escaper": { - "version": "2.0.2", - "dev": true, - "license": "MIT" - }, - "node_modules/htmlparser2": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-7.2.0.tgz", - "integrity": "sha512-H7MImA4MS6cw7nbyURtLPO1Tms7C5H602LRETv95z1MxO/7CP7rDVROehUYeYBUYEON94NXXDEPmZuq+hX4sog==", - "dev": true, - "funding": [ - "https://github.com/fb55/htmlparser2?sponsor=1", - { - "type": "github", - "url": "https://github.com/sponsors/fb55" - } - ], - "dependencies": { - "domelementtype": "^2.0.1", - "domhandler": "^4.2.2", - "domutils": "^2.8.0", - "entities": "^3.0.1" - } - }, - "node_modules/http-proxy": { - "version": "1.18.1", - "dev": true, - "license": "MIT", - "dependencies": { - "eventemitter3": "^4.0.0", - "follow-redirects": "^1.0.0", - "requires-port": "^1.0.0" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/http-server": { - "version": "14.1.1", - "resolved": "https://registry.npmjs.org/http-server/-/http-server-14.1.1.tgz", - "integrity": "sha512-+cbxadF40UXd9T01zUHgA+rlo2Bg1Srer4+B4NwIHdaGxAGGv59nYRnGGDJ9LBk7alpS0US+J+bLLdQOOkJq4A==", - "dev": true, - "dependencies": { - "basic-auth": "^2.0.1", - "chalk": "^4.1.2", - "corser": "^2.0.1", - "he": "^1.2.0", - "html-encoding-sniffer": "^3.0.0", - "http-proxy": "^1.18.1", - "mime": "^1.6.0", - "minimist": "^1.2.6", - "opener": "^1.5.1", - "portfinder": "^1.0.28", - "secure-compare": "3.0.1", - "union": "~0.5.0", - "url-join": "^4.0.1" - }, - "bin": { - "http-server": "bin/http-server" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/http-server/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/http-server/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/http-server/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/http-server/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/http-server/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/iconv-lite": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", - "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", - "dev": true, - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/immediate": { - "version": "3.0.6", - "license": "MIT" - }, - "node_modules/import-local": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", - "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", - "dev": true, - "dependencies": { - "pkg-dir": "^4.2.0", - "resolve-cwd": "^3.0.0" - }, - "bin": { - "import-local-fixture": "fixtures/cli.js" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/import-local/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/import-local/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/import-local/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/import-local/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/import-local/node_modules/p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/import-local/node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/import-local/node_modules/pkg-dir": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", - "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", - "dev": true, - "dependencies": { - "find-up": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.8.19" - } - }, - "node_modules/indent-string": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/inflight": { - "version": "1.0.6", - "dev": true, - "license": "ISC", - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "dev": true, - "license": "ISC" - }, - "node_modules/interpret": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-3.1.1.tgz", - "integrity": "sha512-6xwYfHbajpoF0xLW+iwLkhwgvLoZDfjYfoFNu8ftMoXINzwuymNLd9u/KmwtdT2GbR+/Cz66otEGEVVUHX9QLQ==", - "dev": true, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/is-alphabetical": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-alphabetical/-/is-alphabetical-1.0.4.tgz", - "integrity": "sha512-DwzsA04LQ10FHTZuL0/grVDk4rFoVH1pjAToYwBrHSxcrBIGQuXrQMtD5U1b0U2XVgKZCTLLP8u2Qxqhy3l2Vg==", - "dev": true, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/is-alphanumerical": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-alphanumerical/-/is-alphanumerical-1.0.4.tgz", - "integrity": "sha512-UzoZUr+XfVz3t3v4KyGEniVL9BDRoQtY7tOyrRybkVNjDFWyo1yhXNGrrBTQxp3ib9BLAWs7k2YKBQsFRkZG9A==", - "dev": true, - "dependencies": { - "is-alphabetical": "^1.0.0", - "is-decimal": "^1.0.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/is-buffer": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.5.tgz", - "integrity": "sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "engines": { - "node": ">=4" - } - }, - "node_modules/is-core-module": { - "version": "2.12.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.1.tgz", - "integrity": "sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg==", - "dev": true, - "dependencies": { - "has": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-decimal": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-decimal/-/is-decimal-1.0.4.tgz", - "integrity": "sha512-RGdriMmQQvZ2aqaQq3awNA6dCGtKpiDFcOzrTWrDAT2MiWrKQVPmxLGHl7Y2nNu6led0kEyoX0enY0qXYsv9zw==", - "dev": true, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-hexadecimal": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-hexadecimal/-/is-hexadecimal-1.0.4.tgz", - "integrity": "sha512-gyPJuv83bHMpocVYoqof5VDiZveEoGoFL8m3BXNb2VW8Xs+rz9kqO8LOQ5DH6EsuvilT1ApazU0pyl+ytbPtlw==", - "dev": true, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/is-plain-obj": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", - "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-plain-object": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", - "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", - "dev": true, - "dependencies": { - "isobject": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-stream": { - "version": "2.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/is-typedarray": { - "version": "1.0.0", - "dev": true, - "license": "MIT" - }, - "node_modules/is-unicode-supported": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", - "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-windows": { - "version": "1.0.2", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/isexe": { - "version": "2.0.0", - "dev": true, - "license": "ISC" - }, - "node_modules/isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/istanbul-lib-coverage": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", - "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", - "dev": true, - "license": "BSD-3-Clause", - "engines": { - "node": ">=8" - } - }, - "node_modules/istanbul-lib-hook": { - "version": "3.0.0", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "append-transform": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/istanbul-lib-instrument": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.3.tgz", - "integrity": "sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "@babel/core": "^7.23.9", - "@babel/parser": "^7.23.9", - "@istanbuljs/schema": "^0.1.3", - "istanbul-lib-coverage": "^3.2.0", - "semver": "^7.5.4" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/istanbul-lib-instrument/node_modules/semver": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/istanbul-lib-processinfo": { - "version": "2.0.2", - "dev": true, - "license": "ISC", - "dependencies": { - "archy": "^1.0.0", - "cross-spawn": "^7.0.0", - "istanbul-lib-coverage": "^3.0.0-alpha.1", - "make-dir": "^3.0.0", - "p-map": "^3.0.0", - "rimraf": "^3.0.0", - "uuid": "^3.3.3" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/istanbul-lib-processinfo/node_modules/make-dir": { - "version": "3.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "semver": "^6.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/istanbul-lib-report": { - "version": "3.0.0", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "istanbul-lib-coverage": "^3.0.0", - "make-dir": "^3.0.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/istanbul-lib-report/node_modules/make-dir": { - "version": "3.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "semver": "^6.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/istanbul-lib-report/node_modules/supports-color": { - "version": "7.2.0", - "dev": true, - "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/istanbul-lib-source-maps": { - "version": "4.0.0", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "debug": "^4.1.1", - "istanbul-lib-coverage": "^3.0.0", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/istanbul-reports": { - "version": "3.0.2", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "html-escaper": "^2.0.0", - "istanbul-lib-report": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jackspeak": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", - "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", - "dev": true, - "dependencies": { - "@isaacs/cliui": "^8.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - }, - "optionalDependencies": { - "@pkgjs/parseargs": "^0.11.0" - } - }, - "node_modules/jest-worker": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", - "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, - "engines": { - "node": ">= 10.13.0" - } - }, - "node_modules/js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/js-yaml": { - "version": "3.14.0", - "dev": true, - "license": "MIT", - "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/jsesc": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", - "dev": true, - "license": "MIT", - "bin": { - "jsesc": "bin/jsesc" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/json-parse-even-better-errors": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", - "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", - "dev": true - }, - "node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true, - "license": "MIT" - }, - "node_modules/json5": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", - "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", - "dev": true, - "license": "MIT", - "bin": { - "json5": "lib/cli.js" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/kind-of": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", - "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/lie": { - "version": "3.1.1", - "license": "MIT", - "dependencies": { - "immediate": "~3.0.5" - } - }, - "node_modules/loader-runner": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", - "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==", - "dev": true, - "engines": { - "node": ">=6.11.5" - } - }, - "node_modules/localforage": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/localforage/-/localforage-1.10.0.tgz", - "integrity": "sha512-14/H1aX7hzBBmmh7sGPd+AOMkkIrHM3Z1PAyGgZigA1H1p5O5ANnMyWzvpAETtG68/dC4pC0ncy3+PPGzXZHPg==", - "dependencies": { - "lie": "3.1.1" - } - }, - "node_modules/lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", - "dev": true - }, - "node_modules/lodash.flattendeep": { - "version": "4.4.0", - "dev": true, - "license": "MIT" - }, - "node_modules/log-symbols": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", - "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", - "dev": true, - "dependencies": { - "chalk": "^4.1.0", - "is-unicode-supported": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/log-symbols/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/log-symbols/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/log-symbols/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/log-symbols/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/log-symbols/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/longest-streak": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/longest-streak/-/longest-streak-2.0.4.tgz", - "integrity": "sha512-vM6rUVCVUJJt33bnmHiZEvr7wPT78ztX7rojL+LW51bHtLh6HTjx84LA5W4+oa6aKEJA7jJu5LR6vQRBpA5DVg==", - "dev": true, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/loupe": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.7.tgz", - "integrity": "sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==", - "dev": true, - "dependencies": { - "get-func-name": "^2.0.1" - } - }, - "node_modules/lru-cache": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", - "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", - "dev": true, - "license": "ISC", - "dependencies": { - "yallist": "^3.0.2" - } - }, - "node_modules/markdown-table": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/markdown-table/-/markdown-table-2.0.0.tgz", - "integrity": "sha512-Ezda85ToJUBhM6WGaG6veasyym+Tbs3cMAw/ZhOPqXiYsr0jgocBV3j3nx+4lk47plLlIqjwuTm/ywVI+zjJ/A==", - "dev": true, - "dependencies": { - "repeat-string": "^1.0.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/math-intrinsics": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", - "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/mdast-util-find-and-replace": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/mdast-util-find-and-replace/-/mdast-util-find-and-replace-1.1.1.tgz", - "integrity": "sha512-9cKl33Y21lyckGzpSmEQnIDjEfeeWelN5s1kUW1LwdB0Fkuq2u+4GdqcGEygYxJE8GVqCl0741bYXHgamfWAZA==", - "dev": true, - "dependencies": { - "escape-string-regexp": "^4.0.0", - "unist-util-is": "^4.0.0", - "unist-util-visit-parents": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/mdast-util-footnote": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/mdast-util-footnote/-/mdast-util-footnote-0.1.7.tgz", - "integrity": "sha512-QxNdO8qSxqbO2e3m09KwDKfWiLgqyCurdWTQ198NpbZ2hxntdc+VKS4fDJCmNWbAroUdYnSthu+XbZ8ovh8C3w==", - "dev": true, - "dependencies": { - "mdast-util-to-markdown": "^0.6.0", - "micromark": "~2.11.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-from-markdown": { - "version": "0.8.5", - "resolved": "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-0.8.5.tgz", - "integrity": "sha512-2hkTXtYYnr+NubD/g6KGBS/0mFmBcifAsI0yIWRiRo0PjVs6SSOSOdtzbp6kSGnShDN6G5aWZpKQ2lWRy27mWQ==", - "dev": true, - "dependencies": { - "@types/mdast": "^3.0.0", - "mdast-util-to-string": "^2.0.0", - "micromark": "~2.11.0", - "parse-entities": "^2.0.0", - "unist-util-stringify-position": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-frontmatter": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/mdast-util-frontmatter/-/mdast-util-frontmatter-0.2.0.tgz", - "integrity": "sha512-FHKL4w4S5fdt1KjJCwB0178WJ0evnyyQr5kXTM3wrOVpytD0hrkvd+AOOjU9Td8onOejCkmZ+HQRT3CZ3coHHQ==", - "dev": true, - "dependencies": { - "micromark-extension-frontmatter": "^0.2.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-gfm": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/mdast-util-gfm/-/mdast-util-gfm-0.1.2.tgz", - "integrity": "sha512-NNkhDx/qYcuOWB7xHUGWZYVXvjPFFd6afg6/e2g+SV4r9q5XUcCbV4Wfa3DLYIiD+xAEZc6K4MGaE/m0KDcPwQ==", - "dev": true, - "dependencies": { - "mdast-util-gfm-autolink-literal": "^0.1.0", - "mdast-util-gfm-strikethrough": "^0.2.0", - "mdast-util-gfm-table": "^0.1.0", - "mdast-util-gfm-task-list-item": "^0.1.0", - "mdast-util-to-markdown": "^0.6.1" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-gfm-autolink-literal": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/mdast-util-gfm-autolink-literal/-/mdast-util-gfm-autolink-literal-0.1.3.tgz", - "integrity": "sha512-GjmLjWrXg1wqMIO9+ZsRik/s7PLwTaeCHVB7vRxUwLntZc8mzmTsLVr6HW1yLokcnhfURsn5zmSVdi3/xWWu1A==", - "dev": true, - "dependencies": { - "ccount": "^1.0.0", - "mdast-util-find-and-replace": "^1.1.0", - "micromark": "^2.11.3" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-gfm-strikethrough": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/mdast-util-gfm-strikethrough/-/mdast-util-gfm-strikethrough-0.2.3.tgz", - "integrity": "sha512-5OQLXpt6qdbttcDG/UxYY7Yjj3e8P7X16LzvpX8pIQPYJ/C2Z1qFGMmcw+1PZMUM3Z8wt8NRfYTvCni93mgsgA==", - "dev": true, - "dependencies": { - "mdast-util-to-markdown": "^0.6.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-gfm-table": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/mdast-util-gfm-table/-/mdast-util-gfm-table-0.1.6.tgz", - "integrity": "sha512-j4yDxQ66AJSBwGkbpFEp9uG/LS1tZV3P33fN1gkyRB2LoRL+RR3f76m0HPHaby6F4Z5xr9Fv1URmATlRRUIpRQ==", - "dev": true, - "dependencies": { - "markdown-table": "^2.0.0", - "mdast-util-to-markdown": "~0.6.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-gfm-task-list-item": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/mdast-util-gfm-task-list-item/-/mdast-util-gfm-task-list-item-0.1.6.tgz", - "integrity": "sha512-/d51FFIfPsSmCIRNp7E6pozM9z1GYPIkSy1urQ8s/o4TC22BZ7DqfHFWiqBD23bc7J3vV1Fc9O4QIHBlfuit8A==", - "dev": true, - "dependencies": { - "mdast-util-to-markdown": "~0.6.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-to-markdown": { - "version": "0.6.5", - "resolved": "https://registry.npmjs.org/mdast-util-to-markdown/-/mdast-util-to-markdown-0.6.5.tgz", - "integrity": "sha512-XeV9sDE7ZlOQvs45C9UKMtfTcctcaj/pGwH8YLbMHoMOXNNCn2LsqVQOqrF1+/NU8lKDAqozme9SCXWyo9oAcQ==", - "dev": true, - "dependencies": { - "@types/unist": "^2.0.0", - "longest-streak": "^2.0.0", - "mdast-util-to-string": "^2.0.0", - "parse-entities": "^2.0.0", - "repeat-string": "^1.0.0", - "zwitch": "^1.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-to-string": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-2.0.0.tgz", - "integrity": "sha512-AW4DRS3QbBayY/jJmD8437V1Gombjf8RSOUCMFBuo5iHi58AGEgVCKQ+ezHkZZDpAQS75hcBMpLqjpJTjtUL7w==", - "dev": true, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", - "dev": true, - "license": "MIT" - }, - "node_modules/micromark": { - "version": "2.11.4", - "resolved": "https://registry.npmjs.org/micromark/-/micromark-2.11.4.tgz", - "integrity": "sha512-+WoovN/ppKolQOFIAajxi7Lu9kInbPxFuTBVEavFcL8eAfVstoc5MocPmqBeAdBOJV00uaVjegzH4+MA0DN/uA==", - "dev": true, - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "debug": "^4.0.0", - "parse-entities": "^2.0.0" - } - }, - "node_modules/micromark-extension-footnote": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/micromark-extension-footnote/-/micromark-extension-footnote-0.3.2.tgz", - "integrity": "sha512-gr/BeIxbIWQoUm02cIfK7mdMZ/fbroRpLsck4kvFtjbzP4yi+OPVbnukTc/zy0i7spC2xYE/dbX1Sur8BEDJsQ==", - "dev": true, - "dependencies": { - "micromark": "~2.11.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/micromark-extension-frontmatter": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/micromark-extension-frontmatter/-/micromark-extension-frontmatter-0.2.2.tgz", - "integrity": "sha512-q6nPLFCMTLtfsctAuS0Xh4vaolxSFUWUWR6PZSrXXiRy+SANGllpcqdXFv2z07l0Xz/6Hl40hK0ffNCJPH2n1A==", - "dev": true, - "dependencies": { - "fault": "^1.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/micromark-extension-gfm": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/micromark-extension-gfm/-/micromark-extension-gfm-0.3.3.tgz", - "integrity": "sha512-oVN4zv5/tAIA+l3GbMi7lWeYpJ14oQyJ3uEim20ktYFAcfX1x3LNlFGGlmrZHt7u9YlKExmyJdDGaTt6cMSR/A==", - "dev": true, - "dependencies": { - "micromark": "~2.11.0", - "micromark-extension-gfm-autolink-literal": "~0.5.0", - "micromark-extension-gfm-strikethrough": "~0.6.5", - "micromark-extension-gfm-table": "~0.4.0", - "micromark-extension-gfm-tagfilter": "~0.3.0", - "micromark-extension-gfm-task-list-item": "~0.3.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/micromark-extension-gfm-autolink-literal": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/micromark-extension-gfm-autolink-literal/-/micromark-extension-gfm-autolink-literal-0.5.7.tgz", - "integrity": "sha512-ePiDGH0/lhcngCe8FtH4ARFoxKTUelMp4L7Gg2pujYD5CSMb9PbblnyL+AAMud/SNMyusbS2XDSiPIRcQoNFAw==", - "dev": true, - "dependencies": { - "micromark": "~2.11.3" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/micromark-extension-gfm-strikethrough": { - "version": "0.6.5", - "resolved": "https://registry.npmjs.org/micromark-extension-gfm-strikethrough/-/micromark-extension-gfm-strikethrough-0.6.5.tgz", - "integrity": "sha512-PpOKlgokpQRwUesRwWEp+fHjGGkZEejj83k9gU5iXCbDG+XBA92BqnRKYJdfqfkrRcZRgGuPuXb7DaK/DmxOhw==", - "dev": true, - "dependencies": { - "micromark": "~2.11.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/micromark-extension-gfm-table": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/micromark-extension-gfm-table/-/micromark-extension-gfm-table-0.4.3.tgz", - "integrity": "sha512-hVGvESPq0fk6ALWtomcwmgLvH8ZSVpcPjzi0AjPclB9FsVRgMtGZkUcpE0zgjOCFAznKepF4z3hX8z6e3HODdA==", - "dev": true, - "dependencies": { - "micromark": "~2.11.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/micromark-extension-gfm-tagfilter": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/micromark-extension-gfm-tagfilter/-/micromark-extension-gfm-tagfilter-0.3.0.tgz", - "integrity": "sha512-9GU0xBatryXifL//FJH+tAZ6i240xQuFrSL7mYi8f4oZSbc+NvXjkrHemeYP0+L4ZUT+Ptz3b95zhUZnMtoi/Q==", - "dev": true, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/micromark-extension-gfm-task-list-item": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/micromark-extension-gfm-task-list-item/-/micromark-extension-gfm-task-list-item-0.3.3.tgz", - "integrity": "sha512-0zvM5iSLKrc/NQl84pZSjGo66aTGd57C1idmlWmE87lkMcXrTxg1uXa/nXomxJytoje9trP0NDLvw4bZ/Z/XCQ==", - "dev": true, - "dependencies": { - "micromark": "~2.11.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mime": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", - "dev": true, - "bin": { - "mime": "cli.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/min-document": { - "version": "2.19.0", - "dev": true, - "dependencies": { - "dom-walk": "^0.1.0" - } - }, - "node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/minimist": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", - "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/minipass": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", - "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", - "dev": true, - "engines": { - "node": ">=16 || 14 >=14.17" - } - }, - "node_modules/mkdirp": { - "version": "0.5.5", - "dev": true, - "license": "MIT", - "dependencies": { - "minimist": "^1.2.5" - }, - "bin": { - "mkdirp": "bin/cmd.js" - } - }, - "node_modules/mocha": { - "version": "11.7.1", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-11.7.1.tgz", - "integrity": "sha512-5EK+Cty6KheMS/YLPPMJC64g5V61gIR25KsRItHw6x4hEKT6Njp1n9LOlH4gpevuwMVS66SXaBBpg+RWZkza4A==", - "dev": true, - "dependencies": { - "browser-stdout": "^1.3.1", - "chokidar": "^4.0.1", - "debug": "^4.3.5", - "diff": "^7.0.0", - "escape-string-regexp": "^4.0.0", - "find-up": "^5.0.0", - "glob": "^10.4.5", - "he": "^1.2.0", - "js-yaml": "^4.1.0", - "log-symbols": "^4.1.0", - "minimatch": "^9.0.5", - "ms": "^2.1.3", - "picocolors": "^1.1.1", - "serialize-javascript": "^6.0.2", - "strip-json-comments": "^3.1.1", - "supports-color": "^8.1.1", - "workerpool": "^9.2.0", - "yargs": "^17.7.2", - "yargs-parser": "^21.1.1", - "yargs-unparser": "^2.0.0" - }, - "bin": { - "_mocha": "bin/_mocha", - "mocha": "bin/mocha.js" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/mocha/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/mocha/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/mocha/node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, - "node_modules/mocha/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/mocha/node_modules/cliui": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", - "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", - "dev": true, - "license": "ISC", - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/mocha/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/mocha/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "license": "MIT" - }, - "node_modules/mocha/node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/mocha/node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/mocha/node_modules/foreground-child": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.0.tgz", - "integrity": "sha512-Ld2g8rrAyMYFXBhEqMz8ZAHBi4J4uS1i/CxGMDnjyFWddMXLVcDp051DZfu+t7+ab7Wv6SMqpWmyFIj5UbfFvg==", - "dev": true, - "dependencies": { - "cross-spawn": "^7.0.0", - "signal-exit": "^4.0.1" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/mocha/node_modules/glob": { - "version": "10.4.5", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz", - "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", - "dev": true, - "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^3.1.2", - "minimatch": "^9.0.4", - "minipass": "^7.1.2", - "package-json-from-dist": "^1.0.0", - "path-scurry": "^1.11.1" - }, - "bin": { - "glob": "dist/esm/bin.mjs" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/mocha/node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dev": true, - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/mocha/node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, - "dependencies": { - "p-locate": "^5.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/mocha/node_modules/minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/mocha/node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true - }, - "node_modules/mocha/node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/mocha/node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, - "dependencies": { - "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/mocha/node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/mocha/node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "dev": true, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/mocha/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/mocha/node_modules/wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/mocha/node_modules/y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=10" - } - }, - "node_modules/mocha/node_modules/yargs": { - "version": "17.7.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", - "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", - "dev": true, - "license": "MIT", - "dependencies": { - "cliui": "^8.0.1", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.3", - "y18n": "^5.0.5", - "yargs-parser": "^21.1.1" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/mocha/node_modules/yargs-parser": { - "version": "21.1.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", - "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=12" - } - }, - "node_modules/mock-local-storage": { - "version": "1.1.24", - "resolved": "https://registry.npmjs.org/mock-local-storage/-/mock-local-storage-1.1.24.tgz", - "integrity": "sha512-NEfmw+yEK9oe6xCfOnTaJ6Dz+L3eu6vsZopJlxflXYxr7Mg3EV+S0NXKUQlY9AAeDEdaPZDSUGq1Gi6kLSa5PA==", - "dev": true, - "dependencies": { - "core-js": "^3.30.2", - "global": "^4.3.2" - } - }, - "node_modules/mock-local-storage/node_modules/core-js": { - "version": "3.31.1", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.31.1.tgz", - "integrity": "sha512-2sKLtfq1eFST7l7v62zaqXacPc7uG8ZAya8ogijLhTtaKNcpzpB4TMoTw2Si+8GYKRwFPMMtUT0263QFWFfqyQ==", - "dev": true, - "hasInstallScript": true, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/core-js" - } - }, - "node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true, - "license": "MIT" - }, - "node_modules/neo-async": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", - "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", - "dev": true - }, - "node_modules/node-preload": { - "version": "0.2.1", - "dev": true, - "license": "MIT", - "dependencies": { - "process-on-spawn": "^1.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/node-releases": { - "version": "2.0.18", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.18.tgz", - "integrity": "sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g==", - "dev": true, - "license": "MIT" - }, - "node_modules/normalize-path": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/nyc": { - "version": "17.1.0", - "resolved": "https://registry.npmjs.org/nyc/-/nyc-17.1.0.tgz", - "integrity": "sha512-U42vQ4czpKa0QdI1hu950XuNhYqgoM+ZF1HT+VuUHL9hPfDPVvNQyltmMqdE9bUHMVa+8yNbc3QKTj8zQhlVxQ==", - "dev": true, - "license": "ISC", - "dependencies": { - "@istanbuljs/load-nyc-config": "^1.0.0", - "@istanbuljs/schema": "^0.1.2", - "caching-transform": "^4.0.0", - "convert-source-map": "^1.7.0", - "decamelize": "^1.2.0", - "find-cache-dir": "^3.2.0", - "find-up": "^4.1.0", - "foreground-child": "^3.3.0", - "get-package-type": "^0.1.0", - "glob": "^7.1.6", - "istanbul-lib-coverage": "^3.0.0", - "istanbul-lib-hook": "^3.0.0", - "istanbul-lib-instrument": "^6.0.2", - "istanbul-lib-processinfo": "^2.0.2", - "istanbul-lib-report": "^3.0.0", - "istanbul-lib-source-maps": "^4.0.0", - "istanbul-reports": "^3.0.2", - "make-dir": "^3.0.0", - "node-preload": "^0.2.1", - "p-map": "^3.0.0", - "process-on-spawn": "^1.0.0", - "resolve-from": "^5.0.0", - "rimraf": "^3.0.0", - "signal-exit": "^3.0.2", - "spawn-wrap": "^2.0.0", - "test-exclude": "^6.0.0", - "yargs": "^15.0.2" - }, - "bin": { - "nyc": "bin/nyc.js" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/nyc/node_modules/find-cache-dir": { - "version": "3.3.1", - "dev": true, - "license": "MIT", - "dependencies": { - "commondir": "^1.0.1", - "make-dir": "^3.0.2", - "pkg-dir": "^4.1.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/avajs/find-cache-dir?sponsor=1" - } - }, - "node_modules/nyc/node_modules/find-up": { - "version": "4.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/nyc/node_modules/foreground-child": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.0.tgz", - "integrity": "sha512-Ld2g8rrAyMYFXBhEqMz8ZAHBi4J4uS1i/CxGMDnjyFWddMXLVcDp051DZfu+t7+ab7Wv6SMqpWmyFIj5UbfFvg==", - "dev": true, - "license": "ISC", - "dependencies": { - "cross-spawn": "^7.0.0", - "signal-exit": "^4.0.1" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/nyc/node_modules/foreground-child/node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/nyc/node_modules/locate-path": { - "version": "5.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/nyc/node_modules/make-dir": { - "version": "3.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "semver": "^6.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/nyc/node_modules/p-limit": { - "version": "2.3.0", - "dev": true, - "license": "MIT", - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/nyc/node_modules/p-locate": { - "version": "4.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/nyc/node_modules/p-try": { - "version": "2.2.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/nyc/node_modules/path-exists": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/nyc/node_modules/pkg-dir": { - "version": "4.2.0", - "dev": true, - "license": "MIT", - "dependencies": { - "find-up": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/object-inspect": { - "version": "1.12.3", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz", - "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/once": { - "version": "1.4.0", - "dev": true, - "license": "ISC", - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/opener": { - "version": "1.5.2", - "dev": true, - "license": "(WTFPL OR MIT)", - "bin": { - "opener": "bin/opener-bin.js" - } - }, - "node_modules/p-map": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "aggregate-error": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/package-hash": { - "version": "4.0.0", - "dev": true, - "license": "ISC", - "dependencies": { - "graceful-fs": "^4.1.15", - "hasha": "^5.0.0", - "lodash.flattendeep": "^4.4.0", - "release-zalgo": "^1.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/package-json-from-dist": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", - "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", - "dev": true - }, - "node_modules/parse-entities": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/parse-entities/-/parse-entities-2.0.0.tgz", - "integrity": "sha512-kkywGpCcRYhqQIchaWqZ875wzpS/bMKhz5HnN3p7wveJTkTtyAB/AlnS0f8DFSqYW1T82t6yEAkEcB+A1I3MbQ==", - "dev": true, - "dependencies": { - "character-entities": "^1.0.0", - "character-entities-legacy": "^1.0.0", - "character-reference-invalid": "^1.0.0", - "is-alphanumerical": "^1.0.0", - "is-decimal": "^1.0.0", - "is-hexadecimal": "^1.0.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/path-is-absolute": { - "version": "1.0.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/path-key": { - "version": "3.1.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true - }, - "node_modules/path-scurry": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", - "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", - "dev": true, - "dependencies": { - "lru-cache": "^10.2.0", - "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" - }, - "engines": { - "node": ">=16 || 14 >=14.18" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/path-scurry/node_modules/lru-cache": { - "version": "10.4.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", - "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", - "dev": true - }, - "node_modules/pathval": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz", - "integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/picocolors": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", - "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", - "dev": true - }, - "node_modules/portfinder": { - "version": "1.0.28", - "dev": true, - "license": "MIT", - "dependencies": { - "async": "^2.6.2", - "debug": "^3.1.1", - "mkdirp": "^0.5.5" - }, - "engines": { - "node": ">= 0.12.0" - } - }, - "node_modules/portfinder/node_modules/debug": { - "version": "3.2.6", - "dev": true, - "license": "MIT", - "dependencies": { - "ms": "^2.1.1" - } - }, - "node_modules/process": { - "version": "0.11.10", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.6.0" - } - }, - "node_modules/process-on-spawn": { - "version": "1.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "fromentries": "^1.2.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/proxy-from-env": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", - "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", - "license": "MIT" - }, - "node_modules/qs": { - "version": "6.11.2", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.2.tgz", - "integrity": "sha512-tDNIz22aBzCDxLtVH++VnTfzxlfeK5CbqohpSqpJgj1Wg/cQbStNAz3NuqCs5vV+pjBsK4x4pN9HlVh7rcYRiA==", - "dev": true, - "dependencies": { - "side-channel": "^1.0.4" - }, - "engines": { - "node": ">=0.6" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/randombytes": { - "version": "2.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "safe-buffer": "^5.1.0" - } - }, - "node_modules/readdirp": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz", - "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==", - "dev": true, - "engines": { - "node": ">= 14.18.0" - }, - "funding": { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/rechoir": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.8.0.tgz", - "integrity": "sha512-/vxpCXddiX8NGfGO/mTafwjq4aFa/71pvamip0++IQk3zG8cbCj0fifNPrjjF1XMXUne91jL9OoxmdykoEtifQ==", - "dev": true, - "dependencies": { - "resolve": "^1.20.0" - }, - "engines": { - "node": ">= 10.13.0" - } - }, - "node_modules/release-zalgo": { - "version": "1.0.0", - "dev": true, - "license": "ISC", - "dependencies": { - "es6-error": "^4.0.1" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/remark-footnotes": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/remark-footnotes/-/remark-footnotes-3.0.0.tgz", - "integrity": "sha512-ZssAvH9FjGYlJ/PBVKdSmfyPc3Cz4rTWgZLI4iE/SX8Nt5l3o3oEjv3wwG5VD7xOjktzdwp5coac+kJV9l4jgg==", - "dev": true, - "dependencies": { - "mdast-util-footnote": "^0.1.0", - "micromark-extension-footnote": "^0.3.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-frontmatter": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/remark-frontmatter/-/remark-frontmatter-3.0.0.tgz", - "integrity": "sha512-mSuDd3svCHs+2PyO29h7iijIZx4plX0fheacJcAoYAASfgzgVIcXGYSq9GFyYocFLftQs8IOmmkgtOovs6d4oA==", - "dev": true, - "dependencies": { - "mdast-util-frontmatter": "^0.2.0", - "micromark-extension-frontmatter": "^0.2.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-gfm": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/remark-gfm/-/remark-gfm-1.0.0.tgz", - "integrity": "sha512-KfexHJCiqvrdBZVbQ6RopMZGwaXz6wFJEfByIuEwGf0arvITHjiKKZ1dpXujjH9KZdm1//XJQwgfnJ3lmXaDPA==", - "dev": true, - "dependencies": { - "mdast-util-gfm": "^0.1.0", - "micromark-extension-gfm": "^0.3.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-parse": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/remark-parse/-/remark-parse-9.0.0.tgz", - "integrity": "sha512-geKatMwSzEXKHuzBNU1z676sGcDcFoChMK38TgdHJNAYfFtsfHDQG7MoJAjs6sgYMqyLduCYWDIWZIxiPeafEw==", - "dev": true, - "dependencies": { - "mdast-util-from-markdown": "^0.8.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/repeat-string": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", - "integrity": "sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==", - "dev": true, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/require-directory": { - "version": "2.1.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/require-from-string": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/require-main-filename": { - "version": "2.0.0", - "dev": true, - "license": "ISC" - }, - "node_modules/requires-port": { - "version": "1.0.0", - "dev": true, - "license": "MIT" - }, - "node_modules/resolve": { - "version": "1.22.2", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.2.tgz", - "integrity": "sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g==", - "dev": true, - "dependencies": { - "is-core-module": "^2.11.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/resolve-cwd": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", - "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", - "dev": true, - "dependencies": { - "resolve-from": "^5.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/resolve-from": { - "version": "5.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dev": true, - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/safe-buffer": { - "version": "5.1.2", - "dev": true, - "license": "MIT" - }, - "node_modules/safer-buffer": { - "version": "2.1.2", - "dev": true, - "license": "MIT" - }, - "node_modules/schema-utils": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.3.2.tgz", - "integrity": "sha512-Gn/JaSk/Mt9gYubxTtSn/QCV4em9mpAPiR1rqy/Ocu19u/G9J5WWdNoUT4SiV6mFC3y6cxyFcFwdzPM3FgxGAQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/json-schema": "^7.0.9", - "ajv": "^8.9.0", - "ajv-formats": "^2.1.1", - "ajv-keywords": "^5.1.0" - }, - "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/secure-compare": { - "version": "3.0.1", - "dev": true, - "license": "MIT" - }, - "node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/serialize-javascript": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz", - "integrity": "sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==", - "dev": true, - "dependencies": { - "randombytes": "^2.1.0" - } - }, - "node_modules/set-blocking": { - "version": "2.0.0", - "dev": true, - "license": "ISC" - }, - "node_modules/shallow-clone": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", - "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", - "dev": true, - "dependencies": { - "kind-of": "^6.0.2" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/side-channel": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", - "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.0", - "get-intrinsic": "^1.0.2", - "object-inspect": "^1.9.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/signal-exit": { - "version": "3.0.3", - "dev": true, - "license": "ISC" - }, - "node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "dev": true, - "license": "MIT", - "dependencies": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - }, - "node_modules/spawn-wrap": { - "version": "2.0.0", - "dev": true, - "license": "ISC", - "dependencies": { - "foreground-child": "^2.0.0", - "is-windows": "^1.0.2", - "make-dir": "^3.0.0", - "rimraf": "^3.0.0", - "signal-exit": "^3.0.2", - "which": "^2.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/spawn-wrap/node_modules/make-dir": { - "version": "3.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "semver": "^6.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/sprintf-js": { - "version": "1.0.3", - "dev": true, - "license": "BSD-3-Clause" - }, - "node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "license": "MIT", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/string-width-cjs": { - "name": "string-width", - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/string-width-cjs/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/string-width-cjs/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/string-width/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/string-width/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-ansi": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", - "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", - "dev": true, - "dependencies": { - "ansi-regex": "^6.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" - } - }, - "node_modules/strip-ansi-cjs": { - "name": "strip-ansi", - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-ansi-cjs/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-bom": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - } - }, - "node_modules/supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/tapable": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.2.tgz", - "integrity": "sha512-Re10+NauLTMCudc7T5WLFLAwDhQ0JWdrMK+9B2M8zR5hRExKmsRDCBA7/aV/pNJFltmBFO5BAMlQFi/vq3nKOg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/terser": { - "version": "5.39.0", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.39.0.tgz", - "integrity": "sha512-LBAhFyLho16harJoWMg/nZsQYgTrg5jXOn2nCYjRUcZZEdE3qa2zb8QEDRUGVZBW4rlazf2fxkg8tztybTaqWw==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "@jridgewell/source-map": "^0.3.3", - "acorn": "^8.8.2", - "commander": "^2.20.0", - "source-map-support": "~0.5.20" - }, - "bin": { - "terser": "bin/terser" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/terser-webpack-plugin": { - "version": "5.3.12", - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.12.tgz", - "integrity": "sha512-jDLYqo7oF8tJIttjXO6jBY5Hk8p3A8W4ttih7cCEq64fQFWmgJ4VqAQjKr7WwIDlmXKEc6QeoRb5ecjZ+2afcg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/trace-mapping": "^0.3.25", - "jest-worker": "^27.4.5", - "schema-utils": "^4.3.0", - "serialize-javascript": "^6.0.2", - "terser": "^5.31.1" - }, - "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^5.1.0" - }, - "peerDependenciesMeta": { - "@swc/core": { - "optional": true - }, - "esbuild": { - "optional": true - }, - "uglify-js": { - "optional": true - } - } - }, - "node_modules/test-exclude": { - "version": "6.0.0", - "dev": true, - "license": "ISC", - "dependencies": { - "@istanbuljs/schema": "^0.1.2", - "glob": "^7.1.4", - "minimatch": "^3.0.4" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/tinyglobby": { - "version": "0.2.12", - "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.12.tgz", - "integrity": "sha512-qkf4trmKSIiMTs/E63cxH+ojC2unam7rJ0WrauAzpT3ECNTxGRMlaXxVbfxMUC/w0LaYk6jQ4y/nGR9uBO3tww==", - "dev": true, - "license": "MIT", - "dependencies": { - "fdir": "^6.4.3", - "picomatch": "^4.0.2" - }, - "engines": { - "node": ">=12.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/SuperchupuDev" - } - }, - "node_modules/tinyglobby/node_modules/fdir": { - "version": "6.4.3", - "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.4.3.tgz", - "integrity": "sha512-PMXmW2y1hDDfTSRc9gaXIuCCRpuoz3Kaz8cUelp3smouvfT632ozg2vrT6lJsHKKOF59YLbOGfAWGUcKEfRMQw==", - "dev": true, - "license": "MIT", - "peerDependencies": { - "picomatch": "^3 || ^4" - }, - "peerDependenciesMeta": { - "picomatch": { - "optional": true - } - } - }, - "node_modules/tinyglobby/node_modules/picomatch": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz", - "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/to-fast-properties": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/traverse": { - "version": "0.6.7", - "resolved": "https://registry.npmjs.org/traverse/-/traverse-0.6.7.tgz", - "integrity": "sha512-/y956gpUo9ZNCb99YjxG7OaslxZWHfCHAUUfshwqOXmxUIvqLjVO581BT+gM59+QV9tFe6/CGG53tsA1Y7RSdg==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/trough": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/trough/-/trough-1.0.5.tgz", - "integrity": "sha512-rvuRbTarPXmMb79SmzEp8aqXNKcK+y0XaB298IXueQ8I2PsrATcPBCSPyK/dDNa2iWOhKlfNnOjdAOTBU/nkFA==", - "dev": true, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/type-detect": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.1.0.tgz", - "integrity": "sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/type-fest": { - "version": "0.8.1", - "dev": true, - "license": "(MIT OR CC0-1.0)", - "engines": { - "node": ">=8" - } - }, - "node_modules/typedarray-to-buffer": { - "version": "3.1.5", - "dev": true, - "license": "MIT", - "dependencies": { - "is-typedarray": "^1.0.0" - } - }, - "node_modules/underscore": { - "version": "1.13.6", - "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.13.6.tgz", - "integrity": "sha512-+A5Sja4HP1M08MaXya7p5LvjuM7K6q/2EaC0+iovj/wOcMsTzMvDFbasi/oSapiwOlt252IqsKqPjCl7huKS0A==", - "dev": true - }, - "node_modules/undici-types": { - "version": "6.20.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz", - "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==", - "dev": true, - "license": "MIT" - }, - "node_modules/unified": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/unified/-/unified-9.2.2.tgz", - "integrity": "sha512-Sg7j110mtefBD+qunSLO1lqOEKdrwBFBrR6Qd8f4uwkhWNlbkaqwHse6e7QvD3AP/MNoJdEDLaf8OxYyoWgorQ==", - "dev": true, - "dependencies": { - "bail": "^1.0.0", - "extend": "^3.0.0", - "is-buffer": "^2.0.0", - "is-plain-obj": "^2.0.0", - "trough": "^1.0.0", - "vfile": "^4.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/union": { - "version": "0.5.0", - "dev": true, - "dependencies": { - "qs": "^6.4.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/unist-util-is": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.1.0.tgz", - "integrity": "sha512-ZOQSsnce92GrxSqlnEEseX0gi7GH9zTJZ0p9dtu87WRb/37mMPO2Ilx1s/t9vBHrFhbgweUwb+t7cIn5dxPhZg==", - "dev": true, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unist-util-stringify-position": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-2.0.3.tgz", - "integrity": "sha512-3faScn5I+hy9VleOq/qNbAd6pAx7iH5jYBMS9I1HgQVijz/4mv5Bvw5iw1sC/90CODiKo81G/ps8AJrISn687g==", - "dev": true, - "dependencies": { - "@types/unist": "^2.0.2" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unist-util-visit-parents": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.1.1.tgz", - "integrity": "sha512-1KROIZWo6bcMrZEwiH2UrXDyalAa0uqzWCxCJj6lPOvTve2WkfgCytoDTPaMnodXh1WrXOq0haVYHj99ynJlsg==", - "dev": true, - "dependencies": { - "@types/unist": "^2.0.0", - "unist-util-is": "^4.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/update-browserslist-db": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.1.tgz", - "integrity": "sha512-R8UzCaa9Az+38REPiJ1tXlImTJXlVfgHZsglwBD/k6nj76ctsH1E3q4doGrukiLQd3sGQYu56r5+lo5r94l29A==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "escalade": "^3.2.0", - "picocolors": "^1.1.0" - }, - "bin": { - "update-browserslist-db": "cli.js" - }, - "peerDependencies": { - "browserslist": ">= 4.21.0" - } - }, - "node_modules/update-section": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/update-section/-/update-section-0.3.3.tgz", - "integrity": "sha512-BpRZMZpgXLuTiKeiu7kK0nIPwGdyrqrs6EDSaXtjD/aQ2T+qVo9a5hRC3HN3iJjCMxNT/VxoLGQ7E/OzE5ucnw==", - "dev": true - }, - "node_modules/url-join": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/url-join/-/url-join-4.0.1.tgz", - "integrity": "sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA==", - "dev": true - }, - "node_modules/uuid": { - "version": "3.4.0", - "dev": true, - "license": "MIT", - "bin": { - "uuid": "bin/uuid" - } - }, - "node_modules/vfile": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/vfile/-/vfile-4.2.1.tgz", - "integrity": "sha512-O6AE4OskCG5S1emQ/4gl8zK586RqA3srz3nfK/Viy0UPToBc5Trp9BVFb1u0CjsKrAWwnpr4ifM/KBXPWwJbCA==", - "dev": true, - "dependencies": { - "@types/unist": "^2.0.0", - "is-buffer": "^2.0.0", - "unist-util-stringify-position": "^2.0.0", - "vfile-message": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/vfile-message": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-2.0.4.tgz", - "integrity": "sha512-DjssxRGkMvifUOJre00juHoP9DPWuzjxKuMDrhNbk2TdaYYBNMStsNhEOt3idrtI12VQYM/1+iM0KOzXi4pxwQ==", - "dev": true, - "dependencies": { - "@types/unist": "^2.0.0", - "unist-util-stringify-position": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/watchpack": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.1.tgz", - "integrity": "sha512-8wrBCMtVhqcXP2Sup1ctSkga6uc2Bx0IIvKyT7yTFier5AXHooSI+QyQQAtTb7+E0IUCCKyTFmXqdqgum2XWGg==", - "dev": true, - "dependencies": { - "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.1.2" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/webpack": { - "version": "5.101.0", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.101.0.tgz", - "integrity": "sha512-B4t+nJqytPeuZlHuIKTbalhljIFXeNRqrUGAQgTGlfOl2lXXKXw+yZu6bicycP+PUlM44CxBjCFD6aciKFT3LQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/eslint-scope": "^3.7.7", - "@types/estree": "^1.0.8", - "@types/json-schema": "^7.0.15", - "@webassemblyjs/ast": "^1.14.1", - "@webassemblyjs/wasm-edit": "^1.14.1", - "@webassemblyjs/wasm-parser": "^1.14.1", - "acorn": "^8.15.0", - "acorn-import-phases": "^1.0.3", - "browserslist": "^4.24.0", - "chrome-trace-event": "^1.0.2", - "enhanced-resolve": "^5.17.2", - "es-module-lexer": "^1.2.1", - "eslint-scope": "5.1.1", - "events": "^3.2.0", - "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.2.11", - "json-parse-even-better-errors": "^2.3.1", - "loader-runner": "^4.2.0", - "mime-types": "^2.1.27", - "neo-async": "^2.6.2", - "schema-utils": "^4.3.2", - "tapable": "^2.1.1", - "terser-webpack-plugin": "^5.3.11", - "watchpack": "^2.4.1", - "webpack-sources": "^3.3.3" - }, - "bin": { - "webpack": "bin/webpack.js" - }, - "engines": { - "node": ">=10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependenciesMeta": { - "webpack-cli": { - "optional": true - } - } - }, - "node_modules/webpack-cli": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-6.0.1.tgz", - "integrity": "sha512-MfwFQ6SfwinsUVi0rNJm7rHZ31GyTcpVE5pgVA3hwFRb7COD4TzjUUwhGWKfO50+xdc2MQPuEBBJoqIMGt3JDw==", - "dev": true, - "dependencies": { - "@discoveryjs/json-ext": "^0.6.1", - "@webpack-cli/configtest": "^3.0.1", - "@webpack-cli/info": "^3.0.1", - "@webpack-cli/serve": "^3.0.1", - "colorette": "^2.0.14", - "commander": "^12.1.0", - "cross-spawn": "^7.0.3", - "envinfo": "^7.14.0", - "fastest-levenshtein": "^1.0.12", - "import-local": "^3.0.2", - "interpret": "^3.1.1", - "rechoir": "^0.8.0", - "webpack-merge": "^6.0.1" + "basic-auth": "^2.0.1", + "chalk": "^4.1.2", + "corser": "^2.0.1", + "he": "^1.2.0", + "html-encoding-sniffer": "^3.0.0", + "http-proxy": "^1.18.1", + "mime": "^1.6.0", + "minimist": "^1.2.6", + "opener": "^1.5.1", + "portfinder": "^1.0.28", + "secure-compare": "3.0.1", + "union": "~0.5.0", + "url-join": "^4.0.1" }, "bin": { - "webpack-cli": "bin/cli.js" - }, - "engines": { - "node": ">=18.12.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^5.82.0" + "http-server": "bin/http-server" }, - "peerDependenciesMeta": { - "webpack-bundle-analyzer": { - "optional": true - }, - "webpack-dev-server": { - "optional": true - } - } - }, - "node_modules/webpack-cli/node_modules/commander": { - "version": "12.1.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-12.1.0.tgz", - "integrity": "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==", - "dev": true, "engines": { - "node": ">=18" + "node": ">=12" } }, - "node_modules/webpack-merge": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-6.0.1.tgz", - "integrity": "sha512-hXXvrjtx2PLYx4qruKl+kyRSLc52V+cCvMxRjmKwoA+CBbbF5GfIBtR6kCvl0fYGqTUPKB+1ktVmTHqMOzgCBg==", + "node_modules/iconv-lite": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", "dev": true, + "license": "MIT", "dependencies": { - "clone-deep": "^4.0.1", - "flat": "^5.0.2", - "wildcard": "^2.0.1" + "safer-buffer": ">= 2.1.2 < 3.0.0" }, "engines": { - "node": ">=18.0.0" + "node": ">=0.10.0" } }, - "node_modules/webpack-sources": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.3.3.tgz", - "integrity": "sha512-yd1RBzSGanHkitROoPFd6qsrxt+oFhg/129YzheDGqeustzX0vTZJZsSsQjVQC4yzBQ56K55XU8gaNCtIzOnTg==", + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", "dev": true, "license": "MIT", "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/whatwg-encoding": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-2.0.0.tgz", - "integrity": "sha512-p41ogyeMUrw3jWclHWTQg1k05DSVXPLcVxRTYsXUk+ZooOCZLcoYgPZ/HL/D/N+uQPOtcp1me1WhBEaX02mhWg==", - "dev": true, - "dependencies": { - "iconv-lite": "0.6.3" - }, - "engines": { - "node": ">=12" + "node": ">= 0.4" } }, - "node_modules/which": { - "version": "2.0.2", + "node_modules/mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", "dev": true, - "license": "ISC", - "dependencies": { - "isexe": "^2.0.0" - }, + "license": "MIT", "bin": { - "node-which": "bin/node-which" + "mime": "cli.js" }, "engines": { - "node": ">= 8" + "node": ">=4" } }, - "node_modules/which-module": { - "version": "2.0.0", - "dev": true, - "license": "ISC" - }, - "node_modules/wildcard": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.1.tgz", - "integrity": "sha512-CC1bOL87PIWSBhDcTrdeLo6eGT7mCFtrg0uIJtqJUFyK+eJnzl8A1niH56uu7KMa5XFrtiV+AQuHO3n7DsHnLQ==", - "dev": true - }, - "node_modules/workerpool": { - "version": "9.3.3", - "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-9.3.3.tgz", - "integrity": "sha512-slxCaKbYjEdFT/o2rH9xS1hf4uRDch1w7Uo+apxhZ+sf/1d9e0ZVkn42kPNGP2dgjIx6YFvSevj0zHvbWe2jdw==", - "dev": true - }, - "node_modules/wrap-ansi": { - "version": "6.2.0", + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", "dev": true, "license": "MIT", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/wrap-ansi-cjs": { - "name": "wrap-ansi", - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/wrap-ansi-cjs/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", "dev": true, - "engines": { - "node": ">=8" - } + "license": "MIT" }, - "node_modules/wrap-ansi-cjs/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/object-inspect": { + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", + "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, + "license": "MIT", "engines": { - "node": ">=8" + "node": ">= 0.4" }, "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/wrap-ansi-cjs/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/opener": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/opener/-/opener-1.5.2.tgz", + "integrity": "sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A==", "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" + "license": "(WTFPL OR MIT)", + "bin": { + "opener": "bin/opener-bin.js" } }, - "node_modules/wrap-ansi-cjs/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/wrap-ansi-cjs/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "node_modules/portfinder": { + "version": "1.0.38", + "resolved": "https://registry.npmjs.org/portfinder/-/portfinder-1.0.38.tgz", + "integrity": "sha512-rEwq/ZHlJIKw++XtLAO8PPuOQA/zaPJOZJ37BVuN97nLpMJeuDVLVGRwbFoBgLudgdTMP2hdRJP++H+8QOA3vg==", "dev": true, + "license": "MIT", "dependencies": { - "ansi-regex": "^5.0.1" + "async": "^3.2.6", + "debug": "^4.3.6" }, "engines": { - "node": ">=8" - } - }, - "node_modules/wrap-ansi/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "engines": { - "node": ">=8" + "node": ">= 10.12" } }, - "node_modules/wrap-ansi/node_modules/ansi-styles": { - "version": "4.3.0", + "node_modules/qs": { + "version": "6.15.1", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.15.1.tgz", + "integrity": "sha512-6YHEFRL9mfgcAvql/XhwTvf5jKcOiiupt2FiJxHkiX1z4j7WL8J/jRHYLluORvc1XxB5rV20KoeK00gVJamspg==", "dev": true, - "license": "MIT", + "license": "BSD-3-Clause", "dependencies": { - "color-convert": "^2.0.1" + "side-channel": "^1.1.0" }, "engines": { - "node": ">=8" + "node": ">=0.6" }, "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/wrap-ansi/node_modules/color-convert": { - "version": "2.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/wrap-ansi/node_modules/color-name": { - "version": "1.1.4", + "node_modules/requires-port": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", + "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", "dev": true, "license": "MIT" }, - "node_modules/wrap-ansi/node_modules/strip-ansi": { - "version": "6.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/wrappy": { - "version": "1.0.2", + "node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", "dev": true, - "license": "ISC" + "license": "MIT" }, - "node_modules/write-file-atomic": { - "version": "3.0.3", + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", "dev": true, - "license": "ISC", - "dependencies": { - "imurmurhash": "^0.1.4", - "is-typedarray": "^1.0.0", - "signal-exit": "^3.0.2", - "typedarray-to-buffer": "^3.1.5" - } - }, - "node_modules/y18n": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", - "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", - "dev": true + "license": "MIT" }, - "node_modules/yallist": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "node_modules/secure-compare": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/secure-compare/-/secure-compare-3.0.1.tgz", + "integrity": "sha512-AckIIV90rPDcBcglUwXPF3kg0P0qmPsPXAj6BBEENQE1p5yA1xfmDJzfi1Tappj37Pv2mVbKpL3Z1T+Nn7k1Qw==", "dev": true, - "license": "ISC" + "license": "MIT" }, - "node_modules/yargs": { - "version": "15.4.1", + "node_modules/side-channel": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", + "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", "dev": true, "license": "MIT", "dependencies": { - "cliui": "^6.0.0", - "decamelize": "^1.2.0", - "find-up": "^4.1.0", - "get-caller-file": "^2.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^4.2.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^18.1.2" + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3", + "side-channel-list": "^1.0.0", + "side-channel-map": "^1.0.1", + "side-channel-weakmap": "^1.0.2" }, "engines": { - "node": ">=8" - } - }, - "node_modules/yargs-parser": { - "version": "18.1.3", - "dev": true, - "license": "ISC", - "dependencies": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" + "node": ">= 0.4" }, - "engines": { - "node": ">=6" + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/yargs-unparser": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-2.0.0.tgz", - "integrity": "sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==", + "node_modules/side-channel-list": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.1.tgz", + "integrity": "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==", "dev": true, + "license": "MIT", "dependencies": { - "camelcase": "^6.0.0", - "decamelize": "^4.0.0", - "flat": "^5.0.2", - "is-plain-obj": "^2.1.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/yargs-unparser/node_modules/camelcase": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", - "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", - "dev": true, - "engines": { - "node": ">=10" + "es-errors": "^1.3.0", + "object-inspect": "^1.13.4" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/yargs-unparser/node_modules/decamelize": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz", - "integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==", - "dev": true, "engines": { - "node": ">=10" + "node": ">= 0.4" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/yargs/node_modules/find-up": { - "version": "4.1.0", + "node_modules/side-channel-map": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", + "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", "dev": true, "license": "MIT", "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3" }, "engines": { - "node": ">=8" - } - }, - "node_modules/yargs/node_modules/locate-path": { - "version": "5.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "p-locate": "^4.1.0" + "node": ">= 0.4" }, - "engines": { - "node": ">=8" + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/yargs/node_modules/p-limit": { - "version": "2.3.0", + "node_modules/side-channel-weakmap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", + "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", "dev": true, "license": "MIT", "dependencies": { - "p-try": "^2.0.0" + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3", + "side-channel-map": "^1.0.1" }, "engines": { - "node": ">=6" + "node": ">= 0.4" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/yargs/node_modules/p-locate": { - "version": "4.1.0", + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "license": "MIT", "dependencies": { - "p-limit": "^2.2.0" + "has-flag": "^4.0.0" }, "engines": { "node": ">=8" } }, - "node_modules/yargs/node_modules/p-try": { - "version": "2.2.0", + "node_modules/union": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/union/-/union-0.5.0.tgz", + "integrity": "sha512-N6uOhuW6zO95P3Mel2I2zMsbsanvvtgn6jVqJv4vbVcz/JN0OkL9suomjQGmWtxJQXOCqUJvquc1sMeNz/IwlA==", "dev": true, - "license": "MIT", + "dependencies": { + "qs": "^6.4.0" + }, "engines": { - "node": ">=6" + "node": ">= 0.8.0" } }, - "node_modules/yargs/node_modules/path-exists": { - "version": "4.0.0", + "node_modules/url-join": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/url-join/-/url-join-4.0.1.tgz", + "integrity": "sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA==", "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } + "license": "MIT" }, - "node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "node_modules/whatwg-encoding": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-2.0.0.tgz", + "integrity": "sha512-p41ogyeMUrw3jWclHWTQg1k05DSVXPLcVxRTYsXUk+ZooOCZLcoYgPZ/HL/D/N+uQPOtcp1me1WhBEaX02mhWg==", + "deprecated": "Use @exodus/bytes instead for a more spec-conformant and faster implementation", "dev": true, - "engines": { - "node": ">=10" + "license": "MIT", + "dependencies": { + "iconv-lite": "0.6.3" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/zwitch": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-1.0.5.tgz", - "integrity": "sha512-V50KMwwzqJV0NpZIZFwfOD5/lyny3WlSzRiXgA0G7VUnRlqttta1L6UQIHzd6EuBY/cHGfwTIck7w1yH6Q5zUw==", - "dev": true, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" + "engines": { + "node": ">=12" } } } diff --git a/package.json b/package.json index f024218..ba88ab5 100644 --- a/package.json +++ b/package.json @@ -1,22 +1,16 @@ { "name": "pokeapi-js-wrapper", - "version": "1.2.8", + "version": "2.0.0", "description": "An API wrapper for PokeAPI", - "main": "dist/index.js", - "module": "src/index.js", + "main": "src/index.js", + "type": "module", "files": [ - "dist/index.js", - "dist/pokeapi-js-wrapper-sw.js", - "src/*", - "index.d.ts" + "src/*" ], "scripts": { - "build": "webpack", - "build:watch": "webpack --watch", - "clean": "rm -rf ./dist/*", "doctoc": "doctoc .", - "test": "nyc --reporter=lcov mocha -r mock-local-storage -r source-map-support/register ./test/test.js --timeout 10000", - "prepublish": "npm run build", + "test": "node --test ./test/test.js", + "coverage": "node --experimental-test-coverage --test-reporter=lcov --test-reporter-destination=lcov.info --test ./test/test.js", "serve": "http-server ." }, "repository": { @@ -39,22 +33,7 @@ "url": "https://github.com/PokeAPI/pokeapi-js-wrapper/issues" }, "homepage": "https://github.com/PokeAPI/pokeapi-js-wrapper#readme", - "types": "./index.d.ts", - "dependencies": { - "axios": "^1.11.0", - "localforage": "^1.10.0" - }, "devDependencies": { - "chai": "^4.5.0", - "chai-as-promised": "^7.1.2", - "chai-things": "^0.2.0", - "copy-webpack-plugin": "^13.0.0", - "doctoc": "^2.2.1", - "http-server": "^14.1.1", - "mocha": "^11.7.1", - "mock-local-storage": "^1.1.24", - "nyc": "^17.1.0", - "webpack": "^5.101.0", - "webpack-cli": "^6.0.1" + "http-server": "^14.1.1" } } diff --git a/src/getter.js b/src/getter.js index e66a7d4..d38c95c 100644 --- a/src/getter.js +++ b/src/getter.js @@ -1,56 +1,110 @@ -import axios from 'axios' -import localForage from "localforage" +import { log, canUseCache } from './utils.js' -const CACHE_PREFIX = "pokeapi-js-wrapper-" +var db -function loadResource(config, url) { - return new Promise((resolve, reject) => { - localForage.ready() - .then(() => { - localForage.getItem(`${CACHE_PREFIX}${url}`) - .then(value => { - if (value === null) { - loadUrl(config, url).then(res => {resolve(res)}) - .catch(err => {reject(err)}) - } else { - resolve(addCacheMark(value)) - } - }) - .catch(err => { - loadUrl(config, url).then(res => {resolve(res)}) - .catch(err => {reject(err)}) - }) - }) - .catch(err => { - loadUrl(config, url).then(res => {resolve(res)}) - .catch(err => {reject(err)}) - }) - }) +function openDB(config) { + if (config.cache && typeof window !== 'undefined') { + const request = window.indexedDB.open("pokeapi-js-wrapper", 1); + return new Promise((resolve, reject) => { + request.onerror = (event) => { + log('IndexedDB not available') + reject() + } + request.onupgradeneeded = (event) => { + db = event.target.result; + log('db opened and cache created') + db.createObjectStore("cache", { autoIncrement: false }); + resolve(db) + } + request.onsuccess = (event) => { + log('db opened') + db = event.target.result; + resolve(db) + } + request.onversionchange = (event) => { + db.close() + reject() + } + request.onblocked = (event) => { + db.close() + reject() + } + }); + } } -function loadUrl(config, url) { +function getFromDB(objectStore, url) { return new Promise((resolve, reject) => { - let options = { - baseURL: `${config.protocol}://${config.hostName}/`, - timeout: config.timeout + const cachedObject = objectStore.get(url) + cachedObject.onsuccess = () => resolve(cachedObject.result); + cachedObject.onerror = () => reject(cachedObject.error); + }); +} + +async function loadResource(config, url) { + if (! url.includes('://')) { + url = url.replace(/^\//, ''); + url = `${config.protocol}://${config.hostName}/${url}` + } + if (canUseCache(config, db)) { + const transaction = db.transaction("cache", "readonly"); + const objectStore = transaction.objectStore("cache"); + const data = await getFromDB(objectStore, url); + if (data) { + log(`read from cache ${url}`) + return data + } else { + return await loadUrl(config, url) + } + } else { + return await loadUrl(config, url) + } +} + +async function loadUrl(config, url) { + const response = await fetch(url); + const body = await response.json() + if (response.status === 200) { + if (canUseCache(config, db)) { + const transaction = db.transaction("cache", "readwrite"); + const objectStore = transaction.objectStore("cache"); + const request = objectStore.add(body, url) + request.onsuccess = () => log(`object cached ${url}`); + request.onerror = () => { + log(request.error) + } } - axios.get(url, options) - .then(response => { - // if there was an error - if (response.status >= 400) { - reject(response) - } else { - // if everything was good - // cache the object in browser memory - // only if cache is true - if (config.cache) { - localForage.setItem(`${CACHE_PREFIX}${url}`, response.data) - } - resolve(response.data) - } - }) - .catch(err => { reject(err) }) - }) + } + + return body +} + +function sizeDB(config) { + if (canUseCache(config, db)) { + return new Promise((resolve, reject) => { + const transaction = db.transaction("cache", "readwrite"); + const objectStore = transaction.objectStore("cache"); + const request = objectStore.count() + request.onsuccess = () => resolve(request.result); + request.onerror = () => reject(request.error); + }); + } else { + return Promise.reject() + } +} + +function clearDB(config) { + if (canUseCache(config, db)) { + return new Promise((resolve, reject) => { + const transaction = db.transaction("cache", "readwrite"); + const objectStore = transaction.objectStore("cache"); + const request = objectStore.clear() + request.onsuccess = () => resolve(request.result); + request.onerror = () => reject(request.error); + }); + } else { + return Promise.reject() + } } -export { loadResource } +export { loadResource, openDB, sizeDB, clearDB } diff --git a/src/index.js b/src/index.js index 49a62f9..593f0f8 100644 --- a/src/index.js +++ b/src/index.js @@ -1,31 +1,26 @@ -import localForage from "localforage" +//import localForage from "localforage" -import endpoints from './endpoints.json' -import rootEndpoints from './rootEndpoints.json' -import { loadResource } from './getter.js' -import { installSW } from './installSW.js' +import endpoints from './endpoints.json' with { type: "json" } +import rootEndpoints from './rootEndpoints.json' with { type: "json" } +import { loadResource, openDB, sizeDB, clearDB } from './getter.js' import { Config } from './config.js' -localForage.config({ - name: 'pokeapi-js-wrapper' -}) - export class Pokedex { constructor(config) { - this.config = new Config(config) + this.config = config // add to Pokedex.prototype all our endpoint functions endpoints.forEach(endpoint => { const endpointFullName = buildEndpointFullName(endpoint) - this[endpointFullName] = input => { + this[endpointFullName] = input => { if (input) { // if the user has submitted a Name or an ID, return the JSON promise if (typeof input === 'number' || typeof input === 'string') { - return loadResource(this.config, `${this.config.versionPath}${endpoint[2].replace(':id', input)}`) + return loadResource(this.config, `${this.config.versionPath}${endpoint[2].replace(':id', input)}`) } - + // if the user has submitted an Array // return a new promise which will resolve when all loadResource calls are ended else if (typeof input === 'object') { @@ -55,20 +50,26 @@ export class Pokedex { }) if (this.config.cacheImages) { - installSW() + import('./installSW.js').then(module=>module.installSW()) } } + static async init(config) { + config = new Config(config) + await openDB(config) + return new Pokedex(config) + } + getConfig() { return this.config } getCacheLength() { - return localForage.length() + return sizeDB(this.config) } clearCache() { - return localForage.clear() + return clearDB(this.config) } resource(path) { diff --git a/src/installSW.js b/src/installSW.js index abc6523..15146df 100644 --- a/src/installSW.js +++ b/src/installSW.js @@ -1,13 +1,13 @@ -function installSW() { +import { log } from './utils.js' + +export function installSW() { if (navigator && window && 'serviceWorker' in navigator) { window.addEventListener('load', function() { navigator.serviceWorker.register('./pokeapi-js-wrapper-sw.js', { scope: './' }) .catch(error => { - console.log('Pokeapi-js-wrapper SW installation failed with the following error:') - console.error(error) + log('SW installation failed with the following error:') + log(error) }) }) } } - -export { installSW } diff --git a/src/rootEndpoints.json b/src/rootEndpoints.json index bd3029b..2bec755 100644 --- a/src/rootEndpoints.json +++ b/src/rootEndpoints.json @@ -1,51 +1,52 @@ [ ["getEndpoints", ""], - ["getBerries", "berry/"], - ["getBerriesFirmnesss", "berry-firmness/"], - ["getBerriesFlavors", "berry-flavor/"], - ["getContestTypes", "contest-type/"], - ["getContestEffects", "contest-effect/"], - ["getSuperContestEffects", "super-contest-effect/"], - ["getEncounterMethods", "encounter-method/"], - ["getEncounterConditions", "encounter-condition/"], - ["getEncounterConditionValues", "encounter-condition-value/"], - ["getEvolutionChains", "evolution-chain/"], - ["getEvolutionTriggers", "evolution-trigger/"], - ["getGenerations", "generation/"], - ["getPokedexs", "pokedex/"], - ["getVersions", "version/"], - ["getVersionGroups", "version-group/"], - ["getItems", "item/"], - ["getItemAttributes", "item-attribute/"], - ["getItemCategories", "item-category/"], - ["getItemFlingEffects", "item-fling-effect/"], - ["getItemPockets", "item-pocket/"], - ["getMachines", "machine/"], - ["getMoves", "move/"], - ["getMoveAilments", "move-ailment/"], - ["getMoveBattleStyles", "move-battle-style/"], - ["getMoveCategories", "move-category/"], - ["getMoveDamageClasses", "move-damage-class/"], - ["getMoveLearnMethods", "move-learn-method/"], - ["getMoveTargets", "move-target/"], - ["getLocations", "location/"], - ["getLocationAreas", "location-area/"], - ["getPalParkAreas", "pal-park-area/"], - ["getRegions", "region/"], - ["getAbilities", "ability/"], - ["getCharacteristics", "characteristic/"], - ["getEggGroups", "egg-group/"], - ["getGenders", "gender/"], - ["getGrowthRates", "growth-rate/"], - ["getNatures", "nature/"], - ["getPokeathlonStats", "pokeathlon-stat/"], - ["getPokemons", "pokemon/"], - ["getPokemonColors", "pokemon-color/"], - ["getPokemonForms", "pokemon-form/"], - ["getPokemonHabitats", "pokemon-habitat/"], - ["getPokemonShapes", "pokemon-shape/"], - ["getPokemonSpecies", "pokemon-species/"], - ["getStats", "stat/"], - ["getTypes", "type/"], + ["getBerries", "berry/"], + ["getBerriesFirmnesss", "berry-firmness/"], + ["getBerriesFlavors", "berry-flavor/"], + ["getContestTypes", "contest-type/"], + ["getContestEffects", "contest-effect/"], + ["getSuperContestEffects", "super-contest-effect/"], + ["getEncounterMethods", "encounter-method/"], + ["getEncounterConditions", "encounter-condition/"], + ["getEncounterConditionValues", "encounter-condition-value/"], + ["getEvolutionChains", "evolution-chain/"], + ["getEvolutionTriggers", "evolution-trigger/"], + ["getGenerations", "generation/"], + ["getPokedexs", "pokedex/"], + ["getVersions", "version/"], + ["getVersionGroups", "version-group/"], + ["getItems", "item/"], + ["getItemAttributes", "item-attribute/"], + ["getItemCategories", "item-category/"], + ["getItemFlingEffects", "item-fling-effect/"], + ["getItemPockets", "item-pocket/"], + ["getMachines", "machine/"], + ["getMeta", "meta/"], + ["getMoves", "move/"], + ["getMoveAilments", "move-ailment/"], + ["getMoveBattleStyles", "move-battle-style/"], + ["getMoveCategories", "move-category/"], + ["getMoveDamageClasses", "move-damage-class/"], + ["getMoveLearnMethods", "move-learn-method/"], + ["getMoveTargets", "move-target/"], + ["getLocations", "location/"], + ["getLocationAreas", "location-area/"], + ["getPalParkAreas", "pal-park-area/"], + ["getRegions", "region/"], + ["getAbilities", "ability/"], + ["getCharacteristics", "characteristic/"], + ["getEggGroups", "egg-group/"], + ["getGenders", "gender/"], + ["getGrowthRates", "growth-rate/"], + ["getNatures", "nature/"], + ["getPokeathlonStats", "pokeathlon-stat/"], + ["getPokemons", "pokemon/"], + ["getPokemonColors", "pokemon-color/"], + ["getPokemonForms", "pokemon-form/"], + ["getPokemonHabitats", "pokemon-habitat/"], + ["getPokemonShapes", "pokemon-shape/"], + ["getPokemonSpecies", "pokemon-species/"], + ["getStats", "stat/"], + ["getTypes", "type/"], ["getLanguages", "language/"] ] \ No newline at end of file diff --git a/src/utils.js b/src/utils.js new file mode 100644 index 0000000..b974a46 --- /dev/null +++ b/src/utils.js @@ -0,0 +1,11 @@ +function log(msg) { + if (typeof PJSW_DEBUG !== 'undefined') { + console.log(msg); + } +} + +function canUseCache(config, db) { + return config.cache && typeof window !== 'undefined' && typeof db !== 'undefined' +} + +export { log, canUseCache } \ No newline at end of file diff --git a/test/cdn.html b/test/cdn.html new file mode 100644 index 0000000..ddd2be1 --- /dev/null +++ b/test/cdn.html @@ -0,0 +1,15 @@ + + +
The first released Pokemon version name is:
+ + + + \ No newline at end of file diff --git a/test/example-sw.html b/test/example-sw.html index 76efdf6..0a554b7 100644 --- a/test/example-sw.html +++ b/test/example-sw.html @@ -2,13 +2,13 @@ SW test - + -
+
- - - - + + 25 25 25 diff --git a/test/test.html.js b/test/test.html.js index 8abb8a0..64f2007 100644 --- a/test/test.html.js +++ b/test/test.html.js @@ -1,876 +1,385 @@ -describe("service worker", function () { - it("should be activated on second run", function () { - const P = new Pokedex.Pokedex({cacheImages: true}); - return navigator.serviceWorker.getRegistrations().then(function(registrations) { - const sw = registrations.filter(function(serviceworker) { - return serviceworker.active.scriptURL.endsWith('pokeapi-js-wrapper-sw.js') - }); - expect(sw).to.have.lengthOf(1) - expect(sw[0].active.state).to.be.equal('activated') - }); - }); -}); - -describe("pokedex", function () { - var id = 2; - defaultP = new Pokedex.Pokedex(); - customP = new Pokedex.Pokedex({ - protocol: 'https', - offset: 10, - limit: 1, - timeout: 10000, - cache: false, - cacheImages: false - }); - this.timeout(5000); - - describe(".resource(Mixed: array)", function () { - it("should have property name", function () { - return customP.resource(['/api/v2/pokemon/36', 'api/v2/berry/8', 'https://pokeapi.co/api/v2/ability/9/']).then(res => { - expect(res[0]).to.have.property('name'); - expect(res[1]).to.have.property('name'); - expect(res[2]).to.have.property('name'); - }) - }); - }); - - describe(".resource(Path: string)", function () { - it("should have property height", function () { - return defaultP.resource('/api/v2/pokemon/34').then(res => { - expect(res).to.have.property('height'); - }) - }); - }); - - describe(".resource(Url: string)", function () { - it("should have property height", function () { - return defaultP.resource('https://pokeapi.co/api/v2/pokemon/400').then(res => { - expect(res).to.have.property('height') - }) - }); - }); - - describe(".getVersionByName(Id: int)", function () { - it("should have property name", function () { - return defaultP.getVersionByName(id).then(res => { - expect(res).to.have.property("name"); - }) - }); - }); - - // start root endpoints - - describe(".getEndpointsList() secure (with ssl)", function() { - it("should have property pokedex", function() { - return defaultP.getEndpointsList().then(res => { - expect(res).to.have.property("pokedex"); - }) - }); - }); - - describe(".getBerriesList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getBerriesList().then(res => { - expect(res).to.have.property("count"); - }) - }); - }); - - describe(".getBerriesFirmnesssList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getBerriesFirmnesssList().then(res => { - expect(res).to.have.property("count"); - }) - }); - }); - - describe(".getBerriesFlavorsList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getBerriesFlavorsList().then(res => { - expect(res).to.have.property("count"); - }) - }); - }); - - describe(".getContestTypesList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getContestTypesList().then(res => { - expect(res).to.have.property("count"); - }) - }); - }); - - describe(".getContestEffectsList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getContestEffectsList().then(res => { - expect(res).to.have.property("count"); - }) - }); - }); - - describe(".getSuperContestEffectsList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getSuperContestEffectsList().then(res => { - expect(res).to.have.property("count"); - }) - }); - }); - - describe(".getEncounterMethodsList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getEncounterMethodsList().then(res => { - expect(res).to.have.property("count"); - }) - }); - }); - - describe(".getEncounterConditionsList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getEncounterConditionsList().then(res => { - expect(res).to.have.property("count"); - }) - }); - }); - - describe(".getEncounterConditionValuesList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getEncounterConditionValuesList().then(res => { - expect(res).to.have.property("count"); - }) - }); - }); - - describe(".getEvolutionChainsList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getEvolutionChainsList().then(res => { - expect(res).to.have.property("count"); - }) - }); - }); - - describe(".getEvolutionTriggersList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getEvolutionTriggersList().then(res => { - expect(res).to.have.property("count"); - }) - }); - }); - - describe(".getGenerationsList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getGenerationsList().then(res => { - expect(res).to.have.property("count"); - }) - }); - }); - - describe(".getPokedexsList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getPokedexsList().then(res => { - expect(res).to.have.property("count"); - }) - }); - }); - - describe(".getVersionsList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getVersionsList().then(res => { - expect(res).to.have.property("count"); - }) - }); - }); - - describe(".getVersionGroupsList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getVersionGroupsList().then(res => { - expect(res).to.have.property("count"); - }) - }); - }); - - describe(".getItemsList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getItemsList().then(res => { - expect(res).to.have.property("count"); - }) - }); - }); - - describe(".getItemAttributesList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getItemAttributesList().then(res => { - expect(res).to.have.property("count"); - }) - }); - }); - - describe(".getItemCategoriesList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getItemCategoriesList().then(res => { - expect(res).to.have.property("count"); - }) - }); - }); - - describe(".getItemFlingEffectsList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getItemFlingEffectsList().then(res => { - expect(res).to.have.property("count"); - }) - }); - }); - - describe(".getItemPocketsList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getItemPocketsList().then(res => { - expect(res).to.have.property("count"); - }) - }); - }); - - describe(".getMachinesList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getMachinesList().then(res => { - expect(res).to.have.property("count"); - }) - }); - }); - - describe(".getMovesList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getMovesList().then(res => { - expect(res).to.have.property("count"); - }) - }); - }); - - describe(".getMoveAilmentsList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getMoveAilmentsList().then(res => { - expect(res).to.have.property("count"); - }) - }); - }); - - describe(".getMoveBattleStylesList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getMoveBattleStylesList().then(res => { - expect(res).to.have.property("count"); - }) - }); - }); - - describe(".getMoveCategoriesList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getMoveCategoriesList().then(res => { - expect(res).to.have.property("count"); - }) - }); - }); - - describe(".getMoveDamageClassesList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getMoveDamageClassesList().then(res => { - expect(res).to.have.property("count"); - }) - }); - }); - - describe(".getMoveLearnMethodsList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getMoveLearnMethodsList().then(res => { - expect(res).to.have.property("count"); - }) - }); - }); +import { Pokedex } from '../src/index.js'; - describe(".getMoveTargetsList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getMoveTargetsList().then(res => { - expect(res).to.have.property("count"); - }) - }); - }); +mocha.setup('bdd'); +const expect = chai.expect; +let P, defaultP, customP; - describe(".getLocationsList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getLocationsList().then(res => { - expect(res).to.have.property("count"); - }) - }); - }); +describe("service worker", function () { + this.timeout(10000); - describe(".getLocationAreasList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getLocationAreasList().then(res => { - expect(res).to.have.property("count"); - }) - }); + before(async function() { + P = await Pokedex.init({ cacheImages: true }); }); - describe(".getPalParkAreasList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getPalParkAreasList().then(res => { - expect(res).to.have.property("count"); - }) - }); + it("should be activated on second run", async function () { + const registrations = await navigator.serviceWorker.getRegistrations(); + const sw = registrations.filter(serviceworker => + serviceworker.active.scriptURL.endsWith('pokeapi-js-wrapper-sw.js') + ); + expect(sw).to.have.lengthOf(1); + expect(sw[0].active.state).to.be.equal('activated'); }); +}); - describe(".getRegionsList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getRegionsList().then(res => { - expect(res).to.have.property("count"); - }) - }); - }); +describe("pokedex", function () { + this.timeout(30000); - describe(".getAbilitiesList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getAbilitiesList().then(res => { - expect(res).to.have.property("count"); - }) - }); - }); + var id = 2; - describe(".getCharacteristicsList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getCharacteristicsList().then(res => { - expect(res).to.have.property("count"); - }) + before(async function() { + defaultP = await Pokedex.init(); + customP = await Pokedex.init({ + protocol: 'https', + offset: 10, + limit: 1, + timeout: 10000, + cache: false, + cacheImages: false }); }); - describe(".getEggGroupsList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getEggGroupsList().then(res => { - expect(res).to.have.property("count"); - }) - }); - }); + // --- Resource Methods --- - describe(".getGendersList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getGendersList().then(res => { - expect(res).to.have.property("count"); - }) + describe(".resource(Mixed: array) not cached", function () { + it("should have property name", async function () { + const res = await customP.resource(['/api/v2/pokemon/36', 'api/v2/berry/8', 'https://pokeapi.co/api/v2/ability/9/']); + expect(res[0]).to.have.property('name'); + expect(res[1]).to.have.property('name'); + expect(res[2]).to.have.property('name'); }); }); - describe(".getGrowthRatesList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getGrowthRatesList().then(res => { - expect(res).to.have.property("count"); - }) + describe(".resource(Path: string)", function () { + it("should have property height", async function () { + const res = await defaultP.resource('/api/v2/pokemon/34'); + expect(res).to.have.property('height'); }); }); - describe(".getNaturesList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getNaturesList().then(res => { - expect(res).to.have.property("count"); - }) - }); + describe(".resource(Url: string)", function () { + it("should have property height", async function () { + const res = await defaultP.resource('https://pokeapi.co/api/v2/pokemon/400'); + expect(res).to.have.property('height'); + }); + }); + + // --- Root Endpoints --- + + describe("Root Endpoints List", function() { + it(".getEndpointsList()", async () => expect(await defaultP.getEndpointsList()).to.have.property("pokedex")); + it(".getBerriesList()", async () => expect(await defaultP.getBerriesList()).to.have.property("count")); + it(".getBerriesFirmnesssList()", async () => expect(await defaultP.getBerriesFirmnesssList()).to.have.property("count")); + it(".getBerriesFlavorsList()", async () => expect(await defaultP.getBerriesFlavorsList()).to.have.property("count")); + it(".getContestTypesList()", async () => expect(await defaultP.getContestTypesList()).to.have.property("count")); + it(".getContestEffectsList()", async () => expect(await defaultP.getContestEffectsList()).to.have.property("count")); + it(".getSuperContestEffectsList()", async () => expect(await defaultP.getSuperContestEffectsList()).to.have.property("count")); + it(".getEncounterMethodsList()", async () => expect(await defaultP.getEncounterMethodsList()).to.have.property("count")); + it(".getEncounterConditionsList()", async () => expect(await defaultP.getEncounterConditionsList()).to.have.property("count")); + it(".getEncounterConditionValuesList()", async () => expect(await defaultP.getEncounterConditionValuesList()).to.have.property("count")); + it(".getEvolutionChainsList()", async () => expect(await defaultP.getEvolutionChainsList()).to.have.property("count")); + it(".getEvolutionTriggersList()", async () => expect(await defaultP.getEvolutionTriggersList()).to.have.property("count")); + it(".getGenerationsList()", async () => expect(await defaultP.getGenerationsList()).to.have.property("count")); + it(".getPokedexsList()", async () => expect(await defaultP.getPokedexsList()).to.have.property("count")); + it(".getVersionsList()", async () => expect(await defaultP.getVersionsList()).to.have.property("count")); + it(".getVersionGroupsList()", async () => expect(await defaultP.getVersionGroupsList()).to.have.property("count")); + it(".getItemsList()", async () => expect(await defaultP.getItemsList()).to.have.property("count")); + it(".getItemAttributesList()", async () => expect(await defaultP.getItemAttributesList()).to.have.property("count")); + it(".getItemCategoriesList()", async () => expect(await defaultP.getItemCategoriesList()).to.have.property("count")); + it(".getItemFlingEffectsList()", async () => expect(await defaultP.getItemFlingEffectsList()).to.have.property("count")); + it(".getItemPocketsList()", async () => expect(await defaultP.getItemPocketsList()).to.have.property("count")); + it(".getMachinesList()", async () => expect(await defaultP.getMachinesList()).to.have.property("count")); + it(".getMovesList()", async () => expect(await defaultP.getMovesList()).to.have.property("count")); + it(".getMoveAilmentsList()", async () => expect(await defaultP.getMoveAilmentsList()).to.have.property("count")); + it(".getMoveBattleStylesList()", async () => expect(await defaultP.getMoveBattleStylesList()).to.have.property("count")); + it(".getMoveCategoriesList()", async () => expect(await defaultP.getMoveCategoriesList()).to.have.property("count")); + it(".getMoveDamageClassesList()", async () => expect(await defaultP.getMoveDamageClassesList()).to.have.property("count")); + it(".getMoveLearnMethodsList()", async () => expect(await defaultP.getMoveLearnMethodsList()).to.have.property("count")); + it(".getMoveTargetsList()", async () => expect(await defaultP.getMoveTargetsList()).to.have.property("count")); + it(".getLocationsList()", async () => expect(await defaultP.getLocationsList()).to.have.property("count")); + it(".getLocationAreasList()", async () => expect(await defaultP.getLocationAreasList()).to.have.property("count")); + it(".getPalParkAreasList()", async () => expect(await defaultP.getPalParkAreasList()).to.have.property("count")); + it(".getRegionsList()", async () => expect(await defaultP.getRegionsList()).to.have.property("count")); + it(".getAbilitiesList()", async () => expect(await defaultP.getAbilitiesList()).to.have.property("count")); + it(".getCharacteristicsList()", async () => expect(await defaultP.getCharacteristicsList()).to.have.property("count")); + it(".getEggGroupsList()", async () => expect(await defaultP.getEggGroupsList()).to.have.property("count")); + it(".getGendersList()", async () => expect(await defaultP.getGendersList()).to.have.property("count")); + it(".getGrowthRatesList()", async () => expect(await defaultP.getGrowthRatesList()).to.have.property("count")); + it(".getNaturesList()", async () => expect(await defaultP.getNaturesList()).to.have.property("count")); + it(".getPokeathlonStatsList()", async () => expect(await defaultP.getPokeathlonStatsList()).to.have.property("count")); + it(".getPokemonsList()", async () => expect(await defaultP.getPokemonsList()).to.have.property("count")); + it(".getPokemonColorsList()", async () => expect(await defaultP.getPokemonColorsList()).to.have.property("count")); + it(".getPokemonFormsList()", async () => expect(await defaultP.getPokemonFormsList()).to.have.property("count")); + it(".getPokemonHabitatsList()", async () => expect(await defaultP.getPokemonHabitatsList()).to.have.property("count")); + it(".getPokemonShapesList()", async () => expect(await defaultP.getPokemonShapesList()).to.have.property("count")); + it(".getPokemonSpeciesList()", async () => expect(await defaultP.getPokemonSpeciesList()).to.have.property("count")); + it(".getStatsList()", async () => expect(await defaultP.getStatsList()).to.have.property("count")); + it(".getTypesList()", async () => expect(await defaultP.getTypesList()).to.have.property("count")); + it(".getLanguagesList()", async () => expect(await defaultP.getLanguagesList()).to.have.property("count")); }); - describe(".getPokeathlonStatsList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getPokeathlonStatsList().then(res => { - expect(res).to.have.property("count"); - }) - }); - }); + // --- Normal Data Calls --- - describe(".getPokemonsList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getPokemonsList().then(res => { - expect(res).to.have.property("count"); - }) + describe("Data Retrieval by Name/ID", function() { + it(".getBerryByName(Array: string)", async function() { + const res = await defaultP.getBerryByName(['cheri', 'chesto', 'pecha']); + expect(res).to.have.length(3); }); - }); - describe(".getPokemonColorsList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getPokemonColorsList().then(res => { - expect(res).to.have.property("count"); - }) + it(".getBerryByName(Array: int)", async function () { + const res = await defaultP.getBerryByName([1, 3, 5]); + expect(res).to.have.length(3); }); - }); - describe(".getPokemonFormsList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getPokemonFormsList().then(res => { - expect(res).to.have.property("count"); - }) + it(".getPokemonByName(Array: int)", async function() { + const res = await defaultP.getPokemonByName([15, 35, 433, 444]); + expect(res).to.have.length(4); }); - }); - describe(".getPokemonHabitatsList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getPokemonHabitatsList().then(res => { - expect(res).to.have.property("count"); - }) + it(".getBerryByName(Id: int)", async function() { + const res = await defaultP.getBerryByName(id); + expect(res).to.have.property("name"); }); - }); - describe(".getPokemonShapesList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getPokemonShapesList().then(res => { - expect(res).to.have.property("count"); - }) + it(".getBerryFirmnessByName(Id: int)", async function() { + const res = await defaultP.getBerryFirmnessByName(id); + expect(res).to.have.property("name"); }); - }); - describe(".getPokemonSpeciesList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getPokemonSpeciesList().then(res => { - expect(res).to.have.property("count"); - }) + it(".getBerryFlavorByName(Id: int)", async function() { + const res = await defaultP.getBerryFlavorByName(id); + expect(res).to.have.property("name"); }); - }); - describe(".getStatsList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getStatsList().then(res => { - expect(res).to.have.property("count"); - }) + it(".getContestTypeByName(Id: int)", async function() { + const res = await defaultP.getContestTypeByName(id); + expect(res).to.have.property("name"); }); - }); - describe(".getTypesList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getTypesList().then(res => { - expect(res).to.have.property("count"); - }) + it(".getContestEffectById(Id: int)", async function() { + const res = await defaultP.getContestEffectById(id); + expect(res).to.have.property("id"); }); - }); - describe(".getLanguagesList() secure (with ssl)", function() { - it("should have property count", function() { - return defaultP.getLanguagesList().then(res => { - expect(res).to.have.property("count"); - }) + it(".getSuperContestEffectById(Id: int)", async function() { + const res = await defaultP.getSuperContestEffectById(id); + expect(res).to.have.property("id"); }); - }); - // end root endpoints - - // start normals calls - - describe(".getBerryByName(Array: string)", function() { - it("should have length 3", function() { - return defaultP.getBerryByName(['cheri', 'chesto', 'pecha']).then(res => { - expect(res).to.have.length(3); - }) + it(".getEncounterMethodByName(Id: int)", async function() { + const res = await defaultP.getEncounterMethodByName(id); + expect(res).to.have.property("name"); }); - }); - describe(".getBerryByName(Array: int)", function() { - it("should have length 3", function () { - return defaultP.getBerryByName([1, 3, 5]).then(res => { - expect(res).to.have.length(3); - }) + it(".getEncounterConditionByName(Id: int)", async function() { + const res = await defaultP.getEncounterConditionByName(id); + expect(res).to.have.property("name"); }); - }); - describe(".getPokemonByName(Array: int)", function() { - it("should have length 4", function() { - return defaultP.getPokemonByName([15, 35, 433, 444]).then(res => { - expect(res).to.have.length(4); - }) + it(".getEncounterConditionValueByName(Id: int)", async function() { + const res = await defaultP.getEncounterConditionValueByName(id); + expect(res).to.have.property("name"); }); - }); - describe(".getBerryByName(Id: int)", function() { - it("should have property name", function() { - return defaultP.getBerryByName(id).then(res => { - expect(res).to.have.property("name"); - }) + it(".getEvolutionChainById(Id: int)", async function() { + const res = await defaultP.getEvolutionChainById(id); + expect(res).to.have.property("id"); }); - }); - describe(".getBerryByName(Id: int) cached", function() { - it("should have property name", function() { - return defaultP.getBerryByName(id).then(res => { - expect(res).to.have.property("name"); - }) + it(".getEvolutionTriggerByName(Id: int)", async function() { + const res = await defaultP.getEvolutionTriggerByName(id); + expect(res).to.have.property("name"); }); - }); - describe(".getBerryFirmnessByName(Id: int)", function() { - it("should have property name", function() { - return defaultP.getBerryFirmnessByName(id).then(res => { - expect(res).to.have.property("name"); - }) + it(".getGenerationByName(Id: int)", async function() { + const res = await defaultP.getGenerationByName(id); + expect(res).to.have.property("name"); }); - }); - describe(".getBerryFlavorByName(Id: int)", function() { - it("should have property name", function() { - return defaultP.getBerryFlavorByName(id).then(res => { - expect(res).to.have.property("name"); - }) + it(".getPokedexByName(Id: int)", async function() { + const res = await defaultP.getPokedexByName(id); + expect(res).to.have.property("name"); }); - }); - describe(".getContestTypeByName(Id: int)", function() { - it("should have property name", function() { - return defaultP.getContestTypeByName(id).then(res => { - expect(res).to.have.property("name"); - }) + it(".getVersionByName(Id: int)", async function() { + const res = await defaultP.getVersionByName(id); + expect(res).to.have.property("name"); }); - }); - describe(".getContestEffectById(Id: int)", function() { - it("should have property id", function() { - return defaultP.getContestEffectById(id).then(res => { - expect(res).to.have.property("id"); - }) + it(".getVersionGroupByName(Id: int)", async function() { + const res = await defaultP.getVersionGroupByName(id); + expect(res).to.have.property("name"); }); - }); - describe(".getSuperContestEffectById(Id: int)", function() { - it("should have property id", function() { - return defaultP.getSuperContestEffectById(id).then(res => { - expect(res).to.have.property("id"); - }) + it(".getItemByName(Id: int)", async function() { + const res = await defaultP.getItemByName(id); + expect(res).to.have.property("name"); }); - }); - describe(".getEncounterMethodByName(Id: int)", function() { - it("should have property name", function() { - return defaultP.getEncounterMethodByName(id).then(res => { - expect(res).to.have.property("name"); - }) + it(".getItemAttributeByName(Id: int)", async function() { + const res = await defaultP.getItemAttributeByName(id); + expect(res).to.have.property("name"); }); - }); - describe(".getEncounterConditionByName(Id: int)", function() { - it("should have property name", function() { - return defaultP.getEncounterConditionByName(id).then(res => { - expect(res).to.have.property("name"); - }) + it(".getItemCategoryByName(Id: int)", async function() { + const res = await defaultP.getItemCategoryByName(id); + expect(res).to.have.property("name"); }); - }); - describe(".getEncounterConditionValueByName(Id: int)", function() { - it("should have property name", function() { - return defaultP.getEncounterConditionValueByName(id).then(res => { - expect(res).to.have.property("name"); - }) + it(".getItemFlingEffectByName(Id: int)", async function() { + const res = await defaultP.getItemFlingEffectByName(id); + expect(res).to.have.property("name"); }); - }); - describe(".getEvolutionChainById(Id: int)", function() { - it("should have property name", function() { - return defaultP.getEvolutionChainById(id).then(res => { - expect(res).to.have.property("id"); - }) + it(".getItemPocketByName(Id: int)", async function() { + const res = await defaultP.getItemPocketByName(id); + expect(res).to.have.property("name"); }); - }); - describe(".getEvolutionTriggerByName(Id: int)", function() { - it("should have property name", function() { - return defaultP.getEvolutionTriggerByName(id).then(res => { - expect(res).to.have.property("name"); - }) + it(".getMachineById(Id: int)", async function() { + const res = await defaultP.getMachineById(id); + expect(res).to.have.property("id"); }); - }); - describe(".getGenerationByName(Id: int)", function() { - it("should have property name", function() { - return defaultP.getGenerationByName(id).then(res => { - expect(res).to.have.property("name"); - }) + it(".getMoveByName(Id: int)", async function() { + const res = await defaultP.getMoveByName(id); + expect(res).to.have.property("name"); }); - }); - describe(".getPokedexByName(Id: int)", function() { - it("should have property name", function() { - return defaultP.getPokedexByName(id).then(res => { - expect(res).to.have.property("name"); - }) + it(".getMoveAilmentByName(Id: int)", async function() { + const res = await defaultP.getMoveAilmentByName(id); + expect(res).to.have.property("name"); }); - }); - describe(".getVersionByName(Id: int)", function() { - it("should have property name", function() { - return defaultP.getVersionByName(id).then(res => { - expect(res).to.have.property("name"); - }) + it(".getMoveBattleStyleByName(Id: int)", async function() { + const res = await defaultP.getMoveBattleStyleByName(id); + expect(res).to.have.property("name"); }); - }); - describe(".getVersionGroupByName(Id: int)", function() { - it("should have property name", function() { - return defaultP.getVersionGroupByName(id).then(res => { - expect(res).to.have.property("name"); - }) + it(".getMoveCategoryByName(Id: int)", async function() { + const res = await defaultP.getMoveCategoryByName(id); + expect(res).to.have.property("name"); }); - }); - describe(".getItemByName(Id: int)", function() { - it("should have property name", function() { - return defaultP.getItemByName(id).then(res => { - expect(res).to.have.property("name"); - }) + it(".getMoveDamageClassByName(Id: int)", async function() { + const res = await defaultP.getMoveDamageClassByName(id); + expect(res).to.have.property("name"); }); - }); - describe(".getItemAttributeByName(Id: int)", function() { - it("should have property name", function() { - return defaultP.getItemAttributeByName(id).then(res => { - expect(res).to.have.property("name"); - }) + it(".getMoveTargetByName(Id: int)", async function() { + const res = await defaultP.getMoveTargetByName(id); + expect(res).to.have.property("name"); }); - }); - - describe(".getItemCategoryByName(Id: int)", function() { - it("should have property name", function() { - return defaultP.getItemCategoryByName(id).then(res => { - expect(res).to.have.property("name"); - }) - }); - }); - - describe(".getItemFlingEffectByName(Id: int)", function() { - it("should have property name", function() { - return defaultP.getItemFlingEffectByName(id).then(res => { - expect(res).to.have.property("name"); - }) - }); - }); - - describe(".getItemPocketByName(Id: int)", function() { - it("should have property name", function() { - return defaultP.getItemPocketByName(id).then(res => { - expect(res).to.have.property("name"); - }) - }); - }); - - describe(".getMachineById(Id: int)", function() { - it("should have property id", function() { - return defaultP.getMachineById(id).then(res => { - expect(res).to.have.property("id"); - }) - }); - }); - describe(".getMoveByName(Id: int)", function() { - it("should have property name", function() { - return defaultP.getMoveByName(id).then(res => { - expect(res).to.have.property("name"); - }) + it(".getLocationByName(Id: int)", async function() { + const res = await defaultP.getLocationByName(id); + expect(res).to.have.property("name"); }); - }); - - describe(".getMoveAilmentByName(Id: int)", function() { - it("should have property name", function() { - return defaultP.getMoveAilmentByName(id).then(res => { - expect(res).to.have.property("name"); - }) - }); - }); - - describe(".getMoveBattleStyleByName(Id: int)", function() { - it("should have property name", function() { - return defaultP.getMoveBattleStyleByName(id).then(res => { - expect(res).to.have.property("name"); - }) - }); - }); - - describe(".getMoveCategoryByName(Id: int)", function() { - it("should have property name", function() { - return defaultP.getMoveCategoryByName(id).then(res => { - expect(res).to.have.property("name"); - }) - }); - }); - - describe(".getMoveDamageClassByName(Id: int)", function() { - it("should have property name", function() { - return defaultP.getMoveDamageClassByName(id).then(res => { - expect(res).to.have.property("name"); - }) - }); - }); - describe(".getMoveTargetByName(Id: int)", function() { - it("should have property name", function() { - return defaultP.getMoveTargetByName(id).then(res => { - expect(res).to.have.property("name"); - }) + it(".getLocationAreaByName(Id: int)", async function() { + const res = await defaultP.getLocationAreaByName(id); + expect(res).to.have.property("name"); }); - }); - describe(".getLocationByName(Id: int)", function() { - it("should have property name", function() { - return defaultP.getLocationByName(id).then(res => { - expect(res).to.have.property("name"); - }) + it(".getPalParkAreaByName(Id: int)", async function() { + const res = await defaultP.getPalParkAreaByName(id); + expect(res).to.have.property("name"); }); - }); - describe(".getLocationAreaByName(Id: int)", function() { - it("should have property name", function() { - return defaultP.getLocationAreaByName(id).then(res => { - expect(res).to.have.property("name"); - }) + it(".getRegionByName(Id: int)", async function() { + const res = await defaultP.getRegionByName(id); + expect(res).to.have.property("name"); }); - }); - describe(".getPalParkAreaByName(Id: int)", function() { - it("should have property name", function() { - return defaultP.getPalParkAreaByName(id).then(res => { - expect(res).to.have.property("name"); - }) + it(".getAbilityByName(Id: int)", async function() { + const res = await defaultP.getAbilityByName(id); + expect(res).to.have.property("name"); }); - }); - describe(".getRegionByName(Id: int)", function() { - it("should have property name", function() { - return defaultP.getRegionByName(id).then(res => { - expect(res).to.have.property("name"); - }) + it(".getCharacteristicById(Id: int)", async function() { + const res = await defaultP.getCharacteristicById(id); + expect(res).to.have.property("id"); }); - }); - describe(".getAbilityByName(Id: int)", function() { - it("should have property name", function() { - return defaultP.getAbilityByName(id).then(res => { - expect(res).to.have.property("name"); - }) + it(".getEggGroupByName(Id: int)", async function() { + const res = await defaultP.getEggGroupByName(id); + expect(res).to.have.property("name"); }); - }); - describe(".getCharacteristicById(Id: int)", function() { - it("should have property name", function() { - return defaultP.getCharacteristicById(id).then(res => { - expect(res).to.have.property("id"); - }) + it(".getGenderByName(Id: int)", async function() { + const res = await defaultP.getGenderByName(id); + expect(res).to.have.property("name"); }); - }); - describe(".getEggGroupByName(Id: int)", function() { - it("should have property name", function() { - return defaultP.getEggGroupByName(id).then(res => { - expect(res).to.have.property("name"); - }) + it(".getGrowthRateByName(Id: int)", async function() { + const res = await defaultP.getGrowthRateByName(id); + expect(res).to.have.property("name"); }); - }); - describe(".getGenderByName(Id: int)", function() { - it("should have property name", function() { - return defaultP.getGenderByName(id).then(res => { - expect(res).to.have.property("name"); - }) + it(".getNatureByName(Id: int)", async function() { + const res = await defaultP.getNatureByName(id); + expect(res).to.have.property("name"); }); - }); - describe(".getGrowthRateByName(Id: int)", function() { - it("should have property name", function() { - return defaultP.getGrowthRateByName(id).then(res => { - expect(res).to.have.property("name"); - }) + it(".getPokeathlonStatByName(Id: int)", async function() { + const res = await defaultP.getPokeathlonStatByName(id); + expect(res).to.have.property("name"); }); - }); - describe(".getNatureByName(Id: int)", function() { - it("should have property name", function() { - return defaultP.getNatureByName(id).then(res => { - expect(res).to.have.property("name"); - }) + it(".getPokemonByName(Id: int)", async function() { + const res = await defaultP.getPokemonByName(id); + expect(res).to.have.property("name"); }); - }); - describe(".getPokeathlonStatByName(Id: int)", function() { - it("should have property name", function() { - return defaultP.getPokeathlonStatByName(id).then(res => { - expect(res).to.have.property("name"); - }) + it(".getPokemonColorByName(Id: int)", async function() { + const res = await defaultP.getPokemonColorByName(id); + expect(res).to.have.property("name"); }); - }); - describe(".getPokemonByName(Id: int)", function() { - it("should have property name", function() { - return defaultP.getPokemonByName(id).then(res => { - expect(res).to.have.property("name"); - }) + it(".getPokemonFormByName(Id: int)", async function() { + const res = await defaultP.getPokemonFormByName(id); + expect(res).to.have.property("name"); }); - }); - describe(".getPokemonColorByName(Id: int)", function() { - it("should have property name", function() { - return defaultP.getPokemonColorByName(id).then(res => { - expect(res).to.have.property("name"); - }) + it(".getPokemonHabitatByName(Id: int)", async function() { + const res = await defaultP.getPokemonHabitatByName(id); + expect(res).to.have.property("name"); }); - }); - describe(".getPokemonFormByName(Id: int)", function() { - it("should have property name", function() { - return defaultP.getPokemonFormByName(id).then(res => { - expect(res).to.have.property("name"); - }) + it(".getPokemonShapeByName(Id: int)", async function() { + const res = await defaultP.getPokemonShapeByName(id); + expect(res).to.have.property("name"); }); - }); - describe(".getPokemonHabitatByName(Id: int)", function() { - it("should have property name", function() { - return defaultP.getPokemonHabitatByName(id).then(res => { - expect(res).to.have.property("name"); - }) + it(".getPokemonSpeciesByName(Id: int)", async function() { + const res = await defaultP.getPokemonSpeciesByName(id); + expect(res).to.have.property("name"); }); - }); - describe(".getPokemonShapeByName(Id: int)", function() { - it("should have property name", function() { - return defaultP.getPokemonShapeByName(id).then(res => { - expect(res).to.have.property("name"); - }) + it(".getStatByName(Id: int)", async function() { + const res = await defaultP.getStatByName(id); + expect(res).to.have.property("name"); }); - }); - describe(".getPokemonSpeciesByName(Id: int)", function() { - it("should have property name", function() { - return defaultP.getPokemonSpeciesByName(id).then(res => { - expect(res).to.have.property("name"); - }) + it(".getTypeByName(Id: int)", async function() { + const res = await defaultP.getTypeByName(id); + expect(res).to.have.property("name"); }); - }); - describe(".getStatByName(Id: int)", function() { - it("should have property name", function() { - return defaultP.getStatByName(id).then(res => { - expect(res).to.have.property("name"); - }) + it(".getLanguageByName(Id: int)", async function() { + const res = await defaultP.getLanguageByName(id); + expect(res).to.have.property("name"); }); }); +}); - describe(".getTypeByName(Id: int)", function() { - it("should have property name", function() { - return defaultP.getTypeByName(id).then(res => { - expect(res).to.have.property("name"); - }) - }); - }); +const button = document.getElementById('flush-cache-btn'); - describe(".clearCache()", function () { - it("should clear all cached entries", function () { - return defaultP.clearCache().then(res => { - defaultP.getCacheLength().then(length => { - expect(length).to.be.equal(0); - }) - }) - }); - }); +button.addEventListener('click', async () => { + try { + await defaultP.clearCache(); + } catch (error) { + console.error(error); + } +}); - describe(".getLanguageByName(Id: int)", function() { - it("should have property name", function() { - return defaultP.getLanguageByName(id).then(res => { - expect(res).to.have.property("name"); - }) - }); - }); -}); +mocha.run(); \ No newline at end of file diff --git a/test/test.js b/test/test.js index a722b1e..db51b9e 100644 --- a/test/test.js +++ b/test/test.js @@ -1,1364 +1,52 @@ -//var localStorage = require('localStorage'); -var Pokedex = require("../dist/index.js"); -var chai = require('chai'), - expect = chai.expect, - assert = chai.assert; -chai.use(require("chai-things")); -chai.use(require("chai-as-promised")); - -global.navigator = { - userAgent: 'node.js' -}; - -global.window = { - userAgent: 'node.js' -}; - -describe("pokedex", function () { - var promise, - id = 2, - path = '/api/v2/pokemon/34', - url = 'https://pokeapi.co/api/v2/pokemon/35', - secureP = new Pokedex.Pokedex({cacheImages: true}), - P = new Pokedex.Pokedex({ +import { Pokedex } from "../src/index.js"; +import { describe, it, before } from "node:test"; +import assert from "node:assert/strict"; + +describe("pokedex", { timeout: 30000 }, function () { + let p1; + let p2; + + const id = 2; + const path = '/api/v2/pokemon/34'; + const url = 'https://pokeapi.co/api/v2/pokemon/35'; + const interval = { limit: 10, offset: 34 }; + + before(async function () { + p1 = await Pokedex.init({ cacheImages: false }); + p2 = await Pokedex.init({ protocol: 'https', offset: 10, limit: 1, timeout: 10000, cache: false - }), - interval = { - limit: 10, - offset: 34 - } - - this.timeout(21000); - - describe("P.getPokemonsList(interval: Interval) with default interval", function () { - it("should succeed", function () { - P.getPokemonsList().then(function(res) { - expect(res).to.have.property('results'); - expect(res.results).to.have.lengthOf(1); - expect(res.results[0].name).to.be.equal("caterpie"); - expect(res.results[0].name).not.to.be.equal("metapod"); - }); }); }); + // --- Utility Methods --- describe(".getConfig()", function () { it("should return protocol property", function () { - let config = P.getConfig() - expect(config).to.have.property('protocol'); - }); - }); - - describe(".getPokemonsList(interval: Interval) with interval", function () { - before(function () { - promise = secureP.getPokemonsList(interval); - }); - it("should succeed", function () { - return promise; - }); - it("should have length results", function() { - return expect(promise).to.eventually.have.property('results'); - }); - }); - - describe(".clearCache()", function () { - it("should clear all cached entries", function () { - return P.clearCache().then(res => { - P.getCacheLength().then(length => { - expect(length).to.be.equal(0); - }) - }) - }); - }); - - describe(".resource(Mixed: array)", function () { - before(function () { - promise = secureP.resource(['/api/v2/pokemon/36', 'api/v2/berry/8', 'https://pokeapi.co/api/v2/ability/9/']); - }); - it("should succeed", function () { - return promise; - }); - it("should have length 3", function() { - return expect(promise).to.eventually.have.length(3); - }); - it("should have property name", function () { - return expect(promise).to.eventually.all.have.property('name'); - }); - }); - - describe(".resource(Path: string)", function () { - before(function () { - promise = secureP.resource(path); - }); - it("should succeed", function () { - return promise; - }); - it("should have property height", function () { - return expect(promise).to.eventually.have.property('height'); - }); - }); - - describe(".resource(Url: string)", function () { - before(function () { - promise = secureP.resource(url); - }); - it("should succeed", function () { - return promise; - }); - it("should have property height", function () { - return expect(promise).to.eventually.have.property('height') - }); - }); - - describe(".getPokemonEncounterAreasByName(Id: int)", function () { - before(function () { - promise = secureP.getPokemonEncounterAreasByName(id); - }); - it("should succeed", function () { - return promise; - }); - it("should be an array", function () { - return expect(promise).to.eventually.be.an("array"); - }); - }); - - describe(".getVersionByName(Id: int)", function () { - before(function () { - promise = secureP.getVersionByName(id); - }); - it("should succeed", function () { - return promise; - }); - it("should have property name", function () { - return expect(promise).to.eventually.have.property("name"); - }); - }); - - // start root endpoints - - describe(".getEndpointsList() secure (with ssl)", function() { - before(function() { - promise = secureP.getEndpointsList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property pokedex", function() { - return expect(promise).to.eventually.have.property("pokedex"); - }); - }); - - describe(".getBerriesList() secure (with ssl)", function() { - before(function() { - promise = secureP.getBerriesList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); - }); - }); - - describe(".getBerriesFirmnesssList() secure (with ssl)", function() { - before(function() { - promise = secureP.getBerriesFirmnesssList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); - }); - }); - - describe(".getBerriesFlavorsList() secure (with ssl)", function() { - before(function() { - promise = secureP.getBerriesFlavorsList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); - }); - }); - - describe(".getContestTypesList() secure (with ssl)", function() { - before(function() { - promise = secureP.getContestTypesList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); - }); - }); - - describe(".getContestEffectsList() secure (with ssl)", function() { - before(function() { - promise = secureP.getContestEffectsList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); - }); - }); - - describe(".getSuperContestEffectsList() secure (with ssl)", function() { - before(function() { - promise = secureP.getSuperContestEffectsList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); - }); - }); - - describe(".getEncounterMethodsList() secure (with ssl)", function() { - before(function() { - promise = secureP.getEncounterMethodsList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); - }); - }); - - describe(".getEncounterConditionsList() secure (with ssl)", function() { - before(function() { - promise = secureP.getEncounterConditionsList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); - }); - }); - - describe(".getEncounterConditionValuesList() secure (with ssl)", function() { - before(function() { - promise = secureP.getEncounterConditionValuesList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); - }); - }); - - describe(".getEvolutionChainsList() secure (with ssl)", function() { - before(function() { - promise = secureP.getEvolutionChainsList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); - }); - }); - - describe(".getEvolutionTriggersList() secure (with ssl)", function() { - before(function() { - promise = secureP.getEvolutionTriggersList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); - }); - }); - - describe(".getGenerationsList() secure (with ssl)", function() { - before(function() { - promise = secureP.getGenerationsList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); - }); - }); - - describe(".getPokedexsList() secure (with ssl)", function() { - before(function() { - promise = secureP.getPokedexsList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); - }); - }); - - describe(".getVersionsList() secure (with ssl)", function() { - before(function() { - promise = secureP.getVersionsList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); - }); - }); - - describe(".getVersionGroupsList() secure (with ssl)", function() { - before(function() { - promise = secureP.getVersionGroupsList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); - }); - }); - - describe(".getItemsList() secure (with ssl)", function() { - before(function() { - promise = secureP.getItemsList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); - }); - }); - - describe(".getItemAttributesList() secure (with ssl)", function() { - before(function() { - promise = secureP.getItemAttributesList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); - }); - }); - - describe(".getItemCategoriesList() secure (with ssl)", function() { - before(function() { - promise = secureP.getItemCategoriesList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); - }); - }); - - describe(".getItemFlingEffectsList() secure (with ssl)", function() { - before(function() { - promise = secureP.getItemFlingEffectsList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); - }); - }); - - describe(".getItemPocketsList() secure (with ssl)", function() { - before(function() { - promise = secureP.getItemPocketsList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); - }); - }); - - describe(".getMachinesList() secure (with ssl)", function() { - before(function() { - promise = secureP.getMachinesList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); - }); - }); - - describe(".getMovesList() secure (with ssl)", function() { - before(function() { - promise = secureP.getMovesList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); - }); - }); - - describe(".getMoveAilmentsList() secure (with ssl)", function() { - before(function() { - promise = secureP.getMoveAilmentsList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); - }); - }); - - describe(".getMoveBattleStylesList() secure (with ssl)", function() { - before(function() { - promise = secureP.getMoveBattleStylesList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); - }); - }); - - describe(".getMoveCategoriesList() secure (with ssl)", function() { - before(function() { - promise = secureP.getMoveCategoriesList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); - }); - }); - - describe(".getMoveDamageClassesList() secure (with ssl)", function() { - before(function() { - promise = secureP.getMoveDamageClassesList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); - }); - }); - - describe(".getMoveLearnMethodsList() secure (with ssl)", function() { - before(function() { - promise = secureP.getMoveLearnMethodsList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); - }); - }); - - describe(".getMoveTargetsList() secure (with ssl)", function() { - before(function() { - promise = secureP.getMoveTargetsList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); - }); - }); - - describe(".getLocationsList() secure (with ssl)", function() { - before(function() { - promise = secureP.getLocationsList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); - }); - }); - - describe(".getLocationAreasList() secure (with ssl)", function() { - before(function() { - promise = secureP.getLocationAreasList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); - }); - }); - - describe(".getPalParkAreasList() secure (with ssl)", function() { - before(function() { - promise = secureP.getPalParkAreasList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); - }); - }); - - describe(".getRegionsList() secure (with ssl)", function() { - before(function() { - promise = secureP.getRegionsList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); - }); - }); - - describe(".getAbilitiesList() secure (with ssl)", function() { - before(function() { - promise = secureP.getAbilitiesList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); - }); - }); - - describe(".getCharacteristicsList() secure (with ssl)", function() { - before(function() { - promise = secureP.getCharacteristicsList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); - }); - }); - - describe(".getEggGroupsList() secure (with ssl)", function() { - before(function() { - promise = secureP.getEggGroupsList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); - }); - }); - - describe(".getGendersList() secure (with ssl)", function() { - before(function() { - promise = secureP.getGendersList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); - }); - }); - - describe(".getGrowthRatesList() secure (with ssl)", function() { - before(function() { - promise = secureP.getGrowthRatesList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); - }); - }); - - describe(".getNaturesList() secure (with ssl)", function() { - before(function() { - promise = secureP.getNaturesList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); - }); - }); - - describe(".getPokeathlonStatsList() secure (with ssl)", function() { - before(function() { - promise = secureP.getPokeathlonStatsList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); + // p2 is now guaranteed to be initialized here + const config = p2.getConfig(); + assert.ok(Object.hasOwn(config, 'protocol'), "Config should have protocol"); }); }); - describe(".getPokemonsList() secure (with ssl)", function() { - before(function() { - promise = secureP.getPokemonsList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); - }); - }); - - describe(".getPokemonColorsList() secure (with ssl)", function() { - before(function() { - promise = secureP.getPokemonColorsList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); - }); - }); - - describe(".getPokemonFormsList() secure (with ssl)", function() { - before(function() { - promise = secureP.getPokemonFormsList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); + // --- List Methods --- + describe(".getPokemonsList()", function () { + it("should succeed with default interval", async function () { + const res = await p2.getPokemonsList(); + assert.ok(res.results, "Response should have results"); + assert.strictEqual(res.results.length, 1); }); }); - describe(".getPokemonHabitatsList() secure (with ssl)", function() { - before(function() { - promise = secureP.getPokemonHabitatsList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); + // --- Failure Cases --- + describe("Error Handling", function () { + it("should fail when getting a non-existent berry", async function () { + await assert.rejects( + p1.getBerryByName('non-existent-berry'), + Error + ); }); }); - - describe(".getPokemonShapesList() secure (with ssl)", function() { - before(function() { - promise = secureP.getPokemonShapesList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); - }); - }); - - describe(".getPokemonSpeciesList() secure (with ssl)", function() { - before(function() { - promise = secureP.getPokemonSpeciesList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); - }); - }); - - describe(".getStatsList() secure (with ssl)", function() { - before(function() { - promise = secureP.getStatsList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); - }); - }); - - describe(".getTypesList() secure (with ssl)", function() { - before(function() { - promise = secureP.getTypesList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); - }); - }); - - describe(".getLanguagesList() secure (with ssl)", function() { - before(function() { - promise = secureP.getLanguagesList(); - }); - it("should succeed", function() { - return promise; - }); - it("should have property count", function() { - return expect(promise).to.eventually.have.property("count"); - }); - }); - - // end root endpoints - - // start normals calls - - describe(".getBerryByName(Array: string)", function() { - before(function() { - promise = secureP.getBerryByName(['cheri', 'chesto', 'pecha']); - }); - it("should succeed", function() { - return promise; - }); - it("should have length 3", function() { - return expect(promise).to.eventually.have.length(3); - }); - it("berries should have property growth_time", function() { - return expect(promise).to.eventually.all.have.property('growth_time'); - }); - }); - - describe(".getBerryByName(Array: int)", function() { - before(function() { - promise = secureP.getBerryByName([1, 3, 5]); - }); - it("should succeed", function() { - return promise; - }); - it("should have length 3", function() { - return expect(promise).to.eventually.have.length(3); - }); - it("berries should have property growth_time", function() { - return expect(promise).to.eventually.all.have.property('growth_time'); - }); - }); - - describe(".getPokemonByName(Array: int)", function() { - before(function() { - promise = secureP.getPokemonByName([15, 35, 433, 444]); - }); - it("should succeed", function() { - return promise; - }); - it("should have length 4", function() { - return expect(promise).to.eventually.have.length(4); - }); - it("pokemons should have property height", function() { - return expect(promise).to.eventually.all.have.property('height'); - }); - }); - - describe(".getBerryByName(Id: int)", function() { - before(function() { - promise = secureP.getBerryByName(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property name", function() { - return expect(promise).to.eventually.have.property("name"); - }); - }); - - describe(".getBerryByName(Id: int) cached", function() { - before(function() { - promise = secureP.getBerryByName(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property name", function() { - return expect(promise).to.eventually.have.property("name"); - }); - }); - - describe(".getBerryFirmnessByName(Id: int)", function() { - before(function() { - promise = secureP.getBerryFirmnessByName(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property name", function() { - return expect(promise).to.eventually.have.property("name"); - }); - }); - - describe(".getBerryFlavorByName(Id: int)", function() { - before(function() { - promise = secureP.getBerryFlavorByName(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property name", function() { - return expect(promise).to.eventually.have.property("name"); - }); - }); - - describe(".getContestTypeByName(Id: int)", function() { - before(function() { - promise = secureP.getContestTypeByName(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property name", function() { - return expect(promise).to.eventually.have.property("name"); - }); - }); - - describe(".getContestEffectById(Id: int)", function() { - before(function() { - promise = secureP.getContestEffectById(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property id", function() { - return expect(promise).to.eventually.have.property("id"); - }); - }); - - describe(".getSuperContestEffectById(Id: int)", function() { - before(function() { - promise = secureP.getSuperContestEffectById(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property id", function() { - return expect(promise).to.eventually.have.property("id"); - }); - }); - - describe(".getEncounterMethodByName(Id: int)", function() { - before(function() { - promise = secureP.getEncounterMethodByName(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property name", function() { - return expect(promise).to.eventually.have.property("name"); - }); - }); - - describe(".getEncounterConditionByName(Id: int)", function() { - before(function() { - promise = secureP.getEncounterConditionByName(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property name", function() { - return expect(promise).to.eventually.have.property("name"); - }); - }); - - describe(".getEncounterConditionValueByName(Id: int)", function() { - before(function() { - promise = secureP.getEncounterConditionValueByName(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property name", function() { - return expect(promise).to.eventually.have.property("name"); - }); - }); - - describe(".getEvolutionChainById(Id: int)", function() { - before(function() { - promise = secureP.getEvolutionChainById(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property name", function() { - return expect(promise).to.eventually.have.property("id"); - }); - }); - - describe(".getEvolutionTriggerByName(Id: int)", function() { - before(function() { - promise = secureP.getEvolutionTriggerByName(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property name", function() { - return expect(promise).to.eventually.have.property("name"); - }); - }); - - describe(".getGenerationByName(Id: int)", function() { - before(function() { - promise = secureP.getGenerationByName(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property name", function() { - return expect(promise).to.eventually.have.property("name"); - }); - }); - - describe(".getPokedexByName(Id: int)", function() { - before(function() { - promise = secureP.getPokedexByName(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property name", function() { - return expect(promise).to.eventually.have.property("name"); - }); - }); - - describe(".getVersionByName(Id: int)", function() { - before(function() { - promise = secureP.getVersionByName(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property name", function() { - return expect(promise).to.eventually.have.property("name"); - }); - }); - - describe(".getVersionGroupByName(Id: int)", function() { - before(function() { - promise = secureP.getVersionGroupByName(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property name", function() { - return expect(promise).to.eventually.have.property("name"); - }); - }); - - describe(".getItemByName(Id: int)", function() { - before(function() { - promise = secureP.getItemByName(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property name", function() { - return expect(promise).to.eventually.have.property("name"); - }); - }); - - describe(".getItemAttributeByName(Id: int)", function() { - before(function() { - promise = secureP.getItemAttributeByName(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property name", function() { - return expect(promise).to.eventually.have.property("name"); - }); - }); - - describe(".getItemCategoryByName(Id: int)", function() { - before(function() { - promise = secureP.getItemCategoryByName(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property name", function() { - return expect(promise).to.eventually.have.property("name"); - }); - }); - - describe(".getItemFlingEffectByName(Id: int)", function() { - before(function() { - promise = secureP.getItemFlingEffectByName(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property name", function() { - return expect(promise).to.eventually.have.property("name"); - }); - }); - - describe(".getItemPocketByName(Id: int)", function() { - before(function() { - promise = secureP.getItemPocketByName(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property name", function() { - return expect(promise).to.eventually.have.property("name"); - }); - }); - - describe(".getMachineById(Id: int)", function() { - before(function() { - promise = secureP.getMachineById(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property id", function() { - return expect(promise).to.eventually.have.property("id"); - }); - }); - - describe(".getMoveByName(Id: int)", function() { - before(function() { - promise = secureP.getMoveByName(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property name", function() { - return expect(promise).to.eventually.have.property("name"); - }); - }); - - describe(".getMoveAilmentByName(Id: int)", function() { - before(function() { - promise = secureP.getMoveAilmentByName(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property name", function() { - return expect(promise).to.eventually.have.property("name"); - }); - }); - - describe(".getMoveBattleStyleByName(Id: int)", function() { - before(function() { - promise = secureP.getMoveBattleStyleByName(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property name", function() { - return expect(promise).to.eventually.have.property("name"); - }); - }); - - describe(".getMoveCategoryByName(Id: int)", function() { - before(function() { - promise = secureP.getMoveCategoryByName(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property name", function() { - return expect(promise).to.eventually.have.property("name"); - }); - }); - - describe(".getMoveDamageClassByName(Id: int)", function() { - before(function() { - promise = secureP.getMoveDamageClassByName(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property name", function() { - return expect(promise).to.eventually.have.property("name"); - }); - }); - - describe(".getMoveTargetByName(Id: int)", function() { - before(function() { - promise = secureP.getMoveTargetByName(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property name", function() { - return expect(promise).to.eventually.have.property("name"); - }); - }); - - describe(".getLocationByName(Id: int)", function() { - before(function() { - promise = secureP.getLocationByName(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property name", function() { - return expect(promise).to.eventually.have.property("name"); - }); - }); - - describe(".getLocationAreaByName(Id: int)", function() { - before(function() { - promise = secureP.getLocationAreaByName(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property name", function() { - return expect(promise).to.eventually.have.property("name"); - }); - }); - - describe(".getPalParkAreaByName(Id: int)", function() { - before(function() { - promise = secureP.getPalParkAreaByName(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property name", function() { - return expect(promise).to.eventually.have.property("name"); - }); - }); - - describe(".getRegionByName(Id: int)", function() { - before(function() { - promise = secureP.getRegionByName(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property name", function() { - return expect(promise).to.eventually.have.property("name"); - }); - }); - - describe(".getAbilityByName(Id: int)", function() { - before(function() { - promise = secureP.getAbilityByName(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property name", function() { - return expect(promise).to.eventually.have.property("name"); - }); - }); - - describe(".getCharacteristicById(Id: int)", function() { - before(function() { - promise = secureP.getCharacteristicById(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property name", function() { - return expect(promise).to.eventually.have.property("id"); - }); - }); - - describe(".getEggGroupByName(Id: int)", function() { - before(function() { - promise = secureP.getEggGroupByName(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property name", function() { - return expect(promise).to.eventually.have.property("name"); - }); - }); - - describe(".getGenderByName(Id: int)", function() { - before(function() { - promise = secureP.getGenderByName(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property name", function() { - return expect(promise).to.eventually.have.property("name"); - }); - }); - - describe(".getGrowthRateByName(Id: int)", function() { - before(function() { - promise = secureP.getGrowthRateByName(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property name", function() { - return expect(promise).to.eventually.have.property("name"); - }); - }); - - describe(".getNatureByName(Id: int)", function() { - before(function() { - promise = secureP.getNatureByName(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property name", function() { - return expect(promise).to.eventually.have.property("name"); - }); - }); - - describe(".getPokeathlonStatByName(Id: int)", function() { - before(function() { - promise = secureP.getPokeathlonStatByName(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property name", function() { - return expect(promise).to.eventually.have.property("name"); - }); - }); - - describe(".getPokemonByName(Id: int)", function() { - before(function() { - promise = secureP.getPokemonByName(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property name", function() { - return expect(promise).to.eventually.have.property("name"); - }); - }); - - describe(".getPokemonColorByName(Id: int)", function() { - before(function() { - promise = secureP.getPokemonColorByName(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property name", function() { - return expect(promise).to.eventually.have.property("name"); - }); - }); - - describe(".getPokemonFormByName(Id: int)", function() { - before(function() { - promise = secureP.getPokemonFormByName(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property name", function() { - return expect(promise).to.eventually.have.property("name"); - }); - }); - - describe(".getPokemonHabitatByName(Id: int)", function() { - before(function() { - promise = secureP.getPokemonHabitatByName(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property name", function() { - return expect(promise).to.eventually.have.property("name"); - }); - }); - - describe(".getPokemonShapeByName(Id: int)", function() { - before(function() { - promise = secureP.getPokemonShapeByName(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property name", function() { - return expect(promise).to.eventually.have.property("name"); - }); - }); - - describe(".getPokemonSpeciesByName(Id: int)", function() { - before(function() { - promise = secureP.getPokemonSpeciesByName(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property name", function() { - return expect(promise).to.eventually.have.property("name"); - }); - }); - - describe(".getStatByName(Id: int)", function() { - before(function() { - promise = secureP.getStatByName(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property name", function() { - return expect(promise).to.eventually.have.property("name"); - }); - }); - - describe(".getTypeByName(Id: int)", function() { - before(function() { - promise = secureP.getTypeByName(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property name", function() { - return expect(promise).to.eventually.have.property("name"); - }); - }); - - describe(".getLanguageByName(Id: int)", function() { - before(function() { - promise = secureP.getLanguageByName(id); - }); - it("should succeed", function() { - return promise; - }); - it("should have property name", function() { - return expect(promise).to.eventually.have.property("name"); - }); - }); - - describe(".getBerryByName(Name: string)", function() { - before(function() { - promise = secureP.getBerryByName('sfgfsgsfggsfg'); - }); - it("should fail", function() { - return expect(promise).rejected; - }); - }); - -}); +}); \ No newline at end of file diff --git a/webpack.config.js b/webpack.config.js deleted file mode 100644 index a65c85e..0000000 --- a/webpack.config.js +++ /dev/null @@ -1,33 +0,0 @@ -const path = require('path'); -const webpack = require('webpack'); -const CopyPlugin = require('copy-webpack-plugin'); - -module.exports = { - entry: './src/index.js', - target: 'web', - devtool: 'source-map', - output: { - path: path.resolve(__dirname, 'dist'), - filename: 'index.js', - libraryTarget: 'umd', - library: 'Pokedex', - globalObject: `(typeof self !== 'undefined' ? self : this)` - }, - mode: 'production', - plugins: [ - new CopyPlugin({ - patterns: [ - { - from: 'src/pokeapi-js-wrapper-sw.js', - to: 'pokeapi-js-wrapper-sw.js', - toType: 'file' - }, - { - from: 'src/pokeapi-js-wrapper-sw.js', - to: '../test/pokeapi-js-wrapper-sw.js', - toType: 'file' - } - ] - }) - ] -};