├── .eslintrc.js
├── .gitignore
├── .prettierrc
├── .vscode
├── launch.json
└── settings.json
├── CHANGELOG.md
├── LICENSE
├── README.md
├── package.json
├── pnpm-lock.yaml
├── src
├── conversion.ts
├── format.ts
├── index.ts
├── mirror.ts
├── parsing.ts
└── supernote.d.ts
├── tests
├── input
│ ├── 1to10.note
│ ├── README.md
│ ├── a5x-2.14.28.note
│ ├── horizontal.note
│ ├── manta.note
│ ├── nomad-3.15.27-blank-2p.note
│ ├── nomad-3.15.27-blank-shapes-and-RTR.note
│ ├── rtr.note
│ ├── test.note
│ ├── turkish.note
│ └── unknown-color.note
├── main.test.ts
└── output
│ └── .gitkeep
└── tsconfig.json
/.eslintrc.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | "env": {
3 | "browser": true,
4 | "es2021": true
5 | },
6 | "extends": [
7 | "eslint:recommended",
8 | "plugin:@typescript-eslint/recommended"
9 | ],
10 | "overrides": [
11 | {
12 | "env": {
13 | "node": false
14 | },
15 | "files": [
16 | ".eslintrc.{js,cjs}"
17 | ],
18 | "parserOptions": {
19 | "sourceType": "script"
20 | }
21 | }
22 | ],
23 | "parser": "@typescript-eslint/parser",
24 | "parserOptions": {
25 | "ecmaVersion": "latest",
26 | "sourceType": "module"
27 | },
28 | "plugins": [
29 | "@typescript-eslint"
30 | ],
31 | "rules": {
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | lib/*
2 | node_modules/
3 | tests/output/*.png
4 | tests/output/*.jpg
5 | tests/output/*.cpuprofile
6 | *.DS_Store*
7 | package-lock.json
8 |
--------------------------------------------------------------------------------
/.prettierrc:
--------------------------------------------------------------------------------
1 | {
2 | "singleQuote": true,
3 | "semi": true,
4 | "trailingComma": "all",
5 | "useTabs": true
6 | }
7 |
--------------------------------------------------------------------------------
/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "0.2.0",
3 | "configurations": [
4 | {
5 | "type": "node",
6 | "request": "launch",
7 | "name": "Jest All",
8 | "program": "${workspaceFolder}/node_modules/jest/bin/jest",
9 | "args": ["--runInBand"],
10 | "console": "integratedTerminal",
11 | "internalConsoleOptions": "neverOpen"
12 | },
13 | {
14 | "type": "node",
15 | "request": "launch",
16 | "name": "Jest Current File",
17 | "program": "${workspaceFolder}/node_modules/jest/bin/jest",
18 | "args": ["${relativeFile}", "--config=${workspaceFolder}/jest.config.js"],
19 | "console": "integratedTerminal",
20 | "internalConsoleOptions": "neverOpen"
21 | }
22 | ]
23 | }
24 |
--------------------------------------------------------------------------------
/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "editor.formatOnSave": true
3 | }
--------------------------------------------------------------------------------
/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # Changelog
2 |
3 | ## [2022-08-11] - 0.1.0
4 |
5 | ### Changed
6 |
7 | - First feature release.
8 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 | supernote
635 | Copyright (C) 2022 Tiemen Schuijbroek
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see .
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | Copyright (C) 2022 Tiemen Schuijbroek
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | .
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | .
675 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Supernote file-format support
2 |
3 | This library uses [image-js](https://github.com/image-js/image-js) and can be used inside of browser environments and/or node.
4 |
5 | Ratta Supernote has often commented that the file-format is yet unstable and shouldn't be much relied upon (yet). Please keep this in mind.
6 |
7 | For some quick snippets, take a look at the [smoke tests](./tests/main.test.ts).
8 |
9 | ## Developer Notes
10 |
11 | ### Test Individual Suite
12 |
13 | ```
14 | npx jest -t 'manta'
15 | ```
16 |
17 | ### Publish
18 |
19 | ```
20 | npm version patch
21 | npm run build
22 | npm publish
23 | ```
24 |
25 | ## Thank You
26 |
27 | - Thank you to [Tiemen Schuijbroek](https://gitlab.com/Tiemen/supernote) for developing the initial supernote Typescript library I forked.
28 | - Heavily inspired by the [Python implementation by jya-dev](https://github.com/jya-dev/supernote-tool). This one currently only supports the X series notebooks.
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "supernote-typescript",
3 | "version": "0.2.4",
4 | "description": "Supernote file-format support.",
5 | "main": "lib/index.js",
6 | "typings": "lib/index.d.ts",
7 | "files": [
8 | "lib"
9 | ],
10 | "scripts": {
11 | "build": "tsc",
12 | "test": "jest",
13 | "test-watch": "jest --watch",
14 | "test-mirror": "jest --watch -t mirror",
15 | "coverage": "jest --coverage",
16 | "prettier-format": "prettier --config .prettierrc 'src/**/*.ts' --write"
17 | },
18 | "repository": {
19 | "type": "git",
20 | "url": "git+https://github.com/philips/supernote-typescript.git"
21 | },
22 | "keywords": [
23 | "supernote",
24 | "typescript",
25 | "library"
26 | ],
27 | "author": "Brandon Philips",
28 | "license": "GPL-3.0-or-later",
29 | "bugs": {
30 | "url": "https://github.com/philips/supernote-typescript/issues"
31 | },
32 | "homepage": "https://gitlab.com/philips/supernote-typescript",
33 | "devDependencies": {
34 | "@types/color": "^3.0.3",
35 | "@types/fs-extra": "^9.0.13",
36 | "@types/jest": "^28.1.6",
37 | "@types/node": "^18.6.5",
38 | "@types/sharp": "^0.30.5",
39 | "@typescript-eslint/eslint-plugin": "^7.4.0",
40 | "@typescript-eslint/parser": "^7.4.0",
41 | "eslint": "^8.57.0",
42 | "eslint-plugin-node": "^11.1.0",
43 | "jest": "^28.1.3",
44 | "prettier": "^3.2.5",
45 | "ts-jest": "^28.0.7",
46 | "typescript": "^4.7.4",
47 | "v8-profiler-next": "^1.10.0"
48 | },
49 | "jest": {
50 | "transform": {
51 | "^.+\\.tsx?$": "ts-jest"
52 | },
53 | "moduleFileExtensions": [
54 | "ts",
55 | "js"
56 | ],
57 | "moduleNameMapper": {
58 | "^@/(.*)$": "/$1",
59 | "^~/(.*)$": "/src/$1"
60 | },
61 | "testRegex": "^.+\\.test\\.ts$"
62 | },
63 | "dependencies": {
64 | "color": "^4.2.3",
65 | "fs-extra": "^10.1.0",
66 | "image-js": "^0.35.5"
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/pnpm-lock.yaml:
--------------------------------------------------------------------------------
1 | lockfileVersion: 5.4
2 |
3 | specifiers:
4 | '@types/color': ^3.0.3
5 | '@types/fs-extra': ^9.0.13
6 | '@types/jest': ^28.1.6
7 | '@types/node': ^18.6.5
8 | '@types/sharp': ^0.30.5
9 | color: ^4.2.3
10 | fs-extra: ^10.1.0
11 | jest: ^28.1.3
12 | sharp: ^0.30.7
13 | ts-jest: ^28.0.7
14 | typescript: ^4.7.4
15 |
16 | dependencies:
17 | color: 4.2.3
18 | fs-extra: 10.1.0
19 | sharp: 0.30.7
20 |
21 | devDependencies:
22 | '@types/color': 3.0.3
23 | '@types/fs-extra': 9.0.13
24 | '@types/jest': 28.1.6
25 | '@types/node': 18.6.5
26 | '@types/sharp': 0.30.5
27 | jest: 28.1.3_@types+node@18.6.5
28 | ts-jest: 28.0.7_bi2kohzqnxavgozw3csgny5hju
29 | typescript: 4.7.4
30 |
31 | packages:
32 |
33 | /@ampproject/remapping/2.2.0:
34 | resolution: {integrity: sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w==}
35 | engines: {node: '>=6.0.0'}
36 | dependencies:
37 | '@jridgewell/gen-mapping': 0.1.1
38 | '@jridgewell/trace-mapping': 0.3.14
39 | dev: true
40 |
41 | /@babel/code-frame/7.18.6:
42 | resolution: {integrity: sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==}
43 | engines: {node: '>=6.9.0'}
44 | dependencies:
45 | '@babel/highlight': 7.18.6
46 | dev: true
47 |
48 | /@babel/compat-data/7.18.8:
49 | resolution: {integrity: sha512-HSmX4WZPPK3FUxYp7g2T6EyO8j96HlZJlxmKPSh6KAcqwyDrfx7hKjXpAW/0FhFfTJsR0Yt4lAjLI2coMptIHQ==}
50 | engines: {node: '>=6.9.0'}
51 | dev: true
52 |
53 | /@babel/core/7.18.10:
54 | resolution: {integrity: sha512-JQM6k6ENcBFKVtWvLavlvi/mPcpYZ3+R+2EySDEMSMbp7Mn4FexlbbJVrx2R7Ijhr01T8gyqrOaABWIOgxeUyw==}
55 | engines: {node: '>=6.9.0'}
56 | dependencies:
57 | '@ampproject/remapping': 2.2.0
58 | '@babel/code-frame': 7.18.6
59 | '@babel/generator': 7.18.12
60 | '@babel/helper-compilation-targets': 7.18.9_@babel+core@7.18.10
61 | '@babel/helper-module-transforms': 7.18.9
62 | '@babel/helpers': 7.18.9
63 | '@babel/parser': 7.18.11
64 | '@babel/template': 7.18.10
65 | '@babel/traverse': 7.18.11
66 | '@babel/types': 7.18.10
67 | convert-source-map: 1.8.0
68 | debug: 4.3.4
69 | gensync: 1.0.0-beta.2
70 | json5: 2.2.1
71 | semver: 6.3.0
72 | transitivePeerDependencies:
73 | - supports-color
74 | dev: true
75 |
76 | /@babel/generator/7.18.12:
77 | resolution: {integrity: sha512-dfQ8ebCN98SvyL7IxNMCUtZQSq5R7kxgN+r8qYTGDmmSion1hX2C0zq2yo1bsCDhXixokv1SAWTZUMYbO/V5zg==}
78 | engines: {node: '>=6.9.0'}
79 | dependencies:
80 | '@babel/types': 7.18.10
81 | '@jridgewell/gen-mapping': 0.3.2
82 | jsesc: 2.5.2
83 | dev: true
84 |
85 | /@babel/helper-compilation-targets/7.18.9_@babel+core@7.18.10:
86 | resolution: {integrity: sha512-tzLCyVmqUiFlcFoAPLA/gL9TeYrF61VLNtb+hvkuVaB5SUjW7jcfrglBIX1vUIoT7CLP3bBlIMeyEsIl2eFQNg==}
87 | engines: {node: '>=6.9.0'}
88 | peerDependencies:
89 | '@babel/core': ^7.0.0
90 | dependencies:
91 | '@babel/compat-data': 7.18.8
92 | '@babel/core': 7.18.10
93 | '@babel/helper-validator-option': 7.18.6
94 | browserslist: 4.21.3
95 | semver: 6.3.0
96 | dev: true
97 |
98 | /@babel/helper-environment-visitor/7.18.9:
99 | resolution: {integrity: sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg==}
100 | engines: {node: '>=6.9.0'}
101 | dev: true
102 |
103 | /@babel/helper-function-name/7.18.9:
104 | resolution: {integrity: sha512-fJgWlZt7nxGksJS9a0XdSaI4XvpExnNIgRP+rVefWh5U7BL8pPuir6SJUmFKRfjWQ51OtWSzwOxhaH/EBWWc0A==}
105 | engines: {node: '>=6.9.0'}
106 | dependencies:
107 | '@babel/template': 7.18.10
108 | '@babel/types': 7.18.10
109 | dev: true
110 |
111 | /@babel/helper-hoist-variables/7.18.6:
112 | resolution: {integrity: sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==}
113 | engines: {node: '>=6.9.0'}
114 | dependencies:
115 | '@babel/types': 7.18.10
116 | dev: true
117 |
118 | /@babel/helper-module-imports/7.18.6:
119 | resolution: {integrity: sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==}
120 | engines: {node: '>=6.9.0'}
121 | dependencies:
122 | '@babel/types': 7.18.10
123 | dev: true
124 |
125 | /@babel/helper-module-transforms/7.18.9:
126 | resolution: {integrity: sha512-KYNqY0ICwfv19b31XzvmI/mfcylOzbLtowkw+mfvGPAQ3kfCnMLYbED3YecL5tPd8nAYFQFAd6JHp2LxZk/J1g==}
127 | engines: {node: '>=6.9.0'}
128 | dependencies:
129 | '@babel/helper-environment-visitor': 7.18.9
130 | '@babel/helper-module-imports': 7.18.6
131 | '@babel/helper-simple-access': 7.18.6
132 | '@babel/helper-split-export-declaration': 7.18.6
133 | '@babel/helper-validator-identifier': 7.18.6
134 | '@babel/template': 7.18.10
135 | '@babel/traverse': 7.18.11
136 | '@babel/types': 7.18.10
137 | transitivePeerDependencies:
138 | - supports-color
139 | dev: true
140 |
141 | /@babel/helper-plugin-utils/7.18.9:
142 | resolution: {integrity: sha512-aBXPT3bmtLryXaoJLyYPXPlSD4p1ld9aYeR+sJNOZjJJGiOpb+fKfh3NkcCu7J54nUJwCERPBExCCpyCOHnu/w==}
143 | engines: {node: '>=6.9.0'}
144 | dev: true
145 |
146 | /@babel/helper-simple-access/7.18.6:
147 | resolution: {integrity: sha512-iNpIgTgyAvDQpDj76POqg+YEt8fPxx3yaNBg3S30dxNKm2SWfYhD0TGrK/Eu9wHpUW63VQU894TsTg+GLbUa1g==}
148 | engines: {node: '>=6.9.0'}
149 | dependencies:
150 | '@babel/types': 7.18.10
151 | dev: true
152 |
153 | /@babel/helper-split-export-declaration/7.18.6:
154 | resolution: {integrity: sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==}
155 | engines: {node: '>=6.9.0'}
156 | dependencies:
157 | '@babel/types': 7.18.10
158 | dev: true
159 |
160 | /@babel/helper-string-parser/7.18.10:
161 | resolution: {integrity: sha512-XtIfWmeNY3i4t7t4D2t02q50HvqHybPqW2ki1kosnvWCwuCMeo81Jf0gwr85jy/neUdg5XDdeFE/80DXiO+njw==}
162 | engines: {node: '>=6.9.0'}
163 | dev: true
164 |
165 | /@babel/helper-validator-identifier/7.18.6:
166 | resolution: {integrity: sha512-MmetCkz9ej86nJQV+sFCxoGGrUbU3q02kgLciwkrt9QqEB7cP39oKEY0PakknEO0Gu20SskMRi+AYZ3b1TpN9g==}
167 | engines: {node: '>=6.9.0'}
168 | dev: true
169 |
170 | /@babel/helper-validator-option/7.18.6:
171 | resolution: {integrity: sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw==}
172 | engines: {node: '>=6.9.0'}
173 | dev: true
174 |
175 | /@babel/helpers/7.18.9:
176 | resolution: {integrity: sha512-Jf5a+rbrLoR4eNdUmnFu8cN5eNJT6qdTdOg5IHIzq87WwyRw9PwguLFOWYgktN/60IP4fgDUawJvs7PjQIzELQ==}
177 | engines: {node: '>=6.9.0'}
178 | dependencies:
179 | '@babel/template': 7.18.10
180 | '@babel/traverse': 7.18.11
181 | '@babel/types': 7.18.10
182 | transitivePeerDependencies:
183 | - supports-color
184 | dev: true
185 |
186 | /@babel/highlight/7.18.6:
187 | resolution: {integrity: sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==}
188 | engines: {node: '>=6.9.0'}
189 | dependencies:
190 | '@babel/helper-validator-identifier': 7.18.6
191 | chalk: 2.4.2
192 | js-tokens: 4.0.0
193 | dev: true
194 |
195 | /@babel/parser/7.18.11:
196 | resolution: {integrity: sha512-9JKn5vN+hDt0Hdqn1PiJ2guflwP+B6Ga8qbDuoF0PzzVhrzsKIJo8yGqVk6CmMHiMei9w1C1Bp9IMJSIK+HPIQ==}
197 | engines: {node: '>=6.0.0'}
198 | hasBin: true
199 | dependencies:
200 | '@babel/types': 7.18.10
201 | dev: true
202 |
203 | /@babel/plugin-syntax-async-generators/7.8.4_@babel+core@7.18.10:
204 | resolution: {integrity: sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==}
205 | peerDependencies:
206 | '@babel/core': ^7.0.0-0
207 | dependencies:
208 | '@babel/core': 7.18.10
209 | '@babel/helper-plugin-utils': 7.18.9
210 | dev: true
211 |
212 | /@babel/plugin-syntax-bigint/7.8.3_@babel+core@7.18.10:
213 | resolution: {integrity: sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==}
214 | peerDependencies:
215 | '@babel/core': ^7.0.0-0
216 | dependencies:
217 | '@babel/core': 7.18.10
218 | '@babel/helper-plugin-utils': 7.18.9
219 | dev: true
220 |
221 | /@babel/plugin-syntax-class-properties/7.12.13_@babel+core@7.18.10:
222 | resolution: {integrity: sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==}
223 | peerDependencies:
224 | '@babel/core': ^7.0.0-0
225 | dependencies:
226 | '@babel/core': 7.18.10
227 | '@babel/helper-plugin-utils': 7.18.9
228 | dev: true
229 |
230 | /@babel/plugin-syntax-import-meta/7.10.4_@babel+core@7.18.10:
231 | resolution: {integrity: sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==}
232 | peerDependencies:
233 | '@babel/core': ^7.0.0-0
234 | dependencies:
235 | '@babel/core': 7.18.10
236 | '@babel/helper-plugin-utils': 7.18.9
237 | dev: true
238 |
239 | /@babel/plugin-syntax-json-strings/7.8.3_@babel+core@7.18.10:
240 | resolution: {integrity: sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==}
241 | peerDependencies:
242 | '@babel/core': ^7.0.0-0
243 | dependencies:
244 | '@babel/core': 7.18.10
245 | '@babel/helper-plugin-utils': 7.18.9
246 | dev: true
247 |
248 | /@babel/plugin-syntax-logical-assignment-operators/7.10.4_@babel+core@7.18.10:
249 | resolution: {integrity: sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==}
250 | peerDependencies:
251 | '@babel/core': ^7.0.0-0
252 | dependencies:
253 | '@babel/core': 7.18.10
254 | '@babel/helper-plugin-utils': 7.18.9
255 | dev: true
256 |
257 | /@babel/plugin-syntax-nullish-coalescing-operator/7.8.3_@babel+core@7.18.10:
258 | resolution: {integrity: sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==}
259 | peerDependencies:
260 | '@babel/core': ^7.0.0-0
261 | dependencies:
262 | '@babel/core': 7.18.10
263 | '@babel/helper-plugin-utils': 7.18.9
264 | dev: true
265 |
266 | /@babel/plugin-syntax-numeric-separator/7.10.4_@babel+core@7.18.10:
267 | resolution: {integrity: sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==}
268 | peerDependencies:
269 | '@babel/core': ^7.0.0-0
270 | dependencies:
271 | '@babel/core': 7.18.10
272 | '@babel/helper-plugin-utils': 7.18.9
273 | dev: true
274 |
275 | /@babel/plugin-syntax-object-rest-spread/7.8.3_@babel+core@7.18.10:
276 | resolution: {integrity: sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==}
277 | peerDependencies:
278 | '@babel/core': ^7.0.0-0
279 | dependencies:
280 | '@babel/core': 7.18.10
281 | '@babel/helper-plugin-utils': 7.18.9
282 | dev: true
283 |
284 | /@babel/plugin-syntax-optional-catch-binding/7.8.3_@babel+core@7.18.10:
285 | resolution: {integrity: sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==}
286 | peerDependencies:
287 | '@babel/core': ^7.0.0-0
288 | dependencies:
289 | '@babel/core': 7.18.10
290 | '@babel/helper-plugin-utils': 7.18.9
291 | dev: true
292 |
293 | /@babel/plugin-syntax-optional-chaining/7.8.3_@babel+core@7.18.10:
294 | resolution: {integrity: sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==}
295 | peerDependencies:
296 | '@babel/core': ^7.0.0-0
297 | dependencies:
298 | '@babel/core': 7.18.10
299 | '@babel/helper-plugin-utils': 7.18.9
300 | dev: true
301 |
302 | /@babel/plugin-syntax-top-level-await/7.14.5_@babel+core@7.18.10:
303 | resolution: {integrity: sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==}
304 | engines: {node: '>=6.9.0'}
305 | peerDependencies:
306 | '@babel/core': ^7.0.0-0
307 | dependencies:
308 | '@babel/core': 7.18.10
309 | '@babel/helper-plugin-utils': 7.18.9
310 | dev: true
311 |
312 | /@babel/plugin-syntax-typescript/7.18.6_@babel+core@7.18.10:
313 | resolution: {integrity: sha512-mAWAuq4rvOepWCBid55JuRNvpTNf2UGVgoz4JV0fXEKolsVZDzsa4NqCef758WZJj/GDu0gVGItjKFiClTAmZA==}
314 | engines: {node: '>=6.9.0'}
315 | peerDependencies:
316 | '@babel/core': ^7.0.0-0
317 | dependencies:
318 | '@babel/core': 7.18.10
319 | '@babel/helper-plugin-utils': 7.18.9
320 | dev: true
321 |
322 | /@babel/template/7.18.10:
323 | resolution: {integrity: sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA==}
324 | engines: {node: '>=6.9.0'}
325 | dependencies:
326 | '@babel/code-frame': 7.18.6
327 | '@babel/parser': 7.18.11
328 | '@babel/types': 7.18.10
329 | dev: true
330 |
331 | /@babel/traverse/7.18.11:
332 | resolution: {integrity: sha512-TG9PiM2R/cWCAy6BPJKeHzNbu4lPzOSZpeMfeNErskGpTJx6trEvFaVCbDvpcxwy49BKWmEPwiW8mrysNiDvIQ==}
333 | engines: {node: '>=6.9.0'}
334 | dependencies:
335 | '@babel/code-frame': 7.18.6
336 | '@babel/generator': 7.18.12
337 | '@babel/helper-environment-visitor': 7.18.9
338 | '@babel/helper-function-name': 7.18.9
339 | '@babel/helper-hoist-variables': 7.18.6
340 | '@babel/helper-split-export-declaration': 7.18.6
341 | '@babel/parser': 7.18.11
342 | '@babel/types': 7.18.10
343 | debug: 4.3.4
344 | globals: 11.12.0
345 | transitivePeerDependencies:
346 | - supports-color
347 | dev: true
348 |
349 | /@babel/types/7.18.10:
350 | resolution: {integrity: sha512-MJvnbEiiNkpjo+LknnmRrqbY1GPUUggjv+wQVjetM/AONoupqRALB7I6jGqNUAZsKcRIEu2J6FRFvsczljjsaQ==}
351 | engines: {node: '>=6.9.0'}
352 | dependencies:
353 | '@babel/helper-string-parser': 7.18.10
354 | '@babel/helper-validator-identifier': 7.18.6
355 | to-fast-properties: 2.0.0
356 | dev: true
357 |
358 | /@bcoe/v8-coverage/0.2.3:
359 | resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==}
360 | dev: true
361 |
362 | /@istanbuljs/load-nyc-config/1.1.0:
363 | resolution: {integrity: sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==}
364 | engines: {node: '>=8'}
365 | dependencies:
366 | camelcase: 5.3.1
367 | find-up: 4.1.0
368 | get-package-type: 0.1.0
369 | js-yaml: 3.14.1
370 | resolve-from: 5.0.0
371 | dev: true
372 |
373 | /@istanbuljs/schema/0.1.3:
374 | resolution: {integrity: sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==}
375 | engines: {node: '>=8'}
376 | dev: true
377 |
378 | /@jest/console/28.1.3:
379 | resolution: {integrity: sha512-QPAkP5EwKdK/bxIr6C1I4Vs0rm2nHiANzj/Z5X2JQkrZo6IqvC4ldZ9K95tF0HdidhA8Bo6egxSzUFPYKcEXLw==}
380 | engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
381 | dependencies:
382 | '@jest/types': 28.1.3
383 | '@types/node': 18.6.5
384 | chalk: 4.1.2
385 | jest-message-util: 28.1.3
386 | jest-util: 28.1.3
387 | slash: 3.0.0
388 | dev: true
389 |
390 | /@jest/core/28.1.3:
391 | resolution: {integrity: sha512-CIKBrlaKOzA7YG19BEqCw3SLIsEwjZkeJzf5bdooVnW4bH5cktqe3JX+G2YV1aK5vP8N9na1IGWFzYaTp6k6NA==}
392 | engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
393 | peerDependencies:
394 | node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0
395 | peerDependenciesMeta:
396 | node-notifier:
397 | optional: true
398 | dependencies:
399 | '@jest/console': 28.1.3
400 | '@jest/reporters': 28.1.3
401 | '@jest/test-result': 28.1.3
402 | '@jest/transform': 28.1.3
403 | '@jest/types': 28.1.3
404 | '@types/node': 18.6.5
405 | ansi-escapes: 4.3.2
406 | chalk: 4.1.2
407 | ci-info: 3.3.2
408 | exit: 0.1.2
409 | graceful-fs: 4.2.10
410 | jest-changed-files: 28.1.3
411 | jest-config: 28.1.3_@types+node@18.6.5
412 | jest-haste-map: 28.1.3
413 | jest-message-util: 28.1.3
414 | jest-regex-util: 28.0.2
415 | jest-resolve: 28.1.3
416 | jest-resolve-dependencies: 28.1.3
417 | jest-runner: 28.1.3
418 | jest-runtime: 28.1.3
419 | jest-snapshot: 28.1.3
420 | jest-util: 28.1.3
421 | jest-validate: 28.1.3
422 | jest-watcher: 28.1.3
423 | micromatch: 4.0.5
424 | pretty-format: 28.1.3
425 | rimraf: 3.0.2
426 | slash: 3.0.0
427 | strip-ansi: 6.0.1
428 | transitivePeerDependencies:
429 | - supports-color
430 | - ts-node
431 | dev: true
432 |
433 | /@jest/environment/28.1.3:
434 | resolution: {integrity: sha512-1bf40cMFTEkKyEf585R9Iz1WayDjHoHqvts0XFYEqyKM3cFWDpeMoqKKTAF9LSYQModPUlh8FKptoM2YcMWAXA==}
435 | engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
436 | dependencies:
437 | '@jest/fake-timers': 28.1.3
438 | '@jest/types': 28.1.3
439 | '@types/node': 18.6.5
440 | jest-mock: 28.1.3
441 | dev: true
442 |
443 | /@jest/expect-utils/28.1.3:
444 | resolution: {integrity: sha512-wvbi9LUrHJLn3NlDW6wF2hvIMtd4JUl2QNVrjq+IBSHirgfrR3o9RnVtxzdEGO2n9JyIWwHnLfby5KzqBGg2YA==}
445 | engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
446 | dependencies:
447 | jest-get-type: 28.0.2
448 | dev: true
449 |
450 | /@jest/expect/28.1.3:
451 | resolution: {integrity: sha512-lzc8CpUbSoE4dqT0U+g1qODQjBRHPpCPXissXD4mS9+sWQdmmpeJ9zSH1rS1HEkrsMN0fb7nKrJ9giAR1d3wBw==}
452 | engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
453 | dependencies:
454 | expect: 28.1.3
455 | jest-snapshot: 28.1.3
456 | transitivePeerDependencies:
457 | - supports-color
458 | dev: true
459 |
460 | /@jest/fake-timers/28.1.3:
461 | resolution: {integrity: sha512-D/wOkL2POHv52h+ok5Oj/1gOG9HSywdoPtFsRCUmlCILXNn5eIWmcnd3DIiWlJnpGvQtmajqBP95Ei0EimxfLw==}
462 | engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
463 | dependencies:
464 | '@jest/types': 28.1.3
465 | '@sinonjs/fake-timers': 9.1.2
466 | '@types/node': 18.6.5
467 | jest-message-util: 28.1.3
468 | jest-mock: 28.1.3
469 | jest-util: 28.1.3
470 | dev: true
471 |
472 | /@jest/globals/28.1.3:
473 | resolution: {integrity: sha512-XFU4P4phyryCXu1pbcqMO0GSQcYe1IsalYCDzRNyhetyeyxMcIxa11qPNDpVNLeretItNqEmYYQn1UYz/5x1NA==}
474 | engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
475 | dependencies:
476 | '@jest/environment': 28.1.3
477 | '@jest/expect': 28.1.3
478 | '@jest/types': 28.1.3
479 | transitivePeerDependencies:
480 | - supports-color
481 | dev: true
482 |
483 | /@jest/reporters/28.1.3:
484 | resolution: {integrity: sha512-JuAy7wkxQZVNU/V6g9xKzCGC5LVXx9FDcABKsSXp5MiKPEE2144a/vXTEDoyzjUpZKfVwp08Wqg5A4WfTMAzjg==}
485 | engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
486 | peerDependencies:
487 | node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0
488 | peerDependenciesMeta:
489 | node-notifier:
490 | optional: true
491 | dependencies:
492 | '@bcoe/v8-coverage': 0.2.3
493 | '@jest/console': 28.1.3
494 | '@jest/test-result': 28.1.3
495 | '@jest/transform': 28.1.3
496 | '@jest/types': 28.1.3
497 | '@jridgewell/trace-mapping': 0.3.14
498 | '@types/node': 18.6.5
499 | chalk: 4.1.2
500 | collect-v8-coverage: 1.0.1
501 | exit: 0.1.2
502 | glob: 7.2.3
503 | graceful-fs: 4.2.10
504 | istanbul-lib-coverage: 3.2.0
505 | istanbul-lib-instrument: 5.2.0
506 | istanbul-lib-report: 3.0.0
507 | istanbul-lib-source-maps: 4.0.1
508 | istanbul-reports: 3.1.5
509 | jest-message-util: 28.1.3
510 | jest-util: 28.1.3
511 | jest-worker: 28.1.3
512 | slash: 3.0.0
513 | string-length: 4.0.2
514 | strip-ansi: 6.0.1
515 | terminal-link: 2.1.1
516 | v8-to-istanbul: 9.0.1
517 | transitivePeerDependencies:
518 | - supports-color
519 | dev: true
520 |
521 | /@jest/schemas/28.1.3:
522 | resolution: {integrity: sha512-/l/VWsdt/aBXgjshLWOFyFt3IVdYypu5y2Wn2rOO1un6nkqIn8SLXzgIMYXFyYsRWDyF5EthmKJMIdJvk08grg==}
523 | engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
524 | dependencies:
525 | '@sinclair/typebox': 0.24.27
526 | dev: true
527 |
528 | /@jest/source-map/28.1.2:
529 | resolution: {integrity: sha512-cV8Lx3BeStJb8ipPHnqVw/IM2VCMWO3crWZzYodSIkxXnRcXJipCdx1JCK0K5MsJJouZQTH73mzf4vgxRaH9ww==}
530 | engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
531 | dependencies:
532 | '@jridgewell/trace-mapping': 0.3.14
533 | callsites: 3.1.0
534 | graceful-fs: 4.2.10
535 | dev: true
536 |
537 | /@jest/test-result/28.1.3:
538 | resolution: {integrity: sha512-kZAkxnSE+FqE8YjW8gNuoVkkC9I7S1qmenl8sGcDOLropASP+BkcGKwhXoyqQuGOGeYY0y/ixjrd/iERpEXHNg==}
539 | engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
540 | dependencies:
541 | '@jest/console': 28.1.3
542 | '@jest/types': 28.1.3
543 | '@types/istanbul-lib-coverage': 2.0.4
544 | collect-v8-coverage: 1.0.1
545 | dev: true
546 |
547 | /@jest/test-sequencer/28.1.3:
548 | resolution: {integrity: sha512-NIMPEqqa59MWnDi1kvXXpYbqsfQmSJsIbnd85mdVGkiDfQ9WQQTXOLsvISUfonmnBT+w85WEgneCigEEdHDFxw==}
549 | engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
550 | dependencies:
551 | '@jest/test-result': 28.1.3
552 | graceful-fs: 4.2.10
553 | jest-haste-map: 28.1.3
554 | slash: 3.0.0
555 | dev: true
556 |
557 | /@jest/transform/28.1.3:
558 | resolution: {integrity: sha512-u5dT5di+oFI6hfcLOHGTAfmUxFRrjK+vnaP0kkVow9Md/M7V/MxqQMOz/VV25UZO8pzeA9PjfTpOu6BDuwSPQA==}
559 | engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
560 | dependencies:
561 | '@babel/core': 7.18.10
562 | '@jest/types': 28.1.3
563 | '@jridgewell/trace-mapping': 0.3.14
564 | babel-plugin-istanbul: 6.1.1
565 | chalk: 4.1.2
566 | convert-source-map: 1.8.0
567 | fast-json-stable-stringify: 2.1.0
568 | graceful-fs: 4.2.10
569 | jest-haste-map: 28.1.3
570 | jest-regex-util: 28.0.2
571 | jest-util: 28.1.3
572 | micromatch: 4.0.5
573 | pirates: 4.0.5
574 | slash: 3.0.0
575 | write-file-atomic: 4.0.1
576 | transitivePeerDependencies:
577 | - supports-color
578 | dev: true
579 |
580 | /@jest/types/28.1.3:
581 | resolution: {integrity: sha512-RyjiyMUZrKz/c+zlMFO1pm70DcIlST8AeWTkoUdZevew44wcNZQHsEVOiCVtgVnlFFD82FPaXycys58cf2muVQ==}
582 | engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
583 | dependencies:
584 | '@jest/schemas': 28.1.3
585 | '@types/istanbul-lib-coverage': 2.0.4
586 | '@types/istanbul-reports': 3.0.1
587 | '@types/node': 18.6.5
588 | '@types/yargs': 17.0.11
589 | chalk: 4.1.2
590 | dev: true
591 |
592 | /@jridgewell/gen-mapping/0.1.1:
593 | resolution: {integrity: sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w==}
594 | engines: {node: '>=6.0.0'}
595 | dependencies:
596 | '@jridgewell/set-array': 1.1.2
597 | '@jridgewell/sourcemap-codec': 1.4.14
598 | dev: true
599 |
600 | /@jridgewell/gen-mapping/0.3.2:
601 | resolution: {integrity: sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==}
602 | engines: {node: '>=6.0.0'}
603 | dependencies:
604 | '@jridgewell/set-array': 1.1.2
605 | '@jridgewell/sourcemap-codec': 1.4.14
606 | '@jridgewell/trace-mapping': 0.3.14
607 | dev: true
608 |
609 | /@jridgewell/resolve-uri/3.1.0:
610 | resolution: {integrity: sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==}
611 | engines: {node: '>=6.0.0'}
612 | dev: true
613 |
614 | /@jridgewell/set-array/1.1.2:
615 | resolution: {integrity: sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==}
616 | engines: {node: '>=6.0.0'}
617 | dev: true
618 |
619 | /@jridgewell/sourcemap-codec/1.4.14:
620 | resolution: {integrity: sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==}
621 | dev: true
622 |
623 | /@jridgewell/trace-mapping/0.3.14:
624 | resolution: {integrity: sha512-bJWEfQ9lPTvm3SneWwRFVLzrh6nhjwqw7TUFFBEMzwvg7t7PCDenf2lDwqo4NQXzdpgBXyFgDWnQA+2vkruksQ==}
625 | dependencies:
626 | '@jridgewell/resolve-uri': 3.1.0
627 | '@jridgewell/sourcemap-codec': 1.4.14
628 | dev: true
629 |
630 | /@sinclair/typebox/0.24.27:
631 | resolution: {integrity: sha512-K7C7IlQ3zLePEZleUN21ceBA2aLcMnLHTLph8QWk1JK37L90obdpY+QGY8bXMKxf1ht1Z0MNewvXxWv0oGDYFg==}
632 | dev: true
633 |
634 | /@sinonjs/commons/1.8.3:
635 | resolution: {integrity: sha512-xkNcLAn/wZaX14RPlwizcKicDk9G3F8m2nU3L7Ukm5zBgTwiT0wsoFAHx9Jq56fJA1z/7uKGtCRu16sOUCLIHQ==}
636 | dependencies:
637 | type-detect: 4.0.8
638 | dev: true
639 |
640 | /@sinonjs/fake-timers/9.1.2:
641 | resolution: {integrity: sha512-BPS4ynJW/o92PUR4wgriz2Ud5gpST5vz6GQfMixEDK0Z8ZCUv2M7SkBLykH56T++Xs+8ln9zTGbOvNGIe02/jw==}
642 | dependencies:
643 | '@sinonjs/commons': 1.8.3
644 | dev: true
645 |
646 | /@types/babel__core/7.1.19:
647 | resolution: {integrity: sha512-WEOTgRsbYkvA/KCsDwVEGkd7WAr1e3g31VHQ8zy5gul/V1qKullU/BU5I68X5v7V3GnB9eotmom4v5a5gjxorw==}
648 | dependencies:
649 | '@babel/parser': 7.18.11
650 | '@babel/types': 7.18.10
651 | '@types/babel__generator': 7.6.4
652 | '@types/babel__template': 7.4.1
653 | '@types/babel__traverse': 7.18.0
654 | dev: true
655 |
656 | /@types/babel__generator/7.6.4:
657 | resolution: {integrity: sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg==}
658 | dependencies:
659 | '@babel/types': 7.18.10
660 | dev: true
661 |
662 | /@types/babel__template/7.4.1:
663 | resolution: {integrity: sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==}
664 | dependencies:
665 | '@babel/parser': 7.18.11
666 | '@babel/types': 7.18.10
667 | dev: true
668 |
669 | /@types/babel__traverse/7.18.0:
670 | resolution: {integrity: sha512-v4Vwdko+pgymgS+A2UIaJru93zQd85vIGWObM5ekZNdXCKtDYqATlEYnWgfo86Q6I1Lh0oXnksDnMU1cwmlPDw==}
671 | dependencies:
672 | '@babel/types': 7.18.10
673 | dev: true
674 |
675 | /@types/color-convert/2.0.0:
676 | resolution: {integrity: sha512-m7GG7IKKGuJUXvkZ1qqG3ChccdIM/qBBo913z+Xft0nKCX4hAU/IxKwZBU4cpRZ7GS5kV4vOblUkILtSShCPXQ==}
677 | dependencies:
678 | '@types/color-name': 1.1.1
679 | dev: true
680 |
681 | /@types/color-name/1.1.1:
682 | resolution: {integrity: sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==}
683 | dev: true
684 |
685 | /@types/color/3.0.3:
686 | resolution: {integrity: sha512-X//qzJ3d3Zj82J9sC/C18ZY5f43utPbAJ6PhYt/M7uG6etcF6MRpKdN880KBy43B0BMzSfeT96MzrsNjFI3GbA==}
687 | dependencies:
688 | '@types/color-convert': 2.0.0
689 | dev: true
690 |
691 | /@types/fs-extra/9.0.13:
692 | resolution: {integrity: sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==}
693 | dependencies:
694 | '@types/node': 18.6.5
695 | dev: true
696 |
697 | /@types/graceful-fs/4.1.5:
698 | resolution: {integrity: sha512-anKkLmZZ+xm4p8JWBf4hElkM4XR+EZeA2M9BAkkTldmcyDY4mbdIJnRghDJH3Ov5ooY7/UAoENtmdMSkaAd7Cw==}
699 | dependencies:
700 | '@types/node': 18.6.5
701 | dev: true
702 |
703 | /@types/istanbul-lib-coverage/2.0.4:
704 | resolution: {integrity: sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==}
705 | dev: true
706 |
707 | /@types/istanbul-lib-report/3.0.0:
708 | resolution: {integrity: sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==}
709 | dependencies:
710 | '@types/istanbul-lib-coverage': 2.0.4
711 | dev: true
712 |
713 | /@types/istanbul-reports/3.0.1:
714 | resolution: {integrity: sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==}
715 | dependencies:
716 | '@types/istanbul-lib-report': 3.0.0
717 | dev: true
718 |
719 | /@types/jest/28.1.6:
720 | resolution: {integrity: sha512-0RbGAFMfcBJKOmqRazM8L98uokwuwD5F8rHrv/ZMbrZBwVOWZUyPG6VFNscjYr/vjM3Vu4fRrCPbOs42AfemaQ==}
721 | dependencies:
722 | jest-matcher-utils: 28.1.3
723 | pretty-format: 28.1.3
724 | dev: true
725 |
726 | /@types/node/18.6.5:
727 | resolution: {integrity: sha512-Xjt5ZGUa5WusGZJ4WJPbOT8QOqp6nDynVFRKcUt32bOgvXEoc6o085WNkYTMO7ifAj2isEfQQ2cseE+wT6jsRw==}
728 | dev: true
729 |
730 | /@types/prettier/2.7.0:
731 | resolution: {integrity: sha512-RI1L7N4JnW5gQw2spvL7Sllfuf1SaHdrZpCHiBlCXjIlufi1SMNnbu2teze3/QE67Fg2tBlH7W+mi4hVNk4p0A==}
732 | dev: true
733 |
734 | /@types/sharp/0.30.5:
735 | resolution: {integrity: sha512-EhO29617AIBqxoVtpd1qdBanWpspk/kD2B6qTFRJ31Q23Rdf+DNU1xlHSwtqvwq1vgOqBwq1i38SX+HGCymIQg==}
736 | dependencies:
737 | '@types/node': 18.6.5
738 | dev: true
739 |
740 | /@types/stack-utils/2.0.1:
741 | resolution: {integrity: sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==}
742 | dev: true
743 |
744 | /@types/yargs-parser/21.0.0:
745 | resolution: {integrity: sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==}
746 | dev: true
747 |
748 | /@types/yargs/17.0.11:
749 | resolution: {integrity: sha512-aB4y9UDUXTSMxmM4MH+YnuR0g5Cph3FLQBoWoMB21DSvFVAxRVEHEMx3TLh+zUZYMCQtKiqazz0Q4Rre31f/OA==}
750 | dependencies:
751 | '@types/yargs-parser': 21.0.0
752 | dev: true
753 |
754 | /ansi-escapes/4.3.2:
755 | resolution: {integrity: sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==}
756 | engines: {node: '>=8'}
757 | dependencies:
758 | type-fest: 0.21.3
759 | dev: true
760 |
761 | /ansi-regex/5.0.1:
762 | resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==}
763 | engines: {node: '>=8'}
764 | dev: true
765 |
766 | /ansi-styles/3.2.1:
767 | resolution: {integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==}
768 | engines: {node: '>=4'}
769 | dependencies:
770 | color-convert: 1.9.3
771 | dev: true
772 |
773 | /ansi-styles/4.3.0:
774 | resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==}
775 | engines: {node: '>=8'}
776 | dependencies:
777 | color-convert: 2.0.1
778 | dev: true
779 |
780 | /ansi-styles/5.2.0:
781 | resolution: {integrity: sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==}
782 | engines: {node: '>=10'}
783 | dev: true
784 |
785 | /anymatch/3.1.2:
786 | resolution: {integrity: sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==}
787 | engines: {node: '>= 8'}
788 | dependencies:
789 | normalize-path: 3.0.0
790 | picomatch: 2.3.1
791 | dev: true
792 |
793 | /argparse/1.0.10:
794 | resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==}
795 | dependencies:
796 | sprintf-js: 1.0.3
797 | dev: true
798 |
799 | /babel-jest/28.1.3_@babel+core@7.18.10:
800 | resolution: {integrity: sha512-epUaPOEWMk3cWX0M/sPvCHHCe9fMFAa/9hXEgKP8nFfNl/jlGkE9ucq9NqkZGXLDduCJYS0UvSlPUwC0S+rH6Q==}
801 | engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
802 | peerDependencies:
803 | '@babel/core': ^7.8.0
804 | dependencies:
805 | '@babel/core': 7.18.10
806 | '@jest/transform': 28.1.3
807 | '@types/babel__core': 7.1.19
808 | babel-plugin-istanbul: 6.1.1
809 | babel-preset-jest: 28.1.3_@babel+core@7.18.10
810 | chalk: 4.1.2
811 | graceful-fs: 4.2.10
812 | slash: 3.0.0
813 | transitivePeerDependencies:
814 | - supports-color
815 | dev: true
816 |
817 | /babel-plugin-istanbul/6.1.1:
818 | resolution: {integrity: sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==}
819 | engines: {node: '>=8'}
820 | dependencies:
821 | '@babel/helper-plugin-utils': 7.18.9
822 | '@istanbuljs/load-nyc-config': 1.1.0
823 | '@istanbuljs/schema': 0.1.3
824 | istanbul-lib-instrument: 5.2.0
825 | test-exclude: 6.0.0
826 | transitivePeerDependencies:
827 | - supports-color
828 | dev: true
829 |
830 | /babel-plugin-jest-hoist/28.1.3:
831 | resolution: {integrity: sha512-Ys3tUKAmfnkRUpPdpa98eYrAR0nV+sSFUZZEGuQ2EbFd1y4SOLtD5QDNHAq+bb9a+bbXvYQC4b+ID/THIMcU6Q==}
832 | engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
833 | dependencies:
834 | '@babel/template': 7.18.10
835 | '@babel/types': 7.18.10
836 | '@types/babel__core': 7.1.19
837 | '@types/babel__traverse': 7.18.0
838 | dev: true
839 |
840 | /babel-preset-current-node-syntax/1.0.1_@babel+core@7.18.10:
841 | resolution: {integrity: sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==}
842 | peerDependencies:
843 | '@babel/core': ^7.0.0
844 | dependencies:
845 | '@babel/core': 7.18.10
846 | '@babel/plugin-syntax-async-generators': 7.8.4_@babel+core@7.18.10
847 | '@babel/plugin-syntax-bigint': 7.8.3_@babel+core@7.18.10
848 | '@babel/plugin-syntax-class-properties': 7.12.13_@babel+core@7.18.10
849 | '@babel/plugin-syntax-import-meta': 7.10.4_@babel+core@7.18.10
850 | '@babel/plugin-syntax-json-strings': 7.8.3_@babel+core@7.18.10
851 | '@babel/plugin-syntax-logical-assignment-operators': 7.10.4_@babel+core@7.18.10
852 | '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3_@babel+core@7.18.10
853 | '@babel/plugin-syntax-numeric-separator': 7.10.4_@babel+core@7.18.10
854 | '@babel/plugin-syntax-object-rest-spread': 7.8.3_@babel+core@7.18.10
855 | '@babel/plugin-syntax-optional-catch-binding': 7.8.3_@babel+core@7.18.10
856 | '@babel/plugin-syntax-optional-chaining': 7.8.3_@babel+core@7.18.10
857 | '@babel/plugin-syntax-top-level-await': 7.14.5_@babel+core@7.18.10
858 | dev: true
859 |
860 | /babel-preset-jest/28.1.3_@babel+core@7.18.10:
861 | resolution: {integrity: sha512-L+fupJvlWAHbQfn74coNX3zf60LXMJsezNvvx8eIh7iOR1luJ1poxYgQk1F8PYtNq/6QODDHCqsSnTFSWC491A==}
862 | engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
863 | peerDependencies:
864 | '@babel/core': ^7.0.0
865 | dependencies:
866 | '@babel/core': 7.18.10
867 | babel-plugin-jest-hoist: 28.1.3
868 | babel-preset-current-node-syntax: 1.0.1_@babel+core@7.18.10
869 | dev: true
870 |
871 | /balanced-match/1.0.2:
872 | resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==}
873 | dev: true
874 |
875 | /base64-js/1.5.1:
876 | resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==}
877 | dev: false
878 |
879 | /bl/4.1.0:
880 | resolution: {integrity: sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==}
881 | dependencies:
882 | buffer: 5.7.1
883 | inherits: 2.0.4
884 | readable-stream: 3.6.0
885 | dev: false
886 |
887 | /brace-expansion/1.1.11:
888 | resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==}
889 | dependencies:
890 | balanced-match: 1.0.2
891 | concat-map: 0.0.1
892 | dev: true
893 |
894 | /braces/3.0.2:
895 | resolution: {integrity: sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==}
896 | engines: {node: '>=8'}
897 | dependencies:
898 | fill-range: 7.0.1
899 | dev: true
900 |
901 | /browserslist/4.21.3:
902 | resolution: {integrity: sha512-898rgRXLAyRkM1GryrrBHGkqA5hlpkV5MhtZwg9QXeiyLUYs2k00Un05aX5l2/yJIOObYKOpS2JNo8nJDE7fWQ==}
903 | engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}
904 | hasBin: true
905 | dependencies:
906 | caniuse-lite: 1.0.30001374
907 | electron-to-chromium: 1.4.212
908 | node-releases: 2.0.6
909 | update-browserslist-db: 1.0.5_browserslist@4.21.3
910 | dev: true
911 |
912 | /bs-logger/0.2.6:
913 | resolution: {integrity: sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==}
914 | engines: {node: '>= 6'}
915 | dependencies:
916 | fast-json-stable-stringify: 2.1.0
917 | dev: true
918 |
919 | /bser/2.1.1:
920 | resolution: {integrity: sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==}
921 | dependencies:
922 | node-int64: 0.4.0
923 | dev: true
924 |
925 | /buffer-from/1.1.2:
926 | resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==}
927 | dev: true
928 |
929 | /buffer/5.7.1:
930 | resolution: {integrity: sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==}
931 | dependencies:
932 | base64-js: 1.5.1
933 | ieee754: 1.2.1
934 | dev: false
935 |
936 | /callsites/3.1.0:
937 | resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==}
938 | engines: {node: '>=6'}
939 | dev: true
940 |
941 | /camelcase/5.3.1:
942 | resolution: {integrity: sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==}
943 | engines: {node: '>=6'}
944 | dev: true
945 |
946 | /camelcase/6.3.0:
947 | resolution: {integrity: sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==}
948 | engines: {node: '>=10'}
949 | dev: true
950 |
951 | /caniuse-lite/1.0.30001374:
952 | resolution: {integrity: sha512-mWvzatRx3w+j5wx/mpFN5v5twlPrabG8NqX2c6e45LCpymdoGqNvRkRutFUqpRTXKFQFNQJasvK0YT7suW6/Hw==}
953 | dev: true
954 |
955 | /chalk/2.4.2:
956 | resolution: {integrity: sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==}
957 | engines: {node: '>=4'}
958 | dependencies:
959 | ansi-styles: 3.2.1
960 | escape-string-regexp: 1.0.5
961 | supports-color: 5.5.0
962 | dev: true
963 |
964 | /chalk/4.1.2:
965 | resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==}
966 | engines: {node: '>=10'}
967 | dependencies:
968 | ansi-styles: 4.3.0
969 | supports-color: 7.2.0
970 | dev: true
971 |
972 | /char-regex/1.0.2:
973 | resolution: {integrity: sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==}
974 | engines: {node: '>=10'}
975 | dev: true
976 |
977 | /chownr/1.1.4:
978 | resolution: {integrity: sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==}
979 | dev: false
980 |
981 | /ci-info/3.3.2:
982 | resolution: {integrity: sha512-xmDt/QIAdeZ9+nfdPsaBCpMvHNLFiLdjj59qjqn+6iPe6YmHGQ35sBnQ8uslRBXFmXkiZQOJRjvQeoGppoTjjg==}
983 | dev: true
984 |
985 | /cjs-module-lexer/1.2.2:
986 | resolution: {integrity: sha512-cOU9usZw8/dXIXKtwa8pM0OTJQuJkxMN6w30csNRUerHfeQ5R6U3kkU/FtJeIf3M202OHfY2U8ccInBG7/xogA==}
987 | dev: true
988 |
989 | /cliui/7.0.4:
990 | resolution: {integrity: sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==}
991 | dependencies:
992 | string-width: 4.2.3
993 | strip-ansi: 6.0.1
994 | wrap-ansi: 7.0.0
995 | dev: true
996 |
997 | /co/4.6.0:
998 | resolution: {integrity: sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==}
999 | engines: {iojs: '>= 1.0.0', node: '>= 0.12.0'}
1000 | dev: true
1001 |
1002 | /collect-v8-coverage/1.0.1:
1003 | resolution: {integrity: sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg==}
1004 | dev: true
1005 |
1006 | /color-convert/1.9.3:
1007 | resolution: {integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==}
1008 | dependencies:
1009 | color-name: 1.1.3
1010 | dev: true
1011 |
1012 | /color-convert/2.0.1:
1013 | resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==}
1014 | engines: {node: '>=7.0.0'}
1015 | dependencies:
1016 | color-name: 1.1.4
1017 |
1018 | /color-name/1.1.3:
1019 | resolution: {integrity: sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==}
1020 | dev: true
1021 |
1022 | /color-name/1.1.4:
1023 | resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==}
1024 |
1025 | /color-string/1.9.1:
1026 | resolution: {integrity: sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==}
1027 | dependencies:
1028 | color-name: 1.1.4
1029 | simple-swizzle: 0.2.2
1030 | dev: false
1031 |
1032 | /color/4.2.3:
1033 | resolution: {integrity: sha512-1rXeuUUiGGrykh+CeBdu5Ie7OJwinCgQY0bc7GCRxy5xVHy+moaqkpL/jqQq0MtQOeYcrqEz4abc5f0KtU7W4A==}
1034 | engines: {node: '>=12.5.0'}
1035 | dependencies:
1036 | color-convert: 2.0.1
1037 | color-string: 1.9.1
1038 | dev: false
1039 |
1040 | /concat-map/0.0.1:
1041 | resolution: {integrity: sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=}
1042 | dev: true
1043 |
1044 | /convert-source-map/1.8.0:
1045 | resolution: {integrity: sha512-+OQdjP49zViI/6i7nIJpA8rAl4sV/JdPfU9nZs3VqOwGIgizICvuN2ru6fMd+4llL0tar18UYJXfZ/TWtmhUjA==}
1046 | dependencies:
1047 | safe-buffer: 5.1.2
1048 | dev: true
1049 |
1050 | /cross-spawn/7.0.3:
1051 | resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==}
1052 | engines: {node: '>= 8'}
1053 | dependencies:
1054 | path-key: 3.1.1
1055 | shebang-command: 2.0.0
1056 | which: 2.0.2
1057 | dev: true
1058 |
1059 | /debug/4.3.4:
1060 | resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==}
1061 | engines: {node: '>=6.0'}
1062 | peerDependencies:
1063 | supports-color: '*'
1064 | peerDependenciesMeta:
1065 | supports-color:
1066 | optional: true
1067 | dependencies:
1068 | ms: 2.1.2
1069 | dev: true
1070 |
1071 | /decompress-response/6.0.0:
1072 | resolution: {integrity: sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==}
1073 | engines: {node: '>=10'}
1074 | dependencies:
1075 | mimic-response: 3.1.0
1076 | dev: false
1077 |
1078 | /dedent/0.7.0:
1079 | resolution: {integrity: sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==}
1080 | dev: true
1081 |
1082 | /deep-extend/0.6.0:
1083 | resolution: {integrity: sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==}
1084 | engines: {node: '>=4.0.0'}
1085 | dev: false
1086 |
1087 | /deepmerge/4.2.2:
1088 | resolution: {integrity: sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==}
1089 | engines: {node: '>=0.10.0'}
1090 | dev: true
1091 |
1092 | /detect-libc/2.0.1:
1093 | resolution: {integrity: sha512-463v3ZeIrcWtdgIg6vI6XUncguvr2TnGl4SzDXinkt9mSLpBJKXT3mW6xT3VQdDN11+WVs29pgvivTc4Lp8v+w==}
1094 | engines: {node: '>=8'}
1095 | dev: false
1096 |
1097 | /detect-newline/3.1.0:
1098 | resolution: {integrity: sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==}
1099 | engines: {node: '>=8'}
1100 | dev: true
1101 |
1102 | /diff-sequences/28.1.1:
1103 | resolution: {integrity: sha512-FU0iFaH/E23a+a718l8Qa/19bF9p06kgE0KipMOMadwa3SjnaElKzPaUC0vnibs6/B/9ni97s61mcejk8W1fQw==}
1104 | engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
1105 | dev: true
1106 |
1107 | /electron-to-chromium/1.4.212:
1108 | resolution: {integrity: sha512-LjQUg1SpLj2GfyaPDVBUHdhmlDU1vDB4f0mJWSGkISoXQrn5/lH3ECPCuo2Bkvf6Y30wO+b69te+rZK/llZmjg==}
1109 | dev: true
1110 |
1111 | /emittery/0.10.2:
1112 | resolution: {integrity: sha512-aITqOwnLanpHLNXZJENbOgjUBeHocD+xsSJmNrjovKBW5HbSpW3d1pEls7GFQPUWXiwG9+0P4GtHfEqC/4M0Iw==}
1113 | engines: {node: '>=12'}
1114 | dev: true
1115 |
1116 | /emoji-regex/8.0.0:
1117 | resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==}
1118 | dev: true
1119 |
1120 | /end-of-stream/1.4.4:
1121 | resolution: {integrity: sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==}
1122 | dependencies:
1123 | once: 1.4.0
1124 | dev: false
1125 |
1126 | /error-ex/1.3.2:
1127 | resolution: {integrity: sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==}
1128 | dependencies:
1129 | is-arrayish: 0.2.1
1130 | dev: true
1131 |
1132 | /escalade/3.1.1:
1133 | resolution: {integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==}
1134 | engines: {node: '>=6'}
1135 | dev: true
1136 |
1137 | /escape-string-regexp/1.0.5:
1138 | resolution: {integrity: sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==}
1139 | engines: {node: '>=0.8.0'}
1140 | dev: true
1141 |
1142 | /escape-string-regexp/2.0.0:
1143 | resolution: {integrity: sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==}
1144 | engines: {node: '>=8'}
1145 | dev: true
1146 |
1147 | /esprima/4.0.1:
1148 | resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==}
1149 | engines: {node: '>=4'}
1150 | hasBin: true
1151 | dev: true
1152 |
1153 | /execa/5.1.1:
1154 | resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==}
1155 | engines: {node: '>=10'}
1156 | dependencies:
1157 | cross-spawn: 7.0.3
1158 | get-stream: 6.0.1
1159 | human-signals: 2.1.0
1160 | is-stream: 2.0.1
1161 | merge-stream: 2.0.0
1162 | npm-run-path: 4.0.1
1163 | onetime: 5.1.2
1164 | signal-exit: 3.0.7
1165 | strip-final-newline: 2.0.0
1166 | dev: true
1167 |
1168 | /exit/0.1.2:
1169 | resolution: {integrity: sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==}
1170 | engines: {node: '>= 0.8.0'}
1171 | dev: true
1172 |
1173 | /expand-template/2.0.3:
1174 | resolution: {integrity: sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==}
1175 | engines: {node: '>=6'}
1176 | dev: false
1177 |
1178 | /expect/28.1.3:
1179 | resolution: {integrity: sha512-eEh0xn8HlsuOBxFgIss+2mX85VAS4Qy3OSkjV7rlBWljtA4oWH37glVGyOZSZvErDT/yBywZdPGwCXuTvSG85g==}
1180 | engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
1181 | dependencies:
1182 | '@jest/expect-utils': 28.1.3
1183 | jest-get-type: 28.0.2
1184 | jest-matcher-utils: 28.1.3
1185 | jest-message-util: 28.1.3
1186 | jest-util: 28.1.3
1187 | dev: true
1188 |
1189 | /fast-json-stable-stringify/2.1.0:
1190 | resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==}
1191 | dev: true
1192 |
1193 | /fb-watchman/2.0.1:
1194 | resolution: {integrity: sha512-DkPJKQeY6kKwmuMretBhr7G6Vodr7bFwDYTXIkfG1gjvNpaxBTQV3PbXg6bR1c1UP4jPOX0jHUbbHANL9vRjVg==}
1195 | dependencies:
1196 | bser: 2.1.1
1197 | dev: true
1198 |
1199 | /fill-range/7.0.1:
1200 | resolution: {integrity: sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==}
1201 | engines: {node: '>=8'}
1202 | dependencies:
1203 | to-regex-range: 5.0.1
1204 | dev: true
1205 |
1206 | /find-up/4.1.0:
1207 | resolution: {integrity: sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==}
1208 | engines: {node: '>=8'}
1209 | dependencies:
1210 | locate-path: 5.0.0
1211 | path-exists: 4.0.0
1212 | dev: true
1213 |
1214 | /fs-constants/1.0.0:
1215 | resolution: {integrity: sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==}
1216 | dev: false
1217 |
1218 | /fs-extra/10.1.0:
1219 | resolution: {integrity: sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==}
1220 | engines: {node: '>=12'}
1221 | dependencies:
1222 | graceful-fs: 4.2.10
1223 | jsonfile: 6.1.0
1224 | universalify: 2.0.0
1225 | dev: false
1226 |
1227 | /fs.realpath/1.0.0:
1228 | resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==}
1229 | dev: true
1230 |
1231 | /fsevents/2.3.2:
1232 | resolution: {integrity: sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==}
1233 | engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}
1234 | os: [darwin]
1235 | requiresBuild: true
1236 | dev: true
1237 | optional: true
1238 |
1239 | /function-bind/1.1.1:
1240 | resolution: {integrity: sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==}
1241 | dev: true
1242 |
1243 | /gensync/1.0.0-beta.2:
1244 | resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==}
1245 | engines: {node: '>=6.9.0'}
1246 | dev: true
1247 |
1248 | /get-caller-file/2.0.5:
1249 | resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==}
1250 | engines: {node: 6.* || 8.* || >= 10.*}
1251 | dev: true
1252 |
1253 | /get-package-type/0.1.0:
1254 | resolution: {integrity: sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==}
1255 | engines: {node: '>=8.0.0'}
1256 | dev: true
1257 |
1258 | /get-stream/6.0.1:
1259 | resolution: {integrity: sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==}
1260 | engines: {node: '>=10'}
1261 | dev: true
1262 |
1263 | /github-from-package/0.0.0:
1264 | resolution: {integrity: sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==}
1265 | dev: false
1266 |
1267 | /glob/7.2.3:
1268 | resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==}
1269 | dependencies:
1270 | fs.realpath: 1.0.0
1271 | inflight: 1.0.6
1272 | inherits: 2.0.4
1273 | minimatch: 3.1.2
1274 | once: 1.4.0
1275 | path-is-absolute: 1.0.1
1276 | dev: true
1277 |
1278 | /globals/11.12.0:
1279 | resolution: {integrity: sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==}
1280 | engines: {node: '>=4'}
1281 | dev: true
1282 |
1283 | /graceful-fs/4.2.10:
1284 | resolution: {integrity: sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==}
1285 |
1286 | /has-flag/3.0.0:
1287 | resolution: {integrity: sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==}
1288 | engines: {node: '>=4'}
1289 | dev: true
1290 |
1291 | /has-flag/4.0.0:
1292 | resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==}
1293 | engines: {node: '>=8'}
1294 | dev: true
1295 |
1296 | /has/1.0.3:
1297 | resolution: {integrity: sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==}
1298 | engines: {node: '>= 0.4.0'}
1299 | dependencies:
1300 | function-bind: 1.1.1
1301 | dev: true
1302 |
1303 | /html-escaper/2.0.2:
1304 | resolution: {integrity: sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==}
1305 | dev: true
1306 |
1307 | /human-signals/2.1.0:
1308 | resolution: {integrity: sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==}
1309 | engines: {node: '>=10.17.0'}
1310 | dev: true
1311 |
1312 | /ieee754/1.2.1:
1313 | resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==}
1314 | dev: false
1315 |
1316 | /import-local/3.1.0:
1317 | resolution: {integrity: sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==}
1318 | engines: {node: '>=8'}
1319 | hasBin: true
1320 | dependencies:
1321 | pkg-dir: 4.2.0
1322 | resolve-cwd: 3.0.0
1323 | dev: true
1324 |
1325 | /imurmurhash/0.1.4:
1326 | resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==}
1327 | engines: {node: '>=0.8.19'}
1328 | dev: true
1329 |
1330 | /inflight/1.0.6:
1331 | resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==}
1332 | dependencies:
1333 | once: 1.4.0
1334 | wrappy: 1.0.2
1335 | dev: true
1336 |
1337 | /inherits/2.0.4:
1338 | resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==}
1339 |
1340 | /ini/1.3.8:
1341 | resolution: {integrity: sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==}
1342 | dev: false
1343 |
1344 | /is-arrayish/0.2.1:
1345 | resolution: {integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==}
1346 | dev: true
1347 |
1348 | /is-arrayish/0.3.2:
1349 | resolution: {integrity: sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==}
1350 | dev: false
1351 |
1352 | /is-core-module/2.10.0:
1353 | resolution: {integrity: sha512-Erxj2n/LDAZ7H8WNJXd9tw38GYM3dv8rk8Zcs+jJuxYTW7sozH+SS8NtrSjVL1/vpLvWi1hxy96IzjJ3EHTJJg==}
1354 | dependencies:
1355 | has: 1.0.3
1356 | dev: true
1357 |
1358 | /is-fullwidth-code-point/3.0.0:
1359 | resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==}
1360 | engines: {node: '>=8'}
1361 | dev: true
1362 |
1363 | /is-generator-fn/2.1.0:
1364 | resolution: {integrity: sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==}
1365 | engines: {node: '>=6'}
1366 | dev: true
1367 |
1368 | /is-number/7.0.0:
1369 | resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==}
1370 | engines: {node: '>=0.12.0'}
1371 | dev: true
1372 |
1373 | /is-stream/2.0.1:
1374 | resolution: {integrity: sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==}
1375 | engines: {node: '>=8'}
1376 | dev: true
1377 |
1378 | /isexe/2.0.0:
1379 | resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}
1380 | dev: true
1381 |
1382 | /istanbul-lib-coverage/3.2.0:
1383 | resolution: {integrity: sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==}
1384 | engines: {node: '>=8'}
1385 | dev: true
1386 |
1387 | /istanbul-lib-instrument/5.2.0:
1388 | resolution: {integrity: sha512-6Lthe1hqXHBNsqvgDzGO6l03XNeu3CrG4RqQ1KM9+l5+jNGpEJfIELx1NS3SEHmJQA8np/u+E4EPRKRiu6m19A==}
1389 | engines: {node: '>=8'}
1390 | dependencies:
1391 | '@babel/core': 7.18.10
1392 | '@babel/parser': 7.18.11
1393 | '@istanbuljs/schema': 0.1.3
1394 | istanbul-lib-coverage: 3.2.0
1395 | semver: 6.3.0
1396 | transitivePeerDependencies:
1397 | - supports-color
1398 | dev: true
1399 |
1400 | /istanbul-lib-report/3.0.0:
1401 | resolution: {integrity: sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==}
1402 | engines: {node: '>=8'}
1403 | dependencies:
1404 | istanbul-lib-coverage: 3.2.0
1405 | make-dir: 3.1.0
1406 | supports-color: 7.2.0
1407 | dev: true
1408 |
1409 | /istanbul-lib-source-maps/4.0.1:
1410 | resolution: {integrity: sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==}
1411 | engines: {node: '>=10'}
1412 | dependencies:
1413 | debug: 4.3.4
1414 | istanbul-lib-coverage: 3.2.0
1415 | source-map: 0.6.1
1416 | transitivePeerDependencies:
1417 | - supports-color
1418 | dev: true
1419 |
1420 | /istanbul-reports/3.1.5:
1421 | resolution: {integrity: sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w==}
1422 | engines: {node: '>=8'}
1423 | dependencies:
1424 | html-escaper: 2.0.2
1425 | istanbul-lib-report: 3.0.0
1426 | dev: true
1427 |
1428 | /jest-changed-files/28.1.3:
1429 | resolution: {integrity: sha512-esaOfUWJXk2nfZt9SPyC8gA1kNfdKLkQWyzsMlqq8msYSlNKfmZxfRgZn4Cd4MGVUF+7v6dBs0d5TOAKa7iIiA==}
1430 | engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
1431 | dependencies:
1432 | execa: 5.1.1
1433 | p-limit: 3.1.0
1434 | dev: true
1435 |
1436 | /jest-circus/28.1.3:
1437 | resolution: {integrity: sha512-cZ+eS5zc79MBwt+IhQhiEp0OeBddpc1n8MBo1nMB8A7oPMKEO+Sre+wHaLJexQUj9Ya/8NOBY0RESUgYjB6fow==}
1438 | engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
1439 | dependencies:
1440 | '@jest/environment': 28.1.3
1441 | '@jest/expect': 28.1.3
1442 | '@jest/test-result': 28.1.3
1443 | '@jest/types': 28.1.3
1444 | '@types/node': 18.6.5
1445 | chalk: 4.1.2
1446 | co: 4.6.0
1447 | dedent: 0.7.0
1448 | is-generator-fn: 2.1.0
1449 | jest-each: 28.1.3
1450 | jest-matcher-utils: 28.1.3
1451 | jest-message-util: 28.1.3
1452 | jest-runtime: 28.1.3
1453 | jest-snapshot: 28.1.3
1454 | jest-util: 28.1.3
1455 | p-limit: 3.1.0
1456 | pretty-format: 28.1.3
1457 | slash: 3.0.0
1458 | stack-utils: 2.0.5
1459 | transitivePeerDependencies:
1460 | - supports-color
1461 | dev: true
1462 |
1463 | /jest-cli/28.1.3_@types+node@18.6.5:
1464 | resolution: {integrity: sha512-roY3kvrv57Azn1yPgdTebPAXvdR2xfezaKKYzVxZ6It/5NCxzJym6tUI5P1zkdWhfUYkxEI9uZWcQdaFLo8mJQ==}
1465 | engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
1466 | hasBin: true
1467 | peerDependencies:
1468 | node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0
1469 | peerDependenciesMeta:
1470 | node-notifier:
1471 | optional: true
1472 | dependencies:
1473 | '@jest/core': 28.1.3
1474 | '@jest/test-result': 28.1.3
1475 | '@jest/types': 28.1.3
1476 | chalk: 4.1.2
1477 | exit: 0.1.2
1478 | graceful-fs: 4.2.10
1479 | import-local: 3.1.0
1480 | jest-config: 28.1.3_@types+node@18.6.5
1481 | jest-util: 28.1.3
1482 | jest-validate: 28.1.3
1483 | prompts: 2.4.2
1484 | yargs: 17.5.1
1485 | transitivePeerDependencies:
1486 | - '@types/node'
1487 | - supports-color
1488 | - ts-node
1489 | dev: true
1490 |
1491 | /jest-config/28.1.3_@types+node@18.6.5:
1492 | resolution: {integrity: sha512-MG3INjByJ0J4AsNBm7T3hsuxKQqFIiRo/AUqb1q9LRKI5UU6Aar9JHbr9Ivn1TVwfUD9KirRoM/T6u8XlcQPHQ==}
1493 | engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
1494 | peerDependencies:
1495 | '@types/node': '*'
1496 | ts-node: '>=9.0.0'
1497 | peerDependenciesMeta:
1498 | '@types/node':
1499 | optional: true
1500 | ts-node:
1501 | optional: true
1502 | dependencies:
1503 | '@babel/core': 7.18.10
1504 | '@jest/test-sequencer': 28.1.3
1505 | '@jest/types': 28.1.3
1506 | '@types/node': 18.6.5
1507 | babel-jest: 28.1.3_@babel+core@7.18.10
1508 | chalk: 4.1.2
1509 | ci-info: 3.3.2
1510 | deepmerge: 4.2.2
1511 | glob: 7.2.3
1512 | graceful-fs: 4.2.10
1513 | jest-circus: 28.1.3
1514 | jest-environment-node: 28.1.3
1515 | jest-get-type: 28.0.2
1516 | jest-regex-util: 28.0.2
1517 | jest-resolve: 28.1.3
1518 | jest-runner: 28.1.3
1519 | jest-util: 28.1.3
1520 | jest-validate: 28.1.3
1521 | micromatch: 4.0.5
1522 | parse-json: 5.2.0
1523 | pretty-format: 28.1.3
1524 | slash: 3.0.0
1525 | strip-json-comments: 3.1.1
1526 | transitivePeerDependencies:
1527 | - supports-color
1528 | dev: true
1529 |
1530 | /jest-diff/28.1.3:
1531 | resolution: {integrity: sha512-8RqP1B/OXzjjTWkqMX67iqgwBVJRgCyKD3L9nq+6ZqJMdvjE8RgHktqZ6jNrkdMT+dJuYNI3rhQpxaz7drJHfw==}
1532 | engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
1533 | dependencies:
1534 | chalk: 4.1.2
1535 | diff-sequences: 28.1.1
1536 | jest-get-type: 28.0.2
1537 | pretty-format: 28.1.3
1538 | dev: true
1539 |
1540 | /jest-docblock/28.1.1:
1541 | resolution: {integrity: sha512-3wayBVNiOYx0cwAbl9rwm5kKFP8yHH3d/fkEaL02NPTkDojPtheGB7HZSFY4wzX+DxyrvhXz0KSCVksmCknCuA==}
1542 | engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
1543 | dependencies:
1544 | detect-newline: 3.1.0
1545 | dev: true
1546 |
1547 | /jest-each/28.1.3:
1548 | resolution: {integrity: sha512-arT1z4sg2yABU5uogObVPvSlSMQlDA48owx07BDPAiasW0yYpYHYOo4HHLz9q0BVzDVU4hILFjzJw0So9aCL/g==}
1549 | engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
1550 | dependencies:
1551 | '@jest/types': 28.1.3
1552 | chalk: 4.1.2
1553 | jest-get-type: 28.0.2
1554 | jest-util: 28.1.3
1555 | pretty-format: 28.1.3
1556 | dev: true
1557 |
1558 | /jest-environment-node/28.1.3:
1559 | resolution: {integrity: sha512-ugP6XOhEpjAEhGYvp5Xj989ns5cB1K6ZdjBYuS30umT4CQEETaxSiPcZ/E1kFktX4GkrcM4qu07IIlDYX1gp+A==}
1560 | engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
1561 | dependencies:
1562 | '@jest/environment': 28.1.3
1563 | '@jest/fake-timers': 28.1.3
1564 | '@jest/types': 28.1.3
1565 | '@types/node': 18.6.5
1566 | jest-mock: 28.1.3
1567 | jest-util: 28.1.3
1568 | dev: true
1569 |
1570 | /jest-get-type/28.0.2:
1571 | resolution: {integrity: sha512-ioj2w9/DxSYHfOm5lJKCdcAmPJzQXmbM/Url3rhlghrPvT3tt+7a/+oXc9azkKmLvoiXjtV83bEWqi+vs5nlPA==}
1572 | engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
1573 | dev: true
1574 |
1575 | /jest-haste-map/28.1.3:
1576 | resolution: {integrity: sha512-3S+RQWDXccXDKSWnkHa/dPwt+2qwA8CJzR61w3FoYCvoo3Pn8tvGcysmMF0Bj0EX5RYvAI2EIvC57OmotfdtKA==}
1577 | engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
1578 | dependencies:
1579 | '@jest/types': 28.1.3
1580 | '@types/graceful-fs': 4.1.5
1581 | '@types/node': 18.6.5
1582 | anymatch: 3.1.2
1583 | fb-watchman: 2.0.1
1584 | graceful-fs: 4.2.10
1585 | jest-regex-util: 28.0.2
1586 | jest-util: 28.1.3
1587 | jest-worker: 28.1.3
1588 | micromatch: 4.0.5
1589 | walker: 1.0.8
1590 | optionalDependencies:
1591 | fsevents: 2.3.2
1592 | dev: true
1593 |
1594 | /jest-leak-detector/28.1.3:
1595 | resolution: {integrity: sha512-WFVJhnQsiKtDEo5lG2mM0v40QWnBM+zMdHHyJs8AWZ7J0QZJS59MsyKeJHWhpBZBH32S48FOVvGyOFT1h0DlqA==}
1596 | engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
1597 | dependencies:
1598 | jest-get-type: 28.0.2
1599 | pretty-format: 28.1.3
1600 | dev: true
1601 |
1602 | /jest-matcher-utils/28.1.3:
1603 | resolution: {integrity: sha512-kQeJ7qHemKfbzKoGjHHrRKH6atgxMk8Enkk2iPQ3XwO6oE/KYD8lMYOziCkeSB9G4adPM4nR1DE8Tf5JeWH6Bw==}
1604 | engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
1605 | dependencies:
1606 | chalk: 4.1.2
1607 | jest-diff: 28.1.3
1608 | jest-get-type: 28.0.2
1609 | pretty-format: 28.1.3
1610 | dev: true
1611 |
1612 | /jest-message-util/28.1.3:
1613 | resolution: {integrity: sha512-PFdn9Iewbt575zKPf1286Ht9EPoJmYT7P0kY+RibeYZ2XtOr53pDLEFoTWXbd1h4JiGiWpTBC84fc8xMXQMb7g==}
1614 | engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
1615 | dependencies:
1616 | '@babel/code-frame': 7.18.6
1617 | '@jest/types': 28.1.3
1618 | '@types/stack-utils': 2.0.1
1619 | chalk: 4.1.2
1620 | graceful-fs: 4.2.10
1621 | micromatch: 4.0.5
1622 | pretty-format: 28.1.3
1623 | slash: 3.0.0
1624 | stack-utils: 2.0.5
1625 | dev: true
1626 |
1627 | /jest-mock/28.1.3:
1628 | resolution: {integrity: sha512-o3J2jr6dMMWYVH4Lh/NKmDXdosrsJgi4AviS8oXLujcjpCMBb1FMsblDnOXKZKfSiHLxYub1eS0IHuRXsio9eA==}
1629 | engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
1630 | dependencies:
1631 | '@jest/types': 28.1.3
1632 | '@types/node': 18.6.5
1633 | dev: true
1634 |
1635 | /jest-pnp-resolver/1.2.2_jest-resolve@28.1.3:
1636 | resolution: {integrity: sha512-olV41bKSMm8BdnuMsewT4jqlZ8+3TCARAXjZGT9jcoSnrfUnRCqnMoF9XEeoWjbzObpqF9dRhHQj0Xb9QdF6/w==}
1637 | engines: {node: '>=6'}
1638 | peerDependencies:
1639 | jest-resolve: '*'
1640 | peerDependenciesMeta:
1641 | jest-resolve:
1642 | optional: true
1643 | dependencies:
1644 | jest-resolve: 28.1.3
1645 | dev: true
1646 |
1647 | /jest-regex-util/28.0.2:
1648 | resolution: {integrity: sha512-4s0IgyNIy0y9FK+cjoVYoxamT7Zeo7MhzqRGx7YDYmaQn1wucY9rotiGkBzzcMXTtjrCAP/f7f+E0F7+fxPNdw==}
1649 | engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
1650 | dev: true
1651 |
1652 | /jest-resolve-dependencies/28.1.3:
1653 | resolution: {integrity: sha512-qa0QO2Q0XzQoNPouMbCc7Bvtsem8eQgVPNkwn9LnS+R2n8DaVDPL/U1gngC0LTl1RYXJU0uJa2BMC2DbTfFrHA==}
1654 | engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
1655 | dependencies:
1656 | jest-regex-util: 28.0.2
1657 | jest-snapshot: 28.1.3
1658 | transitivePeerDependencies:
1659 | - supports-color
1660 | dev: true
1661 |
1662 | /jest-resolve/28.1.3:
1663 | resolution: {integrity: sha512-Z1W3tTjE6QaNI90qo/BJpfnvpxtaFTFw5CDgwpyE/Kz8U/06N1Hjf4ia9quUhCh39qIGWF1ZuxFiBiJQwSEYKQ==}
1664 | engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
1665 | dependencies:
1666 | chalk: 4.1.2
1667 | graceful-fs: 4.2.10
1668 | jest-haste-map: 28.1.3
1669 | jest-pnp-resolver: 1.2.2_jest-resolve@28.1.3
1670 | jest-util: 28.1.3
1671 | jest-validate: 28.1.3
1672 | resolve: 1.22.1
1673 | resolve.exports: 1.1.0
1674 | slash: 3.0.0
1675 | dev: true
1676 |
1677 | /jest-runner/28.1.3:
1678 | resolution: {integrity: sha512-GkMw4D/0USd62OVO0oEgjn23TM+YJa2U2Wu5zz9xsQB1MxWKDOlrnykPxnMsN0tnJllfLPinHTka61u0QhaxBA==}
1679 | engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
1680 | dependencies:
1681 | '@jest/console': 28.1.3
1682 | '@jest/environment': 28.1.3
1683 | '@jest/test-result': 28.1.3
1684 | '@jest/transform': 28.1.3
1685 | '@jest/types': 28.1.3
1686 | '@types/node': 18.6.5
1687 | chalk: 4.1.2
1688 | emittery: 0.10.2
1689 | graceful-fs: 4.2.10
1690 | jest-docblock: 28.1.1
1691 | jest-environment-node: 28.1.3
1692 | jest-haste-map: 28.1.3
1693 | jest-leak-detector: 28.1.3
1694 | jest-message-util: 28.1.3
1695 | jest-resolve: 28.1.3
1696 | jest-runtime: 28.1.3
1697 | jest-util: 28.1.3
1698 | jest-watcher: 28.1.3
1699 | jest-worker: 28.1.3
1700 | p-limit: 3.1.0
1701 | source-map-support: 0.5.13
1702 | transitivePeerDependencies:
1703 | - supports-color
1704 | dev: true
1705 |
1706 | /jest-runtime/28.1.3:
1707 | resolution: {integrity: sha512-NU+881ScBQQLc1JHG5eJGU7Ui3kLKrmwCPPtYsJtBykixrM2OhVQlpMmFWJjMyDfdkGgBMNjXCGB/ebzsgNGQw==}
1708 | engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
1709 | dependencies:
1710 | '@jest/environment': 28.1.3
1711 | '@jest/fake-timers': 28.1.3
1712 | '@jest/globals': 28.1.3
1713 | '@jest/source-map': 28.1.2
1714 | '@jest/test-result': 28.1.3
1715 | '@jest/transform': 28.1.3
1716 | '@jest/types': 28.1.3
1717 | chalk: 4.1.2
1718 | cjs-module-lexer: 1.2.2
1719 | collect-v8-coverage: 1.0.1
1720 | execa: 5.1.1
1721 | glob: 7.2.3
1722 | graceful-fs: 4.2.10
1723 | jest-haste-map: 28.1.3
1724 | jest-message-util: 28.1.3
1725 | jest-mock: 28.1.3
1726 | jest-regex-util: 28.0.2
1727 | jest-resolve: 28.1.3
1728 | jest-snapshot: 28.1.3
1729 | jest-util: 28.1.3
1730 | slash: 3.0.0
1731 | strip-bom: 4.0.0
1732 | transitivePeerDependencies:
1733 | - supports-color
1734 | dev: true
1735 |
1736 | /jest-snapshot/28.1.3:
1737 | resolution: {integrity: sha512-4lzMgtiNlc3DU/8lZfmqxN3AYD6GGLbl+72rdBpXvcV+whX7mDrREzkPdp2RnmfIiWBg1YbuFSkXduF2JcafJg==}
1738 | engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
1739 | dependencies:
1740 | '@babel/core': 7.18.10
1741 | '@babel/generator': 7.18.12
1742 | '@babel/plugin-syntax-typescript': 7.18.6_@babel+core@7.18.10
1743 | '@babel/traverse': 7.18.11
1744 | '@babel/types': 7.18.10
1745 | '@jest/expect-utils': 28.1.3
1746 | '@jest/transform': 28.1.3
1747 | '@jest/types': 28.1.3
1748 | '@types/babel__traverse': 7.18.0
1749 | '@types/prettier': 2.7.0
1750 | babel-preset-current-node-syntax: 1.0.1_@babel+core@7.18.10
1751 | chalk: 4.1.2
1752 | expect: 28.1.3
1753 | graceful-fs: 4.2.10
1754 | jest-diff: 28.1.3
1755 | jest-get-type: 28.0.2
1756 | jest-haste-map: 28.1.3
1757 | jest-matcher-utils: 28.1.3
1758 | jest-message-util: 28.1.3
1759 | jest-util: 28.1.3
1760 | natural-compare: 1.4.0
1761 | pretty-format: 28.1.3
1762 | semver: 7.3.7
1763 | transitivePeerDependencies:
1764 | - supports-color
1765 | dev: true
1766 |
1767 | /jest-util/28.1.3:
1768 | resolution: {integrity: sha512-XdqfpHwpcSRko/C35uLYFM2emRAltIIKZiJ9eAmhjsj0CqZMa0p1ib0R5fWIqGhn1a103DebTbpqIaP1qCQ6tQ==}
1769 | engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
1770 | dependencies:
1771 | '@jest/types': 28.1.3
1772 | '@types/node': 18.6.5
1773 | chalk: 4.1.2
1774 | ci-info: 3.3.2
1775 | graceful-fs: 4.2.10
1776 | picomatch: 2.3.1
1777 | dev: true
1778 |
1779 | /jest-validate/28.1.3:
1780 | resolution: {integrity: sha512-SZbOGBWEsaTxBGCOpsRWlXlvNkvTkY0XxRfh7zYmvd8uL5Qzyg0CHAXiXKROflh801quA6+/DsT4ODDthOC/OA==}
1781 | engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
1782 | dependencies:
1783 | '@jest/types': 28.1.3
1784 | camelcase: 6.3.0
1785 | chalk: 4.1.2
1786 | jest-get-type: 28.0.2
1787 | leven: 3.1.0
1788 | pretty-format: 28.1.3
1789 | dev: true
1790 |
1791 | /jest-watcher/28.1.3:
1792 | resolution: {integrity: sha512-t4qcqj9hze+jviFPUN3YAtAEeFnr/azITXQEMARf5cMwKY2SMBRnCQTXLixTl20OR6mLh9KLMrgVJgJISym+1g==}
1793 | engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
1794 | dependencies:
1795 | '@jest/test-result': 28.1.3
1796 | '@jest/types': 28.1.3
1797 | '@types/node': 18.6.5
1798 | ansi-escapes: 4.3.2
1799 | chalk: 4.1.2
1800 | emittery: 0.10.2
1801 | jest-util: 28.1.3
1802 | string-length: 4.0.2
1803 | dev: true
1804 |
1805 | /jest-worker/28.1.3:
1806 | resolution: {integrity: sha512-CqRA220YV/6jCo8VWvAt1KKx6eek1VIHMPeLEbpcfSfkEeWyBNppynM/o6q+Wmw+sOhos2ml34wZbSX3G13//g==}
1807 | engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
1808 | dependencies:
1809 | '@types/node': 18.6.5
1810 | merge-stream: 2.0.0
1811 | supports-color: 8.1.1
1812 | dev: true
1813 |
1814 | /jest/28.1.3_@types+node@18.6.5:
1815 | resolution: {integrity: sha512-N4GT5on8UkZgH0O5LUavMRV1EDEhNTL0KEfRmDIeZHSV7p2XgLoY9t9VDUgL6o+yfdgYHVxuz81G8oB9VG5uyA==}
1816 | engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
1817 | hasBin: true
1818 | peerDependencies:
1819 | node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0
1820 | peerDependenciesMeta:
1821 | node-notifier:
1822 | optional: true
1823 | dependencies:
1824 | '@jest/core': 28.1.3
1825 | '@jest/types': 28.1.3
1826 | import-local: 3.1.0
1827 | jest-cli: 28.1.3_@types+node@18.6.5
1828 | transitivePeerDependencies:
1829 | - '@types/node'
1830 | - supports-color
1831 | - ts-node
1832 | dev: true
1833 |
1834 | /js-tokens/4.0.0:
1835 | resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}
1836 | dev: true
1837 |
1838 | /js-yaml/3.14.1:
1839 | resolution: {integrity: sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==}
1840 | hasBin: true
1841 | dependencies:
1842 | argparse: 1.0.10
1843 | esprima: 4.0.1
1844 | dev: true
1845 |
1846 | /jsesc/2.5.2:
1847 | resolution: {integrity: sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==}
1848 | engines: {node: '>=4'}
1849 | hasBin: true
1850 | dev: true
1851 |
1852 | /json-parse-even-better-errors/2.3.1:
1853 | resolution: {integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==}
1854 | dev: true
1855 |
1856 | /json5/2.2.1:
1857 | resolution: {integrity: sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==}
1858 | engines: {node: '>=6'}
1859 | hasBin: true
1860 | dev: true
1861 |
1862 | /jsonfile/6.1.0:
1863 | resolution: {integrity: sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==}
1864 | dependencies:
1865 | universalify: 2.0.0
1866 | optionalDependencies:
1867 | graceful-fs: 4.2.10
1868 | dev: false
1869 |
1870 | /kleur/3.0.3:
1871 | resolution: {integrity: sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==}
1872 | engines: {node: '>=6'}
1873 | dev: true
1874 |
1875 | /leven/3.1.0:
1876 | resolution: {integrity: sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==}
1877 | engines: {node: '>=6'}
1878 | dev: true
1879 |
1880 | /lines-and-columns/1.2.4:
1881 | resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==}
1882 | dev: true
1883 |
1884 | /locate-path/5.0.0:
1885 | resolution: {integrity: sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==}
1886 | engines: {node: '>=8'}
1887 | dependencies:
1888 | p-locate: 4.1.0
1889 | dev: true
1890 |
1891 | /lodash.memoize/4.1.2:
1892 | resolution: {integrity: sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==}
1893 | dev: true
1894 |
1895 | /lru-cache/6.0.0:
1896 | resolution: {integrity: sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==}
1897 | engines: {node: '>=10'}
1898 | dependencies:
1899 | yallist: 4.0.0
1900 |
1901 | /make-dir/3.1.0:
1902 | resolution: {integrity: sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==}
1903 | engines: {node: '>=8'}
1904 | dependencies:
1905 | semver: 6.3.0
1906 | dev: true
1907 |
1908 | /make-error/1.3.6:
1909 | resolution: {integrity: sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==}
1910 | dev: true
1911 |
1912 | /makeerror/1.0.12:
1913 | resolution: {integrity: sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==}
1914 | dependencies:
1915 | tmpl: 1.0.5
1916 | dev: true
1917 |
1918 | /merge-stream/2.0.0:
1919 | resolution: {integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==}
1920 | dev: true
1921 |
1922 | /micromatch/4.0.5:
1923 | resolution: {integrity: sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==}
1924 | engines: {node: '>=8.6'}
1925 | dependencies:
1926 | braces: 3.0.2
1927 | picomatch: 2.3.1
1928 | dev: true
1929 |
1930 | /mimic-fn/2.1.0:
1931 | resolution: {integrity: sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==}
1932 | engines: {node: '>=6'}
1933 | dev: true
1934 |
1935 | /mimic-response/3.1.0:
1936 | resolution: {integrity: sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==}
1937 | engines: {node: '>=10'}
1938 | dev: false
1939 |
1940 | /minimatch/3.1.2:
1941 | resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==}
1942 | dependencies:
1943 | brace-expansion: 1.1.11
1944 | dev: true
1945 |
1946 | /minimist/1.2.6:
1947 | resolution: {integrity: sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==}
1948 | dev: false
1949 |
1950 | /mkdirp-classic/0.5.3:
1951 | resolution: {integrity: sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==}
1952 | dev: false
1953 |
1954 | /ms/2.1.2:
1955 | resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==}
1956 | dev: true
1957 |
1958 | /napi-build-utils/1.0.2:
1959 | resolution: {integrity: sha512-ONmRUqK7zj7DWX0D9ADe03wbwOBZxNAfF20PlGfCWQcD3+/MakShIHrMqx9YwPTfxDdF1zLeL+RGZiR9kGMLdg==}
1960 | dev: false
1961 |
1962 | /natural-compare/1.4.0:
1963 | resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==}
1964 | dev: true
1965 |
1966 | /node-abi/3.24.0:
1967 | resolution: {integrity: sha512-YPG3Co0luSu6GwOBsmIdGW6Wx0NyNDLg/hriIyDllVsNwnI6UeqaWShxC3lbH4LtEQUgoLP3XR1ndXiDAWvmRw==}
1968 | engines: {node: '>=10'}
1969 | dependencies:
1970 | semver: 7.3.7
1971 | dev: false
1972 |
1973 | /node-addon-api/5.0.0:
1974 | resolution: {integrity: sha512-CvkDw2OEnme7ybCykJpVcKH+uAOLV2qLqiyla128dN9TkEWfrYmxG6C2boDe5KcNQqZF3orkqzGgOMvZ/JNekA==}
1975 | dev: false
1976 |
1977 | /node-int64/0.4.0:
1978 | resolution: {integrity: sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==}
1979 | dev: true
1980 |
1981 | /node-releases/2.0.6:
1982 | resolution: {integrity: sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg==}
1983 | dev: true
1984 |
1985 | /normalize-path/3.0.0:
1986 | resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==}
1987 | engines: {node: '>=0.10.0'}
1988 | dev: true
1989 |
1990 | /npm-run-path/4.0.1:
1991 | resolution: {integrity: sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==}
1992 | engines: {node: '>=8'}
1993 | dependencies:
1994 | path-key: 3.1.1
1995 | dev: true
1996 |
1997 | /once/1.4.0:
1998 | resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==}
1999 | dependencies:
2000 | wrappy: 1.0.2
2001 |
2002 | /onetime/5.1.2:
2003 | resolution: {integrity: sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==}
2004 | engines: {node: '>=6'}
2005 | dependencies:
2006 | mimic-fn: 2.1.0
2007 | dev: true
2008 |
2009 | /p-limit/2.3.0:
2010 | resolution: {integrity: sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==}
2011 | engines: {node: '>=6'}
2012 | dependencies:
2013 | p-try: 2.2.0
2014 | dev: true
2015 |
2016 | /p-limit/3.1.0:
2017 | resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==}
2018 | engines: {node: '>=10'}
2019 | dependencies:
2020 | yocto-queue: 0.1.0
2021 | dev: true
2022 |
2023 | /p-locate/4.1.0:
2024 | resolution: {integrity: sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==}
2025 | engines: {node: '>=8'}
2026 | dependencies:
2027 | p-limit: 2.3.0
2028 | dev: true
2029 |
2030 | /p-try/2.2.0:
2031 | resolution: {integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==}
2032 | engines: {node: '>=6'}
2033 | dev: true
2034 |
2035 | /parse-json/5.2.0:
2036 | resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==}
2037 | engines: {node: '>=8'}
2038 | dependencies:
2039 | '@babel/code-frame': 7.18.6
2040 | error-ex: 1.3.2
2041 | json-parse-even-better-errors: 2.3.1
2042 | lines-and-columns: 1.2.4
2043 | dev: true
2044 |
2045 | /path-exists/4.0.0:
2046 | resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==}
2047 | engines: {node: '>=8'}
2048 | dev: true
2049 |
2050 | /path-is-absolute/1.0.1:
2051 | resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==}
2052 | engines: {node: '>=0.10.0'}
2053 | dev: true
2054 |
2055 | /path-key/3.1.1:
2056 | resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==}
2057 | engines: {node: '>=8'}
2058 | dev: true
2059 |
2060 | /path-parse/1.0.7:
2061 | resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==}
2062 | dev: true
2063 |
2064 | /picocolors/1.0.0:
2065 | resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==}
2066 | dev: true
2067 |
2068 | /picomatch/2.3.1:
2069 | resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==}
2070 | engines: {node: '>=8.6'}
2071 | dev: true
2072 |
2073 | /pirates/4.0.5:
2074 | resolution: {integrity: sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ==}
2075 | engines: {node: '>= 6'}
2076 | dev: true
2077 |
2078 | /pkg-dir/4.2.0:
2079 | resolution: {integrity: sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==}
2080 | engines: {node: '>=8'}
2081 | dependencies:
2082 | find-up: 4.1.0
2083 | dev: true
2084 |
2085 | /prebuild-install/7.1.1:
2086 | resolution: {integrity: sha512-jAXscXWMcCK8GgCoHOfIr0ODh5ai8mj63L2nWrjuAgXE6tDyYGnx4/8o/rCgU+B4JSyZBKbeZqzhtwtC3ovxjw==}
2087 | engines: {node: '>=10'}
2088 | hasBin: true
2089 | dependencies:
2090 | detect-libc: 2.0.1
2091 | expand-template: 2.0.3
2092 | github-from-package: 0.0.0
2093 | minimist: 1.2.6
2094 | mkdirp-classic: 0.5.3
2095 | napi-build-utils: 1.0.2
2096 | node-abi: 3.24.0
2097 | pump: 3.0.0
2098 | rc: 1.2.8
2099 | simple-get: 4.0.1
2100 | tar-fs: 2.1.1
2101 | tunnel-agent: 0.6.0
2102 | dev: false
2103 |
2104 | /pretty-format/28.1.3:
2105 | resolution: {integrity: sha512-8gFb/To0OmxHR9+ZTb14Df2vNxdGCX8g1xWGUTqUw5TiZvcQf5sHKObd5UcPyLLyowNwDAMTF3XWOG1B6mxl1Q==}
2106 | engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
2107 | dependencies:
2108 | '@jest/schemas': 28.1.3
2109 | ansi-regex: 5.0.1
2110 | ansi-styles: 5.2.0
2111 | react-is: 18.2.0
2112 | dev: true
2113 |
2114 | /prompts/2.4.2:
2115 | resolution: {integrity: sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==}
2116 | engines: {node: '>= 6'}
2117 | dependencies:
2118 | kleur: 3.0.3
2119 | sisteransi: 1.0.5
2120 | dev: true
2121 |
2122 | /pump/3.0.0:
2123 | resolution: {integrity: sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==}
2124 | dependencies:
2125 | end-of-stream: 1.4.4
2126 | once: 1.4.0
2127 | dev: false
2128 |
2129 | /rc/1.2.8:
2130 | resolution: {integrity: sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==}
2131 | hasBin: true
2132 | dependencies:
2133 | deep-extend: 0.6.0
2134 | ini: 1.3.8
2135 | minimist: 1.2.6
2136 | strip-json-comments: 2.0.1
2137 | dev: false
2138 |
2139 | /react-is/18.2.0:
2140 | resolution: {integrity: sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==}
2141 | dev: true
2142 |
2143 | /readable-stream/3.6.0:
2144 | resolution: {integrity: sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==}
2145 | engines: {node: '>= 6'}
2146 | dependencies:
2147 | inherits: 2.0.4
2148 | string_decoder: 1.3.0
2149 | util-deprecate: 1.0.2
2150 | dev: false
2151 |
2152 | /require-directory/2.1.1:
2153 | resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==}
2154 | engines: {node: '>=0.10.0'}
2155 | dev: true
2156 |
2157 | /resolve-cwd/3.0.0:
2158 | resolution: {integrity: sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==}
2159 | engines: {node: '>=8'}
2160 | dependencies:
2161 | resolve-from: 5.0.0
2162 | dev: true
2163 |
2164 | /resolve-from/5.0.0:
2165 | resolution: {integrity: sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==}
2166 | engines: {node: '>=8'}
2167 | dev: true
2168 |
2169 | /resolve.exports/1.1.0:
2170 | resolution: {integrity: sha512-J1l+Zxxp4XK3LUDZ9m60LRJF/mAe4z6a4xyabPHk7pvK5t35dACV32iIjJDFeWZFfZlO29w6SZ67knR0tHzJtQ==}
2171 | engines: {node: '>=10'}
2172 | dev: true
2173 |
2174 | /resolve/1.22.1:
2175 | resolution: {integrity: sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==}
2176 | hasBin: true
2177 | dependencies:
2178 | is-core-module: 2.10.0
2179 | path-parse: 1.0.7
2180 | supports-preserve-symlinks-flag: 1.0.0
2181 | dev: true
2182 |
2183 | /rimraf/3.0.2:
2184 | resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==}
2185 | hasBin: true
2186 | dependencies:
2187 | glob: 7.2.3
2188 | dev: true
2189 |
2190 | /safe-buffer/5.1.2:
2191 | resolution: {integrity: sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==}
2192 |
2193 | /safe-buffer/5.2.1:
2194 | resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==}
2195 | dev: false
2196 |
2197 | /semver/6.3.0:
2198 | resolution: {integrity: sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==}
2199 | hasBin: true
2200 | dev: true
2201 |
2202 | /semver/7.3.7:
2203 | resolution: {integrity: sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==}
2204 | engines: {node: '>=10'}
2205 | hasBin: true
2206 | dependencies:
2207 | lru-cache: 6.0.0
2208 |
2209 | /sharp/0.30.7:
2210 | resolution: {integrity: sha512-G+MY2YW33jgflKPTXXptVO28HvNOo9G3j0MybYAHeEmby+QuD2U98dT6ueht9cv/XDqZspSpIhoSW+BAKJ7Hig==}
2211 | engines: {node: '>=12.13.0'}
2212 | requiresBuild: true
2213 | dependencies:
2214 | color: 4.2.3
2215 | detect-libc: 2.0.1
2216 | node-addon-api: 5.0.0
2217 | prebuild-install: 7.1.1
2218 | semver: 7.3.7
2219 | simple-get: 4.0.1
2220 | tar-fs: 2.1.1
2221 | tunnel-agent: 0.6.0
2222 | dev: false
2223 |
2224 | /shebang-command/2.0.0:
2225 | resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==}
2226 | engines: {node: '>=8'}
2227 | dependencies:
2228 | shebang-regex: 3.0.0
2229 | dev: true
2230 |
2231 | /shebang-regex/3.0.0:
2232 | resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==}
2233 | engines: {node: '>=8'}
2234 | dev: true
2235 |
2236 | /signal-exit/3.0.7:
2237 | resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==}
2238 | dev: true
2239 |
2240 | /simple-concat/1.0.1:
2241 | resolution: {integrity: sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==}
2242 | dev: false
2243 |
2244 | /simple-get/4.0.1:
2245 | resolution: {integrity: sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==}
2246 | dependencies:
2247 | decompress-response: 6.0.0
2248 | once: 1.4.0
2249 | simple-concat: 1.0.1
2250 | dev: false
2251 |
2252 | /simple-swizzle/0.2.2:
2253 | resolution: {integrity: sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==}
2254 | dependencies:
2255 | is-arrayish: 0.3.2
2256 | dev: false
2257 |
2258 | /sisteransi/1.0.5:
2259 | resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==}
2260 | dev: true
2261 |
2262 | /slash/3.0.0:
2263 | resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==}
2264 | engines: {node: '>=8'}
2265 | dev: true
2266 |
2267 | /source-map-support/0.5.13:
2268 | resolution: {integrity: sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==}
2269 | dependencies:
2270 | buffer-from: 1.1.2
2271 | source-map: 0.6.1
2272 | dev: true
2273 |
2274 | /source-map/0.6.1:
2275 | resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==}
2276 | engines: {node: '>=0.10.0'}
2277 | dev: true
2278 |
2279 | /sprintf-js/1.0.3:
2280 | resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==}
2281 | dev: true
2282 |
2283 | /stack-utils/2.0.5:
2284 | resolution: {integrity: sha512-xrQcmYhOsn/1kX+Vraq+7j4oE2j/6BFscZ0etmYg81xuM8Gq0022Pxb8+IqgOFUIaxHs0KaSb7T1+OegiNrNFA==}
2285 | engines: {node: '>=10'}
2286 | dependencies:
2287 | escape-string-regexp: 2.0.0
2288 | dev: true
2289 |
2290 | /string-length/4.0.2:
2291 | resolution: {integrity: sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==}
2292 | engines: {node: '>=10'}
2293 | dependencies:
2294 | char-regex: 1.0.2
2295 | strip-ansi: 6.0.1
2296 | dev: true
2297 |
2298 | /string-width/4.2.3:
2299 | resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==}
2300 | engines: {node: '>=8'}
2301 | dependencies:
2302 | emoji-regex: 8.0.0
2303 | is-fullwidth-code-point: 3.0.0
2304 | strip-ansi: 6.0.1
2305 | dev: true
2306 |
2307 | /string_decoder/1.3.0:
2308 | resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==}
2309 | dependencies:
2310 | safe-buffer: 5.2.1
2311 | dev: false
2312 |
2313 | /strip-ansi/6.0.1:
2314 | resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==}
2315 | engines: {node: '>=8'}
2316 | dependencies:
2317 | ansi-regex: 5.0.1
2318 | dev: true
2319 |
2320 | /strip-bom/4.0.0:
2321 | resolution: {integrity: sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==}
2322 | engines: {node: '>=8'}
2323 | dev: true
2324 |
2325 | /strip-final-newline/2.0.0:
2326 | resolution: {integrity: sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==}
2327 | engines: {node: '>=6'}
2328 | dev: true
2329 |
2330 | /strip-json-comments/2.0.1:
2331 | resolution: {integrity: sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==}
2332 | engines: {node: '>=0.10.0'}
2333 | dev: false
2334 |
2335 | /strip-json-comments/3.1.1:
2336 | resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==}
2337 | engines: {node: '>=8'}
2338 | dev: true
2339 |
2340 | /supports-color/5.5.0:
2341 | resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==}
2342 | engines: {node: '>=4'}
2343 | dependencies:
2344 | has-flag: 3.0.0
2345 | dev: true
2346 |
2347 | /supports-color/7.2.0:
2348 | resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==}
2349 | engines: {node: '>=8'}
2350 | dependencies:
2351 | has-flag: 4.0.0
2352 | dev: true
2353 |
2354 | /supports-color/8.1.1:
2355 | resolution: {integrity: sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==}
2356 | engines: {node: '>=10'}
2357 | dependencies:
2358 | has-flag: 4.0.0
2359 | dev: true
2360 |
2361 | /supports-hyperlinks/2.2.0:
2362 | resolution: {integrity: sha512-6sXEzV5+I5j8Bmq9/vUphGRM/RJNT9SCURJLjwfOg51heRtguGWDzcaBlgAzKhQa0EVNpPEKzQuBwZ8S8WaCeQ==}
2363 | engines: {node: '>=8'}
2364 | dependencies:
2365 | has-flag: 4.0.0
2366 | supports-color: 7.2.0
2367 | dev: true
2368 |
2369 | /supports-preserve-symlinks-flag/1.0.0:
2370 | resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==}
2371 | engines: {node: '>= 0.4'}
2372 | dev: true
2373 |
2374 | /tar-fs/2.1.1:
2375 | resolution: {integrity: sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==}
2376 | dependencies:
2377 | chownr: 1.1.4
2378 | mkdirp-classic: 0.5.3
2379 | pump: 3.0.0
2380 | tar-stream: 2.2.0
2381 | dev: false
2382 |
2383 | /tar-stream/2.2.0:
2384 | resolution: {integrity: sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==}
2385 | engines: {node: '>=6'}
2386 | dependencies:
2387 | bl: 4.1.0
2388 | end-of-stream: 1.4.4
2389 | fs-constants: 1.0.0
2390 | inherits: 2.0.4
2391 | readable-stream: 3.6.0
2392 | dev: false
2393 |
2394 | /terminal-link/2.1.1:
2395 | resolution: {integrity: sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ==}
2396 | engines: {node: '>=8'}
2397 | dependencies:
2398 | ansi-escapes: 4.3.2
2399 | supports-hyperlinks: 2.2.0
2400 | dev: true
2401 |
2402 | /test-exclude/6.0.0:
2403 | resolution: {integrity: sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==}
2404 | engines: {node: '>=8'}
2405 | dependencies:
2406 | '@istanbuljs/schema': 0.1.3
2407 | glob: 7.2.3
2408 | minimatch: 3.1.2
2409 | dev: true
2410 |
2411 | /tmpl/1.0.5:
2412 | resolution: {integrity: sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==}
2413 | dev: true
2414 |
2415 | /to-fast-properties/2.0.0:
2416 | resolution: {integrity: sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==}
2417 | engines: {node: '>=4'}
2418 | dev: true
2419 |
2420 | /to-regex-range/5.0.1:
2421 | resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==}
2422 | engines: {node: '>=8.0'}
2423 | dependencies:
2424 | is-number: 7.0.0
2425 | dev: true
2426 |
2427 | /ts-jest/28.0.7_bi2kohzqnxavgozw3csgny5hju:
2428 | resolution: {integrity: sha512-wWXCSmTwBVmdvWrOpYhal79bDpioDy4rTT+0vyUnE3ZzM7LOAAGG9NXwzkEL/a516rQEgnMmS/WKP9jBPCVJyA==}
2429 | engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
2430 | hasBin: true
2431 | peerDependencies:
2432 | '@babel/core': '>=7.0.0-beta.0 <8'
2433 | '@jest/types': ^28.0.0
2434 | babel-jest: ^28.0.0
2435 | esbuild: '*'
2436 | jest: ^28.0.0
2437 | typescript: '>=4.3'
2438 | peerDependenciesMeta:
2439 | '@babel/core':
2440 | optional: true
2441 | '@jest/types':
2442 | optional: true
2443 | babel-jest:
2444 | optional: true
2445 | esbuild:
2446 | optional: true
2447 | dependencies:
2448 | bs-logger: 0.2.6
2449 | fast-json-stable-stringify: 2.1.0
2450 | jest: 28.1.3_@types+node@18.6.5
2451 | jest-util: 28.1.3
2452 | json5: 2.2.1
2453 | lodash.memoize: 4.1.2
2454 | make-error: 1.3.6
2455 | semver: 7.3.7
2456 | typescript: 4.7.4
2457 | yargs-parser: 21.1.1
2458 | dev: true
2459 |
2460 | /tunnel-agent/0.6.0:
2461 | resolution: {integrity: sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==}
2462 | dependencies:
2463 | safe-buffer: 5.1.2
2464 | dev: false
2465 |
2466 | /type-detect/4.0.8:
2467 | resolution: {integrity: sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==}
2468 | engines: {node: '>=4'}
2469 | dev: true
2470 |
2471 | /type-fest/0.21.3:
2472 | resolution: {integrity: sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==}
2473 | engines: {node: '>=10'}
2474 | dev: true
2475 |
2476 | /typescript/4.7.4:
2477 | resolution: {integrity: sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==}
2478 | engines: {node: '>=4.2.0'}
2479 | hasBin: true
2480 | dev: true
2481 |
2482 | /universalify/2.0.0:
2483 | resolution: {integrity: sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==}
2484 | engines: {node: '>= 10.0.0'}
2485 | dev: false
2486 |
2487 | /update-browserslist-db/1.0.5_browserslist@4.21.3:
2488 | resolution: {integrity: sha512-dteFFpCyvuDdr9S/ff1ISkKt/9YZxKjI9WlRR99c180GaztJtRa/fn18FdxGVKVsnPY7/a/FDN68mcvUmP4U7Q==}
2489 | hasBin: true
2490 | peerDependencies:
2491 | browserslist: '>= 4.21.0'
2492 | dependencies:
2493 | browserslist: 4.21.3
2494 | escalade: 3.1.1
2495 | picocolors: 1.0.0
2496 | dev: true
2497 |
2498 | /util-deprecate/1.0.2:
2499 | resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}
2500 | dev: false
2501 |
2502 | /v8-to-istanbul/9.0.1:
2503 | resolution: {integrity: sha512-74Y4LqY74kLE6IFyIjPtkSTWzUZmj8tdHT9Ii/26dvQ6K9Dl2NbEfj0XgU2sHCtKgt5VupqhlO/5aWuqS+IY1w==}
2504 | engines: {node: '>=10.12.0'}
2505 | dependencies:
2506 | '@jridgewell/trace-mapping': 0.3.14
2507 | '@types/istanbul-lib-coverage': 2.0.4
2508 | convert-source-map: 1.8.0
2509 | dev: true
2510 |
2511 | /walker/1.0.8:
2512 | resolution: {integrity: sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==}
2513 | dependencies:
2514 | makeerror: 1.0.12
2515 | dev: true
2516 |
2517 | /which/2.0.2:
2518 | resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==}
2519 | engines: {node: '>= 8'}
2520 | hasBin: true
2521 | dependencies:
2522 | isexe: 2.0.0
2523 | dev: true
2524 |
2525 | /wrap-ansi/7.0.0:
2526 | resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==}
2527 | engines: {node: '>=10'}
2528 | dependencies:
2529 | ansi-styles: 4.3.0
2530 | string-width: 4.2.3
2531 | strip-ansi: 6.0.1
2532 | dev: true
2533 |
2534 | /wrappy/1.0.2:
2535 | resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==}
2536 |
2537 | /write-file-atomic/4.0.1:
2538 | resolution: {integrity: sha512-nSKUxgAbyioruk6hU87QzVbY279oYT6uiwgDoujth2ju4mJ+TZau7SQBhtbTmUyuNYTuXnSyRn66FV0+eCgcrQ==}
2539 | engines: {node: ^12.13.0 || ^14.15.0 || >=16}
2540 | dependencies:
2541 | imurmurhash: 0.1.4
2542 | signal-exit: 3.0.7
2543 | dev: true
2544 |
2545 | /y18n/5.0.8:
2546 | resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==}
2547 | engines: {node: '>=10'}
2548 | dev: true
2549 |
2550 | /yallist/4.0.0:
2551 | resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==}
2552 |
2553 | /yargs-parser/21.1.1:
2554 | resolution: {integrity: sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==}
2555 | engines: {node: '>=12'}
2556 | dev: true
2557 |
2558 | /yargs/17.5.1:
2559 | resolution: {integrity: sha512-t6YAJcxDkNX7NFYiVtKvWUz8l+PaKTLiL63mJYWR2GnHq2gjEWISzsLp9wg3aY36dY1j+gfIEL3pIF+XlJJfbA==}
2560 | engines: {node: '>=12'}
2561 | dependencies:
2562 | cliui: 7.0.4
2563 | escalade: 3.1.1
2564 | get-caller-file: 2.0.5
2565 | require-directory: 2.1.1
2566 | string-width: 4.2.3
2567 | y18n: 5.0.8
2568 | yargs-parser: 21.1.1
2569 | dev: true
2570 |
2571 | /yocto-queue/0.1.0:
2572 | resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==}
2573 | engines: {node: '>=10'}
2574 | dev: true
2575 |
--------------------------------------------------------------------------------
/src/conversion.ts:
--------------------------------------------------------------------------------
1 | import { ILayer, ISupernote } from './format';
2 | import { Image } from 'image-js';
3 | import Color from 'color';
4 |
5 | type Pixel = [number, number, number, number]; // Define type for pixel data (alpha, red, green, blue)
6 |
7 | function concatUint8Arrays(chunks: Uint8Array[]): Uint8Array {
8 | // Calculate the total length of the concatenated Uint8Array
9 | let totalLength = 0;
10 | for (const chunk of chunks) {
11 | totalLength += chunk.length;
12 | }
13 |
14 | // Create a new Uint8Array with the total length
15 | const concatenatedArray = new Uint8Array(totalLength);
16 |
17 | // Copy each chunk into the concatenated array
18 | let offset = 0;
19 | for (const chunk of chunks) {
20 | concatenatedArray.set(chunk, offset);
21 | offset += chunk.length;
22 | }
23 |
24 | return concatenatedArray;
25 | }
26 |
27 | async function compositeImages(sourceImage: Image, destinationImage: Image) {
28 | if (
29 | sourceImage.width !== destinationImage.width ||
30 | sourceImage.height !== destinationImage.height
31 | ) {
32 | throw new Error('Images must have the same dimensions for compositing.');
33 | }
34 |
35 | for (let y = 0; y < destinationImage.height; y++) {
36 | for (let x = 0; x < destinationImage.width; x++) {
37 | const sourcePixel = sourceImage.getPixelXY(x, y) as Pixel; // Explicitly cast for type safety
38 | const destinationPixel = destinationImage.getPixelXY(x, y) as Pixel;
39 |
40 | const blendedPixel = blendPixelOverlay(sourcePixel, destinationPixel);
41 | destinationImage.setPixelXY(x, y, blendedPixel);
42 | }
43 | }
44 | }
45 |
46 | function blendPixelOverlay(sourcePixel: Pixel, destinationPixel: Pixel): Pixel {
47 | const [sourceA, sourceR, sourceG, sourceB] = sourcePixel;
48 | const [destinationA, destinationR, destinationG, destinationB] =
49 | destinationPixel;
50 |
51 | // HACK: if the pixel is fully transparent just pass the lower pixel through
52 | if (sourceR === 0 && sourceG === 0 && sourceB === 0 && sourceA == 0) {
53 | return [destinationA, destinationR, destinationG, destinationB] as Pixel;
54 | }
55 |
56 | return sourcePixel;
57 | }
58 |
59 | /**
60 | * Convert a Supernote file to one or more image-js image objects.
61 | * @param note Parsed Supernote.
62 | * @param pageNumbers Optional page numbers to export (defaults to all). Indexing starts at 1.
63 | */
64 | export function toImage(note: ISupernote, pageNumbers?: number[]) {
65 | const pages = pageNumbers
66 | ? pageNumbers.map((n) => note.pages[n - 1])
67 | : note.pages;
68 | const decoder = new RattaRLEDecoder();
69 | return Promise.all(
70 | pages.map(async (page, pageIndex) => {
71 | const overlays = page.LAYERSEQ.map((name) => page[name] as ILayer).filter(
72 | (layer) => layer.bitmapBuffer !== null && layer.bitmapBuffer.length,
73 | );
74 |
75 | const promises = overlays.map(async (layer): Promise => {
76 | let buffer = null;
77 |
78 | if (
79 | layer.LAYERNAME == 'BGLAYER' &&
80 | page.PAGESTYLE.startsWith('user_')
81 | ) {
82 | return await Image.load(layer.bitmapBuffer as Uint8Array);
83 | }
84 | buffer = decoder.decode(
85 | layer.bitmapBuffer as Uint8Array,
86 | note.pageWidth,
87 | note.pageHeight,
88 | );
89 | return new Image(note.pageWidth, note.pageHeight, buffer, {
90 | components: 3,
91 | alpha: 1,
92 | });
93 | });
94 |
95 | let images = await Promise.all(promises);
96 | images = images.reverse();
97 | let output = images[0].clone();
98 | for (let i = 1; i < overlays.length; i++) {
99 | compositeImages(images[i], output);
100 | }
101 |
102 | return output.grey({ keepAlpha: true });
103 | }),
104 | );
105 | }
106 |
107 | /** Color palette to use as substitutes for the Supernote's colors. */
108 | export interface IColorPalette extends Record {
109 | background: Color;
110 | black: Color;
111 | darkGray: Color;
112 | gray: Color;
113 | white: Color;
114 | markerBlack: Color;
115 | markerDarkGray: Color;
116 | markerGray: Color;
117 |
118 | darkGrayX2: Color;
119 | grayX2: Color;
120 | markerDarkGrayX2: Color;
121 | markerGrayX2: Color;
122 | }
123 |
124 | /** Default color palette to use based on named colors in the color library. */
125 | const defaultPalette: IColorPalette = {
126 | background: Color('transparent'),
127 | black: Color('black'),
128 | darkGray: Color('darkgray'),
129 | gray: Color('gray'),
130 | white: Color('white'),
131 | markerBlack: Color('black'),
132 | markerDarkGray: Color('darkgray'),
133 | markerGray: Color('gray'),
134 |
135 | darkGrayX2: Color('darkgray'),
136 | grayX2: Color('gray'),
137 | markerDarkGrayX2: Color('darkgray'),
138 | markerGrayX2: Color('gray'),
139 | };
140 |
141 | /** An encoded color palette as found in the Supernote's file buffer. */
142 | export interface IEncodedPalette extends Record {
143 | black: number;
144 | background: number;
145 | darkGray: number;
146 | gray: number;
147 | white: number;
148 | markerBlack: number;
149 | markerDarkGray: number;
150 | markerGray: number;
151 |
152 | darkGrayX2: number;
153 | grayX2: number;
154 | markerDarkGrayX2: number;
155 | markerGrayX2: number;
156 | }
157 |
158 | /** Decoder for the Ratta RLE protocol. */
159 | export class RattaRLEDecoder {
160 | encodedPalette: IEncodedPalette = {
161 | black: 0x61,
162 | background: 0x62,
163 | darkGray: 0x63,
164 | gray: 0x64,
165 | white: 0x65,
166 | markerBlack: 0x66,
167 | markerDarkGray: 0x67,
168 | markerGray: 0x68,
169 |
170 | darkGrayX2: 0x9d,
171 | grayX2: 0xc9,
172 | markerDarkGrayX2: 0x9e,
173 | markerGrayX2: 0xca,
174 | };
175 | specialLengthMarker = 0xff;
176 | specialLength = 0x4000;
177 | specialLengthForBlank = 0x400;
178 |
179 | /**
180 | * @param buffer Input buffer following Ratta RLE protocol.
181 | * @param width Page width.
182 | * @param height Page height.
183 | * @param palette Optionally custom palette.
184 | * @param allBlank Blank toggle.
185 | * @returns Decoded buffer.
186 | * Adopted from https://github.com/jya-dev/supernote-tool.
187 | */
188 | decode(
189 | buffer: Uint8Array,
190 | width: number,
191 | height: number,
192 | palette?: IColorPalette,
193 | allBlank = false,
194 | ) {
195 | const pal = palette ?? defaultPalette;
196 | const translation = Object.entries(this.encodedPalette).reduce(
197 | (acc: Record, [key, value]) => {
198 | acc[value] = pal[key] ?? defaultPalette[key];
199 | return acc;
200 | },
201 | {},
202 | );
203 |
204 | const expectedLength = width * height * 4;
205 | const chunks: Uint8Array[] = [];
206 | let waiting: [number, number][] = [];
207 | let holder: [number, number] | null = null;
208 | let [color, length] = [0, 0];
209 | for (let index = 1; index < buffer.length; index += 2) {
210 | color = buffer.at(index - 1) as number;
211 | length = buffer.at(index) as number;
212 | let pushed = false;
213 |
214 | if (holder !== null) {
215 | let [prevColor, prevLength] = holder as [number, number];
216 | holder = null;
217 | if (color === prevColor) {
218 | length = 1 + length + (((prevLength & 0x7f) + 1) << 7);
219 | waiting.push([color, length]);
220 | pushed = true;
221 | } else {
222 | prevLength = ((prevLength & 0x7f) + 1) << 7;
223 | waiting.push([prevColor, prevLength]);
224 | }
225 | }
226 |
227 | if (!pushed) {
228 | if (length === this.specialLengthMarker) {
229 | if (allBlank) length = this.specialLengthForBlank;
230 | else length = this.specialLength;
231 | waiting.push([color, length]);
232 | pushed = true;
233 | } else if ((length & 0x80) !== 0) {
234 | holder = [color, length];
235 | } else {
236 | length += 1;
237 | waiting.push([color, length]);
238 | pushed = true;
239 | }
240 | }
241 | for (const [color, length] of waiting.values()) {
242 | this.addColorBuffer(chunks, color, length, translation);
243 | }
244 | waiting = [];
245 | }
246 |
247 | if (holder !== null) {
248 | [color, length] = holder as [number, number];
249 | length = this.adjustTailLength(
250 | length,
251 | this.getChunksLength(chunks),
252 | expectedLength,
253 | );
254 | if (length > 0) {
255 | this.addColorBuffer(chunks, color, length, translation);
256 | }
257 | }
258 |
259 | let result = concatUint8Arrays(chunks);
260 | if (result.length !== expectedLength)
261 | throw new Error(
262 | `Uint8Array length ${result.length} doesn't match expected length ${expectedLength}.`,
263 | );
264 | return result;
265 | }
266 |
267 | addColorBuffer(
268 | chunks: Uint8Array[],
269 | encodedColor: number,
270 | length: number,
271 | translation: Record,
272 | ): Uint8Array[] {
273 | let newColor =
274 | encodedColor === -1 ? Color('transparent') : translation[encodedColor];
275 | let chunk: Uint8Array;
276 | if (newColor === undefined) {
277 | // HACK(philips): if we get an unknown color just ignore it and make it black
278 | chunk = Uint8Array.from(new Uint8Array([255, 255, 255, 0]));
279 | } else if (newColor.alpha() === 0) {
280 | chunk = Uint8Array.from(new Uint8Array([0, 0, 0, 0]));
281 | } else {
282 | chunk = Uint8Array.from(
283 | new Uint8Array([...newColor.rgb().array(), ~~(255 * newColor.alpha())]),
284 | );
285 | }
286 | for (let index = 0; index < length; index++) {
287 | chunks.push(chunk);
288 | }
289 | return chunks;
290 | }
291 |
292 | adjustTailLength(
293 | tailLength: number,
294 | uncompressedLength: number,
295 | expectedLength: number,
296 | ): number {
297 | const gap = expectedLength - uncompressedLength;
298 | let length: number;
299 | for (let i = 7; i >= 0; i--) {
300 | length = ((tailLength & 0x7f) + 1) << i;
301 | if (length <= gap) {
302 | return length;
303 | }
304 | }
305 | return 0;
306 | }
307 |
308 | getChunksLength(chunks: Uint8Array[]): number {
309 | return chunks.reduce((acc: number, chunk) => acc + chunk.length, 0);
310 | }
311 | }
312 |
--------------------------------------------------------------------------------
/src/format.ts:
--------------------------------------------------------------------------------
1 | /** Supernote note object. */
2 | export interface ISupernote {
3 | /** Page width in pixels. */
4 | pageWidth: number;
5 | /** Page height in pixels. */
6 | pageHeight: number;
7 | /** Address length in bytes. */
8 | addressSize: number;
9 | /** Chunk size descriptor length in bytes. */
10 | lengthFieldSize: number;
11 | /** File type signature. */
12 | signature: string;
13 | /** Version number in YYYYmmdd e.g. 20230015 */
14 | version: number;
15 | /** Default layers. */
16 | defaultLayers: string[];
17 | /** Header keyworded data. */
18 | header: IHeader;
19 | /** Footer keyworded data. */
20 | footer: IFooter;
21 | /** Keywords, text and locations. */
22 | keywords: Record;
23 | /** Title locations and styles. */
24 | titles: Record;
25 | /** Pages information. */
26 | pages: IPage[];
27 | /** Cover page. */
28 | cover?: ICover;
29 | }
30 |
31 | export type IRectangle = [string, string, string, string];
32 |
33 | export interface IHeader {
34 | /** Module label. Usually SNFILE_FEATURE. */
35 | MODULE_LABEL: string;
36 | /** File type. Usually NOTE. */
37 | FILE_TYPE: string;
38 | /** Device used. E.g. A5X. */
39 | APPLY_EQUIPMENT: string;
40 | /** Last opened page. Indexing starts at 1. */
41 | FINAL_OPERATION_PAGE: string;
42 | /** Last opened layer. Indexing starts at 1 for usable layers. */
43 | FINAL_OPERATION_LAYER: string;
44 | /** Used template for new pages. */
45 | ORIGINAL_STYLE: string;
46 | /** Used style hash if affplicable, otherwise 0. */
47 | ORIGINAL_STYLEMD5: string;
48 | /** Device DPI. Currently unused (0). */
49 | DEVICE_DPI: string;
50 | /** Software DPI. Currently unused (0). */
51 | SOFT_DPI: string;
52 | /** File parsing type. Currently unused (0). */
53 | FILE_PARSE_TYPE: string;
54 | /** Ratta ETMD. Currently unused (0). */
55 | RATTA_ETMD: string;
56 | /** Supernote app version. Currently unused (0). */
57 | APP_VERSION: string;
58 | /** Handwriting recognition and text enabled */
59 | FILE_RECOGN_TYPE: string;
60 | }
61 |
62 | export interface IKeyword {
63 | /** Keyword sequence number. */
64 | KEYWORDSEQNO: string;
65 | /** Keyword page number. Indexing starts at 1. */
66 | KEYWORDPAGE: string;
67 | /** Keyword rectangle coordinates. */
68 | KEYWORDRECT: IRectangle;
69 | /** Keyword rectangle coordinates (original?). */
70 | KEYWORDRECTORI: IRectangle;
71 | /** Keyword site. */
72 | KEYWORDSITE: string;
73 | /** Keyword word length */
74 | KEYWORDLEN: string;
75 | /** Keyword word. */
76 | KEYWORD: string;
77 | /** Keyword bitmap content. */
78 | bitmapBuffer: Uint8Array | null;
79 | }
80 |
81 | export interface ITitle {
82 | /** Title sequence number. */
83 | TITLESEQNO: string;
84 | /** Title level number. Indexing starts at 1. */
85 | TITLELEVEL: string;
86 | /** Title rectangle coordinates. */
87 | TITLERECT: IRectangle;
88 | /** Title rectangle coordinates (original?). */
89 | TITLERECTORI: IRectangle;
90 | /** Title bitmap. */
91 | TITLEBITMAP: string;
92 | /** Title protocol. Usually RATTA_RLE. */
93 | TITLEPROTOCOL: string;
94 | /** Title style. */
95 | TITLESTYLE: string;
96 | /** Title bitmap content. */
97 | bitmapBuffer: Uint8Array | null;
98 | }
99 |
100 | export type ILayerNames =
101 | | 'MAINLAYER'
102 | | 'LAYER1'
103 | | 'LAYER2'
104 | | 'LAYER3'
105 | | 'BGLAYER';
106 |
107 | export interface ILayer {
108 | /** Layer type. Usually NOTE. */
109 | LAYERTYPE: string;
110 | /** Layer protocol. Usually RATTA_RLE. */
111 | LAYERPROTOCOL: string;
112 | /** Layer name. */
113 | LAYERNAME: ILayerNames;
114 | /** Layer path. */
115 | LAYERPATH: string;
116 | /** Layer bitmap address. */
117 | LAYERBITMAP: string;
118 | /** Layer vector graph. */
119 | LAYERVECTORGRAPH: string;
120 | /** Layer recognition. */
121 | LAYERRECOGN: string;
122 | /** Layer bitmap content. */
123 | bitmapBuffer: Uint8Array | null;
124 | }
125 |
126 | export enum RecognitionStatuses {
127 | NONE = '0',
128 | DONE = '1',
129 | RUNNING = '2',
130 | }
131 |
132 | export interface IRecognitionElement {
133 | label: string;
134 | type: string;
135 | words: {
136 | label: string;
137 | "bounding-box"?: {
138 | height: number;
139 | width: number;
140 | x: number;
141 | y: number;
142 | };
143 | }[];
144 | }
145 |
146 | export interface IPage {
147 | /** Page style (template). */
148 | PAGESTYLE: string;
149 | /** Page style MD5. */
150 | PAGESTYLEMD5: string;
151 | /** Layer switch. */
152 | LAYERSWITCH: string;
153 | /** Main layer contents. */
154 | MAINLAYER: ILayer;
155 | /** Layer 1 contents. */
156 | LAYER1: ILayer;
157 | /** Layer 2 contents. */
158 | LAYER2: ILayer;
159 | /** Layer 3 contents. */
160 | LAYER3: ILayer;
161 | /** Background layer contents. */
162 | BGLAYER: ILayer;
163 | /** Layer information. */
164 | LAYERINFO: ILayerInfo[];
165 | /** Layer sequence (names). */
166 | LAYERSEQ: ILayerNames[];
167 | /** Total path size. */
168 | TOTALPATH: string;
169 | /** Layer thumbnail type. */
170 | THUMBNAILTYPE: string;
171 | /** Status of text recognition */
172 | RECOGNSTATUS: RecognitionStatuses;
173 | /** Address of recognition text */
174 | RECOGNTEXT: string;
175 | /** Address of recognition file */
176 | RECOGNFILE: string;
177 | /** Status of text recognition */
178 | RECOGNFILESTATUS: RecognitionStatuses;
179 | /** Parsed elements from recognition */
180 | recognitionElements: IRecognitionElement[];
181 | /** Parsed paragraphs from recognition */
182 | paragraphs: string;
183 | /** Parsed text from recognition */
184 | text: string;
185 | /** Total path contents. */
186 | totalPathBuffer: Uint8Array | null;
187 | }
188 |
189 |
190 |
191 | export interface ILayerInfo {
192 | /** Layer ID number. -1 (background), 0 (main) ... 3 (layer3) */
193 | layerId: number;
194 | /** Display names for the layer. */
195 | name: string;
196 | /** Whether this is the background layer. */
197 | isBackgroundLayer: boolean;
198 | /** Allowed to draw on this layer? */
199 | isAllowAdd: boolean;
200 | /** Is this the current editing layer? */
201 | isCurrentLayer: boolean;
202 | /** Whether this layer is currently visible. */
203 | isVisible: boolean;
204 | /** Whether this layer is currently deleted. */
205 | isDeleted: boolean;
206 | /** Whether this layer is allowed to be moved up. */
207 | isAllowUp: boolean;
208 | /** Whether this layer is allowed to be moved down. */
209 | isAllowDown: boolean;
210 | }
211 |
212 | export interface IFooter {
213 | /** File-feature (header address). */
214 | FILE: Record;
215 | /** Cover values. Mappings of COVER_{key}:value. Mostly 0:0 and 1:N. */
216 | COVER: Record;
217 | /** Keyword values. Mappings of KEYWORD_{key}:{value}. */
218 | KEYWORD: Record;
219 | /** Title values. Mappings of TITLE_{key}:{value}. */
220 | TITLE: Record;
221 | /** Style values. Mappings of STYLE_{key}:{value}. */
222 | STYLE: Record;
223 | /** Page values. Mappings of PAGE{key}:{value}. */
224 | PAGE: Record;
225 | }
226 |
227 | export type ICover = {
228 | /** Cover bitmap content. */
229 | bitmapBuffer: Uint8Array | null;
230 | };
231 |
--------------------------------------------------------------------------------
/src/index.ts:
--------------------------------------------------------------------------------
1 | export { SupernoteX } from './parsing';
2 | export { toImage } from './conversion';
3 | export { fetchMirrorFrame } from './mirror';
4 |
--------------------------------------------------------------------------------
/src/mirror.ts:
--------------------------------------------------------------------------------
1 | import { Image } from 'image-js';
2 |
3 | export async function fetchMirrorFrame(ipAddress: string): Promise {
4 | const url = `http://${ipAddress}/screencast.mjpeg`;
5 |
6 | const controller = new AbortController();
7 |
8 | const response = await fetch(url, {
9 | method: 'GET',
10 | signal: controller.signal,
11 | });
12 |
13 | if (!response.ok) {
14 | throw new Error('Failed to fetch the resource.');
15 | }
16 |
17 | const contentType = response.headers.get('content-type');
18 | if (!contentType || !contentType.includes('multipart')) {
19 | throw new Error('Invalid response. Expected multipart content type.');
20 | }
21 |
22 | const reader = response.body?.getReader();
23 | if (!reader) {
24 | throw new Error('Failed to get reader for response body.');
25 | }
26 |
27 | let boundary = contentType.split('boundary=')[1];
28 | if (!boundary) {
29 | throw new Error('Boundary not found in response headers.');
30 | }
31 |
32 | let currentPartHeaders: string[] = [];
33 | let buffer = new Uint8Array();
34 |
35 | return new Promise((resolve, reject) => {
36 | let found = false;
37 | const headerEnd = '\r\n\r\n';
38 |
39 | const processChunk = async (chunk: Uint8Array) => {
40 | buffer = concatUint8Arrays(buffer, chunk);
41 |
42 | let start = new TextDecoder().decode(buffer).indexOf('Content-Type:', 0);
43 | let end = findBoundary(buffer, boundary, start + 2);
44 |
45 | const part = buffer.slice(start, end);
46 | const headerEndIndex = new TextDecoder().decode(part).indexOf(headerEnd);
47 |
48 | if (currentPartHeaders.length === 0) {
49 | if (headerEndIndex !== -1) {
50 | const headerStr = new TextDecoder().decode(
51 | part.slice(0, headerEndIndex),
52 | );
53 | currentPartHeaders = headerStr.split('\r\n');
54 | }
55 | }
56 |
57 | const contentTypeHeader = currentPartHeaders.find((header) =>
58 | header.toLowerCase().startsWith('content-type:'),
59 | );
60 | const contentLengthHeader = currentPartHeaders.find((header) =>
61 | header.toLowerCase().startsWith('content-length:'),
62 | );
63 |
64 | if (contentTypeHeader && contentTypeHeader.includes('image/jpeg')) {
65 | if (contentLengthHeader) {
66 | found = true;
67 | const contentLength = parseInt(
68 | contentLengthHeader.split(':')[1].trim(),
69 | );
70 | if (buffer.length < headerEndIndex + contentLength + 1) {
71 | return;
72 | }
73 | const imageData = buffer.slice(
74 | headerEndIndex + headerEnd.length,
75 | headerEndIndex + contentLength + 1,
76 | );
77 | const image = Image.load(imageData);
78 | resolve(image);
79 | controller.abort();
80 | }
81 | }
82 | };
83 |
84 | const read = async () => {
85 | const { done, value } = await reader.read();
86 | const txt = new TextDecoder().decode(value);
87 | if (done) {
88 | if (!found) {
89 | reject(new Error('No JPEG image found in multipart stream.'));
90 | }
91 | return;
92 | }
93 | await processChunk(value);
94 | await read();
95 | };
96 |
97 | read().catch((error) => reject(error));
98 | });
99 | }
100 |
101 | function findBoundary(
102 | data: Uint8Array,
103 | boundary: string,
104 | startIndex: number = 0,
105 | ): number {
106 | const boundaryStr = `${boundary}`;
107 | return new TextDecoder().decode(data).indexOf(boundaryStr);
108 | }
109 |
110 | function concatUint8Arrays(a: Uint8Array, b: Uint8Array): Uint8Array {
111 | const result = new Uint8Array(a.length + b.length);
112 | result.set(a, 0);
113 | result.set(b, a.length);
114 | return result;
115 | }
116 |
--------------------------------------------------------------------------------
/src/parsing.ts:
--------------------------------------------------------------------------------
1 | import {
2 | ICover,
3 | IFooter,
4 | IHeader,
5 | IKeyword,
6 | ILayer,
7 | ILayerInfo,
8 | ILayerNames,
9 | RecognitionStatuses,
10 | IRecognitionElement,
11 | IPage,
12 | ISupernote,
13 | ITitle,
14 | } from './format';
15 |
16 | /*
17 | * Need to make sure that buffer isn't trying to write out of bounds.
18 | */
19 | function checkOffset(offset: number, ext: number, length: number) {
20 | if (offset % 1 !== 0 || offset < 0)
21 | throw new RangeError('offset is not uint');
22 | if (offset + ext > length)
23 | throw new RangeError('Trying to access beyond buffer length');
24 | }
25 |
26 | function readUintLE(
27 | data: Uint8Array,
28 | offset: number,
29 | byteLength: number,
30 | ): number {
31 | offset = offset >>> 0;
32 | byteLength = byteLength >>> 0;
33 | checkOffset(offset, byteLength, data.length);
34 |
35 | let val = data[offset];
36 | let mul = 1;
37 | let i = 0;
38 | while (++i < byteLength && (mul *= 0x100)) {
39 | val += data[offset + i] * mul;
40 | }
41 |
42 | return val;
43 | }
44 |
45 | /** Get content at location. */
46 | export function getContentAtAddress(
47 | buffer: Uint8Array,
48 | address: number,
49 | byteLength: number,
50 | ): Uint8Array | null {
51 | if (address === 0) return null;
52 | const blockLength = readUintLE(buffer, address, byteLength);
53 | const content = buffer.subarray(
54 | address + byteLength,
55 | address + byteLength + blockLength,
56 | );
57 | return content;
58 | }
59 |
60 | /** Parse key-value pairs. */
61 | export function parseKeyValue(
62 | buffer: Uint8Array,
63 | address: number,
64 | byteLength: number,
65 | ): Record {
66 | const content = getContentAtAddress(buffer, address, byteLength);
67 | if (content === null) return {};
68 | const str = uint8ArrayToString(content);
69 | return extractKeyValue(str);
70 | }
71 |
72 | /** Extract key-value pairs from content. */
73 | export function extractKeyValue(
74 | content: string,
75 | ): Record {
76 | const pattern = /<([^:<>]+):([^:<>]+)>/gm;
77 | const pairs = [...content.matchAll(pattern)];
78 | const data = pairs.reduce(
79 | (acc: Record, [_, key, value]) => {
80 | if (key in acc) {
81 | let newValue =
82 | typeof acc[key] === 'string'
83 | ? [acc[key] as string, value]
84 | : [...acc[key], value];
85 | acc[key] = newValue;
86 | } else {
87 | acc[key] = value;
88 | }
89 | return acc;
90 | },
91 | {},
92 | );
93 | return data;
94 | }
95 |
96 | /** Extract nested key-values from a record. */
97 | export function extractNestedKeyValue(
98 | record: Record,
99 | delimiter = '_',
100 | prefixes: string[] = [],
101 | ): Record> {
102 | const data: Record> = {};
103 | Object.entries(record).forEach(([key, value]) => {
104 | let main: string | undefined;
105 | let sub: string | undefined;
106 | if (typeof value !== 'string') return;
107 |
108 | // With regular delimiter.
109 | const idx = key.indexOf(delimiter);
110 | if (idx > -1) {
111 | main = key.substring(0, idx);
112 | sub = key.substring(idx + 1);
113 | } else {
114 | // Check numbered keys instead.
115 | for (const prefix of prefixes) {
116 | if (!key.startsWith(prefix)) continue;
117 | main = prefix;
118 | sub = key.substring(main.length);
119 | break;
120 | }
121 | }
122 | // Set nested keys if both main and sub found.
123 | if (!(main && sub)) return;
124 | if (main in data) data[main][sub] = value;
125 | else data[main] = { [sub]: value };
126 | });
127 | return data;
128 | }
129 |
130 | /** Extract layer info from the content string. */
131 | export function extractLayerInfo(content: string): ILayerInfo[] {
132 | const layerPattern = /{(?[^{}]+)}/gm;
133 | const dictPattern = /"(?[^"\[{}\]]+)"#"?(?[^"\[{}\],]+)/gm;
134 | // Fetch the string per layer from the array (between {}'s).
135 | const layerContents = Array.from(content.matchAll(layerPattern));
136 | const layerInfos = layerContents.map((match) => {
137 | if (match.groups === undefined) throw new Error('Undefined layer content.');
138 | // Fetch every key value pair for each layer.
139 | const layerDictContents = Array.from(
140 | match.groups.content.matchAll(dictPattern),
141 | );
142 | const data = layerDictContents.reduce(
143 | (acc: Record, match) => {
144 | if (match.groups === undefined)
145 | throw new Error('Undefined key/value pair.');
146 | const { key, value } = match.groups;
147 | acc[key] = value;
148 | return acc;
149 | },
150 | {},
151 | );
152 |
153 | // Morph this into a layer info object.
154 | const layerInfo: ILayerInfo = {
155 | layerId: parseInt(data.layerId ?? '0'),
156 | name: data.name ?? 'Main layer',
157 | isBackgroundLayer: data.isBackgroundLayer === 'true',
158 | isAllowAdd: data.isAllowAdd === 'true',
159 | isCurrentLayer: data.isCurrentLayer === 'true',
160 | isVisible: data.isVisible === 'true',
161 | isDeleted: data.isDeleted === 'true',
162 | isAllowUp: data.isAllowUp === 'true',
163 | isAllowDown: data.isAllowDown === 'true',
164 | };
165 | return layerInfo;
166 | });
167 | return layerInfos;
168 | }
169 |
170 | function uint8ArrayToString(
171 | uint8Array: Uint8Array,
172 | encoding: string = 'utf8',
173 | start: number = 0,
174 | end?: number,
175 | ): string {
176 | // Determine the end index
177 | end = end || uint8Array.length;
178 |
179 | // Slice the Uint8Array to get the desired portion
180 | const slicedArray = uint8Array.slice(start, end);
181 |
182 | // Create a new text decoder with the specified encoding
183 | const decoder = new TextDecoder(encoding);
184 |
185 | // Decode the sliced Uint8Array into a string
186 | return decoder.decode(slicedArray);
187 | }
188 |
189 | /** Supernote X series note. */
190 | export interface SupernoteX extends ISupernote { }
191 | export class SupernoteX {
192 | constructor(buffer: Uint8Array) {
193 | this.pageWidth = 1404;
194 | this.pageHeight = 1872;
195 | this.addressSize = 4;
196 | this.lengthFieldSize = 4;
197 | this.defaultLayers = ['MAINLAYER', 'LAYER1', 'LAYER2', 'LAYER3', 'BGLAYER'];
198 | this._parseBuffer(buffer);
199 | }
200 |
201 | /** Parse note contents from buffer. */
202 | _parseBuffer(buffer: Uint8Array): Partial {
203 | this._parseSignature(buffer);
204 | this._parseFooter(buffer);
205 | this._parseHeader(buffer);
206 | // Manta is the first Supernote device to have a different
207 | // pageWidth and pageHeight
208 | if (this.header.APPLY_EQUIPMENT == 'N5') {
209 | this.pageWidth = 1920
210 | this.pageHeight = 2560;
211 | }
212 | this._parsePages(buffer);
213 | this._parseCover(buffer);
214 | this._parseKeywords(buffer);
215 | this._parseTitles(buffer);
216 | return this;
217 | }
218 |
219 | /** Parse Supernote file signature from buffer. */
220 | _parseSignature(buffer: Uint8Array): string {
221 | const pattern = /^noteSN_FILE_VER_(\d{8})/;
222 | const content = uint8ArrayToString(buffer, 'utf8', 0, 24);
223 | const match = content.match(pattern);
224 | if (!match)
225 | throw new Error("Cannot parse this file. Signature doesn't match.");
226 | this.signature = content;
227 | this.version = parseFloat(match[1]);
228 | return this.signature;
229 | }
230 |
231 | /** Parse the footer of a Supernote file's buffer contents. */
232 | _parseFooter(buffer: Uint8Array): IFooter {
233 | const chunk = buffer.subarray(buffer.length - this.addressSize);
234 | const address = readUintLE(chunk, 0, this.addressSize);
235 | const data = parseKeyValue(buffer, address, this.lengthFieldSize);
236 | const nested = extractNestedKeyValue(data, '_', ['PAGE']);
237 | this.footer = {
238 | FILE: { FEATURE: '24' },
239 | COVER: { '0': '0' },
240 | KEYWORD: {},
241 | TITLE: {},
242 | STYLE: {},
243 | PAGE: {},
244 | ...nested,
245 | };
246 | return this.footer;
247 | }
248 |
249 | /** Parse the header of a Supernote file's buffer contents.
250 | * Relies on the address as given in the file's footer. */
251 | _parseHeader(buffer: Uint8Array): IHeader {
252 | const address = this.footer.FILE?.FEATURE
253 | ? parseInt(this.footer.FILE.FEATURE)
254 | : 24;
255 | const data = parseKeyValue(buffer, address, this.lengthFieldSize);
256 | this.header = {
257 | MODULE_LABEL: '0',
258 | FILE_TYPE: '0',
259 | APPLY_EQUIPMENT: '0',
260 | FINAL_OPERATION_PAGE: '0',
261 | FINAL_OPERATION_LAYER: '0',
262 | ORIGINAL_STYLE: '0',
263 | ORIGINAL_STYLEMD5: '0',
264 | DEVICE_DPI: '0',
265 | SOFT_DPI: '0',
266 | FILE_PARSE_TYPE: '0',
267 | RATTA_ETMD: '0',
268 | APP_VERSION: '0',
269 | FILE_RECOGN_TYPE: '0',
270 | ...data,
271 | };
272 | return this.header;
273 | }
274 |
275 | /** Parse pages of a Supernote file's buffer contents.
276 | * Relies on the address as given in the file's footer. */
277 | _parsePages(buffer: Uint8Array) {
278 | const collator = new Intl.Collator([], { numeric: true });
279 | const pages: IPage[] = Array.from(Object.keys(this.footer.PAGE))
280 | .sort((a, b) => collator.compare(a, b))
281 | .map((idx) => {
282 | const address = parseInt(this.footer.PAGE[idx]);
283 | const data = parseKeyValue(buffer, address, this.lengthFieldSize);
284 | const recognitionElements = this._parseRecognition(buffer, data['RECOGNTEXT'] as string) || [];
285 | return {
286 | PAGESTYLE: '0',
287 | PAGESTYLEMD5: '0',
288 | LAYERSWITCH: '0',
289 | TOTALPATH: '0',
290 | THUMBNAILTYPE: '0',
291 | RECOGNSTATUS: RecognitionStatuses.NONE,
292 | RECOGNTEXT: '0',
293 | RECOGNFILE: '0',
294 | RECOGNFILESTATUS: RecognitionStatuses.NONE,
295 | ...data,
296 | MAINLAYER: this._parseLayer(
297 | buffer,
298 | parseInt((data.MAINLAYER as string) ?? '0'),
299 | ),
300 | LAYER1: this._parseLayer(
301 | buffer,
302 | parseInt((data.LAYER1 as string) ?? '0'),
303 | ),
304 | LAYER2: this._parseLayer(
305 | buffer,
306 | parseInt((data.LAYER2 as string) ?? '0'),
307 | ),
308 | LAYER3: this._parseLayer(
309 | buffer,
310 | parseInt((data.LAYER3 as string) ?? '0'),
311 | ),
312 | BGLAYER: this._parseLayer(
313 | buffer,
314 | parseInt((data.BGLAYER as string) ?? '0'),
315 | ),
316 | LAYERINFO: extractLayerInfo(data['LAYERINFO'] as string),
317 | LAYERSEQ: (data['LAYERSEQ'] as string).split(',') as ILayerNames[],
318 | recognitionElements: recognitionElements,
319 | paragraphs: this._extractParagraphs(recognitionElements),
320 | text: this._extractText(recognitionElements),
321 | totalPathBuffer: getContentAtAddress(
322 | buffer,
323 | parseInt((data.TOTALPATH as string) ?? '0'),
324 | this.lengthFieldSize,
325 | ),
326 | };
327 | });
328 | this.pages = pages;
329 | return pages;
330 | }
331 |
332 | /** Parse text of a Supernote file's buffer contents.
333 | * Relies on the address as given in the file's footer. */
334 | _parseRecognition(buffer: Uint8Array, text: string) {
335 | if (text === '0' || text === undefined) {
336 | return;
337 | }
338 |
339 | const address = parseInt(text);
340 | const data = getContentAtAddress(buffer, address, this.lengthFieldSize);
341 |
342 | if (data === null) {
343 | return;
344 | }
345 |
346 | const recognJson = new TextDecoder('utf8').decode(data);
347 | const recogn = JSON.parse(atob(recognJson));
348 |
349 | const elements: IRecognitionElement[] = recogn.elements || [];
350 |
351 | return elements
352 | }
353 |
354 | _extractText(elements: IRecognitionElement[]) {
355 | const labels = elements
356 | .filter((e: any) => e.type === 'Text')
357 | .map((e: any) => decodeURIComponent(escape(e.label))); // Decode using windows-1254 encoding
358 |
359 | return labels.join("\n");
360 | }
361 |
362 | _extractParagraphs(elements: IRecognitionElement[]) {
363 | // Filter text elements and get their bounding boxes
364 | const textElements = elements
365 | .filter(e => e.type === 'Text')
366 | .map(e => ({
367 | text: decodeURIComponent(escape(e.label)),
368 | box: e.words[0]?.['bounding-box']
369 | }))
370 | .filter(e => e.box); // Only keep elements with valid bounding boxes
371 |
372 | if (textElements.length === 0) return '';
373 |
374 | const avgLineHeight = textElements.reduce((sum, e) => sum + (e.box?.height || 0), 0) / textElements.length;
375 |
376 | // Sort by vertical position first, then horizontal
377 | textElements.sort((a, b) => {
378 | const verticalDiff = (a.box?.y || 0) - (b.box?.y || 0);
379 | // If elements are roughly on the same line (within 0.5 line height), sort by x
380 | if (Math.abs(verticalDiff) < avgLineHeight * 0.5) {
381 | return (a.box?.x || 0) - (b.box?.x || 0);
382 | }
383 | return verticalDiff;
384 | });
385 |
386 | // Group elements into paragraphs based on vertical spacing
387 | let result = '';
388 | let lastY = textElements[0].box?.y || 0;
389 | let lastX = textElements[0].box?.x || 0;
390 |
391 | textElements.forEach((element, index) => {
392 | const currentY = element.box?.y || 0;
393 | const currentX = element.box?.x || 0;
394 |
395 | if (index > 0) {
396 | const verticalGap = currentY - lastY;
397 | const isNewParagraph = verticalGap > avgLineHeight * 1.5;
398 |
399 | if (isNewParagraph) {
400 | result += '\n\n';
401 | } else if (currentX < lastX) { // Same paragraph
402 | result += ' ';
403 | } else { // Same line
404 | result += ' ';
405 | }
406 | }
407 |
408 |
409 | const trimmed = element.text.replace(/\n/g, ' ');
410 | result += trimmed;
411 | lastY = currentY;
412 | lastX = currentX;
413 | });
414 |
415 | return result;
416 | }
417 |
418 | /** Parse layer at a specific address in a Supernote file's buffer contents. */
419 | _parseLayer(buffer: Uint8Array, address: number): ILayer {
420 | const data = parseKeyValue(buffer, address, this.lengthFieldSize);
421 | const bitmapBuffer = getContentAtAddress(
422 | buffer,
423 | parseInt((data.LAYERBITMAP as string) ?? '0'),
424 | this.lengthFieldSize,
425 | );
426 | return {
427 | LAYERTYPE: 'NOTE',
428 | LAYERPROTOCOL: 'RATTA_RLE',
429 | LAYERNAME: 'MAINLAYER',
430 | LAYERPATH: '0',
431 | LAYERBITMAP: '0',
432 | LAYERVECTORGRAPH: '0',
433 | LAYERRECOGN: '0',
434 | ...data,
435 | bitmapBuffer,
436 | };
437 | }
438 |
439 | /** Parse cover from Supernote file's buffer contents. */
440 | _parseCover(buffer: Uint8Array): ICover | undefined {
441 | const address = parseInt(this.footer.COVER['0'] ?? this.footer.COVER['1']);
442 | if (address && address > 0) {
443 | const bitmapBuffer = getContentAtAddress(
444 | buffer,
445 | address,
446 | this.lengthFieldSize,
447 | );
448 | this.cover = { bitmapBuffer };
449 | }
450 | return this.cover;
451 | }
452 |
453 | /** Parse keywords from Supernote file's buffer contents. */
454 | _parseKeywords(buffer: Uint8Array): Record {
455 | this.keywords = {};
456 | Object.entries(this.footer.KEYWORD).forEach(([key, value]) => {
457 | if (!(key in this.keywords)) this.keywords[key] = [];
458 | if (typeof value === 'string')
459 | this.keywords[key].push(this._parseKeyword(buffer, parseInt(value)));
460 | else
461 | value.forEach((address) =>
462 | this.keywords[key].push(
463 | this._parseKeyword(buffer, parseInt(address)),
464 | ),
465 | );
466 | });
467 | return this.keywords;
468 | }
469 |
470 | /** Parse a single keyword entry at a certain buffer address. */
471 | _parseKeyword(buffer: Uint8Array, address: number): IKeyword {
472 | const data = parseKeyValue(buffer, address, this.lengthFieldSize);
473 | const bitmapBuffer = getContentAtAddress(
474 | buffer,
475 | parseInt((data.KEYWORDSITE as string) ?? '0'),
476 | this.lengthFieldSize,
477 | );
478 | const keyword: IKeyword = {
479 | KEYWORDSEQNO: '0',
480 | KEYWORDPAGE: '1',
481 | KEYWORDRECT: ['0', '0', '0', '0'],
482 | KEYWORDRECTORI: ['0', '0', '0', '0'],
483 | KEYWORDSITE: '0',
484 | KEYWORDLEN: '0',
485 | KEYWORD: '',
486 | bitmapBuffer,
487 | };
488 | return keyword;
489 | }
490 |
491 | /** Parse titles from Supernote file's buffer contents. */
492 | _parseTitles(buffer: Uint8Array): Record {
493 | this.titles = {};
494 | Object.entries(this.footer.TITLE).forEach(([key, value]) => {
495 | if (!(key in this.titles)) this.titles[key] = [];
496 | if (typeof value === 'string')
497 | this.titles[key].push(this._parseTitle(buffer, parseInt(value)));
498 | else
499 | value.forEach((address) =>
500 | this.titles[key].push(this._parseTitle(buffer, parseInt(address))),
501 | );
502 | });
503 | return this.titles;
504 | }
505 |
506 | /** Parse a single title entry at a certain buffer address. */
507 | _parseTitle(buffer: Uint8Array, address: number): ITitle {
508 | const data = parseKeyValue(buffer, address, this.lengthFieldSize);
509 | const bitmapBuffer = getContentAtAddress(
510 | buffer,
511 | parseInt((data.TITLEBITMAP as string) ?? '0'),
512 | this.lengthFieldSize,
513 | );
514 | const title: ITitle = {
515 | TITLESEQNO: '0',
516 | TITLELEVEL: '1',
517 | TITLERECT: ['0', '0', '0', '0'],
518 | TITLERECTORI: ['0', '0', '0', '0'],
519 | TITLEBITMAP: '0',
520 | TITLEPROTOCOL: 'RATTA_RLE',
521 | TITLESTYLE: '1000254',
522 | ...data,
523 | bitmapBuffer,
524 | };
525 | return title;
526 | }
527 | }
528 |
--------------------------------------------------------------------------------
/src/supernote.d.ts:
--------------------------------------------------------------------------------
1 | declare module 'supernote';
2 |
--------------------------------------------------------------------------------
/tests/input/1to10.note:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/philips/supernote-typescript/e7fcf87256d901d6711a3ce0d94482603e285cda/tests/input/1to10.note
--------------------------------------------------------------------------------
/tests/input/README.md:
--------------------------------------------------------------------------------
1 | 'nomad-3.15.27-blank-2p.note' contains two pages of handwritten text, and demos the available writing tools. This was done using the blank background template, and contains a link to the first page on the second page.
2 | 'nomad-3.15.27-blank-shapes-and-RTR.note' conains a single page of shapes, patterns, and handwritten text. Headings and keyword highlighting included in file. This file was created using Real Time Recognition (allows export of handwritten notes as text within the nomad), with the blank background template.
3 |
--------------------------------------------------------------------------------
/tests/input/a5x-2.14.28.note:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/philips/supernote-typescript/e7fcf87256d901d6711a3ce0d94482603e285cda/tests/input/a5x-2.14.28.note
--------------------------------------------------------------------------------
/tests/input/horizontal.note:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/philips/supernote-typescript/e7fcf87256d901d6711a3ce0d94482603e285cda/tests/input/horizontal.note
--------------------------------------------------------------------------------
/tests/input/manta.note:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/philips/supernote-typescript/e7fcf87256d901d6711a3ce0d94482603e285cda/tests/input/manta.note
--------------------------------------------------------------------------------
/tests/input/nomad-3.15.27-blank-2p.note:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/philips/supernote-typescript/e7fcf87256d901d6711a3ce0d94482603e285cda/tests/input/nomad-3.15.27-blank-2p.note
--------------------------------------------------------------------------------
/tests/input/nomad-3.15.27-blank-shapes-and-RTR.note:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/philips/supernote-typescript/e7fcf87256d901d6711a3ce0d94482603e285cda/tests/input/nomad-3.15.27-blank-shapes-and-RTR.note
--------------------------------------------------------------------------------
/tests/input/rtr.note:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/philips/supernote-typescript/e7fcf87256d901d6711a3ce0d94482603e285cda/tests/input/rtr.note
--------------------------------------------------------------------------------
/tests/input/test.note:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/philips/supernote-typescript/e7fcf87256d901d6711a3ce0d94482603e285cda/tests/input/test.note
--------------------------------------------------------------------------------
/tests/input/turkish.note:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/philips/supernote-typescript/e7fcf87256d901d6711a3ce0d94482603e285cda/tests/input/turkish.note
--------------------------------------------------------------------------------
/tests/input/unknown-color.note:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/philips/supernote-typescript/e7fcf87256d901d6711a3ce0d94482603e285cda/tests/input/unknown-color.note
--------------------------------------------------------------------------------
/tests/main.test.ts:
--------------------------------------------------------------------------------
1 | import * as fs from "fs-extra"
2 | import { fetchMirrorFrame } from "../src/mirror"
3 | import { toImage } from "../src/conversion"
4 | import { SupernoteX } from "../src/parsing"
5 | import http from 'http';
6 |
7 | function readFileToUint8Array(filePath: string): Promise {
8 | return new Promise((resolve, reject) => {
9 | fs.readFile(`tests/input/${filePath}`, (err, data) => {
10 | if (err) {
11 | reject(err);
12 | } else {
13 | resolve(new Uint8Array(data.buffer));
14 | }
15 | });
16 | });
17 | }
18 |
19 | describe("smoke", () => {
20 | it("opens the test note", async () => {
21 | let buf = await readFileToUint8Array("test.note")
22 | expect(buf.byteLength).toEqual(263119)
23 | })
24 |
25 | it("should decode an int", () => {
26 | let buf = Buffer.from([0x12, 0x34, 0x56, 0x78])
27 | let num = buf.readUIntLE(0, 4)
28 | expect(num).toEqual(2018915346)
29 | })
30 |
31 | it("should parse a Supernote X file", async () => {
32 | let sn = new SupernoteX(await readFileToUint8Array("test.note"))
33 | expect(sn).not.toBeUndefined()
34 | })
35 | })
36 |
37 | describe("image", () => {
38 | it("convert a simple note to png pages", async () => {
39 | let sn = new SupernoteX(await readFileToUint8Array("test.note"))
40 | let images = await toImage(sn)
41 | expect(images).not.toBeUndefined()
42 | for await (const [index, image] of images.entries()) {
43 | await image.save(`tests/output/test.note-${index}.png`)
44 | }
45 | }, 30000)
46 | })
47 |
48 | describe("nomad", () => {
49 | it("convert a note from a nomad Chauvet 3.15.27 to png pages", async () => {
50 | let sn = new SupernoteX(await readFileToUint8Array("nomad-3.15.27-blank-2p.note"))
51 | let images = await toImage(sn)
52 | expect(images).not.toBeUndefined()
53 | for await (const [index, image] of images.entries()) {
54 | await image.save(`tests/output/nomad-3.15.27-blank-2p.note-${index}.png`)
55 | }
56 | }, 30000)
57 |
58 | it("convert a note from a nomad Chauvet 3.15.27 with handwriting recognition to png pages", async () => {
59 | let sn = new SupernoteX(await readFileToUint8Array("nomad-3.15.27-blank-shapes-and-RTR.note"))
60 | let images = await toImage(sn)
61 | expect(images).not.toBeUndefined()
62 | for await (const [index, image] of images.entries()) {
63 | await image.save(`tests/output/nomad-3.15.27-blank-shapes-and-RTR.note-${index}.png`)
64 | }
65 | }, 30000)
66 | })
67 |
68 | describe("A5X", () => {
69 | it("convert a note from a A5X with Chauvet 2.14.28 to png pages", async () => {
70 | let sn = new SupernoteX(await readFileToUint8Array("a5x-2.14.28.note"))
71 | let images = await toImage(sn)
72 | expect(images).not.toBeUndefined()
73 | for await (const [index, image] of images.entries()) {
74 | await image.save(`tests/output/a5x-2.14.28.note-${index}.png`)
75 | }
76 | }, 30000)
77 | })
78 |
79 | describe("manta", () => {
80 | it("convert a note from a A5X2 Manta with Chauvet ??? to png pages", async () => {
81 | let sn = new SupernoteX(await readFileToUint8Array("manta.note"))
82 | let images = await toImage(sn)
83 | expect(images).not.toBeUndefined()
84 | for await (const [index, image] of images.entries()) {
85 | await image.save(`tests/output/manta.note-${index}.png`)
86 | }
87 | }, 30000)
88 | })
89 |
90 | describe("horizontal", () => {
91 | it("convert a horizontal note from a A5X2 Manta", async () => {
92 | let sn = new SupernoteX(await readFileToUint8Array("horizontal.note"))
93 | let images = await toImage(sn)
94 | expect(images).not.toBeUndefined()
95 | for await (const [index, image] of images.entries()) {
96 | await image.save(`tests/output/horizontal.note-${index}.png`)
97 | }
98 | }, 30000)
99 | })
100 |
101 | describe("color", () => {
102 | it("test a note that has an unknown color", async () => {
103 | let sn = new SupernoteX(await readFileToUint8Array("unknown-color.note"))
104 | let images = await toImage(sn)
105 | expect(images).not.toBeUndefined()
106 | for await (const [index, image] of images.entries()) {
107 | await image.save(`tests/output/unknown-colors.note-${index}.png`)
108 | }
109 | }, 30000)
110 | })
111 |
112 | describe("rtr", () => {
113 | it("test a note that has paragraphs", async () => {
114 | let sn = new SupernoteX(await readFileToUint8Array("rtr.note"))
115 |
116 | const ep = [
117 | 'Real time recognition paragraph test',
118 | 'With enough space a new paragraph should be created. If lines are close then the text should reflow.',
119 | 'This should be a new paragraph.',
120 | 'As well as this.',
121 | 'But thin is the last paragraph and should reflow together.',
122 | ].join('\n\n')
123 |
124 | expect(sn.pages[0].paragraphs).toEqual(ep)
125 |
126 | const et = [
127 | 'Real',
128 | 'time', 'recognition',
129 | 'paragraph test',
130 | 'With enough space a new paragraph',
131 | 'should be created. If lines are',
132 | 'close then the text should reflow.',
133 | 'This should be a new paragraph.',
134 | 'As well as this.',
135 | 'But thin is the last paragraph and',
136 | 'should reflow together.',
137 | ].join('\n')
138 |
139 | expect(sn.pages[0].text).toEqual(et)
140 | }, 30000)
141 | })
142 |
143 | /*
144 | describe('profile', () => {
145 | v8Profiler.setGenerateType(1);
146 | const title = '1to10';
147 | v8Profiler.startProfiling(title, true);
148 | afterAll(() => {
149 | const profile = v8Profiler.stopProfiling(title);
150 | profile.export(function (error, result: any) {
151 | // if it doesn't have the extension .cpuprofile then
152 | // chrome's profiler tool won't like it.
153 | // examine the profile:
154 | // Navigate to chrome://inspect
155 | // Click Open dedicated DevTools for Node
156 | // Select the profiler tab
157 | // Load your file
158 | fs.writeFileSync(`tests/output/${title}.cpuprofile`, result);
159 | profile.delete();
160 | });
161 | });
162 | describe("test ordering", () => {
163 | it("ensure that pages 1 to 10 are oredered correctly", async () => {
164 | let sn = new SupernoteX(await readFileToUint8Array("1to10.note"))
165 | let images = await toImage(sn)
166 | expect(images).not.toBeUndefined()
167 | for await (const [index, image] of images.entries()) {
168 | await image.save(`tests/output/1to10-${index + 1}.png`)
169 | }
170 | }, 30000)
171 | })
172 | })
173 |
174 | const TEST_PORT = 8080;
175 |
176 | function base64ToUint8Array(base64String: string): Uint8Array {
177 | const binaryString = atob(base64String);
178 | const length = binaryString.length;
179 | const uint8Array = new Uint8Array(length);
180 | for (let i = 0; i < length; ++i) {
181 | uint8Array[i] = binaryString.charCodeAt(i);
182 | }
183 | return uint8Array;
184 | }
185 |
186 | // Minimal PNG image encoded in base64
187 | const encodedImage = "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQAAAAA3bvkkAAAACklEQVR4AWNgAAAAAgABc3UBGAAAAABJRU5ErkJggg==";
188 | const buffer = base64ToUint8Array(encodedImage);
189 | const testServer = http.createServer((req, res) => {
190 | res.setHeader('Content-Type', 'multipart/x-mixed-replace; boundary=--BOUNDARY');
191 | res.write(`Content-Type: image/jpeg\r\n`);
192 | res.write(`Content-Length: ${encodedImage.length}\r\n`);
193 | res.write(`\r\n`);
194 | res.write(buffer);
195 | res.write(`--BOUNDARY\r\n`);
196 | res.write(`Content-Type: image/jpeg\r\n`);
197 | res.write(`Content-Length: ${encodedImage.length}\r\n`);
198 | res.write(`\r\n`);
199 | res.write(buffer);
200 | res.write(`--BOUNDARY--`);
201 | res.end();
202 | });
203 |
204 | beforeAll(() => {
205 | testServer.listen(TEST_PORT);
206 | });
207 |
208 | afterAll(() => {
209 | testServer.close();
210 | });
211 |
212 | describe("mirror", () => {
213 | it("download a frame off the mirroring service", async () => {
214 | let ipport = `localhost:${TEST_PORT}`;
215 | if (process.env.MIRROR_IPPORT) {
216 | ipport = process.env.MIRROR_IPPORT;
217 | }
218 | const image = await fetchMirrorFrame(ipport);
219 | expect(image).toBeDefined();
220 | await image.save(`tests/output/mirror.jpg`)
221 | }, 30000)
222 | })
223 | */
--------------------------------------------------------------------------------
/tests/output/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/philips/supernote-typescript/e7fcf87256d901d6711a3ce0d94482603e285cda/tests/output/.gitkeep
--------------------------------------------------------------------------------
/tsconfig.json:
--------------------------------------------------------------------------------
1 |
2 | {
3 | "compilerOptions": {
4 | "target": "es2016",
5 | "module": "commonjs",
6 | "strict": true,
7 | "declaration": true,
8 | "esModuleInterop": true,
9 | "forceConsistentCasingInFileNames": true,
10 | "skipLibCheck": true,
11 | "outDir": "./lib",
12 | },
13 | "include": [
14 | "./src"
15 | ]
16 | }
17 |
--------------------------------------------------------------------------------