From 5d2e466ad61e36a0e2be2a2d8459b1a127f53f11 Mon Sep 17 00:00:00 2001 From: Albrecht Degering Date: Mon, 20 Jul 2026 18:40:51 +0200 Subject: [PATCH] feat: release toolbox portal 0.1.0 --- .dockerignore | 10 + .gitignore | 8 + .npmrc | 1 + .prettierignore | 9 + .prettierrc.json | 6 + Containerfile | 10 + LICENSE | 661 +++ README.md | 222 + THIRD_PARTY_NOTICES.md | 21 + compose.example.yaml | 18 + deploy/nginx.conf | 42 + eslint.config.mjs | 32 + index.html | 19 + package-lock.json | 4980 ++++++++++++++++++++++ package.json | 53 + public/LICENSE.txt | 661 +++ public/SOURCE.md | 8 + public/THIRD_PARTY_NOTICES.md | 11 + public/favicon.svg | 5 + public/toolbox.catalog.json | 21 + release/toolbox-release-lock.schema.json | 70 + release/toolbox.lock.example.json | 31 + release/toolbox.lock.json | 31 + scripts/archive.mjs | 77 + scripts/artifact.mjs | 145 + scripts/assemble.mjs | 381 ++ scripts/assembler.test.ts | 487 +++ scripts/licenses.d.ts | 4 + scripts/licenses.mjs | 100 + scripts/licenses.test.ts | 14 + scripts/package-static.mjs | 71 + scripts/path-safety.mjs | 93 + scripts/publication.mjs | 84 + scripts/release-lock.mjs | 137 + scripts/zip-security.mjs | 206 + src/App.test.tsx | 122 + src/App.tsx | 356 ++ src/catalogue.test.ts | 102 + src/catalogue.ts | 143 + src/components/AppCard.tsx | 172 + src/components/Logo.tsx | 36 + src/components/PreferencesPanel.tsx | 237 + src/main.tsx | 10 + src/preferences.test.ts | 78 + src/preferences.ts | 110 + src/styles.css | 814 ++++ src/test/fixtures.ts | 61 + src/test/setup.ts | 10 + src/types.ts | 39 + src/usePreferences.ts | 47 + src/vite-env.d.ts | 1 + tsconfig.app.json | 22 + tsconfig.json | 7 + tsconfig.node.json | 17 + vite.config.ts | 14 + 55 files changed, 11127 insertions(+) create mode 100644 .dockerignore create mode 100644 .gitignore create mode 100644 .npmrc create mode 100644 .prettierignore create mode 100644 .prettierrc.json create mode 100644 Containerfile create mode 100644 LICENSE create mode 100644 README.md create mode 100644 THIRD_PARTY_NOTICES.md create mode 100644 compose.example.yaml create mode 100644 deploy/nginx.conf create mode 100644 eslint.config.mjs create mode 100644 index.html create mode 100644 package-lock.json create mode 100644 package.json create mode 100644 public/LICENSE.txt create mode 100644 public/SOURCE.md create mode 100644 public/THIRD_PARTY_NOTICES.md create mode 100644 public/favicon.svg create mode 100644 public/toolbox.catalog.json create mode 100644 release/toolbox-release-lock.schema.json create mode 100644 release/toolbox.lock.example.json create mode 100644 release/toolbox.lock.json create mode 100644 scripts/archive.mjs create mode 100644 scripts/artifact.mjs create mode 100644 scripts/assemble.mjs create mode 100644 scripts/assembler.test.ts create mode 100644 scripts/licenses.d.ts create mode 100644 scripts/licenses.mjs create mode 100644 scripts/licenses.test.ts create mode 100644 scripts/package-static.mjs create mode 100644 scripts/path-safety.mjs create mode 100644 scripts/publication.mjs create mode 100644 scripts/release-lock.mjs create mode 100644 scripts/zip-security.mjs create mode 100644 src/App.test.tsx create mode 100644 src/App.tsx create mode 100644 src/catalogue.test.ts create mode 100644 src/catalogue.ts create mode 100644 src/components/AppCard.tsx create mode 100644 src/components/Logo.tsx create mode 100644 src/components/PreferencesPanel.tsx create mode 100644 src/main.tsx create mode 100644 src/preferences.test.ts create mode 100644 src/preferences.ts create mode 100644 src/styles.css create mode 100644 src/test/fixtures.ts create mode 100644 src/test/setup.ts create mode 100644 src/types.ts create mode 100644 src/usePreferences.ts create mode 100644 src/vite-env.d.ts create mode 100644 tsconfig.app.json create mode 100644 tsconfig.json create mode 100644 tsconfig.node.json create mode 100644 vite.config.ts diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..54376fc --- /dev/null +++ b/.dockerignore @@ -0,0 +1,10 @@ +.git +.gitignore +node_modules +coverage +artifacts +dist +build/* +!build/toolbox +!build/toolbox/** +*.log diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..158ac61 --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +node_modules/ +dist/ +build/ +artifacts/ +coverage/ +public/THIRD_PARTY_LICENSES.txt +*.log +.DS_Store diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..90e6041 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +@add-ideas:registry=https://git.add-ideas.de/api/packages/zemion/npm/ diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..0edae8d --- /dev/null +++ b/.prettierignore @@ -0,0 +1,9 @@ +node_modules +coverage +dist +build +artifacts +*.zip +LICENSE +public/LICENSE.txt +public/THIRD_PARTY_LICENSES.txt diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 0000000..94e30b6 --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,6 @@ +{ + "singleQuote": true, + "semi": true, + "trailingComma": "es5", + "printWidth": 80 +} diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..e0728e1 --- /dev/null +++ b/Containerfile @@ -0,0 +1,10 @@ +ARG NGINX_IMAGE=nginxinc/nginx-unprivileged:1.31.3-alpine@sha256:18d67281256ded39ff65e010ae4f831be18f19356f83c60bc546492c7eb6dd23 +FROM ${NGINX_IMAGE} + +COPY --chown=101:101 deploy/nginx.conf /etc/nginx/conf.d/default.conf +COPY --chown=101:101 build/toolbox/ /usr/share/nginx/html/ + +USER 101:101 +EXPOSE 8080 +HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ + CMD wget --quiet --spider http://127.0.0.1:8080/toolbox.catalog.json || exit 1 diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..0ad25db --- /dev/null +++ b/LICENSE @@ -0,0 +1,661 @@ + GNU AFFERO GENERAL PUBLIC LICENSE + Version 3, 19 November 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU Affero General Public License is a free, copyleft license for +software and other kinds of works, specifically designed to ensure +cooperation with the community in the case of network server software. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +our General Public Licenses are intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + Developers that use our General Public Licenses protect your rights +with two steps: (1) assert copyright on the software, and (2) offer +you this License which gives you legal permission to copy, distribute +and/or modify the software. + + A secondary benefit of defending all users' freedom is that +improvements made in alternate versions of the program, if they +receive widespread use, become available for other developers to +incorporate. Many developers of free software are heartened and +encouraged by the resulting cooperation. However, in the case of +software used on network servers, this result may fail to come about. +The GNU General Public License permits making a modified version and +letting the public access it on a server without ever releasing its +source code to the public. + + The GNU Affero General Public License is designed specifically to +ensure that, in such cases, the modified source code becomes available +to the community. It requires the operator of a network server to +provide the source code of the modified version running there to the +users of that server. Therefore, public use of a modified version, on +a publicly accessible server, gives the public access to the source +code of the modified version. + + An older license, called the Affero General Public License and +published by Affero, was designed to accomplish similar goals. This is +a different license, not a version of the Affero GPL, but Affero has +released a new version of the Affero GPL which permits relicensing under +this license. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU Affero General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Remote Network Interaction; Use with the GNU General Public License. + + Notwithstanding any other provision of this License, if you modify the +Program, your modified version must prominently offer all users +interacting with it remotely through a computer network (if your version +supports such interaction) an opportunity to receive the Corresponding +Source of your version by providing access to the Corresponding Source +from a network server at no charge, through some standard or customary +means of facilitating copying of software. This Corresponding Source +shall include the Corresponding Source for any work covered by version 3 +of the GNU General Public License that is incorporated pursuant to the +following paragraph. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the work with which it is combined will remain governed by version +3 of the GNU General Public License. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU Affero General Public License from time to time. Such new versions +will be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU Affero General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU Affero General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU Affero General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published + by the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If your software can interact with users remotely through a computer +network, you should also make sure that it provides a way for users to +get its source. For example, if your program is a web application, its +interface could display a "Source" link that leads users to an archive +of the code. There are many ways you could offer source, and different +solutions will be better for different programs; see section 13 for the +specific requirements. + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU AGPL, see +. diff --git a/README.md b/README.md new file mode 100644 index 0000000..3b0114b --- /dev/null +++ b/README.md @@ -0,0 +1,222 @@ +# add·ideas Toolbox Portal + +`toolbox-portal` is the static launcher and release assembler for the add·ideas +browser toolbox. Version `0.1.0` reads one same-origin catalogue, shows each app +as a full-page launch card, and keeps personal pins, ordering, visibility, and +appearance in the current browser. + +The v1 boundary is intentionally small: + +- apps remain separately versioned and released repositories; +- `@add-ideas/toolbox-contract` owns manifest, catalogue, and URL validation; +- the portal navigates to apps—there are no iframes, plugins, remote modules, or + runtime-loaded application code; +- the assembler copies already-built, exact ZIP artifacts and never builds app + source or resolves a `latest` release. + +## Development + +Requirements: Node.js 22 or newer and npm 11 or newer. The committed `.npmrc` +selects the public, token-free package scope on Gitea; registry credentials are +not required to install the Toolbox SDK packages. Install and verify the portal: + +```sh +npm ci +npm test +npm run lint +npm run build +npm run dev +``` + +The package lock resolves the `^0.1.0` SDK range to the published `0.1.1` +packages. A sibling SDK checkout is only needed when intentionally developing +the SDK and portal together. + +Vite uses `base: './'`, so the built portal works at `/` or a nested static path. +The development catalogue at `public/toolbox.catalog.json` points to assembled +paths (`./apps/pdf/` and `./apps/xslt/`). Those manifests will correctly appear +as unavailable until an assembled release is being served. + +## Catalogue and launches + +The portal fetches `./toolbox.catalog.json`, validates it with the shared +contract, and then validates each enabled manifest. A bad individual manifest is +reported without hiding valid apps; a bad or unreachable catalogue gets a retry +state. An empty valid catalogue gets its own empty state. + +Internal launch links stay same-origin and receive the exact catalogue URL in a +`toolbox` query parameter. For example: + +```text +/apps/pdf/?toolbox=https%3A%2F%2Ftoolbox.example%2Ftoolbox.catalog.json +``` + +Apps discover that context through the shared shell/contract and retain their +standalone fallback when no context is present. External catalogue entries open +according to their declared launch mode and do not receive toolbox context. + +Personal settings use the namespaced local-storage key +`@add-ideas/toolbox-portal:v1:preferences`. The preferences panel can reset, +export, and import the versioned JSON document. The portal itself does not +transmit preferences. Because Toolbox apps share an origin, code explicitly +trusted in an app can access same-origin browser storage; review each app's +privacy and executable-code warning. Light, dark, and system modes are supported. + +## Exact release assembly + +Every app release ZIP must put these items at its archive root: + +```text +index.html (or the entry declared by toolbox-app.json) +toolbox-app.json +CHANGELOG.md +LICENSES/ +SOURCE.md +...built static assets +``` + +The app release should also publish a matching `.sha256` sidecar. The manifest +must declare the pinned reverse-DNS id and version. Application and portal +versions are independent. + +`release/toolbox.lock.json` is the reviewed v0.1.0 lock. Its URLs and checksums +pin the published PDF Tools 0.3.4 and XSLT Tools 0.3.2 release bytes. Use +`release/toolbox.lock.example.json` as the template for a future release and +verify every downloaded asset before committing updated values. Artifacts may be: + +- a path relative to the lock file; +- a `file:` URL; or +- a credential-free HTTPS URL to an immutable release asset. + +For a private Gitea release, download the exact asset first and put its local +path in the lock. Do not put credentials in a lock URL. + +Build the portal and assemble the distribution: + +```sh +npm ci +npm test +npm run build +npm run assemble -- \ + --lock release/toolbox.lock.json \ + --portal-dist dist \ + --output build/toolbox \ + --archive build/add-ideas-toolbox-0.1.0.zip +``` + +Existing output is refused. Pass `--force` only when replacing those exact +paths is intended. A successful run produces: + +```text +build/toolbox/ +├── index.html +├── toolbox.catalog.json generated from the lock +├── toolbox.release.json ids, versions, targets, checksums +├── LICENSE.txt +├── SOURCE.md +├── THIRD_PARTY_LICENSES.txt +├── THIRD_PARTY_NOTICES.md +└── apps/ + ├── pdf/ + └── xslt/ + +build/add-ideas-toolbox-0.1.0.zip +build/add-ideas-toolbox-0.1.0.zip.sha256 +``` + +The assembler verifies SHA-256 before opening an artifact, validates every app +manifest with `@add-ideas/toolbox-contract`, requires its id/version to equal the +lock, and smoke-checks each declared entry, icon, and packaged manifest asset +after extraction. It rejects insecure or credential-bearing redirects, HTTP, +`latest` aliases, ZIP traversal, absolute paths, symlinks, special files, +duplicate paths, oversized entries, and unsafe compression ratios. Canonical +path checks protect source and output trees even through symlink aliases, and +publication rolls all outputs back if a staged rename fails. Artifacts are +unpacked only under `apps/`. The assembler never runs artifact +content. + +The archive writer sorts file names and fixes ZIP timestamps and modes so the +same assembled directory produces stable bytes. To package an already assembled +directory separately: + +```sh +npm run package:static -- \ + --input build/toolbox \ + --output artifacts/add-ideas-toolbox-0.1.0.zip +``` + +This also emits a `.sha256` sidecar. + +## Container image + +`Containerfile` serves only the assembled files with unprivileged nginx on port 8080. It adds restrictive browser headers, same-origin isolation, immutable +caching only for Vite-hashed assets, and revalidation for all other files. +Assemble first, then: + +The packaged policy intentionally does not grant CSP `unsafe-eval`. SaxonJS's +`ixsl:eval()` extension is therefore unsupported in this deployment profile; +normal local XML/XSLT transformations do not require that permission. + +```sh +podman build -f Containerfile \ + -t git.add-ideas.de/zemion/toolbox:0.1.0 . +podman run --rm -p 8080:8080 \ + git.add-ideas.de/zemion/toolbox:0.1.0 +``` + +For a local deployment, copy `compose.example.yaml` to `compose.yaml` and run +`docker compose up --build -d` (or the Podman Compose equivalent). + +Publish both common architectures from a buildx-enabled workstation or Gitea +runner: + +```sh +docker login git.add-ideas.de +docker buildx build \ + --platform linux/amd64,linux/arm64 \ + --file Containerfile \ + --tag git.add-ideas.de/zemion/toolbox:0.1.0 \ + --tag git.add-ideas.de/zemion/toolbox:0.1 \ + --push . +``` + +The default unprivileged nginx image is the security-fixed `1.31.3-alpine` +baseline pinned to its reviewed multi-architecture digest. Re-resolve and review +that digest whenever the base image is upgraded, then record it in the release +notes. + +## Manual Gitea publication checklist + +No credentials belong in this repository. Before the first release, create the +`zemion/toolbox-portal` Gitea repository and grant the workstation or runner +permission to push code, releases, and container packages. + +1. Run `npm ci`, `npm test`, `npm run lint`, and `npm run build` from a clean + checkout of the intended portal tag. +2. Publish each app's versioned ZIP, `.sha256`, `toolbox-app.json`, changelog, + and licence notices in its own Gitea release. +3. Verify downloaded app assets with `sha256sum -c .sha256`; copy those + exact values into a reviewed toolbox lock. +4. Run the assembler and serve `build/toolbox` from a nested test path. Open + both apps, switch between them, and confirm the encoded `toolbox` context. +5. Verify the distribution with + `(cd build && sha256sum -c add-ideas-toolbox-0.1.0.zip.sha256)`. +6. Commit the reviewed lock, tag the portal source (for example `v0.1.0`), and + push the branch and tag to Gitea. +7. In Gitea, open **Releases → New release**, select the tag, and upload the + static ZIP plus its `.sha256` file. Do not use a mutable “latest” URL in a + future lock. +8. Build and push the AMD64/ARM64 OCI image as shown above. Record the resulting + multi-architecture manifest digest in the release notes. + +For Gitea Actions, store registry credentials as repository secrets, check out +the exact tag, install with `npm ci`, run the same verification/assembly commands, +and upload only the already-created ZIP/checksum and OCI image. The workflow +must not re-resolve app versions or substitute a newer release. + +## Licensing + +Portal source is `AGPL-3.0-only`; see `LICENSE`. The contract is Apache-2.0, and +each assembled application retains its own licence and notices. An assembled +ZIP/container is an aggregate of those independently licensed components; see +`THIRD_PARTY_NOTICES.md` and each `apps//LICENSES/` directory. diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.md new file mode 100644 index 0000000..5c62abd --- /dev/null +++ b/THIRD_PARTY_NOTICES.md @@ -0,0 +1,21 @@ +# Third-party notices + +The portal source is licensed under `AGPL-3.0-only`; see `LICENSE`. An assembled +toolbox is a collection of independently licensed works, not a relicensing of +every included component under one licence. + +Runtime components used by the portal include: + +- React and React DOM — MIT +- `@add-ideas/toolbox-contract` — Apache-2.0 + +Their complete installed license and notice texts are generated into +`THIRD_PARTY_LICENSES.txt` for every production build. + +Build and test tooling includes Vite, TypeScript, Vitest, Testing Library, +ESLint, Archiver, and yauzl under their respective licences. Their package +metadata and licence texts are available from the installed npm packages. + +Each application release remains independently licensed. Its static files are +copied without modification into `apps//`; corresponding notices are +carried inside that application's `LICENSES/` directory. diff --git a/compose.example.yaml b/compose.example.yaml new file mode 100644 index 0000000..abe46e7 --- /dev/null +++ b/compose.example.yaml @@ -0,0 +1,18 @@ +services: + toolbox: + build: + context: . + dockerfile: Containerfile + image: git.add-ideas.de/zemion/toolbox:0.1.0 + restart: unless-stopped + read_only: true + ports: + - '8080:8080' + tmpfs: + - /tmp:size=16m,mode=1777 + - /var/cache/nginx:size=16m,uid=101,gid=101 + - /var/run:size=1m,uid=101,gid=101 + security_opt: + - no-new-privileges:true + cap_drop: + - ALL diff --git a/deploy/nginx.conf b/deploy/nginx.conf new file mode 100644 index 0000000..2b27362 --- /dev/null +++ b/deploy/nginx.conf @@ -0,0 +1,42 @@ +map $uri $toolbox_cache_control { + default "no-cache"; + ~^/(?:.*/)?assets/.*-[A-Za-z0-9_-]{8,}\.[^/]+$ "public, max-age=31536000, immutable"; +} + +server { + listen 8080; + listen [::]:8080; + server_name _; + root /usr/share/nginx/html; + + server_tokens off; + charset utf-8; + etag on; + + add_header X-Content-Type-Options "nosniff" always; + add_header Referrer-Policy "no-referrer" always; + add_header X-Frame-Options "DENY" always; + add_header Cross-Origin-Opener-Policy "same-origin" always; + add_header Cross-Origin-Embedder-Policy "require-corp" always; + add_header Cross-Origin-Resource-Policy "same-origin" always; + add_header Permissions-Policy "camera=(), microphone=(), geolocation=(), payment=(), usb=()" always; + add_header Content-Security-Policy "default-src 'self'; base-uri 'self'; object-src 'none'; frame-ancestors 'none'; form-action 'self'; script-src 'self' 'wasm-unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob:; font-src 'self' data:; connect-src 'self'; worker-src 'self' blob:; manifest-src 'self'" always; + add_header Cache-Control $toolbox_cache_control always; + + gzip on; + gzip_vary on; + gzip_min_length 1024; + gzip_types application/json application/javascript application/wasm image/svg+xml text/css text/plain text/xml; + + location ~* /(?:toolbox\.catalog|toolbox\.release|toolbox-app)\.json$ { + try_files $uri =404; + } + + location ~* \.(?:css|js|mjs|wasm|woff2?|png|jpe?g|gif|webp|svg|ico|webmanifest)$ { + try_files $uri =404; + } + + location / { + try_files $uri $uri/ =404; + } +} diff --git a/eslint.config.mjs b/eslint.config.mjs new file mode 100644 index 0000000..8642035 --- /dev/null +++ b/eslint.config.mjs @@ -0,0 +1,32 @@ +import js from '@eslint/js'; +import globals from 'globals'; +import reactHooks from 'eslint-plugin-react-hooks'; +import reactRefresh from 'eslint-plugin-react-refresh'; +import tseslint from 'typescript-eslint'; + +export default tseslint.config( + { ignores: ['dist', 'build', 'artifacts', 'coverage'] }, + { + extends: [js.configs.recommended, ...tseslint.configs.recommended], + files: ['**/*.{ts,tsx}'], + languageOptions: { + ecmaVersion: 2022, + globals: globals.browser, + }, + plugins: { + 'react-hooks': reactHooks, + 'react-refresh': reactRefresh, + }, + rules: { + ...reactHooks.configs.recommended.rules, + 'react-refresh/only-export-components': [ + 'warn', + { allowConstantExport: true }, + ], + }, + }, + { + files: ['scripts/**/*.mjs'], + languageOptions: { globals: globals.node }, + } +); diff --git a/index.html b/index.html new file mode 100644 index 0000000..6124d0c --- /dev/null +++ b/index.html @@ -0,0 +1,19 @@ + + + + + + + + + + add·ideas Toolbox + + +
+ + + diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..761746e --- /dev/null +++ b/package-lock.json @@ -0,0 +1,4980 @@ +{ + "name": "@add-ideas/toolbox-portal", + "version": "0.1.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "@add-ideas/toolbox-portal", + "version": "0.1.0", + "license": "AGPL-3.0-only", + "dependencies": { + "@add-ideas/toolbox-contract": "^0.1.0", + "react": "^19.2.6", + "react-dom": "^19.2.6" + }, + "devDependencies": { + "@eslint/js": "^10.0.1", + "@testing-library/jest-dom": "^6.6.3", + "@testing-library/react": "^16.3.2", + "@testing-library/user-event": "^14.6.1", + "@types/node": "^25.8.0", + "@types/react": "^19.2.14", + "@types/react-dom": "^19.2.3", + "@vitejs/plugin-react": "^6.0.2", + "archiver": "^7.0.1", + "eslint": "^10.4.0", + "eslint-plugin-react-hooks": "^7.1.1", + "eslint-plugin-react-refresh": "^0.5.2", + "globals": "^17.6.0", + "jsdom": "^29.1.1", + "prettier": "^3.8.3", + "typescript": "^6.0.3", + "typescript-eslint": "^8.59.3", + "vite": "^8.0.13", + "vitest": "^4.1.6", + "yauzl": "^3.2.0" + }, + "engines": { + "node": ">=22" + } + }, + "node_modules/@add-ideas/toolbox-contract": { + "version": "0.1.1", + "resolved": "https://git.add-ideas.de/api/packages/zemion/npm/%40add-ideas%2Ftoolbox-contract/-/0.1.1/toolbox-contract-0.1.1.tgz", + "integrity": "sha512-0q2whA5Y4SqG4PNNleXYR8nGbT3UYsZ1x+6ZWVmxuc/WjMxmujhD7ilIISmFzmnNdbyEyv/Zpr+U0fnHqGODqw==", + "license": "Apache-2.0" + }, + "node_modules/@adobe/css-tools": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/@adobe/css-tools/-/css-tools-4.5.0.tgz", + "integrity": "sha512-6OzddxPio9UiWTCemp4N8cYLV2ZN1ncRnV1cVGtve7dhPOtRkleRyx32GQCYSwDYgaHU3USMm84tNsvKzRCa1Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/@asamuzakjp/css-color": { + "version": "5.1.11", + "resolved": "https://registry.npmjs.org/@asamuzakjp/css-color/-/css-color-5.1.11.tgz", + "integrity": "sha512-KVw6qIiCTUQhByfTd78h2yD1/00waTmm9uy/R7Ck/ctUyAPj+AEDLkQIdJW0T8+qGgj3j5bpNKK7Q3G+LedJWg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@asamuzakjp/generational-cache": "^1.0.1", + "@csstools/css-calc": "^3.2.0", + "@csstools/css-color-parser": "^4.1.0", + "@csstools/css-parser-algorithms": "^4.0.0", + "@csstools/css-tokenizer": "^4.0.0" + }, + "engines": { + "node": "^20.19.0 || ^22.12.0 || >=24.0.0" + } + }, + "node_modules/@asamuzakjp/dom-selector": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/@asamuzakjp/dom-selector/-/dom-selector-7.1.1.tgz", + "integrity": "sha512-67RZDnYRc8H/8MLDgQCDE//zoqVFwajkepHZgmXrbwybzXOEwOWGPYGmALYl9J2DOLfFPPs6kKCqmbzV895hTQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@asamuzakjp/generational-cache": "^1.0.1", + "@asamuzakjp/nwsapi": "^2.3.9", + "bidi-js": "^1.0.3", + "css-tree": "^3.2.1", + "is-potential-custom-element-name": "^1.0.1" + }, + "engines": { + "node": "^20.19.0 || ^22.12.0 || >=24.0.0" + } + }, + "node_modules/@asamuzakjp/generational-cache": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@asamuzakjp/generational-cache/-/generational-cache-1.0.1.tgz", + "integrity": "sha512-wajfB8KqzMCN2KGNFdLkReeHncd0AslUSrvHVvvYWuU8ghncRJoA50kT3zP9MVL0+9g4/67H+cdvBskj9THPzg==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^20.19.0 || ^22.12.0 || >=24.0.0" + } + }, + "node_modules/@asamuzakjp/nwsapi": { + "version": "2.3.9", + "resolved": "https://registry.npmjs.org/@asamuzakjp/nwsapi/-/nwsapi-2.3.9.tgz", + "integrity": "sha512-n8GuYSrI9bF7FFZ/SjhwevlHc8xaVlb/7HmHelnc/PZXBD2ZR49NnN9sMMuDdEGPeeRQ5d0hqlSlEpgCX3Wl0Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/@babel/code-frame": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.7.tgz", + "integrity": "sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-validator-identifier": "^7.29.7", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.7.tgz", + "integrity": "sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.7.tgz", + "integrity": "sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.7", + "@babel/generator": "^7.29.7", + "@babel/helper-compilation-targets": "^7.29.7", + "@babel/helper-module-transforms": "^7.29.7", + "@babel/helpers": "^7.29.7", + "@babel/parser": "^7.29.7", + "@babel/template": "^7.29.7", + "@babel/traverse": "^7.29.7", + "@babel/types": "^7.29.7", + "@jridgewell/remapping": "^2.3.5", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/generator": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.7.tgz", + "integrity": "sha512-DkXD5OJQaAQIdZ1bt3UZdEnHAn9Imd3IVBdX03UFe+ony9Ojw5pzr9YVKGDY1jt+Gcn/FnGkNf8r+Vj5NOJWtQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.7", + "@babel/types": "^7.29.7", + "@jridgewell/gen-mapping": "^0.3.12", + "@jridgewell/trace-mapping": "^0.3.28", + "jsesc": "^3.0.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.29.7.tgz", + "integrity": "sha512-wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.29.7", + "@babel/helper-validator-option": "^7.29.7", + "browserslist": "^4.24.0", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-globals": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.29.7.tgz", + "integrity": "sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.29.7.tgz", + "integrity": "sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.29.7", + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.29.7.tgz", + "integrity": "sha512-UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.29.7", + "@babel/helper-validator-identifier": "^7.29.7", + "@babel/traverse": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz", + "integrity": "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz", + "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.29.7.tgz", + "integrity": "sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.7.tgz", + "integrity": "sha512-1k2lAGRMfHTcwuNYcCNUmaUffmQv8KWMfh2iJUUeRlwlwH4FdNG7mfPI10NPfLHJFThE4Tyr4mv7kTNZOiPuBg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/template": "^7.29.7", + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.7.tgz", + "integrity": "sha512-hnORnjP/1P/zFEndoeX+n+t1RwWRJiJpM/jO7FW32Kn9r5+sJB2JWOdYo4L6k78j15eCwY3Gm/7364B1EMwtNg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.29.7" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/runtime": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.7.tgz", + "integrity": "sha512-Nq8OhGWiZIZGV6hLHoyAKLLcJihP/xFeBMGJoUrxTX2psI8dCifzLhZISFb+VWS3wFMRDmCGw5R+dOySCqPLhw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/template": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.29.7.tgz", + "integrity": "sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.7", + "@babel/parser": "^7.29.7", + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.7.tgz", + "integrity": "sha512-EhlfNQtZ+NK22w5BM61ciuiq1m58ed33Wr1Xan//ZRTy6hgjnwyCffRYwzsGXdASJSUJ1guZILsErh1eQcl+zw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.7", + "@babel/generator": "^7.29.7", + "@babel/helper-globals": "^7.29.7", + "@babel/parser": "^7.29.7", + "@babel/template": "^7.29.7", + "@babel/types": "^7.29.7", + "debug": "^4.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.7.tgz", + "integrity": "sha512-4zBIxpPzowiZpusoFkyGVwakdRJUyuH5PxQ/PrqghfdFWWasvnCdPfQXHrenDai+gyLARulZjZowCOj6fjT4pA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.29.7", + "@babel/helper-validator-identifier": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@bramus/specificity": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/@bramus/specificity/-/specificity-2.4.2.tgz", + "integrity": "sha512-ctxtJ/eA+t+6q2++vj5j7FYX3nRu311q1wfYH3xjlLOsczhlhxAg2FWNUXhpGvAw3BWo1xBcvOV6/YLc2r5FJw==", + "dev": true, + "license": "MIT", + "dependencies": { + "css-tree": "^3.0.0" + }, + "bin": { + "specificity": "bin/cli.js" + } + }, + "node_modules/@csstools/color-helpers": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/@csstools/color-helpers/-/color-helpers-6.1.0.tgz", + "integrity": "sha512-064IFJdjTfUqnjpCVpMOdbr8FLQBhinbZj6yRv2An2E41O/pLEXqfFRWqGq/SxlE5PEUYTlvWsG2r8MswAVvkg==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + } + ], + "license": "MIT-0", + "engines": { + "node": ">=20.19.0" + } + }, + "node_modules/@csstools/css-calc": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/@csstools/css-calc/-/css-calc-3.2.1.tgz", + "integrity": "sha512-DtdHlgXh5ZkA43cwBcAm+huzgJiwx3ZTWVjBs94kwz2xKqSimDA3lBgCjphYgwgVUMWatSM0pDd8TILB1yrVVg==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + } + ], + "license": "MIT", + "engines": { + "node": ">=20.19.0" + }, + "peerDependencies": { + "@csstools/css-parser-algorithms": "^4.0.0", + "@csstools/css-tokenizer": "^4.0.0" + } + }, + "node_modules/@csstools/css-color-parser": { + "version": "4.1.9", + "resolved": "https://registry.npmjs.org/@csstools/css-color-parser/-/css-color-parser-4.1.9.tgz", + "integrity": "sha512-paQcIaOO53Rk5+YrBaBjm/SgrV4INImjo2BT1DtQRYr+XeTRbeAYlS+jxXp9drqvKmtFnWRJKIalDLhZZDu42A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + } + ], + "license": "MIT", + "dependencies": { + "@csstools/color-helpers": "^6.1.0", + "@csstools/css-calc": "^3.2.1" + }, + "engines": { + "node": ">=20.19.0" + }, + "peerDependencies": { + "@csstools/css-parser-algorithms": "^4.0.0", + "@csstools/css-tokenizer": "^4.0.0" + } + }, + "node_modules/@csstools/css-parser-algorithms": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@csstools/css-parser-algorithms/-/css-parser-algorithms-4.0.0.tgz", + "integrity": "sha512-+B87qS7fIG3L5h3qwJ/IFbjoVoOe/bpOdh9hAjXbvx0o8ImEmUsGXN0inFOnk2ChCFgqkkGFQ+TpM5rbhkKe4w==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + } + ], + "license": "MIT", + "engines": { + "node": ">=20.19.0" + }, + "peerDependencies": { + "@csstools/css-tokenizer": "^4.0.0" + } + }, + "node_modules/@csstools/css-syntax-patches-for-csstree": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/@csstools/css-syntax-patches-for-csstree/-/css-syntax-patches-for-csstree-1.1.6.tgz", + "integrity": "sha512-TcJCWFbXLPpJYq6z7bfOyjWYJDiDg2/I4gyUC9pqPNqHFRIey0EB0q0L5cSnQDfWJg8Jd6VadakxdIez/3zkqQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + } + ], + "license": "MIT-0", + "peerDependencies": { + "css-tree": "^3.2.1" + }, + "peerDependenciesMeta": { + "css-tree": { + "optional": true + } + } + }, + "node_modules/@csstools/css-tokenizer": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@csstools/css-tokenizer/-/css-tokenizer-4.0.0.tgz", + "integrity": "sha512-QxULHAm7cNu72w97JUNCBFODFaXpbDg+dP8b/oWFAZ2MTRppA3U00Y2L1HqaS4J6yBqxwa/Y3nMBaxVKbB/NsA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + } + ], + "license": "MIT", + "engines": { + "node": ">=20.19.0" + } + }, + "node_modules/@emnapi/core": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.11.1.tgz", + "integrity": "sha512-RSvbQmHzdKzNsLYa/wHrbc3KN4sYLKAdPZxqiM2HATqv/SBk2/ENSHpvXGaLOMcsAyz0poEGqkmmKYG3OWiJEQ==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/wasi-threads": "1.2.2", + "tslib": "^2.4.0" + } + }, + "node_modules/@emnapi/runtime": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.11.1.tgz", + "integrity": "sha512-vgj7R3y3Wgx24IQaGPA/R6YFXLHVMOZ0uVEyIQPaWs+rd1AzfEMXlAC22FYwO1XkKR6NPsq7mUandH8oIRdZFw==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@emnapi/wasi-threads": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.2.tgz", + "integrity": "sha512-c95qOXkHdydNKhscBTebqEC1CVAZpyqOfVfBzQ1qgzyl3gfeldUjIggDbIZgDKsHLgnsM+igH7TJ/eAasaVuMA==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.9.1", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.1.tgz", + "integrity": "sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "eslint-visitor-keys": "^3.4.3" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.12.2", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz", + "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/config-array": { + "version": "0.23.5", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.23.5.tgz", + "integrity": "sha512-Y3kKLvC1dvTOT+oGlqNQ1XLqK6D1HU2YXPc52NmAlJZbMMWDzGYXMiPRJ8TYD39muD/OTjlZmNJ4ib7dvSrMBA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/object-schema": "^3.0.5", + "debug": "^4.3.1", + "minimatch": "^10.2.4" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + } + }, + "node_modules/@eslint/config-helpers": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.6.0.tgz", + "integrity": "sha512-ii6Bw9jJ2zi2cWA2Z+9/QZ/+3DX6kwaV5Q986D/CdP3Lap3w/pgQZ373FV7byY/i7L4IRH/G43I5dz1ClsCbpA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/core": "^1.2.1" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + } + }, + "node_modules/@eslint/core": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-1.2.1.tgz", + "integrity": "sha512-MwcE1P+AZ4C6DWlpin/OmOA54mmIZ/+xZuJiQd4SyB29oAJjN30UW9wkKNptW2ctp4cEsvhlLY/CsQ1uoHDloQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@types/json-schema": "^7.0.15" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + } + }, + "node_modules/@eslint/js": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-10.0.1.tgz", + "integrity": "sha512-zeR9k5pd4gxjZ0abRoIaxdc7I3nDktoXZk2qOv9gCNWx3mVwEn32VRhyLaRsDiJjTs0xq/T8mfPtyuXu7GWBcA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "eslint": "^10.0.0" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true + } + } + }, + "node_modules/@eslint/object-schema": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-3.0.5.tgz", + "integrity": "sha512-vqTaUEgxzm+YDSdElad6PiRoX4t8VGDjCtt05zn4nU810UIx/uNEV7/lZJ6KwFThKZOzOxzXy48da+No7HZaMw==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + } + }, + "node_modules/@eslint/plugin-kit": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.7.2.tgz", + "integrity": "sha512-+CNAzxglkrpNf/kKywqQfk74QjtceuOE7Qm+AF8miRvPF/wmmK5+OJOgVh3AVTT3RP2mH3+FOaxlE5v72owk0A==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/core": "^1.2.1", + "levn": "^0.4.1" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + } + }, + "node_modules/@exodus/bytes": { + "version": "1.15.1", + "resolved": "https://registry.npmjs.org/@exodus/bytes/-/bytes-1.15.1.tgz", + "integrity": "sha512-S6mL0yNB/Abt9Ei4tq8gDhcczc4S3+vQ4ra7vxnAf+YHC02srtqxKKZghx2Dq6p0e66THKwR6r8N6P95wEty7Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^20.19.0 || ^22.12.0 || >=24.0.0" + }, + "peerDependencies": { + "@noble/hashes": "^1.8.0 || ^2.0.0" + }, + "peerDependenciesMeta": { + "@noble/hashes": { + "optional": true + } + } + }, + "node_modules/@humanfs/core": { + "version": "0.19.2", + "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.2.tgz", + "integrity": "sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@humanfs/types": "^0.15.0" + }, + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/node": { + "version": "0.16.8", + "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.8.tgz", + "integrity": "sha512-gE1eQNZ3R++kTzFUpdGlpmy8kDZD/MLyHqDwqjkVQI0JMdI1D51sy1H958PNXYkM2rAac7e5/CnIKZrHtPh3BQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@humanfs/core": "^0.19.2", + "@humanfs/types": "^0.15.0", + "@humanwhocodes/retry": "^0.4.0" + }, + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/types": { + "version": "0.15.0", + "resolved": "https://registry.npmjs.org/@humanfs/types/-/types-0.15.0.tgz", + "integrity": "sha512-ZZ1w0aoQkwuUuC7Yf+7sdeaNfqQiiLcSRbfI08oAxqLtpXQr9AIVX7Ay7HLDuiLYAaFPu8oBYNq/QIi9URHJ3Q==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/retry": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz", + "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@isaacs/cliui": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", + "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", + "dev": true, + "license": "ISC", + "dependencies": { + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/remapping": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", + "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@napi-rs/wasm-runtime": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.6.tgz", + "integrity": "sha512-ZLv/JdUfkvOy9eCnnBaGfiO+XimbjebAeO+MRQqD/B+FR1tnRN0tpKSJHRbE8sFfS6aqsXZ67TQjfwfsxULVbg==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@tybys/wasm-util": "^0.10.3" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Brooooooklyn" + }, + "peerDependencies": { + "@emnapi/core": "^1.7.1", + "@emnapi/runtime": "^1.7.1" + } + }, + "node_modules/@oxc-project/types": { + "version": "0.139.0", + "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.139.0.tgz", + "integrity": "sha512-r9gHphtCs+1M7J0pw6Sn/hh/Wpa/iQrOOkrNAlVLF/gHq+/CJmHIWKKUUhdWjcD6CIa8idarspCsASiXCXvFUw==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/Boshen" + } + }, + "node_modules/@pkgjs/parseargs": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", + "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", + "dev": true, + "license": "MIT", + "optional": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/@rolldown/binding-android-arm64": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.1.5.tgz", + "integrity": "sha512-lZg8fqIv2v7FF237bwMgzGZEJvGL79/s5knJ/i6FmsGF4XXlzccZ4jb+TrFIxtSSxFtIpdsgrPZeMk1I9AFcyQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-arm64": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.1.5.tgz", + "integrity": "sha512-51Bnx9pNiMRKSUNtBfySkNJ9vMU9Hh3I1ozDd6gyPPYzaXCfnptUcEZxXGYFn+ul2dtcMUiqGR1Yai2K10uoTw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-x64": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.1.5.tgz", + "integrity": "sha512-Tm+gbfC0aHu1tBA/JvKQh32S0K6YgCHkiAF4/W6xX0K0RmNuc94VeK419dJoE65R5aRxmo+noZQSWrAMF6yb6g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-freebsd-x64": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.1.5.tgz", + "integrity": "sha512-JMzDKCCXq93YccG5gz3hvOs1oXRKAf0XYpfOS88e+wZrC8Iugj6j68867vrYZkvpDDpKn/KoKORThmchMpF6TA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm-gnueabihf": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.1.5.tgz", + "integrity": "sha512-uML21j2K5TfPGutKxub+M+nLjZIrWjXQ5Grx4lCe/nimTj9B4L63zHpjXLl4y0L3mcm2htEQIb06oCG/szerNw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-gnu": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.1.5.tgz", + "integrity": "sha512-navSiuTMogvnQoZoM/v+l3ZWo50/NTwSHSzheABx/RCnmUPaKwq9qSo4Br2OYRs21+Fz8uFqITZM3H4opOB0/Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-musl": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.1.5.tgz", + "integrity": "sha512-lAryqH7IteztmCXQXk0etKj4wBQ7Gx5S6LjKhsgp9zb8I5bsuvU/2llH1hDQcjsFeqIsovMVN339/8pUDDBXxA==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-ppc64-gnu": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.1.5.tgz", + "integrity": "sha512-fsK/sNBnxzBlL4O1JNrZakVQxPspqpED5dLtNsZS9oOKmtSpdNIzxH2kkol5HYTWJN47sE20ztMJPxfZ89qGOg==", + "cpu": [ + "ppc64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-s390x-gnu": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.1.5.tgz", + "integrity": "sha512-gLYb4BIadlfTOYT5gO503n8zQjXflgzpD0FcyKh0Mzx3rqCZKnHoJWV9xe1KXUJ5lx2JfcSHr/mhzS0PC/McAA==", + "cpu": [ + "s390x" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-gnu": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.1.5.tgz", + "integrity": "sha512-FjcpEKUyJygHgs1o50VYNvkt5+7Le/VEdYt0AkRpkL33MnyQfwr8l5mXwMmfmTbyMPr5vJLC+8/Gd9gXnwU1QQ==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-musl": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.1.5.tgz", + "integrity": "sha512-Me+PfPI2TMeOQk0gYWfLQZtTktrmzbr8cDboqX83XKc7UrgAi55gF+2dUkWdxd19n55Essp2yeca+O9N5rBxHg==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-openharmony-arm64": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.1.5.tgz", + "integrity": "sha512-yc5WrLzXks6zCQfn9Oxr8pORKyl/pF+QjHmW/Qx3qu0oyrrNC+y2JLTU1E2rcWYAmzlnqngWXHQjy51VzW70Vw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-wasm32-wasi": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@rolldown/binding-wasm32-wasi/-/binding-wasm32-wasi-1.1.5.tgz", + "integrity": "sha512-VbQGPX2b4r48TAMIM2cjgluIM1HYutm4pcTEJsle7iEP7sB1dFqtPLBVbdLAZCxy1txCcPxf4QFf4v8uvltPqA==", + "cpu": [ + "wasm32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/core": "1.11.1", + "@emnapi/runtime": "1.11.1", + "@napi-rs/wasm-runtime": "^1.1.6" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-win32-arm64-msvc": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.1.5.tgz", + "integrity": "sha512-gHv82k63z4qpV5+Q1y/12KrK0ltWBukVDI8nZcbT7Tt/ZlOIVwppazneq0F93oDxTo3IgAMEDIoQh3E2n6mVsw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-win32-x64-msvc": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.1.5.tgz", + "integrity": "sha512-tTZuDBPw85tEN5PQi1pnEBzDy0Z49HtScLAbD5t6hyeU92A95pRWaSMw1GZZi/RwgSgUIl0xrSlXIT/9QzvYSA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/pluginutils": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.1.tgz", + "integrity": "sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@standard-schema/spec": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@standard-schema/spec/-/spec-1.1.0.tgz", + "integrity": "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==", + "dev": true, + "license": "MIT" + }, + "node_modules/@testing-library/dom": { + "version": "10.4.1", + "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-10.4.1.tgz", + "integrity": "sha512-o4PXJQidqJl82ckFaXUeoAW+XysPLauYI43Abki5hABd853iMhitooc6znOnczgbTYmEP6U6/y1ZyKAIsvMKGg==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/code-frame": "^7.10.4", + "@babel/runtime": "^7.12.5", + "@types/aria-query": "^5.0.1", + "aria-query": "5.3.0", + "dom-accessibility-api": "^0.5.9", + "lz-string": "^1.5.0", + "picocolors": "1.1.1", + "pretty-format": "^27.0.2" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@testing-library/jest-dom": { + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-6.9.1.tgz", + "integrity": "sha512-zIcONa+hVtVSSep9UT3jZ5rizo2BsxgyDYU7WFD5eICBE7no3881HGeb/QkGfsJs6JTkY1aQhT7rIPC7e+0nnA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@adobe/css-tools": "^4.4.0", + "aria-query": "^5.0.0", + "css.escape": "^1.5.1", + "dom-accessibility-api": "^0.6.3", + "picocolors": "^1.1.1", + "redent": "^3.0.0" + }, + "engines": { + "node": ">=14", + "npm": ">=6", + "yarn": ">=1" + } + }, + "node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.6.3.tgz", + "integrity": "sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==", + "dev": true, + "license": "MIT" + }, + "node_modules/@testing-library/react": { + "version": "16.3.2", + "resolved": "https://registry.npmjs.org/@testing-library/react/-/react-16.3.2.tgz", + "integrity": "sha512-XU5/SytQM+ykqMnAnvB2umaJNIOsLF3PVv//1Ew4CTcpz0/BRyy/af40qqrt7SjKpDdT1saBMc42CUok5gaw+g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.12.5" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@testing-library/dom": "^10.0.0", + "@types/react": "^18.0.0 || ^19.0.0", + "@types/react-dom": "^18.0.0 || ^19.0.0", + "react": "^18.0.0 || ^19.0.0", + "react-dom": "^18.0.0 || ^19.0.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@testing-library/user-event": { + "version": "14.6.1", + "resolved": "https://registry.npmjs.org/@testing-library/user-event/-/user-event-14.6.1.tgz", + "integrity": "sha512-vq7fv0rnt+QTXgPxr5Hjc210p6YKq2kmdziLgnsZGgLJ9e6VAShx1pACLuRjd/AS/sr7phAR58OIIpf0LlmQNw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12", + "npm": ">=6" + }, + "peerDependencies": { + "@testing-library/dom": ">=7.21.4" + } + }, + "node_modules/@tybys/wasm-util": { + "version": "0.10.3", + "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.3.tgz", + "integrity": "sha512-F3fo1MYrRJYL3zER0OUOmkutjr1Vp23m7OsSgp7nq4SP6OqX6C/56XFIPAl5bt3zaBRjmW7SGz3u/6LwFpYcOg==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@types/aria-query": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/@types/aria-query/-/aria-query-5.0.4.tgz", + "integrity": "sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/@types/chai": { + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.3.tgz", + "integrity": "sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/deep-eql": "*", + "assertion-error": "^2.0.1" + } + }, + "node_modules/@types/deep-eql": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@types/deep-eql/-/deep-eql-4.0.2.tgz", + "integrity": "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/esrecurse": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/@types/esrecurse/-/esrecurse-4.3.1.tgz", + "integrity": "sha512-xJBAbDifo5hpffDBuHl0Y8ywswbiAp/Wi7Y/GtAgSlZyIABppyurxVueOPE8LUQOxdlgi6Zqce7uoEpqNTeiUw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/estree": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz", + "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/node": { + "version": "25.9.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-25.9.5.tgz", + "integrity": "sha512-OScDchr2fwuUmWdf4kZ9h7PcJiYDVInhJizG/biAq3cAvqwYktuy/TYGGdZNMtNTFUP7rnb0NU4TUdm82kt4Rg==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": ">=7.24.0 <7.24.7" + } + }, + "node_modules/@types/react": { + "version": "19.2.17", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.17.tgz", + "integrity": "sha512-MXfmqaVPEVgkBT/aY0aGCkRWWtByiYQXo3xdQ8r5RzuFrPiRn8Gar2tQdXSUQ2GKV3bkXckek89V8wQBY2Q/Aw==", + "dev": true, + "license": "MIT", + "dependencies": { + "csstype": "^3.2.2" + } + }, + "node_modules/@types/react-dom": { + "version": "19.2.3", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.2.3.tgz", + "integrity": "sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "@types/react": "^19.2.0" + } + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "8.64.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.64.0.tgz", + "integrity": "sha512-CGvQPBxN3wZLu6Rz2kFUpZeoCm78xUic92ck39KPePkO1NPOwjCqdQnm5Q87tpWw9vcBvW8XLrDXjH9PWYtJ3Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/regexpp": "^4.12.2", + "@typescript-eslint/scope-manager": "8.64.0", + "@typescript-eslint/type-utils": "8.64.0", + "@typescript-eslint/utils": "8.64.0", + "@typescript-eslint/visitor-keys": "8.64.0", + "ignore": "^7.0.5", + "natural-compare": "^1.4.0", + "ts-api-utils": "^2.5.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^8.64.0", + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", + "typescript": ">=4.8.4 <6.1.0" + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.6.tgz", + "integrity": "sha512-BAg6QkE8W+TuQLrrw0Ugr7HegXduRuuj8/ti2kSOc+jz1dmx8/WNcjr6XGnq5YpDWxFwwaavqD0+jIUOKelTsw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "8.64.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.64.0.tgz", + "integrity": "sha512-KA0OshtlcCCXmbfqyZkM5pV3/WNraJf7DkJRLpyrmwPtud57H5BDX7C3k0LPSPxpprfRL+cJDGabF10mvNCoCw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/scope-manager": "8.64.0", + "@typescript-eslint/types": "8.64.0", + "@typescript-eslint/typescript-estree": "8.64.0", + "@typescript-eslint/visitor-keys": "8.64.0", + "debug": "^4.4.3" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", + "typescript": ">=4.8.4 <6.1.0" + } + }, + "node_modules/@typescript-eslint/project-service": { + "version": "8.64.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.64.0.tgz", + "integrity": "sha512-tk4WpOJ6IEbGrVHaNmM0YRrwAD3exZlIK3iadQNAxh4YKk6jvUQ4ecq18n+v7+meh+cJ3j+D8nbk8sRKhlwLQg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/tsconfig-utils": "^8.64.0", + "@typescript-eslint/types": "^8.64.0", + "debug": "^4.4.3" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.1.0" + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "8.64.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.64.0.tgz", + "integrity": "sha512-CXEaFdYXjSTgKhisNkwCcJwTP8Pl+fmRrEQrri4nm3vU743bALrxzLmq7fHG/7e6a5xO0lDYeURpZmBuhHk54w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.64.0", + "@typescript-eslint/visitor-keys": "8.64.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/tsconfig-utils": { + "version": "8.64.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.64.0.tgz", + "integrity": "sha512-2yo8rRNKuzbVWQp5kslhANqZ2uDAeROQHBRZNPu8JDsHmeFNj/XJJhX/FhNUWmkHHvoNsKa6+tHJiig87EzsQw==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.1.0" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "8.64.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.64.0.tgz", + "integrity": "sha512-XWG4Fmmv/6SvyS9nH8jWrKs6terwJvE8cyRt1CzYYqzp9OrPhCT4cMc/f7C6RZCwG+qMmiffJS1/qJP8G1URtg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.64.0", + "@typescript-eslint/typescript-estree": "8.64.0", + "@typescript-eslint/utils": "8.64.0", + "debug": "^4.4.3", + "ts-api-utils": "^2.5.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", + "typescript": ">=4.8.4 <6.1.0" + } + }, + "node_modules/@typescript-eslint/types": { + "version": "8.64.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.64.0.tgz", + "integrity": "sha512-qjhfuTfLXjA4IOzXvz0rTjT01BqEiIgPoUeMwiEjnaHKJMTNo8rH5pYW1a2L/0Dnux2fPC85AeyJoWaGa8WxTA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "8.64.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.64.0.tgz", + "integrity": "sha512-Pztpsn1aCE1oWDvDEfUk31nngvvF7vUB5SwHFEaZIFpvw7WJtqUHHL4plBZDA9HfWJJjL13BdG0YrJInTUvoVA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/project-service": "8.64.0", + "@typescript-eslint/tsconfig-utils": "8.64.0", + "@typescript-eslint/types": "8.64.0", + "@typescript-eslint/visitor-keys": "8.64.0", + "debug": "^4.4.3", + "minimatch": "^10.2.2", + "semver": "^7.7.3", + "tinyglobby": "^0.2.15", + "ts-api-utils": "^2.5.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.1.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { + "version": "7.8.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", + "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "8.64.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.64.0.tgz", + "integrity": "sha512-aJUGVB3+U0htrrCjoA8qukw8cm8fNCGAxK/tVoS70k8aeb7DETKeFozRiVFIwEeN9WJLsjaP3ph8I60tY2XZoQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.9.1", + "@typescript-eslint/scope-manager": "8.64.0", + "@typescript-eslint/types": "8.64.0", + "@typescript-eslint/typescript-estree": "8.64.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", + "typescript": ">=4.8.4 <6.1.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "8.64.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.64.0.tgz", + "integrity": "sha512-mrtuL8Nsn6gi2H4mo5KMTp823M+3Q19Ew/i+Zlikq20tIMm99C3Ez0dCmkWWnxut20esQvTg8aUSEhMcAOXhEw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.64.0", + "eslint-visitor-keys": "^5.0.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@vitejs/plugin-react": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-6.0.3.tgz", + "integrity": "sha512-vmFvco5/QuC2f9Oj+wTk0+9XeDFkHxSamwZKYc7MxYwKICfvUvlMhqKI0VuICPltGqh1neqBKDvO4kes1ya8vg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@rolldown/pluginutils": "^1.0.1" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "peerDependencies": { + "@rolldown/plugin-babel": "^0.1.7 || ^0.2.0", + "babel-plugin-react-compiler": "^1.0.0", + "vite": "^8.0.0" + }, + "peerDependenciesMeta": { + "@rolldown/plugin-babel": { + "optional": true + }, + "babel-plugin-react-compiler": { + "optional": true + } + } + }, + "node_modules/@vitest/expect": { + "version": "4.1.10", + "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-4.1.10.tgz", + "integrity": "sha512-YsCn+qAk1GWjQOWFEsEcL2gNQ0zmVmQu3T03qP6UyjhtmdtwtbuI+DASn/7iQB3HGTXkdBwGddzxPlmiql5vlA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@standard-schema/spec": "^1.1.0", + "@types/chai": "^5.2.2", + "@vitest/spy": "4.1.10", + "@vitest/utils": "4.1.10", + "chai": "^6.2.2", + "tinyrainbow": "^3.1.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/mocker": { + "version": "4.1.10", + "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-4.1.10.tgz", + "integrity": "sha512-v0xaezt+DKEmKfaxg133ldzADrwLGd7Ze1MfQQTYfvs8OqZIwbxyxaYURivwV7sWy5fqn3rH5uOrSp07bp44Ow==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vitest/spy": "4.1.10", + "estree-walker": "^3.0.3", + "magic-string": "^0.30.21" + }, + "funding": { + "url": "https://opencollective.com/vitest" + }, + "peerDependencies": { + "msw": "^2.4.9", + "vite": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "msw": { + "optional": true + }, + "vite": { + "optional": true + } + } + }, + "node_modules/@vitest/pretty-format": { + "version": "4.1.10", + "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-4.1.10.tgz", + "integrity": "sha512-W1HsjSH4MXQ9YfmmhLAoIYf1HRfekQCGngeIgcei6MP5QQGWUe0gkopdZQaVCFO+JDJMrAJGwa5pRpNpvy4P8Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "tinyrainbow": "^3.1.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/runner": { + "version": "4.1.10", + "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-4.1.10.tgz", + "integrity": "sha512-IKI6kpIH+LmpROplyLwBBaCfMgOZOMsygVa6BARD6ahA04VRuJSa6OaVG7kRvSEMD870Vd91rSSw0eegtWyLGg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vitest/utils": "4.1.10", + "pathe": "^2.0.3" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/snapshot": { + "version": "4.1.10", + "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-4.1.10.tgz", + "integrity": "sha512-xRkfOT1qpTAi/Ti4Y1LtfRc3kEuqxGw59eN2jN9pRWMtS/XDevekhcFSqvQqjUNGksfjMJu3Y+oJ+4Ypn2OaJw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vitest/pretty-format": "4.1.10", + "@vitest/utils": "4.1.10", + "magic-string": "^0.30.21", + "pathe": "^2.0.3" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/spy": { + "version": "4.1.10", + "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-4.1.10.tgz", + "integrity": "sha512-PLf/Ugvoq5wO/b4rwYCR1h2PSIdXz7wnkQFMiUpLdtM7l6pqVFcQIBEHyT1+l+cj7mNwAfZHzqXqDyjvOuwbDw==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/utils": { + "version": "4.1.10", + "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-4.1.10.tgz", + "integrity": "sha512-fy9am/HWxbaGt/Sawrp90vt6Y6jQwf1RX77cz3uwoJwJVMli/e1IEwRPnMNJ7vKfPTwo0diXifkpPvwH9v7nGA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vitest/pretty-format": "4.1.10", + "convert-source-map": "^2.0.0", + "tinyrainbow": "^3.1.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/abort-controller": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", + "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", + "dev": true, + "license": "MIT", + "dependencies": { + "event-target-shim": "^5.0.0" + }, + "engines": { + "node": ">=6.5" + } + }, + "node_modules/acorn": { + "version": "8.17.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.17.0.tgz", + "integrity": "sha512-xRQbDb9BnwDafYNn6Vwl839DYVjqXYb1XVGtWAZ1kcDc6iwAL4hg3B1dZlRiuENFeO2H53gFG3in621AdERVAg==", + "dev": true, + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/ajv": { + "version": "6.15.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.15.0.tgz", + "integrity": "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/archiver": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/archiver/-/archiver-7.0.1.tgz", + "integrity": "sha512-ZcbTaIqJOfCc03QwD468Unz/5Ir8ATtvAHsK+FdXbDIbGfihqh9mrvdcYunQzqn4HrvWWaFyaxJhGZagaJJpPQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "archiver-utils": "^5.0.2", + "async": "^3.2.4", + "buffer-crc32": "^1.0.0", + "readable-stream": "^4.0.0", + "readdir-glob": "^1.1.2", + "tar-stream": "^3.0.0", + "zip-stream": "^6.0.1" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/archiver-utils": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/archiver-utils/-/archiver-utils-5.0.2.tgz", + "integrity": "sha512-wuLJMmIBQYCsGZgYLTy5FIB2pF6Lfb6cXMSF8Qywwk3t20zWnAi7zLcQFdKQmIB8wyZpY5ER38x08GbwtR2cLA==", + "dev": true, + "license": "MIT", + "dependencies": { + "glob": "^10.0.0", + "graceful-fs": "^4.2.0", + "is-stream": "^2.0.1", + "lazystream": "^1.0.0", + "lodash": "^4.17.15", + "normalize-path": "^3.0.0", + "readable-stream": "^4.0.0" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/aria-query": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz", + "integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "dequal": "^2.0.3" + } + }, + "node_modules/assertion-error": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz", + "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + } + }, + "node_modules/async": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.6.tgz", + "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==", + "dev": true, + "license": "MIT" + }, + "node_modules/b4a": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/b4a/-/b4a-1.8.1.tgz", + "integrity": "sha512-aiqre1Nr0B/6DgE2N5vwTc+2/oQZ4Wh1t4NznYY4E00y8LCt6NqdRv81so00oo27D8MVKTpUa/MwUUtBLXCoDw==", + "dev": true, + "license": "Apache-2.0", + "peerDependencies": { + "react-native-b4a": "*" + }, + "peerDependenciesMeta": { + "react-native-b4a": { + "optional": true + } + } + }, + "node_modules/balanced-match": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", + "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "18 || 20 || >=22" + } + }, + "node_modules/bare-events": { + "version": "2.9.1", + "resolved": "https://registry.npmjs.org/bare-events/-/bare-events-2.9.1.tgz", + "integrity": "sha512-Z0oHEHAFDZkffN8Qc39zNZjQlMDkPJRyyyZieU1VH7u8c5S+qHZ2S8ixdKIAxEjfHO7FJxXmJWgteOghVanIsg==", + "dev": true, + "license": "Apache-2.0", + "peerDependencies": { + "bare-abort-controller": "*" + }, + "peerDependenciesMeta": { + "bare-abort-controller": { + "optional": true + } + } + }, + "node_modules/bare-fs": { + "version": "4.7.4", + "resolved": "https://registry.npmjs.org/bare-fs/-/bare-fs-4.7.4.tgz", + "integrity": "sha512-y1kC+ffIx/tPLdTE693uNjHfzTfr+ravR5tvWlMXe25nELbkqV400S71qHDwbkAQ1FVEZobB1NFRzFbCCcyBCQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "bare-events": "^2.5.4", + "bare-path": "^3.0.0", + "bare-stream": "^2.6.4", + "bare-url": "^2.2.2", + "fast-fifo": "^1.3.2" + }, + "engines": { + "bare": ">=1.16.0" + }, + "peerDependencies": { + "bare-buffer": "*" + }, + "peerDependenciesMeta": { + "bare-buffer": { + "optional": true + } + } + }, + "node_modules/bare-path": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/bare-path/-/bare-path-3.1.1.tgz", + "integrity": "sha512-JprUlveX3QjApC1cTpsUOiscADftCGVWkzitbHsRqv84hzYwYHw2mbluddsq5TvI8mH/8Ov1f4BiMAdcB0oYnQ==", + "dev": true, + "license": "Apache-2.0" + }, + "node_modules/bare-stream": { + "version": "2.13.3", + "resolved": "https://registry.npmjs.org/bare-stream/-/bare-stream-2.13.3.tgz", + "integrity": "sha512-Kc+brLqvEqGkjyfiwJmImAOqLZL7OsoLKuavx+hJjgVV3nLTOjloJyPMFxjUPerGGHrNH0fLU06jjykMLWrERQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "b4a": "^1.8.1", + "streamx": "^2.25.0", + "teex": "^1.0.1" + }, + "peerDependencies": { + "bare-abort-controller": "*", + "bare-buffer": "*", + "bare-events": "*" + }, + "peerDependenciesMeta": { + "bare-abort-controller": { + "optional": true + }, + "bare-buffer": { + "optional": true + }, + "bare-events": { + "optional": true + } + } + }, + "node_modules/bare-url": { + "version": "2.4.5", + "resolved": "https://registry.npmjs.org/bare-url/-/bare-url-2.4.5.tgz", + "integrity": "sha512-K+y9xF1tN+CdPu4qWwr0QiK1Al07eFPGYK5M2pDXcmHdMdgC/tT/bpmMe1hrmRHaidKLkXrC+cRNYf3XVDUhSQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "bare-path": "^3.0.0" + } + }, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/baseline-browser-mapping": { + "version": "2.10.43", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.43.tgz", + "integrity": "sha512-AjYpR78kDWAY3Efj+cDTFH9t9SCoL7OoTp1BOb0mQV7S+6CiLwnWM3FyxhJtdPufDFKzmCSFoUncKjWgJEZTCQ==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "baseline-browser-mapping": "dist/cli.cjs" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/bidi-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/bidi-js/-/bidi-js-1.0.3.tgz", + "integrity": "sha512-RKshQI1R3YQ+n9YJz2QQ147P66ELpa1FQEg20Dk8oW9t2KgLbpDLLp9aGZ7y8WHSshDknG0bknqGw5/tyCs5tw==", + "dev": true, + "license": "MIT", + "dependencies": { + "require-from-string": "^2.0.2" + } + }, + "node_modules/brace-expansion": { + "version": "5.0.7", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.7.tgz", + "integrity": "sha512-7oFy703dxfY3/NLxC1fh2SUCQ0H9rmAY+5EpDVfXjUTTs+HEwR2nYaqLv+GWcTsumwxPfiz6CzCNkwXwBUwqCA==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^4.0.2" + }, + "engines": { + "node": "18 || 20 || >=22" + } + }, + "node_modules/browserslist": { + "version": "4.28.6", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.6.tgz", + "integrity": "sha512-FQBYNK15VMslhLHpA7+n+n1GOlF1kId2xcCg7/j95f24AOF6VDYMNH4mFxF7KuaTdv627faazpOAjFzMrfJOUw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "baseline-browser-mapping": "^2.10.42", + "caniuse-lite": "^1.0.30001803", + "electron-to-chromium": "^1.5.389", + "node-releases": "^2.0.51", + "update-browserslist-db": "^1.2.3" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, + "node_modules/buffer-crc32": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-1.0.0.tgz", + "integrity": "sha512-Db1SbgBS/fg/392AblrMJk97KggmvYhr4pB5ZIMTWtaivCPMWLkmb7m21cJvpvgK+J3nsU2CmmixNBZx4vFj/w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001806", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001806.tgz", + "integrity": "sha512-72Cuvd95zbSYPKq6Fhg8eDJRlzgWDf7/mtoZv6Qe/DYNCEBdNxoA3+rZAU2ZhGCpZlns3EssFavaZomckT5Uuw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "CC-BY-4.0" + }, + "node_modules/chai": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/chai/-/chai-6.2.2.tgz", + "integrity": "sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true, + "license": "MIT" + }, + "node_modules/compress-commons": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/compress-commons/-/compress-commons-6.0.2.tgz", + "integrity": "sha512-6FqVXeETqWPoGcfzrXb37E50NP0LXT8kAMu5ooZayhWWdgEY4lBEEcbQNXtkuKQsGduxiIcI4gOTsxTmuq/bSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "crc-32": "^1.2.0", + "crc32-stream": "^6.0.0", + "is-stream": "^2.0.1", + "normalize-path": "^3.0.0", + "readable-stream": "^4.0.0" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true, + "license": "MIT" + }, + "node_modules/core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/crc-32": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/crc-32/-/crc-32-1.2.2.tgz", + "integrity": "sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "crc32": "bin/crc32.njs" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/crc32-stream": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/crc32-stream/-/crc32-stream-6.0.0.tgz", + "integrity": "sha512-piICUB6ei4IlTv1+653yq5+KoqfBYmj9bw6LqXoOneTMDXk5nM1qt12mFW1caG3LlJXEKW1Bp0WggEmIfQB34g==", + "dev": true, + "license": "MIT", + "dependencies": { + "crc-32": "^1.2.0", + "readable-stream": "^4.0.0" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/css-tree": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-3.2.1.tgz", + "integrity": "sha512-X7sjQzceUhu1u7Y/ylrRZFU2FS6LRiFVp6rKLPg23y3x3c3DOKAwuXGDp+PAGjh6CSnCjYeAul8pcT8bAl+lSA==", + "dev": true, + "license": "MIT", + "dependencies": { + "mdn-data": "2.27.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0" + } + }, + "node_modules/css.escape": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/css.escape/-/css.escape-1.5.1.tgz", + "integrity": "sha512-YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg==", + "dev": true, + "license": "MIT" + }, + "node_modules/csstype": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", + "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/data-urls": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-7.0.0.tgz", + "integrity": "sha512-23XHcCF+coGYevirZceTVD7NdJOqVn+49IHyxgszm+JIiHLoB2TkmPtsYkNWT1pvRSGkc35L6NHs0yHkN2SumA==", + "dev": true, + "license": "MIT", + "dependencies": { + "whatwg-mimetype": "^5.0.0", + "whatwg-url": "^16.0.0" + }, + "engines": { + "node": "^20.19.0 || ^22.12.0 || >=24.0.0" + } + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/decimal.js": { + "version": "10.6.0", + "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.6.0.tgz", + "integrity": "sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==", + "dev": true, + "license": "MIT" + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/dequal": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", + "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/detect-libc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=8" + } + }, + "node_modules/dom-accessibility-api": { + "version": "0.5.16", + "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.5.16.tgz", + "integrity": "sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/eastasianwidth": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", + "dev": true, + "license": "MIT" + }, + "node_modules/electron-to-chromium": { + "version": "1.5.393", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.393.tgz", + "integrity": "sha512-kiDJdIUawuEIcp9XoICKp1iTYDEbgguIPq526N1Q7jIQDeQ3CqoMx71025PI/7E48Ddtw2HuWsVjY7afEgNxmg==", + "dev": true, + "license": "ISC" + }, + "node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true, + "license": "MIT" + }, + "node_modules/entities": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-8.0.0.tgz", + "integrity": "sha512-zwfzJecQ/Uej6tusMqwAqU/6KL2XaB2VZ2Jg54Je6ahNBGNH6Ek6g3jjNCF0fG9EWQKGZNddNjU5F1ZQn/sBnA==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/es-module-lexer": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-2.3.1.tgz", + "integrity": "sha512-shc1dbU90Yl/xq1QrC7QRtfcwURZuVRfPhZbDoldJ1cn1gzDvBaBWlv0eFolj5+0znnPJz5TXLxsN77X/12KTA==", + "dev": true, + "license": "MIT" + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "10.7.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-10.7.0.tgz", + "integrity": "sha512-GVTD7s1vdIl6UYvAfriOPeY1Df8LIZjfofLvHwde+erDHGGuHyuM6xoxRxmHiebhYuD2p1vN4wWh0XzPARSGDQ==", + "dev": true, + "license": "MIT", + "workspaces": [ + "packages/*" + ], + "dependencies": { + "@eslint-community/eslint-utils": "^4.8.0", + "@eslint-community/regexpp": "^4.12.2", + "@eslint/config-array": "^0.23.5", + "@eslint/config-helpers": "^0.6.0", + "@eslint/core": "^1.2.1", + "@eslint/plugin-kit": "^0.7.2", + "@humanfs/node": "^0.16.6", + "@humanwhocodes/module-importer": "^1.0.1", + "@humanwhocodes/retry": "^0.4.2", + "@types/estree": "^1.0.6", + "ajv": "^6.14.0", + "cross-spawn": "^7.0.6", + "debug": "^4.3.2", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^9.1.2", + "eslint-visitor-keys": "^5.0.1", + "espree": "^11.2.0", + "esquery": "^1.7.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^8.0.0", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "minimatch": "^10.2.4", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "jiti": "*" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + } + } + }, + "node_modules/eslint-plugin-react-hooks": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-7.1.1.tgz", + "integrity": "sha512-f2I7Gw6JbvCexzIInuSbZpfdQ44D7iqdWX01FKLvrPgqxoE7oMj8clOfto8U6vYiz4yd5oKu39rRSVOe1zRu0g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.24.4", + "@babel/parser": "^7.24.4", + "hermes-parser": "^0.25.1", + "zod": "^3.25.0 || ^4.0.0", + "zod-validation-error": "^3.5.0 || ^4.0.0" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0 || ^10.0.0" + } + }, + "node_modules/eslint-plugin-react-refresh": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.5.3.tgz", + "integrity": "sha512-5EMmLCV98Pi4o/f/3DP/v/tNqLHMIc9I8LKClNDWhZ9JTho89/kQcitCXQBMG7sAfVRK0Ie3T2EDOzp1YXYiVA==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "eslint": "^9 || ^10" + } + }, + "node_modules/eslint-scope": { + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-9.1.2.tgz", + "integrity": "sha512-xS90H51cKw0jltxmvmHy2Iai1LIqrfbw57b79w/J7MfvDfkIkFZ+kj6zC3BjtUwh150HsSSdxXZcsuv72miDFQ==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "@types/esrecurse": "^4.3.1", + "@types/estree": "^1.0.8", + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz", + "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/espree": { + "version": "11.2.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-11.2.0.tgz", + "integrity": "sha512-7p3DrVEIopW1B1avAGLuCSh1jubc01H2JHc8B4qqGblmg5gI9yumBgACjWo4JlIc04ufug4xJ3SQI8HkS/Rgzw==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "acorn": "^8.16.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^5.0.1" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esquery": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz", + "integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estree-walker": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz", + "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "^1.0.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/event-target-shim": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", + "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8.x" + } + }, + "node_modules/events-universal": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/events-universal/-/events-universal-1.0.1.tgz", + "integrity": "sha512-LUd5euvbMLpwOF8m6ivPCbhQeSiYVNb8Vs0fQ8QjXo0JTkEHpz8pxdQf0gStltaPpw0Cca8b39KxvK9cfKRiAw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "bare-events": "^2.7.0" + } + }, + "node_modules/expect-type": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.4.0.tgz", + "integrity": "sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-fifo": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/fast-fifo/-/fast-fifo-1.3.2.tgz", + "integrity": "sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/file-entry-cache": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", + "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "flat-cache": "^4.0.0" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "license": "MIT", + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", + "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", + "dev": true, + "license": "MIT", + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.4" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/flatted": { + "version": "3.4.2", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.2.tgz", + "integrity": "sha512-PjDse7RzhcPkIJwy5t7KPWQSZ9cAbzQXcafsetQoD7sOJRQlGikNbx7yZp2OotDnJyrDcbyRq3Ttb18iYOqkxA==", + "dev": true, + "license": "ISC" + }, + "node_modules/foreground-child": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz", + "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", + "dev": true, + "license": "ISC", + "dependencies": { + "cross-spawn": "^7.0.6", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/glob": { + "version": "10.5.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.5.0.tgz", + "integrity": "sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==", + "deprecated": "Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me", + "dev": true, + "license": "ISC", + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^3.1.2", + "minimatch": "^9.0.4", + "minipass": "^7.1.2", + "package-json-from-dist": "^1.0.0", + "path-scurry": "^1.11.1" + }, + "bin": { + "glob": "dist/esm/bin.mjs" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/glob/node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/glob/node_modules/brace-expansion": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.2.tgz", + "integrity": "sha512-w5JZcKgdhDOgOwm8H+KgbosopHMuGcl6qbulwjtz3SM7I7P3yW1eAjzMPLrIE+NQ9vjgANKHWeMHnrT0OXW1oA==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/glob/node_modules/minimatch": { + "version": "9.0.9", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.9.tgz", + "integrity": "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.2" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/globals": { + "version": "17.7.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-17.7.0.tgz", + "integrity": "sha512-Czmyns5dUsq4seFBR/Kdydhmo8y9kC79hiSkPn0YcGtNnYWnrgt0vjrSjx9tspoDGWm2CMarffRuLjM4xUz8xg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/hermes-estree": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/hermes-estree/-/hermes-estree-0.25.1.tgz", + "integrity": "sha512-0wUoCcLp+5Ev5pDW2OriHC2MJCbwLwuRx+gAqMTOkGKJJiBCLjtrvy4PWUGn6MIVefecRpzoOZ/UV6iGdOr+Cw==", + "dev": true, + "license": "MIT" + }, + "node_modules/hermes-parser": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/hermes-parser/-/hermes-parser-0.25.1.tgz", + "integrity": "sha512-6pEjquH3rqaI6cYAXYPcz9MS4rY6R4ngRgrgfDshRptUZIc3lw0MCIJIGDj9++mfySOuPTHB4nrSW99BCvOPIA==", + "dev": true, + "license": "MIT", + "dependencies": { + "hermes-estree": "0.25.1" + } + }, + "node_modules/html-encoding-sniffer": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-6.0.0.tgz", + "integrity": "sha512-CV9TW3Y3f8/wT0BRFc1/KAVQ3TUHiXmaAb6VW9vtiMFf7SLoMd1PdAc4W3KFOFETBJUb90KatHqlsZMWV+R9Gg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@exodus/bytes": "^1.6.0" + }, + "engines": { + "node": "^20.19.0 || ^22.12.0 || >=24.0.0" + } + }, + "node_modules/ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "BSD-3-Clause" + }, + "node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/indent-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", + "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-potential-custom-element-name": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", + "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true, + "license": "ISC" + }, + "node_modules/jackspeak": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", + "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/jsdom": { + "version": "29.1.1", + "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-29.1.1.tgz", + "integrity": "sha512-ECi4Fi2f7BdJtUKTflYRTiaMxIB0O6zfR1fX0GXpUrf6flp8QIYn1UT20YQqdSOfk2dfkCwS8LAFoJDEppNK5Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@asamuzakjp/css-color": "^5.1.11", + "@asamuzakjp/dom-selector": "^7.1.1", + "@bramus/specificity": "^2.4.2", + "@csstools/css-syntax-patches-for-csstree": "^1.1.3", + "@exodus/bytes": "^1.15.0", + "css-tree": "^3.2.1", + "data-urls": "^7.0.0", + "decimal.js": "^10.6.0", + "html-encoding-sniffer": "^6.0.0", + "is-potential-custom-element-name": "^1.0.1", + "lru-cache": "^11.3.5", + "parse5": "^8.0.1", + "saxes": "^6.0.0", + "symbol-tree": "^3.2.4", + "tough-cookie": "^6.0.1", + "undici": "^7.25.0", + "w3c-xmlserializer": "^5.0.0", + "webidl-conversions": "^8.0.1", + "whatwg-mimetype": "^5.0.0", + "whatwg-url": "^16.0.1", + "xml-name-validator": "^5.0.0" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24.0.0" + }, + "peerDependencies": { + "canvas": "^3.0.0" + }, + "peerDependenciesMeta": { + "canvas": { + "optional": true + } + } + }, + "node_modules/jsdom/node_modules/lru-cache": { + "version": "11.5.2", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.2.tgz", + "integrity": "sha512-4pfM1Ff0x50o0tQwb5ucw/RzNyD0/YJME6IVcStalZuMWxdt3sR3huStTtxz4PUmvZfRguvDejasvQ2kifR11g==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/jsesc": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "dev": true, + "license": "MIT", + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "license": "MIT", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, + "license": "MIT", + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/lazystream": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/lazystream/-/lazystream-1.0.1.tgz", + "integrity": "sha512-b94GiNHQNy6JNTrt5w6zNyffMrNkXZb3KTkCZJb2V1xaEGCk093vkZ2jk3tpaeP33/OiXC+WvK9AxUebnf5nbw==", + "dev": true, + "license": "MIT", + "dependencies": { + "readable-stream": "^2.0.5" + }, + "engines": { + "node": ">= 0.6.3" + } + }, + "node_modules/lazystream/node_modules/readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dev": true, + "license": "MIT", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/lazystream/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true, + "license": "MIT" + }, + "node_modules/lazystream/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/lightningcss": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.33.0.tgz", + "integrity": "sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==", + "dev": true, + "license": "MPL-2.0", + "dependencies": { + "detect-libc": "^2.0.3" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "lightningcss-android-arm64": "1.33.0", + "lightningcss-darwin-arm64": "1.33.0", + "lightningcss-darwin-x64": "1.33.0", + "lightningcss-freebsd-x64": "1.33.0", + "lightningcss-linux-arm-gnueabihf": "1.33.0", + "lightningcss-linux-arm64-gnu": "1.33.0", + "lightningcss-linux-arm64-musl": "1.33.0", + "lightningcss-linux-x64-gnu": "1.33.0", + "lightningcss-linux-x64-musl": "1.33.0", + "lightningcss-win32-arm64-msvc": "1.33.0", + "lightningcss-win32-x64-msvc": "1.33.0" + } + }, + "node_modules/lightningcss-android-arm64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.33.0.tgz", + "integrity": "sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-arm64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.33.0.tgz", + "integrity": "sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-x64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.33.0.tgz", + "integrity": "sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-freebsd-x64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.33.0.tgz", + "integrity": "sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm-gnueabihf": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.33.0.tgz", + "integrity": "sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-gnu": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.33.0.tgz", + "integrity": "sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-musl": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.33.0.tgz", + "integrity": "sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-gnu": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.33.0.tgz", + "integrity": "sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-musl": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.33.0.tgz", + "integrity": "sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-arm64-msvc": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.33.0.tgz", + "integrity": "sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-x64-msvc": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.33.0.tgz", + "integrity": "sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash": { + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.18.1.tgz", + "integrity": "sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "license": "ISC", + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/lz-string": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/lz-string/-/lz-string-1.5.0.tgz", + "integrity": "sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==", + "dev": true, + "license": "MIT", + "peer": true, + "bin": { + "lz-string": "bin/bin.js" + } + }, + "node_modules/magic-string": { + "version": "0.30.21", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", + "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.5" + } + }, + "node_modules/mdn-data": { + "version": "2.27.1", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.27.1.tgz", + "integrity": "sha512-9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ==", + "dev": true, + "license": "CC0-1.0" + }, + "node_modules/min-indent": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", + "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/minimatch": { + "version": "10.2.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.5.tgz", + "integrity": "sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "brace-expansion": "^5.0.5" + }, + "engines": { + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/minipass": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz", + "integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, + "license": "MIT" + }, + "node_modules/nanoid": { + "version": "3.3.16", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.16.tgz", + "integrity": "sha512-bzlKTyNJ7+LdGIIwy8ijFpIqEQIvafahV7eYykJ8Cvh42EdJeODoJ6gUJXpQJvej1BddH8OqTXZNE/KfbWAu8Q==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true, + "license": "MIT" + }, + "node_modules/node-releases": { + "version": "2.0.51", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.51.tgz", + "integrity": "sha512-wRNIrw4DmVLKQlbgOMdkMx27Wrpzes2hh5Jtbi2bjPd+4wJstWIqP5A+lscnqbm0xxmT5Bpg8Lec5ItEBwx6BQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/obug": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/obug/-/obug-2.1.4.tgz", + "integrity": "sha512-4a+OsYv9UktOJKE+l1A4OufDgdRF9PifWj+tJnHURo/P+WOxpG4GzUFL9qCalmWauao6ogiG+QvnCovwPoyAWA==", + "dev": true, + "funding": [ + "https://github.com/sponsors/sxzz", + "https://opencollective.com/debug" + ], + "license": "MIT", + "engines": { + "node": ">=12.20.0" + } + }, + "node_modules/optionator": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/package-json-from-dist": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", + "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", + "dev": true, + "license": "BlueOak-1.0.0" + }, + "node_modules/parse5": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-8.0.1.tgz", + "integrity": "sha512-z1e/HMG90obSGeidlli3hj7cbocou0/wa5HacvI3ASx34PecNjNQeaHNo5WIZpWofN9kgkqV1q5YvXe3F0FoPw==", + "dev": true, + "license": "MIT", + "dependencies": { + "entities": "^8.0.0" + }, + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-scurry": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", + "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "lru-cache": "^10.2.0", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" + }, + "engines": { + "node": ">=16 || 14 >=14.18" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/path-scurry/node_modules/lru-cache": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", + "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/pathe": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", + "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", + "dev": true, + "license": "MIT" + }, + "node_modules/pend": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", + "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", + "dev": true, + "license": "MIT" + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.5.tgz", + "integrity": "sha512-RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/postcss": { + "version": "8.5.20", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.20.tgz", + "integrity": "sha512-lW616l85ucIQL+FocMmL7pQFPqBmwejrCMg+iPxyImlrANNJG9NHq/RkyCZopDhd8C3LA03PHRJDjkbGu8vvug==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.16", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/prettier": { + "version": "3.9.5", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.9.5.tgz", + "integrity": "sha512-/FVl766LpUfB5vXgCYOYa0MeV/441Ia99AeICQIQFTY/Nw0roZwULcXpku5i1/m5kt/baz+s4Zogspd839HSMg==", + "dev": true, + "license": "MIT", + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/pretty-format": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz", + "integrity": "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "ansi-regex": "^5.0.1", + "ansi-styles": "^5.0.0", + "react-is": "^17.0.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/process": { + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", + "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.6.0" + } + }, + "node_modules/process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", + "dev": true, + "license": "MIT" + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/react": { + "version": "19.2.7", + "resolved": "https://registry.npmjs.org/react/-/react-19.2.7.tgz", + "integrity": "sha512-HNe9WslTbXmFK8o8cmwgAeJFSBvt1bPdHCVKtaaV+WlAN36mpT4hcRpwbf3fY56ar2oIXzsBpOAiIRHAdY0OlQ==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-dom": { + "version": "19.2.7", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.7.tgz", + "integrity": "sha512-t0BRVXvbiE/o20Hfw669rLbMCDWtYZLvmJigy2f0MxsXF+71pxhR3xOkspmsO8h3ZlNzyibAmtCa3l4lYKk6gQ==", + "license": "MIT", + "dependencies": { + "scheduler": "^0.27.0" + }, + "peerDependencies": { + "react": "^19.2.7" + } + }, + "node_modules/react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/readable-stream": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.7.0.tgz", + "integrity": "sha512-oIGGmcpTLwPga8Bn6/Z75SVaH1z5dUut2ibSyAMVhmUggWpmDn2dapB0n7f8nwaSiRtepAsfJyfXIO5DCVAODg==", + "dev": true, + "license": "MIT", + "dependencies": { + "abort-controller": "^3.0.0", + "buffer": "^6.0.3", + "events": "^3.3.0", + "process": "^0.11.10", + "string_decoder": "^1.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/readdir-glob": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/readdir-glob/-/readdir-glob-1.1.3.tgz", + "integrity": "sha512-v05I2k7xN8zXvPD9N+z/uhXPaj0sUFCe2rcWZIpBsqxfP7xXFQ0tipAd/wjj1YxWyWtUS5IDJpOG82JKt2EAVA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "minimatch": "^5.1.0" + } + }, + "node_modules/readdir-glob/node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/readdir-glob/node_modules/brace-expansion": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.2.tgz", + "integrity": "sha512-w5JZcKgdhDOgOwm8H+KgbosopHMuGcl6qbulwjtz3SM7I7P3yW1eAjzMPLrIE+NQ9vjgANKHWeMHnrT0OXW1oA==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/readdir-glob/node_modules/minimatch": { + "version": "5.1.9", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.9.tgz", + "integrity": "sha512-7o1wEA2RyMP7Iu7GNba9vc0RWWGACJOCZBJX2GJWip0ikV+wcOsgVuY9uE8CPiyQhkGFSlhuSkZPavN7u1c2Fw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/redent": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz", + "integrity": "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==", + "dev": true, + "license": "MIT", + "dependencies": { + "indent-string": "^4.0.0", + "strip-indent": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/rolldown": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.1.5.tgz", + "integrity": "sha512-t9z29cJjXf/vxQ8dyhCSpt6H6aSwHTk8cT5I3iy6SMXuFpk5mB6PL6XfC8PCwrPTx93udwKUm9HRteAlTGBLiA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@oxc-project/types": "=0.139.0", + "@rolldown/pluginutils": "^1.0.0" + }, + "bin": { + "rolldown": "bin/cli.mjs" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "optionalDependencies": { + "@rolldown/binding-android-arm64": "1.1.5", + "@rolldown/binding-darwin-arm64": "1.1.5", + "@rolldown/binding-darwin-x64": "1.1.5", + "@rolldown/binding-freebsd-x64": "1.1.5", + "@rolldown/binding-linux-arm-gnueabihf": "1.1.5", + "@rolldown/binding-linux-arm64-gnu": "1.1.5", + "@rolldown/binding-linux-arm64-musl": "1.1.5", + "@rolldown/binding-linux-ppc64-gnu": "1.1.5", + "@rolldown/binding-linux-s390x-gnu": "1.1.5", + "@rolldown/binding-linux-x64-gnu": "1.1.5", + "@rolldown/binding-linux-x64-musl": "1.1.5", + "@rolldown/binding-openharmony-arm64": "1.1.5", + "@rolldown/binding-wasm32-wasi": "1.1.5", + "@rolldown/binding-win32-arm64-msvc": "1.1.5", + "@rolldown/binding-win32-x64-msvc": "1.1.5" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/saxes": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz", + "integrity": "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==", + "dev": true, + "license": "ISC", + "dependencies": { + "xmlchars": "^2.2.0" + }, + "engines": { + "node": ">=v12.22.7" + } + }, + "node_modules/scheduler": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz", + "integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==", + "license": "MIT" + }, + "node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/siginfo": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz", + "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==", + "dev": true, + "license": "ISC" + }, + "node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/stackback": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz", + "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==", + "dev": true, + "license": "MIT" + }, + "node_modules/std-env": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/std-env/-/std-env-4.2.0.tgz", + "integrity": "sha512-oCUKSupKTHX53EyjDtuZQ64pjLJ6yYCtpmEw0goYxtjG9KpbRe8KAsl2tBUGU9DyMcJ0RwJ8GqJAFzMXcXW1Rw==", + "dev": true, + "license": "MIT" + }, + "node_modules/streamx": { + "version": "2.28.0", + "resolved": "https://registry.npmjs.org/streamx/-/streamx-2.28.0.tgz", + "integrity": "sha512-1Yowhzjf0ivGMrTIkY9hav5TxobO9qIVqUE41fiCGMGgc3CLlf4MY+9AHmZqBWgDTue0fY9zWjYFVyf6Diuobw==", + "dev": true, + "license": "MIT", + "dependencies": { + "events-universal": "^1.0.0", + "fast-fifo": "^1.3.2", + "text-decoder": "^1.1.0" + } + }, + "node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "dev": true, + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/string-width-cjs": { + "name": "string-width", + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width-cjs/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true, + "license": "MIT" + }, + "node_modules/string-width-cjs/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz", + "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.2.2" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/strip-ansi-cjs": { + "name": "strip-ansi", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi/node_modules/ansi-regex": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz", + "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/strip-indent": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz", + "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "min-indent": "^1.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/symbol-tree": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", + "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", + "dev": true, + "license": "MIT" + }, + "node_modules/tar-stream": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-3.2.0.tgz", + "integrity": "sha512-ojzvCvVaNp6aOTFmG7jaRD0meowIAuPc3cMMhSgKiVWws1GyHbGd/xvnyuRKcKlMpt3qvxx6r0hreCNITP9hIg==", + "dev": true, + "license": "MIT", + "dependencies": { + "b4a": "^1.6.4", + "bare-fs": "^4.5.5", + "fast-fifo": "^1.2.0", + "streamx": "^2.15.0" + } + }, + "node_modules/teex": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/teex/-/teex-1.0.1.tgz", + "integrity": "sha512-eYE6iEI62Ni1H8oIa7KlDU6uQBtqr4Eajni3wX7rpfXD8ysFx8z0+dri+KWEPWpBsxXfxu58x/0jvTVT1ekOSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "streamx": "^2.12.5" + } + }, + "node_modules/text-decoder": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/text-decoder/-/text-decoder-1.2.7.tgz", + "integrity": "sha512-vlLytXkeP4xvEq2otHeJfSQIRyWxo/oZGEbXrtEEF9Hnmrdly59sUbzZ/QgyWuLYHctCHxFF4tRQZNQ9k60ExQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "b4a": "^1.6.4" + } + }, + "node_modules/tinybench": { + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.9.0.tgz", + "integrity": "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==", + "dev": true, + "license": "MIT" + }, + "node_modules/tinyexec": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.2.4.tgz", + "integrity": "sha512-SHf/r48b7vOrjve9PxJo3MN5v5yuyjHvdUcrQffT3WXMUfnGmHDVbC4k3sHJaJTgZCwpUplIaAo5ANtMyp3YHg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/tinyglobby": { + "version": "0.2.17", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", + "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", + "dev": true, + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/tinyrainbow": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-3.1.0.tgz", + "integrity": "sha512-Bf+ILmBgretUrdJxzXM0SgXLZ3XfiaUuOj/IKQHuTXip+05Xn+uyEYdVg0kYDipTBcLrCVyUzAPz7QmArb0mmw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/tldts": { + "version": "7.4.9", + "resolved": "https://registry.npmjs.org/tldts/-/tldts-7.4.9.tgz", + "integrity": "sha512-3kZ8wQQ/k5DrChD4X4FVvr2D7E5uoRgAqkPyLpSCGUvqOvqu+JEdr3mwMUaVWb+vMHZaKhF5fp2PBigKsui7hA==", + "dev": true, + "license": "MIT", + "dependencies": { + "tldts-core": "^7.4.9" + }, + "bin": { + "tldts": "bin/cli.js" + } + }, + "node_modules/tldts-core": { + "version": "7.4.9", + "resolved": "https://registry.npmjs.org/tldts-core/-/tldts-core-7.4.9.tgz", + "integrity": "sha512-DxKfPBI52p2msTEu7MPhdpdDTBhhVQg1a/8PjQckeyAvO13eMYElX545grIp6nnTGIMZlRvFZPvFhvI/WIz2Vg==", + "dev": true, + "license": "MIT" + }, + "node_modules/tough-cookie": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-6.0.2.tgz", + "integrity": "sha512-exgYmnmL/sJpR3upZfXG5PoatXQii55xAiXGXzY+sROLZ/Y+SLcp9PgJNI9Vz37HpQ74WvDcLT8eqm+kV3FzrA==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "tldts": "^7.0.5" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/tr46": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-6.0.0.tgz", + "integrity": "sha512-bLVMLPtstlZ4iMQHpFHTR7GAGj2jxi8Dg0s2h2MafAE4uSWF98FC/3MomU51iQAMf8/qDUbKWf5GxuvvVcXEhw==", + "dev": true, + "license": "MIT", + "dependencies": { + "punycode": "^2.3.1" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/ts-api-utils": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.5.0.tgz", + "integrity": "sha512-OJ/ibxhPlqrMM0UiNHJ/0CKQkoKF243/AEmplt3qpRgkW8VG7IfOS41h7V8TjITqdByHzrjcS/2si+y4lIh8NA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.12" + }, + "peerDependencies": { + "typescript": ">=4.8.4" + } + }, + "node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "dev": true, + "license": "0BSD", + "optional": true + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/typescript": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz", + "integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/typescript-eslint": { + "version": "8.64.0", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.64.0.tgz", + "integrity": "sha512-0qg+pDNMnqYzqH9AnNK+39tejHvsShUOUUoRUgtnTGE7QuMZhiFDnozq8nHJVq+Wae6NMLKNWLg5WmkcC/ndyQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/eslint-plugin": "8.64.0", + "@typescript-eslint/parser": "8.64.0", + "@typescript-eslint/typescript-estree": "8.64.0", + "@typescript-eslint/utils": "8.64.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", + "typescript": ">=4.8.4 <6.1.0" + } + }, + "node_modules/undici": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/undici/-/undici-7.28.0.tgz", + "integrity": "sha512-cRZYrTDwWznlnRiPjggAGxZXanty6M8RV1ff8Wm4LWXBp7/IG8v5DnOm74DtUBp9OONpK75YlPnIjQqX0dBDtA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=20.18.1" + } + }, + "node_modules/undici-types": { + "version": "7.24.6", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.24.6.tgz", + "integrity": "sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg==", + "dev": true, + "license": "MIT" + }, + "node_modules/update-browserslist-db": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz", + "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "dev": true, + "license": "MIT" + }, + "node_modules/vite": { + "version": "8.1.5", + "resolved": "https://registry.npmjs.org/vite/-/vite-8.1.5.tgz", + "integrity": "sha512-7ULLwsCdYx/nRyrpiEwvqb5TFHrMVZyBt+rg/OAXT7rgj/z+DtTDyKFeLAdDkubDVDKD8jOsndmy7m55XcfUsw==", + "dev": true, + "license": "MIT", + "dependencies": { + "lightningcss": "^1.32.0", + "picomatch": "^4.0.5", + "postcss": "^8.5.17", + "rolldown": "~1.1.5", + "tinyglobby": "^0.2.17" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^20.19.0 || >=22.12.0", + "@vitejs/devtools": "^0.3.0", + "esbuild": "^0.27.0 || ^0.28.0", + "jiti": ">=1.21.0", + "less": "^4.0.0", + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "@vitejs/devtools": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "jiti": { + "optional": true + }, + "less": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + }, + "node_modules/vitest": { + "version": "4.1.10", + "resolved": "https://registry.npmjs.org/vitest/-/vitest-4.1.10.tgz", + "integrity": "sha512-R9jUTe5S4Qb0HCd4TNqpC7oGcrMssMRGXLW80ubjWsW9VH5GF8y1Y0SFLY9AbqSk6nt0PnOx4H4WNJYZ13GUPw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vitest/expect": "4.1.10", + "@vitest/mocker": "4.1.10", + "@vitest/pretty-format": "4.1.10", + "@vitest/runner": "4.1.10", + "@vitest/snapshot": "4.1.10", + "@vitest/spy": "4.1.10", + "@vitest/utils": "4.1.10", + "es-module-lexer": "^2.0.0", + "expect-type": "^1.3.0", + "magic-string": "^0.30.21", + "obug": "^2.1.1", + "pathe": "^2.0.3", + "picomatch": "^4.0.3", + "std-env": "^4.0.0-rc.1", + "tinybench": "^2.9.0", + "tinyexec": "^1.0.2", + "tinyglobby": "^0.2.15", + "tinyrainbow": "^3.1.0", + "vite": "^6.0.0 || ^7.0.0 || ^8.0.0", + "why-is-node-running": "^2.3.0" + }, + "bin": { + "vitest": "vitest.mjs" + }, + "engines": { + "node": "^20.0.0 || ^22.0.0 || >=24.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + }, + "peerDependencies": { + "@edge-runtime/vm": "*", + "@opentelemetry/api": "^1.9.0", + "@types/node": "^20.0.0 || ^22.0.0 || >=24.0.0", + "@vitest/browser-playwright": "4.1.10", + "@vitest/browser-preview": "4.1.10", + "@vitest/browser-webdriverio": "4.1.10", + "@vitest/coverage-istanbul": "4.1.10", + "@vitest/coverage-v8": "4.1.10", + "@vitest/ui": "4.1.10", + "happy-dom": "*", + "jsdom": "*", + "vite": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "@edge-runtime/vm": { + "optional": true + }, + "@opentelemetry/api": { + "optional": true + }, + "@types/node": { + "optional": true + }, + "@vitest/browser-playwright": { + "optional": true + }, + "@vitest/browser-preview": { + "optional": true + }, + "@vitest/browser-webdriverio": { + "optional": true + }, + "@vitest/coverage-istanbul": { + "optional": true + }, + "@vitest/coverage-v8": { + "optional": true + }, + "@vitest/ui": { + "optional": true + }, + "happy-dom": { + "optional": true + }, + "jsdom": { + "optional": true + }, + "vite": { + "optional": false + } + } + }, + "node_modules/w3c-xmlserializer": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-5.0.0.tgz", + "integrity": "sha512-o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA==", + "dev": true, + "license": "MIT", + "dependencies": { + "xml-name-validator": "^5.0.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/webidl-conversions": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-8.0.1.tgz", + "integrity": "sha512-BMhLD/Sw+GbJC21C/UgyaZX41nPt8bUTg+jWyDeg7e7YN4xOM05YPSIXceACnXVtqyEw/LMClUQMtMZ+PGGpqQ==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=20" + } + }, + "node_modules/whatwg-mimetype": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-5.0.0.tgz", + "integrity": "sha512-sXcNcHOC51uPGF0P/D4NVtrkjSU2fNsm9iog4ZvZJsL3rjoDAzXZhkm2MWt1y+PUdggKAYVoMAIYcs78wJ51Cw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=20" + } + }, + "node_modules/whatwg-url": { + "version": "16.0.1", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-16.0.1.tgz", + "integrity": "sha512-1to4zXBxmXHV3IiSSEInrreIlu02vUOvrhxJJH5vcxYTBDAx51cqZiKdyTxlecdKNSjj8EcxGBxNf6Vg+945gw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@exodus/bytes": "^1.11.0", + "tr46": "^6.0.0", + "webidl-conversions": "^8.0.1" + }, + "engines": { + "node": "^20.19.0 || ^22.12.0 || >=24.0.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/why-is-node-running": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz", + "integrity": "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==", + "dev": true, + "license": "MIT", + "dependencies": { + "siginfo": "^2.0.0", + "stackback": "0.0.2" + }, + "bin": { + "why-is-node-running": "cli.js" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/wrap-ansi": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", + "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs": { + "name": "wrap-ansi", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true, + "license": "MIT" + }, + "node_modules/wrap-ansi-cjs/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi/node_modules/ansi-styles": { + "version": "6.2.3", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz", + "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/xml-name-validator": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-5.0.0.tgz", + "integrity": "sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18" + } + }, + "node_modules/xmlchars": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", + "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", + "dev": true, + "license": "MIT" + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true, + "license": "ISC" + }, + "node_modules/yauzl": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-3.4.0.tgz", + "integrity": "sha512-jIH9yLR9wqr0wOS0TpBvo/g/2UgZH5qePVbjgRliiF0BYvOZyaBknKsF+x9Iht0O6sqgnB93rCICdOZFecJuDw==", + "dev": true, + "license": "MIT", + "dependencies": { + "pend": "~1.2.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/zip-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/zip-stream/-/zip-stream-6.0.1.tgz", + "integrity": "sha512-zK7YHHz4ZXpW89AHXUPbQVGKI7uvkd3hzusTdotCg1UxyaVtg0zFJSTfW/Dq5f7OBBVnq6cZIaC8Ti4hb6dtCA==", + "dev": true, + "license": "MIT", + "dependencies": { + "archiver-utils": "^5.0.0", + "compress-commons": "^6.0.2", + "readable-stream": "^4.0.0" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/zod": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/zod/-/zod-4.4.3.tgz", + "integrity": "sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + }, + "node_modules/zod-validation-error": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/zod-validation-error/-/zod-validation-error-4.0.2.tgz", + "integrity": "sha512-Q6/nZLe6jxuU80qb/4uJ4t5v2VEZ44lzQjPDhYJNztRQ4wyWc6VF3D3Kb/fAuPetZQnhS3hnajCf9CsWesghLQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.0.0" + }, + "peerDependencies": { + "zod": "^3.25.0 || ^4.0.0" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..04b2f74 --- /dev/null +++ b/package.json @@ -0,0 +1,53 @@ +{ + "name": "@add-ideas/toolbox-portal", + "version": "0.1.0", + "license": "AGPL-3.0-only", + "private": true, + "type": "module", + "scripts": { + "prebuild": "npm run licenses:generate", + "dev": "vite", + "build": "tsc -b && vite build", + "preview": "vite preview", + "test": "vitest run", + "test:watch": "vitest", + "lint": "eslint .", + "typecheck": "tsc -b", + "format": "prettier --write .", + "format:check": "prettier --check .", + "check": "npm run format:check && npm run lint && npm run test && npm run build", + "licenses:generate": "node scripts/licenses.mjs", + "assemble": "node scripts/assemble.mjs", + "package:static": "node scripts/package-static.mjs" + }, + "dependencies": { + "@add-ideas/toolbox-contract": "^0.1.0", + "react": "^19.2.6", + "react-dom": "^19.2.6" + }, + "devDependencies": { + "@eslint/js": "^10.0.1", + "@testing-library/jest-dom": "^6.6.3", + "@testing-library/react": "^16.3.2", + "@testing-library/user-event": "^14.6.1", + "@types/node": "^25.8.0", + "@types/react": "^19.2.14", + "@types/react-dom": "^19.2.3", + "@vitejs/plugin-react": "^6.0.2", + "archiver": "^7.0.1", + "eslint": "^10.4.0", + "eslint-plugin-react-hooks": "^7.1.1", + "eslint-plugin-react-refresh": "^0.5.2", + "globals": "^17.6.0", + "jsdom": "^29.1.1", + "prettier": "^3.8.3", + "typescript": "^6.0.3", + "typescript-eslint": "^8.59.3", + "vite": "^8.0.13", + "vitest": "^4.1.6", + "yauzl": "^3.2.0" + }, + "engines": { + "node": ">=22" + } +} diff --git a/public/LICENSE.txt b/public/LICENSE.txt new file mode 100644 index 0000000..0ad25db --- /dev/null +++ b/public/LICENSE.txt @@ -0,0 +1,661 @@ + GNU AFFERO GENERAL PUBLIC LICENSE + Version 3, 19 November 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU Affero General Public License is a free, copyleft license for +software and other kinds of works, specifically designed to ensure +cooperation with the community in the case of network server software. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +our General Public Licenses are intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + Developers that use our General Public Licenses protect your rights +with two steps: (1) assert copyright on the software, and (2) offer +you this License which gives you legal permission to copy, distribute +and/or modify the software. + + A secondary benefit of defending all users' freedom is that +improvements made in alternate versions of the program, if they +receive widespread use, become available for other developers to +incorporate. Many developers of free software are heartened and +encouraged by the resulting cooperation. However, in the case of +software used on network servers, this result may fail to come about. +The GNU General Public License permits making a modified version and +letting the public access it on a server without ever releasing its +source code to the public. + + The GNU Affero General Public License is designed specifically to +ensure that, in such cases, the modified source code becomes available +to the community. It requires the operator of a network server to +provide the source code of the modified version running there to the +users of that server. Therefore, public use of a modified version, on +a publicly accessible server, gives the public access to the source +code of the modified version. + + An older license, called the Affero General Public License and +published by Affero, was designed to accomplish similar goals. This is +a different license, not a version of the Affero GPL, but Affero has +released a new version of the Affero GPL which permits relicensing under +this license. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU Affero General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Remote Network Interaction; Use with the GNU General Public License. + + Notwithstanding any other provision of this License, if you modify the +Program, your modified version must prominently offer all users +interacting with it remotely through a computer network (if your version +supports such interaction) an opportunity to receive the Corresponding +Source of your version by providing access to the Corresponding Source +from a network server at no charge, through some standard or customary +means of facilitating copying of software. This Corresponding Source +shall include the Corresponding Source for any work covered by version 3 +of the GNU General Public License that is incorporated pursuant to the +following paragraph. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the work with which it is combined will remain governed by version +3 of the GNU General Public License. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU Affero General Public License from time to time. Such new versions +will be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU Affero General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU Affero General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU Affero General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published + by the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If your software can interact with users remotely through a computer +network, you should also make sure that it provides a way for users to +get its source. For example, if your program is a web application, its +interface could display a "Source" link that leads users to an archive +of the code. There are many ways you could offer source, and different +solutions will be better for different programs; see section 13 for the +specific requirements. + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU AGPL, see +. diff --git a/public/SOURCE.md b/public/SOURCE.md new file mode 100644 index 0000000..9d6ccb1 --- /dev/null +++ b/public/SOURCE.md @@ -0,0 +1,8 @@ +# Corresponding source + +The source code corresponding to add·ideas Toolbox Portal 0.1.0 is available at: + +https://git.add-ideas.de/zemion/toolbox-portal/src/tag/v0.1.0 + +Each bundled application contains its own `SOURCE.md`, license, and third-party +license materials. The application sources are also linked from the portal. diff --git a/public/THIRD_PARTY_NOTICES.md b/public/THIRD_PARTY_NOTICES.md new file mode 100644 index 0000000..97ecb73 --- /dev/null +++ b/public/THIRD_PARTY_NOTICES.md @@ -0,0 +1,11 @@ +# Third-party notices + +The add·ideas Toolbox portal is licensed under `AGPL-3.0-only`. An assembled +toolbox is a collection of independently licensed works, not a relicensing of +every included component under one licence. + +Portal runtime components include React and React DOM (MIT) and +`@add-ideas/toolbox-contract` (Apache-2.0). Their complete installed license and +notice texts are shipped in `THIRD_PARTY_LICENSES.txt`. Each application remains +under its own licence. Application notices are shipped inside its +`apps//LICENSES/` directory. diff --git a/public/favicon.svg b/public/favicon.svg new file mode 100644 index 0000000..bbf3eb1 --- /dev/null +++ b/public/favicon.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/public/toolbox.catalog.json b/public/toolbox.catalog.json new file mode 100644 index 0000000..4267da0 --- /dev/null +++ b/public/toolbox.catalog.json @@ -0,0 +1,21 @@ +{ + "$schema": "https://git.add-ideas.de/zemion/toolbox-sdk/raw/branch/main/schemas/toolbox-catalog.v1.schema.json", + "schemaVersion": 1, + "id": "de.add-ideas.toolbox", + "name": "add·ideas Toolbox", + "home": "./", + "theme": { + "mode": "system", + "brand": "add·ideas" + }, + "apps": [ + { + "manifest": "./apps/pdf/toolbox-app.json", + "enabled": true + }, + { + "manifest": "./apps/xslt/toolbox-app.json", + "enabled": true + } + ] +} diff --git a/release/toolbox-release-lock.schema.json b/release/toolbox-release-lock.schema.json new file mode 100644 index 0000000..fa6ac84 --- /dev/null +++ b/release/toolbox-release-lock.schema.json @@ -0,0 +1,70 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://git.add-ideas.de/zemion/toolbox-portal/raw/branch/main/release/toolbox-release-lock.schema.json", + "title": "add·ideas Toolbox release lock v1", + "description": "Pins the exact portal and checksummed application archives used to assemble one static toolbox release.", + "type": "object", + "required": [ + "schemaVersion", + "releaseVersion", + "portalVersion", + "catalogue", + "apps" + ], + "properties": { + "$schema": { "type": "string", "format": "uri-reference" }, + "schemaVersion": { "const": 1 }, + "releaseVersion": { "$ref": "#/$defs/version" }, + "portalVersion": { "$ref": "#/$defs/version" }, + "catalogue": { + "type": "object", + "required": ["id", "name", "home", "theme"], + "properties": { + "id": { "$ref": "#/$defs/id" }, + "name": { "type": "string", "minLength": 1 }, + "home": { "type": "string", "minLength": 1 }, + "theme": { + "type": "object", + "required": ["mode", "brand"], + "properties": { + "mode": { "enum": ["light", "dark", "system"] }, + "brand": { "type": "string", "minLength": 1 } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + "apps": { + "type": "array", + "minItems": 1, + "items": { + "type": "object", + "required": ["id", "version", "artifact", "sha256", "target"], + "properties": { + "id": { "$ref": "#/$defs/id" }, + "version": { "$ref": "#/$defs/version" }, + "artifact": { + "type": "string", + "minLength": 1, + "description": "A path relative to this lock, a file: URL, or an HTTPS URL. Latest aliases are rejected at runtime." + }, + "sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, + "target": { + "type": "string", + "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$" + } + }, + "additionalProperties": false + } + } + }, + "$defs": { + "id": { "type": "string", "pattern": "^[a-z0-9]+(?:[.-][a-z0-9]+)+$" }, + "version": { + "type": "string", + "pattern": "^\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)?(?:\\+[0-9A-Za-z.-]+)?$" + } + }, + "additionalProperties": false +} diff --git a/release/toolbox.lock.example.json b/release/toolbox.lock.example.json new file mode 100644 index 0000000..a3b4d00 --- /dev/null +++ b/release/toolbox.lock.example.json @@ -0,0 +1,31 @@ +{ + "$schema": "./toolbox-release-lock.schema.json", + "schemaVersion": 1, + "releaseVersion": "0.1.0", + "portalVersion": "0.1.0", + "catalogue": { + "id": "de.add-ideas.toolbox", + "name": "add·ideas Toolbox", + "home": "./", + "theme": { + "mode": "system", + "brand": "add·ideas" + } + }, + "apps": [ + { + "id": "de.add-ideas.pdf-tools", + "version": "0.3.4", + "artifact": "https://git.add-ideas.de/zemion/pdf-tools/releases/download/v0.3.4/pdf-tools-0.3.4.zip", + "sha256": "090492aaee4bd5cde51917ee3d9d0c971f071c27b7dbe4c918876ffd752dd930", + "target": "pdf" + }, + { + "id": "de.add-ideas.xslt-tools", + "version": "0.3.2", + "artifact": "https://git.add-ideas.de/zemion/xslt-tools/releases/download/v0.3.2/xslt-tools-0.3.2.zip", + "sha256": "e1746ac60f7143037ce77d7f04c62f7da39a92d8cef42e7167acb2bc00786de1", + "target": "xslt" + } + ] +} diff --git a/release/toolbox.lock.json b/release/toolbox.lock.json new file mode 100644 index 0000000..a3b4d00 --- /dev/null +++ b/release/toolbox.lock.json @@ -0,0 +1,31 @@ +{ + "$schema": "./toolbox-release-lock.schema.json", + "schemaVersion": 1, + "releaseVersion": "0.1.0", + "portalVersion": "0.1.0", + "catalogue": { + "id": "de.add-ideas.toolbox", + "name": "add·ideas Toolbox", + "home": "./", + "theme": { + "mode": "system", + "brand": "add·ideas" + } + }, + "apps": [ + { + "id": "de.add-ideas.pdf-tools", + "version": "0.3.4", + "artifact": "https://git.add-ideas.de/zemion/pdf-tools/releases/download/v0.3.4/pdf-tools-0.3.4.zip", + "sha256": "090492aaee4bd5cde51917ee3d9d0c971f071c27b7dbe4c918876ffd752dd930", + "target": "pdf" + }, + { + "id": "de.add-ideas.xslt-tools", + "version": "0.3.2", + "artifact": "https://git.add-ideas.de/zemion/xslt-tools/releases/download/v0.3.2/xslt-tools-0.3.2.zip", + "sha256": "e1746ac60f7143037ce77d7f04c62f7da39a92d8cef42e7167acb2bc00786de1", + "target": "xslt" + } + ] +} diff --git a/scripts/archive.mjs b/scripts/archive.mjs new file mode 100644 index 0000000..72ca8a0 --- /dev/null +++ b/scripts/archive.mjs @@ -0,0 +1,77 @@ +import { createReadStream, createWriteStream } from 'node:fs'; +import { mkdir, readdir, stat } from 'node:fs/promises'; +import path from 'node:path'; +import { pipeline } from 'node:stream/promises'; +import archiver from 'archiver'; +import { + canonicalExistingPath, + canonicalPathsOverlap, + canonicalProspectivePath, +} from './path-safety.mjs'; + +const ARCHIVE_DATE = new Date('1980-01-01T00:00:00.000Z'); + +function compareCodePoints(left, right) { + const leftPoints = Array.from(left, (value) => value.codePointAt(0)); + const rightPoints = Array.from(right, (value) => value.codePointAt(0)); + const length = Math.min(leftPoints.length, rightPoints.length); + for (let index = 0; index < length; index += 1) { + if (leftPoints[index] !== rightPoints[index]) + return leftPoints[index] - rightPoints[index]; + } + return leftPoints.length - rightPoints.length; +} + +async function listFiles(root, relative = '') { + const directory = path.join(root, relative); + const entries = await readdir(directory, { withFileTypes: true }); + const files = []; + for (const entry of entries.sort((left, right) => + compareCodePoints(left.name, right.name) + )) { + const child = path.posix.join( + relative.split(path.sep).join('/'), + entry.name + ); + if (entry.isDirectory()) files.push(...(await listFiles(root, child))); + else if (entry.isFile()) files.push(child); + else + throw new Error( + `Archive input contains an unsupported file type: ${child}` + ); + } + return files; +} + +export async function createStaticArchive(inputDirectory, outputFile) { + const source = await canonicalExistingPath( + inputDirectory, + 'Archive input directory' + ); + const output = await canonicalProspectivePath(outputFile); + if (canonicalPathsOverlap(source, output)) + throw new Error('Archive output and input directory must not overlap.'); + const sourceStat = await stat(source); + if (!sourceStat.isDirectory()) + throw new Error(`Archive input is not a directory: ${source}`); + await mkdir(path.dirname(output), { recursive: true }); + + const archive = archiver('zip', { zlib: { level: 9 } }); + const destination = createWriteStream(output, { flags: 'wx' }); + archive.on('warning', (error) => { + if (error.code !== 'ENOENT') destination.destroy(error); + }); + archive.on('error', (error) => destination.destroy(error)); + + const writing = pipeline(archive, destination); + for (const relative of await listFiles(source)) { + archive.append(createReadStream(path.join(source, relative)), { + name: relative, + date: ARCHIVE_DATE, + mode: 0o644, + }); + } + await archive.finalize(); + await writing; + return output; +} diff --git a/scripts/artifact.mjs b/scripts/artifact.mjs new file mode 100644 index 0000000..7de91e4 --- /dev/null +++ b/scripts/artifact.mjs @@ -0,0 +1,145 @@ +import { createHash } from 'node:crypto'; +import { constants, createReadStream, createWriteStream } from 'node:fs'; +import { copyFile, lstat, mkdir } from 'node:fs/promises'; +import path from 'node:path'; +import { Readable, Transform } from 'node:stream'; +import { pipeline } from 'node:stream/promises'; +import { fileURLToPath } from 'node:url'; + +const MAX_DOWNLOAD_SIZE = 1024 * 1024 * 1024; +const MAX_REDIRECTS = 5; + +function usesLatestAlias(value) { + let decoded = value; + try { + decoded = decodeURIComponent(value); + } catch { + // The URL parser below reports malformed encodings where relevant. + } + return /(?:^|[^a-z0-9])latest(?:[^a-z0-9]|$)/i.test(decoded); +} + +function parseArtifactSource(source, lockDirectory) { + if (/^[A-Za-z][A-Za-z0-9+.-]*:/.test(source)) { + const url = new URL(source); + if (url.protocol === 'file:') + return { type: 'local', path: fileURLToPath(url) }; + if (url.protocol === 'https:') { + return { type: 'https', url: validateHttpsArtifactUrl(url) }; + } + throw new Error(`Artifact URL protocol is not allowed: ${url.protocol}`); + } + return { type: 'local', path: path.resolve(lockDirectory, source) }; +} + +function validateHttpsArtifactUrl(value, label = 'Artifact HTTPS URL') { + const url = value instanceof URL ? value : new URL(value); + if (url.protocol !== 'https:') + throw new Error(`${label} must use HTTPS: ${url.href}`); + if (url.username || url.password) + throw new Error(`${label} must not contain credentials.`); + if (usesLatestAlias(url.href)) + throw new Error(`${label} must not use a latest alias.`); + return url; +} + +async function fetchArtifact(url) { + let current = validateHttpsArtifactUrl(url); + + for (let redirects = 0; redirects <= MAX_REDIRECTS; redirects += 1) { + const response = await fetch(current, { + redirect: 'manual', + headers: { Accept: 'application/zip, application/octet-stream' }, + }); + if ([301, 302, 303, 307, 308].includes(response.status)) { + if (redirects === MAX_REDIRECTS) + throw new Error( + `Artifact download exceeded ${MAX_REDIRECTS} redirects.` + ); + const location = response.headers.get('location'); + if (!location) + throw new Error('Artifact redirect did not include a Location header.'); + current = validateHttpsArtifactUrl( + new URL(location, current), + 'Artifact redirect URL' + ); + continue; + } + + if (response.url) { + const finalUrl = validateHttpsArtifactUrl( + new URL(response.url), + 'Artifact final response URL' + ); + if (finalUrl.href !== current.href) { + throw new Error( + `Artifact fetch unexpectedly changed URL from ${current.href} to ${finalUrl.href}.` + ); + } + } + return { response, finalUrl: current }; + } + + throw new Error(`Artifact download exceeded ${MAX_REDIRECTS} redirects.`); +} + +export async function sha256File(file) { + const hash = createHash('sha256'); + for await (const chunk of createReadStream(file)) hash.update(chunk); + return hash.digest('hex'); +} + +export async function acquireArtifact( + source, + expectedSha256, + lockDirectory, + downloadDirectory +) { + const parsed = parseArtifactSource(source, lockDirectory); + await mkdir(downloadDirectory, { recursive: true }); + const file = path.join(downloadDirectory, `${expectedSha256}.zip`); + let downloaded = false; + if (parsed.type === 'local') { + const details = await lstat(parsed.path); + if (!details.isFile() || details.isSymbolicLink()) + throw new Error(`Local artifact is not a regular file: ${parsed.path}`); + // Work from a private snapshot. The checksum below therefore covers the + // exact bytes later inspected and extracted, even if the source is replaced. + await copyFile(parsed.path, file, constants.COPYFILE_EXCL); + } else { + const { response, finalUrl } = await fetchArtifact(parsed.url); + if (!response.ok || !response.body) + throw new Error( + `Artifact download failed with HTTP ${response.status}: ${finalUrl.href}` + ); + const declaredLength = Number(response.headers.get('content-length')); + if (Number.isFinite(declaredLength) && declaredLength > MAX_DOWNLOAD_SIZE) + throw new Error('Artifact download exceeds the size limit.'); + let bytes = 0; + const limiter = new Transform({ + transform(chunk, _encoding, callback) { + bytes += chunk.length; + callback( + bytes > MAX_DOWNLOAD_SIZE + ? new Error('Artifact download exceeds the size limit.') + : null, + chunk + ); + }, + }); + await pipeline( + Readable.fromWeb(response.body), + limiter, + createWriteStream(file, { flags: 'wx', mode: 0o600 }) + ); + downloaded = true; + } + + const actualSha256 = await sha256File(file); + if (actualSha256 !== expectedSha256) { + throw new Error( + `SHA-256 mismatch for ${source}: expected ${expectedSha256}, received ${actualSha256}.` + ); + } + return { file, downloaded, sha256: actualSha256 }; +} diff --git a/scripts/assemble.mjs b/scripts/assemble.mjs new file mode 100644 index 0000000..3416311 --- /dev/null +++ b/scripts/assemble.mjs @@ -0,0 +1,381 @@ +#!/usr/bin/env node +import { constants } from 'node:fs'; +import { + access, + copyFile, + mkdir, + mkdtemp, + readFile, + readdir, + rm, + stat, + writeFile, +} from 'node:fs/promises'; +import path from 'node:path'; +import { fileURLToPath, pathToFileURL } from 'node:url'; +import { parseToolboxApp } from '@add-ideas/toolbox-contract'; +import { acquireArtifact, sha256File } from './artifact.mjs'; +import { createStaticArchive } from './archive.mjs'; +import { + assertSafeRemovalTarget, + canonicalExistingPath, + canonicalPathsOverlap, +} from './path-safety.mjs'; +import { publishStagedTargets } from './publication.mjs'; +import { buildCatalogue, parseReleaseLock } from './release-lock.mjs'; +import { + extractInspectedArchive, + inspectAppArchive, + safeEntryPath, +} from './zip-security.mjs'; + +function exists(file) { + return access(file).then( + () => true, + () => false + ); +} + +async function readJson(file, label) { + try { + return JSON.parse(await readFile(file, 'utf8')); + } catch (error) { + throw new Error(`${label} is not valid JSON: ${file}`, { cause: error }); + } +} + +async function copyDirectoryContents(source, destination) { + for (const entry of await readdir(source, { withFileTypes: true })) { + if (entry.isSymbolicLink()) + throw new Error(`Portal dist contains a symbolic link: ${entry.name}`); + if (!entry.isDirectory() && !entry.isFile()) + throw new Error( + `Portal dist contains an unsupported file: ${entry.name}` + ); + const sourcePath = path.join(source, entry.name); + const destinationPath = path.join(destination, entry.name); + if (entry.isDirectory()) { + await mkdir(destinationPath); + await copyDirectoryContents(sourcePath, destinationPath); + } else { + await copyFile(sourcePath, destinationPath, constants.COPYFILE_EXCL); + } + } +} + +function manifestLocalFile(reference, field, directoryIndex = false) { + if ( + /^[A-Za-z][A-Za-z0-9+.-]*:/.test(reference) || + reference.startsWith('/') || + reference.startsWith('//') || + reference.includes('?') || + reference.includes('#') + ) { + throw new Error( + `${field} must be a relative packaged path without query parameters or fragments.` + ); + } + const normalized = safeEntryPath(reference); + if (normalized.endsWith('/') || normalized === '.') { + if (directoryIndex) return path.posix.join(normalized, 'index.html'); + throw new Error(`${field} must identify a packaged file.`); + } + return normalized; +} + +async function requireManifestFile(root, reference, appId, field, options) { + const relative = manifestLocalFile(reference, field, options?.directoryIndex); + const canonicalRoot = path.resolve(root); + const file = path.resolve(canonicalRoot, ...relative.split('/')); + if (!file.startsWith(`${canonicalRoot}${path.sep}`)) + throw new Error(`${field} escapes its target: ${appId}`); + let details; + try { + details = await stat(file); + } catch (error) { + throw new Error(`${field} is missing for ${appId}: ${reference}`, { + cause: error, + }); + } + if (!details.isFile()) + throw new Error(`${field} is not a file for ${appId}: ${reference}`); +} + +async function smokeCheck(output, lock, manifests) { + const index = path.join(output, 'index.html'); + if (!(await exists(index))) + throw new Error('Portal dist does not contain index.html.'); + const catalogue = await readJson( + path.join(output, 'toolbox.catalog.json'), + 'Generated catalogue' + ); + if (catalogue.apps.length !== lock.apps.length) + throw new Error('Generated catalogue app count does not match the lock.'); + + for (let index = 0; index < lock.apps.length; index += 1) { + const app = lock.apps[index]; + const manifest = manifests[index]; + const root = path.join(output, 'apps', app.target); + await requireManifestFile(root, manifest.entry, app.id, 'manifest.entry', { + directoryIndex: true, + }); + await requireManifestFile(root, manifest.icon, app.id, 'manifest.icon'); + for (const [assetIndex, asset] of (manifest.assets ?? []).entries()) { + await requireManifestFile( + root, + asset, + app.id, + `manifest.assets[${assetIndex}]` + ); + } + const copiedManifest = parseToolboxApp( + await readJson(path.join(root, 'toolbox-app.json'), 'Copied app manifest') + ); + if (copiedManifest.id !== app.id || copiedManifest.version !== app.version) + throw new Error(`Copied manifest identity changed for ${app.id}.`); + } +} + +function provenance(lock) { + return { + schemaVersion: 1, + releaseVersion: lock.releaseVersion, + portalVersion: lock.portalVersion, + apps: lock.apps.map(({ id, version, sha256, target }) => ({ + id, + version, + sha256, + target, + })), + }; +} + +export async function assembleRelease({ + lockFile, + portalDist, + outputDirectory, + archiveFile, + force = false, +}) { + const lockPath = await canonicalExistingPath(lockFile, 'Release lock'); + const portalPath = await canonicalExistingPath(portalDist, 'Portal dist'); + const outputPath = await assertSafeRemovalTarget(outputDirectory); + const archivePath = archiveFile + ? await assertSafeRemovalTarget(archiveFile) + : undefined; + const checksumPath = archivePath + ? await assertSafeRemovalTarget(`${archivePath}.sha256`) + : undefined; + if (archivePath && path.extname(archivePath).toLocaleLowerCase() !== '.zip') + throw new Error('Archive output must use a .zip extension.'); + if (canonicalPathsOverlap(outputPath, portalPath)) + throw new Error('Output and portal dist directories must not overlap.'); + if (canonicalPathsOverlap(outputPath, lockPath)) + throw new Error('Output must not contain or replace the release lock.'); + if (archivePath && canonicalPathsOverlap(archivePath, outputPath)) + throw new Error('Archive must be outside the assembled output directory.'); + if (checksumPath && canonicalPathsOverlap(checksumPath, outputPath)) + throw new Error('Checksum must be outside the assembled output directory.'); + if (archivePath && canonicalPathsOverlap(archivePath, portalPath)) + throw new Error('Archive must be outside the portal dist directory.'); + if (checksumPath && canonicalPathsOverlap(checksumPath, portalPath)) + throw new Error('Checksum must be outside the portal dist directory.'); + if (archivePath && canonicalPathsOverlap(archivePath, lockPath)) + throw new Error('Archive must not replace the release lock.'); + if (checksumPath && canonicalPathsOverlap(checksumPath, lockPath)) + throw new Error('Checksum must not replace the release lock.'); + + const lock = parseReleaseLock(await readJson(lockPath, 'Release lock')); + const generatedCatalogue = buildCatalogue(lock); + const portalPackage = await readJson( + fileURLToPath(new URL('../package.json', import.meta.url)), + 'Portal package' + ); + if (portalPackage.version !== lock.portalVersion) { + throw new Error( + `Portal version mismatch: lock pins ${lock.portalVersion}, package is ${portalPackage.version}.` + ); + } + const portalDetails = await stat(portalPath); + if (!portalDetails.isDirectory()) + throw new Error('Portal dist must be a regular directory.'); + if (!(await exists(path.join(portalPath, 'index.html')))) + throw new Error( + 'Portal dist does not contain index.html; run npm run build first.' + ); + + const outputExists = await exists(outputPath); + const archiveExists = archivePath ? await exists(archivePath) : false; + const checksumExists = checksumPath ? await exists(checksumPath) : false; + if (outputExists && !force) + throw new Error( + `Output already exists (use --force to replace it): ${outputPath}` + ); + if (archivePath && archiveExists && !force) + throw new Error( + `Archive already exists (use --force to replace it): ${archivePath}` + ); + if (checksumPath && checksumExists && !force) + throw new Error( + `Checksum file already exists (use --force to replace it): ${checksumPath}` + ); + + await mkdir(path.dirname(outputPath), { recursive: true }); + const staging = await mkdtemp( + path.join(path.dirname(outputPath), '.toolbox-assemble-') + ); + const downloads = path.join(staging, '.downloads'); + const manifests = []; + let archiveStaging; + try { + await copyDirectoryContents(portalPath, staging); + await mkdir(path.join(staging, 'apps'), { recursive: true }); + + for (const app of lock.apps) { + const artifact = await acquireArtifact( + app.artifact, + app.sha256, + path.dirname(lockPath), + downloads + ); + const inspection = await inspectAppArchive(artifact.file); + const manifest = parseToolboxApp(inspection.manifest); + if (manifest.id !== app.id) + throw new Error( + `Manifest id mismatch for ${app.target}: expected ${app.id}, received ${manifest.id}.` + ); + if (manifest.version !== app.version) + throw new Error( + `Manifest version mismatch for ${app.id}: expected ${app.version}, received ${manifest.version}.` + ); + await extractInspectedArchive( + artifact.file, + path.join(staging, 'apps', app.target), + inspection + ); + manifests.push(manifest); + } + + await rm(downloads, { recursive: true, force: true }); + await writeFile( + path.join(staging, 'toolbox.catalog.json'), + `${JSON.stringify(generatedCatalogue, null, 2)}\n`, + { flag: 'w' } + ); + await writeFile( + path.join(staging, 'toolbox.release.json'), + `${JSON.stringify(provenance(lock), null, 2)}\n`, + { flag: 'wx' } + ); + await smokeCheck(staging, lock, manifests); + + if (archivePath) { + await mkdir(path.dirname(archivePath), { recursive: true }); + archiveStaging = await mkdtemp( + path.join(path.dirname(archivePath), '.toolbox-archive-') + ); + const stagedArchive = path.join( + archiveStaging, + path.basename(archivePath) + ); + const stagedChecksum = `${stagedArchive}.sha256`; + await createStaticArchive(staging, stagedArchive); + const checksum = await sha256File(stagedArchive); + await writeFile( + stagedChecksum, + `${checksum} ${path.basename(archivePath)}\n`, + { flag: 'wx' } + ); + } + + const publicationTargets = [{ staged: staging, target: outputPath }]; + if (archivePath) { + publicationTargets.push( + { + staged: path.join(archiveStaging, path.basename(archivePath)), + target: archivePath, + }, + { + staged: path.join( + archiveStaging, + `${path.basename(archivePath)}.sha256` + ), + target: checksumPath, + } + ); + } + await publishStagedTargets(publicationTargets, { force }); + if (archivePath) { + await rm(archiveStaging, { recursive: true, force: true }); + archiveStaging = undefined; + } + } catch (error) { + await rm(staging, { recursive: true, force: true }); + if (archiveStaging) + await rm(archiveStaging, { recursive: true, force: true }); + throw error; + } + + return { + outputDirectory: outputPath, + archiveFile: archivePath, + checksumFile: checksumPath, + releaseVersion: lock.releaseVersion, + }; +} + +function usage() { + return `Usage: node scripts/assemble.mjs --lock FILE [options]\n\nOptions:\n --portal-dist DIR Built portal directory (default: dist)\n --output DIR Assembled static directory (default: build/toolbox)\n --archive FILE Static ZIP (default: build/add-ideas-toolbox-VERSION.zip)\n --force Replace the exact output paths if they exist\n --help Show this message\n`; +} + +function parseArguments(argv) { + const values = {}; + for (let index = 0; index < argv.length; index += 1) { + const argument = argv[index]; + if (argument === '--force' || argument === '--help') + values[argument.slice(2)] = true; + else if ( + ['--lock', '--portal-dist', '--output', '--archive'].includes(argument) + ) { + const value = argv[index + 1]; + if (!value || value.startsWith('--')) + throw new Error(`${argument} requires a value.`); + values[argument.slice(2)] = value; + index += 1; + } else throw new Error(`Unknown argument: ${argument}`); + } + return values; +} + +async function main() { + const arguments_ = parseArguments(process.argv.slice(2)); + if (arguments_.help) { + process.stdout.write(usage()); + return; + } + if (!arguments_.lock) throw new Error(`--lock is required.\n\n${usage()}`); + const rawLock = parseReleaseLock( + await readJson(path.resolve(arguments_.lock), 'Release lock') + ); + const result = await assembleRelease({ + lockFile: arguments_.lock, + portalDist: arguments_['portal-dist'] ?? 'dist', + outputDirectory: arguments_.output ?? 'build/toolbox', + archiveFile: + arguments_.archive ?? + `build/add-ideas-toolbox-${rawLock.releaseVersion}.zip`, + force: Boolean(arguments_.force), + }); + process.stdout.write( + `Assembled toolbox ${result.releaseVersion} at ${result.outputDirectory}\nArchive: ${result.archiveFile}\nChecksum: ${result.checksumFile}\n` + ); +} + +if (import.meta.url === pathToFileURL(process.argv[1] ?? '').href) { + main().catch((error) => { + process.stderr.write( + `Assembly failed: ${error instanceof Error ? error.message : String(error)}\n` + ); + process.exitCode = 1; + }); +} diff --git a/scripts/assembler.test.ts b/scripts/assembler.test.ts new file mode 100644 index 0000000..3a5a91f --- /dev/null +++ b/scripts/assembler.test.ts @@ -0,0 +1,487 @@ +// @vitest-environment node +import { execFileSync } from 'node:child_process'; +import { createWriteStream } from 'node:fs'; +import { + mkdtemp, + mkdir, + readFile, + rename, + rm, + symlink, + writeFile, +} from 'node:fs/promises'; +import os from 'node:os'; +import path from 'node:path'; +import { pipeline } from 'node:stream/promises'; +import { pathToFileURL } from 'node:url'; +import archiver from 'archiver'; +import { afterEach, describe, expect, it, vi } from 'vitest'; +import { assembleRelease } from './assemble.mjs'; +import { createStaticArchive } from './archive.mjs'; +import { acquireArtifact, sha256File } from './artifact.mjs'; +import { publishStagedTargets } from './publication.mjs'; +import { parseReleaseLock } from './release-lock.mjs'; +import { inspectAppArchive } from './zip-security.mjs'; + +const temporaryDirectories: string[] = []; + +afterEach(async () => { + vi.unstubAllGlobals(); + await Promise.all( + temporaryDirectories + .splice(0) + .map((directory) => rm(directory, { recursive: true, force: true })) + ); +}); + +async function temporaryDirectory() { + const directory = await mkdtemp( + path.join(os.tmpdir(), 'toolbox-portal-test-') + ); + temporaryDirectories.push(directory); + return directory; +} + +async function zipEntries( + output: string, + entries: Array<{ name: string; content: string }> +) { + const archive = archiver('zip', { zlib: { level: 9 } }); + const writing = pipeline(archive, createWriteStream(output, { flags: 'wx' })); + for (const entry of entries) + archive.append(entry.content, { name: entry.name }); + await archive.finalize(); + await writing; +} + +const manifest = { + schemaVersion: 1, + id: 'de.add-ideas.test-tool', + name: 'Test tool', + version: '1.2.3', + description: 'Test fixture', + entry: './', + icon: './favicon.svg', + categories: ['test'], + tags: [], + integration: { + contextVersion: 1, + launchModes: ['navigate'], + embedding: 'unsupported', + }, + requirements: { + secureContext: false, + workers: false, + indexedDb: false, + crossOriginIsolated: false, + }, + privacy: { processing: 'local', fileUploads: false, telemetry: false }, + source: { repository: 'https://example.com/test-tool', license: 'MIT' }, +}; + +function makeLock(artifact: string, sha256: string) { + return { + schemaVersion: 1, + releaseVersion: '0.1.0', + portalVersion: '0.1.0', + catalogue: { + id: 'de.add-ideas.toolbox', + name: 'Test Toolbox', + home: './', + theme: { mode: 'system', brand: 'add·ideas' }, + }, + apps: [ + { + id: manifest.id, + version: manifest.version, + artifact, + sha256, + target: 'test', + }, + ], + }; +} + +describe('release assembly integrity', () => { + it('rejects latest aliases and malformed checksums in release locks', () => { + expect(() => + parseReleaseLock( + makeLock('https://example.com/latest/tool.zip', '0'.repeat(64)) + ) + ).toThrow(/latest alias/i); + expect(() => parseReleaseLock(makeLock('./tool.zip', 'ABC'))).toThrow( + /sha256/i + ); + }); + + it('refuses an artifact whose SHA-256 does not match', async () => { + const directory = await temporaryDirectory(); + const artifact = path.join(directory, 'app.zip'); + await writeFile(artifact, 'not the expected artifact'); + await expect( + acquireArtifact( + artifact, + '0'.repeat(64), + directory, + path.join(directory, 'downloads') + ) + ).rejects.toThrow(/SHA-256 mismatch/); + }); + + it('rejects credential-bearing HTTPS sources and self-containing archives', async () => { + const directory = await temporaryDirectory(); + await expect( + acquireArtifact( + 'https://user:secret@example.com/tool.zip', + '0'.repeat(64), + directory, + path.join(directory, 'downloads') + ) + ).rejects.toThrow(/credentials/i); + await expect( + createStaticArchive(directory, path.join(directory, 'self.zip')) + ).rejects.toThrow(/overlap/i); + }); + + it('canonicalizes symlink aliases before archive overlap checks', async () => { + const directory = await temporaryDirectory(); + const input = path.join(directory, 'input'); + const alias = path.join(directory, 'input-alias'); + await mkdir(input); + await writeFile(path.join(input, 'index.html'), 'release input'); + await symlink(input, alias, 'dir'); + + await expect( + createStaticArchive(alias, path.join(input, 'self.zip')) + ).rejects.toThrow(/overlap/i); + }); + + it('rejects a dangling symlink in an archive output parent', async () => { + const directory = await temporaryDirectory(); + const input = path.join(directory, 'input'); + const dangling = path.join(directory, 'dangling'); + await mkdir(input); + await writeFile(path.join(input, 'index.html'), 'release input'); + await symlink(path.join(directory, 'missing'), dangling, 'dir'); + + await expect( + createStaticArchive(input, path.join(dangling, 'release.zip')) + ).rejects.toThrow(/dangling symbolic link/i); + }); + + it('rejects insecure or credential-bearing redirect targets', async () => { + const directory = await temporaryDirectory(); + vi.stubGlobal( + 'fetch', + vi.fn().mockResolvedValue( + new Response(null, { + status: 302, + headers: { location: 'http://example.com/tool.zip' }, + }) + ) + ); + await expect( + acquireArtifact( + 'https://example.com/tool.zip', + '0'.repeat(64), + directory, + path.join(directory, 'downloads') + ) + ).rejects.toThrow(/redirect URL must use HTTPS/i); + + vi.stubGlobal( + 'fetch', + vi.fn().mockResolvedValue( + new Response(null, { + status: 302, + headers: { location: 'https://user:secret@example.com/tool.zip' }, + }) + ) + ); + await expect( + acquireArtifact( + 'https://example.com/tool.zip', + '0'.repeat(64), + directory, + path.join(directory, 'other-downloads') + ) + ).rejects.toThrow(/redirect URL must not contain credentials/i); + }); + + it('blocks ZIP path traversal before extraction', async () => { + const directory = await temporaryDirectory(); + const safeZip = path.join(directory, 'safe.zip'); + const hostileZip = path.join(directory, 'hostile.zip'); + await zipEntries(safeZip, [ + { name: 'toolbox-app.json', content: JSON.stringify(manifest) }, + { name: 'xx/evil.txt', content: 'escape attempt' }, + ]); + const buffer = await readFile(safeZip); + const before = Buffer.from('xx/evil.txt'); + const after = Buffer.from('../evil.txt'); + let replacements = 0; + for ( + let offset = buffer.indexOf(before); + offset >= 0; + offset = buffer.indexOf(before, offset + after.length) + ) { + after.copy(buffer, offset); + replacements += 1; + } + expect(replacements).toBeGreaterThanOrEqual(2); + await writeFile(hostileZip, buffer); + await expect(inspectAppArchive(hostileZip)).rejects.toThrow( + /relative path|traversal/i + ); + }); + + it('blocks symbolic links before extraction', async () => { + const directory = await temporaryDirectory(); + const artifact = path.join(directory, 'symlink.zip'); + const archive = archiver('zip', { zlib: { level: 9 } }); + const writing = pipeline( + archive, + createWriteStream(artifact, { flags: 'wx' }) + ); + archive.append(JSON.stringify(manifest), { name: 'toolbox-app.json' }); + archive.symlink('link', '../outside'); + await archive.finalize(); + await writing; + await expect(inspectAppArchive(artifact)).rejects.toThrow(/symbolic link/i); + }); + + it('packages the same files into byte-identical static archives', async () => { + const directory = await temporaryDirectory(); + const input = path.join(directory, 'input'); + const first = path.join(directory, 'first.zip'); + const second = path.join(directory, 'second.zip'); + await mkdir(input); + await writeFile(path.join(input, 'z.txt'), 'last'); + await writeFile(path.join(input, 'ä.txt'), 'middle'); + await writeFile(path.join(input, '😀.txt'), 'astral'); + await createStaticArchive(input, first); + await createStaticArchive(input, second); + expect(await sha256File(first)).toBe(await sha256File(second)); + }); + + it('packages byte-identical static archives in different host time zones', async () => { + const directory = await temporaryDirectory(); + const input = path.join(directory, 'input'); + const utcArchive = path.join(directory, 'utc.zip'); + const honoluluArchive = path.join(directory, 'honolulu.zip'); + await mkdir(input); + await writeFile(path.join(input, 'index.html'), 'timezone invariant'); + const moduleUrl = pathToFileURL( + path.join(process.cwd(), 'scripts/archive.mjs') + ).href; + const run = (timezone: string, output: string) => { + const program = ` + import { createStaticArchive } from ${JSON.stringify(moduleUrl)}; + await createStaticArchive(${JSON.stringify(input)}, ${JSON.stringify(output)}); + `; + execFileSync( + process.execPath, + ['--input-type=module', '--eval', program], + { env: { ...process.env, TZ: timezone } } + ); + }; + run('UTC', utcArchive); + run('Pacific/Honolulu', honoluluArchive); + expect(await sha256File(utcArchive)).toBe( + await sha256File(honoluluArchive) + ); + }); + + it('rejects a valid archive whose manifest identity is not the lock identity', async () => { + const directory = await temporaryDirectory(); + const portalDist = path.join(directory, 'portal-dist'); + const artifact = path.join(directory, 'wrong-tool.zip'); + await mkdir(portalDist); + await writeFile( + path.join(portalDist, 'index.html'), + 'Toolbox' + ); + await zipEntries(artifact, [ + { + name: 'toolbox-app.json', + content: JSON.stringify({ ...manifest, id: 'de.add-ideas.other-tool' }), + }, + ]); + const lockFile = path.join(directory, 'toolbox.lock.json'); + await writeFile( + lockFile, + JSON.stringify(makeLock(artifact, await sha256File(artifact))) + ); + await expect( + assembleRelease({ + lockFile, + portalDist, + outputDirectory: path.join(directory, 'assembled'), + }) + ).rejects.toThrow(/manifest id mismatch/i); + }); + + it('refuses a force output symlink that aliases the portal input', async () => { + const directory = await temporaryDirectory(); + const portalDist = path.join(directory, 'portal-dist'); + const outputAlias = path.join(directory, 'output-alias'); + const lockFile = path.join(directory, 'toolbox.lock.json'); + await mkdir(portalDist); + await writeFile(path.join(portalDist, 'index.html'), 'portal remains'); + await symlink(portalDist, outputAlias, 'dir'); + await writeFile(lockFile, '{}'); + + await expect( + assembleRelease({ + lockFile, + portalDist, + outputDirectory: outputAlias, + force: true, + }) + ).rejects.toThrow(/must not overlap/i); + expect(await readFile(path.join(portalDist, 'index.html'), 'utf8')).toBe( + 'portal remains' + ); + }); + + it('rolls all targets back if transactional publication fails', async () => { + const directory = await temporaryDirectory(); + const stagedFirst = path.join(directory, 'staged-first'); + const stagedSecond = path.join(directory, 'staged-second'); + const targetFirst = path.join(directory, 'target-first'); + const targetSecond = path.join(directory, 'target-second'); + await writeFile(stagedFirst, 'new first'); + await writeFile(stagedSecond, 'new second'); + await writeFile(targetFirst, 'old first'); + await writeFile(targetSecond, 'old second'); + + const renameWithFailure = async (source: string, target: string) => { + if (source === stagedSecond) throw new Error('injected rename failure'); + await rename(source, target); + }; + await expect( + publishStagedTargets( + [ + { staged: stagedFirst, target: targetFirst }, + { staged: stagedSecond, target: targetSecond }, + ], + { force: true, renamePath: renameWithFailure } + ) + ).rejects.toThrow(/injected rename failure/i); + expect(await readFile(targetFirst, 'utf8')).toBe('old first'); + expect(await readFile(targetSecond, 'utf8')).toBe('old second'); + }); + + it('requires every manifest icon and declared asset in the app archive', async () => { + const directory = await temporaryDirectory(); + const portalDist = path.join(directory, 'portal-dist'); + const artifact = path.join(directory, 'missing-assets.zip'); + await mkdir(portalDist); + await writeFile( + path.join(portalDist, 'index.html'), + 'Portal' + ); + await zipEntries(artifact, [ + { name: 'index.html', content: 'App' }, + { + name: 'toolbox-app.json', + content: JSON.stringify({ + ...manifest, + assets: ['./runtime.js'], + }), + }, + ]); + const lockFile = path.join(directory, 'toolbox.lock.json'); + await writeFile( + lockFile, + JSON.stringify(makeLock(artifact, await sha256File(artifact))) + ); + + await expect( + assembleRelease({ + lockFile, + portalDist, + outputDirectory: path.join(directory, 'assembled'), + }) + ).rejects.toThrow(/manifest\.icon is missing/i); + + const artifactWithIcon = path.join(directory, 'missing-runtime.zip'); + await zipEntries(artifactWithIcon, [ + { name: 'index.html', content: 'App' }, + { name: 'favicon.svg', content: '' }, + { + name: 'toolbox-app.json', + content: JSON.stringify({ + ...manifest, + assets: ['./runtime.js'], + }), + }, + ]); + await writeFile( + lockFile, + JSON.stringify( + makeLock(artifactWithIcon, await sha256File(artifactWithIcon)) + ) + ); + await expect( + assembleRelease({ + lockFile, + portalDist, + outputDirectory: path.join(directory, 'assembled-again'), + }) + ).rejects.toThrow(/manifest\.assets\[0\] is missing/i); + }); + + it('assembles only the pinned artifact, validates its manifest, and emits provenance', async () => { + const directory = await temporaryDirectory(); + const portalDist = path.join(directory, 'portal-dist'); + const artifact = path.join(directory, 'test-tool-1.2.3.zip'); + const output = path.join(directory, 'assembled'); + const archive = path.join(directory, 'toolbox-0.1.0.zip'); + await mkdir(portalDist); + await writeFile( + path.join(portalDist, 'index.html'), + 'Toolbox' + ); + await zipEntries(artifact, [ + { name: 'index.html', content: 'Test app' }, + { + name: 'favicon.svg', + content: '', + }, + { name: 'toolbox-app.json', content: JSON.stringify(manifest) }, + ]); + const checksum = await sha256File(artifact); + const lockFile = path.join(directory, 'toolbox.lock.json'); + await writeFile(lockFile, JSON.stringify(makeLock(artifact, checksum))); + + await assembleRelease({ + lockFile, + portalDist, + outputDirectory: output, + archiveFile: archive, + }); + const catalogue = JSON.parse( + await readFile(path.join(output, 'toolbox.catalog.json'), 'utf8') + ); + const release = JSON.parse( + await readFile(path.join(output, 'toolbox.release.json'), 'utf8') + ); + expect(catalogue.apps).toEqual([ + { manifest: './apps/test/toolbox-app.json', enabled: true }, + ]); + expect(release.apps[0]).toEqual({ + id: manifest.id, + version: manifest.version, + sha256: checksum, + target: 'test', + }); + expect( + await readFile(path.join(output, 'apps/test/index.html'), 'utf8') + ).toContain('Test app'); + expect((await readFile(archive)).length).toBeGreaterThan(0); + expect(await readFile(`${archive}.sha256`, 'utf8')).toBe( + `${await sha256File(archive)} ${path.basename(archive)}\n` + ); + }); +}); diff --git a/scripts/licenses.d.ts b/scripts/licenses.d.ts new file mode 100644 index 0000000..213fd4b --- /dev/null +++ b/scripts/licenses.d.ts @@ -0,0 +1,4 @@ +export function createRuntimeLicenseBundle( + projectRoot: string, + packageNames?: string[] +): Promise; diff --git a/scripts/licenses.mjs b/scripts/licenses.mjs new file mode 100644 index 0000000..c533612 --- /dev/null +++ b/scripts/licenses.mjs @@ -0,0 +1,100 @@ +import { readFile, readdir, writeFile } from 'node:fs/promises'; +import path from 'node:path'; +import { fileURLToPath } from 'node:url'; + +const LICENSE_FILE = /^(?:licen[cs]e|copying|notice)(?:[._-].*)?$/iu; +const RUNTIME_PACKAGES = [ + '@add-ideas/toolbox-contract', + 'react', + 'react-dom', + 'scheduler', +]; + +function compareCodePoints(left, right) { + return left < right ? -1 : left > right ? 1 : 0; +} + +export async function createRuntimeLicenseBundle( + projectRoot, + packageNames = RUNTIME_PACKAGES +) { + const sections = []; + for (const packageName of [...new Set(packageNames)].sort( + compareCodePoints + )) { + const packageDirectory = path.join( + projectRoot, + 'node_modules', + ...packageName.split('/') + ); + const packageJson = JSON.parse( + await readFile(path.join(packageDirectory, 'package.json'), 'utf8') + ); + const licenseFiles = await collectLicenseFiles(packageDirectory); + if (licenseFiles.length === 0) + throw new Error(`No license text found for ${packageName}.`); + + const contents = []; + for (const licenseFile of licenseFiles) { + const text = await readFile( + path.join(packageDirectory, ...licenseFile.split('/')), + 'utf8' + ); + contents.push( + `--- ${licenseFile} ---\n${text.replaceAll('\r\n', '\n').trim()}\n` + ); + } + sections.push( + [ + '================================================================================', + `${packageJson.name ?? packageName}@${packageJson.version ?? 'unknown'}`, + `Declared license: ${String(packageJson.license ?? 'unspecified')}`, + '================================================================================', + ...contents, + ].join('\n') + ); + } + return [ + 'Third-party software license texts bundled with add·ideas Toolbox', + 'Generated deterministically from the installed runtime packages.', + '', + ...sections, + '', + ].join('\n'); +} + +async function collectLicenseFiles(directory, prefix = '') { + const matches = []; + const entries = await readdir(directory, { withFileTypes: true }); + entries.sort((left, right) => compareCodePoints(left.name, right.name)); + for (const entry of entries) { + if (entry.name === 'node_modules') continue; + const relativePath = path.posix.join(prefix, entry.name); + const absolutePath = path.join(directory, entry.name); + if (entry.isDirectory()) + matches.push(...(await collectLicenseFiles(absolutePath, relativePath))); + else if (entry.isFile() && LICENSE_FILE.test(entry.name)) + matches.push(relativePath); + } + return matches; +} + +async function main() { + const projectRoot = path.resolve( + path.dirname(fileURLToPath(import.meta.url)), + '..' + ); + const output = path.join(projectRoot, 'public', 'THIRD_PARTY_LICENSES.txt'); + await writeFile( + output, + await createRuntimeLicenseBundle(projectRoot), + 'utf8' + ); + process.stdout.write('Generated public/THIRD_PARTY_LICENSES.txt\n'); +} + +if ( + process.argv[1] && + path.resolve(process.argv[1]) === fileURLToPath(import.meta.url) +) + await main(); diff --git a/scripts/licenses.test.ts b/scripts/licenses.test.ts new file mode 100644 index 0000000..31eff70 --- /dev/null +++ b/scripts/licenses.test.ts @@ -0,0 +1,14 @@ +import { describe, expect, it } from 'vitest'; +import { createRuntimeLicenseBundle } from './licenses.mjs'; + +describe('runtime license bundle', () => { + it('contains the complete installed runtime package notices', async () => { + const bundle = await createRuntimeLicenseBundle(process.cwd()); + expect(bundle).toContain('@add-ideas/toolbox-contract@'); + expect(bundle).toContain('react@'); + expect(bundle).toContain('react-dom@'); + expect(bundle).toContain('scheduler@'); + expect(bundle).toContain('Apache License'); + expect(bundle).toContain('MIT License'); + }); +}); diff --git a/scripts/package-static.mjs b/scripts/package-static.mjs new file mode 100644 index 0000000..b3233c8 --- /dev/null +++ b/scripts/package-static.mjs @@ -0,0 +1,71 @@ +#!/usr/bin/env node +import { access, mkdir, mkdtemp, rm, writeFile } from 'node:fs/promises'; +import path from 'node:path'; +import { createStaticArchive } from './archive.mjs'; +import { sha256File } from './artifact.mjs'; +import { + assertSafeRemovalTarget, + canonicalExistingPath, + canonicalPathsOverlap, +} from './path-safety.mjs'; +import { publishStagedTargets } from './publication.mjs'; + +function argument(name, fallback) { + const index = process.argv.indexOf(name); + return index >= 0 ? process.argv[index + 1] : fallback; +} + +const input = await canonicalExistingPath( + argument('--input', 'build/toolbox'), + 'Static archive input' +); +const output = await assertSafeRemovalTarget( + argument('--output', 'artifacts/add-ideas-toolbox-static.zip') +); +const checksumOutput = await assertSafeRemovalTarget(`${output}.sha256`); +const force = process.argv.includes('--force'); + +if (path.extname(output).toLocaleLowerCase() !== '.zip') + throw new Error('Archive output must use a .zip extension.'); +if (canonicalPathsOverlap(output, input)) + throw new Error('Archive output and input directory must not overlap.'); + +const outputExists = await access(output).then( + () => true, + () => false +); +const checksumExists = await access(checksumOutput).then( + () => true, + () => false +); +if (outputExists && !force) + throw new Error( + `Archive already exists (use --force to replace it): ${output}` + ); +if (checksumExists && !force) + throw new Error( + `Checksum already exists (use --force to replace it): ${checksumOutput}` + ); +await mkdir(path.dirname(output), { recursive: true }); +const staging = await mkdtemp( + path.join(path.dirname(output), '.toolbox-package-') +); +const stagedArchive = path.join(staging, path.basename(output)); +const stagedChecksum = `${stagedArchive}.sha256`; +try { + await createStaticArchive(input, stagedArchive); + const checksum = await sha256File(stagedArchive); + await writeFile(stagedChecksum, `${checksum} ${path.basename(output)}\n`, { + flag: 'wx', + }); + await publishStagedTargets( + [ + { staged: stagedArchive, target: output }, + { staged: stagedChecksum, target: checksumOutput }, + ], + { force } + ); +} finally { + await rm(staging, { recursive: true, force: true }); +} +process.stdout.write(`Created ${output}\nChecksum: ${checksumOutput}\n`); diff --git a/scripts/path-safety.mjs b/scripts/path-safety.mjs new file mode 100644 index 0000000..f6e5f5f --- /dev/null +++ b/scripts/path-safety.mjs @@ -0,0 +1,93 @@ +import { lstat, realpath, stat } from 'node:fs/promises'; +import os from 'node:os'; +import path from 'node:path'; + +function isMissing(error) { + return error && typeof error === 'object' && error.code === 'ENOENT'; +} + +export async function canonicalExistingPath(candidate, label = 'Path') { + const absolute = path.resolve(candidate); + try { + return await realpath(absolute); + } catch (error) { + throw new Error( + `${label} does not resolve to an existing path: ${absolute}`, + { + cause: error, + } + ); + } +} + +export async function canonicalProspectivePath(candidate) { + const absolute = path.resolve(candidate); + const suffix = []; + let current = absolute; + + while (true) { + let details; + try { + details = await lstat(current); + } catch (error) { + if (!isMissing(error)) throw error; + const parent = path.dirname(current); + if (parent === current) throw error; + suffix.unshift(path.basename(current)); + current = parent; + continue; + } + + let canonical; + try { + canonical = await realpath(current); + } catch (error) { + if (details.isSymbolicLink() && isMissing(error)) { + throw new Error(`Path contains a dangling symbolic link: ${current}`, { + cause: error, + }); + } + throw error; + } + + if (suffix.length > 0) { + const canonicalDetails = await stat(canonical); + if (!canonicalDetails.isDirectory()) { + throw new Error( + `Path has a non-directory existing ancestor: ${current}` + ); + } + } + return path.join(canonical, ...suffix); + } +} + +export function canonicalPathsOverlap(left, right) { + const resolvedLeft = path.resolve(left); + const resolvedRight = path.resolve(right); + return ( + resolvedLeft === resolvedRight || + resolvedLeft.startsWith(`${resolvedRight}${path.sep}`) || + resolvedRight.startsWith(`${resolvedLeft}${path.sep}`) + ); +} + +export async function assertSafeRemovalTarget(target) { + const canonical = await canonicalProspectivePath(target); + const root = path.parse(canonical).root; + const protectedPaths = await Promise.all([ + canonicalProspectivePath(process.cwd()), + canonicalProspectivePath(os.homedir()), + ]); + if ( + canonical === root || + protectedPaths.some( + (protectedPath) => + protectedPath === canonical || + protectedPath.startsWith(`${canonical}${path.sep}`) + ) + ) { + throw new Error(`Refusing unsafe output target: ${canonical}`); + } + return canonical; +} diff --git a/scripts/publication.mjs b/scripts/publication.mjs new file mode 100644 index 0000000..5b2bece --- /dev/null +++ b/scripts/publication.mjs @@ -0,0 +1,84 @@ +import { randomUUID } from 'node:crypto'; +import { access, rename, rm } from 'node:fs/promises'; +import path from 'node:path'; + +async function exists(candidate) { + return access(candidate).then( + () => true, + () => false + ); +} + +function backupPath(target) { + return path.join( + path.dirname(target), + `.${path.basename(target)}.toolbox-backup-${randomUUID()}` + ); +} + +export async function publishStagedTargets( + targets, + { force = false, renamePath = rename, removePath = rm } = {} +) { + if (!Array.isArray(targets) || targets.length === 0) + throw new Error('At least one staged publication target is required.'); + + const normalized = targets.map(({ staged, target }) => ({ + staged: path.resolve(staged), + target: path.resolve(target), + })); + if ( + new Set(normalized.map(({ target }) => target)).size !== normalized.length + ) + throw new Error('Publication targets must be unique.'); + + for (const item of normalized) { + if (!(await exists(item.staged))) + throw new Error(`Staged publication input is missing: ${item.staged}`); + if (!force && (await exists(item.target))) + throw new Error(`Publication target already exists: ${item.target}`); + } + + const backups = []; + const published = []; + try { + for (const item of normalized) { + if (!(await exists(item.target))) continue; + const backup = backupPath(item.target); + await renamePath(item.target, backup); + backups.push({ target: item.target, backup }); + } + + for (const item of normalized) { + await renamePath(item.staged, item.target); + published.push(item.target); + } + } catch (publicationError) { + const rollbackErrors = []; + for (const target of [...published].reverse()) { + try { + await removePath(target, { recursive: true, force: true }); + } catch (error) { + rollbackErrors.push(error); + } + } + for (const item of [...backups].reverse()) { + try { + await renamePath(item.backup, item.target); + } catch (error) { + rollbackErrors.push(error); + } + } + if (rollbackErrors.length > 0) { + throw new AggregateError( + [publicationError, ...rollbackErrors], + 'Release publication failed and rollback was incomplete.' + ); + } + throw publicationError; + } + + for (const { backup } of backups) { + await removePath(backup, { recursive: true, force: true }); + } +} diff --git a/scripts/release-lock.mjs b/scripts/release-lock.mjs new file mode 100644 index 0000000..9d57d91 --- /dev/null +++ b/scripts/release-lock.mjs @@ -0,0 +1,137 @@ +import { parseToolboxCatalog } from '@add-ideas/toolbox-contract'; + +const SHA256 = /^[a-f0-9]{64}$/; +const SEMVER = /^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?$/; +const REVERSE_DNS_ID = /^[a-z0-9]+(?:[.-][a-z0-9]+)+$/; +const TARGET_SLUG = /^[a-z0-9]+(?:-[a-z0-9]+)*$/; + +function record(value, field) { + if (typeof value !== 'object' || value === null || Array.isArray(value)) + throw new Error(`${field} must be an object.`); + return value; +} + +function string(value, field) { + if (typeof value !== 'string' || value.trim() === '') + throw new Error(`${field} must be a non-empty string.`); + return value; +} + +function onlyKeys(value, allowed, field) { + const unexpected = Object.keys(value).filter((key) => !allowed.has(key)); + if (unexpected.length > 0) + throw new Error(`${field} contains unsupported field: ${unexpected[0]}.`); +} + +function usesLatestAlias(value) { + let decoded = value; + try { + decoded = decodeURIComponent(value); + } catch { + // An invalid encoded URL will be rejected when the artifact is acquired. + } + return /(?:^|[^a-z0-9])latest(?:[^a-z0-9]|$)/i.test(decoded); +} + +export function parseReleaseLock(value) { + const lock = record(value, 'lock'); + onlyKeys( + lock, + new Set([ + '$schema', + 'schemaVersion', + 'releaseVersion', + 'portalVersion', + 'catalogue', + 'apps', + ]), + 'lock' + ); + if (lock.schemaVersion !== 1) + throw new Error('lock.schemaVersion must be 1.'); + string(lock.releaseVersion, 'lock.releaseVersion'); + if (!SEMVER.test(lock.releaseVersion)) + throw new Error('lock.releaseVersion must use semantic versioning.'); + string(lock.portalVersion, 'lock.portalVersion'); + if (!SEMVER.test(lock.portalVersion)) + throw new Error('lock.portalVersion must use semantic versioning.'); + + const catalogue = record(lock.catalogue, 'lock.catalogue'); + onlyKeys( + catalogue, + new Set(['id', 'name', 'home', 'theme']), + 'lock.catalogue' + ); + string(catalogue.id, 'lock.catalogue.id'); + if (!REVERSE_DNS_ID.test(catalogue.id)) + throw new Error('lock.catalogue.id must be a reverse-DNS identifier.'); + string(catalogue.name, 'lock.catalogue.name'); + string(catalogue.home, 'lock.catalogue.home'); + const theme = record(catalogue.theme, 'lock.catalogue.theme'); + onlyKeys(theme, new Set(['mode', 'brand']), 'lock.catalogue.theme'); + if (!['light', 'dark', 'system'].includes(theme.mode)) + throw new Error('lock.catalogue.theme.mode is invalid.'); + string(theme.brand, 'lock.catalogue.theme.brand'); + + if (!Array.isArray(lock.apps) || lock.apps.length === 0) + throw new Error('lock.apps must contain at least one pinned app.'); + const ids = new Set(); + const targets = new Set(); + lock.apps.forEach((rawApp, index) => { + const app = record(rawApp, `lock.apps[${index}]`); + onlyKeys( + app, + new Set(['id', 'version', 'artifact', 'sha256', 'target']), + `lock.apps[${index}]` + ); + string(app.id, `lock.apps[${index}].id`); + if (!REVERSE_DNS_ID.test(app.id)) + throw new Error( + `lock.apps[${index}].id must be a reverse-DNS identifier.` + ); + string(app.version, `lock.apps[${index}].version`); + if (!SEMVER.test(app.version)) + throw new Error( + `lock.apps[${index}].version must use semantic versioning.` + ); + string(app.artifact, `lock.apps[${index}].artifact`); + if (usesLatestAlias(app.artifact)) + throw new Error( + `lock.apps[${index}].artifact must not use a latest alias.` + ); + string(app.sha256, `lock.apps[${index}].sha256`); + if (!SHA256.test(app.sha256)) + throw new Error( + `lock.apps[${index}].sha256 must be 64 lowercase hexadecimal characters.` + ); + string(app.target, `lock.apps[${index}].target`); + if (!TARGET_SLUG.test(app.target)) + throw new Error(`lock.apps[${index}].target must be a safe URL slug.`); + if (ids.has(app.id)) + throw new Error(`Duplicate app id in lock: ${app.id}.`); + if (targets.has(app.target)) + throw new Error(`Duplicate app target in lock: ${app.target}.`); + ids.add(app.id); + targets.add(app.target); + }); + return lock; +} + +export function buildCatalogue(lock) { + const catalogue = { + schemaVersion: 1, + id: lock.catalogue.id, + name: lock.catalogue.name, + home: lock.catalogue.home, + theme: lock.catalogue.theme, + apps: lock.apps.map((app) => ({ + manifest: `./apps/${app.target}/toolbox-app.json`, + enabled: true, + })), + }; + return { + $schema: + 'https://git.add-ideas.de/zemion/toolbox-sdk/raw/branch/main/schemas/toolbox-catalog.v1.schema.json', + ...parseToolboxCatalog(catalogue), + }; +} diff --git a/scripts/zip-security.mjs b/scripts/zip-security.mjs new file mode 100644 index 0000000..e7ca73d --- /dev/null +++ b/scripts/zip-security.mjs @@ -0,0 +1,206 @@ +import { createWriteStream } from 'node:fs'; +import { mkdir } from 'node:fs/promises'; +import path from 'node:path'; +import { pipeline } from 'node:stream/promises'; +import yauzl from 'yauzl'; + +const MAX_ENTRIES = 50_000; +const MAX_FILE_SIZE = 256 * 1024 * 1024; +const MAX_TOTAL_SIZE = 2 * 1024 * 1024 * 1024; +const MAX_MANIFEST_SIZE = 1024 * 1024; +const MAX_COMPRESSION_RATIO = 1_000; + +function openZip(file) { + return new Promise((resolve, reject) => { + yauzl.open( + file, + { + lazyEntries: true, + autoClose: true, + decodeStrings: true, + validateEntrySizes: true, + }, + (error, zip) => { + if (error) reject(error); + else resolve(zip); + } + ); + }); +} + +function readEntry(zip, entry, limit = MAX_FILE_SIZE) { + return new Promise((resolve, reject) => { + zip.openReadStream(entry, (error, stream) => { + if (error) return reject(error); + const chunks = []; + let length = 0; + stream.on('data', (chunk) => { + length += chunk.length; + if (length > limit) + stream.destroy( + new Error(`ZIP entry exceeds the ${limit}-byte read limit.`) + ); + else chunks.push(chunk); + }); + stream.once('error', reject); + stream.once('end', () => resolve(Buffer.concat(chunks))); + }); + }); +} + +function unixFileType(entry) { + const madeBy = entry.versionMadeBy >>> 8; + return madeBy === 3 ? (entry.externalFileAttributes >>> 16) & 0o170000 : 0; +} + +export function safeEntryPath(fileName) { + if ( + typeof fileName !== 'string' || + fileName.length === 0 || + fileName.includes('\0') + ) + throw new Error('ZIP contains an invalid empty or NUL path.'); + const portable = fileName.replaceAll('\\', '/'); + if (portable.startsWith('/') || /^[A-Za-z]:\//.test(portable)) + throw new Error(`ZIP contains an absolute path: ${fileName}`); + const components = portable.split('/'); + if (components.some((part) => part === '..')) + throw new Error(`ZIP path traversal blocked: ${fileName}`); + const normalized = path.posix.normalize(portable); + if (normalized === '..' || normalized.startsWith('../')) + throw new Error(`ZIP path traversal blocked: ${fileName}`); + if (normalized === '.' && !portable.endsWith('/')) + throw new Error(`ZIP contains an invalid path: ${fileName}`); + return normalized; +} + +function validateMetadata(entry, total) { + const normalized = safeEntryPath(entry.fileName); + const directory = entry.fileName.endsWith('/'); + const fileType = unixFileType(entry); + if (fileType === 0o120000) + throw new Error(`ZIP symbolic link blocked: ${entry.fileName}`); + if (fileType !== 0 && fileType !== 0o100000 && fileType !== 0o040000) + throw new Error(`ZIP special file blocked: ${entry.fileName}`); + if (entry.uncompressedSize > MAX_FILE_SIZE) + throw new Error(`ZIP entry is too large: ${entry.fileName}`); + if ( + entry.compressedSize > 0 && + entry.uncompressedSize / entry.compressedSize > MAX_COMPRESSION_RATIO + ) { + throw new Error( + `ZIP entry has an unsafe compression ratio: ${entry.fileName}` + ); + } + if (total + entry.uncompressedSize > MAX_TOTAL_SIZE) + throw new Error('ZIP exceeds the total uncompressed-size limit.'); + return { normalized, directory }; +} + +export async function inspectAppArchive(file) { + const zip = await openZip(file); + const entries = []; + const paths = new Set(); + let total = 0; + let manifestBuffer; + + await new Promise((resolve, reject) => { + let settled = false; + const fail = (error) => { + if (settled) return; + settled = true; + zip.close(); + reject(error); + }; + zip.once('error', fail); + zip.once('end', () => { + if (settled) return; + settled = true; + resolve(); + }); + zip.on('entry', (entry) => { + void (async () => { + if (entries.length >= MAX_ENTRIES) + throw new Error(`ZIP exceeds the ${MAX_ENTRIES}-entry limit.`); + const metadata = validateMetadata(entry, total); + total += entry.uncompressedSize; + if (paths.has(metadata.normalized)) + throw new Error(`ZIP contains a duplicate path: ${entry.fileName}`); + paths.add(metadata.normalized); + entries.push({ fileName: entry.fileName, ...metadata }); + if (!metadata.directory && metadata.normalized === 'toolbox-app.json') { + manifestBuffer = await readEntry(zip, entry, MAX_MANIFEST_SIZE); + } + zip.readEntry(); + })().catch(fail); + }); + zip.readEntry(); + }); + + if (!manifestBuffer) + throw new Error('ZIP does not contain toolbox-app.json at its root.'); + let manifest; + try { + manifest = JSON.parse(manifestBuffer.toString('utf8')); + } catch (error) { + throw new Error('ZIP toolbox-app.json is not valid JSON.', { + cause: error, + }); + } + return { entries, manifest }; +} + +export async function extractInspectedArchive(file, destination, inspection) { + const root = path.resolve(destination); + await mkdir(root, { recursive: true }); + const allowed = new Map( + inspection.entries.map((entry) => [entry.fileName, entry]) + ); + const zip = await openZip(file); + + await new Promise((resolve, reject) => { + let settled = false; + const fail = (error) => { + if (settled) return; + settled = true; + zip.close(); + reject(error); + }; + zip.once('error', fail); + zip.once('end', () => { + if (settled) return; + settled = true; + resolve(); + }); + zip.on('entry', (entry) => { + void (async () => { + const metadata = allowed.get(entry.fileName); + if (!metadata) + throw new Error( + `ZIP changed between inspection and extraction: ${entry.fileName}` + ); + const target = path.resolve(root, ...metadata.normalized.split('/')); + if (target !== root && !target.startsWith(`${root}${path.sep}`)) + throw new Error( + `ZIP path escaped extraction root: ${entry.fileName}` + ); + if (metadata.directory) { + await mkdir(target, { recursive: true }); + } else { + await mkdir(path.dirname(target), { recursive: true }); + await new Promise((resolveStream, rejectStream) => { + zip.openReadStream(entry, (error, stream) => { + if (error) return rejectStream(error); + pipeline( + stream, + createWriteStream(target, { flags: 'wx', mode: 0o644 }) + ).then(resolveStream, rejectStream); + }); + }); + } + zip.readEntry(); + })().catch(fail); + }); + zip.readEntry(); + }); +} diff --git a/src/App.test.tsx b/src/App.test.tsx new file mode 100644 index 0000000..1008505 --- /dev/null +++ b/src/App.test.tsx @@ -0,0 +1,122 @@ +import { fireEvent, render, screen, waitFor } from '@testing-library/react'; +import userEvent from '@testing-library/user-event'; +import { afterEach, describe, expect, it, vi } from 'vitest'; +import App from './App'; +import { PREFERENCES_KEY } from './preferences'; +import { catalogue, catalogueFetch } from './test/fixtures'; + +afterEach(() => vi.unstubAllGlobals()); + +describe('portal UI', () => { + it('renders app cards and persists accessible pin/hide controls', async () => { + vi.stubGlobal('fetch', vi.fn(catalogueFetch())); + const user = userEvent.setup(); + render(); + expect( + await screen.findByRole('heading', { name: 'PDF Workbench' }) + ).toBeInTheDocument(); + expect( + screen.getByText( + 'Local processing · no file uploads declared · no telemetry declared' + ) + ).toBeInTheDocument(); + const sourceLinks = screen.getAllByRole('link', { + name: 'Source and license', + }); + expect(sourceLinks).toHaveLength(2); + expect( + sourceLinks.find( + (link) => + link.getAttribute('href') === + 'https://git.add-ideas.de/zemion/pdf-tools' + ) + ).toHaveAttribute('rel', 'noopener noreferrer'); + expect( + sourceLinks.find((link) => + link.getAttribute('href')?.endsWith('/toolbox-portal/src/tag/v0.1.0') + ) + ).toBeDefined(); + const launch = screen.getByRole('link', { name: /open tool/i }); + expect( + new URL(launch.getAttribute('href')!).searchParams.get('toolbox') + ).toContain('toolbox.catalog.json'); + + await user.click(screen.getByRole('button', { name: 'Pin PDF Workbench' })); + await waitFor(() => + expect(localStorage.getItem(PREFERENCES_KEY)).toContain( + 'de.add-ideas.pdf-tools' + ) + ); + expect(screen.getByText('Pinned')).toBeInTheDocument(); + + await user.click( + screen.getByRole('button', { name: 'Hide PDF Workbench' }) + ); + expect( + screen.queryByRole('heading', { name: 'PDF Workbench' }) + ).not.toBeInTheDocument(); + fireEvent.click(screen.getByRole('checkbox', { name: /show hidden/i })); + expect( + screen.getByRole('heading', { name: 'PDF Workbench' }) + ).toBeInTheDocument(); + }); + + it('shows a recoverable catalogue error', async () => { + const fetchMock = vi + .fn() + .mockResolvedValueOnce(new Response('no', { status: 503 })) + .mockImplementation(catalogueFetch()); + vi.stubGlobal('fetch', fetchMock); + render(); + expect( + await screen.findByRole('heading', { name: 'Toolbox unavailable' }) + ).toBeInTheDocument(); + fireEvent.click(screen.getByRole('button', { name: 'Try again' })); + expect( + await screen.findByRole('heading', { name: 'PDF Workbench' }) + ).toBeInTheDocument(); + }); + + it('shows a dedicated empty state for a valid catalogue', async () => { + vi.stubGlobal( + 'fetch', + vi.fn( + catalogueFetch({ + '/toolbox.catalog.json': Response.json({ ...catalogue, apps: [] }), + }) + ) + ); + render(); + expect( + await screen.findByRole('heading', { name: 'No tools yet' }) + ).toBeInTheDocument(); + }); + + it('contains preference focus and restores it to Personalize', async () => { + vi.stubGlobal('fetch', vi.fn(catalogueFetch())); + const user = userEvent.setup(); + const { container } = render(); + const personalize = screen.getByRole('button', { name: 'Personalize' }); + + await user.click(personalize); + const dialog = screen.getByRole('dialog', { + name: 'Personalize your toolbox', + }); + const close = screen.getByRole('button', { name: 'Close preferences' }); + expect(close).toHaveFocus(); + expect(container.querySelector('.site-shell')).toHaveAttribute('inert'); + expect(dialog).toBeInTheDocument(); + expect(screen.getByText(/does not transmit them/i)).toHaveTextContent( + /Trusted code in another Toolbox app on this site can access same-origin storage/i + ); + + const reset = screen.getByRole('button', { name: 'Reset' }); + reset.focus(); + await user.tab(); + expect(close).toHaveFocus(); + + await user.keyboard('{Escape}'); + expect(screen.queryByRole('dialog')).not.toBeInTheDocument(); + expect(personalize).toHaveFocus(); + }); +}); diff --git a/src/App.tsx b/src/App.tsx new file mode 100644 index 0000000..9544413 --- /dev/null +++ b/src/App.tsx @@ -0,0 +1,356 @@ +import { useCallback, useEffect, useMemo, useState } from 'react'; +import { AppCard } from './components/AppCard'; +import { Logo } from './components/Logo'; +import { PreferencesPanel } from './components/PreferencesPanel'; +import { contextualLaunchUrl, loadCatalogue } from './catalogue'; +import { cleanPreferences, sortAppIds } from './preferences'; +import type { LoadedCatalogue, ResolvedApp } from './types'; +import { usePreferences } from './usePreferences'; + +const CATALOGUE_HREF = './toolbox.catalog.json'; + +type LoadState = + | { status: 'loading' } + | { status: 'error'; message: string } + | { status: 'ready'; value: LoadedCatalogue }; + +function appMatches( + app: ResolvedApp, + query: string, + category: string +): boolean { + if (category && !app.categories.includes(category)) return false; + if (!query) return true; + const haystack = [app.name, app.description, ...app.categories, ...app.tags] + .join(' ') + .toLocaleLowerCase(); + return haystack.includes(query.toLocaleLowerCase()); +} + +export default function App() { + const [loadState, setLoadState] = useState({ status: 'loading' }); + const [reloadKey, setReloadKey] = useState(0); + const [query, setQuery] = useState(''); + const [category, setCategory] = useState(''); + const [showHidden, setShowHidden] = useState(false); + const [settingsOpen, setSettingsOpen] = useState(false); + const [preferences, setPreferences, storageAvailable] = usePreferences(); + const closeSettings = useCallback(() => setSettingsOpen(false), []); + + useEffect(() => { + const controller = new AbortController(); + loadCatalogue(CATALOGUE_HREF, controller.signal).then( + (value) => setLoadState({ status: 'ready', value }), + (error) => { + if (controller.signal.aborted) return; + setLoadState({ + status: 'error', + message: + error instanceof Error + ? error.message + : 'The catalogue could not be loaded.', + }); + } + ); + return () => controller.abort(); + }, [reloadKey]); + + const loaded = loadState.status === 'ready' ? loadState.value : undefined; + const apps = useMemo(() => loaded?.apps ?? [], [loaded]); + + useEffect(() => { + if (!loaded) return; + const clean = cleanPreferences( + preferences, + loaded.apps.map((app) => app.id) + ); + if (JSON.stringify(clean) !== JSON.stringify(preferences)) + setPreferences(clean); + }, [loaded, preferences, setPreferences]); + + useEffect(() => { + document.documentElement.dataset.theme = preferences.theme; + }, [preferences.theme]); + + const categories = useMemo( + () => + [...new Set(apps.flatMap((app) => app.categories))].sort((a, b) => + a.localeCompare(b) + ), + [apps] + ); + const orderedApps = useMemo(() => { + const byId = new Map(apps.map((app) => [app.id, app])); + return sortAppIds( + apps.map((app) => app.id), + preferences + ).flatMap((id) => { + const app = byId.get(id); + return app ? [app] : []; + }); + }, [apps, preferences]); + const visibleApps = orderedApps.filter((app) => { + const hidden = preferences.hidden.includes(app.id); + return (showHidden || !hidden) && appMatches(app, query.trim(), category); + }); + + function toggleListItem(field: 'pinned' | 'hidden', id: string) { + setPreferences((current) => ({ + ...current, + [field]: current[field].includes(id) + ? current[field].filter((item) => item !== id) + : [...current[field], id], + })); + } + + function moveApp(id: string, direction: -1 | 1) { + const pinned = preferences.pinned.includes(id); + const peers = visibleApps.filter( + (app) => preferences.pinned.includes(app.id) === pinned + ); + const currentIndex = peers.findIndex((app) => app.id === id); + const target = peers[currentIndex + direction]; + if (!target) return; + setPreferences((current) => { + const currentPosition = current.order.indexOf(id); + const targetPosition = current.order.indexOf(target.id); + if (currentPosition < 0 || targetPosition < 0) return current; + const order = [...current.order]; + [order[currentPosition], order[targetPosition]] = [ + order[targetPosition]!, + order[currentPosition]!, + ]; + return { ...current, order }; + }); + } + + const title = loaded?.catalogue.name ?? 'add·ideas Toolbox'; + const brand = loaded?.catalogue.theme.brand ?? 'add·ideas'; + + return ( + <> +
+ + Skip to tools + +
+
+ + + + {brand} + Toolbox + + + +
+
+ +
+
+

+ Privacy details up front · useful by default +

+

+ Your document tools, +
+ in one calm place. +

+

+ Focused browser utilities with a privacy disclosure for each tool. + Choose one and keep your work moving. +

+
+ + {loadState.status === 'loading' && ( +
+
+ )} + + {loadState.status === 'error' && ( +
+ +

Toolbox unavailable

+

{loadState.message}

+ +
+ )} + + {loaded && ( + <> +
+ + + {preferences.hidden.length > 0 && ( + + )} +
+ + {apps.length === 0 && loaded.unavailable.length === 0 && ( +
+ +

No tools yet

+

+ The catalogue is valid but does not contain any enabled + apps. +

+
+ )} + + {apps.length > 0 && visibleApps.length === 0 && ( +
+ +

No matching tools

+

+ Try another search or category, or show your hidden tools. +

+ +
+ )} + + {visibleApps.length > 0 && ( +
+ {visibleApps.map((app) => { + const pinned = preferences.pinned.includes(app.id); + const peers = visibleApps.filter( + (peer) => preferences.pinned.includes(peer.id) === pinned + ); + return ( +
+ )} + + {loaded.unavailable.length > 0 && ( +
+ + {loaded.unavailable.length} configured{' '} + {loaded.unavailable.length === 1 ? 'tool is' : 'tools are'}{' '} + unavailable + +
    + {loaded.unavailable.map((app) => ( +
  • + {app.name}: {app.reason} +
  • + ))} +
+
+ )} + + )} +
+ +
+

+ {' '} + + Privacy differs by tool. Review each disclosure before opening. + Apps open as full pages—never embedded. + +

+ + Portal v0.1.0 ·{' '} + + Source and license + + +
+
+ + + + ); +} diff --git a/src/catalogue.test.ts b/src/catalogue.test.ts new file mode 100644 index 0000000..e365387 --- /dev/null +++ b/src/catalogue.test.ts @@ -0,0 +1,102 @@ +import { afterEach, describe, expect, it, vi } from 'vitest'; +import { contextualLaunchUrl, loadCatalogue } from './catalogue'; +import { catalogue, catalogueFetch } from './test/fixtures'; + +afterEach(() => vi.unstubAllGlobals()); + +describe('catalogue loading', () => { + it('loads and resolves an internal app using the shared contract', async () => { + vi.stubGlobal('fetch', vi.fn(catalogueFetch())); + const loaded = await loadCatalogue('/toolbox.catalog.json'); + expect(loaded.catalogue.name).toBe('add·ideas Toolbox'); + expect(loaded.homeUrl).toBe('http://localhost:3000/'); + expect(loaded.apps).toHaveLength(1); + expect(loaded.apps[0]).toMatchObject({ + id: 'de.add-ideas.pdf-tools', + name: 'PDF Workbench', + entryUrl: 'http://localhost:3000/apps/pdf/', + sourceUrl: 'https://git.add-ideas.de/zemion/pdf-tools', + }); + }); + + it('keeps valid apps available when another manifest fails', async () => { + const twoApps = { + ...catalogue, + apps: [ + ...catalogue.apps, + { manifest: './apps/missing/toolbox-app.json', enabled: true }, + ], + }; + vi.stubGlobal( + 'fetch', + vi.fn( + catalogueFetch({ + '/toolbox.catalog.json': Response.json(twoApps), + }) + ) + ); + const loaded = await loadCatalogue('/toolbox.catalog.json'); + expect(loaded.apps.map((app) => app.id)).toEqual([ + 'de.add-ideas.pdf-tools', + ]); + expect(loaded.unavailable).toHaveLength(1); + expect(loaded.unavailable[0]?.reason).toMatch(/HTTP 404/); + }); + + it('rejects cross-origin manifest references', async () => { + vi.stubGlobal( + 'fetch', + vi.fn( + catalogueFetch({ + '/toolbox.catalog.json': Response.json({ + ...catalogue, + apps: [ + { + manifest: 'https://example.invalid/toolbox-app.json', + enabled: true, + }, + ], + }), + }) + ) + ); + await expect(loadCatalogue('/toolbox.catalog.json')).rejects.toThrow( + /share the page origin/i + ); + }); + + it('rejects a cross-origin catalogue home', async () => { + vi.stubGlobal( + 'fetch', + vi.fn( + catalogueFetch({ + '/toolbox.catalog.json': Response.json({ + ...catalogue, + home: 'https://example.invalid/', + }), + }) + ) + ); + await expect(loadCatalogue('/toolbox.catalog.json')).rejects.toThrow( + /share the page origin/i + ); + }); + + it('adds catalogue context only to same-origin launch links', () => { + const contextual = new URL( + contextualLaunchUrl( + 'http://localhost:3000/apps/pdf/', + 'http://localhost:3000/toolbox.catalog.json' + ) + ); + expect(contextual.searchParams.get('toolbox')).toBe( + 'http://localhost:3000/toolbox.catalog.json' + ); + expect( + contextualLaunchUrl( + 'https://example.com/tool', + 'http://localhost:3000/toolbox.catalog.json' + ) + ).toBe('https://example.com/tool'); + }); +}); diff --git a/src/catalogue.ts b/src/catalogue.ts new file mode 100644 index 0000000..1ac3ef8 --- /dev/null +++ b/src/catalogue.ts @@ -0,0 +1,143 @@ +import { + contextualizeToolboxLink, + fetchToolboxAppManifest, + fetchToolboxCatalog, + requireSameOrigin, + resolveToolboxApp, + resolveWebUrl, + type ToolboxCatalogEntry, + type ToolboxCatalogExternalEntry, + type ToolboxCatalogManifestEntry, +} from '@add-ideas/toolbox-contract'; +import type { LoadedCatalogue, ResolvedApp, UnavailableApp } from './types'; + +function isInternal( + entry: ToolboxCatalogEntry +): entry is ToolboxCatalogManifestEntry { + return 'manifest' in entry; +} + +function fallbackId(entry: ToolboxCatalogExternalEntry, entryUrl: URL): string { + const slug = entry.name + .toLocaleLowerCase() + .replace(/[^a-z0-9]+/g, '-') + .replace(/^-|-$/g, ''); + let hash = 2166136261; + for (const character of `${entry.name}\0${entryUrl.href}`) { + hash ^= character.codePointAt(0) ?? 0; + hash = Math.imul(hash, 16777619); + } + return `external:${slug || 'tool'}:${(hash >>> 0).toString(36)}`; +} + +export async function loadCatalogue( + catalogueHref: string, + signal?: AbortSignal +): Promise { + const pageUrl = resolveWebUrl(document.baseURI); + const catalogueUrl = requireSameOrigin( + resolveWebUrl(catalogueHref, pageUrl), + pageUrl, + 'Toolbox catalogue' + ); + const catalogue = await fetchToolboxCatalog(catalogueUrl, { + signal, + expectedOrigin: pageUrl, + }); + const enabled = catalogue.apps.filter((entry) => entry.enabled); + const results = await Promise.all( + enabled.map( + async ( + entry + ): Promise<{ app?: ResolvedApp; unavailable?: UnavailableApp }> => { + if (!isInternal(entry)) { + const entryUrl = resolveWebUrl(entry.entry, catalogueUrl); + return { + app: { + id: fallbackId(entry, entryUrl), + name: entry.name, + description: 'External tool', + entryUrl: entryUrl.href, + categories: [], + tags: [], + launchModes: [entry.launch], + isExternal: true, + }, + }; + } + + const manifestUrl = requireSameOrigin( + resolveWebUrl(entry.manifest, catalogueUrl), + pageUrl, + 'Application manifest' + ); + try { + const manifest = await fetchToolboxAppManifest(manifestUrl, { + signal, + expectedOrigin: pageUrl, + }); + const resolved = resolveToolboxApp(manifest, manifestUrl, pageUrl); + return { + app: { + id: manifest.id, + name: manifest.name, + version: manifest.version, + description: manifest.description, + entryUrl: resolved.entryUrl.href, + iconUrl: resolved.iconUrl.href, + categories: manifest.categories, + tags: manifest.tags, + launchModes: manifest.integration.launchModes, + isExternal: false, + manifestUrl: resolved.manifestUrl.href, + sourceUrl: manifest.source?.repository, + requirements: manifest.requirements, + privacy: manifest.privacy, + }, + }; + } catch (error) { + if (signal?.aborted) throw error; + return { + unavailable: { + id: `unavailable:${manifestUrl.href}`, + name: manifestUrl.pathname.split('/').at(-2) ?? 'Unknown app', + manifestUrl: manifestUrl.href, + reason: + error instanceof Error + ? error.message + : 'Unknown manifest error.', + }, + }; + } + } + ) + ); + + const apps = results.flatMap((result) => (result.app ? [result.app] : [])); + const ids = new Set(); + for (const app of apps) { + if (ids.has(app.id)) throw new Error(`Duplicate app id: ${app.id}.`); + ids.add(app.id); + } + + return { + catalogue, + catalogueUrl, + homeUrl: requireSameOrigin( + resolveWebUrl(catalogue.home, catalogueUrl), + pageUrl, + 'Toolbox home' + ).href, + apps, + unavailable: results.flatMap((result) => + result.unavailable ? [result.unavailable] : [] + ), + }; +} + +export function contextualLaunchUrl( + entryHref: string, + catalogueHref: string +): string { + return contextualizeToolboxLink(entryHref, catalogueHref); +} diff --git a/src/components/AppCard.tsx b/src/components/AppCard.tsx new file mode 100644 index 0000000..b4e29d2 --- /dev/null +++ b/src/components/AppCard.tsx @@ -0,0 +1,172 @@ +import type { ResolvedApp } from '../types'; + +interface AppCardProps { + app: ResolvedApp; + catalogueUrl: string; + hidden: boolean; + pinned: boolean; + first: boolean; + last: boolean; + onHide: () => void; + onMove: (direction: -1 | 1) => void; + onPin: () => void; + contextualUrl: (entryUrl: string, catalogueUrl: string) => string; +} + +function RequirementSummary({ app }: { app: ResolvedApp }) { + if (!app.requirements) return null; + const requirements = [ + app.requirements.secureContext && 'Secure context', + app.requirements.workers && 'Web workers', + app.requirements.indexedDb && 'IndexedDB', + app.requirements.crossOriginIsolated && 'Cross-origin isolation', + ].filter(Boolean); + if (requirements.length === 0) return null; + return

Needs {requirements.join(' · ')}

; +} + +function PrivacySummary({ app }: { app: ResolvedApp }) { + if (!app.privacy) + return ( +

+ External destination · review its privacy terms +

+ ); + if (app.privacy.label) + return

{app.privacy.label}

; + const processing = { + local: 'Local processing', + remote: 'Remote processing', + mixed: 'Local and remote capabilities', + }[app.privacy.processing]; + return ( +

+ {processing} ·{' '} + {app.privacy.fileUploads + ? 'file/data transmission declared' + : 'no file uploads declared'}{' '} + · {app.privacy.telemetry ? 'telemetry declared' : 'no telemetry declared'} +

+ ); +} + +export function AppCard({ + app, + catalogueUrl, + hidden, + pinned, + first, + last, + onHide, + onMove, + onPin, + contextualUrl, +}: AppCardProps) { + const launchUrl = app.isExternal + ? app.entryUrl + : contextualUrl(app.entryUrl, catalogueUrl); + const target = app.launchModes.includes('navigate') ? undefined : '_blank'; + return ( +
+
+ +
+ + + + +
+
+
+
+

{app.name}

+ {pinned && Pinned} + {hidden && ( + Hidden + )} + {app.isExternal && ( + External + )} +
+

{app.description}

+ + +
+ {app.categories.slice(0, 3).map((category) => ( + {category} + ))} +
+
+ +
+ ); +} diff --git a/src/components/Logo.tsx b/src/components/Logo.tsx new file mode 100644 index 0000000..e512fa8 --- /dev/null +++ b/src/components/Logo.tsx @@ -0,0 +1,36 @@ +interface LogoProps { + size?: number; +} + +export function Logo({ size = 38 }: LogoProps) { + return ( + + ); +} diff --git a/src/components/PreferencesPanel.tsx b/src/components/PreferencesPanel.tsx new file mode 100644 index 0000000..830b2cb --- /dev/null +++ b/src/components/PreferencesPanel.tsx @@ -0,0 +1,237 @@ +import { useEffect, useRef, useState, type ChangeEvent } from 'react'; +import { + defaultPreferences, + parsePreferences, + type Preferences, +} from '../preferences'; +import type { ThemeMode } from '../types'; + +interface PreferencesPanelProps { + open: boolean; + preferences: Preferences; + storageAvailable: boolean; + onChange: (preferences: Preferences) => void; + onClose: () => void; +} + +export function PreferencesPanel({ + open, + preferences, + storageAvailable, + onChange, + onClose, +}: PreferencesPanelProps) { + const fileInput = useRef(null); + const panel = useRef(null); + const [message, setMessage] = useState(''); + + useEffect(() => { + if (!open) return; + + const returnFocus = + document.activeElement instanceof HTMLElement + ? document.activeElement + : null; + const dialog = panel.current; + const focusableElements = () => + dialog + ? [...dialog.querySelectorAll(FOCUSABLE_SELECTOR)].filter( + (element) => !element.hasAttribute('disabled') + ) + : []; + + focusableElements()[0]?.focus(); + + const handleKeyDown = (event: KeyboardEvent) => { + if (event.key === 'Escape') { + event.preventDefault(); + onClose(); + return; + } + if (event.key !== 'Tab') return; + + const elements = focusableElements(); + if (elements.length === 0) { + event.preventDefault(); + dialog?.focus(); + return; + } + + const first = elements[0]!; + const last = elements.at(-1)!; + const activeElement = document.activeElement; + if ( + event.shiftKey && + (activeElement === first || !dialog?.contains(activeElement)) + ) { + event.preventDefault(); + last.focus(); + } else if ( + !event.shiftKey && + (activeElement === last || !dialog?.contains(activeElement)) + ) { + event.preventDefault(); + first.focus(); + } + }; + + document.addEventListener('keydown', handleKeyDown); + return () => { + document.removeEventListener('keydown', handleKeyDown); + returnFocus?.focus(); + }; + }, [open, onClose]); + + if (!open) return null; + + function setTheme(theme: ThemeMode) { + onChange({ ...preferences, theme }); + } + + function exportPreferences() { + const blob = new Blob([`${JSON.stringify(preferences, null, 2)}\n`], { + type: 'application/json', + }); + const url = URL.createObjectURL(blob); + const anchor = document.createElement('a'); + anchor.href = url; + anchor.download = 'toolbox-preferences.json'; + anchor.click(); + URL.revokeObjectURL(url); + setMessage('Preferences exported.'); + } + + async function importPreferences(event: ChangeEvent) { + const file = event.target.files?.[0]; + event.target.value = ''; + if (!file) return; + try { + const imported = parsePreferences(JSON.parse(await file.text())); + onChange(imported); + setMessage('Preferences imported.'); + } catch (error) { + setMessage( + error instanceof Error + ? `Import failed: ${error.message}` + : 'Import failed.' + ); + } + } + + return ( +
event.target === event.currentTarget && onClose()} + > +
+
+
+

On this device

+

Personalize your toolbox

+
+ +
+ + {!storageAvailable && ( +

+ Browser storage is unavailable. Changes will last only until this + page closes. +

+ )} + +
+ Appearance +
+ {(['system', 'light', 'dark'] as const).map((theme) => ( + + ))} +
+
+ +
+
+ {preferences.pinned.length} + Pinned +
+
+ {preferences.hidden.length} + Hidden +
+
+ {preferences.order.length} + Ordered +
+
+ +

+ The portal stores pins, visibility, order, and appearance in this + browser and does not transmit them. Trusted code in another Toolbox + app on this site can access same-origin storage. Export a JSON backup + to move them to another device. +

+ +
+ + + + +
+

+ {message} +

+
+
+ ); +} + +const FOCUSABLE_SELECTOR = [ + 'a[href]', + 'button:not([disabled])', + 'input:not([disabled]):not([type="hidden"]):not([tabindex="-1"])', + 'select:not([disabled])', + 'textarea:not([disabled])', + '[tabindex]:not([tabindex="-1"])', +].join(','); diff --git a/src/main.tsx b/src/main.tsx new file mode 100644 index 0000000..5b585d3 --- /dev/null +++ b/src/main.tsx @@ -0,0 +1,10 @@ +import { StrictMode } from 'react'; +import { createRoot } from 'react-dom/client'; +import App from './App'; +import './styles.css'; + +createRoot(document.getElementById('root')!).render( + + + +); diff --git a/src/preferences.test.ts b/src/preferences.test.ts new file mode 100644 index 0000000..e3bd2d3 --- /dev/null +++ b/src/preferences.test.ts @@ -0,0 +1,78 @@ +import { describe, expect, it } from 'vitest'; +import { + PREFERENCES_KEY, + cleanPreferences, + defaultPreferences, + moveId, + parsePreferences, + readPreferences, + sortAppIds, + writePreferences, +} from './preferences'; + +describe('preferences', () => { + it('round-trips namespaced settings', () => { + const preferences = { + ...defaultPreferences, + pinned: ['app.two'], + order: ['app.two', 'app.one'], + hidden: ['app.one'], + theme: 'dark' as const, + }; + writePreferences(preferences); + expect(localStorage.getItem(PREFERENCES_KEY)).toContain('app.two'); + expect(readPreferences()).toEqual(preferences); + }); + + it('falls back safely for corrupt stored JSON', () => { + localStorage.setItem(PREFERENCES_KEY, '{nope'); + expect(readPreferences()).toEqual(defaultPreferences); + }); + + it('validates imported JSON and removes duplicate ids', () => { + expect( + parsePreferences({ + version: 1, + pinned: ['app.one', 'app.one'], + order: [], + hidden: [], + theme: 'system', + }).pinned + ).toEqual(['app.one']); + expect(() => parsePreferences({ version: 2 })).toThrow(/version/i); + expect(() => + parsePreferences({ + version: 1, + pinned: 'app.one', + order: [], + hidden: [], + theme: 'system', + }) + ).toThrow(/pinned/i); + }); + + it('cleans stale ids, pins first, and supports personal ordering', () => { + const cleaned = cleanPreferences( + { + version: 1, + pinned: ['app.three', 'missing'], + hidden: ['missing'], + order: ['app.two', 'missing'], + theme: 'system', + }, + ['app.one', 'app.two', 'app.three'] + ); + expect(cleaned.order).toEqual(['app.two', 'app.one', 'app.three']); + expect(cleaned.hidden).toEqual([]); + expect(sortAppIds(['app.one', 'app.two', 'app.three'], cleaned)).toEqual([ + 'app.three', + 'app.two', + 'app.one', + ]); + expect(moveId(cleaned.order, 'app.one', -1)).toEqual([ + 'app.one', + 'app.two', + 'app.three', + ]); + }); +}); diff --git a/src/preferences.ts b/src/preferences.ts new file mode 100644 index 0000000..e72e5c1 --- /dev/null +++ b/src/preferences.ts @@ -0,0 +1,110 @@ +import type { ThemeMode } from './types'; + +export const PREFERENCES_KEY = '@add-ideas/toolbox-portal:v1:preferences'; + +export interface Preferences { + version: 1; + pinned: string[]; + order: string[]; + hidden: string[]; + theme: ThemeMode; +} + +export const defaultPreferences: Preferences = { + version: 1, + pinned: [], + order: [], + hidden: [], + theme: 'system', +}; + +function uniqueStrings(value: unknown, field: string): string[] { + if ( + !Array.isArray(value) || + value.some((item) => typeof item !== 'string' || item.length === 0) + ) + throw new Error(`${field} must be an array of non-empty strings.`); + return [...new Set(value)]; +} + +export function parsePreferences(value: unknown): Preferences { + if (typeof value !== 'object' || value === null || Array.isArray(value)) { + throw new Error('Preferences must be a JSON object.'); + } + const candidate = value as Record; + if (candidate.version !== 1) + throw new Error('Unsupported preferences version.'); + const theme = candidate.theme; + if (!['light', 'dark', 'system'].includes(String(theme))) + throw new Error('Invalid theme preference.'); + return { + version: 1, + pinned: uniqueStrings(candidate.pinned, 'pinned'), + order: uniqueStrings(candidate.order, 'order'), + hidden: uniqueStrings(candidate.hidden, 'hidden'), + theme: theme as ThemeMode, + }; +} + +export function readPreferences(storage: Storage = localStorage): Preferences { + const value = storage.getItem(PREFERENCES_KEY); + if (!value) return { ...defaultPreferences }; + try { + return parsePreferences(JSON.parse(value)); + } catch { + return { ...defaultPreferences }; + } +} + +export function writePreferences( + preferences: Preferences, + storage: Storage = localStorage +): void { + storage.setItem(PREFERENCES_KEY, JSON.stringify(preferences)); +} + +export function cleanPreferences( + preferences: Preferences, + appIds: string[] +): Preferences { + const known = new Set(appIds); + return { + ...preferences, + pinned: preferences.pinned.filter((id) => known.has(id)), + hidden: preferences.hidden.filter((id) => known.has(id)), + order: [ + ...preferences.order.filter((id) => known.has(id)), + ...appIds.filter((id) => !preferences.order.includes(id)), + ], + }; +} + +export function sortAppIds( + appIds: string[], + preferences: Preferences +): string[] { + const order = new Map(preferences.order.map((id, index) => [id, index])); + const pinned = new Set(preferences.pinned); + return [...appIds].sort((left, right) => { + const pinDifference = Number(pinned.has(right)) - Number(pinned.has(left)); + if (pinDifference) return pinDifference; + return ( + (order.get(left) ?? Number.MAX_SAFE_INTEGER) - + (order.get(right) ?? Number.MAX_SAFE_INTEGER) + ); + }); +} + +export function moveId( + order: string[], + id: string, + direction: -1 | 1 +): string[] { + const current = order.indexOf(id); + if (current < 0) return order; + const target = current + direction; + if (target < 0 || target >= order.length) return order; + const next = [...order]; + [next[current], next[target]] = [next[target]!, next[current]!]; + return next; +} diff --git a/src/styles.css b/src/styles.css new file mode 100644 index 0000000..aa05608 --- /dev/null +++ b/src/styles.css @@ -0,0 +1,814 @@ +:root { + color-scheme: light dark; + font-family: Inter, Avenir, 'Segoe UI', ui-sans-serif, system-ui, sans-serif; + font-synthesis: none; + text-rendering: optimizeLegibility; + --bg: #f6f7fb; + --surface: #ffffff; + --surface-soft: #eff2f8; + --text: #17203b; + --muted: #667085; + --line: #dfe3ec; + --brand: #28366d; + --brand-hover: #1c2858; + --brand-soft: #e9edff; + --accent: #78d8ca; + --danger: #a63243; + --shadow: 0 16px 44px rgba(24, 34, 68, 0.08); +} + +:root[data-theme='dark'] { + color-scheme: dark; + --bg: #0f1422; + --surface: #171d2d; + --surface-soft: #20283a; + --text: #edf1fb; + --muted: #a9b3ca; + --line: #303a50; + --brand: #a9b7ff; + --brand-hover: #c3ccff; + --brand-soft: #252f55; + --accent: #66cdbd; + --danger: #ff9dac; + --shadow: 0 18px 48px rgba(0, 0, 0, 0.22); +} + +@media (prefers-color-scheme: dark) { + :root[data-theme='system'] { + color-scheme: dark; + --bg: #0f1422; + --surface: #171d2d; + --surface-soft: #20283a; + --text: #edf1fb; + --muted: #a9b3ca; + --line: #303a50; + --brand: #a9b7ff; + --brand-hover: #c3ccff; + --brand-soft: #252f55; + --accent: #66cdbd; + --danger: #ff9dac; + --shadow: 0 18px 48px rgba(0, 0, 0, 0.22); + } +} + +* { + box-sizing: border-box; +} + +html { + background: var(--bg); + scroll-behavior: smooth; +} + +body { + margin: 0; + min-width: 320px; + min-height: 100vh; + background: + radial-gradient( + circle at 8% 4%, + color-mix(in srgb, var(--accent) 13%, transparent) 0, + transparent 28rem + ), + var(--bg); + color: var(--text); +} + +button, +input, +select { + color: inherit; + font: inherit; +} + +button, +a, +input, +select { + -webkit-tap-highlight-color: transparent; +} + +button:focus-visible, +a:focus-visible, +input:focus-visible, +select:focus-visible, +summary:focus-visible { + outline: 3px solid color-mix(in srgb, var(--accent) 70%, var(--brand)); + outline-offset: 3px; +} + +.site-shell { + min-height: 100vh; + display: flex; + flex-direction: column; +} + +.skip-link { + position: fixed; + z-index: 100; + top: 0.75rem; + left: 0.75rem; + padding: 0.7rem 1rem; + border-radius: 0.55rem; + background: var(--surface); + color: var(--text); + transform: translateY(-160%); +} + +.skip-link:focus { + transform: translateY(0); +} + +.site-header { + position: sticky; + z-index: 20; + top: 0; + border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); + background: color-mix(in srgb, var(--bg) 88%, transparent); + backdrop-filter: blur(16px); +} + +.header-inner, +main, +.site-footer { + width: min(1160px, calc(100% - 2.5rem)); + margin-inline: auto; +} + +.header-inner { + min-height: 74px; + display: flex; + align-items: center; + justify-content: space-between; + gap: 1rem; +} + +.brand { + display: inline-flex; + align-items: center; + gap: 0.65rem; + color: var(--text); + text-decoration: none; +} + +.brand .logo { + color: var(--brand); +} + +.brand > span { + display: grid; + line-height: 1.05; +} + +.brand strong { + font-family: Inter, Avenir, 'Segoe UI', ui-sans-serif, sans-serif; + font-size: 1.03rem; + letter-spacing: -0.025em; +} + +.brand small { + margin-top: 0.22rem; + color: var(--muted); + font-size: 0.68rem; + font-weight: 600; + letter-spacing: 0.17em; + text-transform: uppercase; +} + +.settings-button, +.state-card button, +.preferences-actions button { + border: 1px solid var(--line); + border-radius: 0.65rem; + background: var(--surface); + cursor: pointer; + font-weight: 600; +} + +.settings-button { + padding: 0.62rem 0.82rem; +} + +.settings-button:hover, +.state-card button:hover, +.preferences-actions button:hover { + border-color: var(--brand); + color: var(--brand); +} + +main { + flex: 1; +} + +.hero { + max-width: 750px; + padding: clamp(4.5rem, 9vw, 8.5rem) 0 clamp(3rem, 6vw, 5.2rem); +} + +.eyebrow { + margin: 0 0 1rem; + color: var(--brand); + font-size: 0.78rem; + font-weight: 700; + letter-spacing: 0.14em; + text-transform: uppercase; +} + +.hero h1 { + margin: 0; + font-family: Inter, Avenir, 'Segoe UI', ui-sans-serif, sans-serif; + font-size: clamp(2.65rem, 7vw, 5.65rem); + line-height: 0.98; + letter-spacing: -0.065em; +} + +.hero h1 span { + color: var(--brand); +} + +.hero-copy { + max-width: 575px; + margin: 1.75rem 0 0; + color: var(--muted); + font-size: clamp(1rem, 2vw, 1.18rem); + line-height: 1.7; +} + +.tool-controls { + display: flex; + align-items: center; + gap: 0.75rem; + margin-bottom: 1.5rem; +} + +.search-field, +.category-field { + display: flex; + min-height: 46px; + align-items: center; + border: 1px solid var(--line); + border-radius: 0.75rem; + background: var(--surface); +} + +.search-field { + width: min(360px, 100%); + padding: 0 0.85rem; + gap: 0.55rem; +} + +.search-field > span { + color: var(--muted); + font-size: 1.35rem; +} + +.search-field input, +.category-field select { + width: 100%; + border: 0; + outline: 0; + background: transparent; +} + +.search-field input::placeholder { + color: var(--muted); +} + +.category-field { + min-width: 175px; + padding: 0 0.65rem; +} + +.category-field select { + cursor: pointer; +} + +.hidden-toggle { + display: flex; + align-items: center; + gap: 0.45rem; + margin-left: auto; + color: var(--muted); + cursor: pointer; + font-size: 0.88rem; +} + +.hidden-toggle input { + width: 1.05rem; + height: 1.05rem; + accent-color: var(--brand); +} + +.app-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); + gap: 1.1rem; + padding-bottom: 2rem; +} + +.app-card { + min-height: 340px; + display: flex; + flex-direction: column; + overflow: hidden; + border: 1px solid var(--line); + border-radius: 1.2rem; + background: var(--surface); + box-shadow: var(--shadow); + transition: + border-color 180ms ease, + transform 180ms ease, + box-shadow 180ms ease; +} + +.app-card:hover { + border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); + transform: translateY(-2px); + box-shadow: 0 20px 54px rgba(24, 34, 68, 0.13); +} + +.app-card--hidden { + border-style: dashed; + opacity: 0.7; +} + +.app-card__top { + display: flex; + align-items: flex-start; + justify-content: space-between; + padding: 1.35rem 1.35rem 0; +} + +.app-card__icon { + width: 52px; + height: 52px; + display: grid; + place-items: center; + overflow: hidden; + border-radius: 0.95rem; + background: var(--brand-soft); + color: var(--brand); + font-family: Inter, Avenir, 'Segoe UI', sans-serif; + font-size: 1.45rem; + font-weight: 700; +} + +.app-card__icon img { + width: 100%; + height: 100%; + object-fit: contain; +} + +.app-card__actions { + display: flex; + gap: 0.15rem; +} + +.icon-button, +.close-button { + width: 32px; + height: 32px; + display: grid; + place-items: center; + border: 0; + border-radius: 50%; + background: transparent; + color: var(--muted); + cursor: pointer; +} + +.icon-button:hover:not(:disabled), +.icon-button.is-active { + background: var(--brand-soft); + color: var(--brand); +} + +.icon-button:disabled { + cursor: not-allowed; + opacity: 0.28; +} + +.app-card__body { + flex: 1; + padding: 1.25rem 1.35rem 1rem; +} + +.title-line { + display: flex; + flex-wrap: wrap; + align-items: center; + gap: 0.45rem; +} + +.title-line h2 { + margin: 0; + font-family: Inter, Avenir, 'Segoe UI', sans-serif; + font-size: 1.3rem; + letter-spacing: -0.025em; +} + +.status-chip, +.tag-row span { + border-radius: 999px; + background: var(--brand-soft); + color: var(--brand); + font-size: 0.68rem; + font-weight: 700; +} + +.status-chip { + padding: 0.22rem 0.48rem; + text-transform: uppercase; +} + +.status-chip--muted { + background: var(--surface-soft); + color: var(--muted); +} + +.app-card__body > p { + margin: 0.75rem 0 0; + color: var(--muted); + line-height: 1.6; +} + +.app-card__body .requirements { + font-size: 0.72rem; +} + +.app-card__body .privacy-summary { + color: var(--text); + font-size: 0.76rem; + font-weight: 650; +} + +.tag-row { + display: flex; + flex-wrap: wrap; + gap: 0.4rem; + margin-top: 1rem; +} + +.tag-row span { + padding: 0.28rem 0.52rem; + background: var(--surface-soft); + color: var(--muted); +} + +.app-card__footer { + min-height: 68px; + display: flex; + align-items: center; + justify-content: space-between; + gap: 1rem; + padding: 0.85rem 1.35rem; + border-top: 1px solid var(--line); +} + +.version { + color: var(--muted); + font-size: 0.78rem; +} + +.app-card__meta { + display: grid; + gap: 0.25rem; +} + +.source-link, +.site-footer a { + color: var(--brand); +} + +.launch-button { + display: inline-flex; + align-items: center; + gap: 0.45rem; + padding: 0.62rem 0.82rem; + border-radius: 0.65rem; + background: var(--brand); + color: var(--surface); + font-size: 0.84rem; + font-weight: 700; + text-decoration: none; +} + +:root[data-theme='dark'] .launch-button { + color: #11182a; +} + +.launch-button:hover { + background: var(--brand-hover); +} + +.state-card { + max-width: 600px; + margin: 0 auto 5rem; + padding: 3rem 2rem; + border: 1px solid var(--line); + border-radius: 1.2rem; + background: var(--surface); + text-align: center; + box-shadow: var(--shadow); +} + +.state-card h2 { + margin: 0.8rem 0 0.35rem; + font-family: Inter, Avenir, 'Segoe UI', sans-serif; +} + +.state-card p { + margin: 0; + color: var(--muted); + line-height: 1.55; +} + +.state-card button { + margin-top: 1.25rem; + padding: 0.7rem 1rem; +} + +.state-icon { + width: 46px; + height: 46px; + display: inline-grid; + place-items: center; + border-radius: 50%; + background: var(--brand-soft); + color: var(--brand); + font-size: 1.25rem; + font-weight: 700; +} + +.state-card--error .state-icon { + background: color-mix(in srgb, var(--danger) 12%, transparent); + color: var(--danger); +} + +.loader { + width: 38px; + height: 38px; + margin: 0 auto; + border: 3px solid var(--line); + border-top-color: var(--brand); + border-radius: 50%; + animation: spin 700ms linear infinite; +} + +@keyframes spin { + to { + transform: rotate(360deg); + } +} + +.manifest-errors { + margin: 1.5rem 0 4rem; + padding: 1rem 1.2rem; + border: 1px solid color-mix(in srgb, var(--danger) 30%, var(--line)); + border-radius: 0.8rem; + background: color-mix(in srgb, var(--danger) 5%, var(--surface)); + color: var(--muted); +} + +.manifest-errors summary { + cursor: pointer; + color: var(--text); + font-weight: 600; +} + +.manifest-errors li + li { + margin-top: 0.5rem; +} + +.site-footer { + min-height: 110px; + display: flex; + align-items: center; + justify-content: space-between; + gap: 1rem; + margin-top: 5rem; + border-top: 1px solid var(--line); + color: var(--muted); + font-size: 0.8rem; +} + +.site-footer p { + display: flex; + align-items: center; + gap: 0.5rem; +} + +.dialog-backdrop { + position: fixed; + z-index: 50; + inset: 0; + display: grid; + place-items: center; + padding: 1rem; + background: rgba(5, 9, 22, 0.56); + backdrop-filter: blur(5px); +} + +.preferences-panel { + width: min(560px, 100%); + max-height: calc(100vh - 2rem); + overflow: auto; + padding: 1.5rem; + border: 1px solid var(--line); + border-radius: 1.2rem; + background: var(--surface); + box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28); +} + +.preferences-panel > header { + display: flex; + align-items: flex-start; + justify-content: space-between; + gap: 1rem; +} + +.preferences-panel h2 { + margin: 0; + font-family: Inter, Avenir, 'Segoe UI', sans-serif; + letter-spacing: -0.025em; +} + +.preferences-panel .eyebrow { + margin-bottom: 0.5rem; +} + +.close-button { + flex: 0 0 auto; + background: var(--surface-soft); + color: var(--text); + font-size: 1.3rem; +} + +.theme-choice { + margin: 1.5rem 0; + padding: 0; + border: 0; +} + +.theme-choice legend { + margin-bottom: 0.6rem; + color: var(--muted); + font-size: 0.78rem; + font-weight: 700; + text-transform: uppercase; +} + +.theme-choice > div { + display: grid; + grid-template-columns: repeat(3, 1fr); + gap: 0.45rem; + padding: 0.35rem; + border-radius: 0.75rem; + background: var(--surface-soft); +} + +.theme-choice button { + padding: 0.62rem; + border: 0; + border-radius: 0.5rem; + background: transparent; + cursor: pointer; +} + +.theme-choice button.is-selected { + background: var(--surface); + color: var(--brand); + box-shadow: 0 2px 8px rgba(20, 30, 60, 0.09); + font-weight: 700; +} + +.preference-summary { + display: grid; + grid-template-columns: repeat(3, 1fr); + gap: 0.6rem; +} + +.preference-summary > div { + display: grid; + gap: 0.2rem; + padding: 0.9rem; + border: 1px solid var(--line); + border-radius: 0.7rem; + text-align: center; +} + +.preference-summary strong { + font-family: Inter, Avenir, 'Segoe UI', sans-serif; + font-size: 1.25rem; +} + +.preference-summary span, +.preferences-copy, +.action-message { + color: var(--muted); + font-size: 0.8rem; +} + +.preferences-copy { + margin: 1.1rem 0; + line-height: 1.55; +} + +.preferences-actions { + display: flex; + flex-wrap: wrap; + gap: 0.55rem; +} + +.preferences-actions button { + padding: 0.62rem 0.78rem; +} + +.preferences-actions .danger-button { + margin-left: auto; + color: var(--danger); +} + +.action-message { + min-height: 1.2em; + margin: 0.8rem 0 0; +} + +.inline-warning { + padding: 0.7rem 0.8rem; + border-radius: 0.6rem; + background: color-mix(in srgb, var(--danger) 8%, var(--surface)); + color: var(--danger); + font-size: 0.82rem; +} + +.visually-hidden { + position: absolute !important; + width: 1px !important; + height: 1px !important; + padding: 0 !important; + overflow: hidden !important; + clip: rect(0, 0, 0, 0) !important; + white-space: nowrap !important; + border: 0 !important; +} + +@media (max-width: 700px) { + .header-inner, + main, + .site-footer { + width: min(100% - 1.4rem, 1160px); + } + + .header-inner { + min-height: 66px; + } + + .settings-button { + font-size: 0; + } + + .settings-button span { + font-size: 1.15rem; + } + + .hero { + padding-top: 3.8rem; + } + + .tool-controls { + align-items: stretch; + flex-direction: column; + } + + .search-field, + .category-field { + width: 100%; + } + + .hidden-toggle { + margin: 0.25rem 0; + } + + .app-card { + min-height: 320px; + } + + .site-footer { + min-height: 130px; + align-items: flex-start; + flex-direction: column; + justify-content: center; + } +} + +@media (prefers-reduced-motion: reduce) { + *, + *::before, + *::after { + scroll-behavior: auto !important; + animation-duration: 0.01ms !important; + animation-iteration-count: 1 !important; + transition-duration: 0.01ms !important; + } +} diff --git a/src/test/fixtures.ts b/src/test/fixtures.ts new file mode 100644 index 0000000..4ae6bdb --- /dev/null +++ b/src/test/fixtures.ts @@ -0,0 +1,61 @@ +import type { + ToolboxAppManifest, + ToolboxCatalog, +} from '@add-ideas/toolbox-contract'; + +export const pdfManifest: ToolboxAppManifest = { + schemaVersion: 1, + id: 'de.add-ideas.pdf-tools', + name: 'PDF Workbench', + version: '0.3.4', + description: 'Page-level PDF operations performed locally in the browser.', + entry: './', + icon: './favicon.svg', + categories: ['documents', 'pdf'], + tags: ['merge', 'split'], + integration: { + contextVersion: 1, + launchModes: ['navigate', 'new-tab'], + embedding: 'unsupported', + }, + requirements: { + secureContext: true, + workers: true, + indexedDb: true, + crossOriginIsolated: false, + }, + privacy: { + processing: 'local', + fileUploads: false, + telemetry: false, + }, + source: { + repository: 'https://git.add-ideas.de/zemion/pdf-tools', + license: 'AGPL-3.0-only', + }, +}; + +export const catalogue: ToolboxCatalog = { + schemaVersion: 1, + id: 'de.add-ideas.toolbox', + name: 'add·ideas Toolbox', + home: './', + theme: { mode: 'system', brand: 'add·ideas' }, + apps: [{ manifest: './apps/pdf/toolbox-app.json', enabled: true }], +}; + +export function catalogueFetch(overrides: Record = {}) { + return async (input: string | URL | Request): Promise => { + const url = new URL( + input instanceof Request ? input.url : String(input), + document.baseURI + ); + const custom = overrides[url.pathname]; + if (custom) return custom.clone(); + if (url.pathname.endsWith('/toolbox.catalog.json')) + return Response.json(catalogue); + if (url.pathname.endsWith('/apps/pdf/toolbox-app.json')) + return Response.json(pdfManifest); + return new Response('Not found', { status: 404 }); + }; +} diff --git a/src/test/setup.ts b/src/test/setup.ts new file mode 100644 index 0000000..0f0b399 --- /dev/null +++ b/src/test/setup.ts @@ -0,0 +1,10 @@ +import '@testing-library/jest-dom/vitest'; +import { cleanup } from '@testing-library/react'; +import { afterEach } from 'vitest'; + +afterEach(() => { + cleanup(); + if (typeof localStorage !== 'undefined') localStorage.clear(); + if (typeof document !== 'undefined') + document.documentElement.removeAttribute('data-theme'); +}); diff --git a/src/types.ts b/src/types.ts new file mode 100644 index 0000000..dd0b690 --- /dev/null +++ b/src/types.ts @@ -0,0 +1,39 @@ +import type { + ToolboxAppManifest, + ToolboxCatalog, + ToolboxRequirements, +} from '@add-ideas/toolbox-contract'; + +export type ThemeMode = ToolboxCatalog['theme']['mode']; + +export interface ResolvedApp { + id: string; + name: string; + version?: string; + description: string; + entryUrl: string; + iconUrl?: string; + categories: readonly string[]; + tags: readonly string[]; + launchModes: ToolboxAppManifest['integration']['launchModes']; + isExternal: boolean; + manifestUrl?: string; + sourceUrl?: string; + requirements?: ToolboxRequirements; + privacy?: ToolboxAppManifest['privacy']; +} + +export interface UnavailableApp { + id: string; + name: string; + manifestUrl: string; + reason: string; +} + +export interface LoadedCatalogue { + catalogue: ToolboxCatalog; + catalogueUrl: URL; + homeUrl: string; + apps: ResolvedApp[]; + unavailable: UnavailableApp[]; +} diff --git a/src/usePreferences.ts b/src/usePreferences.ts new file mode 100644 index 0000000..dcfa1bb --- /dev/null +++ b/src/usePreferences.ts @@ -0,0 +1,47 @@ +import { useEffect, useState } from 'react'; +import { + PREFERENCES_KEY, + defaultPreferences, + readPreferences, + writePreferences, + type Preferences, +} from './preferences'; + +interface InitialPreferences { + preferences: Preferences; + storageAvailable: boolean; +} + +function initializePreferences(): InitialPreferences { + try { + const preferences = readPreferences(); + const probeKey = `${PREFERENCES_KEY}:probe`; + localStorage.setItem(probeKey, '1'); + localStorage.removeItem(probeKey); + return { preferences, storageAvailable: true }; + } catch { + return { preferences: { ...defaultPreferences }, storageAvailable: false }; + } +} + +export function usePreferences(): [ + Preferences, + (next: Preferences | ((current: Preferences) => Preferences)) => void, + boolean, +] { + const [initial] = useState(initializePreferences); + const [preferences, setPreferences] = useState( + initial.preferences + ); + + useEffect(() => { + try { + writePreferences(preferences); + } catch { + // The UI already reports storage that was unavailable during initialization. + // A later quota/privacy-mode failure leaves this session's in-memory choices intact. + } + }, [preferences]); + + return [preferences, setPreferences, initial.storageAvailable]; +} diff --git a/src/vite-env.d.ts b/src/vite-env.d.ts new file mode 100644 index 0000000..11f02fe --- /dev/null +++ b/src/vite-env.d.ts @@ -0,0 +1 @@ +/// diff --git a/tsconfig.app.json b/tsconfig.app.json new file mode 100644 index 0000000..4e333e3 --- /dev/null +++ b/tsconfig.app.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", + "target": "ES2022", + "useDefineForClassFields": true, + "lib": ["ES2022", "DOM", "DOM.Iterable"], + "allowJs": false, + "skipLibCheck": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "strict": true, + "forceConsistentCasingInFileNames": true, + "module": "ESNext", + "moduleResolution": "Bundler", + "resolveJsonModule": true, + "isolatedModules": true, + "noEmit": true, + "jsx": "react-jsx", + "noUncheckedIndexedAccess": true + }, + "include": ["src"] +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..1ffef60 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,7 @@ +{ + "files": [], + "references": [ + { "path": "./tsconfig.app.json" }, + { "path": "./tsconfig.node.json" } + ] +} diff --git a/tsconfig.node.json b/tsconfig.node.json new file mode 100644 index 0000000..3cc43d6 --- /dev/null +++ b/tsconfig.node.json @@ -0,0 +1,17 @@ +{ + "compilerOptions": { + "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo", + "target": "ES2023", + "lib": ["ES2023"], + "module": "ESNext", + "skipLibCheck": true, + "moduleResolution": "Bundler", + "allowImportingTsExtensions": true, + "verbatimModuleSyntax": true, + "moduleDetection": "force", + "noEmit": true, + "strict": true, + "types": ["node"] + }, + "include": ["vite.config.ts", "eslint.config.mjs"] +} diff --git a/vite.config.ts b/vite.config.ts new file mode 100644 index 0000000..09e8d2b --- /dev/null +++ b/vite.config.ts @@ -0,0 +1,14 @@ +/// +import { defineConfig } from 'vite'; +import react from '@vitejs/plugin-react'; + +export default defineConfig({ + base: './', + plugins: [react()], + test: { + environment: 'jsdom', + setupFiles: './src/test/setup.ts', + css: true, + restoreMocks: true, + }, +});