├── .github
└── FUNDING.yml
├── .gitignore
├── LICENSE
├── README.md
├── index.js
├── package-lock.json
├── package.json
├── public
├── Docs.html
├── FreeQuotesAPI.html
├── css
│ ├── bootstrap.min.css
│ ├── docs.css
│ └── style.css
└── js
│ ├── jquery.js
│ ├── popper.min.js
│ └── script.js
├── quotes.js
└── vercel.json
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | github: theriturajps
2 | buy_me_a_coffee: riturajps
3 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 | lerna-debug.log*
8 | .pnpm-debug.log*
9 |
10 | # Diagnostic reports (https://nodejs.org/api/report.html)
11 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
12 |
13 | # Runtime data
14 | pids
15 | *.pid
16 | *.seed
17 | *.pid.lock
18 |
19 | # Directory for instrumented libs generated by jscoverage/JSCover
20 | lib-cov
21 |
22 | # Coverage directory used by tools like istanbul
23 | coverage
24 | *.lcov
25 |
26 | # nyc test coverage
27 | .nyc_output
28 |
29 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
30 | .grunt
31 |
32 | # Bower dependency directory (https://bower.io/)
33 | bower_components
34 |
35 | # node-waf configuration
36 | .lock-wscript
37 |
38 | # Compiled binary addons (https://nodejs.org/api/addons.html)
39 | build/Release
40 |
41 | # Dependency directories
42 | node_modules/
43 | jspm_packages/
44 |
45 | # Snowpack dependency directory (https://snowpack.dev/)
46 | web_modules/
47 |
48 | # TypeScript cache
49 | *.tsbuildinfo
50 |
51 | # Optional npm cache directory
52 | .npm
53 |
54 | # Optional eslint cache
55 | .eslintcache
56 |
57 | # Optional stylelint cache
58 | .stylelintcache
59 |
60 | # Microbundle cache
61 | .rpt2_cache/
62 | .rts2_cache_cjs/
63 | .rts2_cache_es/
64 | .rts2_cache_umd/
65 |
66 | # Optional REPL history
67 | .node_repl_history
68 |
69 | # Output of 'npm pack'
70 | *.tgz
71 |
72 | # Yarn Integrity file
73 | .yarn-integrity
74 |
75 | # dotenv environment variable files
76 | .env
77 | .env.development.local
78 | .env.test.local
79 | .env.production.local
80 | .env.local
81 |
82 | # parcel-bundler cache (https://parceljs.org/)
83 | .cache
84 | .parcel-cache
85 |
86 | # Next.js build output
87 | .next
88 | out
89 |
90 | # Nuxt.js build / generate output
91 | .nuxt
92 | dist
93 |
94 | # Gatsby files
95 | .cache/
96 | # Comment in the public line in if your project uses Gatsby and not Next.js
97 | # https://nextjs.org/blog/next-9-1#public-directory-support
98 | # public
99 |
100 | # vuepress build output
101 | .vuepress/dist
102 |
103 | # vuepress v2.x temp and cache directory
104 | .temp
105 | .cache
106 |
107 | # Docusaurus cache and generated files
108 | .docusaurus
109 |
110 | # Serverless directories
111 | .serverless/
112 |
113 | # FuseBox cache
114 | .fusebox/
115 |
116 | # DynamoDB Local files
117 | .dynamodb/
118 |
119 | # TernJS port file
120 | .tern-port
121 |
122 | # Stores VSCode versions used for testing VSCode extensions
123 | .vscode-test
124 |
125 | # yarn v2
126 | .yarn/cache
127 | .yarn/unplugged
128 | .yarn/build-state.yml
129 | .yarn/install-state.gz
130 | .pnp.*
131 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2024 Ritu Raj Pratap Singh (github.com/theriturajps)
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Quotes API
2 |
3 |  
4 |
5 | Welcome to the Quotes API! Access a vast collection of motivational quotes designed to enhance your applications. This free and open API is easy to integrate into your projects, helping you inspire and motivate your users effectively.
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | ## Technologies Used
14 |
15 | - **Language**: JavaScript
16 | - **Backend**: Express.js
17 | - **Hosting**: Vercel
18 |
19 | ## Getting Started
20 |
21 | To get started with the API, you can make requests to the following endpoints to get quotes:
22 |
23 | ### Get a Random Quote
24 |
25 | ```
26 | GET https://qapi.vercel.app/api/random
27 | ```
28 |
29 | This will return a JSON response with a random quote and its author.
30 |
31 | ### Get All Quotes
32 |
33 | ```
34 | GET https://qapi.vercel.app/api/quotes
35 | ```
36 |
37 | This will return a JSON response with all quotes in the collection.
38 |
39 | ### Get Quote by ID
40 |
41 | ```
42 | GET https://qapi.vercel.app/api/quotes/{id}
43 | ```
44 |
45 | Replace `{id}` with the specific ID of the quote you want to fetch. This will return a JSON response with the quote and its author.
46 |
47 | ## Example Responses
48 |
49 | ### Random Quote
50 |
51 | ```json
52 | {
53 | "id" : 1,
54 | "quote": "Success is not the key to happiness. Happiness is the key to success. If you love what you are doing, you will be successful.",
55 | "author": "Albert Schweitzer"
56 | }
57 | ```
58 |
59 | ### All Quotes
60 |
61 | ```json
62 | [
63 | {
64 | "id": 1,
65 | "quote": "The best way to get started is to quit talking and begin doing.",
66 | "author": "Walt Disney"
67 | },
68 | {
69 | "id": 2,
70 | "quote": "The pessimist sees difficulty in every opportunity. The optimist sees opportunity in every difficulty.",
71 | "author": "Winston Churchill"
72 | },
73 | {
74 | "id": 3,
75 | "quote": "Don’t let yesterday take up too much of today.",
76 | "author": "Will Rogers"
77 | }
78 | ]
79 | ```
80 |
81 | ### Quote by ID
82 |
83 | ```json
84 | {
85 | "id": 1,
86 | "quote": "The best way to get started is to quit talking and begin doing.",
87 | "author": "Walt Disney"
88 | }
89 | ```
90 |
91 | ## Rate Limiting
92 | - **Window Duration**: 15 minutes
93 | - **Maximum Requests**: 200 requests per IP within the window duration
94 | - **Response on Limit Exceed**: A 429 Too Many Requests status code with the following JSON response
95 |
96 | ```json
97 | {
98 | "message": "Too many requests from this IP, please try again after 15 minutes"
99 | }
100 | ```
101 |
102 | ## Usage
103 |
104 | You can use the API to display quotes on your website or application to motivate your users. Here are some examples of how you can use the API with JavaScript:
105 |
106 | ### Get Random Quote
107 |
108 | ```javascript
109 | fetch('https://qapi.vercel.app/api/random')
110 | .then(response => response.json())
111 | .then(data => {
112 | console.log(data.quote);
113 | console.log("- " + data.author);
114 | });
115 | ```
116 |
117 | ### Get All Quotes
118 |
119 | ```javascript
120 | fetch('https://qapi.vercel.app/api/quotes')
121 | .then(response => response.json())
122 | .then(data => {
123 | data.forEach(quote => {
124 | console.log(quote.quote);
125 | console.log("- " + quote.author);
126 | });
127 | });
128 | ```
129 |
130 | ### Get Quote by ID
131 |
132 | ```javascript
133 | const quoteId = 1; // Example ID
134 | fetch(`https://qapi.vercel.app/api/quotes/${quoteId}`)
135 | .then(response => response.json())
136 | .then(data => {
137 | console.log(data.quote);
138 | console.log("- " + data.author);
139 | });
140 | ```
141 |
142 | ## Installation
143 |
144 | 1. Clone this repository:
145 | ```
146 | git clone https://github.com/theriturajps/quotes-api.git
147 | ```
148 | 2. Go inside Folder
149 | ```
150 | cd quotes-api
151 | ```
152 | 3. Install the dependencies:
153 | ```
154 | npm install
155 | ```
156 | 3.Start the server:
157 | ```
158 | npm start
159 | ```
160 |
161 | ## License
162 |
163 | This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
164 |
165 | ## More Details
166 |
167 |   
168 |
169 |
170 | - **Developer :-** @theriturajps
171 | - **Fork :-** [Fork this Repo](https://github.com/theriturajps/Quotes-API/fork)
172 |
--------------------------------------------------------------------------------
/index.js:
--------------------------------------------------------------------------------
1 | const express = require('express');
2 | const rateLimit = require('express-rate-limit');
3 | const path = require('path');
4 | const quotes = require('./quotes');
5 | const app = express();
6 | const PORT = process.env.PORT || 3000;
7 |
8 | const limiter = rateLimit({
9 | windowMs: 15 * 60 * 1000, // 15 minutes
10 | max: 200, // Limit each IP to 100 requests per windowMs
11 | handler: (req, res) => {
12 | res.status(429).json({
13 | message: 'Too many requests from this IP, please try again after 15 minutes'
14 | });
15 | }
16 | });
17 | app.use(limiter);
18 |
19 | app.use(express.static(path.join(__dirname, 'public')));
20 |
21 | app.use((req, res, next) => {
22 | res.setHeader('Access-Control-Allow-Origin', '*');
23 | next();
24 | });
25 |
26 | app.get("/", (req, res) => {
27 | res.sendFile(path.join(__dirname, 'public', 'FreeQuotesAPI.html'));
28 | });
29 |
30 | app.get("/docs", (req, res) => {
31 | res.sendFile(path.join(__dirname, 'public', 'Docs.html'));
32 | });
33 |
34 | app.get("/api/quotes", (req, res) => {
35 | res.status(200).json(quotes);
36 | })
37 |
38 | app.get("/api/random", (req, res) => {
39 | var randomIndex = Math.floor(Math.random() * quotes.length);
40 | var randomQuote = quotes[randomIndex];
41 | res.status(200).json(randomQuote);
42 | });
43 |
44 | app.get('/api/quotes/:id', (req, res) => {
45 | const id = parseInt(req.params.id);
46 | const quote = quotes.find(q => q.id === id);
47 |
48 | if (quote) {
49 | res.status(200).json(quote);
50 | } else {
51 | res.status(404).send({ message: 'Quote not found please try again with different id :-(' });
52 | }
53 | });
54 |
55 | app.listen(PORT, () => {
56 | console.log(`Server is running on port ${PORT}`);
57 | });
58 |
--------------------------------------------------------------------------------
/package-lock.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "quotes-api",
3 | "version": "1.0.0",
4 | "lockfileVersion": 3,
5 | "requires": true,
6 | "packages": {
7 | "": {
8 | "name": "quotes-api",
9 | "version": "1.0.0",
10 | "license": "ISC",
11 | "dependencies": {
12 | "express": "^4.19.2",
13 | "express-rate-limit": "^7.3.1"
14 | }
15 | },
16 | "node_modules/accepts": {
17 | "version": "1.3.8",
18 | "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
19 | "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==",
20 | "dependencies": {
21 | "mime-types": "~2.1.34",
22 | "negotiator": "0.6.3"
23 | },
24 | "engines": {
25 | "node": ">= 0.6"
26 | }
27 | },
28 | "node_modules/array-flatten": {
29 | "version": "1.1.1",
30 | "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
31 | "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg=="
32 | },
33 | "node_modules/body-parser": {
34 | "version": "1.20.3",
35 | "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.3.tgz",
36 | "integrity": "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==",
37 | "license": "MIT",
38 | "dependencies": {
39 | "bytes": "3.1.2",
40 | "content-type": "~1.0.5",
41 | "debug": "2.6.9",
42 | "depd": "2.0.0",
43 | "destroy": "1.2.0",
44 | "http-errors": "2.0.0",
45 | "iconv-lite": "0.4.24",
46 | "on-finished": "2.4.1",
47 | "qs": "6.13.0",
48 | "raw-body": "2.5.2",
49 | "type-is": "~1.6.18",
50 | "unpipe": "1.0.0"
51 | },
52 | "engines": {
53 | "node": ">= 0.8",
54 | "npm": "1.2.8000 || >= 1.4.16"
55 | }
56 | },
57 | "node_modules/bytes": {
58 | "version": "3.1.2",
59 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
60 | "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
61 | "license": "MIT",
62 | "engines": {
63 | "node": ">= 0.8"
64 | }
65 | },
66 | "node_modules/call-bind": {
67 | "version": "1.0.7",
68 | "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz",
69 | "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==",
70 | "license": "MIT",
71 | "dependencies": {
72 | "es-define-property": "^1.0.0",
73 | "es-errors": "^1.3.0",
74 | "function-bind": "^1.1.2",
75 | "get-intrinsic": "^1.2.4",
76 | "set-function-length": "^1.2.1"
77 | },
78 | "engines": {
79 | "node": ">= 0.4"
80 | },
81 | "funding": {
82 | "url": "https://github.com/sponsors/ljharb"
83 | }
84 | },
85 | "node_modules/content-disposition": {
86 | "version": "0.5.4",
87 | "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",
88 | "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==",
89 | "dependencies": {
90 | "safe-buffer": "5.2.1"
91 | },
92 | "engines": {
93 | "node": ">= 0.6"
94 | }
95 | },
96 | "node_modules/content-type": {
97 | "version": "1.0.5",
98 | "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",
99 | "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",
100 | "license": "MIT",
101 | "engines": {
102 | "node": ">= 0.6"
103 | }
104 | },
105 | "node_modules/cookie": {
106 | "version": "0.7.1",
107 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz",
108 | "integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==",
109 | "license": "MIT",
110 | "engines": {
111 | "node": ">= 0.6"
112 | }
113 | },
114 | "node_modules/cookie-signature": {
115 | "version": "1.0.6",
116 | "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
117 | "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ=="
118 | },
119 | "node_modules/debug": {
120 | "version": "2.6.9",
121 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
122 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
123 | "license": "MIT",
124 | "dependencies": {
125 | "ms": "2.0.0"
126 | }
127 | },
128 | "node_modules/define-data-property": {
129 | "version": "1.1.4",
130 | "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz",
131 | "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==",
132 | "license": "MIT",
133 | "dependencies": {
134 | "es-define-property": "^1.0.0",
135 | "es-errors": "^1.3.0",
136 | "gopd": "^1.0.1"
137 | },
138 | "engines": {
139 | "node": ">= 0.4"
140 | },
141 | "funding": {
142 | "url": "https://github.com/sponsors/ljharb"
143 | }
144 | },
145 | "node_modules/depd": {
146 | "version": "2.0.0",
147 | "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
148 | "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
149 | "license": "MIT",
150 | "engines": {
151 | "node": ">= 0.8"
152 | }
153 | },
154 | "node_modules/destroy": {
155 | "version": "1.2.0",
156 | "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz",
157 | "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==",
158 | "license": "MIT",
159 | "engines": {
160 | "node": ">= 0.8",
161 | "npm": "1.2.8000 || >= 1.4.16"
162 | }
163 | },
164 | "node_modules/ee-first": {
165 | "version": "1.1.1",
166 | "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
167 | "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==",
168 | "license": "MIT"
169 | },
170 | "node_modules/encodeurl": {
171 | "version": "2.0.0",
172 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz",
173 | "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==",
174 | "license": "MIT",
175 | "engines": {
176 | "node": ">= 0.8"
177 | }
178 | },
179 | "node_modules/es-define-property": {
180 | "version": "1.0.0",
181 | "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz",
182 | "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==",
183 | "license": "MIT",
184 | "dependencies": {
185 | "get-intrinsic": "^1.2.4"
186 | },
187 | "engines": {
188 | "node": ">= 0.4"
189 | }
190 | },
191 | "node_modules/es-errors": {
192 | "version": "1.3.0",
193 | "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
194 | "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
195 | "license": "MIT",
196 | "engines": {
197 | "node": ">= 0.4"
198 | }
199 | },
200 | "node_modules/escape-html": {
201 | "version": "1.0.3",
202 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
203 | "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==",
204 | "license": "MIT"
205 | },
206 | "node_modules/etag": {
207 | "version": "1.8.1",
208 | "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
209 | "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",
210 | "license": "MIT",
211 | "engines": {
212 | "node": ">= 0.6"
213 | }
214 | },
215 | "node_modules/express": {
216 | "version": "4.21.1",
217 | "resolved": "https://registry.npmjs.org/express/-/express-4.21.1.tgz",
218 | "integrity": "sha512-YSFlK1Ee0/GC8QaO91tHcDxJiE/X4FbpAyQWkxAvG6AXCuR65YzK8ua6D9hvi/TzUfZMpc+BwuM1IPw8fmQBiQ==",
219 | "license": "MIT",
220 | "dependencies": {
221 | "accepts": "~1.3.8",
222 | "array-flatten": "1.1.1",
223 | "body-parser": "1.20.3",
224 | "content-disposition": "0.5.4",
225 | "content-type": "~1.0.4",
226 | "cookie": "0.7.1",
227 | "cookie-signature": "1.0.6",
228 | "debug": "2.6.9",
229 | "depd": "2.0.0",
230 | "encodeurl": "~2.0.0",
231 | "escape-html": "~1.0.3",
232 | "etag": "~1.8.1",
233 | "finalhandler": "1.3.1",
234 | "fresh": "0.5.2",
235 | "http-errors": "2.0.0",
236 | "merge-descriptors": "1.0.3",
237 | "methods": "~1.1.2",
238 | "on-finished": "2.4.1",
239 | "parseurl": "~1.3.3",
240 | "path-to-regexp": "0.1.10",
241 | "proxy-addr": "~2.0.7",
242 | "qs": "6.13.0",
243 | "range-parser": "~1.2.1",
244 | "safe-buffer": "5.2.1",
245 | "send": "0.19.0",
246 | "serve-static": "1.16.2",
247 | "setprototypeof": "1.2.0",
248 | "statuses": "2.0.1",
249 | "type-is": "~1.6.18",
250 | "utils-merge": "1.0.1",
251 | "vary": "~1.1.2"
252 | },
253 | "engines": {
254 | "node": ">= 0.10.0"
255 | }
256 | },
257 | "node_modules/express-rate-limit": {
258 | "version": "7.3.1",
259 | "resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-7.3.1.tgz",
260 | "integrity": "sha512-BbaryvkY4wEgDqLgD18/NSy2lDO2jTuT9Y8c1Mpx0X63Yz0sYd5zN6KPe7UvpuSVvV33T6RaE1o1IVZQjHMYgw==",
261 | "engines": {
262 | "node": ">= 16"
263 | },
264 | "funding": {
265 | "url": "https://github.com/sponsors/express-rate-limit"
266 | },
267 | "peerDependencies": {
268 | "express": "4 || 5 || ^5.0.0-beta.1"
269 | }
270 | },
271 | "node_modules/finalhandler": {
272 | "version": "1.3.1",
273 | "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.1.tgz",
274 | "integrity": "sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==",
275 | "license": "MIT",
276 | "dependencies": {
277 | "debug": "2.6.9",
278 | "encodeurl": "~2.0.0",
279 | "escape-html": "~1.0.3",
280 | "on-finished": "2.4.1",
281 | "parseurl": "~1.3.3",
282 | "statuses": "2.0.1",
283 | "unpipe": "~1.0.0"
284 | },
285 | "engines": {
286 | "node": ">= 0.8"
287 | }
288 | },
289 | "node_modules/forwarded": {
290 | "version": "0.2.0",
291 | "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
292 | "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",
293 | "engines": {
294 | "node": ">= 0.6"
295 | }
296 | },
297 | "node_modules/fresh": {
298 | "version": "0.5.2",
299 | "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
300 | "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==",
301 | "license": "MIT",
302 | "engines": {
303 | "node": ">= 0.6"
304 | }
305 | },
306 | "node_modules/function-bind": {
307 | "version": "1.1.2",
308 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
309 | "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
310 | "license": "MIT",
311 | "funding": {
312 | "url": "https://github.com/sponsors/ljharb"
313 | }
314 | },
315 | "node_modules/get-intrinsic": {
316 | "version": "1.2.4",
317 | "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz",
318 | "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==",
319 | "license": "MIT",
320 | "dependencies": {
321 | "es-errors": "^1.3.0",
322 | "function-bind": "^1.1.2",
323 | "has-proto": "^1.0.1",
324 | "has-symbols": "^1.0.3",
325 | "hasown": "^2.0.0"
326 | },
327 | "engines": {
328 | "node": ">= 0.4"
329 | },
330 | "funding": {
331 | "url": "https://github.com/sponsors/ljharb"
332 | }
333 | },
334 | "node_modules/gopd": {
335 | "version": "1.0.1",
336 | "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz",
337 | "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==",
338 | "license": "MIT",
339 | "dependencies": {
340 | "get-intrinsic": "^1.1.3"
341 | },
342 | "funding": {
343 | "url": "https://github.com/sponsors/ljharb"
344 | }
345 | },
346 | "node_modules/has-property-descriptors": {
347 | "version": "1.0.2",
348 | "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz",
349 | "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==",
350 | "license": "MIT",
351 | "dependencies": {
352 | "es-define-property": "^1.0.0"
353 | },
354 | "funding": {
355 | "url": "https://github.com/sponsors/ljharb"
356 | }
357 | },
358 | "node_modules/has-proto": {
359 | "version": "1.0.3",
360 | "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz",
361 | "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==",
362 | "license": "MIT",
363 | "engines": {
364 | "node": ">= 0.4"
365 | },
366 | "funding": {
367 | "url": "https://github.com/sponsors/ljharb"
368 | }
369 | },
370 | "node_modules/has-symbols": {
371 | "version": "1.0.3",
372 | "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz",
373 | "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==",
374 | "license": "MIT",
375 | "engines": {
376 | "node": ">= 0.4"
377 | },
378 | "funding": {
379 | "url": "https://github.com/sponsors/ljharb"
380 | }
381 | },
382 | "node_modules/hasown": {
383 | "version": "2.0.2",
384 | "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
385 | "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
386 | "license": "MIT",
387 | "dependencies": {
388 | "function-bind": "^1.1.2"
389 | },
390 | "engines": {
391 | "node": ">= 0.4"
392 | }
393 | },
394 | "node_modules/http-errors": {
395 | "version": "2.0.0",
396 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz",
397 | "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==",
398 | "license": "MIT",
399 | "dependencies": {
400 | "depd": "2.0.0",
401 | "inherits": "2.0.4",
402 | "setprototypeof": "1.2.0",
403 | "statuses": "2.0.1",
404 | "toidentifier": "1.0.1"
405 | },
406 | "engines": {
407 | "node": ">= 0.8"
408 | }
409 | },
410 | "node_modules/iconv-lite": {
411 | "version": "0.4.24",
412 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
413 | "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
414 | "license": "MIT",
415 | "dependencies": {
416 | "safer-buffer": ">= 2.1.2 < 3"
417 | },
418 | "engines": {
419 | "node": ">=0.10.0"
420 | }
421 | },
422 | "node_modules/inherits": {
423 | "version": "2.0.4",
424 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
425 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
426 | "license": "ISC"
427 | },
428 | "node_modules/ipaddr.js": {
429 | "version": "1.9.1",
430 | "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
431 | "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",
432 | "engines": {
433 | "node": ">= 0.10"
434 | }
435 | },
436 | "node_modules/media-typer": {
437 | "version": "0.3.0",
438 | "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
439 | "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==",
440 | "license": "MIT",
441 | "engines": {
442 | "node": ">= 0.6"
443 | }
444 | },
445 | "node_modules/merge-descriptors": {
446 | "version": "1.0.3",
447 | "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz",
448 | "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==",
449 | "license": "MIT",
450 | "funding": {
451 | "url": "https://github.com/sponsors/sindresorhus"
452 | }
453 | },
454 | "node_modules/methods": {
455 | "version": "1.1.2",
456 | "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
457 | "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==",
458 | "engines": {
459 | "node": ">= 0.6"
460 | }
461 | },
462 | "node_modules/mime": {
463 | "version": "1.6.0",
464 | "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
465 | "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",
466 | "license": "MIT",
467 | "bin": {
468 | "mime": "cli.js"
469 | },
470 | "engines": {
471 | "node": ">=4"
472 | }
473 | },
474 | "node_modules/mime-db": {
475 | "version": "1.52.0",
476 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
477 | "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
478 | "engines": {
479 | "node": ">= 0.6"
480 | }
481 | },
482 | "node_modules/mime-types": {
483 | "version": "2.1.35",
484 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
485 | "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
486 | "dependencies": {
487 | "mime-db": "1.52.0"
488 | },
489 | "engines": {
490 | "node": ">= 0.6"
491 | }
492 | },
493 | "node_modules/ms": {
494 | "version": "2.0.0",
495 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
496 | "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
497 | "license": "MIT"
498 | },
499 | "node_modules/negotiator": {
500 | "version": "0.6.3",
501 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",
502 | "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==",
503 | "engines": {
504 | "node": ">= 0.6"
505 | }
506 | },
507 | "node_modules/object-inspect": {
508 | "version": "1.13.2",
509 | "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.2.tgz",
510 | "integrity": "sha512-IRZSRuzJiynemAXPYtPe5BoI/RESNYR7TYm50MC5Mqbd3Jmw5y790sErYw3V6SryFJD64b74qQQs9wn5Bg/k3g==",
511 | "license": "MIT",
512 | "engines": {
513 | "node": ">= 0.4"
514 | },
515 | "funding": {
516 | "url": "https://github.com/sponsors/ljharb"
517 | }
518 | },
519 | "node_modules/on-finished": {
520 | "version": "2.4.1",
521 | "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",
522 | "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",
523 | "license": "MIT",
524 | "dependencies": {
525 | "ee-first": "1.1.1"
526 | },
527 | "engines": {
528 | "node": ">= 0.8"
529 | }
530 | },
531 | "node_modules/parseurl": {
532 | "version": "1.3.3",
533 | "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
534 | "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
535 | "license": "MIT",
536 | "engines": {
537 | "node": ">= 0.8"
538 | }
539 | },
540 | "node_modules/path-to-regexp": {
541 | "version": "0.1.10",
542 | "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.10.tgz",
543 | "integrity": "sha512-7lf7qcQidTku0Gu3YDPc8DJ1q7OOucfa/BSsIwjuh56VU7katFvuM8hULfkwB3Fns/rsVF7PwPKVw1sl5KQS9w==",
544 | "license": "MIT"
545 | },
546 | "node_modules/proxy-addr": {
547 | "version": "2.0.7",
548 | "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",
549 | "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",
550 | "dependencies": {
551 | "forwarded": "0.2.0",
552 | "ipaddr.js": "1.9.1"
553 | },
554 | "engines": {
555 | "node": ">= 0.10"
556 | }
557 | },
558 | "node_modules/qs": {
559 | "version": "6.13.0",
560 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz",
561 | "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==",
562 | "license": "BSD-3-Clause",
563 | "dependencies": {
564 | "side-channel": "^1.0.6"
565 | },
566 | "engines": {
567 | "node": ">=0.6"
568 | },
569 | "funding": {
570 | "url": "https://github.com/sponsors/ljharb"
571 | }
572 | },
573 | "node_modules/range-parser": {
574 | "version": "1.2.1",
575 | "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
576 | "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",
577 | "license": "MIT",
578 | "engines": {
579 | "node": ">= 0.6"
580 | }
581 | },
582 | "node_modules/raw-body": {
583 | "version": "2.5.2",
584 | "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz",
585 | "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==",
586 | "license": "MIT",
587 | "dependencies": {
588 | "bytes": "3.1.2",
589 | "http-errors": "2.0.0",
590 | "iconv-lite": "0.4.24",
591 | "unpipe": "1.0.0"
592 | },
593 | "engines": {
594 | "node": ">= 0.8"
595 | }
596 | },
597 | "node_modules/safe-buffer": {
598 | "version": "5.2.1",
599 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
600 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
601 | "funding": [
602 | {
603 | "type": "github",
604 | "url": "https://github.com/sponsors/feross"
605 | },
606 | {
607 | "type": "patreon",
608 | "url": "https://www.patreon.com/feross"
609 | },
610 | {
611 | "type": "consulting",
612 | "url": "https://feross.org/support"
613 | }
614 | ]
615 | },
616 | "node_modules/safer-buffer": {
617 | "version": "2.1.2",
618 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
619 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
620 | "license": "MIT"
621 | },
622 | "node_modules/send": {
623 | "version": "0.19.0",
624 | "resolved": "https://registry.npmjs.org/send/-/send-0.19.0.tgz",
625 | "integrity": "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==",
626 | "license": "MIT",
627 | "dependencies": {
628 | "debug": "2.6.9",
629 | "depd": "2.0.0",
630 | "destroy": "1.2.0",
631 | "encodeurl": "~1.0.2",
632 | "escape-html": "~1.0.3",
633 | "etag": "~1.8.1",
634 | "fresh": "0.5.2",
635 | "http-errors": "2.0.0",
636 | "mime": "1.6.0",
637 | "ms": "2.1.3",
638 | "on-finished": "2.4.1",
639 | "range-parser": "~1.2.1",
640 | "statuses": "2.0.1"
641 | },
642 | "engines": {
643 | "node": ">= 0.8.0"
644 | }
645 | },
646 | "node_modules/send/node_modules/encodeurl": {
647 | "version": "1.0.2",
648 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
649 | "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==",
650 | "license": "MIT",
651 | "engines": {
652 | "node": ">= 0.8"
653 | }
654 | },
655 | "node_modules/send/node_modules/ms": {
656 | "version": "2.1.3",
657 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
658 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
659 | "license": "MIT"
660 | },
661 | "node_modules/serve-static": {
662 | "version": "1.16.2",
663 | "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.2.tgz",
664 | "integrity": "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==",
665 | "license": "MIT",
666 | "dependencies": {
667 | "encodeurl": "~2.0.0",
668 | "escape-html": "~1.0.3",
669 | "parseurl": "~1.3.3",
670 | "send": "0.19.0"
671 | },
672 | "engines": {
673 | "node": ">= 0.8.0"
674 | }
675 | },
676 | "node_modules/set-function-length": {
677 | "version": "1.2.2",
678 | "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz",
679 | "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==",
680 | "license": "MIT",
681 | "dependencies": {
682 | "define-data-property": "^1.1.4",
683 | "es-errors": "^1.3.0",
684 | "function-bind": "^1.1.2",
685 | "get-intrinsic": "^1.2.4",
686 | "gopd": "^1.0.1",
687 | "has-property-descriptors": "^1.0.2"
688 | },
689 | "engines": {
690 | "node": ">= 0.4"
691 | }
692 | },
693 | "node_modules/setprototypeof": {
694 | "version": "1.2.0",
695 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
696 | "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==",
697 | "license": "ISC"
698 | },
699 | "node_modules/side-channel": {
700 | "version": "1.0.6",
701 | "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz",
702 | "integrity": "sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==",
703 | "license": "MIT",
704 | "dependencies": {
705 | "call-bind": "^1.0.7",
706 | "es-errors": "^1.3.0",
707 | "get-intrinsic": "^1.2.4",
708 | "object-inspect": "^1.13.1"
709 | },
710 | "engines": {
711 | "node": ">= 0.4"
712 | },
713 | "funding": {
714 | "url": "https://github.com/sponsors/ljharb"
715 | }
716 | },
717 | "node_modules/statuses": {
718 | "version": "2.0.1",
719 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz",
720 | "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==",
721 | "license": "MIT",
722 | "engines": {
723 | "node": ">= 0.8"
724 | }
725 | },
726 | "node_modules/toidentifier": {
727 | "version": "1.0.1",
728 | "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
729 | "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",
730 | "license": "MIT",
731 | "engines": {
732 | "node": ">=0.6"
733 | }
734 | },
735 | "node_modules/type-is": {
736 | "version": "1.6.18",
737 | "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
738 | "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==",
739 | "license": "MIT",
740 | "dependencies": {
741 | "media-typer": "0.3.0",
742 | "mime-types": "~2.1.24"
743 | },
744 | "engines": {
745 | "node": ">= 0.6"
746 | }
747 | },
748 | "node_modules/unpipe": {
749 | "version": "1.0.0",
750 | "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
751 | "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",
752 | "license": "MIT",
753 | "engines": {
754 | "node": ">= 0.8"
755 | }
756 | },
757 | "node_modules/utils-merge": {
758 | "version": "1.0.1",
759 | "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
760 | "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==",
761 | "engines": {
762 | "node": ">= 0.4.0"
763 | }
764 | },
765 | "node_modules/vary": {
766 | "version": "1.1.2",
767 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
768 | "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
769 | "engines": {
770 | "node": ">= 0.8"
771 | }
772 | }
773 | }
774 | }
775 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "quotes-api",
3 | "version": "1.0.0",
4 | "main": "index.js",
5 | "scripts": {
6 | "start": "node index.js",
7 | "test": "echo \"Error: no test specified\" && exit 1"
8 | },
9 | "keywords": [],
10 | "author": "",
11 | "license": "ISC",
12 | "dependencies": {
13 | "express": "^4.19.2",
14 | "express-rate-limit": "^7.3.1"
15 | },
16 | "description": ""
17 | }
18 |
--------------------------------------------------------------------------------
/public/Docs.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | Free Quotes API - Docs
15 |
16 |
17 |
18 |
27 |
28 |
29 |
30 |
58 |
59 |
60 |
61 | API Documentation
62 |
63 | Getting Started
64 | This Free Quotes API is designed to help you easily integrate inspirational, motivational free quotes into your applications.
65 |
66 | API Endpoints
67 |
68 |
69 |
70 | Endpoint
71 | Method
72 | URL
73 |
74 |
75 |
76 |
77 | All Quotes
78 | GET
79 | /api/quotes
80 |
81 |
82 | Random Quote
83 | GET
84 | /api/random
85 |
86 |
87 | Quote by ID
88 | GET
89 | /api/quotes/1
90 |
91 |
92 |
93 |
94 | Example Responses
95 |
96 |
97 |
Random Quote - /api/random
98 |
{
99 | "id" : 1,
100 | "quote": "Success is not the key to happiness. Happiness is the key to success. If you love what you are doing, you will be successful.",
101 | "author": "Albert Schweitzer"
102 | }
103 |
104 |
105 |
106 |
All Quotes - /api/quotes
107 |
[
108 | {
109 | "id": 1,
110 | "quote": "The best way to get started is to quit talking and begin doing.",
111 | "author": "Walt Disney"
112 | },
113 | {
114 | "id": 2,
115 | "quote": "The pessimist sees difficulty in every opportunity. The optimist sees opportunity in every difficulty.",
116 | "author": "Winston Churchill"
117 | },
118 | {
119 | "id": 3,
120 | "quote": "Don’t let yesterday take up too much of today.",
121 | "author": "Will Rogers"
122 | }
123 | ]
124 |
125 |
126 |
127 |
Quote by ID - /api/quotes/1
128 |
{
129 | "id": 1,
130 | "quote": "The best way to get started is to quit talking and begin doing.",
131 | "author": "Walt Disney"
132 | }
133 |
134 |
135 |
136 | Rate Limiting
137 |
138 | Window Duration: 15 minutes
139 | Maximum Requests: 200 requests per IP within the window duration
140 |
141 | Response on Limit Exceed:
142 |
143 |
{
144 | "message": "Too many requests from this IP, please try again after 15 minutes"
145 | }
146 |
147 |
148 | Usage
149 | You can use the API to display quotes on your website or application to motivate your users. Here are some
150 | examples of how you can use the API with JavaScript:
151 |
152 |
153 |
Get Random Quote
154 |
fetch('https://qapi.vercel.app/api/random')
155 | .then(response => response.json())
156 | .then(data => {
157 | console.log(data.quote);
158 | console.log("- " + data.author);
159 | });
160 |
161 |
162 |
163 |
Get All Quotes
164 |
fetch('https://qapi.vercel.app/api/quotes')
165 | .then(response => response.json())
166 | .then(data => {
167 | data.forEach(quote => {
168 | console.log(quote.quote);
169 | console.log("- " + quote.author);
170 | });
171 | });
172 |
173 |
174 |
175 |
Get Quote by ID
176 |
const quoteId = 1; // Example ID
177 | fetch(`https://qapi.vercel.app/api/quotes/${quoteId}`)
178 | .then(response => response.json())
179 | .then(data => {
180 | console.log(data.quote);
181 | console.log("- " + data.author);
182 | });
183 |
184 |
185 |
191 |
192 |
193 |
194 |
195 |
196 |
--------------------------------------------------------------------------------
/public/FreeQuotesAPI.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | Free Quotes API - A free and Open Source Quotes API
15 |
16 |
17 |
18 |
27 |
28 |
29 |
30 |
31 |
46 |
47 |
48 |
49 |
Get Random Free inspirational and motivational quotes. It's a free and Open Source API.
50 |
51 | https://qapi.vercel.app/api/random
52 |
53 |
54 |
55 |
56 |
57 | GET
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
--------------------------------------------------------------------------------
/public/css/docs.css:
--------------------------------------------------------------------------------
1 | body {
2 | font-family: "Noto Sans", sans-serif;
3 | display: flex;
4 | flex-direction: column;
5 | justify-content: center;
6 | align-items: center;
7 | margin: 0;
8 | padding: 0;
9 | background-color: #f8f9fa;
10 | }
11 |
12 | .navbar {
13 | margin-bottom: 80px;
14 | }
15 |
16 | .navbar-brand label {
17 | font-weight: bold;
18 | }
19 |
20 | .container {
21 | display: flex;
22 | justify-content: right;
23 | flex-direction: column;
24 | margin: 24px;
25 | border-radius: 10px;
26 | padding: 20px;
27 | width: 100%;
28 | }
29 |
30 | .doc-section {
31 | background: #fff;
32 | padding: 30px;
33 | border-radius: 10px;
34 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
35 | margin: 20px auto;
36 | max-width: 800px;
37 | }
38 |
39 | .doc-section h2 {
40 | font-size: 28px;
41 | margin-bottom: 20px;
42 | color: #333;
43 | }
44 |
45 | .doc-section h3 {
46 | font-size: 24px;
47 | margin-top: 20px;
48 | color: #333;
49 | }
50 |
51 | .doc-section p, .doc-section ul {
52 | font-size: 16px;
53 | line-height: 1.6;
54 | color: #333;
55 | }
56 |
57 | .code-block {
58 | background: #f1f1f1;
59 | border-radius: 5px;
60 | padding: 15px;
61 | margin-top: 20px;
62 | overflow-x: auto;
63 | }
64 |
65 | .code-block pre {
66 | margin: 0;
67 | }
68 |
69 | pre {
70 | display: block;
71 | font-size: 87.5%;
72 | color: #fff;
73 | background-color: #1a1919f7;
74 | padding: 0.8em;
75 | border-radius: 0.5em;
76 | }
77 |
78 | @media (max-width: 768px) {
79 | .doc-section {
80 | padding: 20px;
81 | }
82 |
83 | .code-block {
84 | padding: 10px;
85 | }
86 | }
87 |
88 | @media (max-width: 576px) {
89 | .doc-section h2 {
90 | font-size: 24px;
91 | }
92 |
93 | .doc-section h3 {
94 | font-size: 20px;
95 | }
96 |
97 | .doc-section p, .doc-section ul {
98 | font-size: 14px;
99 | }
100 | }
101 |
102 | .footer {
103 | background-color: #f8f9fa;
104 | color: #6c757d;
105 | border-top: 1px solid #e9ecef;
106 | }
107 |
108 | .footer a {
109 | color: #007bff;
110 | text-decoration: none;
111 | }
112 |
113 | .footer a:hover {
114 | text-decoration: underline;
115 | }
116 |
117 | .footer .container {
118 | max-width: 1140px;
119 | margin: 0 auto;
120 | font-size: 0.9em;
121 | }
--------------------------------------------------------------------------------
/public/css/style.css:
--------------------------------------------------------------------------------
1 | body {
2 | font-family: "Noto Sans", sans-serif;
3 | display: flex;
4 | flex-direction: column;
5 | justify-content: center;
6 | align-items: center;
7 | margin: 0;
8 | padding: 0;
9 | height: 100vh;
10 | background: linear-gradient(270deg, #f8f9fa, #5474ef, #ffcb88, #333);
11 | background-size: 800% 800%;
12 | animation: gradientAnimation 15s ease infinite;
13 | }
14 |
15 | @keyframes gradientAnimation {
16 | 0% {
17 | background-position: 0% 50%;
18 | }
19 | 50% {
20 | background-position: 100% 50%;
21 | }
22 | 100% {
23 | background-position: 0% 50%;
24 | }
25 | }
26 |
27 | h1 {
28 | text-align: center;
29 | }
30 |
31 | h3#quote {
32 | font-size: 1rem;
33 | }
34 |
35 | h6#quoteAuthor {
36 | font-size: 0.9em;
37 | color: #ffcb88;
38 | }
39 |
40 | .container {
41 | display: flex;
42 | justify-content: center;
43 | align-items: center;
44 | flex-direction: column;
45 | background: rgba(1, 5, 20, 0.6);
46 | margin: 24px;
47 | color: aliceblue;
48 | border-radius: 0.4em;
49 | padding: 1.5em;
50 | width: 100%;
51 | max-width: 800px;
52 | }
53 |
54 | .sub-container {
55 | display: flex;
56 | justify-content: center;
57 | align-items: center;
58 | background: rgba(0, 0, 0, 0.8);
59 | color: aliceblue;
60 | border-radius: 10px;
61 | padding: 10px;
62 | margin-top: 20px;
63 | width: 100%;
64 | max-width: 700px;
65 | }
66 |
67 | .quote-container {
68 | display: flex;
69 | justify-content: center;
70 | align-items: center;
71 | flex-direction: column;
72 | background: rgba(51, 51, 51, 0.9);
73 | color: aliceblue;
74 | border-radius: 0.5em;
75 | padding: 18px;
76 | margin-top: 46px;
77 | width: 100%;
78 | max-width: 700px;
79 | overflow-y: auto;
80 | max-height: 200px;
81 | text-align: center;
82 | }
83 |
84 | /* Existing cursor animation */
85 | #typing-heading::after {
86 | content: '';
87 | display: inline-block;
88 | width: 2px;
89 | height: 30px;
90 | background-color: #333;
91 | animation: cursor 0.5s infinite;
92 | }
93 |
94 | @keyframes cursor {
95 | 0%, 100% {
96 | background-color: transparent;
97 | }
98 | 50% {
99 | background-color: #333;
100 | }
101 | }
102 |
103 | /* Media queries */
104 | @media (max-width: 768px) {
105 | .container, .sub-container, .quote-container {
106 | padding: 15px;
107 | width: calc(100% - 10px);
108 | }
109 | .sub-container {
110 | flex-direction: column;
111 | text-align: center;
112 | }
113 | .quote-container {
114 | margin-top: 20px;
115 | }
116 | }
117 |
118 | @media (max-width: 576px) {
119 | .container, .sub-container, .quote-container {
120 | padding: 10px;
121 | width: calc(100% - 10px);
122 | }
123 | .sub-container {
124 | margin-top: 10px;
125 | }
126 | .quote-container {
127 | margin-top: 15px;
128 | }
129 | }
130 |
131 | .footer {
132 | background-color: #f8f9fa;
133 | color: #6c757d;
134 | border-top: 1px solid #e9ecef;
135 | }
136 |
137 | .footer a {
138 | color: #007bff;
139 | text-decoration: none;
140 | }
141 |
142 | .footer a:hover {
143 | text-decoration: none;
144 | }
145 |
146 | .footer .container {
147 | max-width: 1140px;
148 | margin: 0 auto;
149 | }
150 |
--------------------------------------------------------------------------------
/public/js/jquery.js:
--------------------------------------------------------------------------------
1 | /*! jQuery v3.5.1 -ajax,-ajax/jsonp,-ajax/load,-ajax/script,-ajax/var/location,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-deprecated/ajax-event-alias,-effects,-effects/Tween,-effects/animatedSelector | (c) JS Foundation and other contributors | jquery.org/license */
2 | !function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(g,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,v=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,y=n.hasOwnProperty,a=y.toString,l=a.call(Object),m={},b=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},x=function(e){return null!=e&&e===e.window},w=g.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function C(e,t,n){var r,i,o=(n=n||w).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function T(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.5.1 -ajax,-ajax/jsonp,-ajax/load,-ajax/script,-ajax/var/location,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-deprecated/ajax-event-alias,-effects,-effects/Tween,-effects/animatedSelector",E=function(e,t){return new E.fn.init(e,t)};function d(e){var t=!!e&&"length"in e&&e.length,n=T(e);return!b(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+R+")"+R+"*"),U=new RegExp(R+"|>"),V=new RegExp(W),X=new RegExp("^"+B+"$"),Q={ID:new RegExp("^#("+B+")"),CLASS:new RegExp("^\\.("+B+")"),TAG:new RegExp("^("+B+"|[*])"),ATTR:new RegExp("^"+M),PSEUDO:new RegExp("^"+W),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+R+"*(even|odd|(([+-]|)(\\d*)n|)"+R+"*(?:([+-]|)"+R+"*(\\d+)|))"+R+"*\\)|)","i"),bool:new RegExp("^(?:"+I+")$","i"),needsContext:new RegExp("^"+R+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+R+"*((?:-\\d)?\\d*)"+R+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,G=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+R+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){C()},ae=xe(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{O.apply(t=P.call(d.childNodes),d.childNodes),t[d.childNodes.length].nodeType}catch(e){O={apply:t.length?function(e,t){q.apply(e,P.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,d=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==d&&9!==d&&11!==d)return n;if(!r&&(C(e),e=e||T,E)){if(11!==d&&(u=Z.exec(t)))if(i=u[1]){if(9===d){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return O.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&p.getElementsByClassName&&e.getElementsByClassName)return O.apply(n,e.getElementsByClassName(i)),n}if(p.qsa&&!k[t+" "]&&(!v||!v.test(t))&&(1!==d||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===d&&(U.test(t)||_.test(t))){(f=ee.test(t)&&ye(e.parentNode)||e)===e&&p.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=A)),o=(l=h(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+be(l[o]);c=l.join(",")}try{return O.apply(n,f.querySelectorAll(c)),n}catch(e){k(t,!0)}finally{s===A&&e.removeAttribute("id")}}}return g(t.replace($,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>x.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[A]=!0,e}function ce(e){var t=T.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)x.attrHandle[n[r]]=t}function de(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function pe(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in p=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},C=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:d;return r!=T&&9===r.nodeType&&r.documentElement&&(a=(T=r).documentElement,E=!i(T),d!=T&&(n=T.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),p.scope=ce(function(e){return a.appendChild(e).appendChild(T.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),p.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),p.getElementsByTagName=ce(function(e){return e.appendChild(T.createComment("")),!e.getElementsByTagName("*").length}),p.getElementsByClassName=J.test(T.getElementsByClassName),p.getById=ce(function(e){return a.appendChild(e).id=A,!T.getElementsByName||!T.getElementsByName(A).length}),p.getById?(x.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},x.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(x.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},x.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),x.find.TAG=p.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):p.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},x.find.CLASS=p.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(p.qsa=J.test(T.querySelectorAll))&&(ce(function(e){var t;a.appendChild(e).innerHTML=" ",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+R+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+R+"*(?:value|"+I+")"),e.querySelectorAll("[id~="+A+"-]").length||v.push("~="),(t=T.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+R+"*name"+R+"*="+R+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+A+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML=" ";var t=T.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+R+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(p.matchesSelector=J.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){p.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",W)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=J.test(a.compareDocumentPosition),y=t||J.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!p.sortDetached&&t.compareDocumentPosition(e)===n?e==T||e.ownerDocument==d&&y(d,e)?-1:t==T||t.ownerDocument==d&&y(d,t)?1:u?H(u,e)-H(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==T?-1:t==T?1:i?-1:o?1:u?H(u,e)-H(u,t):0;if(i===o)return de(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?de(a[r],s[r]):a[r]==d?-1:s[r]==d?1:0}),T},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(C(e),p.matchesSelector&&E&&!k[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||p.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){k(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Q.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&V.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=m[e+" "];return t||(t=new RegExp("(^|"+R+")"+e+"("+R+"|$)"))&&m(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function D(e,n,r){return b(n)?E.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?E.grep(e,function(e){return e===n!==r}):"string"!=typeof n?E.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(E.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||L,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:j.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof E?t[0]:t,E.merge(this,E.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:w,!0)),k.test(r[1])&&E.isPlainObject(t))for(r in t)b(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=w.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):b(e)?void 0!==n.ready?n.ready(e):e(E):E.makeArray(e,this)}).prototype=E.fn,L=E(w);var q=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function P(e,t){while((e=e[t])&&1!==e.nodeType);return e}E.fn.extend({has:function(e){var t=E(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,pe=/^$|^module$|\/(?:java|ecma)script/i;le=w.createDocumentFragment().appendChild(w.createElement("div")),(ce=w.createElement("input")).setAttribute("type","radio"),ce.setAttribute("checked","checked"),ce.setAttribute("name","t"),le.appendChild(ce),m.checkClone=le.cloneNode(!0).cloneNode(!0).lastChild.checked,le.innerHTML="",m.noCloneChecked=!!le.cloneNode(!0).lastChild.defaultValue,le.innerHTML=" ",m.option=!!le.lastChild;var he={thead:[1,""],col:[2,""],tr:[2,""],td:[3,""],_default:[0,"",""]};function ge(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&S(e,t)?E.merge([e],n):n}function ve(e,t){for(var n=0,r=e.length;n",""]);var ye=/<|?\w+;/;function me(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),d=[],p=0,h=e.length;p\s*$/g;function Le(e,t){return S(e,"table")&&S(11!==t.nodeType?t:t.firstChild,"tr")&&E(e).children("tbody")[0]||e}function je(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function qe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Oe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,"handle events"),s)for(n=0,r=s[i].length;n",2===ft.childNodes.length),E.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(m.createHTMLDocument?((r=(t=w.implementation.createHTMLDocument("")).createElement("base")).href=w.location.href,t.head.appendChild(r)):t=w),o=!n&&[],(i=k.exec(e))?[t.createElement(i[1])]:(i=me([e],t,o),o&&o.length&&E(o).remove(),E.merge([],i.childNodes)));var r,i,o},E.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=E.css(e,"position"),c=E(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=E.css(e,"top"),u=E.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),b(t)&&(t=t.call(e,n,E.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):("number"==typeof f.top&&(f.top+="px"),"number"==typeof f.left&&(f.left+="px"),c.css(f))}},E.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){E.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===E.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===E.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=E(e).offset()).top+=E.css(e,"borderTopWidth",!0),i.left+=E.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-E.css(r,"marginTop",!0),left:t.left-i.left-E.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===E.css(e,"position"))e=e.offsetParent;return e||re})}}),E.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;E.fn[t]=function(e){return $(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),E.each(["top","left"],function(e,n){E.cssHooks[n]=Fe(m.pixelPosition,function(e,t){if(t)return t=We(e,n),Ie.test(t)?E(e).position()[n]+"px":t})}),E.each({Height:"height",Width:"width"},function(a,s){E.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){E.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return $(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?E.css(e,t,i):E.style(e,t,n,i)},s,n?e:void 0,n)}})}),E.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),E.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){E.fn[n]=function(e,t){return 0["html","body"].indexOf(a(e));){if("none"!==(r=c(e)).transform||"none"!==r.perspective||r.willChange&&"auto"!==r.willChange){r=e;break e}e=e.parentNode}r=null}return r||t}function v(e){var t=new Map,n=new Set,r=[];return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||function e(o){n.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach((function(r){n.has(r)||(r=t.get(r))&&e(r)})),r.push(o)}(e)})),r}function b(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}function y(e){return e.split("-")[0]}function O(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r instanceof n(r).ShadowRoot||r instanceof ShadowRoot)do{if(t&&e.isSameNode(t))return!0;t=t.parentNode||t.host}while(t);return!1}function w(e){return Object.assign(Object.assign({},e),{},{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function x(e,o){if("viewport"===o){o=n(e);var a=s(e);o=o.visualViewport;var p=a.clientWidth;a=a.clientHeight;var l=0,u=0;o&&(p=o.width,a=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(l=o.offsetLeft,u=o.offsetTop)),e=w(e={width:p,height:a,x:l+f(e),y:u})}else i(o)?((e=t(o)).top+=o.clientTop,e.left+=o.clientLeft,e.bottom=e.top+o.clientHeight,e.right=e.left+o.clientWidth,e.width=o.clientWidth,e.height=o.clientHeight,e.x=e.left,e.y=e.top):(u=s(e),e=s(u),l=r(u),o=u.ownerDocument.body,p=Math.max(e.scrollWidth,e.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Math.max(e.scrollHeight,e.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-l.scrollLeft+f(u),l=-l.scrollTop,"rtl"===c(o||e).direction&&(u+=Math.max(e.clientWidth,o?o.clientWidth:0)-p),e=w({width:p,height:a,x:u,y:l}));return e}function j(e,t,n){return t="clippingParents"===t?function(e){var t=m(d(e)),n=0<=["absolute","fixed"].indexOf(c(e).position)&&i(e)?g(e):e;return o(n)?t.filter((function(e){return o(e)&&O(e,n)&&"body"!==a(e)})):[]}(e):[].concat(t),(n=(n=[].concat(t,[n])).reduce((function(t,n){return n=x(e,n),t.top=Math.max(n.top,t.top),t.right=Math.min(n.right,t.right),t.bottom=Math.min(n.bottom,t.bottom),t.left=Math.max(n.left,t.left),t}),x(e,n[0]))).width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}function M(e){return 0<=["top","bottom"].indexOf(e)?"x":"y"}function E(e){var t=e.reference,n=e.element,r=(e=e.placement)?y(e):null;e=e?e.split("-")[1]:null;var o=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2;switch(r){case"top":o={x:o,y:t.y-n.height};break;case"bottom":o={x:o,y:t.y+t.height};break;case"right":o={x:t.x+t.width,y:i};break;case"left":o={x:t.x-n.width,y:i};break;default:o={x:t.x,y:t.y}}if(null!=(r=r?M(r):null))switch(i="y"===r?"height":"width",e){case"start":o[r]=Math.floor(o[r])-Math.floor(t[i]/2-n[i]/2);break;case"end":o[r]=Math.floor(o[r])+Math.ceil(t[i]/2-n[i]/2)}return o}function D(e){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),e)}function P(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function L(e,n){void 0===n&&(n={});var r=n;n=void 0===(n=r.placement)?e.placement:n;var i=r.boundary,a=void 0===i?"clippingParents":i,f=void 0===(i=r.rootBoundary)?"viewport":i;i=void 0===(i=r.elementContext)?"popper":i;var c=r.altBoundary,p=void 0!==c&&c;r=D("number"!=typeof(r=void 0===(r=r.padding)?0:r)?r:P(r,T));var l=e.elements.reference;c=e.rects.popper,a=j(o(p=e.elements[p?"popper"===i?"reference":"popper":i])?p:p.contextElement||s(e.elements.popper),a,f),p=E({reference:f=t(l),element:c,strategy:"absolute",placement:n}),c=w(Object.assign(Object.assign({},c),p)),f="popper"===i?c:f;var u={top:a.top-f.top+r.top,bottom:f.bottom-a.bottom+r.bottom,left:a.left-f.left+r.left,right:f.right-a.right+r.right};if(e=e.modifiersData.offset,"popper"===i&&e){var d=e[n];Object.keys(u).forEach((function(e){var t=0<=["right","bottom"].indexOf(e)?1:-1,n=0<=["top","bottom"].indexOf(e)?"y":"x";u[e]+=d[n]*t}))}return u}function k(){for(var e=arguments.length,t=Array(e),n=0;n(v.devicePixelRatio||1)?"translate("+e+"px, "+l+"px)":"translate3d("+e+"px, "+l+"px, 0)",d)):Object.assign(Object.assign({},r),{},((t={})[h]=a?l+"px":"",t[m]=u?e+"px":"",t.transform="",t))}function A(e){return e.replace(/left|right|bottom|top/g,(function(e){return G[e]}))}function H(e){return e.replace(/start|end/g,(function(e){return J[e]}))}function R(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function S(e){return["top","right","bottom","left"].some((function(t){return 0<=e[t]}))}var T=["top","bottom","right","left"],q=T.reduce((function(e,t){return e.concat([t+"-start",t+"-end"])}),[]),C=[].concat(T,["auto"]).reduce((function(e,t){return e.concat([t,t+"-start",t+"-end"])}),[]),N="beforeRead read afterRead beforeMain main afterMain beforeWrite write afterWrite".split(" "),V={placement:"bottom",modifiers:[],strategy:"absolute"},I={passive:!0},_={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,o=(e=e.options).scroll,i=void 0===o||o,a=void 0===(e=e.resize)||e,s=n(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&f.forEach((function(e){e.addEventListener("scroll",r.update,I)})),a&&s.addEventListener("resize",r.update,I),function(){i&&f.forEach((function(e){e.removeEventListener("scroll",r.update,I)})),a&&s.removeEventListener("resize",r.update,I)}},data:{}},U={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state;t.modifiersData[e.name]=E({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},z={top:"auto",right:"auto",bottom:"auto",left:"auto"},F={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options;e=void 0===(e=n.gpuAcceleration)||e,n=void 0===(n=n.adaptive)||n,e={placement:y(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:e},null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign(Object.assign({},t.styles.popper),W(Object.assign(Object.assign({},e),{},{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:n})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign(Object.assign({},t.styles.arrow),W(Object.assign(Object.assign({},e),{},{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1})))),t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-placement":t.placement})},data:{}},X={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];i(o)&&a(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{};e=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{}),i(r)&&a(r)&&(Object.assign(r.style,e),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},Y={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.name,r=void 0===(e=e.options.offset)?[0,0]:e,o=(e=C.reduce((function(e,n){var o=t.rects,i=y(n),a=0<=["left","top"].indexOf(i)?-1:1,s="function"==typeof r?r(Object.assign(Object.assign({},o),{},{placement:n})):r;return o=(o=s[0])||0,s=((s=s[1])||0)*a,i=0<=["left","right"].indexOf(i)?{x:s,y:o}:{x:o,y:s},e[n]=i,e}),{}))[t.placement],i=o.x;o=o.y,null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=i,t.modifiersData.popperOffsets.y+=o),t.modifiersData[n]=e}},G={left:"right",right:"left",bottom:"top",top:"bottom"},J={start:"end",end:"start"},K={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options;if(e=e.name,!t.modifiersData[e]._skip){var r=n.mainAxis;r=void 0===r||r;var o=n.altAxis;o=void 0===o||o;var i=n.fallbackPlacements,a=n.padding,s=n.boundary,f=n.rootBoundary,c=n.altBoundary,p=n.flipVariations,l=void 0===p||p,u=n.allowedAutoPlacements;p=y(n=t.options.placement),i=i||(p!==n&&l?function(e){if("auto"===y(e))return[];var t=A(e);return[H(e),t,H(t)]}(n):[A(n)]);var d=[n].concat(i).reduce((function(e,n){return e.concat("auto"===y(n)?function(e,t){void 0===t&&(t={});var n=t.boundary,r=t.rootBoundary,o=t.padding,i=t.flipVariations,a=t.allowedAutoPlacements,s=void 0===a?C:a,f=t.placement.split("-")[1];0===(i=(t=f?i?q:q.filter((function(e){return e.split("-")[1]===f})):T).filter((function(e){return 0<=s.indexOf(e)}))).length&&(i=t);var c=i.reduce((function(t,i){return t[i]=L(e,{placement:i,boundary:n,rootBoundary:r,padding:o})[y(i)],t}),{});return Object.keys(c).sort((function(e,t){return c[e]-c[t]}))}(t,{placement:n,boundary:s,rootBoundary:f,padding:a,flipVariations:l,allowedAutoPlacements:u}):n)}),[]);n=t.rects.reference,i=t.rects.popper;var m=new Map;p=!0;for(var h=d[0],g=0;gi[x]&&(O=A(O)),x=A(O),w=[],r&&w.push(0>=j[b]),o&&w.push(0>=j[O],0>=j[x]),w.every((function(e){return e}))){h=v,p=!1;break}m.set(v,w)}if(p)for(r=function(e){var t=d.find((function(t){if(t=m.get(t))return t.slice(0,e).every((function(e){return e}))}));if(t)return h=t,"break"},o=l?3:1;0 {
4 | alert('Quote API link copied to clipboard');
5 | }).catch(err => {
6 | console.error('Failed to copy quote API link:', err);
7 | });
8 | }
9 |
10 | function get_random_quote() {
11 | fetch('https://qapi.vercel.app/api/random')
12 | .then(response => response.json())
13 | .then(data => {
14 | let quote = document.getElementById("quote");
15 | quote.style.display = 'block';
16 | quote.textContent = data.quote;
17 |
18 | let quoteAuthor = document.getElementById("quoteAuthor");
19 | quoteAuthor.style.display = 'block';
20 | quoteAuthor.textContent = data.author;
21 | })
22 | .catch(error => {
23 | console.error('Error fetching quote:', error);
24 | });
25 | }
26 |
27 | document.addEventListener('DOMContentLoaded', function() {
28 | const text = "Free Quotes API!";
29 | const delay = 100;
30 | const element = document.getElementById('typing-heading');
31 |
32 | function typeWriter(text, i) {
33 | if (i < text.length) {
34 | element.innerHTML += text.charAt(i);
35 | i++;
36 | setTimeout(() => {
37 | typeWriter(text, i);
38 | }, delay);
39 | } else {
40 | setTimeout(() => {
41 | element.innerHTML = '';
42 | typeWriter(text, 0);
43 | }, 3000);
44 | }
45 | }
46 | typeWriter(text, 0);
47 | });
48 |
--------------------------------------------------------------------------------
/quotes.js:
--------------------------------------------------------------------------------
1 | const quotes = [
2 | {
3 | "id": 1,
4 | "quote": "The only limit to our realization of tomorrow is our doubts of today.",
5 | "author": "Franklin D. Roosevelt"
6 | },
7 | {
8 | "id": 2,
9 | "quote": "The best way to predict the future is to invent it.",
10 | "author": "Alan Kay"
11 | },
12 | {
13 | "id": 3,
14 | "quote": "Life is 10% what happens to us and 90% how we react to it.",
15 | "author": "Charles R. Swindoll"
16 | },
17 | {
18 | "id": 4,
19 | "quote": "Your time is limited, so don't waste it living someone else's life.",
20 | "author": "Steve Jobs"
21 | },
22 | {
23 | "id": 5,
24 | "quote": "The purpose of our lives is to be happy.",
25 | "author": "Dalai Lama"
26 | },
27 | {
28 | "id": 6,
29 | "quote": "Get busy living or get busy dying.",
30 | "author": "Stephen King"
31 | },
32 | {
33 | "id": 7,
34 | "quote": "You have within you right now, everything you need to deal with whatever the world can throw at you.",
35 | "author": "Brian Tracy"
36 | },
37 | {
38 | "id": 8,
39 | "quote": "Believe you can and you're halfway there.",
40 | "author": "Theodore Roosevelt"
41 | },
42 | {
43 | "id": 9,
44 | "quote": "The only way to do great work is to love what you do.",
45 | "author": "Steve Jobs"
46 | },
47 | {
48 | "id": 10,
49 | "quote": "If you can dream it, you can do it.",
50 | "author": "Walt Disney"
51 | },
52 | {
53 | "id": 11,
54 | "quote": "The future belongs to those who believe in the beauty of their dreams.",
55 | "author": "Eleanor Roosevelt"
56 | },
57 | {
58 | "id": 12,
59 | "quote": "Do not wait to strike till the iron is hot; but make it hot by striking.",
60 | "author": "William Butler Yeats"
61 | },
62 | {
63 | "id": 13,
64 | "quote": "Success is not the key to happiness. Happiness is the key to success.",
65 | "author": "Albert Schweitzer"
66 | },
67 | {
68 | "id": 14,
69 | "quote": "You miss 100% of the shots you don’t take.",
70 | "author": "Wayne Gretzky"
71 | },
72 | {
73 | "id": 15,
74 | "quote": "I attribute my success to this: I never gave or took any excuse.",
75 | "author": "Florence Nightingale"
76 | },
77 | {
78 | "id": 16,
79 | "quote": "The best revenge is massive success.",
80 | "author": "Frank Sinatra"
81 | },
82 | {
83 | "id": 17,
84 | "quote": "The harder I work, the luckier I get.",
85 | "author": "Gary Player"
86 | },
87 | {
88 | "id": 18,
89 | "quote": "Don’t watch the clock; do what it does. Keep going.",
90 | "author": "Sam Levenson"
91 | },
92 | {
93 | "id": 19,
94 | "quote": "The secret of success is to do the common thing uncommonly well.",
95 | "author": "John D. Rockefeller Jr."
96 | },
97 | {
98 | "id": 20,
99 | "quote": "You must be the change you wish to see in the world.",
100 | "author": "Mahatma Gandhi"
101 | },
102 | {
103 | "id": 21,
104 | "quote": "Act as if what you do makes a difference. It does.",
105 | "author": "William James"
106 | },
107 | {
108 | "id": 22,
109 | "quote": "Keep your face always toward the sunshine—and shadows will fall behind you.",
110 | "author": "Walt Whitman"
111 | },
112 | {
113 | "id": 23,
114 | "quote": "The only place where success comes before work is in the dictionary.",
115 | "author": "Vidal Sassoon"
116 | },
117 | {
118 | "id": 24,
119 | "quote": "What lies behind us and what lies before us are tiny matters compared to what lies within us.",
120 | "author": "Ralph Waldo Emerson"
121 | },
122 | {
123 | "id": 25,
124 | "quote": "To succeed in life, you need two things: ignorance and confidence.",
125 | "author": "Mark Twain"
126 | },
127 | {
128 | "id": 26,
129 | "quote": "It always seems impossible until it's done.",
130 | "author": "Nelson Mandela"
131 | },
132 | {
133 | "id": 27,
134 | "quote": "Success is not final, failure is not fatal: it is the courage to continue that counts.",
135 | "author": "Winston Churchill"
136 | },
137 | {
138 | "id": 28,
139 | "quote": "What you do today can improve all your tomorrows.",
140 | "author": "Ralph Marston"
141 | },
142 | {
143 | "id": 29,
144 | "quote": "The only way to achieve the impossible is to believe it is possible.",
145 | "author": "Charles Kingsleigh"
146 | },
147 | {
148 | "id": 30,
149 | "quote": "The biggest risk is not taking any risk.",
150 | "author": "Mark Zuckerberg"
151 | }
152 | ];
153 |
154 | module.exports = quotes;
155 |
--------------------------------------------------------------------------------
/vercel.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": 2,
3 | "builds": [{"src": "./index.js", "use":"@vercel/node"}],
4 | "routes": [{"src": "/(.*)", "dest": "/"}]
5 | }
6 |
--------------------------------------------------------------------------------