├── LICENSE ├── README.md ├── dist ├── react-userscripts-dev.user.js └── react-userscripts.user.js └── userscript ├── .gitignore ├── package-lock.json ├── package.json ├── src ├── App.css ├── App.tsx ├── index.css ├── index.tsx ├── userscript-header.js └── utils.js └── vite.config.ts /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # react-userscripts 2 | Develop a Greasemonkey/Tampermonkey script using React 3 | 4 | In Firefox or Chrome, install [Greasemonkey](https://addons.mozilla.org/en-CA/firefox/addon/greasemonkey/) or Tampermonkey. 5 | You can then test the userscript by installing it [here](https://github.com/siefkenj/react-userscripts/raw/master/dist/react-userscripts.user.js). 6 | Navigate to [google](https://www.google.com) and you should see a react component inserted at the bottom of the page. 7 | 8 | # Development 9 | 10 | ## Building 11 | 12 | To build `react-userscripts` you must have [Node.js](https://nodejs.org/en/download/) and [npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm). 13 | Then, from the `react-userscripts` directory, run 14 | 15 | ``` 16 | cd userscript/ 17 | npm install 18 | npm run build 19 | ``` 20 | 21 | When the build script completes, you should have a fresh version of the userscript located at `dist/react-userscripts.user.js` 22 | (in the top-level `dist/` directory). (Ignore the message provided on the console about serving the project; that message is for 23 | developing a normal web application, not a userscript addon.) 24 | 25 | ## Development and Dynamic Loading 26 | 27 | When developing, it's nice to be able to get the newest version of your script upon a page 28 | refresh. To do this, install the development version of `react-userscripts` script located 29 | `dist/react-userscripts-dev.user.js` or click [here](https://github.com/siefkenj/react-userscripts/raw/master/dist/react-userscripts-dev.user.js). 30 | The dev script will dynamically load the extension from port `8124`, so you can take advantage of 31 | auto-recompilation when source files change. 32 | 33 | Now, run 34 | 35 | ``` 36 | cd userscript/ 37 | npm install # if you haven't already 38 | npm start 39 | ``` 40 | 41 | and a development server should start running on `localhost:8124`. Changing any files in `userscript/src` will trigger 42 | and automatic recompile which will be served to the dev addon on the next page reload. 43 | 44 | ## Known issues 45 | 46 | There is a specific issue happening under these conditions: 47 | * Developing with Firefox 48 | * Having [ViolentMonkey](https://github.com/violentmonkey/violentmonkey) <= 2.13.0 49 | * Granting anything other than `@grant none` in your `-dev.user.script.js` 50 | 51 | When executing the script made for dev mode, React will crash when a `useEffect` or `useState` hook is called. This is due to React being in dev mode running differently than in prod mode in order to help catch errors. 52 | However, [ViolentMonkey](https://github.com/violentmonkey/violentmonkey) has a bug and does not correctly handle `window` and `unsafeWindow` and React tries to read from these variables and crashes. 53 | 54 | The solution is to update to any version > 2.13.0 - (The latest beta versions have fixed the issue) 55 | -------------------------------------------------------------------------------- /dist/react-userscripts-dev.user.js: -------------------------------------------------------------------------------- 1 | // ==UserScript== 2 | // @name React Userscripts dev 3 | // @version 1.1 4 | // @description Development mode for React Userscripts. 5 | // @include https://*google.com/* 6 | // @grant none 7 | // ==/UserScript== 8 | 9 | "use strict"; 10 | 11 | function log(...args) { 12 | console.log("%cUserscript:", "color: purple; font-weight: bold", ...args); 13 | } 14 | 15 | log("Dev mode started"); 16 | 17 | async function main() { 18 | const resp = await fetch("http://localhost:8124/react-userscripts.user.js"); 19 | const script = await resp.text(); 20 | if (script.trim() === "") { 21 | log("No user script found"); 22 | return; 23 | } 24 | log("Got Dev script"); 25 | eval(script); 26 | log("Dev script evaled"); 27 | } 28 | 29 | // Make sure we run once at the start 30 | main.bind({})().catch((e) => { 31 | log("ERROR", e); 32 | }); 33 | -------------------------------------------------------------------------------- /userscript/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | -------------------------------------------------------------------------------- /userscript/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-userscripts", 3 | "version": "1.1.0", 4 | "lockfileVersion": 3, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "react-userscripts", 9 | "version": "1.1.0", 10 | "dependencies": { 11 | "react": "^18.3.1", 12 | "react-dom": "^18.3.1", 13 | "vite": "^5.2.14" 14 | }, 15 | "devDependencies": { 16 | "npm-run-all": "^4.1.5" 17 | } 18 | }, 19 | "node_modules/@esbuild/linux-x64": { 20 | "version": "0.20.2", 21 | "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.20.2.tgz", 22 | "integrity": "sha512-1MdwI6OOTsfQfek8sLwgyjOXAu+wKhLEoaOLTjbijk6E2WONYpH9ZU2mNtR+lZ2B4uwr+usqGuVfFT9tMtGvGw==", 23 | "cpu": [ 24 | "x64" 25 | ], 26 | "optional": true, 27 | "os": [ 28 | "linux" 29 | ], 30 | "engines": { 31 | "node": ">=12" 32 | } 33 | }, 34 | "node_modules/@jridgewell/resolve-uri": { 35 | "version": "3.1.0", 36 | "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", 37 | "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", 38 | "optional": true, 39 | "peer": true, 40 | "engines": { 41 | "node": ">=6.0.0" 42 | } 43 | }, 44 | "node_modules/@jridgewell/set-array": { 45 | "version": "1.1.2", 46 | "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", 47 | "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", 48 | "optional": true, 49 | "peer": true, 50 | "engines": { 51 | "node": ">=6.0.0" 52 | } 53 | }, 54 | "node_modules/@jridgewell/source-map": { 55 | "version": "0.3.2", 56 | "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.2.tgz", 57 | "integrity": "sha512-m7O9o2uR8k2ObDysZYzdfhb08VuEml5oWGiosa1VdaPZ/A6QyPkAJuwN0Q1lhULOf6B7MtQmHENS743hWtCrgw==", 58 | "optional": true, 59 | "peer": true, 60 | "dependencies": { 61 | "@jridgewell/gen-mapping": "^0.3.0", 62 | "@jridgewell/trace-mapping": "^0.3.9" 63 | } 64 | }, 65 | "node_modules/@jridgewell/source-map/node_modules/@jridgewell/gen-mapping": { 66 | "version": "0.3.2", 67 | "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", 68 | "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", 69 | "optional": true, 70 | "peer": true, 71 | "dependencies": { 72 | "@jridgewell/set-array": "^1.0.1", 73 | "@jridgewell/sourcemap-codec": "^1.4.10", 74 | "@jridgewell/trace-mapping": "^0.3.9" 75 | }, 76 | "engines": { 77 | "node": ">=6.0.0" 78 | } 79 | }, 80 | "node_modules/@jridgewell/sourcemap-codec": { 81 | "version": "1.4.15", 82 | "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", 83 | "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", 84 | "optional": true, 85 | "peer": true 86 | }, 87 | "node_modules/@jridgewell/trace-mapping": { 88 | "version": "0.3.14", 89 | "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.14.tgz", 90 | "integrity": "sha512-bJWEfQ9lPTvm3SneWwRFVLzrh6nhjwqw7TUFFBEMzwvg7t7PCDenf2lDwqo4NQXzdpgBXyFgDWnQA+2vkruksQ==", 91 | "optional": true, 92 | "peer": true, 93 | "dependencies": { 94 | "@jridgewell/resolve-uri": "^3.0.3", 95 | "@jridgewell/sourcemap-codec": "^1.4.10" 96 | } 97 | }, 98 | "node_modules/@rollup/rollup-android-arm-eabi": { 99 | "version": "4.22.4", 100 | "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.22.4.tgz", 101 | "integrity": "sha512-Fxamp4aEZnfPOcGA8KSNEohV8hX7zVHOemC8jVBoBUHu5zpJK/Eu3uJwt6BMgy9fkvzxDaurgj96F/NiLukF2w==", 102 | "cpu": [ 103 | "arm" 104 | ], 105 | "optional": true, 106 | "os": [ 107 | "android" 108 | ] 109 | }, 110 | "node_modules/@rollup/rollup-android-arm64": { 111 | "version": "4.22.4", 112 | "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.22.4.tgz", 113 | "integrity": "sha512-VXoK5UMrgECLYaMuGuVTOx5kcuap1Jm8g/M83RnCHBKOqvPPmROFJGQaZhGccnsFtfXQ3XYa4/jMCJvZnbJBdA==", 114 | "cpu": [ 115 | "arm64" 116 | ], 117 | "optional": true, 118 | "os": [ 119 | "android" 120 | ] 121 | }, 122 | "node_modules/@rollup/rollup-darwin-arm64": { 123 | "version": "4.22.4", 124 | "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.22.4.tgz", 125 | "integrity": "sha512-xMM9ORBqu81jyMKCDP+SZDhnX2QEVQzTcC6G18KlTQEzWK8r/oNZtKuZaCcHhnsa6fEeOBionoyl5JsAbE/36Q==", 126 | "cpu": [ 127 | "arm64" 128 | ], 129 | "optional": true, 130 | "os": [ 131 | "darwin" 132 | ] 133 | }, 134 | "node_modules/@rollup/rollup-darwin-x64": { 135 | "version": "4.22.4", 136 | "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.22.4.tgz", 137 | "integrity": "sha512-aJJyYKQwbHuhTUrjWjxEvGnNNBCnmpHDvrb8JFDbeSH3m2XdHcxDd3jthAzvmoI8w/kSjd2y0udT+4okADsZIw==", 138 | "cpu": [ 139 | "x64" 140 | ], 141 | "optional": true, 142 | "os": [ 143 | "darwin" 144 | ] 145 | }, 146 | "node_modules/@rollup/rollup-linux-arm-gnueabihf": { 147 | "version": "4.22.4", 148 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.22.4.tgz", 149 | "integrity": "sha512-j63YtCIRAzbO+gC2L9dWXRh5BFetsv0j0va0Wi9epXDgU/XUi5dJKo4USTttVyK7fGw2nPWK0PbAvyliz50SCQ==", 150 | "cpu": [ 151 | "arm" 152 | ], 153 | "optional": true, 154 | "os": [ 155 | "linux" 156 | ] 157 | }, 158 | "node_modules/@rollup/rollup-linux-arm-musleabihf": { 159 | "version": "4.22.4", 160 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.22.4.tgz", 161 | "integrity": "sha512-dJnWUgwWBX1YBRsuKKMOlXCzh2Wu1mlHzv20TpqEsfdZLb3WoJW2kIEsGwLkroYf24IrPAvOT/ZQ2OYMV6vlrg==", 162 | "cpu": [ 163 | "arm" 164 | ], 165 | "optional": true, 166 | "os": [ 167 | "linux" 168 | ] 169 | }, 170 | "node_modules/@rollup/rollup-linux-arm64-gnu": { 171 | "version": "4.22.4", 172 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.22.4.tgz", 173 | "integrity": "sha512-AdPRoNi3NKVLolCN/Sp4F4N1d98c4SBnHMKoLuiG6RXgoZ4sllseuGioszumnPGmPM2O7qaAX/IJdeDU8f26Aw==", 174 | "cpu": [ 175 | "arm64" 176 | ], 177 | "optional": true, 178 | "os": [ 179 | "linux" 180 | ] 181 | }, 182 | "node_modules/@rollup/rollup-linux-arm64-musl": { 183 | "version": "4.22.4", 184 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.22.4.tgz", 185 | "integrity": "sha512-Gl0AxBtDg8uoAn5CCqQDMqAx22Wx22pjDOjBdmG0VIWX3qUBHzYmOKh8KXHL4UpogfJ14G4wk16EQogF+v8hmA==", 186 | "cpu": [ 187 | "arm64" 188 | ], 189 | "optional": true, 190 | "os": [ 191 | "linux" 192 | ] 193 | }, 194 | "node_modules/@rollup/rollup-linux-powerpc64le-gnu": { 195 | "version": "4.22.4", 196 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.22.4.tgz", 197 | "integrity": "sha512-3aVCK9xfWW1oGQpTsYJJPF6bfpWfhbRnhdlyhak2ZiyFLDaayz0EP5j9V1RVLAAxlmWKTDfS9wyRyY3hvhPoOg==", 198 | "cpu": [ 199 | "ppc64" 200 | ], 201 | "optional": true, 202 | "os": [ 203 | "linux" 204 | ] 205 | }, 206 | "node_modules/@rollup/rollup-linux-riscv64-gnu": { 207 | "version": "4.22.4", 208 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.22.4.tgz", 209 | "integrity": "sha512-ePYIir6VYnhgv2C5Xe9u+ico4t8sZWXschR6fMgoPUK31yQu7hTEJb7bCqivHECwIClJfKgE7zYsh1qTP3WHUA==", 210 | "cpu": [ 211 | "riscv64" 212 | ], 213 | "optional": true, 214 | "os": [ 215 | "linux" 216 | ] 217 | }, 218 | "node_modules/@rollup/rollup-linux-s390x-gnu": { 219 | "version": "4.22.4", 220 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.22.4.tgz", 221 | "integrity": "sha512-GqFJ9wLlbB9daxhVlrTe61vJtEY99/xB3C8e4ULVsVfflcpmR6c8UZXjtkMA6FhNONhj2eA5Tk9uAVw5orEs4Q==", 222 | "cpu": [ 223 | "s390x" 224 | ], 225 | "optional": true, 226 | "os": [ 227 | "linux" 228 | ] 229 | }, 230 | "node_modules/@rollup/rollup-linux-x64-gnu": { 231 | "version": "4.22.4", 232 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.22.4.tgz", 233 | "integrity": "sha512-87v0ol2sH9GE3cLQLNEy0K/R0pz1nvg76o8M5nhMR0+Q+BBGLnb35P0fVz4CQxHYXaAOhE8HhlkaZfsdUOlHwg==", 234 | "cpu": [ 235 | "x64" 236 | ], 237 | "optional": true, 238 | "os": [ 239 | "linux" 240 | ] 241 | }, 242 | "node_modules/@rollup/rollup-linux-x64-musl": { 243 | "version": "4.22.4", 244 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.22.4.tgz", 245 | "integrity": "sha512-UV6FZMUgePDZrFjrNGIWzDo/vABebuXBhJEqrHxrGiU6HikPy0Z3LfdtciIttEUQfuDdCn8fqh7wiFJjCNwO+g==", 246 | "cpu": [ 247 | "x64" 248 | ], 249 | "optional": true, 250 | "os": [ 251 | "linux" 252 | ] 253 | }, 254 | "node_modules/@rollup/rollup-win32-arm64-msvc": { 255 | "version": "4.22.4", 256 | "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.22.4.tgz", 257 | "integrity": "sha512-BjI+NVVEGAXjGWYHz/vv0pBqfGoUH0IGZ0cICTn7kB9PyjrATSkX+8WkguNjWoj2qSr1im/+tTGRaY+4/PdcQw==", 258 | "cpu": [ 259 | "arm64" 260 | ], 261 | "optional": true, 262 | "os": [ 263 | "win32" 264 | ] 265 | }, 266 | "node_modules/@rollup/rollup-win32-ia32-msvc": { 267 | "version": "4.22.4", 268 | "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.22.4.tgz", 269 | "integrity": "sha512-SiWG/1TuUdPvYmzmYnmd3IEifzR61Tragkbx9D3+R8mzQqDBz8v+BvZNDlkiTtI9T15KYZhP0ehn3Dld4n9J5g==", 270 | "cpu": [ 271 | "ia32" 272 | ], 273 | "optional": true, 274 | "os": [ 275 | "win32" 276 | ] 277 | }, 278 | "node_modules/@rollup/rollup-win32-x64-msvc": { 279 | "version": "4.22.4", 280 | "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.22.4.tgz", 281 | "integrity": "sha512-j8pPKp53/lq9lMXN57S8cFz0MynJk8OWNuUnXct/9KCpKU7DgU3bYMJhwWmcqC0UU29p8Lr0/7KEVcaM6bf47Q==", 282 | "cpu": [ 283 | "x64" 284 | ], 285 | "optional": true, 286 | "os": [ 287 | "win32" 288 | ] 289 | }, 290 | "node_modules/@types/estree": { 291 | "version": "1.0.5", 292 | "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz", 293 | "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==" 294 | }, 295 | "node_modules/@types/node": { 296 | "version": "18.6.1", 297 | "resolved": "https://registry.npmjs.org/@types/node/-/node-18.6.1.tgz", 298 | "integrity": "sha512-z+2vB6yDt1fNwKOeGbckpmirO+VBDuQqecXkgeIqDlaOtmKn6hPR/viQ8cxCfqLU4fTlvM3+YjM367TukWdxpg==", 299 | "optional": true, 300 | "peer": true 301 | }, 302 | "node_modules/acorn": { 303 | "version": "8.8.0", 304 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.0.tgz", 305 | "integrity": "sha512-QOxyigPVrpZ2GXT+PFyZTl6TtOFc5egxHIP9IlQ+RbupQuX4RkT/Bee4/kQuC02Xkzg84JcT7oLYtDIQxp+v7w==", 306 | "optional": true, 307 | "peer": true, 308 | "bin": { 309 | "acorn": "bin/acorn" 310 | }, 311 | "engines": { 312 | "node": ">=0.4.0" 313 | } 314 | }, 315 | "node_modules/ansi-styles": { 316 | "version": "3.2.1", 317 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", 318 | "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", 319 | "dev": true, 320 | "dependencies": { 321 | "color-convert": "^1.9.0" 322 | }, 323 | "engines": { 324 | "node": ">=4" 325 | } 326 | }, 327 | "node_modules/array-buffer-byte-length": { 328 | "version": "1.0.1", 329 | "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.1.tgz", 330 | "integrity": "sha512-ahC5W1xgou+KTXix4sAO8Ki12Q+jf4i0+tmk3sC+zgcynshkHxzpXdImBehiUYKKKDwvfFiJl1tZt6ewscS1Mg==", 331 | "dev": true, 332 | "dependencies": { 333 | "call-bind": "^1.0.5", 334 | "is-array-buffer": "^3.0.4" 335 | }, 336 | "engines": { 337 | "node": ">= 0.4" 338 | }, 339 | "funding": { 340 | "url": "https://github.com/sponsors/ljharb" 341 | } 342 | }, 343 | "node_modules/arraybuffer.prototype.slice": { 344 | "version": "1.0.3", 345 | "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.3.tgz", 346 | "integrity": "sha512-bMxMKAjg13EBSVscxTaYA4mRc5t1UAXa2kXiGTNfZ079HIWXEkKmkgFrh/nJqamaLSrXO5H4WFFkPEaLJWbs3A==", 347 | "dev": true, 348 | "dependencies": { 349 | "array-buffer-byte-length": "^1.0.1", 350 | "call-bind": "^1.0.5", 351 | "define-properties": "^1.2.1", 352 | "es-abstract": "^1.22.3", 353 | "es-errors": "^1.2.1", 354 | "get-intrinsic": "^1.2.3", 355 | "is-array-buffer": "^3.0.4", 356 | "is-shared-array-buffer": "^1.0.2" 357 | }, 358 | "engines": { 359 | "node": ">= 0.4" 360 | }, 361 | "funding": { 362 | "url": "https://github.com/sponsors/ljharb" 363 | } 364 | }, 365 | "node_modules/available-typed-arrays": { 366 | "version": "1.0.7", 367 | "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", 368 | "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", 369 | "dev": true, 370 | "dependencies": { 371 | "possible-typed-array-names": "^1.0.0" 372 | }, 373 | "engines": { 374 | "node": ">= 0.4" 375 | }, 376 | "funding": { 377 | "url": "https://github.com/sponsors/ljharb" 378 | } 379 | }, 380 | "node_modules/balanced-match": { 381 | "version": "1.0.2", 382 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 383 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", 384 | "dev": true 385 | }, 386 | "node_modules/buffer-from": { 387 | "version": "1.1.2", 388 | "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", 389 | "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", 390 | "optional": true, 391 | "peer": true 392 | }, 393 | "node_modules/call-bind": { 394 | "version": "1.0.7", 395 | "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz", 396 | "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==", 397 | "dev": true, 398 | "dependencies": { 399 | "es-define-property": "^1.0.0", 400 | "es-errors": "^1.3.0", 401 | "function-bind": "^1.1.2", 402 | "get-intrinsic": "^1.2.4", 403 | "set-function-length": "^1.2.1" 404 | }, 405 | "engines": { 406 | "node": ">= 0.4" 407 | }, 408 | "funding": { 409 | "url": "https://github.com/sponsors/ljharb" 410 | } 411 | }, 412 | "node_modules/chalk": { 413 | "version": "2.4.2", 414 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", 415 | "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", 416 | "dev": true, 417 | "dependencies": { 418 | "ansi-styles": "^3.2.1", 419 | "escape-string-regexp": "^1.0.5", 420 | "supports-color": "^5.3.0" 421 | }, 422 | "engines": { 423 | "node": ">=4" 424 | } 425 | }, 426 | "node_modules/color-convert": { 427 | "version": "1.9.3", 428 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", 429 | "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", 430 | "dev": true, 431 | "dependencies": { 432 | "color-name": "1.1.3" 433 | } 434 | }, 435 | "node_modules/color-name": { 436 | "version": "1.1.3", 437 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", 438 | "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", 439 | "dev": true 440 | }, 441 | "node_modules/concat-map": { 442 | "version": "0.0.1", 443 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 444 | "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", 445 | "dev": true 446 | }, 447 | "node_modules/cross-spawn": { 448 | "version": "6.0.5", 449 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", 450 | "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", 451 | "dev": true, 452 | "dependencies": { 453 | "nice-try": "^1.0.4", 454 | "path-key": "^2.0.1", 455 | "semver": "^5.5.0", 456 | "shebang-command": "^1.2.0", 457 | "which": "^1.2.9" 458 | }, 459 | "engines": { 460 | "node": ">=4.8" 461 | } 462 | }, 463 | "node_modules/data-view-buffer": { 464 | "version": "1.0.1", 465 | "resolved": "https://registry.npmjs.org/data-view-buffer/-/data-view-buffer-1.0.1.tgz", 466 | "integrity": "sha512-0lht7OugA5x3iJLOWFhWK/5ehONdprk0ISXqVFn/NFrDu+cuc8iADFrGQz5BnRK7LLU3JmkbXSxaqX+/mXYtUA==", 467 | "dev": true, 468 | "dependencies": { 469 | "call-bind": "^1.0.6", 470 | "es-errors": "^1.3.0", 471 | "is-data-view": "^1.0.1" 472 | }, 473 | "engines": { 474 | "node": ">= 0.4" 475 | }, 476 | "funding": { 477 | "url": "https://github.com/sponsors/ljharb" 478 | } 479 | }, 480 | "node_modules/data-view-byte-length": { 481 | "version": "1.0.1", 482 | "resolved": "https://registry.npmjs.org/data-view-byte-length/-/data-view-byte-length-1.0.1.tgz", 483 | "integrity": "sha512-4J7wRJD3ABAzr8wP+OcIcqq2dlUKp4DVflx++hs5h5ZKydWMI6/D/fAot+yh6g2tHh8fLFTvNOaVN357NvSrOQ==", 484 | "dev": true, 485 | "dependencies": { 486 | "call-bind": "^1.0.7", 487 | "es-errors": "^1.3.0", 488 | "is-data-view": "^1.0.1" 489 | }, 490 | "engines": { 491 | "node": ">= 0.4" 492 | }, 493 | "funding": { 494 | "url": "https://github.com/sponsors/ljharb" 495 | } 496 | }, 497 | "node_modules/data-view-byte-offset": { 498 | "version": "1.0.0", 499 | "resolved": "https://registry.npmjs.org/data-view-byte-offset/-/data-view-byte-offset-1.0.0.tgz", 500 | "integrity": "sha512-t/Ygsytq+R995EJ5PZlD4Cu56sWa8InXySaViRzw9apusqsOO2bQP+SbYzAhR0pFKoB+43lYy8rWban9JSuXnA==", 501 | "dev": true, 502 | "dependencies": { 503 | "call-bind": "^1.0.6", 504 | "es-errors": "^1.3.0", 505 | "is-data-view": "^1.0.1" 506 | }, 507 | "engines": { 508 | "node": ">= 0.4" 509 | }, 510 | "funding": { 511 | "url": "https://github.com/sponsors/ljharb" 512 | } 513 | }, 514 | "node_modules/define-data-property": { 515 | "version": "1.1.4", 516 | "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", 517 | "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", 518 | "dev": true, 519 | "dependencies": { 520 | "es-define-property": "^1.0.0", 521 | "es-errors": "^1.3.0", 522 | "gopd": "^1.0.1" 523 | }, 524 | "engines": { 525 | "node": ">= 0.4" 526 | }, 527 | "funding": { 528 | "url": "https://github.com/sponsors/ljharb" 529 | } 530 | }, 531 | "node_modules/define-properties": { 532 | "version": "1.2.1", 533 | "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", 534 | "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", 535 | "dev": true, 536 | "dependencies": { 537 | "define-data-property": "^1.0.1", 538 | "has-property-descriptors": "^1.0.0", 539 | "object-keys": "^1.1.1" 540 | }, 541 | "engines": { 542 | "node": ">= 0.4" 543 | }, 544 | "funding": { 545 | "url": "https://github.com/sponsors/ljharb" 546 | } 547 | }, 548 | "node_modules/error-ex": { 549 | "version": "1.3.2", 550 | "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", 551 | "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", 552 | "dev": true, 553 | "dependencies": { 554 | "is-arrayish": "^0.2.1" 555 | } 556 | }, 557 | "node_modules/es-abstract": { 558 | "version": "1.23.3", 559 | "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.23.3.tgz", 560 | "integrity": "sha512-e+HfNH61Bj1X9/jLc5v1owaLYuHdeHHSQlkhCBiTK8rBvKaULl/beGMxwrMXjpYrv4pz22BlY570vVePA2ho4A==", 561 | "dev": true, 562 | "dependencies": { 563 | "array-buffer-byte-length": "^1.0.1", 564 | "arraybuffer.prototype.slice": "^1.0.3", 565 | "available-typed-arrays": "^1.0.7", 566 | "call-bind": "^1.0.7", 567 | "data-view-buffer": "^1.0.1", 568 | "data-view-byte-length": "^1.0.1", 569 | "data-view-byte-offset": "^1.0.0", 570 | "es-define-property": "^1.0.0", 571 | "es-errors": "^1.3.0", 572 | "es-object-atoms": "^1.0.0", 573 | "es-set-tostringtag": "^2.0.3", 574 | "es-to-primitive": "^1.2.1", 575 | "function.prototype.name": "^1.1.6", 576 | "get-intrinsic": "^1.2.4", 577 | "get-symbol-description": "^1.0.2", 578 | "globalthis": "^1.0.3", 579 | "gopd": "^1.0.1", 580 | "has-property-descriptors": "^1.0.2", 581 | "has-proto": "^1.0.3", 582 | "has-symbols": "^1.0.3", 583 | "hasown": "^2.0.2", 584 | "internal-slot": "^1.0.7", 585 | "is-array-buffer": "^3.0.4", 586 | "is-callable": "^1.2.7", 587 | "is-data-view": "^1.0.1", 588 | "is-negative-zero": "^2.0.3", 589 | "is-regex": "^1.1.4", 590 | "is-shared-array-buffer": "^1.0.3", 591 | "is-string": "^1.0.7", 592 | "is-typed-array": "^1.1.13", 593 | "is-weakref": "^1.0.2", 594 | "object-inspect": "^1.13.1", 595 | "object-keys": "^1.1.1", 596 | "object.assign": "^4.1.5", 597 | "regexp.prototype.flags": "^1.5.2", 598 | "safe-array-concat": "^1.1.2", 599 | "safe-regex-test": "^1.0.3", 600 | "string.prototype.trim": "^1.2.9", 601 | "string.prototype.trimend": "^1.0.8", 602 | "string.prototype.trimstart": "^1.0.8", 603 | "typed-array-buffer": "^1.0.2", 604 | "typed-array-byte-length": "^1.0.1", 605 | "typed-array-byte-offset": "^1.0.2", 606 | "typed-array-length": "^1.0.6", 607 | "unbox-primitive": "^1.0.2", 608 | "which-typed-array": "^1.1.15" 609 | }, 610 | "engines": { 611 | "node": ">= 0.4" 612 | }, 613 | "funding": { 614 | "url": "https://github.com/sponsors/ljharb" 615 | } 616 | }, 617 | "node_modules/es-define-property": { 618 | "version": "1.0.0", 619 | "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz", 620 | "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==", 621 | "dev": true, 622 | "dependencies": { 623 | "get-intrinsic": "^1.2.4" 624 | }, 625 | "engines": { 626 | "node": ">= 0.4" 627 | } 628 | }, 629 | "node_modules/es-errors": { 630 | "version": "1.3.0", 631 | "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", 632 | "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", 633 | "dev": true, 634 | "engines": { 635 | "node": ">= 0.4" 636 | } 637 | }, 638 | "node_modules/es-object-atoms": { 639 | "version": "1.0.0", 640 | "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.0.0.tgz", 641 | "integrity": "sha512-MZ4iQ6JwHOBQjahnjwaC1ZtIBH+2ohjamzAO3oaHcXYup7qxjF2fixyH+Q71voWHeOkI2q/TnJao/KfXYIZWbw==", 642 | "dev": true, 643 | "dependencies": { 644 | "es-errors": "^1.3.0" 645 | }, 646 | "engines": { 647 | "node": ">= 0.4" 648 | } 649 | }, 650 | "node_modules/es-set-tostringtag": { 651 | "version": "2.0.3", 652 | "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.3.tgz", 653 | "integrity": "sha512-3T8uNMC3OQTHkFUsFq8r/BwAXLHvU/9O9mE0fBc/MY5iq/8H7ncvO947LmYA6ldWw9Uh8Yhf25zu6n7nML5QWQ==", 654 | "dev": true, 655 | "dependencies": { 656 | "get-intrinsic": "^1.2.4", 657 | "has-tostringtag": "^1.0.2", 658 | "hasown": "^2.0.1" 659 | }, 660 | "engines": { 661 | "node": ">= 0.4" 662 | } 663 | }, 664 | "node_modules/es-to-primitive": { 665 | "version": "1.2.1", 666 | "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", 667 | "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", 668 | "dev": true, 669 | "dependencies": { 670 | "is-callable": "^1.1.4", 671 | "is-date-object": "^1.0.1", 672 | "is-symbol": "^1.0.2" 673 | }, 674 | "engines": { 675 | "node": ">= 0.4" 676 | }, 677 | "funding": { 678 | "url": "https://github.com/sponsors/ljharb" 679 | } 680 | }, 681 | "node_modules/esbuild": { 682 | "version": "0.20.2", 683 | "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.20.2.tgz", 684 | "integrity": "sha512-WdOOppmUNU+IbZ0PaDiTst80zjnrOkyJNHoKupIcVyU8Lvla3Ugx94VzkQ32Ijqd7UhHJy75gNWDMUekcrSJ6g==", 685 | "hasInstallScript": true, 686 | "bin": { 687 | "esbuild": "bin/esbuild" 688 | }, 689 | "engines": { 690 | "node": ">=12" 691 | }, 692 | "optionalDependencies": { 693 | "@esbuild/aix-ppc64": "0.20.2", 694 | "@esbuild/android-arm": "0.20.2", 695 | "@esbuild/android-arm64": "0.20.2", 696 | "@esbuild/android-x64": "0.20.2", 697 | "@esbuild/darwin-arm64": "0.20.2", 698 | "@esbuild/darwin-x64": "0.20.2", 699 | "@esbuild/freebsd-arm64": "0.20.2", 700 | "@esbuild/freebsd-x64": "0.20.2", 701 | "@esbuild/linux-arm": "0.20.2", 702 | "@esbuild/linux-arm64": "0.20.2", 703 | "@esbuild/linux-ia32": "0.20.2", 704 | "@esbuild/linux-loong64": "0.20.2", 705 | "@esbuild/linux-mips64el": "0.20.2", 706 | "@esbuild/linux-ppc64": "0.20.2", 707 | "@esbuild/linux-riscv64": "0.20.2", 708 | "@esbuild/linux-s390x": "0.20.2", 709 | "@esbuild/linux-x64": "0.20.2", 710 | "@esbuild/netbsd-x64": "0.20.2", 711 | "@esbuild/openbsd-x64": "0.20.2", 712 | "@esbuild/sunos-x64": "0.20.2", 713 | "@esbuild/win32-arm64": "0.20.2", 714 | "@esbuild/win32-ia32": "0.20.2", 715 | "@esbuild/win32-x64": "0.20.2" 716 | } 717 | }, 718 | "node_modules/escape-string-regexp": { 719 | "version": "1.0.5", 720 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", 721 | "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", 722 | "dev": true, 723 | "engines": { 724 | "node": ">=0.8.0" 725 | } 726 | }, 727 | "node_modules/for-each": { 728 | "version": "0.3.3", 729 | "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", 730 | "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", 731 | "dev": true, 732 | "dependencies": { 733 | "is-callable": "^1.1.3" 734 | } 735 | }, 736 | "node_modules/fsevents": { 737 | "version": "2.3.3", 738 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", 739 | "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", 740 | "hasInstallScript": true, 741 | "optional": true, 742 | "os": [ 743 | "darwin" 744 | ], 745 | "engines": { 746 | "node": "^8.16.0 || ^10.6.0 || >=11.0.0" 747 | } 748 | }, 749 | "node_modules/function-bind": { 750 | "version": "1.1.2", 751 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", 752 | "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", 753 | "dev": true, 754 | "funding": { 755 | "url": "https://github.com/sponsors/ljharb" 756 | } 757 | }, 758 | "node_modules/function.prototype.name": { 759 | "version": "1.1.6", 760 | "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.6.tgz", 761 | "integrity": "sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==", 762 | "dev": true, 763 | "dependencies": { 764 | "call-bind": "^1.0.2", 765 | "define-properties": "^1.2.0", 766 | "es-abstract": "^1.22.1", 767 | "functions-have-names": "^1.2.3" 768 | }, 769 | "engines": { 770 | "node": ">= 0.4" 771 | }, 772 | "funding": { 773 | "url": "https://github.com/sponsors/ljharb" 774 | } 775 | }, 776 | "node_modules/functions-have-names": { 777 | "version": "1.2.3", 778 | "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", 779 | "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", 780 | "dev": true, 781 | "funding": { 782 | "url": "https://github.com/sponsors/ljharb" 783 | } 784 | }, 785 | "node_modules/get-intrinsic": { 786 | "version": "1.2.4", 787 | "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz", 788 | "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==", 789 | "dev": true, 790 | "dependencies": { 791 | "es-errors": "^1.3.0", 792 | "function-bind": "^1.1.2", 793 | "has-proto": "^1.0.1", 794 | "has-symbols": "^1.0.3", 795 | "hasown": "^2.0.0" 796 | }, 797 | "engines": { 798 | "node": ">= 0.4" 799 | }, 800 | "funding": { 801 | "url": "https://github.com/sponsors/ljharb" 802 | } 803 | }, 804 | "node_modules/get-symbol-description": { 805 | "version": "1.0.2", 806 | "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.2.tgz", 807 | "integrity": "sha512-g0QYk1dZBxGwk+Ngc+ltRH2IBp2f7zBkBMBJZCDerh6EhlhSR6+9irMCuT/09zD6qkarHUSn529sK/yL4S27mg==", 808 | "dev": true, 809 | "dependencies": { 810 | "call-bind": "^1.0.5", 811 | "es-errors": "^1.3.0", 812 | "get-intrinsic": "^1.2.4" 813 | }, 814 | "engines": { 815 | "node": ">= 0.4" 816 | }, 817 | "funding": { 818 | "url": "https://github.com/sponsors/ljharb" 819 | } 820 | }, 821 | "node_modules/globalthis": { 822 | "version": "1.0.4", 823 | "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz", 824 | "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==", 825 | "dev": true, 826 | "dependencies": { 827 | "define-properties": "^1.2.1", 828 | "gopd": "^1.0.1" 829 | }, 830 | "engines": { 831 | "node": ">= 0.4" 832 | }, 833 | "funding": { 834 | "url": "https://github.com/sponsors/ljharb" 835 | } 836 | }, 837 | "node_modules/gopd": { 838 | "version": "1.0.1", 839 | "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", 840 | "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", 841 | "dev": true, 842 | "dependencies": { 843 | "get-intrinsic": "^1.1.3" 844 | }, 845 | "funding": { 846 | "url": "https://github.com/sponsors/ljharb" 847 | } 848 | }, 849 | "node_modules/graceful-fs": { 850 | "version": "4.2.11", 851 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", 852 | "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", 853 | "dev": true 854 | }, 855 | "node_modules/has-bigints": { 856 | "version": "1.0.2", 857 | "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", 858 | "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", 859 | "dev": true, 860 | "funding": { 861 | "url": "https://github.com/sponsors/ljharb" 862 | } 863 | }, 864 | "node_modules/has-flag": { 865 | "version": "3.0.0", 866 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", 867 | "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", 868 | "dev": true, 869 | "engines": { 870 | "node": ">=4" 871 | } 872 | }, 873 | "node_modules/has-property-descriptors": { 874 | "version": "1.0.2", 875 | "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", 876 | "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", 877 | "dev": true, 878 | "dependencies": { 879 | "es-define-property": "^1.0.0" 880 | }, 881 | "funding": { 882 | "url": "https://github.com/sponsors/ljharb" 883 | } 884 | }, 885 | "node_modules/has-proto": { 886 | "version": "1.0.3", 887 | "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz", 888 | "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==", 889 | "dev": true, 890 | "engines": { 891 | "node": ">= 0.4" 892 | }, 893 | "funding": { 894 | "url": "https://github.com/sponsors/ljharb" 895 | } 896 | }, 897 | "node_modules/has-symbols": { 898 | "version": "1.0.3", 899 | "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", 900 | "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", 901 | "dev": true, 902 | "engines": { 903 | "node": ">= 0.4" 904 | }, 905 | "funding": { 906 | "url": "https://github.com/sponsors/ljharb" 907 | } 908 | }, 909 | "node_modules/has-tostringtag": { 910 | "version": "1.0.2", 911 | "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", 912 | "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", 913 | "dev": true, 914 | "dependencies": { 915 | "has-symbols": "^1.0.3" 916 | }, 917 | "engines": { 918 | "node": ">= 0.4" 919 | }, 920 | "funding": { 921 | "url": "https://github.com/sponsors/ljharb" 922 | } 923 | }, 924 | "node_modules/hasown": { 925 | "version": "2.0.2", 926 | "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", 927 | "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", 928 | "dev": true, 929 | "dependencies": { 930 | "function-bind": "^1.1.2" 931 | }, 932 | "engines": { 933 | "node": ">= 0.4" 934 | } 935 | }, 936 | "node_modules/hosted-git-info": { 937 | "version": "2.8.9", 938 | "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", 939 | "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", 940 | "dev": true 941 | }, 942 | "node_modules/internal-slot": { 943 | "version": "1.0.7", 944 | "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.7.tgz", 945 | "integrity": "sha512-NGnrKwXzSms2qUUih/ILZ5JBqNTSa1+ZmP6flaIp6KmSElgE9qdndzS3cqjrDovwFdmwsGsLdeFgB6suw+1e9g==", 946 | "dev": true, 947 | "dependencies": { 948 | "es-errors": "^1.3.0", 949 | "hasown": "^2.0.0", 950 | "side-channel": "^1.0.4" 951 | }, 952 | "engines": { 953 | "node": ">= 0.4" 954 | } 955 | }, 956 | "node_modules/is-array-buffer": { 957 | "version": "3.0.4", 958 | "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.4.tgz", 959 | "integrity": "sha512-wcjaerHw0ydZwfhiKbXJWLDY8A7yV7KhjQOpb83hGgGfId/aQa4TOvwyzn2PuswW2gPCYEL/nEAiSVpdOj1lXw==", 960 | "dev": true, 961 | "dependencies": { 962 | "call-bind": "^1.0.2", 963 | "get-intrinsic": "^1.2.1" 964 | }, 965 | "engines": { 966 | "node": ">= 0.4" 967 | }, 968 | "funding": { 969 | "url": "https://github.com/sponsors/ljharb" 970 | } 971 | }, 972 | "node_modules/is-arrayish": { 973 | "version": "0.2.1", 974 | "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", 975 | "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", 976 | "dev": true 977 | }, 978 | "node_modules/is-bigint": { 979 | "version": "1.0.4", 980 | "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", 981 | "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", 982 | "dev": true, 983 | "dependencies": { 984 | "has-bigints": "^1.0.1" 985 | }, 986 | "funding": { 987 | "url": "https://github.com/sponsors/ljharb" 988 | } 989 | }, 990 | "node_modules/is-boolean-object": { 991 | "version": "1.1.2", 992 | "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", 993 | "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", 994 | "dev": true, 995 | "dependencies": { 996 | "call-bind": "^1.0.2", 997 | "has-tostringtag": "^1.0.0" 998 | }, 999 | "engines": { 1000 | "node": ">= 0.4" 1001 | }, 1002 | "funding": { 1003 | "url": "https://github.com/sponsors/ljharb" 1004 | } 1005 | }, 1006 | "node_modules/is-callable": { 1007 | "version": "1.2.7", 1008 | "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", 1009 | "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", 1010 | "dev": true, 1011 | "engines": { 1012 | "node": ">= 0.4" 1013 | }, 1014 | "funding": { 1015 | "url": "https://github.com/sponsors/ljharb" 1016 | } 1017 | }, 1018 | "node_modules/is-core-module": { 1019 | "version": "2.13.1", 1020 | "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz", 1021 | "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==", 1022 | "dev": true, 1023 | "dependencies": { 1024 | "hasown": "^2.0.0" 1025 | }, 1026 | "funding": { 1027 | "url": "https://github.com/sponsors/ljharb" 1028 | } 1029 | }, 1030 | "node_modules/is-data-view": { 1031 | "version": "1.0.1", 1032 | "resolved": "https://registry.npmjs.org/is-data-view/-/is-data-view-1.0.1.tgz", 1033 | "integrity": "sha512-AHkaJrsUVW6wq6JS8y3JnM/GJF/9cf+k20+iDzlSaJrinEo5+7vRiteOSwBhHRiAyQATN1AmY4hwzxJKPmYf+w==", 1034 | "dev": true, 1035 | "dependencies": { 1036 | "is-typed-array": "^1.1.13" 1037 | }, 1038 | "engines": { 1039 | "node": ">= 0.4" 1040 | }, 1041 | "funding": { 1042 | "url": "https://github.com/sponsors/ljharb" 1043 | } 1044 | }, 1045 | "node_modules/is-date-object": { 1046 | "version": "1.0.5", 1047 | "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", 1048 | "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", 1049 | "dev": true, 1050 | "dependencies": { 1051 | "has-tostringtag": "^1.0.0" 1052 | }, 1053 | "engines": { 1054 | "node": ">= 0.4" 1055 | }, 1056 | "funding": { 1057 | "url": "https://github.com/sponsors/ljharb" 1058 | } 1059 | }, 1060 | "node_modules/is-negative-zero": { 1061 | "version": "2.0.3", 1062 | "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.3.tgz", 1063 | "integrity": "sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==", 1064 | "dev": true, 1065 | "engines": { 1066 | "node": ">= 0.4" 1067 | }, 1068 | "funding": { 1069 | "url": "https://github.com/sponsors/ljharb" 1070 | } 1071 | }, 1072 | "node_modules/is-number-object": { 1073 | "version": "1.0.7", 1074 | "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", 1075 | "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", 1076 | "dev": true, 1077 | "dependencies": { 1078 | "has-tostringtag": "^1.0.0" 1079 | }, 1080 | "engines": { 1081 | "node": ">= 0.4" 1082 | }, 1083 | "funding": { 1084 | "url": "https://github.com/sponsors/ljharb" 1085 | } 1086 | }, 1087 | "node_modules/is-regex": { 1088 | "version": "1.1.4", 1089 | "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", 1090 | "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", 1091 | "dev": true, 1092 | "dependencies": { 1093 | "call-bind": "^1.0.2", 1094 | "has-tostringtag": "^1.0.0" 1095 | }, 1096 | "engines": { 1097 | "node": ">= 0.4" 1098 | }, 1099 | "funding": { 1100 | "url": "https://github.com/sponsors/ljharb" 1101 | } 1102 | }, 1103 | "node_modules/is-shared-array-buffer": { 1104 | "version": "1.0.3", 1105 | "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.3.tgz", 1106 | "integrity": "sha512-nA2hv5XIhLR3uVzDDfCIknerhx8XUKnstuOERPNNIinXG7v9u+ohXF67vxm4TPTEPU6lm61ZkwP3c9PCB97rhg==", 1107 | "dev": true, 1108 | "dependencies": { 1109 | "call-bind": "^1.0.7" 1110 | }, 1111 | "engines": { 1112 | "node": ">= 0.4" 1113 | }, 1114 | "funding": { 1115 | "url": "https://github.com/sponsors/ljharb" 1116 | } 1117 | }, 1118 | "node_modules/is-string": { 1119 | "version": "1.0.7", 1120 | "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", 1121 | "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", 1122 | "dev": true, 1123 | "dependencies": { 1124 | "has-tostringtag": "^1.0.0" 1125 | }, 1126 | "engines": { 1127 | "node": ">= 0.4" 1128 | }, 1129 | "funding": { 1130 | "url": "https://github.com/sponsors/ljharb" 1131 | } 1132 | }, 1133 | "node_modules/is-symbol": { 1134 | "version": "1.0.4", 1135 | "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", 1136 | "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", 1137 | "dev": true, 1138 | "dependencies": { 1139 | "has-symbols": "^1.0.2" 1140 | }, 1141 | "engines": { 1142 | "node": ">= 0.4" 1143 | }, 1144 | "funding": { 1145 | "url": "https://github.com/sponsors/ljharb" 1146 | } 1147 | }, 1148 | "node_modules/is-typed-array": { 1149 | "version": "1.1.13", 1150 | "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.13.tgz", 1151 | "integrity": "sha512-uZ25/bUAlUY5fR4OKT4rZQEBrzQWYV9ZJYGGsUmEJ6thodVJ1HX64ePQ6Z0qPWP+m+Uq6e9UugrE38jeYsDSMw==", 1152 | "dev": true, 1153 | "dependencies": { 1154 | "which-typed-array": "^1.1.14" 1155 | }, 1156 | "engines": { 1157 | "node": ">= 0.4" 1158 | }, 1159 | "funding": { 1160 | "url": "https://github.com/sponsors/ljharb" 1161 | } 1162 | }, 1163 | "node_modules/is-weakref": { 1164 | "version": "1.0.2", 1165 | "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", 1166 | "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", 1167 | "dev": true, 1168 | "dependencies": { 1169 | "call-bind": "^1.0.2" 1170 | }, 1171 | "funding": { 1172 | "url": "https://github.com/sponsors/ljharb" 1173 | } 1174 | }, 1175 | "node_modules/isarray": { 1176 | "version": "2.0.5", 1177 | "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", 1178 | "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", 1179 | "dev": true 1180 | }, 1181 | "node_modules/isexe": { 1182 | "version": "2.0.0", 1183 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 1184 | "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", 1185 | "dev": true 1186 | }, 1187 | "node_modules/js-tokens": { 1188 | "version": "4.0.0", 1189 | "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", 1190 | "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" 1191 | }, 1192 | "node_modules/json-parse-better-errors": { 1193 | "version": "1.0.2", 1194 | "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", 1195 | "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", 1196 | "dev": true 1197 | }, 1198 | "node_modules/load-json-file": { 1199 | "version": "4.0.0", 1200 | "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", 1201 | "integrity": "sha512-Kx8hMakjX03tiGTLAIdJ+lL0htKnXjEZN6hk/tozf/WOuYGdZBJrZ+rCJRbVCugsjB3jMLn9746NsQIf5VjBMw==", 1202 | "dev": true, 1203 | "dependencies": { 1204 | "graceful-fs": "^4.1.2", 1205 | "parse-json": "^4.0.0", 1206 | "pify": "^3.0.0", 1207 | "strip-bom": "^3.0.0" 1208 | }, 1209 | "engines": { 1210 | "node": ">=4" 1211 | } 1212 | }, 1213 | "node_modules/loose-envify": { 1214 | "version": "1.4.0", 1215 | "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", 1216 | "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", 1217 | "dependencies": { 1218 | "js-tokens": "^3.0.0 || ^4.0.0" 1219 | }, 1220 | "bin": { 1221 | "loose-envify": "cli.js" 1222 | } 1223 | }, 1224 | "node_modules/memorystream": { 1225 | "version": "0.3.1", 1226 | "resolved": "https://registry.npmjs.org/memorystream/-/memorystream-0.3.1.tgz", 1227 | "integrity": "sha512-S3UwM3yj5mtUSEfP41UZmt/0SCoVYUcU1rkXv+BQ5Ig8ndL4sPoJNBUJERafdPb5jjHJGuMgytgKvKIf58XNBw==", 1228 | "dev": true, 1229 | "engines": { 1230 | "node": ">= 0.10.0" 1231 | } 1232 | }, 1233 | "node_modules/nanoid": { 1234 | "version": "3.3.8", 1235 | "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.8.tgz", 1236 | "integrity": "sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==", 1237 | "funding": [ 1238 | { 1239 | "type": "github", 1240 | "url": "https://github.com/sponsors/ai" 1241 | } 1242 | ], 1243 | "bin": { 1244 | "nanoid": "bin/nanoid.cjs" 1245 | }, 1246 | "engines": { 1247 | "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" 1248 | } 1249 | }, 1250 | "node_modules/nice-try": { 1251 | "version": "1.0.5", 1252 | "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", 1253 | "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", 1254 | "dev": true 1255 | }, 1256 | "node_modules/normalize-package-data": { 1257 | "version": "2.5.0", 1258 | "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", 1259 | "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", 1260 | "dev": true, 1261 | "dependencies": { 1262 | "hosted-git-info": "^2.1.4", 1263 | "resolve": "^1.10.0", 1264 | "semver": "2 || 3 || 4 || 5", 1265 | "validate-npm-package-license": "^3.0.1" 1266 | } 1267 | }, 1268 | "node_modules/npm-run-all": { 1269 | "version": "4.1.5", 1270 | "resolved": "https://registry.npmjs.org/npm-run-all/-/npm-run-all-4.1.5.tgz", 1271 | "integrity": "sha512-Oo82gJDAVcaMdi3nuoKFavkIHBRVqQ1qvMb+9LHk/cF4P6B2m8aP04hGf7oL6wZ9BuGwX1onlLhpuoofSyoQDQ==", 1272 | "dev": true, 1273 | "dependencies": { 1274 | "ansi-styles": "^3.2.1", 1275 | "chalk": "^2.4.1", 1276 | "cross-spawn": "^6.0.5", 1277 | "memorystream": "^0.3.1", 1278 | "minimatch": "^3.0.4", 1279 | "pidtree": "^0.3.0", 1280 | "read-pkg": "^3.0.0", 1281 | "shell-quote": "^1.6.1", 1282 | "string.prototype.padend": "^3.0.0" 1283 | }, 1284 | "bin": { 1285 | "npm-run-all": "bin/npm-run-all/index.js", 1286 | "run-p": "bin/run-p/index.js", 1287 | "run-s": "bin/run-s/index.js" 1288 | }, 1289 | "engines": { 1290 | "node": ">= 4" 1291 | } 1292 | }, 1293 | "node_modules/npm-run-all/node_modules/brace-expansion": { 1294 | "version": "1.1.11", 1295 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 1296 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 1297 | "dev": true, 1298 | "dependencies": { 1299 | "balanced-match": "^1.0.0", 1300 | "concat-map": "0.0.1" 1301 | } 1302 | }, 1303 | "node_modules/npm-run-all/node_modules/minimatch": { 1304 | "version": "3.1.2", 1305 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", 1306 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 1307 | "dev": true, 1308 | "dependencies": { 1309 | "brace-expansion": "^1.1.7" 1310 | }, 1311 | "engines": { 1312 | "node": "*" 1313 | } 1314 | }, 1315 | "node_modules/object-inspect": { 1316 | "version": "1.13.1", 1317 | "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz", 1318 | "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==", 1319 | "dev": true, 1320 | "funding": { 1321 | "url": "https://github.com/sponsors/ljharb" 1322 | } 1323 | }, 1324 | "node_modules/object-keys": { 1325 | "version": "1.1.1", 1326 | "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", 1327 | "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", 1328 | "dev": true, 1329 | "engines": { 1330 | "node": ">= 0.4" 1331 | } 1332 | }, 1333 | "node_modules/object.assign": { 1334 | "version": "4.1.5", 1335 | "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.5.tgz", 1336 | "integrity": "sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ==", 1337 | "dev": true, 1338 | "dependencies": { 1339 | "call-bind": "^1.0.5", 1340 | "define-properties": "^1.2.1", 1341 | "has-symbols": "^1.0.3", 1342 | "object-keys": "^1.1.1" 1343 | }, 1344 | "engines": { 1345 | "node": ">= 0.4" 1346 | }, 1347 | "funding": { 1348 | "url": "https://github.com/sponsors/ljharb" 1349 | } 1350 | }, 1351 | "node_modules/parse-json": { 1352 | "version": "4.0.0", 1353 | "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", 1354 | "integrity": "sha512-aOIos8bujGN93/8Ox/jPLh7RwVnPEysynVFE+fQZyg6jKELEHwzgKdLRFHUgXJL6kylijVSBC4BvN9OmsB48Rw==", 1355 | "dev": true, 1356 | "dependencies": { 1357 | "error-ex": "^1.3.1", 1358 | "json-parse-better-errors": "^1.0.1" 1359 | }, 1360 | "engines": { 1361 | "node": ">=4" 1362 | } 1363 | }, 1364 | "node_modules/path-key": { 1365 | "version": "2.0.1", 1366 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", 1367 | "integrity": "sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==", 1368 | "dev": true, 1369 | "engines": { 1370 | "node": ">=4" 1371 | } 1372 | }, 1373 | "node_modules/path-parse": { 1374 | "version": "1.0.7", 1375 | "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", 1376 | "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", 1377 | "dev": true 1378 | }, 1379 | "node_modules/path-type": { 1380 | "version": "3.0.0", 1381 | "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", 1382 | "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", 1383 | "dev": true, 1384 | "dependencies": { 1385 | "pify": "^3.0.0" 1386 | }, 1387 | "engines": { 1388 | "node": ">=4" 1389 | } 1390 | }, 1391 | "node_modules/picocolors": { 1392 | "version": "1.0.0", 1393 | "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", 1394 | "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" 1395 | }, 1396 | "node_modules/pidtree": { 1397 | "version": "0.3.1", 1398 | "resolved": "https://registry.npmjs.org/pidtree/-/pidtree-0.3.1.tgz", 1399 | "integrity": "sha512-qQbW94hLHEqCg7nhby4yRC7G2+jYHY4Rguc2bjw7Uug4GIJuu1tvf2uHaZv5Q8zdt+WKJ6qK1FOI6amaWUo5FA==", 1400 | "dev": true, 1401 | "bin": { 1402 | "pidtree": "bin/pidtree.js" 1403 | }, 1404 | "engines": { 1405 | "node": ">=0.10" 1406 | } 1407 | }, 1408 | "node_modules/pify": { 1409 | "version": "3.0.0", 1410 | "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", 1411 | "integrity": "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==", 1412 | "dev": true, 1413 | "engines": { 1414 | "node": ">=4" 1415 | } 1416 | }, 1417 | "node_modules/possible-typed-array-names": { 1418 | "version": "1.0.0", 1419 | "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz", 1420 | "integrity": "sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==", 1421 | "dev": true, 1422 | "engines": { 1423 | "node": ">= 0.4" 1424 | } 1425 | }, 1426 | "node_modules/postcss": { 1427 | "version": "8.4.38", 1428 | "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.38.tgz", 1429 | "integrity": "sha512-Wglpdk03BSfXkHoQa3b/oulrotAkwrlLDRSOb9D0bN86FdRyE9lppSp33aHNPgBa0JKCoB+drFLZkQoRRYae5A==", 1430 | "funding": [ 1431 | { 1432 | "type": "opencollective", 1433 | "url": "https://opencollective.com/postcss/" 1434 | }, 1435 | { 1436 | "type": "tidelift", 1437 | "url": "https://tidelift.com/funding/github/npm/postcss" 1438 | }, 1439 | { 1440 | "type": "github", 1441 | "url": "https://github.com/sponsors/ai" 1442 | } 1443 | ], 1444 | "dependencies": { 1445 | "nanoid": "^3.3.7", 1446 | "picocolors": "^1.0.0", 1447 | "source-map-js": "^1.2.0" 1448 | }, 1449 | "engines": { 1450 | "node": "^10 || ^12 || >=14" 1451 | } 1452 | }, 1453 | "node_modules/react": { 1454 | "version": "18.3.1", 1455 | "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", 1456 | "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", 1457 | "dependencies": { 1458 | "loose-envify": "^1.1.0" 1459 | }, 1460 | "engines": { 1461 | "node": ">=0.10.0" 1462 | } 1463 | }, 1464 | "node_modules/react-dom": { 1465 | "version": "18.3.1", 1466 | "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz", 1467 | "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==", 1468 | "dependencies": { 1469 | "loose-envify": "^1.1.0", 1470 | "scheduler": "^0.23.2" 1471 | }, 1472 | "peerDependencies": { 1473 | "react": "^18.3.1" 1474 | } 1475 | }, 1476 | "node_modules/read-pkg": { 1477 | "version": "3.0.0", 1478 | "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", 1479 | "integrity": "sha512-BLq/cCO9two+lBgiTYNqD6GdtK8s4NpaWrl6/rCO9w0TUS8oJl7cmToOZfRYllKTISY6nt1U7jQ53brmKqY6BA==", 1480 | "dev": true, 1481 | "dependencies": { 1482 | "load-json-file": "^4.0.0", 1483 | "normalize-package-data": "^2.3.2", 1484 | "path-type": "^3.0.0" 1485 | }, 1486 | "engines": { 1487 | "node": ">=4" 1488 | } 1489 | }, 1490 | "node_modules/regexp.prototype.flags": { 1491 | "version": "1.5.2", 1492 | "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.2.tgz", 1493 | "integrity": "sha512-NcDiDkTLuPR+++OCKB0nWafEmhg/Da8aUPLPMQbK+bxKKCm1/S5he+AqYa4PlMCVBalb4/yxIRub6qkEx5yJbw==", 1494 | "dev": true, 1495 | "dependencies": { 1496 | "call-bind": "^1.0.6", 1497 | "define-properties": "^1.2.1", 1498 | "es-errors": "^1.3.0", 1499 | "set-function-name": "^2.0.1" 1500 | }, 1501 | "engines": { 1502 | "node": ">= 0.4" 1503 | }, 1504 | "funding": { 1505 | "url": "https://github.com/sponsors/ljharb" 1506 | } 1507 | }, 1508 | "node_modules/resolve": { 1509 | "version": "1.22.8", 1510 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", 1511 | "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", 1512 | "dev": true, 1513 | "dependencies": { 1514 | "is-core-module": "^2.13.0", 1515 | "path-parse": "^1.0.7", 1516 | "supports-preserve-symlinks-flag": "^1.0.0" 1517 | }, 1518 | "bin": { 1519 | "resolve": "bin/resolve" 1520 | }, 1521 | "funding": { 1522 | "url": "https://github.com/sponsors/ljharb" 1523 | } 1524 | }, 1525 | "node_modules/rollup": { 1526 | "version": "4.22.4", 1527 | "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.22.4.tgz", 1528 | "integrity": "sha512-vD8HJ5raRcWOyymsR6Z3o6+RzfEPCnVLMFJ6vRslO1jt4LO6dUo5Qnpg7y4RkZFM2DMe3WUirkI5c16onjrc6A==", 1529 | "dependencies": { 1530 | "@types/estree": "1.0.5" 1531 | }, 1532 | "bin": { 1533 | "rollup": "dist/bin/rollup" 1534 | }, 1535 | "engines": { 1536 | "node": ">=18.0.0", 1537 | "npm": ">=8.0.0" 1538 | }, 1539 | "optionalDependencies": { 1540 | "@rollup/rollup-android-arm-eabi": "4.22.4", 1541 | "@rollup/rollup-android-arm64": "4.22.4", 1542 | "@rollup/rollup-darwin-arm64": "4.22.4", 1543 | "@rollup/rollup-darwin-x64": "4.22.4", 1544 | "@rollup/rollup-linux-arm-gnueabihf": "4.22.4", 1545 | "@rollup/rollup-linux-arm-musleabihf": "4.22.4", 1546 | "@rollup/rollup-linux-arm64-gnu": "4.22.4", 1547 | "@rollup/rollup-linux-arm64-musl": "4.22.4", 1548 | "@rollup/rollup-linux-powerpc64le-gnu": "4.22.4", 1549 | "@rollup/rollup-linux-riscv64-gnu": "4.22.4", 1550 | "@rollup/rollup-linux-s390x-gnu": "4.22.4", 1551 | "@rollup/rollup-linux-x64-gnu": "4.22.4", 1552 | "@rollup/rollup-linux-x64-musl": "4.22.4", 1553 | "@rollup/rollup-win32-arm64-msvc": "4.22.4", 1554 | "@rollup/rollup-win32-ia32-msvc": "4.22.4", 1555 | "@rollup/rollup-win32-x64-msvc": "4.22.4", 1556 | "fsevents": "~2.3.2" 1557 | } 1558 | }, 1559 | "node_modules/safe-array-concat": { 1560 | "version": "1.1.2", 1561 | "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.2.tgz", 1562 | "integrity": "sha512-vj6RsCsWBCf19jIeHEfkRMw8DPiBb+DMXklQ/1SGDHOMlHdPUkZXFQ2YdplS23zESTijAcurb1aSgJA3AgMu1Q==", 1563 | "dev": true, 1564 | "dependencies": { 1565 | "call-bind": "^1.0.7", 1566 | "get-intrinsic": "^1.2.4", 1567 | "has-symbols": "^1.0.3", 1568 | "isarray": "^2.0.5" 1569 | }, 1570 | "engines": { 1571 | "node": ">=0.4" 1572 | }, 1573 | "funding": { 1574 | "url": "https://github.com/sponsors/ljharb" 1575 | } 1576 | }, 1577 | "node_modules/safe-regex-test": { 1578 | "version": "1.0.3", 1579 | "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.3.tgz", 1580 | "integrity": "sha512-CdASjNJPvRa7roO6Ra/gLYBTzYzzPyyBXxIMdGW3USQLyjWEls2RgW5UBTXaQVp+OrpeCK3bLem8smtmheoRuw==", 1581 | "dev": true, 1582 | "dependencies": { 1583 | "call-bind": "^1.0.6", 1584 | "es-errors": "^1.3.0", 1585 | "is-regex": "^1.1.4" 1586 | }, 1587 | "engines": { 1588 | "node": ">= 0.4" 1589 | }, 1590 | "funding": { 1591 | "url": "https://github.com/sponsors/ljharb" 1592 | } 1593 | }, 1594 | "node_modules/scheduler": { 1595 | "version": "0.23.2", 1596 | "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz", 1597 | "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==", 1598 | "dependencies": { 1599 | "loose-envify": "^1.1.0" 1600 | } 1601 | }, 1602 | "node_modules/semver": { 1603 | "version": "5.7.2", 1604 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", 1605 | "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", 1606 | "dev": true, 1607 | "bin": { 1608 | "semver": "bin/semver" 1609 | } 1610 | }, 1611 | "node_modules/set-function-length": { 1612 | "version": "1.2.2", 1613 | "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", 1614 | "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", 1615 | "dev": true, 1616 | "dependencies": { 1617 | "define-data-property": "^1.1.4", 1618 | "es-errors": "^1.3.0", 1619 | "function-bind": "^1.1.2", 1620 | "get-intrinsic": "^1.2.4", 1621 | "gopd": "^1.0.1", 1622 | "has-property-descriptors": "^1.0.2" 1623 | }, 1624 | "engines": { 1625 | "node": ">= 0.4" 1626 | } 1627 | }, 1628 | "node_modules/set-function-name": { 1629 | "version": "2.0.2", 1630 | "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.2.tgz", 1631 | "integrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==", 1632 | "dev": true, 1633 | "dependencies": { 1634 | "define-data-property": "^1.1.4", 1635 | "es-errors": "^1.3.0", 1636 | "functions-have-names": "^1.2.3", 1637 | "has-property-descriptors": "^1.0.2" 1638 | }, 1639 | "engines": { 1640 | "node": ">= 0.4" 1641 | } 1642 | }, 1643 | "node_modules/shebang-command": { 1644 | "version": "1.2.0", 1645 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", 1646 | "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==", 1647 | "dev": true, 1648 | "dependencies": { 1649 | "shebang-regex": "^1.0.0" 1650 | }, 1651 | "engines": { 1652 | "node": ">=0.10.0" 1653 | } 1654 | }, 1655 | "node_modules/shebang-regex": { 1656 | "version": "1.0.0", 1657 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", 1658 | "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==", 1659 | "dev": true, 1660 | "engines": { 1661 | "node": ">=0.10.0" 1662 | } 1663 | }, 1664 | "node_modules/shell-quote": { 1665 | "version": "1.8.1", 1666 | "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.1.tgz", 1667 | "integrity": "sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==", 1668 | "dev": true, 1669 | "funding": { 1670 | "url": "https://github.com/sponsors/ljharb" 1671 | } 1672 | }, 1673 | "node_modules/side-channel": { 1674 | "version": "1.0.6", 1675 | "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz", 1676 | "integrity": "sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==", 1677 | "dev": true, 1678 | "dependencies": { 1679 | "call-bind": "^1.0.7", 1680 | "es-errors": "^1.3.0", 1681 | "get-intrinsic": "^1.2.4", 1682 | "object-inspect": "^1.13.1" 1683 | }, 1684 | "engines": { 1685 | "node": ">= 0.4" 1686 | }, 1687 | "funding": { 1688 | "url": "https://github.com/sponsors/ljharb" 1689 | } 1690 | }, 1691 | "node_modules/source-map-js": { 1692 | "version": "1.2.0", 1693 | "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.0.tgz", 1694 | "integrity": "sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==", 1695 | "engines": { 1696 | "node": ">=0.10.0" 1697 | } 1698 | }, 1699 | "node_modules/source-map-support": { 1700 | "version": "0.5.21", 1701 | "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", 1702 | "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", 1703 | "optional": true, 1704 | "peer": true, 1705 | "dependencies": { 1706 | "buffer-from": "^1.0.0", 1707 | "source-map": "^0.6.0" 1708 | } 1709 | }, 1710 | "node_modules/source-map-support/node_modules/source-map": { 1711 | "version": "0.6.1", 1712 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", 1713 | "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", 1714 | "optional": true, 1715 | "peer": true, 1716 | "engines": { 1717 | "node": ">=0.10.0" 1718 | } 1719 | }, 1720 | "node_modules/spdx-correct": { 1721 | "version": "3.2.0", 1722 | "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.2.0.tgz", 1723 | "integrity": "sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==", 1724 | "dev": true, 1725 | "dependencies": { 1726 | "spdx-expression-parse": "^3.0.0", 1727 | "spdx-license-ids": "^3.0.0" 1728 | } 1729 | }, 1730 | "node_modules/spdx-exceptions": { 1731 | "version": "2.5.0", 1732 | "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.5.0.tgz", 1733 | "integrity": "sha512-PiU42r+xO4UbUS1buo3LPJkjlO7430Xn5SVAhdpzzsPHsjbYVflnnFdATgabnLude+Cqu25p6N+g2lw/PFsa4w==", 1734 | "dev": true 1735 | }, 1736 | "node_modules/spdx-expression-parse": { 1737 | "version": "3.0.1", 1738 | "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", 1739 | "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", 1740 | "dev": true, 1741 | "dependencies": { 1742 | "spdx-exceptions": "^2.1.0", 1743 | "spdx-license-ids": "^3.0.0" 1744 | } 1745 | }, 1746 | "node_modules/spdx-license-ids": { 1747 | "version": "3.0.17", 1748 | "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.17.tgz", 1749 | "integrity": "sha512-sh8PWc/ftMqAAdFiBu6Fy6JUOYjqDJBJvIhpfDMyHrr0Rbp5liZqd4TjtQ/RgfLjKFZb+LMx5hpml5qOWy0qvg==", 1750 | "dev": true 1751 | }, 1752 | "node_modules/string.prototype.padend": { 1753 | "version": "3.1.6", 1754 | "resolved": "https://registry.npmjs.org/string.prototype.padend/-/string.prototype.padend-3.1.6.tgz", 1755 | "integrity": "sha512-XZpspuSB7vJWhvJc9DLSlrXl1mcA2BdoY5jjnS135ydXqLoqhs96JjDtCkjJEQHvfqZIp9hBuBMgI589peyx9Q==", 1756 | "dev": true, 1757 | "dependencies": { 1758 | "call-bind": "^1.0.7", 1759 | "define-properties": "^1.2.1", 1760 | "es-abstract": "^1.23.2", 1761 | "es-object-atoms": "^1.0.0" 1762 | }, 1763 | "engines": { 1764 | "node": ">= 0.4" 1765 | }, 1766 | "funding": { 1767 | "url": "https://github.com/sponsors/ljharb" 1768 | } 1769 | }, 1770 | "node_modules/string.prototype.trim": { 1771 | "version": "1.2.9", 1772 | "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.9.tgz", 1773 | "integrity": "sha512-klHuCNxiMZ8MlsOihJhJEBJAiMVqU3Z2nEXWfWnIqjN0gEFS9J9+IxKozWWtQGcgoa1WUZzLjKPTr4ZHNFTFxw==", 1774 | "dev": true, 1775 | "dependencies": { 1776 | "call-bind": "^1.0.7", 1777 | "define-properties": "^1.2.1", 1778 | "es-abstract": "^1.23.0", 1779 | "es-object-atoms": "^1.0.0" 1780 | }, 1781 | "engines": { 1782 | "node": ">= 0.4" 1783 | }, 1784 | "funding": { 1785 | "url": "https://github.com/sponsors/ljharb" 1786 | } 1787 | }, 1788 | "node_modules/string.prototype.trimend": { 1789 | "version": "1.0.8", 1790 | "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.8.tgz", 1791 | "integrity": "sha512-p73uL5VCHCO2BZZ6krwwQE3kCzM7NKmis8S//xEC6fQonchbum4eP6kR4DLEjQFO3Wnj3Fuo8NM0kOSjVdHjZQ==", 1792 | "dev": true, 1793 | "dependencies": { 1794 | "call-bind": "^1.0.7", 1795 | "define-properties": "^1.2.1", 1796 | "es-object-atoms": "^1.0.0" 1797 | }, 1798 | "funding": { 1799 | "url": "https://github.com/sponsors/ljharb" 1800 | } 1801 | }, 1802 | "node_modules/string.prototype.trimstart": { 1803 | "version": "1.0.8", 1804 | "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.8.tgz", 1805 | "integrity": "sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==", 1806 | "dev": true, 1807 | "dependencies": { 1808 | "call-bind": "^1.0.7", 1809 | "define-properties": "^1.2.1", 1810 | "es-object-atoms": "^1.0.0" 1811 | }, 1812 | "engines": { 1813 | "node": ">= 0.4" 1814 | }, 1815 | "funding": { 1816 | "url": "https://github.com/sponsors/ljharb" 1817 | } 1818 | }, 1819 | "node_modules/strip-bom": { 1820 | "version": "3.0.0", 1821 | "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", 1822 | "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", 1823 | "dev": true, 1824 | "engines": { 1825 | "node": ">=4" 1826 | } 1827 | }, 1828 | "node_modules/supports-color": { 1829 | "version": "5.5.0", 1830 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", 1831 | "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", 1832 | "dev": true, 1833 | "dependencies": { 1834 | "has-flag": "^3.0.0" 1835 | }, 1836 | "engines": { 1837 | "node": ">=4" 1838 | } 1839 | }, 1840 | "node_modules/supports-preserve-symlinks-flag": { 1841 | "version": "1.0.0", 1842 | "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", 1843 | "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", 1844 | "dev": true, 1845 | "engines": { 1846 | "node": ">= 0.4" 1847 | }, 1848 | "funding": { 1849 | "url": "https://github.com/sponsors/ljharb" 1850 | } 1851 | }, 1852 | "node_modules/terser": { 1853 | "version": "5.14.2", 1854 | "resolved": "https://registry.npmjs.org/terser/-/terser-5.14.2.tgz", 1855 | "integrity": "sha512-oL0rGeM/WFQCUd0y2QrWxYnq7tfSuKBiqTjRPWrRgB46WD/kiwHwF8T23z78H6Q6kGCuuHcPB+KULHRdxvVGQA==", 1856 | "optional": true, 1857 | "peer": true, 1858 | "dependencies": { 1859 | "@jridgewell/source-map": "^0.3.2", 1860 | "acorn": "^8.5.0", 1861 | "commander": "^2.20.0", 1862 | "source-map-support": "~0.5.20" 1863 | }, 1864 | "bin": { 1865 | "terser": "bin/terser" 1866 | }, 1867 | "engines": { 1868 | "node": ">=10" 1869 | } 1870 | }, 1871 | "node_modules/terser/node_modules/commander": { 1872 | "version": "2.20.3", 1873 | "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", 1874 | "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", 1875 | "optional": true, 1876 | "peer": true 1877 | }, 1878 | "node_modules/typed-array-buffer": { 1879 | "version": "1.0.2", 1880 | "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.2.tgz", 1881 | "integrity": "sha512-gEymJYKZtKXzzBzM4jqa9w6Q1Jjm7x2d+sh19AdsD4wqnMPDYyvwpsIc2Q/835kHuo3BEQ7CjelGhfTsoBb2MQ==", 1882 | "dev": true, 1883 | "dependencies": { 1884 | "call-bind": "^1.0.7", 1885 | "es-errors": "^1.3.0", 1886 | "is-typed-array": "^1.1.13" 1887 | }, 1888 | "engines": { 1889 | "node": ">= 0.4" 1890 | } 1891 | }, 1892 | "node_modules/typed-array-byte-length": { 1893 | "version": "1.0.1", 1894 | "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.1.tgz", 1895 | "integrity": "sha512-3iMJ9q0ao7WE9tWcaYKIptkNBuOIcZCCT0d4MRvuuH88fEoEH62IuQe0OtraD3ebQEoTRk8XCBoknUNc1Y67pw==", 1896 | "dev": true, 1897 | "dependencies": { 1898 | "call-bind": "^1.0.7", 1899 | "for-each": "^0.3.3", 1900 | "gopd": "^1.0.1", 1901 | "has-proto": "^1.0.3", 1902 | "is-typed-array": "^1.1.13" 1903 | }, 1904 | "engines": { 1905 | "node": ">= 0.4" 1906 | }, 1907 | "funding": { 1908 | "url": "https://github.com/sponsors/ljharb" 1909 | } 1910 | }, 1911 | "node_modules/typed-array-byte-offset": { 1912 | "version": "1.0.2", 1913 | "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.2.tgz", 1914 | "integrity": "sha512-Ous0vodHa56FviZucS2E63zkgtgrACj7omjwd/8lTEMEPFFyjfixMZ1ZXenpgCFBBt4EC1J2XsyVS2gkG0eTFA==", 1915 | "dev": true, 1916 | "dependencies": { 1917 | "available-typed-arrays": "^1.0.7", 1918 | "call-bind": "^1.0.7", 1919 | "for-each": "^0.3.3", 1920 | "gopd": "^1.0.1", 1921 | "has-proto": "^1.0.3", 1922 | "is-typed-array": "^1.1.13" 1923 | }, 1924 | "engines": { 1925 | "node": ">= 0.4" 1926 | }, 1927 | "funding": { 1928 | "url": "https://github.com/sponsors/ljharb" 1929 | } 1930 | }, 1931 | "node_modules/typed-array-length": { 1932 | "version": "1.0.6", 1933 | "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.6.tgz", 1934 | "integrity": "sha512-/OxDN6OtAk5KBpGb28T+HZc2M+ADtvRxXrKKbUwtsLgdoxgX13hyy7ek6bFRl5+aBs2yZzB0c4CnQfAtVypW/g==", 1935 | "dev": true, 1936 | "dependencies": { 1937 | "call-bind": "^1.0.7", 1938 | "for-each": "^0.3.3", 1939 | "gopd": "^1.0.1", 1940 | "has-proto": "^1.0.3", 1941 | "is-typed-array": "^1.1.13", 1942 | "possible-typed-array-names": "^1.0.0" 1943 | }, 1944 | "engines": { 1945 | "node": ">= 0.4" 1946 | }, 1947 | "funding": { 1948 | "url": "https://github.com/sponsors/ljharb" 1949 | } 1950 | }, 1951 | "node_modules/unbox-primitive": { 1952 | "version": "1.0.2", 1953 | "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", 1954 | "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", 1955 | "dev": true, 1956 | "dependencies": { 1957 | "call-bind": "^1.0.2", 1958 | "has-bigints": "^1.0.2", 1959 | "has-symbols": "^1.0.3", 1960 | "which-boxed-primitive": "^1.0.2" 1961 | }, 1962 | "funding": { 1963 | "url": "https://github.com/sponsors/ljharb" 1964 | } 1965 | }, 1966 | "node_modules/validate-npm-package-license": { 1967 | "version": "3.0.4", 1968 | "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", 1969 | "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", 1970 | "dev": true, 1971 | "dependencies": { 1972 | "spdx-correct": "^3.0.0", 1973 | "spdx-expression-parse": "^3.0.0" 1974 | } 1975 | }, 1976 | "node_modules/vite": { 1977 | "version": "5.2.14", 1978 | "resolved": "https://registry.npmjs.org/vite/-/vite-5.2.14.tgz", 1979 | "integrity": "sha512-TFQLuwWLPms+NBNlh0D9LZQ+HXW471COABxw/9TEUBrjuHMo9BrYBPrN/SYAwIuVL+rLerycxiLT41t4f5MZpA==", 1980 | "dependencies": { 1981 | "esbuild": "^0.20.1", 1982 | "postcss": "^8.4.38", 1983 | "rollup": "^4.13.0" 1984 | }, 1985 | "bin": { 1986 | "vite": "bin/vite.js" 1987 | }, 1988 | "engines": { 1989 | "node": "^18.0.0 || >=20.0.0" 1990 | }, 1991 | "funding": { 1992 | "url": "https://github.com/vitejs/vite?sponsor=1" 1993 | }, 1994 | "optionalDependencies": { 1995 | "fsevents": "~2.3.3" 1996 | }, 1997 | "peerDependencies": { 1998 | "@types/node": "^18.0.0 || >=20.0.0", 1999 | "less": "*", 2000 | "lightningcss": "^1.21.0", 2001 | "sass": "*", 2002 | "stylus": "*", 2003 | "sugarss": "*", 2004 | "terser": "^5.4.0" 2005 | }, 2006 | "peerDependenciesMeta": { 2007 | "@types/node": { 2008 | "optional": true 2009 | }, 2010 | "less": { 2011 | "optional": true 2012 | }, 2013 | "lightningcss": { 2014 | "optional": true 2015 | }, 2016 | "sass": { 2017 | "optional": true 2018 | }, 2019 | "stylus": { 2020 | "optional": true 2021 | }, 2022 | "sugarss": { 2023 | "optional": true 2024 | }, 2025 | "terser": { 2026 | "optional": true 2027 | } 2028 | } 2029 | }, 2030 | "node_modules/which": { 2031 | "version": "1.3.1", 2032 | "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", 2033 | "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", 2034 | "dev": true, 2035 | "dependencies": { 2036 | "isexe": "^2.0.0" 2037 | }, 2038 | "bin": { 2039 | "which": "bin/which" 2040 | } 2041 | }, 2042 | "node_modules/which-boxed-primitive": { 2043 | "version": "1.0.2", 2044 | "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", 2045 | "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", 2046 | "dev": true, 2047 | "dependencies": { 2048 | "is-bigint": "^1.0.1", 2049 | "is-boolean-object": "^1.1.0", 2050 | "is-number-object": "^1.0.4", 2051 | "is-string": "^1.0.5", 2052 | "is-symbol": "^1.0.3" 2053 | }, 2054 | "funding": { 2055 | "url": "https://github.com/sponsors/ljharb" 2056 | } 2057 | }, 2058 | "node_modules/which-typed-array": { 2059 | "version": "1.1.15", 2060 | "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.15.tgz", 2061 | "integrity": "sha512-oV0jmFtUky6CXfkqehVvBP/LSWJ2sy4vWMioiENyJLePrBO/yKyV9OyJySfAKosh+RYkIl5zJCNZ8/4JncrpdA==", 2062 | "dev": true, 2063 | "dependencies": { 2064 | "available-typed-arrays": "^1.0.7", 2065 | "call-bind": "^1.0.7", 2066 | "for-each": "^0.3.3", 2067 | "gopd": "^1.0.1", 2068 | "has-tostringtag": "^1.0.2" 2069 | }, 2070 | "engines": { 2071 | "node": ">= 0.4" 2072 | }, 2073 | "funding": { 2074 | "url": "https://github.com/sponsors/ljharb" 2075 | } 2076 | } 2077 | } 2078 | } 2079 | -------------------------------------------------------------------------------- /userscript/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-userscripts", 3 | "version": "1.1.0", 4 | "private": true, 5 | "type": "module", 6 | "dependencies": { 7 | "react": "^18.3.1", 8 | "react-dom": "^18.3.1", 9 | "vite": "^5.2.14" 10 | }, 11 | "scripts": { 12 | "start": "npm-run-all --parallel build:watch preview", 13 | "preview": "vite preview", 14 | "build:watch": "vite build --watch", 15 | "build": "vite build" 16 | }, 17 | "devDependencies": { 18 | "npm-run-all": "^4.1.5" 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /userscript/src/App.css: -------------------------------------------------------------------------------- 1 | .App { 2 | text-align: center; 3 | } 4 | 5 | .App-logo { 6 | height: 40vmin; 7 | } 8 | 9 | .App-header { 10 | background-color: #282c34; 11 | min-height: 100vh; 12 | display: flex; 13 | flex-direction: column; 14 | align-items: center; 15 | justify-content: center; 16 | font-size: calc(10px + 2vmin); 17 | color: white; 18 | } 19 | 20 | .App-link { 21 | color: #09d3ac; 22 | } 23 | -------------------------------------------------------------------------------- /userscript/src/App.tsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import "./App.css"; 3 | 4 | function App() { 5 | return ( 6 |
7 |
8 |

