├── .gitignore ├── server ├── client │ ├── .vite │ │ └── deps │ │ │ ├── package.json │ │ │ ├── react.js.map │ │ │ ├── chunk-6TJCVOLN.js.map │ │ │ ├── react.js │ │ │ ├── chunk-6TJCVOLN.js │ │ │ ├── _metadata.json │ │ │ ├── chunk-GE3BAENF.js │ │ │ └── axios.js │ ├── fav.ico │ ├── .DS_Store │ ├── postcss.config.cjs │ ├── dist │ │ ├── assets │ │ │ ├── fav-c94970eb.ico │ │ │ └── index-3f158779.css │ │ └── index.html │ ├── vite.config.cjs │ ├── src │ │ ├── index.css │ │ ├── main.jsx │ │ └── App.jsx │ ├── tailwind.config.cjs │ ├── index.html │ └── package.json ├── .DS_Store ├── dist │ ├── assets │ │ ├── fav-c94970eb.ico │ │ └── index-3f158779.css │ └── index.html ├── package.json └── server.js ├── .gitattributes ├── package.json ├── .DS_Store ├── LICENSE └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | dump.sql 3 | .env.local 4 | .env 5 | -------------------------------------------------------------------------------- /server/client/.vite/deps/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "module" 3 | } 4 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "sqlite3": "^5.1.7" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anjalichaturvedi/opportunities-dash/HEAD/.DS_Store -------------------------------------------------------------------------------- /server/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anjalichaturvedi/opportunities-dash/HEAD/server/.DS_Store -------------------------------------------------------------------------------- /server/client/fav.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anjalichaturvedi/opportunities-dash/HEAD/server/client/fav.ico -------------------------------------------------------------------------------- /server/client/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anjalichaturvedi/opportunities-dash/HEAD/server/client/.DS_Store -------------------------------------------------------------------------------- /server/client/postcss.config.cjs: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | plugins: { 3 | tailwindcss: {}, 4 | autoprefixer: {}, 5 | }, 6 | }; 7 | -------------------------------------------------------------------------------- /server/dist/assets/fav-c94970eb.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anjalichaturvedi/opportunities-dash/HEAD/server/dist/assets/fav-c94970eb.ico -------------------------------------------------------------------------------- /server/client/.vite/deps/react.js.map: -------------------------------------------------------------------------------- 1 | { 2 | "version": 3, 3 | "sources": [], 4 | "sourcesContent": [], 5 | "mappings": "", 6 | "names": [] 7 | } 8 | -------------------------------------------------------------------------------- /server/client/dist/assets/fav-c94970eb.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anjalichaturvedi/opportunities-dash/HEAD/server/client/dist/assets/fav-c94970eb.ico -------------------------------------------------------------------------------- /server/client/.vite/deps/chunk-6TJCVOLN.js.map: -------------------------------------------------------------------------------- 1 | { 2 | "version": 3, 3 | "sources": [], 4 | "sourcesContent": [], 5 | "mappings": "", 6 | "names": [] 7 | } 8 | -------------------------------------------------------------------------------- /server/client/.vite/deps/react.js: -------------------------------------------------------------------------------- 1 | import { 2 | require_react 3 | } from "./chunk-GE3BAENF.js"; 4 | import "./chunk-6TJCVOLN.js"; 5 | export default require_react(); 6 | //# sourceMappingURL=react.js.map 7 | -------------------------------------------------------------------------------- /server/client/vite.config.cjs: -------------------------------------------------------------------------------- 1 | const { defineConfig } = require('vite'); 2 | const react = require('@vitejs/plugin-react'); 3 | 4 | module.exports = defineConfig({ 5 | plugins: [react()], 6 | server: { 7 | port: 5173 8 | } 9 | }); 10 | 11 | -------------------------------------------------------------------------------- /server/client/src/index.css: -------------------------------------------------------------------------------- 1 | @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap'); 2 | 3 | @tailwind base; 4 | @tailwind components; 5 | @tailwind utilities; 6 | 7 | body { 8 | font-family: 'Inter', sans-serif; 9 | } 10 | -------------------------------------------------------------------------------- /server/client/src/main.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import ReactDOM from 'react-dom/client' 3 | import App from './App' 4 | import './index.css' 5 | 6 | ReactDOM.createRoot(document.getElementById('root')).render( 7 | 8 | 9 | , 10 | ) -------------------------------------------------------------------------------- /server/client/tailwind.config.cjs: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"], 3 | theme: { 4 | extend: { 5 | fontFamily: { 6 | sans: ['Inter', 'ui-sans-serif', 'system-ui'], 7 | }, 8 | }, 9 | }, 10 | plugins: [], 11 | }; 12 | -------------------------------------------------------------------------------- /server/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "opportunities-dash", 3 | "version": "1.0.0", 4 | "type": "module", 5 | "main": "server.js", 6 | "scripts": { 7 | "start": "node server.js", 8 | "build-client": "cd client && npm install && npm run build && cp -r dist ../dist", 9 | "postinstall": "npm run build-client" 10 | }, 11 | "dependencies": { 12 | "cors": "^2.8.5", 13 | "dotenv": "^17.2.0", 14 | "express": "^4.21.2", 15 | "mysql2": "^3.14.2", 16 | "pg": "^8.16.3", 17 | "sqlite3": "^5.1.6" 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /server/client/.vite/deps/chunk-6TJCVOLN.js: -------------------------------------------------------------------------------- 1 | var __defProp = Object.defineProperty; 2 | var __getOwnPropNames = Object.getOwnPropertyNames; 3 | var __commonJS = (cb, mod) => function __require() { 4 | return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; 5 | }; 6 | var __export = (target, all) => { 7 | for (var name in all) 8 | __defProp(target, name, { get: all[name], enumerable: true }); 9 | }; 10 | 11 | export { 12 | __commonJS, 13 | __export 14 | }; 15 | //# sourceMappingURL=chunk-6TJCVOLN.js.map 16 | -------------------------------------------------------------------------------- /server/client/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Opportunities Dashboard 9 | 10 | 11 |
12 | 13 | 14 | -------------------------------------------------------------------------------- /server/client/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "opportunities-dashboard", 3 | "version": "1.0.0", 4 | "private": true, 5 | "scripts": { 6 | "dev": "vite", 7 | "build": "vite build", 8 | "preview": "vite preview" 9 | }, 10 | "dependencies": { 11 | "axios": "^1.6.0", 12 | "framer-motion": "^12.23.6", 13 | "react": "^18.2.0", 14 | "react-dom": "^18.2.0" 15 | }, 16 | "devDependencies": { 17 | "@vitejs/plugin-react": "^4.0.0", 18 | "autoprefixer": "^10.4.14", 19 | "postcss": "^8.4.21", 20 | "tailwindcss": "^3.3.2", 21 | "vite": "^4.3.9" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /server/dist/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Opportunities Dashboard 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | -------------------------------------------------------------------------------- /server/client/dist/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Opportunities Dashboard 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | -------------------------------------------------------------------------------- /server/client/.vite/deps/_metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "hash": "4b1cf580", 3 | "browserHash": "43394fd6", 4 | "optimized": { 5 | "react": { 6 | "src": "../../node_modules/react/index.js", 7 | "file": "react.js", 8 | "fileHash": "4d35bdbc", 9 | "needsInterop": true 10 | }, 11 | "react-dom/client": { 12 | "src": "../../node_modules/react-dom/client.js", 13 | "file": "react-dom_client.js", 14 | "fileHash": "25d468cd", 15 | "needsInterop": true 16 | }, 17 | "axios": { 18 | "src": "../../node_modules/axios/index.js", 19 | "file": "axios.js", 20 | "fileHash": "b1fffe60", 21 | "needsInterop": false 22 | } 23 | }, 24 | "chunks": { 25 | "chunk-GE3BAENF": { 26 | "file": "chunk-GE3BAENF.js" 27 | }, 28 | "chunk-6TJCVOLN": { 29 | "file": "chunk-6TJCVOLN.js" 30 | } 31 | } 32 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2025 Anjali Chaturvedi 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 | -------------------------------------------------------------------------------- /server/server.js: -------------------------------------------------------------------------------- 1 | // server.js 2 | import express from "express"; 3 | import path from "path"; 4 | import { fileURLToPath } from "url"; 5 | import cors from "cors"; 6 | import dotenv from "dotenv"; 7 | import mysql from "mysql2/promise"; 8 | 9 | dotenv.config(); 10 | 11 | const __filename = fileURLToPath(import.meta.url); 12 | const __dirname = path.dirname(__filename); 13 | 14 | const app = express(); 15 | const PORT = process.env.PORT || 3002; 16 | 17 | app.use(cors()); 18 | app.use(express.json()); 19 | app.use(express.static(path.join(__dirname, "dist"))); 20 | 21 | console.log("Connecting to MySQL with:", { 22 | host: process.env.MYSQL_HOST, 23 | user: process.env.MYSQL_USERNAME, 24 | password: process.env.MYSQL_PASSWORD ? '***' : 'missing', 25 | database: process.env.MYSQL_DATABASE, 26 | }); 27 | 28 | 29 | // ✅ Create MySQL pool 30 | const pool = mysql.createPool({ 31 | host: process.env.MYSQL_HOST, 32 | user: process.env.MYSQL_USERNAME, 33 | database: process.env.MYSQL_DATABASE, 34 | password: process.env.MYSQL_PASSWORD, 35 | port: process.env.MYSQL_PORT || 3306, 36 | ssl: { 37 | rejectUnauthorized: false // ✅ Required for Zeabur's remote DB 38 | } 39 | }); 40 | 41 | // ✅ Get all opportunities 42 | app.get("/opportunities", async (req, res) => { 43 | try { 44 | const [rows] = await pool.query("SELECT * FROM opportunities ORDER BY deadline ASC"); 45 | res.json(rows); 46 | } catch (err) { 47 | console.error("Error fetching opportunities:", err); 48 | res.status(500).json({ error: err.message }); 49 | } 50 | }); 51 | 52 | // ✅ Add new opportunity 53 | app.post("/opportunities", async (req, res) => { 54 | const { company, title, category, deadline } = req.body; 55 | if (!company || !title || !category || !deadline) { 56 | return res.status(400).json({ error: "All fields are required." }); 57 | } 58 | 59 | try { 60 | const [result] = await pool.query( 61 | `INSERT INTO opportunities (company, title, category, deadline) VALUES (?, ?, ?, ?)`, 62 | [company, title, category, deadline] 63 | ); 64 | res.status(201).json({ id: result.insertId }); 65 | } catch (err) { 66 | console.error("Insert error:", err); 67 | res.status(500).json({ error: err.message }); 68 | } 69 | }); 70 | 71 | // ✅ Health check 72 | app.get("/ping", (req, res) => res.send("pong")); 73 | 74 | // ✅ Serve frontend 75 | app.get("*", (req, res) => { 76 | res.sendFile(path.join(__dirname, "dist", "index.html")); 77 | }); 78 | 79 | // ✅ Start server 80 | app.listen(PORT, () => { 81 | console.log(`🚀 Server running at http://localhost:${PORT}`); 82 | }); 83 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Opportunities Tracker 2 | 3 | This is a **non-exhaustive list** of student opportunities that open year-round, including **hackathons, fellowships, internships, scholarships, and more**, to help you keep track and stay ahead. 4 | If you want to add an opportunity, open a PR. 5 | 6 | > maintained by [@anjalichaturvedi](https://github.com/anjalichaturvedi) and [@nodebrew](https://github.com/nodebrewhq) 7 | 8 | --- 9 | 10 | ## Hackathons 11 | 12 | | Company/Org | Title | Deadline | Apply Link | 13 | |---------------------------|-----------------------------------------------|--------------|------------| 14 | | DRDO | Dare to Dream Innovation Contest | Jan | | 15 | | Accenture | Accenture Innovation Challenge | Jan | | 16 | | Deloitte | Deloitte Hacksplosion | Jan | | 17 | | HSBC T-Hub | HSBC Technology India Hackathon 2025 | Mar | | 18 | | Morgan Stanley | Morgan Stanley India Code to Give Hackathon | Mar | | 19 | | SAP | SAP Hackfest | May | | 20 | | Cisco | Code with Cisco | Jun | | 21 | | Samsung | Samsung Solve for Tomorrow | Jun | | 22 | | Shell | Shell Hackathon | Jun | | 23 | | J.P. Morgan | J.P. Morgan Code for Good | Apr | | 24 | | Goldman Sachs | Goldman Sachs India Hackathon 2025 | Apr | | 25 | | HERE Technologies | GeoAI Hackathon 2025 | Apr | | 26 | | Flipkart | Flipkart Grid | Jul | | 27 | | Juspay | Juspay Hiring Hackathon | Jul | | 28 | | American Express | American Express Campus Challenge | Jul | | 29 | | L’Oréal | L’Oréal Sustainability Challenge | Jul | | 30 | | Infosys | HackWithInfy | Jul | | 31 | | Walmart | Walmart Sparkathon | Jul | | 32 | | Adobe | Adobe India Hackathon | Jul | | 33 | | Amazon | Amazon HackOn | Jul | | 34 | | Juspay | Juspay Hiring Challenge | Jul | | 35 | | Tata Technologies | Tata Technologies Innovent | Jul | | 36 | | Bajaj Finserv | Bajaj Finserv HackRx | Aug | | 37 | | Govt. of India | Smart India Hackathon (SIH) | Aug | | 38 | | TCS | TCS CodeVita | Sept | | 39 | | Amazon | Amazon ML Challenge | Sept | | 40 | | Microsoft | Microsoft Imagine Cup | Oct | | 41 | | Tata | Tata Crucible Campus Hackathon | Oct | | 42 | | Tata | Tata Imagination Challenge | Oct | | 43 | | DigitalOcean | Hacktoberfest | Oct | | 44 | | Google | Google Code for Summer | TBD | | 45 | | Ericsson | Ericsson Student Innovation Challenge | TBD | | 46 | | Code for Bharat | Code for Bharat Hackathon | TBD | | 47 | 48 | --- 49 | 50 | ## Women-only 51 | 52 | | Company/Org | Title | Deadline | Apply Link | 53 | | :---------- | :------------------------------ | :------: | :------------------------------------------------------------------------------------------------------------------------------------------------------ | 54 | | Uber | Uber She++ | Jan | | 55 | | WISE | WISE Mentorship India | Jan | | 56 | | SWE | SWE Scholarships | Feb | | 57 | | Outreachy | Outreachy Internship Program | Feb | | 58 | | Google | Women Techmakers Scholars | Mar | | 59 | | LinkedIn | LinkedIn Coach-In | Mar | | 60 | | Google | Google Girl Hackathon | Mar | | 61 | | Walmart | Walmart CodeHers | Mar | 62 | | Nutanix | Advancing Women in Tech Scholarship | May | | 63 | | Meesho | ScriptedByHer Hackathon | Jun | | 64 | | AWS | AWS She Builds | Jun | 65 | | Google | Google Girl Scholarship | Aug | [Apply Here](https://www.iie.org/programs/generationgoogle/generation-google-scholarship-for-women-in-computer-science-asia-pacific-region-apac/) || 66 | | D.E. Shaw | Ascend Educare Program | Sept | | 67 | 68 | --- 69 | 70 | ## Research Fellowships 71 | 72 | | Institute | Title | Deadline | Apply Link | 73 | |------------------|------------------------------------|-----------|------------| 74 | | IIT Roorkee | SPARK | Feb | | 75 | | IIT Delhi | Summer Fellowship | Mar | | 76 | | IIT Hyderabad | SURE | May–Jul | | 77 | | IIT Delhi | USRF | May–Jul | | 78 | | BITS Goa | Summer Research Programme | May–Jun | | 79 | | IIT Madras | Summer Fellowship | Jun | | 80 | | IIT Gandhinagar | SRIP | Jun–Jul | | 81 | | IISER Kolkata | SSRP | Jun–Jul | | 82 | 83 | --- 84 | 85 | ## Scholarships 86 | 87 | | Organization | Title | Deadline | Apply Link | 88 | |------------------------|---------------------------------------------|-----------|------------| 89 | | Bharti Airtel Foundation| Bharti Airtel Scholarship Program 2025–26 | Jul | | 90 | | Aditya Birla | Aditya Birla Scholarship | Aug | | 91 | | Rolls-Royce | Unnati Scholarship | Aug | | 92 | | Panasonic | Ratti Chhatr Scholarship | Aug | | 93 | | NXP Semiconductors | NXP India Scholarships | Sept | | 94 | | Reliance Foundation | UG Scholarships | Oct | | 95 | | Tata Trusts | Tata Scholarship for Engineering | Dec | | 96 | 97 | --- 98 | 99 | ## Internships 100 | 101 | | Organization | Title | Deadline | Apply Link | 102 | |----------------------|----------------------------------|-----------|------------| 103 | | CERN | Openlab Summer Internship | Jan | | 104 | | Flipkart | Flipkart Runway | Mar | | 105 | | GitHub | GitHub Externships | May | | 106 | | Goldman Sachs | Summer Analyst Internship | Jun | | 107 | | Ethereum Foundation | Ethereum Season of Internships | Jun | | 108 | | Amazon | Amazon ML Summer School | Jul | [Apply Here](https://www.scaler.com/partnerships/amazon?utm_source=linkedin) | 109 | | Google | STEP Internship | Sept | | 110 | -------------------------------------------------------------------------------- /server/client/src/App.jsx: -------------------------------------------------------------------------------- 1 | import React, { useEffect, useState } from "react"; 2 | import axios from "axios"; 3 | import { motion } from "framer-motion"; 4 | import "./index.css"; 5 | 6 | const tagColors = { 7 | Internships: "bg-purple-600", 8 | Hackathons: "bg-pink-600", 9 | "Research Fellowships": "bg-yellow-600", 10 | "Women-only": "bg-blue-600", 11 | Scholarships: "bg-orange-600", 12 | Other: "bg-gray-600", 13 | }; 14 | 15 | function App() { 16 | const [opportunities, setOpportunities] = useState([]); 17 | const [filter, setFilter] = useState("All"); 18 | const [view, setView] = useState("Card"); 19 | const [search, setSearch] = useState(""); 20 | const [sortBy, setSortBy] = useState("default"); 21 | 22 | useEffect(() => { 23 | axios 24 | .get("/opportunities") 25 | .then((res) => { 26 | console.log("✅ Opportunities fetched:", res.data); 27 | setOpportunities(res.data); 28 | }) 29 | .catch((err) => console.error("❌ Error fetching opportunities:", err)); 30 | }, []); 31 | 32 | const monthOrder = [ 33 | "Jan", "Feb", "Mar", "Apr", "May", "Jun", 34 | "Jul", "Aug", "Sept", "Oct", "Nov", "Dec", "TBD" 35 | ]; 36 | 37 | const monthIndex = (monthStr) => { 38 | const idx = monthOrder.findIndex( 39 | (m) => m.toLowerCase() === (monthStr || "").toLowerCase() 40 | ); 41 | return idx === -1 ? 12 : idx; 42 | }; 43 | 44 | const filteredOpps = opportunities 45 | .filter((o) => 46 | filter === "All" 47 | ? true 48 | : o.category?.toLowerCase().trim() === filter.toLowerCase().trim() 49 | ) 50 | .filter((o) => { 51 | const category = o.category?.toLowerCase().trim(); 52 | const selected = filter.toLowerCase().trim(); 53 | return filter === "All" || category === selected; 54 | }) 55 | .sort((a, b) => { 56 | if (sortBy === "deadline") return a.deadline.localeCompare(b.deadline); 57 | if (sortBy === "title") return a.title.localeCompare(b.title); 58 | return 0; 59 | }); 60 | 61 | const groupedByCategory = {}; 62 | filteredOpps.forEach((opp) => { 63 | const cat = opp.category || "Other"; 64 | if (!groupedByCategory[cat]) groupedByCategory[cat] = []; 65 | groupedByCategory[cat].push(opp); 66 | }); 67 | Object.keys(groupedByCategory).forEach((cat) => { 68 | groupedByCategory[cat].sort( 69 | (a, b) => monthIndex(a.deadline) - monthIndex(b.deadline) 70 | ); 71 | }); 72 | 73 | const monthSortedOpps = [...filteredOpps].sort( 74 | (a, b) => monthIndex(a.deadline) - monthIndex(b.deadline) 75 | ); 76 | 77 | return ( 78 |
79 |
80 |
81 |
82 | 🎓 83 |

Opportunities Dashboard

84 |
85 | 86 |
87 |
88 | 89 | 102 |
103 | 104 |
105 | 106 | 114 |
115 | 116 |
117 | setSearch(e.target.value)} 122 | className="bg-transparent text-white text-sm px-4 py-[6px] rounded-lg border border-gray-600 focus:outline-none focus:ring-1 focus:ring-gray-400" 123 | /> 124 |
125 |
126 |
127 | 128 | {view === "Card" ? ( 129 | Object.entries(groupedByCategory).map(([category, items]) => ( 130 |
131 |

{category}

132 |
133 | {items.map((opp, idx) => ( 134 | 139 |
140 | {opp.company} 141 | 142 | {opp.category} 143 | 144 |
145 |

{opp.title}

146 |

Month: {opp.deadline}

147 | {opp.applyLink ? ( 148 | 154 | Apply 155 | 156 | ) : ( 157 | 158 | Closed 159 | 160 | )} 161 |
162 | ))} 163 |
164 |
165 | )) 166 | ) : ( 167 |
168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | {monthSortedOpps.map((opp, idx) => ( 180 | 181 | 182 | 183 | 188 | 189 | 203 | 204 | ))} 205 | 206 |
TitleCompanyCategoryDeadlineApply
{opp.title}{opp.company} 184 | 185 | {opp.category} 186 | 187 | {opp.deadline} 190 | {opp.applyLink ? ( 191 | 197 | Apply 198 | 199 | ) : ( 200 | Closed 201 | )} 202 |
207 |
208 | )} 209 | 210 | 230 |
231 |
232 | ); 233 | } 234 | 235 | export default App; 236 | -------------------------------------------------------------------------------- /server/dist/assets/index-3f158779.css: -------------------------------------------------------------------------------- 1 | @import"https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,ui-sans-serif,system-ui;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.z-50{z-index:50}.mb-1{margin-bottom:.25rem}.mb-12{margin-bottom:3rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-8{margin-bottom:2rem}.mt-2{margin-top:.5rem}.mt-20{margin-top:5rem}.mt-6{margin-top:1.5rem}.inline-block{display:inline-block}.flex{display:flex}.table{display:table}.grid{display:grid}.min-h-screen{min-height:100vh}.min-w-full{min-width:100%}.border-separate{border-collapse:separate}.border-spacing-y-2{--tw-border-spacing-y: .5rem;border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y)}.cursor-not-allowed{cursor:not-allowed}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.overflow-x-auto{overflow-x:auto}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-gray-600{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity, 1))}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.border-slate-700{--tw-border-opacity: 1;border-color:rgb(51 65 85 / var(--tw-border-opacity, 1))}.border-slate-800{--tw-border-opacity: 1;border-color:rgb(30 41 59 / var(--tw-border-opacity, 1))}.bg-\[\#0f172a\]{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity, 1))}.bg-\[\#1e293b\]{--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity, 1))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity, 1))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.bg-orange-600{--tw-bg-opacity: 1;background-color:rgb(234 88 12 / var(--tw-bg-opacity, 1))}.bg-pink-600{--tw-bg-opacity: 1;background-color:rgb(219 39 119 / var(--tw-bg-opacity, 1))}.bg-purple-600{--tw-bg-opacity: 1;background-color:rgb(147 51 234 / var(--tw-bg-opacity, 1))}.bg-slate-800{--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-yellow-600{--tw-bg-opacity: 1;background-color:rgb(202 138 4 / var(--tw-bg-opacity, 1))}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.from-slate-800{--tw-gradient-from: #1e293b var(--tw-gradient-from-position);--tw-gradient-to: rgb(30 41 59 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-slate-900{--tw-gradient-to: #0f172a var(--tw-gradient-to-position)}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-\[6px\]{padding-top:6px;padding-bottom:6px}.pb-2{padding-bottom:.5rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.font-sans{font-family:Inter,ui-sans-serif,system-ui}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-extrabold{font-weight:800}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-snug{line-height:1.375}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-green-400{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.opacity-60{opacity:.6}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}body{font-family:Inter,sans-serif}.hover\:bg-green-700:hover{--tw-bg-opacity: 1;background-color:rgb(21 128 61 / var(--tw-bg-opacity, 1))}.hover\:text-green-300:hover{--tw-text-opacity: 1;color:rgb(134 239 172 / var(--tw-text-opacity, 1))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-gray-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity, 1))}@media (min-width: 640px){.sm\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}}@media (min-width: 768px){.md\:mt-0{margin-top:0}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}}@media (min-width: 1024px){.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}} 2 | -------------------------------------------------------------------------------- /server/client/dist/assets/index-3f158779.css: -------------------------------------------------------------------------------- 1 | @import"https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,ui-sans-serif,system-ui;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.z-50{z-index:50}.mb-1{margin-bottom:.25rem}.mb-12{margin-bottom:3rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-8{margin-bottom:2rem}.mt-2{margin-top:.5rem}.mt-20{margin-top:5rem}.mt-6{margin-top:1.5rem}.inline-block{display:inline-block}.flex{display:flex}.table{display:table}.grid{display:grid}.min-h-screen{min-height:100vh}.min-w-full{min-width:100%}.border-separate{border-collapse:separate}.border-spacing-y-2{--tw-border-spacing-y: .5rem;border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y)}.cursor-not-allowed{cursor:not-allowed}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.overflow-x-auto{overflow-x:auto}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-gray-600{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity, 1))}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.border-slate-700{--tw-border-opacity: 1;border-color:rgb(51 65 85 / var(--tw-border-opacity, 1))}.border-slate-800{--tw-border-opacity: 1;border-color:rgb(30 41 59 / var(--tw-border-opacity, 1))}.bg-\[\#0f172a\]{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity, 1))}.bg-\[\#1e293b\]{--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity, 1))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity, 1))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.bg-orange-600{--tw-bg-opacity: 1;background-color:rgb(234 88 12 / var(--tw-bg-opacity, 1))}.bg-pink-600{--tw-bg-opacity: 1;background-color:rgb(219 39 119 / var(--tw-bg-opacity, 1))}.bg-purple-600{--tw-bg-opacity: 1;background-color:rgb(147 51 234 / var(--tw-bg-opacity, 1))}.bg-slate-800{--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-yellow-600{--tw-bg-opacity: 1;background-color:rgb(202 138 4 / var(--tw-bg-opacity, 1))}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.from-slate-800{--tw-gradient-from: #1e293b var(--tw-gradient-from-position);--tw-gradient-to: rgb(30 41 59 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-slate-900{--tw-gradient-to: #0f172a var(--tw-gradient-to-position)}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-\[6px\]{padding-top:6px;padding-bottom:6px}.pb-2{padding-bottom:.5rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.font-sans{font-family:Inter,ui-sans-serif,system-ui}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-extrabold{font-weight:800}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-snug{line-height:1.375}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-green-400{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.opacity-60{opacity:.6}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}body{font-family:Inter,sans-serif}.hover\:bg-green-700:hover{--tw-bg-opacity: 1;background-color:rgb(21 128 61 / var(--tw-bg-opacity, 1))}.hover\:text-green-300:hover{--tw-text-opacity: 1;color:rgb(134 239 172 / var(--tw-text-opacity, 1))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-gray-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity, 1))}@media (min-width: 640px){.sm\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}}@media (min-width: 768px){.md\:mt-0{margin-top:0}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}}@media (min-width: 1024px){.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}} 2 | -------------------------------------------------------------------------------- /server/client/.vite/deps/chunk-GE3BAENF.js: -------------------------------------------------------------------------------- 1 | import { 2 | __commonJS 3 | } from "./chunk-6TJCVOLN.js"; 4 | 5 | // node_modules/react/cjs/react.development.js 6 | var require_react_development = __commonJS({ 7 | "node_modules/react/cjs/react.development.js"(exports, module) { 8 | "use strict"; 9 | if (true) { 10 | (function() { 11 | "use strict"; 12 | if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") { 13 | __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); 14 | } 15 | var ReactVersion = "18.3.1"; 16 | var REACT_ELEMENT_TYPE = Symbol.for("react.element"); 17 | var REACT_PORTAL_TYPE = Symbol.for("react.portal"); 18 | var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"); 19 | var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"); 20 | var REACT_PROFILER_TYPE = Symbol.for("react.profiler"); 21 | var REACT_PROVIDER_TYPE = Symbol.for("react.provider"); 22 | var REACT_CONTEXT_TYPE = Symbol.for("react.context"); 23 | var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"); 24 | var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"); 25 | var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"); 26 | var REACT_MEMO_TYPE = Symbol.for("react.memo"); 27 | var REACT_LAZY_TYPE = Symbol.for("react.lazy"); 28 | var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"); 29 | var MAYBE_ITERATOR_SYMBOL = Symbol.iterator; 30 | var FAUX_ITERATOR_SYMBOL = "@@iterator"; 31 | function getIteratorFn(maybeIterable) { 32 | if (maybeIterable === null || typeof maybeIterable !== "object") { 33 | return null; 34 | } 35 | var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]; 36 | if (typeof maybeIterator === "function") { 37 | return maybeIterator; 38 | } 39 | return null; 40 | } 41 | var ReactCurrentDispatcher = { 42 | /** 43 | * @internal 44 | * @type {ReactComponent} 45 | */ 46 | current: null 47 | }; 48 | var ReactCurrentBatchConfig = { 49 | transition: null 50 | }; 51 | var ReactCurrentActQueue = { 52 | current: null, 53 | // Used to reproduce behavior of `batchedUpdates` in legacy mode. 54 | isBatchingLegacy: false, 55 | didScheduleLegacyUpdate: false 56 | }; 57 | var ReactCurrentOwner = { 58 | /** 59 | * @internal 60 | * @type {ReactComponent} 61 | */ 62 | current: null 63 | }; 64 | var ReactDebugCurrentFrame = {}; 65 | var currentExtraStackFrame = null; 66 | function setExtraStackFrame(stack) { 67 | { 68 | currentExtraStackFrame = stack; 69 | } 70 | } 71 | { 72 | ReactDebugCurrentFrame.setExtraStackFrame = function(stack) { 73 | { 74 | currentExtraStackFrame = stack; 75 | } 76 | }; 77 | ReactDebugCurrentFrame.getCurrentStack = null; 78 | ReactDebugCurrentFrame.getStackAddendum = function() { 79 | var stack = ""; 80 | if (currentExtraStackFrame) { 81 | stack += currentExtraStackFrame; 82 | } 83 | var impl = ReactDebugCurrentFrame.getCurrentStack; 84 | if (impl) { 85 | stack += impl() || ""; 86 | } 87 | return stack; 88 | }; 89 | } 90 | var enableScopeAPI = false; 91 | var enableCacheElement = false; 92 | var enableTransitionTracing = false; 93 | var enableLegacyHidden = false; 94 | var enableDebugTracing = false; 95 | var ReactSharedInternals = { 96 | ReactCurrentDispatcher, 97 | ReactCurrentBatchConfig, 98 | ReactCurrentOwner 99 | }; 100 | { 101 | ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame; 102 | ReactSharedInternals.ReactCurrentActQueue = ReactCurrentActQueue; 103 | } 104 | function warn(format) { 105 | { 106 | { 107 | for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { 108 | args[_key - 1] = arguments[_key]; 109 | } 110 | printWarning("warn", format, args); 111 | } 112 | } 113 | } 114 | function error(format) { 115 | { 116 | { 117 | for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { 118 | args[_key2 - 1] = arguments[_key2]; 119 | } 120 | printWarning("error", format, args); 121 | } 122 | } 123 | } 124 | function printWarning(level, format, args) { 125 | { 126 | var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame; 127 | var stack = ReactDebugCurrentFrame2.getStackAddendum(); 128 | if (stack !== "") { 129 | format += "%s"; 130 | args = args.concat([stack]); 131 | } 132 | var argsWithFormat = args.map(function(item) { 133 | return String(item); 134 | }); 135 | argsWithFormat.unshift("Warning: " + format); 136 | Function.prototype.apply.call(console[level], console, argsWithFormat); 137 | } 138 | } 139 | var didWarnStateUpdateForUnmountedComponent = {}; 140 | function warnNoop(publicInstance, callerName) { 141 | { 142 | var _constructor = publicInstance.constructor; 143 | var componentName = _constructor && (_constructor.displayName || _constructor.name) || "ReactClass"; 144 | var warningKey = componentName + "." + callerName; 145 | if (didWarnStateUpdateForUnmountedComponent[warningKey]) { 146 | return; 147 | } 148 | error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", callerName, componentName); 149 | didWarnStateUpdateForUnmountedComponent[warningKey] = true; 150 | } 151 | } 152 | var ReactNoopUpdateQueue = { 153 | /** 154 | * Checks whether or not this composite component is mounted. 155 | * @param {ReactClass} publicInstance The instance we want to test. 156 | * @return {boolean} True if mounted, false otherwise. 157 | * @protected 158 | * @final 159 | */ 160 | isMounted: function(publicInstance) { 161 | return false; 162 | }, 163 | /** 164 | * Forces an update. This should only be invoked when it is known with 165 | * certainty that we are **not** in a DOM transaction. 166 | * 167 | * You may want to call this when you know that some deeper aspect of the 168 | * component's state has changed but `setState` was not called. 169 | * 170 | * This will not invoke `shouldComponentUpdate`, but it will invoke 171 | * `componentWillUpdate` and `componentDidUpdate`. 172 | * 173 | * @param {ReactClass} publicInstance The instance that should rerender. 174 | * @param {?function} callback Called after component is updated. 175 | * @param {?string} callerName name of the calling function in the public API. 176 | * @internal 177 | */ 178 | enqueueForceUpdate: function(publicInstance, callback, callerName) { 179 | warnNoop(publicInstance, "forceUpdate"); 180 | }, 181 | /** 182 | * Replaces all of the state. Always use this or `setState` to mutate state. 183 | * You should treat `this.state` as immutable. 184 | * 185 | * There is no guarantee that `this.state` will be immediately updated, so 186 | * accessing `this.state` after calling this method may return the old value. 187 | * 188 | * @param {ReactClass} publicInstance The instance that should rerender. 189 | * @param {object} completeState Next state. 190 | * @param {?function} callback Called after component is updated. 191 | * @param {?string} callerName name of the calling function in the public API. 192 | * @internal 193 | */ 194 | enqueueReplaceState: function(publicInstance, completeState, callback, callerName) { 195 | warnNoop(publicInstance, "replaceState"); 196 | }, 197 | /** 198 | * Sets a subset of the state. This only exists because _pendingState is 199 | * internal. This provides a merging strategy that is not available to deep 200 | * properties which is confusing. TODO: Expose pendingState or don't use it 201 | * during the merge. 202 | * 203 | * @param {ReactClass} publicInstance The instance that should rerender. 204 | * @param {object} partialState Next partial state to be merged with state. 205 | * @param {?function} callback Called after component is updated. 206 | * @param {?string} Name of the calling function in the public API. 207 | * @internal 208 | */ 209 | enqueueSetState: function(publicInstance, partialState, callback, callerName) { 210 | warnNoop(publicInstance, "setState"); 211 | } 212 | }; 213 | var assign = Object.assign; 214 | var emptyObject = {}; 215 | { 216 | Object.freeze(emptyObject); 217 | } 218 | function Component(props, context, updater) { 219 | this.props = props; 220 | this.context = context; 221 | this.refs = emptyObject; 222 | this.updater = updater || ReactNoopUpdateQueue; 223 | } 224 | Component.prototype.isReactComponent = {}; 225 | Component.prototype.setState = function(partialState, callback) { 226 | if (typeof partialState !== "object" && typeof partialState !== "function" && partialState != null) { 227 | throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables."); 228 | } 229 | this.updater.enqueueSetState(this, partialState, callback, "setState"); 230 | }; 231 | Component.prototype.forceUpdate = function(callback) { 232 | this.updater.enqueueForceUpdate(this, callback, "forceUpdate"); 233 | }; 234 | { 235 | var deprecatedAPIs = { 236 | isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."], 237 | replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."] 238 | }; 239 | var defineDeprecationWarning = function(methodName, info) { 240 | Object.defineProperty(Component.prototype, methodName, { 241 | get: function() { 242 | warn("%s(...) is deprecated in plain JavaScript React classes. %s", info[0], info[1]); 243 | return void 0; 244 | } 245 | }); 246 | }; 247 | for (var fnName in deprecatedAPIs) { 248 | if (deprecatedAPIs.hasOwnProperty(fnName)) { 249 | defineDeprecationWarning(fnName, deprecatedAPIs[fnName]); 250 | } 251 | } 252 | } 253 | function ComponentDummy() { 254 | } 255 | ComponentDummy.prototype = Component.prototype; 256 | function PureComponent(props, context, updater) { 257 | this.props = props; 258 | this.context = context; 259 | this.refs = emptyObject; 260 | this.updater = updater || ReactNoopUpdateQueue; 261 | } 262 | var pureComponentPrototype = PureComponent.prototype = new ComponentDummy(); 263 | pureComponentPrototype.constructor = PureComponent; 264 | assign(pureComponentPrototype, Component.prototype); 265 | pureComponentPrototype.isPureReactComponent = true; 266 | function createRef() { 267 | var refObject = { 268 | current: null 269 | }; 270 | { 271 | Object.seal(refObject); 272 | } 273 | return refObject; 274 | } 275 | var isArrayImpl = Array.isArray; 276 | function isArray(a) { 277 | return isArrayImpl(a); 278 | } 279 | function typeName(value) { 280 | { 281 | var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag; 282 | var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object"; 283 | return type; 284 | } 285 | } 286 | function willCoercionThrow(value) { 287 | { 288 | try { 289 | testStringCoercion(value); 290 | return false; 291 | } catch (e) { 292 | return true; 293 | } 294 | } 295 | } 296 | function testStringCoercion(value) { 297 | return "" + value; 298 | } 299 | function checkKeyStringCoercion(value) { 300 | { 301 | if (willCoercionThrow(value)) { 302 | error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value)); 303 | return testStringCoercion(value); 304 | } 305 | } 306 | } 307 | function getWrappedName(outerType, innerType, wrapperName) { 308 | var displayName = outerType.displayName; 309 | if (displayName) { 310 | return displayName; 311 | } 312 | var functionName = innerType.displayName || innerType.name || ""; 313 | return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName; 314 | } 315 | function getContextName(type) { 316 | return type.displayName || "Context"; 317 | } 318 | function getComponentNameFromType(type) { 319 | if (type == null) { 320 | return null; 321 | } 322 | { 323 | if (typeof type.tag === "number") { 324 | error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."); 325 | } 326 | } 327 | if (typeof type === "function") { 328 | return type.displayName || type.name || null; 329 | } 330 | if (typeof type === "string") { 331 | return type; 332 | } 333 | switch (type) { 334 | case REACT_FRAGMENT_TYPE: 335 | return "Fragment"; 336 | case REACT_PORTAL_TYPE: 337 | return "Portal"; 338 | case REACT_PROFILER_TYPE: 339 | return "Profiler"; 340 | case REACT_STRICT_MODE_TYPE: 341 | return "StrictMode"; 342 | case REACT_SUSPENSE_TYPE: 343 | return "Suspense"; 344 | case REACT_SUSPENSE_LIST_TYPE: 345 | return "SuspenseList"; 346 | } 347 | if (typeof type === "object") { 348 | switch (type.$$typeof) { 349 | case REACT_CONTEXT_TYPE: 350 | var context = type; 351 | return getContextName(context) + ".Consumer"; 352 | case REACT_PROVIDER_TYPE: 353 | var provider = type; 354 | return getContextName(provider._context) + ".Provider"; 355 | case REACT_FORWARD_REF_TYPE: 356 | return getWrappedName(type, type.render, "ForwardRef"); 357 | case REACT_MEMO_TYPE: 358 | var outerName = type.displayName || null; 359 | if (outerName !== null) { 360 | return outerName; 361 | } 362 | return getComponentNameFromType(type.type) || "Memo"; 363 | case REACT_LAZY_TYPE: { 364 | var lazyComponent = type; 365 | var payload = lazyComponent._payload; 366 | var init = lazyComponent._init; 367 | try { 368 | return getComponentNameFromType(init(payload)); 369 | } catch (x) { 370 | return null; 371 | } 372 | } 373 | } 374 | } 375 | return null; 376 | } 377 | var hasOwnProperty = Object.prototype.hasOwnProperty; 378 | var RESERVED_PROPS = { 379 | key: true, 380 | ref: true, 381 | __self: true, 382 | __source: true 383 | }; 384 | var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs; 385 | { 386 | didWarnAboutStringRefs = {}; 387 | } 388 | function hasValidRef(config) { 389 | { 390 | if (hasOwnProperty.call(config, "ref")) { 391 | var getter = Object.getOwnPropertyDescriptor(config, "ref").get; 392 | if (getter && getter.isReactWarning) { 393 | return false; 394 | } 395 | } 396 | } 397 | return config.ref !== void 0; 398 | } 399 | function hasValidKey(config) { 400 | { 401 | if (hasOwnProperty.call(config, "key")) { 402 | var getter = Object.getOwnPropertyDescriptor(config, "key").get; 403 | if (getter && getter.isReactWarning) { 404 | return false; 405 | } 406 | } 407 | } 408 | return config.key !== void 0; 409 | } 410 | function defineKeyPropWarningGetter(props, displayName) { 411 | var warnAboutAccessingKey = function() { 412 | { 413 | if (!specialPropKeyWarningShown) { 414 | specialPropKeyWarningShown = true; 415 | error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName); 416 | } 417 | } 418 | }; 419 | warnAboutAccessingKey.isReactWarning = true; 420 | Object.defineProperty(props, "key", { 421 | get: warnAboutAccessingKey, 422 | configurable: true 423 | }); 424 | } 425 | function defineRefPropWarningGetter(props, displayName) { 426 | var warnAboutAccessingRef = function() { 427 | { 428 | if (!specialPropRefWarningShown) { 429 | specialPropRefWarningShown = true; 430 | error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName); 431 | } 432 | } 433 | }; 434 | warnAboutAccessingRef.isReactWarning = true; 435 | Object.defineProperty(props, "ref", { 436 | get: warnAboutAccessingRef, 437 | configurable: true 438 | }); 439 | } 440 | function warnIfStringRefCannotBeAutoConverted(config) { 441 | { 442 | if (typeof config.ref === "string" && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) { 443 | var componentName = getComponentNameFromType(ReactCurrentOwner.current.type); 444 | if (!didWarnAboutStringRefs[componentName]) { 445 | error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', componentName, config.ref); 446 | didWarnAboutStringRefs[componentName] = true; 447 | } 448 | } 449 | } 450 | } 451 | var ReactElement = function(type, key, ref, self, source, owner, props) { 452 | var element = { 453 | // This tag allows us to uniquely identify this as a React Element 454 | $$typeof: REACT_ELEMENT_TYPE, 455 | // Built-in properties that belong on the element 456 | type, 457 | key, 458 | ref, 459 | props, 460 | // Record the component responsible for creating this element. 461 | _owner: owner 462 | }; 463 | { 464 | element._store = {}; 465 | Object.defineProperty(element._store, "validated", { 466 | configurable: false, 467 | enumerable: false, 468 | writable: true, 469 | value: false 470 | }); 471 | Object.defineProperty(element, "_self", { 472 | configurable: false, 473 | enumerable: false, 474 | writable: false, 475 | value: self 476 | }); 477 | Object.defineProperty(element, "_source", { 478 | configurable: false, 479 | enumerable: false, 480 | writable: false, 481 | value: source 482 | }); 483 | if (Object.freeze) { 484 | Object.freeze(element.props); 485 | Object.freeze(element); 486 | } 487 | } 488 | return element; 489 | }; 490 | function createElement(type, config, children) { 491 | var propName; 492 | var props = {}; 493 | var key = null; 494 | var ref = null; 495 | var self = null; 496 | var source = null; 497 | if (config != null) { 498 | if (hasValidRef(config)) { 499 | ref = config.ref; 500 | { 501 | warnIfStringRefCannotBeAutoConverted(config); 502 | } 503 | } 504 | if (hasValidKey(config)) { 505 | { 506 | checkKeyStringCoercion(config.key); 507 | } 508 | key = "" + config.key; 509 | } 510 | self = config.__self === void 0 ? null : config.__self; 511 | source = config.__source === void 0 ? null : config.__source; 512 | for (propName in config) { 513 | if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) { 514 | props[propName] = config[propName]; 515 | } 516 | } 517 | } 518 | var childrenLength = arguments.length - 2; 519 | if (childrenLength === 1) { 520 | props.children = children; 521 | } else if (childrenLength > 1) { 522 | var childArray = Array(childrenLength); 523 | for (var i = 0; i < childrenLength; i++) { 524 | childArray[i] = arguments[i + 2]; 525 | } 526 | { 527 | if (Object.freeze) { 528 | Object.freeze(childArray); 529 | } 530 | } 531 | props.children = childArray; 532 | } 533 | if (type && type.defaultProps) { 534 | var defaultProps = type.defaultProps; 535 | for (propName in defaultProps) { 536 | if (props[propName] === void 0) { 537 | props[propName] = defaultProps[propName]; 538 | } 539 | } 540 | } 541 | { 542 | if (key || ref) { 543 | var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type; 544 | if (key) { 545 | defineKeyPropWarningGetter(props, displayName); 546 | } 547 | if (ref) { 548 | defineRefPropWarningGetter(props, displayName); 549 | } 550 | } 551 | } 552 | return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props); 553 | } 554 | function cloneAndReplaceKey(oldElement, newKey) { 555 | var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props); 556 | return newElement; 557 | } 558 | function cloneElement(element, config, children) { 559 | if (element === null || element === void 0) { 560 | throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + "."); 561 | } 562 | var propName; 563 | var props = assign({}, element.props); 564 | var key = element.key; 565 | var ref = element.ref; 566 | var self = element._self; 567 | var source = element._source; 568 | var owner = element._owner; 569 | if (config != null) { 570 | if (hasValidRef(config)) { 571 | ref = config.ref; 572 | owner = ReactCurrentOwner.current; 573 | } 574 | if (hasValidKey(config)) { 575 | { 576 | checkKeyStringCoercion(config.key); 577 | } 578 | key = "" + config.key; 579 | } 580 | var defaultProps; 581 | if (element.type && element.type.defaultProps) { 582 | defaultProps = element.type.defaultProps; 583 | } 584 | for (propName in config) { 585 | if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) { 586 | if (config[propName] === void 0 && defaultProps !== void 0) { 587 | props[propName] = defaultProps[propName]; 588 | } else { 589 | props[propName] = config[propName]; 590 | } 591 | } 592 | } 593 | } 594 | var childrenLength = arguments.length - 2; 595 | if (childrenLength === 1) { 596 | props.children = children; 597 | } else if (childrenLength > 1) { 598 | var childArray = Array(childrenLength); 599 | for (var i = 0; i < childrenLength; i++) { 600 | childArray[i] = arguments[i + 2]; 601 | } 602 | props.children = childArray; 603 | } 604 | return ReactElement(element.type, key, ref, self, source, owner, props); 605 | } 606 | function isValidElement(object) { 607 | return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; 608 | } 609 | var SEPARATOR = "."; 610 | var SUBSEPARATOR = ":"; 611 | function escape(key) { 612 | var escapeRegex = /[=:]/g; 613 | var escaperLookup = { 614 | "=": "=0", 615 | ":": "=2" 616 | }; 617 | var escapedString = key.replace(escapeRegex, function(match) { 618 | return escaperLookup[match]; 619 | }); 620 | return "$" + escapedString; 621 | } 622 | var didWarnAboutMaps = false; 623 | var userProvidedKeyEscapeRegex = /\/+/g; 624 | function escapeUserProvidedKey(text) { 625 | return text.replace(userProvidedKeyEscapeRegex, "$&/"); 626 | } 627 | function getElementKey(element, index) { 628 | if (typeof element === "object" && element !== null && element.key != null) { 629 | { 630 | checkKeyStringCoercion(element.key); 631 | } 632 | return escape("" + element.key); 633 | } 634 | return index.toString(36); 635 | } 636 | function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) { 637 | var type = typeof children; 638 | if (type === "undefined" || type === "boolean") { 639 | children = null; 640 | } 641 | var invokeCallback = false; 642 | if (children === null) { 643 | invokeCallback = true; 644 | } else { 645 | switch (type) { 646 | case "string": 647 | case "number": 648 | invokeCallback = true; 649 | break; 650 | case "object": 651 | switch (children.$$typeof) { 652 | case REACT_ELEMENT_TYPE: 653 | case REACT_PORTAL_TYPE: 654 | invokeCallback = true; 655 | } 656 | } 657 | } 658 | if (invokeCallback) { 659 | var _child = children; 660 | var mappedChild = callback(_child); 661 | var childKey = nameSoFar === "" ? SEPARATOR + getElementKey(_child, 0) : nameSoFar; 662 | if (isArray(mappedChild)) { 663 | var escapedChildKey = ""; 664 | if (childKey != null) { 665 | escapedChildKey = escapeUserProvidedKey(childKey) + "/"; 666 | } 667 | mapIntoArray(mappedChild, array, escapedChildKey, "", function(c) { 668 | return c; 669 | }); 670 | } else if (mappedChild != null) { 671 | if (isValidElement(mappedChild)) { 672 | { 673 | if (mappedChild.key && (!_child || _child.key !== mappedChild.key)) { 674 | checkKeyStringCoercion(mappedChild.key); 675 | } 676 | } 677 | mappedChild = cloneAndReplaceKey( 678 | mappedChild, 679 | // Keep both the (mapped) and old keys if they differ, just as 680 | // traverseAllChildren used to do for objects as children 681 | escapedPrefix + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key 682 | (mappedChild.key && (!_child || _child.key !== mappedChild.key) ? ( 683 | // $FlowFixMe Flow incorrectly thinks existing element's key can be a number 684 | // eslint-disable-next-line react-internal/safe-string-coercion 685 | escapeUserProvidedKey("" + mappedChild.key) + "/" 686 | ) : "") + childKey 687 | ); 688 | } 689 | array.push(mappedChild); 690 | } 691 | return 1; 692 | } 693 | var child; 694 | var nextName; 695 | var subtreeCount = 0; 696 | var nextNamePrefix = nameSoFar === "" ? SEPARATOR : nameSoFar + SUBSEPARATOR; 697 | if (isArray(children)) { 698 | for (var i = 0; i < children.length; i++) { 699 | child = children[i]; 700 | nextName = nextNamePrefix + getElementKey(child, i); 701 | subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback); 702 | } 703 | } else { 704 | var iteratorFn = getIteratorFn(children); 705 | if (typeof iteratorFn === "function") { 706 | var iterableChildren = children; 707 | { 708 | if (iteratorFn === iterableChildren.entries) { 709 | if (!didWarnAboutMaps) { 710 | warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."); 711 | } 712 | didWarnAboutMaps = true; 713 | } 714 | } 715 | var iterator = iteratorFn.call(iterableChildren); 716 | var step; 717 | var ii = 0; 718 | while (!(step = iterator.next()).done) { 719 | child = step.value; 720 | nextName = nextNamePrefix + getElementKey(child, ii++); 721 | subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback); 722 | } 723 | } else if (type === "object") { 724 | var childrenString = String(children); 725 | throw new Error("Objects are not valid as a React child (found: " + (childrenString === "[object Object]" ? "object with keys {" + Object.keys(children).join(", ") + "}" : childrenString) + "). If you meant to render a collection of children, use an array instead."); 726 | } 727 | } 728 | return subtreeCount; 729 | } 730 | function mapChildren(children, func, context) { 731 | if (children == null) { 732 | return children; 733 | } 734 | var result = []; 735 | var count = 0; 736 | mapIntoArray(children, result, "", "", function(child) { 737 | return func.call(context, child, count++); 738 | }); 739 | return result; 740 | } 741 | function countChildren(children) { 742 | var n = 0; 743 | mapChildren(children, function() { 744 | n++; 745 | }); 746 | return n; 747 | } 748 | function forEachChildren(children, forEachFunc, forEachContext) { 749 | mapChildren(children, function() { 750 | forEachFunc.apply(this, arguments); 751 | }, forEachContext); 752 | } 753 | function toArray(children) { 754 | return mapChildren(children, function(child) { 755 | return child; 756 | }) || []; 757 | } 758 | function onlyChild(children) { 759 | if (!isValidElement(children)) { 760 | throw new Error("React.Children.only expected to receive a single React element child."); 761 | } 762 | return children; 763 | } 764 | function createContext(defaultValue) { 765 | var context = { 766 | $$typeof: REACT_CONTEXT_TYPE, 767 | // As a workaround to support multiple concurrent renderers, we categorize 768 | // some renderers as primary and others as secondary. We only expect 769 | // there to be two concurrent renderers at most: React Native (primary) and 770 | // Fabric (secondary); React DOM (primary) and React ART (secondary). 771 | // Secondary renderers store their context values on separate fields. 772 | _currentValue: defaultValue, 773 | _currentValue2: defaultValue, 774 | // Used to track how many concurrent renderers this context currently 775 | // supports within in a single renderer. Such as parallel server rendering. 776 | _threadCount: 0, 777 | // These are circular 778 | Provider: null, 779 | Consumer: null, 780 | // Add these to use same hidden class in VM as ServerContext 781 | _defaultValue: null, 782 | _globalName: null 783 | }; 784 | context.Provider = { 785 | $$typeof: REACT_PROVIDER_TYPE, 786 | _context: context 787 | }; 788 | var hasWarnedAboutUsingNestedContextConsumers = false; 789 | var hasWarnedAboutUsingConsumerProvider = false; 790 | var hasWarnedAboutDisplayNameOnConsumer = false; 791 | { 792 | var Consumer = { 793 | $$typeof: REACT_CONTEXT_TYPE, 794 | _context: context 795 | }; 796 | Object.defineProperties(Consumer, { 797 | Provider: { 798 | get: function() { 799 | if (!hasWarnedAboutUsingConsumerProvider) { 800 | hasWarnedAboutUsingConsumerProvider = true; 801 | error("Rendering is not supported and will be removed in a future major release. Did you mean to render instead?"); 802 | } 803 | return context.Provider; 804 | }, 805 | set: function(_Provider) { 806 | context.Provider = _Provider; 807 | } 808 | }, 809 | _currentValue: { 810 | get: function() { 811 | return context._currentValue; 812 | }, 813 | set: function(_currentValue) { 814 | context._currentValue = _currentValue; 815 | } 816 | }, 817 | _currentValue2: { 818 | get: function() { 819 | return context._currentValue2; 820 | }, 821 | set: function(_currentValue2) { 822 | context._currentValue2 = _currentValue2; 823 | } 824 | }, 825 | _threadCount: { 826 | get: function() { 827 | return context._threadCount; 828 | }, 829 | set: function(_threadCount) { 830 | context._threadCount = _threadCount; 831 | } 832 | }, 833 | Consumer: { 834 | get: function() { 835 | if (!hasWarnedAboutUsingNestedContextConsumers) { 836 | hasWarnedAboutUsingNestedContextConsumers = true; 837 | error("Rendering is not supported and will be removed in a future major release. Did you mean to render instead?"); 838 | } 839 | return context.Consumer; 840 | } 841 | }, 842 | displayName: { 843 | get: function() { 844 | return context.displayName; 845 | }, 846 | set: function(displayName) { 847 | if (!hasWarnedAboutDisplayNameOnConsumer) { 848 | warn("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", displayName); 849 | hasWarnedAboutDisplayNameOnConsumer = true; 850 | } 851 | } 852 | } 853 | }); 854 | context.Consumer = Consumer; 855 | } 856 | { 857 | context._currentRenderer = null; 858 | context._currentRenderer2 = null; 859 | } 860 | return context; 861 | } 862 | var Uninitialized = -1; 863 | var Pending = 0; 864 | var Resolved = 1; 865 | var Rejected = 2; 866 | function lazyInitializer(payload) { 867 | if (payload._status === Uninitialized) { 868 | var ctor = payload._result; 869 | var thenable = ctor(); 870 | thenable.then(function(moduleObject2) { 871 | if (payload._status === Pending || payload._status === Uninitialized) { 872 | var resolved = payload; 873 | resolved._status = Resolved; 874 | resolved._result = moduleObject2; 875 | } 876 | }, function(error2) { 877 | if (payload._status === Pending || payload._status === Uninitialized) { 878 | var rejected = payload; 879 | rejected._status = Rejected; 880 | rejected._result = error2; 881 | } 882 | }); 883 | if (payload._status === Uninitialized) { 884 | var pending = payload; 885 | pending._status = Pending; 886 | pending._result = thenable; 887 | } 888 | } 889 | if (payload._status === Resolved) { 890 | var moduleObject = payload._result; 891 | { 892 | if (moduleObject === void 0) { 893 | error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?", moduleObject); 894 | } 895 | } 896 | { 897 | if (!("default" in moduleObject)) { 898 | error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))", moduleObject); 899 | } 900 | } 901 | return moduleObject.default; 902 | } else { 903 | throw payload._result; 904 | } 905 | } 906 | function lazy(ctor) { 907 | var payload = { 908 | // We use these fields to store the result. 909 | _status: Uninitialized, 910 | _result: ctor 911 | }; 912 | var lazyType = { 913 | $$typeof: REACT_LAZY_TYPE, 914 | _payload: payload, 915 | _init: lazyInitializer 916 | }; 917 | { 918 | var defaultProps; 919 | var propTypes; 920 | Object.defineProperties(lazyType, { 921 | defaultProps: { 922 | configurable: true, 923 | get: function() { 924 | return defaultProps; 925 | }, 926 | set: function(newDefaultProps) { 927 | error("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."); 928 | defaultProps = newDefaultProps; 929 | Object.defineProperty(lazyType, "defaultProps", { 930 | enumerable: true 931 | }); 932 | } 933 | }, 934 | propTypes: { 935 | configurable: true, 936 | get: function() { 937 | return propTypes; 938 | }, 939 | set: function(newPropTypes) { 940 | error("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."); 941 | propTypes = newPropTypes; 942 | Object.defineProperty(lazyType, "propTypes", { 943 | enumerable: true 944 | }); 945 | } 946 | } 947 | }); 948 | } 949 | return lazyType; 950 | } 951 | function forwardRef(render) { 952 | { 953 | if (render != null && render.$$typeof === REACT_MEMO_TYPE) { 954 | error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."); 955 | } else if (typeof render !== "function") { 956 | error("forwardRef requires a render function but was given %s.", render === null ? "null" : typeof render); 957 | } else { 958 | if (render.length !== 0 && render.length !== 2) { 959 | error("forwardRef render functions accept exactly two parameters: props and ref. %s", render.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."); 960 | } 961 | } 962 | if (render != null) { 963 | if (render.defaultProps != null || render.propTypes != null) { 964 | error("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"); 965 | } 966 | } 967 | } 968 | var elementType = { 969 | $$typeof: REACT_FORWARD_REF_TYPE, 970 | render 971 | }; 972 | { 973 | var ownName; 974 | Object.defineProperty(elementType, "displayName", { 975 | enumerable: false, 976 | configurable: true, 977 | get: function() { 978 | return ownName; 979 | }, 980 | set: function(name) { 981 | ownName = name; 982 | if (!render.name && !render.displayName) { 983 | render.displayName = name; 984 | } 985 | } 986 | }); 987 | } 988 | return elementType; 989 | } 990 | var REACT_MODULE_REFERENCE; 991 | { 992 | REACT_MODULE_REFERENCE = Symbol.for("react.module.reference"); 993 | } 994 | function isValidElementType(type) { 995 | if (typeof type === "string" || typeof type === "function") { 996 | return true; 997 | } 998 | if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) { 999 | return true; 1000 | } 1001 | if (typeof type === "object" && type !== null) { 1002 | if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object 1003 | // types supported by any Flight configuration anywhere since 1004 | // we don't know which Flight build this will end up being used 1005 | // with. 1006 | type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) { 1007 | return true; 1008 | } 1009 | } 1010 | return false; 1011 | } 1012 | function memo(type, compare) { 1013 | { 1014 | if (!isValidElementType(type)) { 1015 | error("memo: The first argument must be a component. Instead received: %s", type === null ? "null" : typeof type); 1016 | } 1017 | } 1018 | var elementType = { 1019 | $$typeof: REACT_MEMO_TYPE, 1020 | type, 1021 | compare: compare === void 0 ? null : compare 1022 | }; 1023 | { 1024 | var ownName; 1025 | Object.defineProperty(elementType, "displayName", { 1026 | enumerable: false, 1027 | configurable: true, 1028 | get: function() { 1029 | return ownName; 1030 | }, 1031 | set: function(name) { 1032 | ownName = name; 1033 | if (!type.name && !type.displayName) { 1034 | type.displayName = name; 1035 | } 1036 | } 1037 | }); 1038 | } 1039 | return elementType; 1040 | } 1041 | function resolveDispatcher() { 1042 | var dispatcher = ReactCurrentDispatcher.current; 1043 | { 1044 | if (dispatcher === null) { 1045 | error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."); 1046 | } 1047 | } 1048 | return dispatcher; 1049 | } 1050 | function useContext(Context) { 1051 | var dispatcher = resolveDispatcher(); 1052 | { 1053 | if (Context._context !== void 0) { 1054 | var realContext = Context._context; 1055 | if (realContext.Consumer === Context) { 1056 | error("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"); 1057 | } else if (realContext.Provider === Context) { 1058 | error("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?"); 1059 | } 1060 | } 1061 | } 1062 | return dispatcher.useContext(Context); 1063 | } 1064 | function useState(initialState) { 1065 | var dispatcher = resolveDispatcher(); 1066 | return dispatcher.useState(initialState); 1067 | } 1068 | function useReducer(reducer, initialArg, init) { 1069 | var dispatcher = resolveDispatcher(); 1070 | return dispatcher.useReducer(reducer, initialArg, init); 1071 | } 1072 | function useRef(initialValue) { 1073 | var dispatcher = resolveDispatcher(); 1074 | return dispatcher.useRef(initialValue); 1075 | } 1076 | function useEffect(create, deps) { 1077 | var dispatcher = resolveDispatcher(); 1078 | return dispatcher.useEffect(create, deps); 1079 | } 1080 | function useInsertionEffect(create, deps) { 1081 | var dispatcher = resolveDispatcher(); 1082 | return dispatcher.useInsertionEffect(create, deps); 1083 | } 1084 | function useLayoutEffect(create, deps) { 1085 | var dispatcher = resolveDispatcher(); 1086 | return dispatcher.useLayoutEffect(create, deps); 1087 | } 1088 | function useCallback(callback, deps) { 1089 | var dispatcher = resolveDispatcher(); 1090 | return dispatcher.useCallback(callback, deps); 1091 | } 1092 | function useMemo(create, deps) { 1093 | var dispatcher = resolveDispatcher(); 1094 | return dispatcher.useMemo(create, deps); 1095 | } 1096 | function useImperativeHandle(ref, create, deps) { 1097 | var dispatcher = resolveDispatcher(); 1098 | return dispatcher.useImperativeHandle(ref, create, deps); 1099 | } 1100 | function useDebugValue(value, formatterFn) { 1101 | { 1102 | var dispatcher = resolveDispatcher(); 1103 | return dispatcher.useDebugValue(value, formatterFn); 1104 | } 1105 | } 1106 | function useTransition() { 1107 | var dispatcher = resolveDispatcher(); 1108 | return dispatcher.useTransition(); 1109 | } 1110 | function useDeferredValue(value) { 1111 | var dispatcher = resolveDispatcher(); 1112 | return dispatcher.useDeferredValue(value); 1113 | } 1114 | function useId() { 1115 | var dispatcher = resolveDispatcher(); 1116 | return dispatcher.useId(); 1117 | } 1118 | function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { 1119 | var dispatcher = resolveDispatcher(); 1120 | return dispatcher.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot); 1121 | } 1122 | var disabledDepth = 0; 1123 | var prevLog; 1124 | var prevInfo; 1125 | var prevWarn; 1126 | var prevError; 1127 | var prevGroup; 1128 | var prevGroupCollapsed; 1129 | var prevGroupEnd; 1130 | function disabledLog() { 1131 | } 1132 | disabledLog.__reactDisabledLog = true; 1133 | function disableLogs() { 1134 | { 1135 | if (disabledDepth === 0) { 1136 | prevLog = console.log; 1137 | prevInfo = console.info; 1138 | prevWarn = console.warn; 1139 | prevError = console.error; 1140 | prevGroup = console.group; 1141 | prevGroupCollapsed = console.groupCollapsed; 1142 | prevGroupEnd = console.groupEnd; 1143 | var props = { 1144 | configurable: true, 1145 | enumerable: true, 1146 | value: disabledLog, 1147 | writable: true 1148 | }; 1149 | Object.defineProperties(console, { 1150 | info: props, 1151 | log: props, 1152 | warn: props, 1153 | error: props, 1154 | group: props, 1155 | groupCollapsed: props, 1156 | groupEnd: props 1157 | }); 1158 | } 1159 | disabledDepth++; 1160 | } 1161 | } 1162 | function reenableLogs() { 1163 | { 1164 | disabledDepth--; 1165 | if (disabledDepth === 0) { 1166 | var props = { 1167 | configurable: true, 1168 | enumerable: true, 1169 | writable: true 1170 | }; 1171 | Object.defineProperties(console, { 1172 | log: assign({}, props, { 1173 | value: prevLog 1174 | }), 1175 | info: assign({}, props, { 1176 | value: prevInfo 1177 | }), 1178 | warn: assign({}, props, { 1179 | value: prevWarn 1180 | }), 1181 | error: assign({}, props, { 1182 | value: prevError 1183 | }), 1184 | group: assign({}, props, { 1185 | value: prevGroup 1186 | }), 1187 | groupCollapsed: assign({}, props, { 1188 | value: prevGroupCollapsed 1189 | }), 1190 | groupEnd: assign({}, props, { 1191 | value: prevGroupEnd 1192 | }) 1193 | }); 1194 | } 1195 | if (disabledDepth < 0) { 1196 | error("disabledDepth fell below zero. This is a bug in React. Please file an issue."); 1197 | } 1198 | } 1199 | } 1200 | var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher; 1201 | var prefix; 1202 | function describeBuiltInComponentFrame(name, source, ownerFn) { 1203 | { 1204 | if (prefix === void 0) { 1205 | try { 1206 | throw Error(); 1207 | } catch (x) { 1208 | var match = x.stack.trim().match(/\n( *(at )?)/); 1209 | prefix = match && match[1] || ""; 1210 | } 1211 | } 1212 | return "\n" + prefix + name; 1213 | } 1214 | } 1215 | var reentry = false; 1216 | var componentFrameCache; 1217 | { 1218 | var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map; 1219 | componentFrameCache = new PossiblyWeakMap(); 1220 | } 1221 | function describeNativeComponentFrame(fn, construct) { 1222 | if (!fn || reentry) { 1223 | return ""; 1224 | } 1225 | { 1226 | var frame = componentFrameCache.get(fn); 1227 | if (frame !== void 0) { 1228 | return frame; 1229 | } 1230 | } 1231 | var control; 1232 | reentry = true; 1233 | var previousPrepareStackTrace = Error.prepareStackTrace; 1234 | Error.prepareStackTrace = void 0; 1235 | var previousDispatcher; 1236 | { 1237 | previousDispatcher = ReactCurrentDispatcher$1.current; 1238 | ReactCurrentDispatcher$1.current = null; 1239 | disableLogs(); 1240 | } 1241 | try { 1242 | if (construct) { 1243 | var Fake = function() { 1244 | throw Error(); 1245 | }; 1246 | Object.defineProperty(Fake.prototype, "props", { 1247 | set: function() { 1248 | throw Error(); 1249 | } 1250 | }); 1251 | if (typeof Reflect === "object" && Reflect.construct) { 1252 | try { 1253 | Reflect.construct(Fake, []); 1254 | } catch (x) { 1255 | control = x; 1256 | } 1257 | Reflect.construct(fn, [], Fake); 1258 | } else { 1259 | try { 1260 | Fake.call(); 1261 | } catch (x) { 1262 | control = x; 1263 | } 1264 | fn.call(Fake.prototype); 1265 | } 1266 | } else { 1267 | try { 1268 | throw Error(); 1269 | } catch (x) { 1270 | control = x; 1271 | } 1272 | fn(); 1273 | } 1274 | } catch (sample) { 1275 | if (sample && control && typeof sample.stack === "string") { 1276 | var sampleLines = sample.stack.split("\n"); 1277 | var controlLines = control.stack.split("\n"); 1278 | var s = sampleLines.length - 1; 1279 | var c = controlLines.length - 1; 1280 | while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) { 1281 | c--; 1282 | } 1283 | for (; s >= 1 && c >= 0; s--, c--) { 1284 | if (sampleLines[s] !== controlLines[c]) { 1285 | if (s !== 1 || c !== 1) { 1286 | do { 1287 | s--; 1288 | c--; 1289 | if (c < 0 || sampleLines[s] !== controlLines[c]) { 1290 | var _frame = "\n" + sampleLines[s].replace(" at new ", " at "); 1291 | if (fn.displayName && _frame.includes("")) { 1292 | _frame = _frame.replace("", fn.displayName); 1293 | } 1294 | { 1295 | if (typeof fn === "function") { 1296 | componentFrameCache.set(fn, _frame); 1297 | } 1298 | } 1299 | return _frame; 1300 | } 1301 | } while (s >= 1 && c >= 0); 1302 | } 1303 | break; 1304 | } 1305 | } 1306 | } 1307 | } finally { 1308 | reentry = false; 1309 | { 1310 | ReactCurrentDispatcher$1.current = previousDispatcher; 1311 | reenableLogs(); 1312 | } 1313 | Error.prepareStackTrace = previousPrepareStackTrace; 1314 | } 1315 | var name = fn ? fn.displayName || fn.name : ""; 1316 | var syntheticFrame = name ? describeBuiltInComponentFrame(name) : ""; 1317 | { 1318 | if (typeof fn === "function") { 1319 | componentFrameCache.set(fn, syntheticFrame); 1320 | } 1321 | } 1322 | return syntheticFrame; 1323 | } 1324 | function describeFunctionComponentFrame(fn, source, ownerFn) { 1325 | { 1326 | return describeNativeComponentFrame(fn, false); 1327 | } 1328 | } 1329 | function shouldConstruct(Component2) { 1330 | var prototype = Component2.prototype; 1331 | return !!(prototype && prototype.isReactComponent); 1332 | } 1333 | function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) { 1334 | if (type == null) { 1335 | return ""; 1336 | } 1337 | if (typeof type === "function") { 1338 | { 1339 | return describeNativeComponentFrame(type, shouldConstruct(type)); 1340 | } 1341 | } 1342 | if (typeof type === "string") { 1343 | return describeBuiltInComponentFrame(type); 1344 | } 1345 | switch (type) { 1346 | case REACT_SUSPENSE_TYPE: 1347 | return describeBuiltInComponentFrame("Suspense"); 1348 | case REACT_SUSPENSE_LIST_TYPE: 1349 | return describeBuiltInComponentFrame("SuspenseList"); 1350 | } 1351 | if (typeof type === "object") { 1352 | switch (type.$$typeof) { 1353 | case REACT_FORWARD_REF_TYPE: 1354 | return describeFunctionComponentFrame(type.render); 1355 | case REACT_MEMO_TYPE: 1356 | return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn); 1357 | case REACT_LAZY_TYPE: { 1358 | var lazyComponent = type; 1359 | var payload = lazyComponent._payload; 1360 | var init = lazyComponent._init; 1361 | try { 1362 | return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn); 1363 | } catch (x) { 1364 | } 1365 | } 1366 | } 1367 | } 1368 | return ""; 1369 | } 1370 | var loggedTypeFailures = {}; 1371 | var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame; 1372 | function setCurrentlyValidatingElement(element) { 1373 | { 1374 | if (element) { 1375 | var owner = element._owner; 1376 | var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null); 1377 | ReactDebugCurrentFrame$1.setExtraStackFrame(stack); 1378 | } else { 1379 | ReactDebugCurrentFrame$1.setExtraStackFrame(null); 1380 | } 1381 | } 1382 | } 1383 | function checkPropTypes(typeSpecs, values, location, componentName, element) { 1384 | { 1385 | var has = Function.call.bind(hasOwnProperty); 1386 | for (var typeSpecName in typeSpecs) { 1387 | if (has(typeSpecs, typeSpecName)) { 1388 | var error$1 = void 0; 1389 | try { 1390 | if (typeof typeSpecs[typeSpecName] !== "function") { 1391 | var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); 1392 | err.name = "Invariant Violation"; 1393 | throw err; 1394 | } 1395 | error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); 1396 | } catch (ex) { 1397 | error$1 = ex; 1398 | } 1399 | if (error$1 && !(error$1 instanceof Error)) { 1400 | setCurrentlyValidatingElement(element); 1401 | error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1); 1402 | setCurrentlyValidatingElement(null); 1403 | } 1404 | if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) { 1405 | loggedTypeFailures[error$1.message] = true; 1406 | setCurrentlyValidatingElement(element); 1407 | error("Failed %s type: %s", location, error$1.message); 1408 | setCurrentlyValidatingElement(null); 1409 | } 1410 | } 1411 | } 1412 | } 1413 | } 1414 | function setCurrentlyValidatingElement$1(element) { 1415 | { 1416 | if (element) { 1417 | var owner = element._owner; 1418 | var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null); 1419 | setExtraStackFrame(stack); 1420 | } else { 1421 | setExtraStackFrame(null); 1422 | } 1423 | } 1424 | } 1425 | var propTypesMisspellWarningShown; 1426 | { 1427 | propTypesMisspellWarningShown = false; 1428 | } 1429 | function getDeclarationErrorAddendum() { 1430 | if (ReactCurrentOwner.current) { 1431 | var name = getComponentNameFromType(ReactCurrentOwner.current.type); 1432 | if (name) { 1433 | return "\n\nCheck the render method of `" + name + "`."; 1434 | } 1435 | } 1436 | return ""; 1437 | } 1438 | function getSourceInfoErrorAddendum(source) { 1439 | if (source !== void 0) { 1440 | var fileName = source.fileName.replace(/^.*[\\\/]/, ""); 1441 | var lineNumber = source.lineNumber; 1442 | return "\n\nCheck your code at " + fileName + ":" + lineNumber + "."; 1443 | } 1444 | return ""; 1445 | } 1446 | function getSourceInfoErrorAddendumForProps(elementProps) { 1447 | if (elementProps !== null && elementProps !== void 0) { 1448 | return getSourceInfoErrorAddendum(elementProps.__source); 1449 | } 1450 | return ""; 1451 | } 1452 | var ownerHasKeyUseWarning = {}; 1453 | function getCurrentComponentErrorInfo(parentType) { 1454 | var info = getDeclarationErrorAddendum(); 1455 | if (!info) { 1456 | var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name; 1457 | if (parentName) { 1458 | info = "\n\nCheck the top-level render call using <" + parentName + ">."; 1459 | } 1460 | } 1461 | return info; 1462 | } 1463 | function validateExplicitKey(element, parentType) { 1464 | if (!element._store || element._store.validated || element.key != null) { 1465 | return; 1466 | } 1467 | element._store.validated = true; 1468 | var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType); 1469 | if (ownerHasKeyUseWarning[currentComponentErrorInfo]) { 1470 | return; 1471 | } 1472 | ownerHasKeyUseWarning[currentComponentErrorInfo] = true; 1473 | var childOwner = ""; 1474 | if (element && element._owner && element._owner !== ReactCurrentOwner.current) { 1475 | childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + "."; 1476 | } 1477 | { 1478 | setCurrentlyValidatingElement$1(element); 1479 | error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner); 1480 | setCurrentlyValidatingElement$1(null); 1481 | } 1482 | } 1483 | function validateChildKeys(node, parentType) { 1484 | if (typeof node !== "object") { 1485 | return; 1486 | } 1487 | if (isArray(node)) { 1488 | for (var i = 0; i < node.length; i++) { 1489 | var child = node[i]; 1490 | if (isValidElement(child)) { 1491 | validateExplicitKey(child, parentType); 1492 | } 1493 | } 1494 | } else if (isValidElement(node)) { 1495 | if (node._store) { 1496 | node._store.validated = true; 1497 | } 1498 | } else if (node) { 1499 | var iteratorFn = getIteratorFn(node); 1500 | if (typeof iteratorFn === "function") { 1501 | if (iteratorFn !== node.entries) { 1502 | var iterator = iteratorFn.call(node); 1503 | var step; 1504 | while (!(step = iterator.next()).done) { 1505 | if (isValidElement(step.value)) { 1506 | validateExplicitKey(step.value, parentType); 1507 | } 1508 | } 1509 | } 1510 | } 1511 | } 1512 | } 1513 | function validatePropTypes(element) { 1514 | { 1515 | var type = element.type; 1516 | if (type === null || type === void 0 || typeof type === "string") { 1517 | return; 1518 | } 1519 | var propTypes; 1520 | if (typeof type === "function") { 1521 | propTypes = type.propTypes; 1522 | } else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here. 1523 | // Inner props are checked in the reconciler. 1524 | type.$$typeof === REACT_MEMO_TYPE)) { 1525 | propTypes = type.propTypes; 1526 | } else { 1527 | return; 1528 | } 1529 | if (propTypes) { 1530 | var name = getComponentNameFromType(type); 1531 | checkPropTypes(propTypes, element.props, "prop", name, element); 1532 | } else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) { 1533 | propTypesMisspellWarningShown = true; 1534 | var _name = getComponentNameFromType(type); 1535 | error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown"); 1536 | } 1537 | if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) { 1538 | error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); 1539 | } 1540 | } 1541 | } 1542 | function validateFragmentProps(fragment) { 1543 | { 1544 | var keys = Object.keys(fragment.props); 1545 | for (var i = 0; i < keys.length; i++) { 1546 | var key = keys[i]; 1547 | if (key !== "children" && key !== "key") { 1548 | setCurrentlyValidatingElement$1(fragment); 1549 | error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key); 1550 | setCurrentlyValidatingElement$1(null); 1551 | break; 1552 | } 1553 | } 1554 | if (fragment.ref !== null) { 1555 | setCurrentlyValidatingElement$1(fragment); 1556 | error("Invalid attribute `ref` supplied to `React.Fragment`."); 1557 | setCurrentlyValidatingElement$1(null); 1558 | } 1559 | } 1560 | } 1561 | function createElementWithValidation(type, props, children) { 1562 | var validType = isValidElementType(type); 1563 | if (!validType) { 1564 | var info = ""; 1565 | if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) { 1566 | info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."; 1567 | } 1568 | var sourceInfo = getSourceInfoErrorAddendumForProps(props); 1569 | if (sourceInfo) { 1570 | info += sourceInfo; 1571 | } else { 1572 | info += getDeclarationErrorAddendum(); 1573 | } 1574 | var typeString; 1575 | if (type === null) { 1576 | typeString = "null"; 1577 | } else if (isArray(type)) { 1578 | typeString = "array"; 1579 | } else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) { 1580 | typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />"; 1581 | info = " Did you accidentally export a JSX literal instead of a component?"; 1582 | } else { 1583 | typeString = typeof type; 1584 | } 1585 | { 1586 | error("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info); 1587 | } 1588 | } 1589 | var element = createElement.apply(this, arguments); 1590 | if (element == null) { 1591 | return element; 1592 | } 1593 | if (validType) { 1594 | for (var i = 2; i < arguments.length; i++) { 1595 | validateChildKeys(arguments[i], type); 1596 | } 1597 | } 1598 | if (type === REACT_FRAGMENT_TYPE) { 1599 | validateFragmentProps(element); 1600 | } else { 1601 | validatePropTypes(element); 1602 | } 1603 | return element; 1604 | } 1605 | var didWarnAboutDeprecatedCreateFactory = false; 1606 | function createFactoryWithValidation(type) { 1607 | var validatedFactory = createElementWithValidation.bind(null, type); 1608 | validatedFactory.type = type; 1609 | { 1610 | if (!didWarnAboutDeprecatedCreateFactory) { 1611 | didWarnAboutDeprecatedCreateFactory = true; 1612 | warn("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead."); 1613 | } 1614 | Object.defineProperty(validatedFactory, "type", { 1615 | enumerable: false, 1616 | get: function() { 1617 | warn("Factory.type is deprecated. Access the class directly before passing it to createFactory."); 1618 | Object.defineProperty(this, "type", { 1619 | value: type 1620 | }); 1621 | return type; 1622 | } 1623 | }); 1624 | } 1625 | return validatedFactory; 1626 | } 1627 | function cloneElementWithValidation(element, props, children) { 1628 | var newElement = cloneElement.apply(this, arguments); 1629 | for (var i = 2; i < arguments.length; i++) { 1630 | validateChildKeys(arguments[i], newElement.type); 1631 | } 1632 | validatePropTypes(newElement); 1633 | return newElement; 1634 | } 1635 | function startTransition(scope, options) { 1636 | var prevTransition = ReactCurrentBatchConfig.transition; 1637 | ReactCurrentBatchConfig.transition = {}; 1638 | var currentTransition = ReactCurrentBatchConfig.transition; 1639 | { 1640 | ReactCurrentBatchConfig.transition._updatedFibers = /* @__PURE__ */ new Set(); 1641 | } 1642 | try { 1643 | scope(); 1644 | } finally { 1645 | ReactCurrentBatchConfig.transition = prevTransition; 1646 | { 1647 | if (prevTransition === null && currentTransition._updatedFibers) { 1648 | var updatedFibersCount = currentTransition._updatedFibers.size; 1649 | if (updatedFibersCount > 10) { 1650 | warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."); 1651 | } 1652 | currentTransition._updatedFibers.clear(); 1653 | } 1654 | } 1655 | } 1656 | } 1657 | var didWarnAboutMessageChannel = false; 1658 | var enqueueTaskImpl = null; 1659 | function enqueueTask(task) { 1660 | if (enqueueTaskImpl === null) { 1661 | try { 1662 | var requireString = ("require" + Math.random()).slice(0, 7); 1663 | var nodeRequire = module && module[requireString]; 1664 | enqueueTaskImpl = nodeRequire.call(module, "timers").setImmediate; 1665 | } catch (_err) { 1666 | enqueueTaskImpl = function(callback) { 1667 | { 1668 | if (didWarnAboutMessageChannel === false) { 1669 | didWarnAboutMessageChannel = true; 1670 | if (typeof MessageChannel === "undefined") { 1671 | error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."); 1672 | } 1673 | } 1674 | } 1675 | var channel = new MessageChannel(); 1676 | channel.port1.onmessage = callback; 1677 | channel.port2.postMessage(void 0); 1678 | }; 1679 | } 1680 | } 1681 | return enqueueTaskImpl(task); 1682 | } 1683 | var actScopeDepth = 0; 1684 | var didWarnNoAwaitAct = false; 1685 | function act(callback) { 1686 | { 1687 | var prevActScopeDepth = actScopeDepth; 1688 | actScopeDepth++; 1689 | if (ReactCurrentActQueue.current === null) { 1690 | ReactCurrentActQueue.current = []; 1691 | } 1692 | var prevIsBatchingLegacy = ReactCurrentActQueue.isBatchingLegacy; 1693 | var result; 1694 | try { 1695 | ReactCurrentActQueue.isBatchingLegacy = true; 1696 | result = callback(); 1697 | if (!prevIsBatchingLegacy && ReactCurrentActQueue.didScheduleLegacyUpdate) { 1698 | var queue = ReactCurrentActQueue.current; 1699 | if (queue !== null) { 1700 | ReactCurrentActQueue.didScheduleLegacyUpdate = false; 1701 | flushActQueue(queue); 1702 | } 1703 | } 1704 | } catch (error2) { 1705 | popActScope(prevActScopeDepth); 1706 | throw error2; 1707 | } finally { 1708 | ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy; 1709 | } 1710 | if (result !== null && typeof result === "object" && typeof result.then === "function") { 1711 | var thenableResult = result; 1712 | var wasAwaited = false; 1713 | var thenable = { 1714 | then: function(resolve, reject) { 1715 | wasAwaited = true; 1716 | thenableResult.then(function(returnValue2) { 1717 | popActScope(prevActScopeDepth); 1718 | if (actScopeDepth === 0) { 1719 | recursivelyFlushAsyncActWork(returnValue2, resolve, reject); 1720 | } else { 1721 | resolve(returnValue2); 1722 | } 1723 | }, function(error2) { 1724 | popActScope(prevActScopeDepth); 1725 | reject(error2); 1726 | }); 1727 | } 1728 | }; 1729 | { 1730 | if (!didWarnNoAwaitAct && typeof Promise !== "undefined") { 1731 | Promise.resolve().then(function() { 1732 | }).then(function() { 1733 | if (!wasAwaited) { 1734 | didWarnNoAwaitAct = true; 1735 | error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"); 1736 | } 1737 | }); 1738 | } 1739 | } 1740 | return thenable; 1741 | } else { 1742 | var returnValue = result; 1743 | popActScope(prevActScopeDepth); 1744 | if (actScopeDepth === 0) { 1745 | var _queue = ReactCurrentActQueue.current; 1746 | if (_queue !== null) { 1747 | flushActQueue(_queue); 1748 | ReactCurrentActQueue.current = null; 1749 | } 1750 | var _thenable = { 1751 | then: function(resolve, reject) { 1752 | if (ReactCurrentActQueue.current === null) { 1753 | ReactCurrentActQueue.current = []; 1754 | recursivelyFlushAsyncActWork(returnValue, resolve, reject); 1755 | } else { 1756 | resolve(returnValue); 1757 | } 1758 | } 1759 | }; 1760 | return _thenable; 1761 | } else { 1762 | var _thenable2 = { 1763 | then: function(resolve, reject) { 1764 | resolve(returnValue); 1765 | } 1766 | }; 1767 | return _thenable2; 1768 | } 1769 | } 1770 | } 1771 | } 1772 | function popActScope(prevActScopeDepth) { 1773 | { 1774 | if (prevActScopeDepth !== actScopeDepth - 1) { 1775 | error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "); 1776 | } 1777 | actScopeDepth = prevActScopeDepth; 1778 | } 1779 | } 1780 | function recursivelyFlushAsyncActWork(returnValue, resolve, reject) { 1781 | { 1782 | var queue = ReactCurrentActQueue.current; 1783 | if (queue !== null) { 1784 | try { 1785 | flushActQueue(queue); 1786 | enqueueTask(function() { 1787 | if (queue.length === 0) { 1788 | ReactCurrentActQueue.current = null; 1789 | resolve(returnValue); 1790 | } else { 1791 | recursivelyFlushAsyncActWork(returnValue, resolve, reject); 1792 | } 1793 | }); 1794 | } catch (error2) { 1795 | reject(error2); 1796 | } 1797 | } else { 1798 | resolve(returnValue); 1799 | } 1800 | } 1801 | } 1802 | var isFlushing = false; 1803 | function flushActQueue(queue) { 1804 | { 1805 | if (!isFlushing) { 1806 | isFlushing = true; 1807 | var i = 0; 1808 | try { 1809 | for (; i < queue.length; i++) { 1810 | var callback = queue[i]; 1811 | do { 1812 | callback = callback(true); 1813 | } while (callback !== null); 1814 | } 1815 | queue.length = 0; 1816 | } catch (error2) { 1817 | queue = queue.slice(i + 1); 1818 | throw error2; 1819 | } finally { 1820 | isFlushing = false; 1821 | } 1822 | } 1823 | } 1824 | } 1825 | var createElement$1 = createElementWithValidation; 1826 | var cloneElement$1 = cloneElementWithValidation; 1827 | var createFactory = createFactoryWithValidation; 1828 | var Children = { 1829 | map: mapChildren, 1830 | forEach: forEachChildren, 1831 | count: countChildren, 1832 | toArray, 1833 | only: onlyChild 1834 | }; 1835 | exports.Children = Children; 1836 | exports.Component = Component; 1837 | exports.Fragment = REACT_FRAGMENT_TYPE; 1838 | exports.Profiler = REACT_PROFILER_TYPE; 1839 | exports.PureComponent = PureComponent; 1840 | exports.StrictMode = REACT_STRICT_MODE_TYPE; 1841 | exports.Suspense = REACT_SUSPENSE_TYPE; 1842 | exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals; 1843 | exports.act = act; 1844 | exports.cloneElement = cloneElement$1; 1845 | exports.createContext = createContext; 1846 | exports.createElement = createElement$1; 1847 | exports.createFactory = createFactory; 1848 | exports.createRef = createRef; 1849 | exports.forwardRef = forwardRef; 1850 | exports.isValidElement = isValidElement; 1851 | exports.lazy = lazy; 1852 | exports.memo = memo; 1853 | exports.startTransition = startTransition; 1854 | exports.unstable_act = act; 1855 | exports.useCallback = useCallback; 1856 | exports.useContext = useContext; 1857 | exports.useDebugValue = useDebugValue; 1858 | exports.useDeferredValue = useDeferredValue; 1859 | exports.useEffect = useEffect; 1860 | exports.useId = useId; 1861 | exports.useImperativeHandle = useImperativeHandle; 1862 | exports.useInsertionEffect = useInsertionEffect; 1863 | exports.useLayoutEffect = useLayoutEffect; 1864 | exports.useMemo = useMemo; 1865 | exports.useReducer = useReducer; 1866 | exports.useRef = useRef; 1867 | exports.useState = useState; 1868 | exports.useSyncExternalStore = useSyncExternalStore; 1869 | exports.useTransition = useTransition; 1870 | exports.version = ReactVersion; 1871 | if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") { 1872 | __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error()); 1873 | } 1874 | })(); 1875 | } 1876 | } 1877 | }); 1878 | 1879 | // node_modules/react/index.js 1880 | var require_react = __commonJS({ 1881 | "node_modules/react/index.js"(exports, module) { 1882 | if (false) { 1883 | module.exports = null; 1884 | } else { 1885 | module.exports = require_react_development(); 1886 | } 1887 | } 1888 | }); 1889 | 1890 | export { 1891 | require_react 1892 | }; 1893 | /*! Bundled license information: 1894 | 1895 | react/cjs/react.development.js: 1896 | (** 1897 | * @license React 1898 | * react.development.js 1899 | * 1900 | * Copyright (c) Facebook, Inc. and its affiliates. 1901 | * 1902 | * This source code is licensed under the MIT license found in the 1903 | * LICENSE file in the root directory of this source tree. 1904 | *) 1905 | */ 1906 | //# sourceMappingURL=chunk-GE3BAENF.js.map 1907 | -------------------------------------------------------------------------------- /server/client/.vite/deps/axios.js: -------------------------------------------------------------------------------- 1 | import { 2 | __export 3 | } from "./chunk-6TJCVOLN.js"; 4 | 5 | // node_modules/axios/lib/helpers/bind.js 6 | function bind(fn, thisArg) { 7 | return function wrap() { 8 | return fn.apply(thisArg, arguments); 9 | }; 10 | } 11 | 12 | // node_modules/axios/lib/utils.js 13 | var { toString } = Object.prototype; 14 | var { getPrototypeOf } = Object; 15 | var { iterator, toStringTag } = Symbol; 16 | var kindOf = ((cache) => (thing) => { 17 | const str = toString.call(thing); 18 | return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase()); 19 | })(/* @__PURE__ */ Object.create(null)); 20 | var kindOfTest = (type) => { 21 | type = type.toLowerCase(); 22 | return (thing) => kindOf(thing) === type; 23 | }; 24 | var typeOfTest = (type) => (thing) => typeof thing === type; 25 | var { isArray } = Array; 26 | var isUndefined = typeOfTest("undefined"); 27 | function isBuffer(val) { 28 | return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val); 29 | } 30 | var isArrayBuffer = kindOfTest("ArrayBuffer"); 31 | function isArrayBufferView(val) { 32 | let result; 33 | if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) { 34 | result = ArrayBuffer.isView(val); 35 | } else { 36 | result = val && val.buffer && isArrayBuffer(val.buffer); 37 | } 38 | return result; 39 | } 40 | var isString = typeOfTest("string"); 41 | var isFunction = typeOfTest("function"); 42 | var isNumber = typeOfTest("number"); 43 | var isObject = (thing) => thing !== null && typeof thing === "object"; 44 | var isBoolean = (thing) => thing === true || thing === false; 45 | var isPlainObject = (val) => { 46 | if (kindOf(val) !== "object") { 47 | return false; 48 | } 49 | const prototype3 = getPrototypeOf(val); 50 | return (prototype3 === null || prototype3 === Object.prototype || Object.getPrototypeOf(prototype3) === null) && !(toStringTag in val) && !(iterator in val); 51 | }; 52 | var isDate = kindOfTest("Date"); 53 | var isFile = kindOfTest("File"); 54 | var isBlob = kindOfTest("Blob"); 55 | var isFileList = kindOfTest("FileList"); 56 | var isStream = (val) => isObject(val) && isFunction(val.pipe); 57 | var isFormData = (thing) => { 58 | let kind; 59 | return thing && (typeof FormData === "function" && thing instanceof FormData || isFunction(thing.append) && ((kind = kindOf(thing)) === "formdata" || // detect form-data instance 60 | kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]")); 61 | }; 62 | var isURLSearchParams = kindOfTest("URLSearchParams"); 63 | var [isReadableStream, isRequest, isResponse, isHeaders] = ["ReadableStream", "Request", "Response", "Headers"].map(kindOfTest); 64 | var trim = (str) => str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ""); 65 | function forEach(obj, fn, { allOwnKeys = false } = {}) { 66 | if (obj === null || typeof obj === "undefined") { 67 | return; 68 | } 69 | let i; 70 | let l; 71 | if (typeof obj !== "object") { 72 | obj = [obj]; 73 | } 74 | if (isArray(obj)) { 75 | for (i = 0, l = obj.length; i < l; i++) { 76 | fn.call(null, obj[i], i, obj); 77 | } 78 | } else { 79 | const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj); 80 | const len = keys.length; 81 | let key; 82 | for (i = 0; i < len; i++) { 83 | key = keys[i]; 84 | fn.call(null, obj[key], key, obj); 85 | } 86 | } 87 | } 88 | function findKey(obj, key) { 89 | key = key.toLowerCase(); 90 | const keys = Object.keys(obj); 91 | let i = keys.length; 92 | let _key; 93 | while (i-- > 0) { 94 | _key = keys[i]; 95 | if (key === _key.toLowerCase()) { 96 | return _key; 97 | } 98 | } 99 | return null; 100 | } 101 | var _global = (() => { 102 | if (typeof globalThis !== "undefined") 103 | return globalThis; 104 | return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global; 105 | })(); 106 | var isContextDefined = (context) => !isUndefined(context) && context !== _global; 107 | function merge() { 108 | const { caseless } = isContextDefined(this) && this || {}; 109 | const result = {}; 110 | const assignValue = (val, key) => { 111 | const targetKey = caseless && findKey(result, key) || key; 112 | if (isPlainObject(result[targetKey]) && isPlainObject(val)) { 113 | result[targetKey] = merge(result[targetKey], val); 114 | } else if (isPlainObject(val)) { 115 | result[targetKey] = merge({}, val); 116 | } else if (isArray(val)) { 117 | result[targetKey] = val.slice(); 118 | } else { 119 | result[targetKey] = val; 120 | } 121 | }; 122 | for (let i = 0, l = arguments.length; i < l; i++) { 123 | arguments[i] && forEach(arguments[i], assignValue); 124 | } 125 | return result; 126 | } 127 | var extend = (a, b, thisArg, { allOwnKeys } = {}) => { 128 | forEach(b, (val, key) => { 129 | if (thisArg && isFunction(val)) { 130 | a[key] = bind(val, thisArg); 131 | } else { 132 | a[key] = val; 133 | } 134 | }, { allOwnKeys }); 135 | return a; 136 | }; 137 | var stripBOM = (content) => { 138 | if (content.charCodeAt(0) === 65279) { 139 | content = content.slice(1); 140 | } 141 | return content; 142 | }; 143 | var inherits = (constructor, superConstructor, props, descriptors2) => { 144 | constructor.prototype = Object.create(superConstructor.prototype, descriptors2); 145 | constructor.prototype.constructor = constructor; 146 | Object.defineProperty(constructor, "super", { 147 | value: superConstructor.prototype 148 | }); 149 | props && Object.assign(constructor.prototype, props); 150 | }; 151 | var toFlatObject = (sourceObj, destObj, filter2, propFilter) => { 152 | let props; 153 | let i; 154 | let prop; 155 | const merged = {}; 156 | destObj = destObj || {}; 157 | if (sourceObj == null) 158 | return destObj; 159 | do { 160 | props = Object.getOwnPropertyNames(sourceObj); 161 | i = props.length; 162 | while (i-- > 0) { 163 | prop = props[i]; 164 | if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) { 165 | destObj[prop] = sourceObj[prop]; 166 | merged[prop] = true; 167 | } 168 | } 169 | sourceObj = filter2 !== false && getPrototypeOf(sourceObj); 170 | } while (sourceObj && (!filter2 || filter2(sourceObj, destObj)) && sourceObj !== Object.prototype); 171 | return destObj; 172 | }; 173 | var endsWith = (str, searchString, position) => { 174 | str = String(str); 175 | if (position === void 0 || position > str.length) { 176 | position = str.length; 177 | } 178 | position -= searchString.length; 179 | const lastIndex = str.indexOf(searchString, position); 180 | return lastIndex !== -1 && lastIndex === position; 181 | }; 182 | var toArray = (thing) => { 183 | if (!thing) 184 | return null; 185 | if (isArray(thing)) 186 | return thing; 187 | let i = thing.length; 188 | if (!isNumber(i)) 189 | return null; 190 | const arr = new Array(i); 191 | while (i-- > 0) { 192 | arr[i] = thing[i]; 193 | } 194 | return arr; 195 | }; 196 | var isTypedArray = ((TypedArray) => { 197 | return (thing) => { 198 | return TypedArray && thing instanceof TypedArray; 199 | }; 200 | })(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array)); 201 | var forEachEntry = (obj, fn) => { 202 | const generator = obj && obj[iterator]; 203 | const _iterator = generator.call(obj); 204 | let result; 205 | while ((result = _iterator.next()) && !result.done) { 206 | const pair = result.value; 207 | fn.call(obj, pair[0], pair[1]); 208 | } 209 | }; 210 | var matchAll = (regExp, str) => { 211 | let matches; 212 | const arr = []; 213 | while ((matches = regExp.exec(str)) !== null) { 214 | arr.push(matches); 215 | } 216 | return arr; 217 | }; 218 | var isHTMLForm = kindOfTest("HTMLFormElement"); 219 | var toCamelCase = (str) => { 220 | return str.toLowerCase().replace( 221 | /[-_\s]([a-z\d])(\w*)/g, 222 | function replacer(m, p1, p2) { 223 | return p1.toUpperCase() + p2; 224 | } 225 | ); 226 | }; 227 | var hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype); 228 | var isRegExp = kindOfTest("RegExp"); 229 | var reduceDescriptors = (obj, reducer) => { 230 | const descriptors2 = Object.getOwnPropertyDescriptors(obj); 231 | const reducedDescriptors = {}; 232 | forEach(descriptors2, (descriptor, name) => { 233 | let ret; 234 | if ((ret = reducer(descriptor, name, obj)) !== false) { 235 | reducedDescriptors[name] = ret || descriptor; 236 | } 237 | }); 238 | Object.defineProperties(obj, reducedDescriptors); 239 | }; 240 | var freezeMethods = (obj) => { 241 | reduceDescriptors(obj, (descriptor, name) => { 242 | if (isFunction(obj) && ["arguments", "caller", "callee"].indexOf(name) !== -1) { 243 | return false; 244 | } 245 | const value = obj[name]; 246 | if (!isFunction(value)) 247 | return; 248 | descriptor.enumerable = false; 249 | if ("writable" in descriptor) { 250 | descriptor.writable = false; 251 | return; 252 | } 253 | if (!descriptor.set) { 254 | descriptor.set = () => { 255 | throw Error("Can not rewrite read-only method '" + name + "'"); 256 | }; 257 | } 258 | }); 259 | }; 260 | var toObjectSet = (arrayOrString, delimiter) => { 261 | const obj = {}; 262 | const define = (arr) => { 263 | arr.forEach((value) => { 264 | obj[value] = true; 265 | }); 266 | }; 267 | isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter)); 268 | return obj; 269 | }; 270 | var noop = () => { 271 | }; 272 | var toFiniteNumber = (value, defaultValue) => { 273 | return value != null && Number.isFinite(value = +value) ? value : defaultValue; 274 | }; 275 | function isSpecCompliantForm(thing) { 276 | return !!(thing && isFunction(thing.append) && thing[toStringTag] === "FormData" && thing[iterator]); 277 | } 278 | var toJSONObject = (obj) => { 279 | const stack = new Array(10); 280 | const visit = (source, i) => { 281 | if (isObject(source)) { 282 | if (stack.indexOf(source) >= 0) { 283 | return; 284 | } 285 | if (!("toJSON" in source)) { 286 | stack[i] = source; 287 | const target = isArray(source) ? [] : {}; 288 | forEach(source, (value, key) => { 289 | const reducedValue = visit(value, i + 1); 290 | !isUndefined(reducedValue) && (target[key] = reducedValue); 291 | }); 292 | stack[i] = void 0; 293 | return target; 294 | } 295 | } 296 | return source; 297 | }; 298 | return visit(obj, 0); 299 | }; 300 | var isAsyncFn = kindOfTest("AsyncFunction"); 301 | var isThenable = (thing) => thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch); 302 | var _setImmediate = ((setImmediateSupported, postMessageSupported) => { 303 | if (setImmediateSupported) { 304 | return setImmediate; 305 | } 306 | return postMessageSupported ? ((token, callbacks) => { 307 | _global.addEventListener("message", ({ source, data }) => { 308 | if (source === _global && data === token) { 309 | callbacks.length && callbacks.shift()(); 310 | } 311 | }, false); 312 | return (cb) => { 313 | callbacks.push(cb); 314 | _global.postMessage(token, "*"); 315 | }; 316 | })(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb); 317 | })( 318 | typeof setImmediate === "function", 319 | isFunction(_global.postMessage) 320 | ); 321 | var asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate; 322 | var isIterable = (thing) => thing != null && isFunction(thing[iterator]); 323 | var utils_default = { 324 | isArray, 325 | isArrayBuffer, 326 | isBuffer, 327 | isFormData, 328 | isArrayBufferView, 329 | isString, 330 | isNumber, 331 | isBoolean, 332 | isObject, 333 | isPlainObject, 334 | isReadableStream, 335 | isRequest, 336 | isResponse, 337 | isHeaders, 338 | isUndefined, 339 | isDate, 340 | isFile, 341 | isBlob, 342 | isRegExp, 343 | isFunction, 344 | isStream, 345 | isURLSearchParams, 346 | isTypedArray, 347 | isFileList, 348 | forEach, 349 | merge, 350 | extend, 351 | trim, 352 | stripBOM, 353 | inherits, 354 | toFlatObject, 355 | kindOf, 356 | kindOfTest, 357 | endsWith, 358 | toArray, 359 | forEachEntry, 360 | matchAll, 361 | isHTMLForm, 362 | hasOwnProperty, 363 | hasOwnProp: hasOwnProperty, 364 | // an alias to avoid ESLint no-prototype-builtins detection 365 | reduceDescriptors, 366 | freezeMethods, 367 | toObjectSet, 368 | toCamelCase, 369 | noop, 370 | toFiniteNumber, 371 | findKey, 372 | global: _global, 373 | isContextDefined, 374 | isSpecCompliantForm, 375 | toJSONObject, 376 | isAsyncFn, 377 | isThenable, 378 | setImmediate: _setImmediate, 379 | asap, 380 | isIterable 381 | }; 382 | 383 | // node_modules/axios/lib/core/AxiosError.js 384 | function AxiosError(message, code, config, request, response) { 385 | Error.call(this); 386 | if (Error.captureStackTrace) { 387 | Error.captureStackTrace(this, this.constructor); 388 | } else { 389 | this.stack = new Error().stack; 390 | } 391 | this.message = message; 392 | this.name = "AxiosError"; 393 | code && (this.code = code); 394 | config && (this.config = config); 395 | request && (this.request = request); 396 | if (response) { 397 | this.response = response; 398 | this.status = response.status ? response.status : null; 399 | } 400 | } 401 | utils_default.inherits(AxiosError, Error, { 402 | toJSON: function toJSON() { 403 | return { 404 | // Standard 405 | message: this.message, 406 | name: this.name, 407 | // Microsoft 408 | description: this.description, 409 | number: this.number, 410 | // Mozilla 411 | fileName: this.fileName, 412 | lineNumber: this.lineNumber, 413 | columnNumber: this.columnNumber, 414 | stack: this.stack, 415 | // Axios 416 | config: utils_default.toJSONObject(this.config), 417 | code: this.code, 418 | status: this.status 419 | }; 420 | } 421 | }); 422 | var prototype = AxiosError.prototype; 423 | var descriptors = {}; 424 | [ 425 | "ERR_BAD_OPTION_VALUE", 426 | "ERR_BAD_OPTION", 427 | "ECONNABORTED", 428 | "ETIMEDOUT", 429 | "ERR_NETWORK", 430 | "ERR_FR_TOO_MANY_REDIRECTS", 431 | "ERR_DEPRECATED", 432 | "ERR_BAD_RESPONSE", 433 | "ERR_BAD_REQUEST", 434 | "ERR_CANCELED", 435 | "ERR_NOT_SUPPORT", 436 | "ERR_INVALID_URL" 437 | // eslint-disable-next-line func-names 438 | ].forEach((code) => { 439 | descriptors[code] = { value: code }; 440 | }); 441 | Object.defineProperties(AxiosError, descriptors); 442 | Object.defineProperty(prototype, "isAxiosError", { value: true }); 443 | AxiosError.from = (error, code, config, request, response, customProps) => { 444 | const axiosError = Object.create(prototype); 445 | utils_default.toFlatObject(error, axiosError, function filter2(obj) { 446 | return obj !== Error.prototype; 447 | }, (prop) => { 448 | return prop !== "isAxiosError"; 449 | }); 450 | AxiosError.call(axiosError, error.message, code, config, request, response); 451 | axiosError.cause = error; 452 | axiosError.name = error.name; 453 | customProps && Object.assign(axiosError, customProps); 454 | return axiosError; 455 | }; 456 | var AxiosError_default = AxiosError; 457 | 458 | // node_modules/axios/lib/helpers/null.js 459 | var null_default = null; 460 | 461 | // node_modules/axios/lib/helpers/toFormData.js 462 | function isVisitable(thing) { 463 | return utils_default.isPlainObject(thing) || utils_default.isArray(thing); 464 | } 465 | function removeBrackets(key) { 466 | return utils_default.endsWith(key, "[]") ? key.slice(0, -2) : key; 467 | } 468 | function renderKey(path, key, dots) { 469 | if (!path) 470 | return key; 471 | return path.concat(key).map(function each(token, i) { 472 | token = removeBrackets(token); 473 | return !dots && i ? "[" + token + "]" : token; 474 | }).join(dots ? "." : ""); 475 | } 476 | function isFlatArray(arr) { 477 | return utils_default.isArray(arr) && !arr.some(isVisitable); 478 | } 479 | var predicates = utils_default.toFlatObject(utils_default, {}, null, function filter(prop) { 480 | return /^is[A-Z]/.test(prop); 481 | }); 482 | function toFormData(obj, formData, options) { 483 | if (!utils_default.isObject(obj)) { 484 | throw new TypeError("target must be an object"); 485 | } 486 | formData = formData || new (null_default || FormData)(); 487 | options = utils_default.toFlatObject(options, { 488 | metaTokens: true, 489 | dots: false, 490 | indexes: false 491 | }, false, function defined(option, source) { 492 | return !utils_default.isUndefined(source[option]); 493 | }); 494 | const metaTokens = options.metaTokens; 495 | const visitor = options.visitor || defaultVisitor; 496 | const dots = options.dots; 497 | const indexes = options.indexes; 498 | const _Blob = options.Blob || typeof Blob !== "undefined" && Blob; 499 | const useBlob = _Blob && utils_default.isSpecCompliantForm(formData); 500 | if (!utils_default.isFunction(visitor)) { 501 | throw new TypeError("visitor must be a function"); 502 | } 503 | function convertValue(value) { 504 | if (value === null) 505 | return ""; 506 | if (utils_default.isDate(value)) { 507 | return value.toISOString(); 508 | } 509 | if (utils_default.isBoolean(value)) { 510 | return value.toString(); 511 | } 512 | if (!useBlob && utils_default.isBlob(value)) { 513 | throw new AxiosError_default("Blob is not supported. Use a Buffer instead."); 514 | } 515 | if (utils_default.isArrayBuffer(value) || utils_default.isTypedArray(value)) { 516 | return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value); 517 | } 518 | return value; 519 | } 520 | function defaultVisitor(value, key, path) { 521 | let arr = value; 522 | if (value && !path && typeof value === "object") { 523 | if (utils_default.endsWith(key, "{}")) { 524 | key = metaTokens ? key : key.slice(0, -2); 525 | value = JSON.stringify(value); 526 | } else if (utils_default.isArray(value) && isFlatArray(value) || (utils_default.isFileList(value) || utils_default.endsWith(key, "[]")) && (arr = utils_default.toArray(value))) { 527 | key = removeBrackets(key); 528 | arr.forEach(function each(el, index) { 529 | !(utils_default.isUndefined(el) || el === null) && formData.append( 530 | // eslint-disable-next-line no-nested-ternary 531 | indexes === true ? renderKey([key], index, dots) : indexes === null ? key : key + "[]", 532 | convertValue(el) 533 | ); 534 | }); 535 | return false; 536 | } 537 | } 538 | if (isVisitable(value)) { 539 | return true; 540 | } 541 | formData.append(renderKey(path, key, dots), convertValue(value)); 542 | return false; 543 | } 544 | const stack = []; 545 | const exposedHelpers = Object.assign(predicates, { 546 | defaultVisitor, 547 | convertValue, 548 | isVisitable 549 | }); 550 | function build(value, path) { 551 | if (utils_default.isUndefined(value)) 552 | return; 553 | if (stack.indexOf(value) !== -1) { 554 | throw Error("Circular reference detected in " + path.join(".")); 555 | } 556 | stack.push(value); 557 | utils_default.forEach(value, function each(el, key) { 558 | const result = !(utils_default.isUndefined(el) || el === null) && visitor.call( 559 | formData, 560 | el, 561 | utils_default.isString(key) ? key.trim() : key, 562 | path, 563 | exposedHelpers 564 | ); 565 | if (result === true) { 566 | build(el, path ? path.concat(key) : [key]); 567 | } 568 | }); 569 | stack.pop(); 570 | } 571 | if (!utils_default.isObject(obj)) { 572 | throw new TypeError("data must be an object"); 573 | } 574 | build(obj); 575 | return formData; 576 | } 577 | var toFormData_default = toFormData; 578 | 579 | // node_modules/axios/lib/helpers/AxiosURLSearchParams.js 580 | function encode(str) { 581 | const charMap = { 582 | "!": "%21", 583 | "'": "%27", 584 | "(": "%28", 585 | ")": "%29", 586 | "~": "%7E", 587 | "%20": "+", 588 | "%00": "\0" 589 | }; 590 | return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) { 591 | return charMap[match]; 592 | }); 593 | } 594 | function AxiosURLSearchParams(params, options) { 595 | this._pairs = []; 596 | params && toFormData_default(params, this, options); 597 | } 598 | var prototype2 = AxiosURLSearchParams.prototype; 599 | prototype2.append = function append(name, value) { 600 | this._pairs.push([name, value]); 601 | }; 602 | prototype2.toString = function toString2(encoder) { 603 | const _encode = encoder ? function(value) { 604 | return encoder.call(this, value, encode); 605 | } : encode; 606 | return this._pairs.map(function each(pair) { 607 | return _encode(pair[0]) + "=" + _encode(pair[1]); 608 | }, "").join("&"); 609 | }; 610 | var AxiosURLSearchParams_default = AxiosURLSearchParams; 611 | 612 | // node_modules/axios/lib/helpers/buildURL.js 613 | function encode2(val) { 614 | return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]"); 615 | } 616 | function buildURL(url, params, options) { 617 | if (!params) { 618 | return url; 619 | } 620 | const _encode = options && options.encode || encode2; 621 | if (utils_default.isFunction(options)) { 622 | options = { 623 | serialize: options 624 | }; 625 | } 626 | const serializeFn = options && options.serialize; 627 | let serializedParams; 628 | if (serializeFn) { 629 | serializedParams = serializeFn(params, options); 630 | } else { 631 | serializedParams = utils_default.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams_default(params, options).toString(_encode); 632 | } 633 | if (serializedParams) { 634 | const hashmarkIndex = url.indexOf("#"); 635 | if (hashmarkIndex !== -1) { 636 | url = url.slice(0, hashmarkIndex); 637 | } 638 | url += (url.indexOf("?") === -1 ? "?" : "&") + serializedParams; 639 | } 640 | return url; 641 | } 642 | 643 | // node_modules/axios/lib/core/InterceptorManager.js 644 | var InterceptorManager = class { 645 | constructor() { 646 | this.handlers = []; 647 | } 648 | /** 649 | * Add a new interceptor to the stack 650 | * 651 | * @param {Function} fulfilled The function to handle `then` for a `Promise` 652 | * @param {Function} rejected The function to handle `reject` for a `Promise` 653 | * 654 | * @return {Number} An ID used to remove interceptor later 655 | */ 656 | use(fulfilled, rejected, options) { 657 | this.handlers.push({ 658 | fulfilled, 659 | rejected, 660 | synchronous: options ? options.synchronous : false, 661 | runWhen: options ? options.runWhen : null 662 | }); 663 | return this.handlers.length - 1; 664 | } 665 | /** 666 | * Remove an interceptor from the stack 667 | * 668 | * @param {Number} id The ID that was returned by `use` 669 | * 670 | * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise 671 | */ 672 | eject(id) { 673 | if (this.handlers[id]) { 674 | this.handlers[id] = null; 675 | } 676 | } 677 | /** 678 | * Clear all interceptors from the stack 679 | * 680 | * @returns {void} 681 | */ 682 | clear() { 683 | if (this.handlers) { 684 | this.handlers = []; 685 | } 686 | } 687 | /** 688 | * Iterate over all the registered interceptors 689 | * 690 | * This method is particularly useful for skipping over any 691 | * interceptors that may have become `null` calling `eject`. 692 | * 693 | * @param {Function} fn The function to call for each interceptor 694 | * 695 | * @returns {void} 696 | */ 697 | forEach(fn) { 698 | utils_default.forEach(this.handlers, function forEachHandler(h) { 699 | if (h !== null) { 700 | fn(h); 701 | } 702 | }); 703 | } 704 | }; 705 | var InterceptorManager_default = InterceptorManager; 706 | 707 | // node_modules/axios/lib/defaults/transitional.js 708 | var transitional_default = { 709 | silentJSONParsing: true, 710 | forcedJSONParsing: true, 711 | clarifyTimeoutError: false 712 | }; 713 | 714 | // node_modules/axios/lib/platform/browser/classes/URLSearchParams.js 715 | var URLSearchParams_default = typeof URLSearchParams !== "undefined" ? URLSearchParams : AxiosURLSearchParams_default; 716 | 717 | // node_modules/axios/lib/platform/browser/classes/FormData.js 718 | var FormData_default = typeof FormData !== "undefined" ? FormData : null; 719 | 720 | // node_modules/axios/lib/platform/browser/classes/Blob.js 721 | var Blob_default = typeof Blob !== "undefined" ? Blob : null; 722 | 723 | // node_modules/axios/lib/platform/browser/index.js 724 | var browser_default = { 725 | isBrowser: true, 726 | classes: { 727 | URLSearchParams: URLSearchParams_default, 728 | FormData: FormData_default, 729 | Blob: Blob_default 730 | }, 731 | protocols: ["http", "https", "file", "blob", "url", "data"] 732 | }; 733 | 734 | // node_modules/axios/lib/platform/common/utils.js 735 | var utils_exports = {}; 736 | __export(utils_exports, { 737 | hasBrowserEnv: () => hasBrowserEnv, 738 | hasStandardBrowserEnv: () => hasStandardBrowserEnv, 739 | hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv, 740 | navigator: () => _navigator, 741 | origin: () => origin 742 | }); 743 | var hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined"; 744 | var _navigator = typeof navigator === "object" && navigator || void 0; 745 | var hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || ["ReactNative", "NativeScript", "NS"].indexOf(_navigator.product) < 0); 746 | var hasStandardBrowserWebWorkerEnv = (() => { 747 | return typeof WorkerGlobalScope !== "undefined" && // eslint-disable-next-line no-undef 748 | self instanceof WorkerGlobalScope && typeof self.importScripts === "function"; 749 | })(); 750 | var origin = hasBrowserEnv && window.location.href || "http://localhost"; 751 | 752 | // node_modules/axios/lib/platform/index.js 753 | var platform_default = { 754 | ...utils_exports, 755 | ...browser_default 756 | }; 757 | 758 | // node_modules/axios/lib/helpers/toURLEncodedForm.js 759 | function toURLEncodedForm(data, options) { 760 | return toFormData_default(data, new platform_default.classes.URLSearchParams(), Object.assign({ 761 | visitor: function(value, key, path, helpers) { 762 | if (platform_default.isNode && utils_default.isBuffer(value)) { 763 | this.append(key, value.toString("base64")); 764 | return false; 765 | } 766 | return helpers.defaultVisitor.apply(this, arguments); 767 | } 768 | }, options)); 769 | } 770 | 771 | // node_modules/axios/lib/helpers/formDataToJSON.js 772 | function parsePropPath(name) { 773 | return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => { 774 | return match[0] === "[]" ? "" : match[1] || match[0]; 775 | }); 776 | } 777 | function arrayToObject(arr) { 778 | const obj = {}; 779 | const keys = Object.keys(arr); 780 | let i; 781 | const len = keys.length; 782 | let key; 783 | for (i = 0; i < len; i++) { 784 | key = keys[i]; 785 | obj[key] = arr[key]; 786 | } 787 | return obj; 788 | } 789 | function formDataToJSON(formData) { 790 | function buildPath(path, value, target, index) { 791 | let name = path[index++]; 792 | if (name === "__proto__") 793 | return true; 794 | const isNumericKey = Number.isFinite(+name); 795 | const isLast = index >= path.length; 796 | name = !name && utils_default.isArray(target) ? target.length : name; 797 | if (isLast) { 798 | if (utils_default.hasOwnProp(target, name)) { 799 | target[name] = [target[name], value]; 800 | } else { 801 | target[name] = value; 802 | } 803 | return !isNumericKey; 804 | } 805 | if (!target[name] || !utils_default.isObject(target[name])) { 806 | target[name] = []; 807 | } 808 | const result = buildPath(path, value, target[name], index); 809 | if (result && utils_default.isArray(target[name])) { 810 | target[name] = arrayToObject(target[name]); 811 | } 812 | return !isNumericKey; 813 | } 814 | if (utils_default.isFormData(formData) && utils_default.isFunction(formData.entries)) { 815 | const obj = {}; 816 | utils_default.forEachEntry(formData, (name, value) => { 817 | buildPath(parsePropPath(name), value, obj, 0); 818 | }); 819 | return obj; 820 | } 821 | return null; 822 | } 823 | var formDataToJSON_default = formDataToJSON; 824 | 825 | // node_modules/axios/lib/defaults/index.js 826 | function stringifySafely(rawValue, parser, encoder) { 827 | if (utils_default.isString(rawValue)) { 828 | try { 829 | (parser || JSON.parse)(rawValue); 830 | return utils_default.trim(rawValue); 831 | } catch (e) { 832 | if (e.name !== "SyntaxError") { 833 | throw e; 834 | } 835 | } 836 | } 837 | return (encoder || JSON.stringify)(rawValue); 838 | } 839 | var defaults = { 840 | transitional: transitional_default, 841 | adapter: ["xhr", "http", "fetch"], 842 | transformRequest: [function transformRequest(data, headers) { 843 | const contentType = headers.getContentType() || ""; 844 | const hasJSONContentType = contentType.indexOf("application/json") > -1; 845 | const isObjectPayload = utils_default.isObject(data); 846 | if (isObjectPayload && utils_default.isHTMLForm(data)) { 847 | data = new FormData(data); 848 | } 849 | const isFormData2 = utils_default.isFormData(data); 850 | if (isFormData2) { 851 | return hasJSONContentType ? JSON.stringify(formDataToJSON_default(data)) : data; 852 | } 853 | if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data) || utils_default.isReadableStream(data)) { 854 | return data; 855 | } 856 | if (utils_default.isArrayBufferView(data)) { 857 | return data.buffer; 858 | } 859 | if (utils_default.isURLSearchParams(data)) { 860 | headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false); 861 | return data.toString(); 862 | } 863 | let isFileList2; 864 | if (isObjectPayload) { 865 | if (contentType.indexOf("application/x-www-form-urlencoded") > -1) { 866 | return toURLEncodedForm(data, this.formSerializer).toString(); 867 | } 868 | if ((isFileList2 = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) { 869 | const _FormData = this.env && this.env.FormData; 870 | return toFormData_default( 871 | isFileList2 ? { "files[]": data } : data, 872 | _FormData && new _FormData(), 873 | this.formSerializer 874 | ); 875 | } 876 | } 877 | if (isObjectPayload || hasJSONContentType) { 878 | headers.setContentType("application/json", false); 879 | return stringifySafely(data); 880 | } 881 | return data; 882 | }], 883 | transformResponse: [function transformResponse(data) { 884 | const transitional2 = this.transitional || defaults.transitional; 885 | const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing; 886 | const JSONRequested = this.responseType === "json"; 887 | if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) { 888 | return data; 889 | } 890 | if (data && utils_default.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) { 891 | const silentJSONParsing = transitional2 && transitional2.silentJSONParsing; 892 | const strictJSONParsing = !silentJSONParsing && JSONRequested; 893 | try { 894 | return JSON.parse(data); 895 | } catch (e) { 896 | if (strictJSONParsing) { 897 | if (e.name === "SyntaxError") { 898 | throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_RESPONSE, this, null, this.response); 899 | } 900 | throw e; 901 | } 902 | } 903 | } 904 | return data; 905 | }], 906 | /** 907 | * A timeout in milliseconds to abort a request. If set to 0 (default) a 908 | * timeout is not created. 909 | */ 910 | timeout: 0, 911 | xsrfCookieName: "XSRF-TOKEN", 912 | xsrfHeaderName: "X-XSRF-TOKEN", 913 | maxContentLength: -1, 914 | maxBodyLength: -1, 915 | env: { 916 | FormData: platform_default.classes.FormData, 917 | Blob: platform_default.classes.Blob 918 | }, 919 | validateStatus: function validateStatus(status) { 920 | return status >= 200 && status < 300; 921 | }, 922 | headers: { 923 | common: { 924 | "Accept": "application/json, text/plain, */*", 925 | "Content-Type": void 0 926 | } 927 | } 928 | }; 929 | utils_default.forEach(["delete", "get", "head", "post", "put", "patch"], (method) => { 930 | defaults.headers[method] = {}; 931 | }); 932 | var defaults_default = defaults; 933 | 934 | // node_modules/axios/lib/helpers/parseHeaders.js 935 | var ignoreDuplicateOf = utils_default.toObjectSet([ 936 | "age", 937 | "authorization", 938 | "content-length", 939 | "content-type", 940 | "etag", 941 | "expires", 942 | "from", 943 | "host", 944 | "if-modified-since", 945 | "if-unmodified-since", 946 | "last-modified", 947 | "location", 948 | "max-forwards", 949 | "proxy-authorization", 950 | "referer", 951 | "retry-after", 952 | "user-agent" 953 | ]); 954 | var parseHeaders_default = (rawHeaders) => { 955 | const parsed = {}; 956 | let key; 957 | let val; 958 | let i; 959 | rawHeaders && rawHeaders.split("\n").forEach(function parser(line) { 960 | i = line.indexOf(":"); 961 | key = line.substring(0, i).trim().toLowerCase(); 962 | val = line.substring(i + 1).trim(); 963 | if (!key || parsed[key] && ignoreDuplicateOf[key]) { 964 | return; 965 | } 966 | if (key === "set-cookie") { 967 | if (parsed[key]) { 968 | parsed[key].push(val); 969 | } else { 970 | parsed[key] = [val]; 971 | } 972 | } else { 973 | parsed[key] = parsed[key] ? parsed[key] + ", " + val : val; 974 | } 975 | }); 976 | return parsed; 977 | }; 978 | 979 | // node_modules/axios/lib/core/AxiosHeaders.js 980 | var $internals = Symbol("internals"); 981 | function normalizeHeader(header) { 982 | return header && String(header).trim().toLowerCase(); 983 | } 984 | function normalizeValue(value) { 985 | if (value === false || value == null) { 986 | return value; 987 | } 988 | return utils_default.isArray(value) ? value.map(normalizeValue) : String(value); 989 | } 990 | function parseTokens(str) { 991 | const tokens = /* @__PURE__ */ Object.create(null); 992 | const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g; 993 | let match; 994 | while (match = tokensRE.exec(str)) { 995 | tokens[match[1]] = match[2]; 996 | } 997 | return tokens; 998 | } 999 | var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim()); 1000 | function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) { 1001 | if (utils_default.isFunction(filter2)) { 1002 | return filter2.call(this, value, header); 1003 | } 1004 | if (isHeaderNameFilter) { 1005 | value = header; 1006 | } 1007 | if (!utils_default.isString(value)) 1008 | return; 1009 | if (utils_default.isString(filter2)) { 1010 | return value.indexOf(filter2) !== -1; 1011 | } 1012 | if (utils_default.isRegExp(filter2)) { 1013 | return filter2.test(value); 1014 | } 1015 | } 1016 | function formatHeader(header) { 1017 | return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => { 1018 | return char.toUpperCase() + str; 1019 | }); 1020 | } 1021 | function buildAccessors(obj, header) { 1022 | const accessorName = utils_default.toCamelCase(" " + header); 1023 | ["get", "set", "has"].forEach((methodName) => { 1024 | Object.defineProperty(obj, methodName + accessorName, { 1025 | value: function(arg1, arg2, arg3) { 1026 | return this[methodName].call(this, header, arg1, arg2, arg3); 1027 | }, 1028 | configurable: true 1029 | }); 1030 | }); 1031 | } 1032 | var AxiosHeaders = class { 1033 | constructor(headers) { 1034 | headers && this.set(headers); 1035 | } 1036 | set(header, valueOrRewrite, rewrite) { 1037 | const self2 = this; 1038 | function setHeader(_value, _header, _rewrite) { 1039 | const lHeader = normalizeHeader(_header); 1040 | if (!lHeader) { 1041 | throw new Error("header name must be a non-empty string"); 1042 | } 1043 | const key = utils_default.findKey(self2, lHeader); 1044 | if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) { 1045 | self2[key || _header] = normalizeValue(_value); 1046 | } 1047 | } 1048 | const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite)); 1049 | if (utils_default.isPlainObject(header) || header instanceof this.constructor) { 1050 | setHeaders(header, valueOrRewrite); 1051 | } else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) { 1052 | setHeaders(parseHeaders_default(header), valueOrRewrite); 1053 | } else if (utils_default.isObject(header) && utils_default.isIterable(header)) { 1054 | let obj = {}, dest, key; 1055 | for (const entry of header) { 1056 | if (!utils_default.isArray(entry)) { 1057 | throw TypeError("Object iterator must return a key-value pair"); 1058 | } 1059 | obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1]; 1060 | } 1061 | setHeaders(obj, valueOrRewrite); 1062 | } else { 1063 | header != null && setHeader(valueOrRewrite, header, rewrite); 1064 | } 1065 | return this; 1066 | } 1067 | get(header, parser) { 1068 | header = normalizeHeader(header); 1069 | if (header) { 1070 | const key = utils_default.findKey(this, header); 1071 | if (key) { 1072 | const value = this[key]; 1073 | if (!parser) { 1074 | return value; 1075 | } 1076 | if (parser === true) { 1077 | return parseTokens(value); 1078 | } 1079 | if (utils_default.isFunction(parser)) { 1080 | return parser.call(this, value, key); 1081 | } 1082 | if (utils_default.isRegExp(parser)) { 1083 | return parser.exec(value); 1084 | } 1085 | throw new TypeError("parser must be boolean|regexp|function"); 1086 | } 1087 | } 1088 | } 1089 | has(header, matcher) { 1090 | header = normalizeHeader(header); 1091 | if (header) { 1092 | const key = utils_default.findKey(this, header); 1093 | return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher))); 1094 | } 1095 | return false; 1096 | } 1097 | delete(header, matcher) { 1098 | const self2 = this; 1099 | let deleted = false; 1100 | function deleteHeader(_header) { 1101 | _header = normalizeHeader(_header); 1102 | if (_header) { 1103 | const key = utils_default.findKey(self2, _header); 1104 | if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) { 1105 | delete self2[key]; 1106 | deleted = true; 1107 | } 1108 | } 1109 | } 1110 | if (utils_default.isArray(header)) { 1111 | header.forEach(deleteHeader); 1112 | } else { 1113 | deleteHeader(header); 1114 | } 1115 | return deleted; 1116 | } 1117 | clear(matcher) { 1118 | const keys = Object.keys(this); 1119 | let i = keys.length; 1120 | let deleted = false; 1121 | while (i--) { 1122 | const key = keys[i]; 1123 | if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) { 1124 | delete this[key]; 1125 | deleted = true; 1126 | } 1127 | } 1128 | return deleted; 1129 | } 1130 | normalize(format) { 1131 | const self2 = this; 1132 | const headers = {}; 1133 | utils_default.forEach(this, (value, header) => { 1134 | const key = utils_default.findKey(headers, header); 1135 | if (key) { 1136 | self2[key] = normalizeValue(value); 1137 | delete self2[header]; 1138 | return; 1139 | } 1140 | const normalized = format ? formatHeader(header) : String(header).trim(); 1141 | if (normalized !== header) { 1142 | delete self2[header]; 1143 | } 1144 | self2[normalized] = normalizeValue(value); 1145 | headers[normalized] = true; 1146 | }); 1147 | return this; 1148 | } 1149 | concat(...targets) { 1150 | return this.constructor.concat(this, ...targets); 1151 | } 1152 | toJSON(asStrings) { 1153 | const obj = /* @__PURE__ */ Object.create(null); 1154 | utils_default.forEach(this, (value, header) => { 1155 | value != null && value !== false && (obj[header] = asStrings && utils_default.isArray(value) ? value.join(", ") : value); 1156 | }); 1157 | return obj; 1158 | } 1159 | [Symbol.iterator]() { 1160 | return Object.entries(this.toJSON())[Symbol.iterator](); 1161 | } 1162 | toString() { 1163 | return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n"); 1164 | } 1165 | getSetCookie() { 1166 | return this.get("set-cookie") || []; 1167 | } 1168 | get [Symbol.toStringTag]() { 1169 | return "AxiosHeaders"; 1170 | } 1171 | static from(thing) { 1172 | return thing instanceof this ? thing : new this(thing); 1173 | } 1174 | static concat(first, ...targets) { 1175 | const computed = new this(first); 1176 | targets.forEach((target) => computed.set(target)); 1177 | return computed; 1178 | } 1179 | static accessor(header) { 1180 | const internals = this[$internals] = this[$internals] = { 1181 | accessors: {} 1182 | }; 1183 | const accessors = internals.accessors; 1184 | const prototype3 = this.prototype; 1185 | function defineAccessor(_header) { 1186 | const lHeader = normalizeHeader(_header); 1187 | if (!accessors[lHeader]) { 1188 | buildAccessors(prototype3, _header); 1189 | accessors[lHeader] = true; 1190 | } 1191 | } 1192 | utils_default.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header); 1193 | return this; 1194 | } 1195 | }; 1196 | AxiosHeaders.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]); 1197 | utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => { 1198 | let mapped = key[0].toUpperCase() + key.slice(1); 1199 | return { 1200 | get: () => value, 1201 | set(headerValue) { 1202 | this[mapped] = headerValue; 1203 | } 1204 | }; 1205 | }); 1206 | utils_default.freezeMethods(AxiosHeaders); 1207 | var AxiosHeaders_default = AxiosHeaders; 1208 | 1209 | // node_modules/axios/lib/core/transformData.js 1210 | function transformData(fns, response) { 1211 | const config = this || defaults_default; 1212 | const context = response || config; 1213 | const headers = AxiosHeaders_default.from(context.headers); 1214 | let data = context.data; 1215 | utils_default.forEach(fns, function transform(fn) { 1216 | data = fn.call(config, data, headers.normalize(), response ? response.status : void 0); 1217 | }); 1218 | headers.normalize(); 1219 | return data; 1220 | } 1221 | 1222 | // node_modules/axios/lib/cancel/isCancel.js 1223 | function isCancel(value) { 1224 | return !!(value && value.__CANCEL__); 1225 | } 1226 | 1227 | // node_modules/axios/lib/cancel/CanceledError.js 1228 | function CanceledError(message, config, request) { 1229 | AxiosError_default.call(this, message == null ? "canceled" : message, AxiosError_default.ERR_CANCELED, config, request); 1230 | this.name = "CanceledError"; 1231 | } 1232 | utils_default.inherits(CanceledError, AxiosError_default, { 1233 | __CANCEL__: true 1234 | }); 1235 | var CanceledError_default = CanceledError; 1236 | 1237 | // node_modules/axios/lib/core/settle.js 1238 | function settle(resolve, reject, response) { 1239 | const validateStatus2 = response.config.validateStatus; 1240 | if (!response.status || !validateStatus2 || validateStatus2(response.status)) { 1241 | resolve(response); 1242 | } else { 1243 | reject(new AxiosError_default( 1244 | "Request failed with status code " + response.status, 1245 | [AxiosError_default.ERR_BAD_REQUEST, AxiosError_default.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4], 1246 | response.config, 1247 | response.request, 1248 | response 1249 | )); 1250 | } 1251 | } 1252 | 1253 | // node_modules/axios/lib/helpers/parseProtocol.js 1254 | function parseProtocol(url) { 1255 | const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url); 1256 | return match && match[1] || ""; 1257 | } 1258 | 1259 | // node_modules/axios/lib/helpers/speedometer.js 1260 | function speedometer(samplesCount, min) { 1261 | samplesCount = samplesCount || 10; 1262 | const bytes = new Array(samplesCount); 1263 | const timestamps = new Array(samplesCount); 1264 | let head = 0; 1265 | let tail = 0; 1266 | let firstSampleTS; 1267 | min = min !== void 0 ? min : 1e3; 1268 | return function push(chunkLength) { 1269 | const now = Date.now(); 1270 | const startedAt = timestamps[tail]; 1271 | if (!firstSampleTS) { 1272 | firstSampleTS = now; 1273 | } 1274 | bytes[head] = chunkLength; 1275 | timestamps[head] = now; 1276 | let i = tail; 1277 | let bytesCount = 0; 1278 | while (i !== head) { 1279 | bytesCount += bytes[i++]; 1280 | i = i % samplesCount; 1281 | } 1282 | head = (head + 1) % samplesCount; 1283 | if (head === tail) { 1284 | tail = (tail + 1) % samplesCount; 1285 | } 1286 | if (now - firstSampleTS < min) { 1287 | return; 1288 | } 1289 | const passed = startedAt && now - startedAt; 1290 | return passed ? Math.round(bytesCount * 1e3 / passed) : void 0; 1291 | }; 1292 | } 1293 | var speedometer_default = speedometer; 1294 | 1295 | // node_modules/axios/lib/helpers/throttle.js 1296 | function throttle(fn, freq) { 1297 | let timestamp = 0; 1298 | let threshold = 1e3 / freq; 1299 | let lastArgs; 1300 | let timer; 1301 | const invoke = (args, now = Date.now()) => { 1302 | timestamp = now; 1303 | lastArgs = null; 1304 | if (timer) { 1305 | clearTimeout(timer); 1306 | timer = null; 1307 | } 1308 | fn.apply(null, args); 1309 | }; 1310 | const throttled = (...args) => { 1311 | const now = Date.now(); 1312 | const passed = now - timestamp; 1313 | if (passed >= threshold) { 1314 | invoke(args, now); 1315 | } else { 1316 | lastArgs = args; 1317 | if (!timer) { 1318 | timer = setTimeout(() => { 1319 | timer = null; 1320 | invoke(lastArgs); 1321 | }, threshold - passed); 1322 | } 1323 | } 1324 | }; 1325 | const flush = () => lastArgs && invoke(lastArgs); 1326 | return [throttled, flush]; 1327 | } 1328 | var throttle_default = throttle; 1329 | 1330 | // node_modules/axios/lib/helpers/progressEventReducer.js 1331 | var progressEventReducer = (listener, isDownloadStream, freq = 3) => { 1332 | let bytesNotified = 0; 1333 | const _speedometer = speedometer_default(50, 250); 1334 | return throttle_default((e) => { 1335 | const loaded = e.loaded; 1336 | const total = e.lengthComputable ? e.total : void 0; 1337 | const progressBytes = loaded - bytesNotified; 1338 | const rate = _speedometer(progressBytes); 1339 | const inRange = loaded <= total; 1340 | bytesNotified = loaded; 1341 | const data = { 1342 | loaded, 1343 | total, 1344 | progress: total ? loaded / total : void 0, 1345 | bytes: progressBytes, 1346 | rate: rate ? rate : void 0, 1347 | estimated: rate && total && inRange ? (total - loaded) / rate : void 0, 1348 | event: e, 1349 | lengthComputable: total != null, 1350 | [isDownloadStream ? "download" : "upload"]: true 1351 | }; 1352 | listener(data); 1353 | }, freq); 1354 | }; 1355 | var progressEventDecorator = (total, throttled) => { 1356 | const lengthComputable = total != null; 1357 | return [(loaded) => throttled[0]({ 1358 | lengthComputable, 1359 | total, 1360 | loaded 1361 | }), throttled[1]]; 1362 | }; 1363 | var asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args)); 1364 | 1365 | // node_modules/axios/lib/helpers/isURLSameOrigin.js 1366 | var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? ((origin2, isMSIE) => (url) => { 1367 | url = new URL(url, platform_default.origin); 1368 | return origin2.protocol === url.protocol && origin2.host === url.host && (isMSIE || origin2.port === url.port); 1369 | })( 1370 | new URL(platform_default.origin), 1371 | platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent) 1372 | ) : () => true; 1373 | 1374 | // node_modules/axios/lib/helpers/cookies.js 1375 | var cookies_default = platform_default.hasStandardBrowserEnv ? ( 1376 | // Standard browser envs support document.cookie 1377 | { 1378 | write(name, value, expires, path, domain, secure) { 1379 | const cookie = [name + "=" + encodeURIComponent(value)]; 1380 | utils_default.isNumber(expires) && cookie.push("expires=" + new Date(expires).toGMTString()); 1381 | utils_default.isString(path) && cookie.push("path=" + path); 1382 | utils_default.isString(domain) && cookie.push("domain=" + domain); 1383 | secure === true && cookie.push("secure"); 1384 | document.cookie = cookie.join("; "); 1385 | }, 1386 | read(name) { 1387 | const match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)")); 1388 | return match ? decodeURIComponent(match[3]) : null; 1389 | }, 1390 | remove(name) { 1391 | this.write(name, "", Date.now() - 864e5); 1392 | } 1393 | } 1394 | ) : ( 1395 | // Non-standard browser env (web workers, react-native) lack needed support. 1396 | { 1397 | write() { 1398 | }, 1399 | read() { 1400 | return null; 1401 | }, 1402 | remove() { 1403 | } 1404 | } 1405 | ); 1406 | 1407 | // node_modules/axios/lib/helpers/isAbsoluteURL.js 1408 | function isAbsoluteURL(url) { 1409 | return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url); 1410 | } 1411 | 1412 | // node_modules/axios/lib/helpers/combineURLs.js 1413 | function combineURLs(baseURL, relativeURL) { 1414 | return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL; 1415 | } 1416 | 1417 | // node_modules/axios/lib/core/buildFullPath.js 1418 | function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) { 1419 | let isRelativeUrl = !isAbsoluteURL(requestedURL); 1420 | if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) { 1421 | return combineURLs(baseURL, requestedURL); 1422 | } 1423 | return requestedURL; 1424 | } 1425 | 1426 | // node_modules/axios/lib/core/mergeConfig.js 1427 | var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing; 1428 | function mergeConfig(config1, config2) { 1429 | config2 = config2 || {}; 1430 | const config = {}; 1431 | function getMergedValue(target, source, prop, caseless) { 1432 | if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) { 1433 | return utils_default.merge.call({ caseless }, target, source); 1434 | } else if (utils_default.isPlainObject(source)) { 1435 | return utils_default.merge({}, source); 1436 | } else if (utils_default.isArray(source)) { 1437 | return source.slice(); 1438 | } 1439 | return source; 1440 | } 1441 | function mergeDeepProperties(a, b, prop, caseless) { 1442 | if (!utils_default.isUndefined(b)) { 1443 | return getMergedValue(a, b, prop, caseless); 1444 | } else if (!utils_default.isUndefined(a)) { 1445 | return getMergedValue(void 0, a, prop, caseless); 1446 | } 1447 | } 1448 | function valueFromConfig2(a, b) { 1449 | if (!utils_default.isUndefined(b)) { 1450 | return getMergedValue(void 0, b); 1451 | } 1452 | } 1453 | function defaultToConfig2(a, b) { 1454 | if (!utils_default.isUndefined(b)) { 1455 | return getMergedValue(void 0, b); 1456 | } else if (!utils_default.isUndefined(a)) { 1457 | return getMergedValue(void 0, a); 1458 | } 1459 | } 1460 | function mergeDirectKeys(a, b, prop) { 1461 | if (prop in config2) { 1462 | return getMergedValue(a, b); 1463 | } else if (prop in config1) { 1464 | return getMergedValue(void 0, a); 1465 | } 1466 | } 1467 | const mergeMap = { 1468 | url: valueFromConfig2, 1469 | method: valueFromConfig2, 1470 | data: valueFromConfig2, 1471 | baseURL: defaultToConfig2, 1472 | transformRequest: defaultToConfig2, 1473 | transformResponse: defaultToConfig2, 1474 | paramsSerializer: defaultToConfig2, 1475 | timeout: defaultToConfig2, 1476 | timeoutMessage: defaultToConfig2, 1477 | withCredentials: defaultToConfig2, 1478 | withXSRFToken: defaultToConfig2, 1479 | adapter: defaultToConfig2, 1480 | responseType: defaultToConfig2, 1481 | xsrfCookieName: defaultToConfig2, 1482 | xsrfHeaderName: defaultToConfig2, 1483 | onUploadProgress: defaultToConfig2, 1484 | onDownloadProgress: defaultToConfig2, 1485 | decompress: defaultToConfig2, 1486 | maxContentLength: defaultToConfig2, 1487 | maxBodyLength: defaultToConfig2, 1488 | beforeRedirect: defaultToConfig2, 1489 | transport: defaultToConfig2, 1490 | httpAgent: defaultToConfig2, 1491 | httpsAgent: defaultToConfig2, 1492 | cancelToken: defaultToConfig2, 1493 | socketPath: defaultToConfig2, 1494 | responseEncoding: defaultToConfig2, 1495 | validateStatus: mergeDirectKeys, 1496 | headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true) 1497 | }; 1498 | utils_default.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) { 1499 | const merge2 = mergeMap[prop] || mergeDeepProperties; 1500 | const configValue = merge2(config1[prop], config2[prop], prop); 1501 | utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue); 1502 | }); 1503 | return config; 1504 | } 1505 | 1506 | // node_modules/axios/lib/helpers/resolveConfig.js 1507 | var resolveConfig_default = (config) => { 1508 | const newConfig = mergeConfig({}, config); 1509 | let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig; 1510 | newConfig.headers = headers = AxiosHeaders_default.from(headers); 1511 | newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer); 1512 | if (auth) { 1513 | headers.set( 1514 | "Authorization", 1515 | "Basic " + btoa((auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : "")) 1516 | ); 1517 | } 1518 | let contentType; 1519 | if (utils_default.isFormData(data)) { 1520 | if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) { 1521 | headers.setContentType(void 0); 1522 | } else if ((contentType = headers.getContentType()) !== false) { 1523 | const [type, ...tokens] = contentType ? contentType.split(";").map((token) => token.trim()).filter(Boolean) : []; 1524 | headers.setContentType([type || "multipart/form-data", ...tokens].join("; ")); 1525 | } 1526 | } 1527 | if (platform_default.hasStandardBrowserEnv) { 1528 | withXSRFToken && utils_default.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig)); 1529 | if (withXSRFToken || withXSRFToken !== false && isURLSameOrigin_default(newConfig.url)) { 1530 | const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies_default.read(xsrfCookieName); 1531 | if (xsrfValue) { 1532 | headers.set(xsrfHeaderName, xsrfValue); 1533 | } 1534 | } 1535 | } 1536 | return newConfig; 1537 | }; 1538 | 1539 | // node_modules/axios/lib/adapters/xhr.js 1540 | var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined"; 1541 | var xhr_default = isXHRAdapterSupported && function(config) { 1542 | return new Promise(function dispatchXhrRequest(resolve, reject) { 1543 | const _config = resolveConfig_default(config); 1544 | let requestData = _config.data; 1545 | const requestHeaders = AxiosHeaders_default.from(_config.headers).normalize(); 1546 | let { responseType, onUploadProgress, onDownloadProgress } = _config; 1547 | let onCanceled; 1548 | let uploadThrottled, downloadThrottled; 1549 | let flushUpload, flushDownload; 1550 | function done() { 1551 | flushUpload && flushUpload(); 1552 | flushDownload && flushDownload(); 1553 | _config.cancelToken && _config.cancelToken.unsubscribe(onCanceled); 1554 | _config.signal && _config.signal.removeEventListener("abort", onCanceled); 1555 | } 1556 | let request = new XMLHttpRequest(); 1557 | request.open(_config.method.toUpperCase(), _config.url, true); 1558 | request.timeout = _config.timeout; 1559 | function onloadend() { 1560 | if (!request) { 1561 | return; 1562 | } 1563 | const responseHeaders = AxiosHeaders_default.from( 1564 | "getAllResponseHeaders" in request && request.getAllResponseHeaders() 1565 | ); 1566 | const responseData = !responseType || responseType === "text" || responseType === "json" ? request.responseText : request.response; 1567 | const response = { 1568 | data: responseData, 1569 | status: request.status, 1570 | statusText: request.statusText, 1571 | headers: responseHeaders, 1572 | config, 1573 | request 1574 | }; 1575 | settle(function _resolve(value) { 1576 | resolve(value); 1577 | done(); 1578 | }, function _reject(err) { 1579 | reject(err); 1580 | done(); 1581 | }, response); 1582 | request = null; 1583 | } 1584 | if ("onloadend" in request) { 1585 | request.onloadend = onloadend; 1586 | } else { 1587 | request.onreadystatechange = function handleLoad() { 1588 | if (!request || request.readyState !== 4) { 1589 | return; 1590 | } 1591 | if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf("file:") === 0)) { 1592 | return; 1593 | } 1594 | setTimeout(onloadend); 1595 | }; 1596 | } 1597 | request.onabort = function handleAbort() { 1598 | if (!request) { 1599 | return; 1600 | } 1601 | reject(new AxiosError_default("Request aborted", AxiosError_default.ECONNABORTED, config, request)); 1602 | request = null; 1603 | }; 1604 | request.onerror = function handleError() { 1605 | reject(new AxiosError_default("Network Error", AxiosError_default.ERR_NETWORK, config, request)); 1606 | request = null; 1607 | }; 1608 | request.ontimeout = function handleTimeout() { 1609 | let timeoutErrorMessage = _config.timeout ? "timeout of " + _config.timeout + "ms exceeded" : "timeout exceeded"; 1610 | const transitional2 = _config.transitional || transitional_default; 1611 | if (_config.timeoutErrorMessage) { 1612 | timeoutErrorMessage = _config.timeoutErrorMessage; 1613 | } 1614 | reject(new AxiosError_default( 1615 | timeoutErrorMessage, 1616 | transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED, 1617 | config, 1618 | request 1619 | )); 1620 | request = null; 1621 | }; 1622 | requestData === void 0 && requestHeaders.setContentType(null); 1623 | if ("setRequestHeader" in request) { 1624 | utils_default.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) { 1625 | request.setRequestHeader(key, val); 1626 | }); 1627 | } 1628 | if (!utils_default.isUndefined(_config.withCredentials)) { 1629 | request.withCredentials = !!_config.withCredentials; 1630 | } 1631 | if (responseType && responseType !== "json") { 1632 | request.responseType = _config.responseType; 1633 | } 1634 | if (onDownloadProgress) { 1635 | [downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true); 1636 | request.addEventListener("progress", downloadThrottled); 1637 | } 1638 | if (onUploadProgress && request.upload) { 1639 | [uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress); 1640 | request.upload.addEventListener("progress", uploadThrottled); 1641 | request.upload.addEventListener("loadend", flushUpload); 1642 | } 1643 | if (_config.cancelToken || _config.signal) { 1644 | onCanceled = (cancel) => { 1645 | if (!request) { 1646 | return; 1647 | } 1648 | reject(!cancel || cancel.type ? new CanceledError_default(null, config, request) : cancel); 1649 | request.abort(); 1650 | request = null; 1651 | }; 1652 | _config.cancelToken && _config.cancelToken.subscribe(onCanceled); 1653 | if (_config.signal) { 1654 | _config.signal.aborted ? onCanceled() : _config.signal.addEventListener("abort", onCanceled); 1655 | } 1656 | } 1657 | const protocol = parseProtocol(_config.url); 1658 | if (protocol && platform_default.protocols.indexOf(protocol) === -1) { 1659 | reject(new AxiosError_default("Unsupported protocol " + protocol + ":", AxiosError_default.ERR_BAD_REQUEST, config)); 1660 | return; 1661 | } 1662 | request.send(requestData || null); 1663 | }); 1664 | }; 1665 | 1666 | // node_modules/axios/lib/helpers/composeSignals.js 1667 | var composeSignals = (signals, timeout) => { 1668 | const { length } = signals = signals ? signals.filter(Boolean) : []; 1669 | if (timeout || length) { 1670 | let controller = new AbortController(); 1671 | let aborted; 1672 | const onabort = function(reason) { 1673 | if (!aborted) { 1674 | aborted = true; 1675 | unsubscribe(); 1676 | const err = reason instanceof Error ? reason : this.reason; 1677 | controller.abort(err instanceof AxiosError_default ? err : new CanceledError_default(err instanceof Error ? err.message : err)); 1678 | } 1679 | }; 1680 | let timer = timeout && setTimeout(() => { 1681 | timer = null; 1682 | onabort(new AxiosError_default(`timeout ${timeout} of ms exceeded`, AxiosError_default.ETIMEDOUT)); 1683 | }, timeout); 1684 | const unsubscribe = () => { 1685 | if (signals) { 1686 | timer && clearTimeout(timer); 1687 | timer = null; 1688 | signals.forEach((signal2) => { 1689 | signal2.unsubscribe ? signal2.unsubscribe(onabort) : signal2.removeEventListener("abort", onabort); 1690 | }); 1691 | signals = null; 1692 | } 1693 | }; 1694 | signals.forEach((signal2) => signal2.addEventListener("abort", onabort)); 1695 | const { signal } = controller; 1696 | signal.unsubscribe = () => utils_default.asap(unsubscribe); 1697 | return signal; 1698 | } 1699 | }; 1700 | var composeSignals_default = composeSignals; 1701 | 1702 | // node_modules/axios/lib/helpers/trackStream.js 1703 | var streamChunk = function* (chunk, chunkSize) { 1704 | let len = chunk.byteLength; 1705 | if (!chunkSize || len < chunkSize) { 1706 | yield chunk; 1707 | return; 1708 | } 1709 | let pos = 0; 1710 | let end; 1711 | while (pos < len) { 1712 | end = pos + chunkSize; 1713 | yield chunk.slice(pos, end); 1714 | pos = end; 1715 | } 1716 | }; 1717 | var readBytes = async function* (iterable, chunkSize) { 1718 | for await (const chunk of readStream(iterable)) { 1719 | yield* streamChunk(chunk, chunkSize); 1720 | } 1721 | }; 1722 | var readStream = async function* (stream) { 1723 | if (stream[Symbol.asyncIterator]) { 1724 | yield* stream; 1725 | return; 1726 | } 1727 | const reader = stream.getReader(); 1728 | try { 1729 | for (; ; ) { 1730 | const { done, value } = await reader.read(); 1731 | if (done) { 1732 | break; 1733 | } 1734 | yield value; 1735 | } 1736 | } finally { 1737 | await reader.cancel(); 1738 | } 1739 | }; 1740 | var trackStream = (stream, chunkSize, onProgress, onFinish) => { 1741 | const iterator2 = readBytes(stream, chunkSize); 1742 | let bytes = 0; 1743 | let done; 1744 | let _onFinish = (e) => { 1745 | if (!done) { 1746 | done = true; 1747 | onFinish && onFinish(e); 1748 | } 1749 | }; 1750 | return new ReadableStream({ 1751 | async pull(controller) { 1752 | try { 1753 | const { done: done2, value } = await iterator2.next(); 1754 | if (done2) { 1755 | _onFinish(); 1756 | controller.close(); 1757 | return; 1758 | } 1759 | let len = value.byteLength; 1760 | if (onProgress) { 1761 | let loadedBytes = bytes += len; 1762 | onProgress(loadedBytes); 1763 | } 1764 | controller.enqueue(new Uint8Array(value)); 1765 | } catch (err) { 1766 | _onFinish(err); 1767 | throw err; 1768 | } 1769 | }, 1770 | cancel(reason) { 1771 | _onFinish(reason); 1772 | return iterator2.return(); 1773 | } 1774 | }, { 1775 | highWaterMark: 2 1776 | }); 1777 | }; 1778 | 1779 | // node_modules/axios/lib/adapters/fetch.js 1780 | var isFetchSupported = typeof fetch === "function" && typeof Request === "function" && typeof Response === "function"; 1781 | var isReadableStreamSupported = isFetchSupported && typeof ReadableStream === "function"; 1782 | var encodeText = isFetchSupported && (typeof TextEncoder === "function" ? ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) : async (str) => new Uint8Array(await new Response(str).arrayBuffer())); 1783 | var test = (fn, ...args) => { 1784 | try { 1785 | return !!fn(...args); 1786 | } catch (e) { 1787 | return false; 1788 | } 1789 | }; 1790 | var supportsRequestStream = isReadableStreamSupported && test(() => { 1791 | let duplexAccessed = false; 1792 | const hasContentType = new Request(platform_default.origin, { 1793 | body: new ReadableStream(), 1794 | method: "POST", 1795 | get duplex() { 1796 | duplexAccessed = true; 1797 | return "half"; 1798 | } 1799 | }).headers.has("Content-Type"); 1800 | return duplexAccessed && !hasContentType; 1801 | }); 1802 | var DEFAULT_CHUNK_SIZE = 64 * 1024; 1803 | var supportsResponseStream = isReadableStreamSupported && test(() => utils_default.isReadableStream(new Response("").body)); 1804 | var resolvers = { 1805 | stream: supportsResponseStream && ((res) => res.body) 1806 | }; 1807 | isFetchSupported && ((res) => { 1808 | ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type) => { 1809 | !resolvers[type] && (resolvers[type] = utils_default.isFunction(res[type]) ? (res2) => res2[type]() : (_, config) => { 1810 | throw new AxiosError_default(`Response type '${type}' is not supported`, AxiosError_default.ERR_NOT_SUPPORT, config); 1811 | }); 1812 | }); 1813 | })(new Response()); 1814 | var getBodyLength = async (body) => { 1815 | if (body == null) { 1816 | return 0; 1817 | } 1818 | if (utils_default.isBlob(body)) { 1819 | return body.size; 1820 | } 1821 | if (utils_default.isSpecCompliantForm(body)) { 1822 | const _request = new Request(platform_default.origin, { 1823 | method: "POST", 1824 | body 1825 | }); 1826 | return (await _request.arrayBuffer()).byteLength; 1827 | } 1828 | if (utils_default.isArrayBufferView(body) || utils_default.isArrayBuffer(body)) { 1829 | return body.byteLength; 1830 | } 1831 | if (utils_default.isURLSearchParams(body)) { 1832 | body = body + ""; 1833 | } 1834 | if (utils_default.isString(body)) { 1835 | return (await encodeText(body)).byteLength; 1836 | } 1837 | }; 1838 | var resolveBodyLength = async (headers, body) => { 1839 | const length = utils_default.toFiniteNumber(headers.getContentLength()); 1840 | return length == null ? getBodyLength(body) : length; 1841 | }; 1842 | var fetch_default = isFetchSupported && (async (config) => { 1843 | let { 1844 | url, 1845 | method, 1846 | data, 1847 | signal, 1848 | cancelToken, 1849 | timeout, 1850 | onDownloadProgress, 1851 | onUploadProgress, 1852 | responseType, 1853 | headers, 1854 | withCredentials = "same-origin", 1855 | fetchOptions 1856 | } = resolveConfig_default(config); 1857 | responseType = responseType ? (responseType + "").toLowerCase() : "text"; 1858 | let composedSignal = composeSignals_default([signal, cancelToken && cancelToken.toAbortSignal()], timeout); 1859 | let request; 1860 | const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => { 1861 | composedSignal.unsubscribe(); 1862 | }); 1863 | let requestContentLength; 1864 | try { 1865 | if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) { 1866 | let _request = new Request(url, { 1867 | method: "POST", 1868 | body: data, 1869 | duplex: "half" 1870 | }); 1871 | let contentTypeHeader; 1872 | if (utils_default.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) { 1873 | headers.setContentType(contentTypeHeader); 1874 | } 1875 | if (_request.body) { 1876 | const [onProgress, flush] = progressEventDecorator( 1877 | requestContentLength, 1878 | progressEventReducer(asyncDecorator(onUploadProgress)) 1879 | ); 1880 | data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush); 1881 | } 1882 | } 1883 | if (!utils_default.isString(withCredentials)) { 1884 | withCredentials = withCredentials ? "include" : "omit"; 1885 | } 1886 | const isCredentialsSupported = "credentials" in Request.prototype; 1887 | request = new Request(url, { 1888 | ...fetchOptions, 1889 | signal: composedSignal, 1890 | method: method.toUpperCase(), 1891 | headers: headers.normalize().toJSON(), 1892 | body: data, 1893 | duplex: "half", 1894 | credentials: isCredentialsSupported ? withCredentials : void 0 1895 | }); 1896 | let response = await fetch(request, fetchOptions); 1897 | const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response"); 1898 | if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) { 1899 | const options = {}; 1900 | ["status", "statusText", "headers"].forEach((prop) => { 1901 | options[prop] = response[prop]; 1902 | }); 1903 | const responseContentLength = utils_default.toFiniteNumber(response.headers.get("content-length")); 1904 | const [onProgress, flush] = onDownloadProgress && progressEventDecorator( 1905 | responseContentLength, 1906 | progressEventReducer(asyncDecorator(onDownloadProgress), true) 1907 | ) || []; 1908 | response = new Response( 1909 | trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => { 1910 | flush && flush(); 1911 | unsubscribe && unsubscribe(); 1912 | }), 1913 | options 1914 | ); 1915 | } 1916 | responseType = responseType || "text"; 1917 | let responseData = await resolvers[utils_default.findKey(resolvers, responseType) || "text"](response, config); 1918 | !isStreamResponse && unsubscribe && unsubscribe(); 1919 | return await new Promise((resolve, reject) => { 1920 | settle(resolve, reject, { 1921 | data: responseData, 1922 | headers: AxiosHeaders_default.from(response.headers), 1923 | status: response.status, 1924 | statusText: response.statusText, 1925 | config, 1926 | request 1927 | }); 1928 | }); 1929 | } catch (err) { 1930 | unsubscribe && unsubscribe(); 1931 | if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) { 1932 | throw Object.assign( 1933 | new AxiosError_default("Network Error", AxiosError_default.ERR_NETWORK, config, request), 1934 | { 1935 | cause: err.cause || err 1936 | } 1937 | ); 1938 | } 1939 | throw AxiosError_default.from(err, err && err.code, config, request); 1940 | } 1941 | }); 1942 | 1943 | // node_modules/axios/lib/adapters/adapters.js 1944 | var knownAdapters = { 1945 | http: null_default, 1946 | xhr: xhr_default, 1947 | fetch: fetch_default 1948 | }; 1949 | utils_default.forEach(knownAdapters, (fn, value) => { 1950 | if (fn) { 1951 | try { 1952 | Object.defineProperty(fn, "name", { value }); 1953 | } catch (e) { 1954 | } 1955 | Object.defineProperty(fn, "adapterName", { value }); 1956 | } 1957 | }); 1958 | var renderReason = (reason) => `- ${reason}`; 1959 | var isResolvedHandle = (adapter) => utils_default.isFunction(adapter) || adapter === null || adapter === false; 1960 | var adapters_default = { 1961 | getAdapter: (adapters) => { 1962 | adapters = utils_default.isArray(adapters) ? adapters : [adapters]; 1963 | const { length } = adapters; 1964 | let nameOrAdapter; 1965 | let adapter; 1966 | const rejectedReasons = {}; 1967 | for (let i = 0; i < length; i++) { 1968 | nameOrAdapter = adapters[i]; 1969 | let id; 1970 | adapter = nameOrAdapter; 1971 | if (!isResolvedHandle(nameOrAdapter)) { 1972 | adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()]; 1973 | if (adapter === void 0) { 1974 | throw new AxiosError_default(`Unknown adapter '${id}'`); 1975 | } 1976 | } 1977 | if (adapter) { 1978 | break; 1979 | } 1980 | rejectedReasons[id || "#" + i] = adapter; 1981 | } 1982 | if (!adapter) { 1983 | const reasons = Object.entries(rejectedReasons).map( 1984 | ([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build") 1985 | ); 1986 | let s = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified"; 1987 | throw new AxiosError_default( 1988 | `There is no suitable adapter to dispatch the request ` + s, 1989 | "ERR_NOT_SUPPORT" 1990 | ); 1991 | } 1992 | return adapter; 1993 | }, 1994 | adapters: knownAdapters 1995 | }; 1996 | 1997 | // node_modules/axios/lib/core/dispatchRequest.js 1998 | function throwIfCancellationRequested(config) { 1999 | if (config.cancelToken) { 2000 | config.cancelToken.throwIfRequested(); 2001 | } 2002 | if (config.signal && config.signal.aborted) { 2003 | throw new CanceledError_default(null, config); 2004 | } 2005 | } 2006 | function dispatchRequest(config) { 2007 | throwIfCancellationRequested(config); 2008 | config.headers = AxiosHeaders_default.from(config.headers); 2009 | config.data = transformData.call( 2010 | config, 2011 | config.transformRequest 2012 | ); 2013 | if (["post", "put", "patch"].indexOf(config.method) !== -1) { 2014 | config.headers.setContentType("application/x-www-form-urlencoded", false); 2015 | } 2016 | const adapter = adapters_default.getAdapter(config.adapter || defaults_default.adapter); 2017 | return adapter(config).then(function onAdapterResolution(response) { 2018 | throwIfCancellationRequested(config); 2019 | response.data = transformData.call( 2020 | config, 2021 | config.transformResponse, 2022 | response 2023 | ); 2024 | response.headers = AxiosHeaders_default.from(response.headers); 2025 | return response; 2026 | }, function onAdapterRejection(reason) { 2027 | if (!isCancel(reason)) { 2028 | throwIfCancellationRequested(config); 2029 | if (reason && reason.response) { 2030 | reason.response.data = transformData.call( 2031 | config, 2032 | config.transformResponse, 2033 | reason.response 2034 | ); 2035 | reason.response.headers = AxiosHeaders_default.from(reason.response.headers); 2036 | } 2037 | } 2038 | return Promise.reject(reason); 2039 | }); 2040 | } 2041 | 2042 | // node_modules/axios/lib/env/data.js 2043 | var VERSION = "1.10.0"; 2044 | 2045 | // node_modules/axios/lib/helpers/validator.js 2046 | var validators = {}; 2047 | ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => { 2048 | validators[type] = function validator(thing) { 2049 | return typeof thing === type || "a" + (i < 1 ? "n " : " ") + type; 2050 | }; 2051 | }); 2052 | var deprecatedWarnings = {}; 2053 | validators.transitional = function transitional(validator, version, message) { 2054 | function formatMessage(opt, desc) { 2055 | return "[Axios v" + VERSION + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : ""); 2056 | } 2057 | return (value, opt, opts) => { 2058 | if (validator === false) { 2059 | throw new AxiosError_default( 2060 | formatMessage(opt, " has been removed" + (version ? " in " + version : "")), 2061 | AxiosError_default.ERR_DEPRECATED 2062 | ); 2063 | } 2064 | if (version && !deprecatedWarnings[opt]) { 2065 | deprecatedWarnings[opt] = true; 2066 | console.warn( 2067 | formatMessage( 2068 | opt, 2069 | " has been deprecated since v" + version + " and will be removed in the near future" 2070 | ) 2071 | ); 2072 | } 2073 | return validator ? validator(value, opt, opts) : true; 2074 | }; 2075 | }; 2076 | validators.spelling = function spelling(correctSpelling) { 2077 | return (value, opt) => { 2078 | console.warn(`${opt} is likely a misspelling of ${correctSpelling}`); 2079 | return true; 2080 | }; 2081 | }; 2082 | function assertOptions(options, schema, allowUnknown) { 2083 | if (typeof options !== "object") { 2084 | throw new AxiosError_default("options must be an object", AxiosError_default.ERR_BAD_OPTION_VALUE); 2085 | } 2086 | const keys = Object.keys(options); 2087 | let i = keys.length; 2088 | while (i-- > 0) { 2089 | const opt = keys[i]; 2090 | const validator = schema[opt]; 2091 | if (validator) { 2092 | const value = options[opt]; 2093 | const result = value === void 0 || validator(value, opt, options); 2094 | if (result !== true) { 2095 | throw new AxiosError_default("option " + opt + " must be " + result, AxiosError_default.ERR_BAD_OPTION_VALUE); 2096 | } 2097 | continue; 2098 | } 2099 | if (allowUnknown !== true) { 2100 | throw new AxiosError_default("Unknown option " + opt, AxiosError_default.ERR_BAD_OPTION); 2101 | } 2102 | } 2103 | } 2104 | var validator_default = { 2105 | assertOptions, 2106 | validators 2107 | }; 2108 | 2109 | // node_modules/axios/lib/core/Axios.js 2110 | var validators2 = validator_default.validators; 2111 | var Axios = class { 2112 | constructor(instanceConfig) { 2113 | this.defaults = instanceConfig || {}; 2114 | this.interceptors = { 2115 | request: new InterceptorManager_default(), 2116 | response: new InterceptorManager_default() 2117 | }; 2118 | } 2119 | /** 2120 | * Dispatch a request 2121 | * 2122 | * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults) 2123 | * @param {?Object} config 2124 | * 2125 | * @returns {Promise} The Promise to be fulfilled 2126 | */ 2127 | async request(configOrUrl, config) { 2128 | try { 2129 | return await this._request(configOrUrl, config); 2130 | } catch (err) { 2131 | if (err instanceof Error) { 2132 | let dummy = {}; 2133 | Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error(); 2134 | const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, "") : ""; 2135 | try { 2136 | if (!err.stack) { 2137 | err.stack = stack; 2138 | } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ""))) { 2139 | err.stack += "\n" + stack; 2140 | } 2141 | } catch (e) { 2142 | } 2143 | } 2144 | throw err; 2145 | } 2146 | } 2147 | _request(configOrUrl, config) { 2148 | if (typeof configOrUrl === "string") { 2149 | config = config || {}; 2150 | config.url = configOrUrl; 2151 | } else { 2152 | config = configOrUrl || {}; 2153 | } 2154 | config = mergeConfig(this.defaults, config); 2155 | const { transitional: transitional2, paramsSerializer, headers } = config; 2156 | if (transitional2 !== void 0) { 2157 | validator_default.assertOptions(transitional2, { 2158 | silentJSONParsing: validators2.transitional(validators2.boolean), 2159 | forcedJSONParsing: validators2.transitional(validators2.boolean), 2160 | clarifyTimeoutError: validators2.transitional(validators2.boolean) 2161 | }, false); 2162 | } 2163 | if (paramsSerializer != null) { 2164 | if (utils_default.isFunction(paramsSerializer)) { 2165 | config.paramsSerializer = { 2166 | serialize: paramsSerializer 2167 | }; 2168 | } else { 2169 | validator_default.assertOptions(paramsSerializer, { 2170 | encode: validators2.function, 2171 | serialize: validators2.function 2172 | }, true); 2173 | } 2174 | } 2175 | if (config.allowAbsoluteUrls !== void 0) { 2176 | } else if (this.defaults.allowAbsoluteUrls !== void 0) { 2177 | config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls; 2178 | } else { 2179 | config.allowAbsoluteUrls = true; 2180 | } 2181 | validator_default.assertOptions(config, { 2182 | baseUrl: validators2.spelling("baseURL"), 2183 | withXsrfToken: validators2.spelling("withXSRFToken") 2184 | }, true); 2185 | config.method = (config.method || this.defaults.method || "get").toLowerCase(); 2186 | let contextHeaders = headers && utils_default.merge( 2187 | headers.common, 2188 | headers[config.method] 2189 | ); 2190 | headers && utils_default.forEach( 2191 | ["delete", "get", "head", "post", "put", "patch", "common"], 2192 | (method) => { 2193 | delete headers[method]; 2194 | } 2195 | ); 2196 | config.headers = AxiosHeaders_default.concat(contextHeaders, headers); 2197 | const requestInterceptorChain = []; 2198 | let synchronousRequestInterceptors = true; 2199 | this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) { 2200 | if (typeof interceptor.runWhen === "function" && interceptor.runWhen(config) === false) { 2201 | return; 2202 | } 2203 | synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous; 2204 | requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected); 2205 | }); 2206 | const responseInterceptorChain = []; 2207 | this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) { 2208 | responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected); 2209 | }); 2210 | let promise; 2211 | let i = 0; 2212 | let len; 2213 | if (!synchronousRequestInterceptors) { 2214 | const chain = [dispatchRequest.bind(this), void 0]; 2215 | chain.unshift.apply(chain, requestInterceptorChain); 2216 | chain.push.apply(chain, responseInterceptorChain); 2217 | len = chain.length; 2218 | promise = Promise.resolve(config); 2219 | while (i < len) { 2220 | promise = promise.then(chain[i++], chain[i++]); 2221 | } 2222 | return promise; 2223 | } 2224 | len = requestInterceptorChain.length; 2225 | let newConfig = config; 2226 | i = 0; 2227 | while (i < len) { 2228 | const onFulfilled = requestInterceptorChain[i++]; 2229 | const onRejected = requestInterceptorChain[i++]; 2230 | try { 2231 | newConfig = onFulfilled(newConfig); 2232 | } catch (error) { 2233 | onRejected.call(this, error); 2234 | break; 2235 | } 2236 | } 2237 | try { 2238 | promise = dispatchRequest.call(this, newConfig); 2239 | } catch (error) { 2240 | return Promise.reject(error); 2241 | } 2242 | i = 0; 2243 | len = responseInterceptorChain.length; 2244 | while (i < len) { 2245 | promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]); 2246 | } 2247 | return promise; 2248 | } 2249 | getUri(config) { 2250 | config = mergeConfig(this.defaults, config); 2251 | const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls); 2252 | return buildURL(fullPath, config.params, config.paramsSerializer); 2253 | } 2254 | }; 2255 | utils_default.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) { 2256 | Axios.prototype[method] = function(url, config) { 2257 | return this.request(mergeConfig(config || {}, { 2258 | method, 2259 | url, 2260 | data: (config || {}).data 2261 | })); 2262 | }; 2263 | }); 2264 | utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData(method) { 2265 | function generateHTTPMethod(isForm) { 2266 | return function httpMethod(url, data, config) { 2267 | return this.request(mergeConfig(config || {}, { 2268 | method, 2269 | headers: isForm ? { 2270 | "Content-Type": "multipart/form-data" 2271 | } : {}, 2272 | url, 2273 | data 2274 | })); 2275 | }; 2276 | } 2277 | Axios.prototype[method] = generateHTTPMethod(); 2278 | Axios.prototype[method + "Form"] = generateHTTPMethod(true); 2279 | }); 2280 | var Axios_default = Axios; 2281 | 2282 | // node_modules/axios/lib/cancel/CancelToken.js 2283 | var CancelToken = class _CancelToken { 2284 | constructor(executor) { 2285 | if (typeof executor !== "function") { 2286 | throw new TypeError("executor must be a function."); 2287 | } 2288 | let resolvePromise; 2289 | this.promise = new Promise(function promiseExecutor(resolve) { 2290 | resolvePromise = resolve; 2291 | }); 2292 | const token = this; 2293 | this.promise.then((cancel) => { 2294 | if (!token._listeners) 2295 | return; 2296 | let i = token._listeners.length; 2297 | while (i-- > 0) { 2298 | token._listeners[i](cancel); 2299 | } 2300 | token._listeners = null; 2301 | }); 2302 | this.promise.then = (onfulfilled) => { 2303 | let _resolve; 2304 | const promise = new Promise((resolve) => { 2305 | token.subscribe(resolve); 2306 | _resolve = resolve; 2307 | }).then(onfulfilled); 2308 | promise.cancel = function reject() { 2309 | token.unsubscribe(_resolve); 2310 | }; 2311 | return promise; 2312 | }; 2313 | executor(function cancel(message, config, request) { 2314 | if (token.reason) { 2315 | return; 2316 | } 2317 | token.reason = new CanceledError_default(message, config, request); 2318 | resolvePromise(token.reason); 2319 | }); 2320 | } 2321 | /** 2322 | * Throws a `CanceledError` if cancellation has been requested. 2323 | */ 2324 | throwIfRequested() { 2325 | if (this.reason) { 2326 | throw this.reason; 2327 | } 2328 | } 2329 | /** 2330 | * Subscribe to the cancel signal 2331 | */ 2332 | subscribe(listener) { 2333 | if (this.reason) { 2334 | listener(this.reason); 2335 | return; 2336 | } 2337 | if (this._listeners) { 2338 | this._listeners.push(listener); 2339 | } else { 2340 | this._listeners = [listener]; 2341 | } 2342 | } 2343 | /** 2344 | * Unsubscribe from the cancel signal 2345 | */ 2346 | unsubscribe(listener) { 2347 | if (!this._listeners) { 2348 | return; 2349 | } 2350 | const index = this._listeners.indexOf(listener); 2351 | if (index !== -1) { 2352 | this._listeners.splice(index, 1); 2353 | } 2354 | } 2355 | toAbortSignal() { 2356 | const controller = new AbortController(); 2357 | const abort = (err) => { 2358 | controller.abort(err); 2359 | }; 2360 | this.subscribe(abort); 2361 | controller.signal.unsubscribe = () => this.unsubscribe(abort); 2362 | return controller.signal; 2363 | } 2364 | /** 2365 | * Returns an object that contains a new `CancelToken` and a function that, when called, 2366 | * cancels the `CancelToken`. 2367 | */ 2368 | static source() { 2369 | let cancel; 2370 | const token = new _CancelToken(function executor(c) { 2371 | cancel = c; 2372 | }); 2373 | return { 2374 | token, 2375 | cancel 2376 | }; 2377 | } 2378 | }; 2379 | var CancelToken_default = CancelToken; 2380 | 2381 | // node_modules/axios/lib/helpers/spread.js 2382 | function spread(callback) { 2383 | return function wrap(arr) { 2384 | return callback.apply(null, arr); 2385 | }; 2386 | } 2387 | 2388 | // node_modules/axios/lib/helpers/isAxiosError.js 2389 | function isAxiosError(payload) { 2390 | return utils_default.isObject(payload) && payload.isAxiosError === true; 2391 | } 2392 | 2393 | // node_modules/axios/lib/helpers/HttpStatusCode.js 2394 | var HttpStatusCode = { 2395 | Continue: 100, 2396 | SwitchingProtocols: 101, 2397 | Processing: 102, 2398 | EarlyHints: 103, 2399 | Ok: 200, 2400 | Created: 201, 2401 | Accepted: 202, 2402 | NonAuthoritativeInformation: 203, 2403 | NoContent: 204, 2404 | ResetContent: 205, 2405 | PartialContent: 206, 2406 | MultiStatus: 207, 2407 | AlreadyReported: 208, 2408 | ImUsed: 226, 2409 | MultipleChoices: 300, 2410 | MovedPermanently: 301, 2411 | Found: 302, 2412 | SeeOther: 303, 2413 | NotModified: 304, 2414 | UseProxy: 305, 2415 | Unused: 306, 2416 | TemporaryRedirect: 307, 2417 | PermanentRedirect: 308, 2418 | BadRequest: 400, 2419 | Unauthorized: 401, 2420 | PaymentRequired: 402, 2421 | Forbidden: 403, 2422 | NotFound: 404, 2423 | MethodNotAllowed: 405, 2424 | NotAcceptable: 406, 2425 | ProxyAuthenticationRequired: 407, 2426 | RequestTimeout: 408, 2427 | Conflict: 409, 2428 | Gone: 410, 2429 | LengthRequired: 411, 2430 | PreconditionFailed: 412, 2431 | PayloadTooLarge: 413, 2432 | UriTooLong: 414, 2433 | UnsupportedMediaType: 415, 2434 | RangeNotSatisfiable: 416, 2435 | ExpectationFailed: 417, 2436 | ImATeapot: 418, 2437 | MisdirectedRequest: 421, 2438 | UnprocessableEntity: 422, 2439 | Locked: 423, 2440 | FailedDependency: 424, 2441 | TooEarly: 425, 2442 | UpgradeRequired: 426, 2443 | PreconditionRequired: 428, 2444 | TooManyRequests: 429, 2445 | RequestHeaderFieldsTooLarge: 431, 2446 | UnavailableForLegalReasons: 451, 2447 | InternalServerError: 500, 2448 | NotImplemented: 501, 2449 | BadGateway: 502, 2450 | ServiceUnavailable: 503, 2451 | GatewayTimeout: 504, 2452 | HttpVersionNotSupported: 505, 2453 | VariantAlsoNegotiates: 506, 2454 | InsufficientStorage: 507, 2455 | LoopDetected: 508, 2456 | NotExtended: 510, 2457 | NetworkAuthenticationRequired: 511 2458 | }; 2459 | Object.entries(HttpStatusCode).forEach(([key, value]) => { 2460 | HttpStatusCode[value] = key; 2461 | }); 2462 | var HttpStatusCode_default = HttpStatusCode; 2463 | 2464 | // node_modules/axios/lib/axios.js 2465 | function createInstance(defaultConfig) { 2466 | const context = new Axios_default(defaultConfig); 2467 | const instance = bind(Axios_default.prototype.request, context); 2468 | utils_default.extend(instance, Axios_default.prototype, context, { allOwnKeys: true }); 2469 | utils_default.extend(instance, context, null, { allOwnKeys: true }); 2470 | instance.create = function create(instanceConfig) { 2471 | return createInstance(mergeConfig(defaultConfig, instanceConfig)); 2472 | }; 2473 | return instance; 2474 | } 2475 | var axios = createInstance(defaults_default); 2476 | axios.Axios = Axios_default; 2477 | axios.CanceledError = CanceledError_default; 2478 | axios.CancelToken = CancelToken_default; 2479 | axios.isCancel = isCancel; 2480 | axios.VERSION = VERSION; 2481 | axios.toFormData = toFormData_default; 2482 | axios.AxiosError = AxiosError_default; 2483 | axios.Cancel = axios.CanceledError; 2484 | axios.all = function all(promises) { 2485 | return Promise.all(promises); 2486 | }; 2487 | axios.spread = spread; 2488 | axios.isAxiosError = isAxiosError; 2489 | axios.mergeConfig = mergeConfig; 2490 | axios.AxiosHeaders = AxiosHeaders_default; 2491 | axios.formToJSON = (thing) => formDataToJSON_default(utils_default.isHTMLForm(thing) ? new FormData(thing) : thing); 2492 | axios.getAdapter = adapters_default.getAdapter; 2493 | axios.HttpStatusCode = HttpStatusCode_default; 2494 | axios.default = axios; 2495 | var axios_default = axios; 2496 | 2497 | // node_modules/axios/index.js 2498 | var { 2499 | Axios: Axios2, 2500 | AxiosError: AxiosError2, 2501 | CanceledError: CanceledError2, 2502 | isCancel: isCancel2, 2503 | CancelToken: CancelToken2, 2504 | VERSION: VERSION2, 2505 | all: all2, 2506 | Cancel, 2507 | isAxiosError: isAxiosError2, 2508 | spread: spread2, 2509 | toFormData: toFormData2, 2510 | AxiosHeaders: AxiosHeaders2, 2511 | HttpStatusCode: HttpStatusCode2, 2512 | formToJSON, 2513 | getAdapter, 2514 | mergeConfig: mergeConfig2 2515 | } = axios_default; 2516 | export { 2517 | Axios2 as Axios, 2518 | AxiosError2 as AxiosError, 2519 | AxiosHeaders2 as AxiosHeaders, 2520 | Cancel, 2521 | CancelToken2 as CancelToken, 2522 | CanceledError2 as CanceledError, 2523 | HttpStatusCode2 as HttpStatusCode, 2524 | VERSION2 as VERSION, 2525 | all2 as all, 2526 | axios_default as default, 2527 | formToJSON, 2528 | getAdapter, 2529 | isAxiosError2 as isAxiosError, 2530 | isCancel2 as isCancel, 2531 | mergeConfig2 as mergeConfig, 2532 | spread2 as spread, 2533 | toFormData2 as toFormData 2534 | }; 2535 | //# sourceMappingURL=axios.js.map 2536 | --------------------------------------------------------------------------------