9 | Edit src/App.js and save. Then, refresh the 10 | page. 11 |

12 | 18 | Learn React 19 | 20 |
21 |
22 | ); 23 | } 24 | 25 | export default App; 26 | -------------------------------------------------------------------------------- /userscript/src/index.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0; 3 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", 4 | "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", 5 | sans-serif; 6 | -webkit-font-smoothing: antialiased; 7 | -moz-osx-font-smoothing: grayscale; 8 | } 9 | 10 | code { 11 | font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", 12 | monospace; 13 | } 14 | -------------------------------------------------------------------------------- /userscript/src/index.tsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import { createRoot } from "react-dom/client"; 3 | import "./index.css"; 4 | import App from "./App"; 5 | import { awaitElement, log, addLocationChangeCallback } from "./utils"; 6 | 7 | log("React script has successfully started"); 8 | 9 | // Do required initial work. Gets called every time the URL changes, 10 | // so that elements can be re-inserted as a user navigates a page with 11 | // different routes. 12 | async function main() { 13 | // Find . This can be any element. We wait until 14 | // the page has loaded enough for that element to exist. 15 | const body = await awaitElement("body > div"); 16 | const container = document.createElement("div"); 17 | body.appendChild(container); 18 | const root = createRoot(container); 19 | root.render(); 20 | } 21 | 22 | // Call `main()` every time the page URL changes, including on first load. 23 | addLocationChangeCallback(() => { 24 | // Greasemonkey doesn't bubble errors up to the main console, 25 | // so we have to catch them manually and log them 26 | main().catch((e) => { 27 | log(e); 28 | }); 29 | }); 30 | -------------------------------------------------------------------------------- /userscript/src/userscript-header.js: -------------------------------------------------------------------------------- 1 | // ==UserScript== 2 | // @name React Userscripts 3 | // @namespace https://github.com/siefkenj/react-userscripts 4 | // @version 1.1 5 | // @description A sample userscript built using react 6 | // @include https://*.google.com* 7 | // @grant none 8 | // ==/UserScript== 9 | 10 | -------------------------------------------------------------------------------- /userscript/src/utils.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Wrapped console.log function. 3 | * 4 | * @export 5 | * @param {*} args 6 | */ 7 | export function log(...args) { 8 | console.log( 9 | "%cUserscript (React Mode):", 10 | "color: purple; font-weight: bold", 11 | ...args 12 | ); 13 | } 14 | 15 | /** 16 | * Wrapped version of `fetch` that logs the output as it's being fetched. 17 | * It also specifies the full path, because in Greasemonkey, the full path is needed. 18 | * 19 | * @param {string} arg 20 | * @returns {Promise} - the `fetch` promise 21 | */ 22 | export function logFetch(arg) { 23 | const url = new URL(arg, window.location); 24 | log("fetching", "" + url); 25 | return fetch("" + url, { credentials: "include" }); 26 | } 27 | 28 | /** 29 | * Ensure `callback` is called every time window.location changes 30 | * Code derived from https://stackoverflow.com/questions/3522090/event-when-window-location-href-changes 31 | * 32 | * @export 33 | * @param {function} callback - function to be called when URL changes 34 | * @returns {MutationObserver} - MutationObserver that watches the URL 35 | */ 36 | export function addLocationChangeCallback(callback) { 37 | // Run the callback once right at the start 38 | window.setTimeout(callback, 0); 39 | 40 | // Set up a `MutationObserver` to watch for changes in the URL 41 | let oldHref = window.location.href; 42 | const body = document.querySelector("body"); 43 | const observer = new MutationObserver((mutations) => { 44 | if (mutations.some(() => oldHref !== document.location.href)) { 45 | oldHref = document.location.href; 46 | callback(); 47 | } 48 | }); 49 | 50 | observer.observe(body, { childList: true, subtree: true }); 51 | return observer; 52 | } 53 | 54 | /** 55 | * Awaits for an element with the specified `selector` to be found 56 | * and then returns the selected dom node. 57 | * This is used to delay rendering a widget until its parent appears. 58 | * 59 | * @export 60 | * @param {string} selector 61 | * @returns {DOMNode} 62 | */ 63 | export async function awaitElement(selector) { 64 | const MAX_TRIES = 60; 65 | let tries = 0; 66 | return new Promise((resolve, reject) => { 67 | function probe() { 68 | tries++; 69 | return document.querySelector(selector); 70 | } 71 | 72 | function delayedProbe() { 73 | if (tries >= MAX_TRIES) { 74 | log("Can't find element with selector", selector); 75 | reject(); 76 | return; 77 | } 78 | const elm = probe(); 79 | if (elm) { 80 | resolve(elm); 81 | return; 82 | } 83 | 84 | window.setTimeout(delayedProbe, 250); 85 | } 86 | 87 | delayedProbe(); 88 | }); 89 | } 90 | -------------------------------------------------------------------------------- /userscript/vite.config.ts: -------------------------------------------------------------------------------- 1 | import { PluginOption, defineConfig } from "vite"; 2 | import fs from "node:fs"; 3 | 4 | export default defineConfig(({ mode }) => { 5 | console.log("Building in", mode); 6 | return { 7 | plugins: [bundlePlugin], 8 | base: "./", 9 | root: "../", 10 | build: { 11 | cssCodeSplit: false, 12 | cssMinify: false, 13 | emptyOutDir: false, 14 | outDir: "dist", 15 | minify: false, 16 | sourcemap: false, 17 | lib: { 18 | entry: "userscript/src/index.tsx", 19 | name: "userscript", 20 | fileName: (_format) => `react-userscripts.user.js`, 21 | formats: ["iife"], 22 | }, 23 | rollupOptions: { 24 | output: { 25 | banner: `// ==UserScript==`, 26 | inlineDynamicImports: true, 27 | }, 28 | }, 29 | }, 30 | preview: { 31 | port: 8124, 32 | strictPort: true, 33 | }, 34 | define: { 35 | // Don't pick up weird variables from `NODE_ENV` 36 | // https://github.com/vitejs/vite/discussions/13587 37 | "process.env.NODE_ENV": JSON.stringify(mode), 38 | }, 39 | }; 40 | }); 41 | 42 | const bundlePlugin: PluginOption = { 43 | name: "bundle-plugin", 44 | apply: "build", 45 | enforce: "post", 46 | generateBundle(options, bundle) { 47 | // Gather all the CSS together to be injected later 48 | let css = ""; 49 | for (const fileName in bundle) { 50 | const chunk = bundle[fileName]; 51 | if (chunk.type === "asset" && chunk.fileName.endsWith(".css")) { 52 | console.log( 53 | "\nFound CSS chunk", 54 | chunk.fileName, 55 | "Inlining and removing from bundle." 56 | ); 57 | css += chunk.source; 58 | delete bundle[fileName]; 59 | } 60 | } 61 | for (const fileName in bundle) { 62 | const chunk = bundle[fileName]; 63 | if (chunk.type === "chunk") { 64 | // This may mess the source map :-( 65 | chunk.code = addHeader(chunk.code); 66 | 67 | // Inject the CSS into the bundle 68 | chunk.code += `;\n(function(){ 69 | const el = document.createElement("style"); 70 | el.innerText = ${JSON.stringify(css)}; 71 | el.type = "text/css"; 72 | document.head.appendChild(el); 73 | })();`; 74 | } 75 | } 76 | function addHeader(code: string) { 77 | const header = fs.readFileSync("src/userscript-header.js", "utf-8"); 78 | console.log("\nAdding header to userscript:\n", header); 79 | return `${header}\n${code}`; 80 | } 81 | }, 82 | }; 83 | --------------------------------------------------------------------------------