├── .eslintrc.json ├── .gitignore ├── .vscodeignore ├── LICENSE ├── README.md ├── logo └── logo.png ├── package-lock.json ├── package.json ├── src ├── extension.ts ├── markdown-formula.ts └── test │ ├── runTest.ts │ └── suite │ ├── extension.test.ts │ └── index.ts └── tsconfig.json /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "root": true, 3 | "parser": "@typescript-eslint/parser", 4 | "parserOptions": { 5 | "ecmaVersion": 6, 6 | "sourceType": "module" 7 | }, 8 | "plugins": [ 9 | "@typescript-eslint" 10 | ], 11 | "rules": { 12 | "@typescript-eslint/naming-convention": "warn", 13 | "@typescript-eslint/semi": "warn", 14 | "curly": "warn", 15 | "eqeqeq": "warn", 16 | "no-throw-literal": "warn", 17 | "semi": "off" 18 | }, 19 | "ignorePatterns": [ 20 | "out", 21 | "dist", 22 | "**/*.d.ts" 23 | ] 24 | } 25 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | out 3 | .vscode 4 | .vscode-test -------------------------------------------------------------------------------- /.vscodeignore: -------------------------------------------------------------------------------- 1 | .vscode/** 2 | .vscode-test/** 3 | out/test/** 4 | 5 | src/** 6 | .gitignore 7 | .yarnrc 8 | vsc-extension-quickstart.md 9 | **/tsconfig.json 10 | **/.eslintrc.json 11 | **/*.map 12 | **/*.ts 13 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Markdown Formula 2 | *markdown formula* is a Visual Studio Code extension which evaluates Excel-like formulas in markdown tables. To make markdown readable with other parsers and to emphazise that the cell value is the output of a formula, link style formatting is used to create a formula. The structure of a *markdown formula* consist of two parts: 3 | 4 | ``` 5 | [VALUE](#FORMULA) 6 | ``` 7 | 8 | Here, "#FORMULA" is the Excel-like formula which will be evaluated. The hash symbol (#) is used to identify the *markdown-formula* and it is a replacement for '=' sign in Excel formulas. The purpose of using '#' instead of '=' is to take advantage of the URI fragments and create valid URL address from the given formulas. The "VALUE" is the result of the "#FORMULA" and automatically generated by this extension. All the calculations are fulfilled via the popular open-source library [HyperFormula](https://handsontable.github.io/hyperformula/). 9 | 10 | Using the Excel-like naming convention, table columns are addressed with letters (A,B,...) and the table rows are addressed with numbers (1,2,..). 11 | 12 | *markdown formula* parses all the tables in the current document and seperates them as sheets. If a comment line ('\') exist just before the table header, it is assigned as the sheetname for the table. If a comment line does not exist, the sheet name is automatically generated as "Sheet#N" where the #N is the zero based order of the table in the document. 13 | 14 | ## Basic Example 15 | In this basic example, we have a table which consist of five rows and three columns. The last column of the first two rows (namely C1 and C2) are used to construct the (C3:C5) rows. 16 | 17 | 18 | | name | formula | values | 19 | | -------------- | --------------- | ---------------------- | 20 | | three | - | 3 | 21 | | eight | - | 8 | 22 | | summation | #SUM(C1:C2) | [11](#SUM(C1:C2)) | 23 | | multiplication | #C1*C2 | [24](#C1*C2) | 24 | | average | #AVERAGE(C1:C2) | [5.5](#AVERAGE(C1:C2)) | 25 | 26 | ## Using Cells From Other Sheets 27 | In this example, we will use the cells of the previous table in our current table. 28 | 29 | 30 | | name | formula | values1 | values2 | 31 | | --------------------- | ----------------------------------------- | ------------------------- | ------------------------- | 32 | | six and one | - | 6 | 1 | 33 | | summation from table1 | #table1!C3 | 4 | [11](#table1!C3) | 34 | | summation and average | #SUM(C1:D2),#AVERAGE(C1:D2) | [22](#SUM(C1:D2)) | [5.5](#AVERAGE(C1:D2)) | 35 | | count larger than 3 | #COUNTIF(C1:C3,">3"),#COUNTIF(D1:D3,">3") | [3](#COUNTIF(C1:C3,">3")) | [2](#COUNTIF(D1:D3,">3")) | 36 | 37 | ## Extension Settings 38 | *markdown formula* has some customization options under the VS Code's settings panel. 39 | 40 | - **precisionRounding**: Rounding precision for floating point numbers can be set. 41 | - **includeTableHeaderInCellNumaration**: If set to true, the table header is included as the first row in cell enumaration. 42 | - **calculateOnSave**: If set to true, the formulas on the tables will be recalculated and the tables will be updated before writing the file to the disk. 43 | 44 | ## How to Use 45 | You have three alternatives to install this extension. 46 | 47 | 1. Download it from [VS Code Extension Marketplace](https://marketplace.visualstudio.com/vscode). 48 | 2. Download the prebuilt version under the [releases](https://github.com/cescript/MarkdownFormula/releases) tab 49 | 3. Build it from the source 50 | 51 | After installing the extension; 52 | - Open a document which contains markdown tables and formulas 53 | - Save the document to automatically calculate the formulas or Press Ctrl+Shift+P to run a command, write "Calculate all formulas" and press Enter to manually update the formulas 54 | - All the formula cells in your document should be updated with the calculated values -------------------------------------------------------------------------------- /logo/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cescript/MarkdownFormula/17d30b51e0c9ce2cb244ed0d938f4ad7252e256d/logo/logo.png -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "markdown-formula", 3 | "version": "0.0.1", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "@babel/code-frame": { 8 | "version": "7.12.11", 9 | "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz", 10 | "integrity": "sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==", 11 | "dev": true, 12 | "requires": { 13 | "@babel/highlight": "^7.10.4" 14 | } 15 | }, 16 | "@babel/helper-validator-identifier": { 17 | "version": "7.15.7", 18 | "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.15.7.tgz", 19 | "integrity": "sha512-K4JvCtQqad9OY2+yTU8w+E82ywk/fe+ELNlt1G8z3bVGlZfn/hOcQQsUhGhW/N+tb3fxK800wLtKOE/aM0m72w==", 20 | "dev": true 21 | }, 22 | "@babel/highlight": { 23 | "version": "7.14.5", 24 | "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.14.5.tgz", 25 | "integrity": "sha512-qf9u2WFWVV0MppaL877j2dBtQIDgmidgjGk5VIMw3OadXvYaXn66U1BFlH2t4+t3i+8PhedppRv+i40ABzd+gg==", 26 | "dev": true, 27 | "requires": { 28 | "@babel/helper-validator-identifier": "^7.14.5", 29 | "chalk": "^2.0.0", 30 | "js-tokens": "^4.0.0" 31 | }, 32 | "dependencies": { 33 | "chalk": { 34 | "version": "2.4.2", 35 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", 36 | "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", 37 | "dev": true, 38 | "requires": { 39 | "ansi-styles": "^3.2.1", 40 | "escape-string-regexp": "^1.0.5", 41 | "supports-color": "^5.3.0" 42 | } 43 | }, 44 | "escape-string-regexp": { 45 | "version": "1.0.5", 46 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", 47 | "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", 48 | "dev": true 49 | } 50 | } 51 | }, 52 | "@eslint/eslintrc": { 53 | "version": "0.4.3", 54 | "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.3.tgz", 55 | "integrity": "sha512-J6KFFz5QCYUJq3pf0mjEcCJVERbzv71PUIDczuh9JkwGEzced6CO5ADLHB1rbf/+oPBtoPfMYNOpGDzCANlbXw==", 56 | "dev": true, 57 | "requires": { 58 | "ajv": "^6.12.4", 59 | "debug": "^4.1.1", 60 | "espree": "^7.3.0", 61 | "globals": "^13.9.0", 62 | "ignore": "^4.0.6", 63 | "import-fresh": "^3.2.1", 64 | "js-yaml": "^3.13.1", 65 | "minimatch": "^3.0.4", 66 | "strip-json-comments": "^3.1.1" 67 | }, 68 | "dependencies": { 69 | "ignore": { 70 | "version": "4.0.6", 71 | "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", 72 | "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", 73 | "dev": true 74 | } 75 | } 76 | }, 77 | "@humanwhocodes/config-array": { 78 | "version": "0.5.0", 79 | "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.5.0.tgz", 80 | "integrity": "sha512-FagtKFz74XrTl7y6HCzQpwDfXP0yhxe9lHLD1UZxjvZIcbyRz8zTFF/yYNfSfzU414eDwZ1SrO0Qvtyf+wFMQg==", 81 | "dev": true, 82 | "requires": { 83 | "@humanwhocodes/object-schema": "^1.2.0", 84 | "debug": "^4.1.1", 85 | "minimatch": "^3.0.4" 86 | } 87 | }, 88 | "@humanwhocodes/object-schema": { 89 | "version": "1.2.0", 90 | "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.0.tgz", 91 | "integrity": "sha512-wdppn25U8z/2yiaT6YGquE6X8sSv7hNMWSXYSSU1jGv/yd6XqjXgTDJ8KP4NgjTXfJ3GbRjeeb8RTV7a/VpM+w==", 92 | "dev": true 93 | }, 94 | "@nodelib/fs.scandir": { 95 | "version": "2.1.5", 96 | "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", 97 | "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", 98 | "dev": true, 99 | "requires": { 100 | "@nodelib/fs.stat": "2.0.5", 101 | "run-parallel": "^1.1.9" 102 | } 103 | }, 104 | "@nodelib/fs.stat": { 105 | "version": "2.0.5", 106 | "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", 107 | "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", 108 | "dev": true 109 | }, 110 | "@nodelib/fs.walk": { 111 | "version": "1.2.8", 112 | "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", 113 | "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", 114 | "dev": true, 115 | "requires": { 116 | "@nodelib/fs.scandir": "2.1.5", 117 | "fastq": "^1.6.0" 118 | } 119 | }, 120 | "@tootallnate/once": { 121 | "version": "1.1.2", 122 | "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", 123 | "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", 124 | "dev": true 125 | }, 126 | "@types/glob": { 127 | "version": "7.1.4", 128 | "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.1.4.tgz", 129 | "integrity": "sha512-w+LsMxKyYQm347Otw+IfBXOv9UWVjpHpCDdbBMt8Kz/xbvCYNjP+0qPh91Km3iKfSRLBB0P7fAMf0KHrPu+MyA==", 130 | "dev": true, 131 | "requires": { 132 | "@types/minimatch": "*", 133 | "@types/node": "*" 134 | } 135 | }, 136 | "@types/json-schema": { 137 | "version": "7.0.9", 138 | "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.9.tgz", 139 | "integrity": "sha512-qcUXuemtEu+E5wZSJHNxUXeCZhAfXKQ41D+duX+VYPde7xyEVZci+/oXKJL13tnRs9lR2pr4fod59GT6/X1/yQ==", 140 | "dev": true 141 | }, 142 | "@types/minimatch": { 143 | "version": "3.0.5", 144 | "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.5.tgz", 145 | "integrity": "sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ==", 146 | "dev": true 147 | }, 148 | "@types/mocha": { 149 | "version": "8.2.3", 150 | "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-8.2.3.tgz", 151 | "integrity": "sha512-ekGvFhFgrc2zYQoX4JeZPmVzZxw6Dtllga7iGHzfbYIYkAMUx/sAFP2GdFpLff+vdHXu5fl7WX9AT+TtqYcsyw==", 152 | "dev": true 153 | }, 154 | "@types/node": { 155 | "version": "14.17.18", 156 | "resolved": "https://registry.npmjs.org/@types/node/-/node-14.17.18.tgz", 157 | "integrity": "sha512-haYyibw4pbteEhkSg0xdDLAI3679L75EJ799ymVrPxOA922bPx3ML59SoDsQ//rHlvqpu+e36kcbR3XRQtFblA==", 158 | "dev": true 159 | }, 160 | "@types/vscode": { 161 | "version": "1.60.0", 162 | "resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.60.0.tgz", 163 | "integrity": "sha512-wZt3VTmzYrgZ0l/3QmEbCq4KAJ71K3/hmMQ/nfpv84oH8e81KKwPEoQ5v8dNCxfHFVJ1JabHKmCvqdYOoVm1Ow==", 164 | "dev": true 165 | }, 166 | "@typescript-eslint/eslint-plugin": { 167 | "version": "4.31.2", 168 | "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.31.2.tgz", 169 | "integrity": "sha512-w63SCQ4bIwWN/+3FxzpnWrDjQRXVEGiTt9tJTRptRXeFvdZc/wLiz3FQUwNQ2CVoRGI6KUWMNUj/pk63noUfcA==", 170 | "dev": true, 171 | "requires": { 172 | "@typescript-eslint/experimental-utils": "4.31.2", 173 | "@typescript-eslint/scope-manager": "4.31.2", 174 | "debug": "^4.3.1", 175 | "functional-red-black-tree": "^1.0.1", 176 | "regexpp": "^3.1.0", 177 | "semver": "^7.3.5", 178 | "tsutils": "^3.21.0" 179 | } 180 | }, 181 | "@typescript-eslint/experimental-utils": { 182 | "version": "4.31.2", 183 | "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-4.31.2.tgz", 184 | "integrity": "sha512-3tm2T4nyA970yQ6R3JZV9l0yilE2FedYg8dcXrTar34zC9r6JB7WyBQbpIVongKPlhEMjhQ01qkwrzWy38Bk1Q==", 185 | "dev": true, 186 | "requires": { 187 | "@types/json-schema": "^7.0.7", 188 | "@typescript-eslint/scope-manager": "4.31.2", 189 | "@typescript-eslint/types": "4.31.2", 190 | "@typescript-eslint/typescript-estree": "4.31.2", 191 | "eslint-scope": "^5.1.1", 192 | "eslint-utils": "^3.0.0" 193 | } 194 | }, 195 | "@typescript-eslint/parser": { 196 | "version": "4.31.2", 197 | "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-4.31.2.tgz", 198 | "integrity": "sha512-EcdO0E7M/sv23S/rLvenHkb58l3XhuSZzKf6DBvLgHqOYdL6YFMYVtreGFWirxaU2mS1GYDby3Lyxco7X5+Vjw==", 199 | "dev": true, 200 | "requires": { 201 | "@typescript-eslint/scope-manager": "4.31.2", 202 | "@typescript-eslint/types": "4.31.2", 203 | "@typescript-eslint/typescript-estree": "4.31.2", 204 | "debug": "^4.3.1" 205 | } 206 | }, 207 | "@typescript-eslint/scope-manager": { 208 | "version": "4.31.2", 209 | "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-4.31.2.tgz", 210 | "integrity": "sha512-2JGwudpFoR/3Czq6mPpE8zBPYdHWFGL6lUNIGolbKQeSNv4EAiHaR5GVDQaLA0FwgcdcMtRk+SBJbFGL7+La5w==", 211 | "dev": true, 212 | "requires": { 213 | "@typescript-eslint/types": "4.31.2", 214 | "@typescript-eslint/visitor-keys": "4.31.2" 215 | } 216 | }, 217 | "@typescript-eslint/types": { 218 | "version": "4.31.2", 219 | "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-4.31.2.tgz", 220 | "integrity": "sha512-kWiTTBCTKEdBGrZKwFvOlGNcAsKGJSBc8xLvSjSppFO88AqGxGNYtF36EuEYG6XZ9vT0xX8RNiHbQUKglbSi1w==", 221 | "dev": true 222 | }, 223 | "@typescript-eslint/typescript-estree": { 224 | "version": "4.31.2", 225 | "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-4.31.2.tgz", 226 | "integrity": "sha512-ieBq8U9at6PvaC7/Z6oe8D3czeW5d//Fo1xkF/s9394VR0bg/UaMYPdARiWyKX+lLEjY3w/FNZJxitMsiWv+wA==", 227 | "dev": true, 228 | "requires": { 229 | "@typescript-eslint/types": "4.31.2", 230 | "@typescript-eslint/visitor-keys": "4.31.2", 231 | "debug": "^4.3.1", 232 | "globby": "^11.0.3", 233 | "is-glob": "^4.0.1", 234 | "semver": "^7.3.5", 235 | "tsutils": "^3.21.0" 236 | } 237 | }, 238 | "@typescript-eslint/visitor-keys": { 239 | "version": "4.31.2", 240 | "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-4.31.2.tgz", 241 | "integrity": "sha512-PrBId7EQq2Nibns7dd/ch6S6/M4/iwLM9McbgeEbCXfxdwRUNxJ4UNreJ6Gh3fI2GNKNrWnQxKL7oCPmngKBug==", 242 | "dev": true, 243 | "requires": { 244 | "@typescript-eslint/types": "4.31.2", 245 | "eslint-visitor-keys": "^2.0.0" 246 | } 247 | }, 248 | "@ungap/promise-all-settled": { 249 | "version": "1.1.2", 250 | "resolved": "https://registry.npmjs.org/@ungap/promise-all-settled/-/promise-all-settled-1.1.2.tgz", 251 | "integrity": "sha512-sL/cEvJWAnClXw0wHk85/2L0G6Sj8UB0Ctc1TEMbKSsmpRosqhwj9gWgFRZSrBr2f9tiXISwNhCPmlfqUqyb9Q==", 252 | "dev": true 253 | }, 254 | "acorn": { 255 | "version": "7.4.1", 256 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", 257 | "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", 258 | "dev": true 259 | }, 260 | "acorn-jsx": { 261 | "version": "5.3.2", 262 | "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", 263 | "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", 264 | "dev": true 265 | }, 266 | "agent-base": { 267 | "version": "6.0.2", 268 | "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", 269 | "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", 270 | "dev": true, 271 | "requires": { 272 | "debug": "4" 273 | } 274 | }, 275 | "ajv": { 276 | "version": "6.12.6", 277 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", 278 | "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", 279 | "dev": true, 280 | "requires": { 281 | "fast-deep-equal": "^3.1.1", 282 | "fast-json-stable-stringify": "^2.0.0", 283 | "json-schema-traverse": "^0.4.1", 284 | "uri-js": "^4.2.2" 285 | } 286 | }, 287 | "ansi-colors": { 288 | "version": "4.1.1", 289 | "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", 290 | "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", 291 | "dev": true 292 | }, 293 | "ansi-regex": { 294 | "version": "5.0.1", 295 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 296 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 297 | "dev": true 298 | }, 299 | "ansi-styles": { 300 | "version": "3.2.1", 301 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", 302 | "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", 303 | "dev": true, 304 | "requires": { 305 | "color-convert": "^1.9.0" 306 | } 307 | }, 308 | "anymatch": { 309 | "version": "3.1.2", 310 | "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", 311 | "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", 312 | "dev": true, 313 | "requires": { 314 | "normalize-path": "^3.0.0", 315 | "picomatch": "^2.0.4" 316 | } 317 | }, 318 | "argparse": { 319 | "version": "1.0.10", 320 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", 321 | "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", 322 | "dev": true, 323 | "requires": { 324 | "sprintf-js": "~1.0.2" 325 | } 326 | }, 327 | "array-union": { 328 | "version": "2.1.0", 329 | "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", 330 | "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", 331 | "dev": true 332 | }, 333 | "astral-regex": { 334 | "version": "2.0.0", 335 | "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", 336 | "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", 337 | "dev": true 338 | }, 339 | "balanced-match": { 340 | "version": "1.0.2", 341 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 342 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", 343 | "dev": true 344 | }, 345 | "big-integer": { 346 | "version": "1.6.49", 347 | "resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.49.tgz", 348 | "integrity": "sha512-KJ7VhqH+f/BOt9a3yMwJNmcZjG53ijWMTjSAGMveQWyLwqIiwkjNP5PFgDob3Snnx86SjDj6I89fIbv0dkQeNw==", 349 | "dev": true 350 | }, 351 | "binary": { 352 | "version": "0.3.0", 353 | "resolved": "https://registry.npmjs.org/binary/-/binary-0.3.0.tgz", 354 | "integrity": "sha1-n2BVO8XOjDOG87VTz/R0Yq3sqnk=", 355 | "dev": true, 356 | "requires": { 357 | "buffers": "~0.1.1", 358 | "chainsaw": "~0.1.0" 359 | } 360 | }, 361 | "binary-extensions": { 362 | "version": "2.2.0", 363 | "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", 364 | "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", 365 | "dev": true 366 | }, 367 | "bluebird": { 368 | "version": "3.4.7", 369 | "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.4.7.tgz", 370 | "integrity": "sha1-9y12C+Cbf3bQjtj66Ysomo0F+rM=", 371 | "dev": true 372 | }, 373 | "brace-expansion": { 374 | "version": "1.1.11", 375 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 376 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 377 | "dev": true, 378 | "requires": { 379 | "balanced-match": "^1.0.0", 380 | "concat-map": "0.0.1" 381 | } 382 | }, 383 | "braces": { 384 | "version": "3.0.2", 385 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", 386 | "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", 387 | "dev": true, 388 | "requires": { 389 | "fill-range": "^7.0.1" 390 | } 391 | }, 392 | "browser-stdout": { 393 | "version": "1.3.1", 394 | "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", 395 | "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", 396 | "dev": true 397 | }, 398 | "buffer-indexof-polyfill": { 399 | "version": "1.0.2", 400 | "resolved": "https://registry.npmjs.org/buffer-indexof-polyfill/-/buffer-indexof-polyfill-1.0.2.tgz", 401 | "integrity": "sha512-I7wzHwA3t1/lwXQh+A5PbNvJxgfo5r3xulgpYDB5zckTu/Z9oUK9biouBKQUjEqzaz3HnAT6TYoovmE+GqSf7A==", 402 | "dev": true 403 | }, 404 | "buffers": { 405 | "version": "0.1.1", 406 | "resolved": "https://registry.npmjs.org/buffers/-/buffers-0.1.1.tgz", 407 | "integrity": "sha1-skV5w77U1tOWru5tmorn9Ugqt7s=", 408 | "dev": true 409 | }, 410 | "callsites": { 411 | "version": "3.1.0", 412 | "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", 413 | "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", 414 | "dev": true 415 | }, 416 | "camelcase": { 417 | "version": "6.2.0", 418 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.2.0.tgz", 419 | "integrity": "sha512-c7wVvbw3f37nuobQNtgsgG9POC9qMbNuMQmTCqZv23b6MIz0fcYpBiOlv9gEN/hdLdnZTDQhg6e9Dq5M1vKvfg==", 420 | "dev": true 421 | }, 422 | "chainsaw": { 423 | "version": "0.1.0", 424 | "resolved": "https://registry.npmjs.org/chainsaw/-/chainsaw-0.1.0.tgz", 425 | "integrity": "sha1-XqtQsor+WAdNDVgpE4iCi15fvJg=", 426 | "dev": true, 427 | "requires": { 428 | "traverse": ">=0.3.0 <0.4" 429 | } 430 | }, 431 | "chalk": { 432 | "version": "4.1.2", 433 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", 434 | "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", 435 | "dev": true, 436 | "requires": { 437 | "ansi-styles": "^4.1.0", 438 | "supports-color": "^7.1.0" 439 | }, 440 | "dependencies": { 441 | "ansi-styles": { 442 | "version": "4.3.0", 443 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", 444 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", 445 | "dev": true, 446 | "requires": { 447 | "color-convert": "^2.0.1" 448 | } 449 | }, 450 | "color-convert": { 451 | "version": "2.0.1", 452 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 453 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 454 | "dev": true, 455 | "requires": { 456 | "color-name": "~1.1.4" 457 | } 458 | }, 459 | "color-name": { 460 | "version": "1.1.4", 461 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 462 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", 463 | "dev": true 464 | }, 465 | "has-flag": { 466 | "version": "4.0.0", 467 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", 468 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", 469 | "dev": true 470 | }, 471 | "supports-color": { 472 | "version": "7.2.0", 473 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", 474 | "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", 475 | "dev": true, 476 | "requires": { 477 | "has-flag": "^4.0.0" 478 | } 479 | } 480 | } 481 | }, 482 | "chevrotain": { 483 | "version": "6.5.0", 484 | "resolved": "https://registry.npmjs.org/chevrotain/-/chevrotain-6.5.0.tgz", 485 | "integrity": "sha512-BwqQ/AgmKJ8jcMEjaSnfMybnKMgGTrtDKowfTP3pX4jwVy0kNjRsT/AP6h+wC3+3NC+X8X15VWBnTCQlX+wQFg==", 486 | "requires": { 487 | "regexp-to-ast": "0.4.0" 488 | } 489 | }, 490 | "chokidar": { 491 | "version": "3.5.1", 492 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.1.tgz", 493 | "integrity": "sha512-9+s+Od+W0VJJzawDma/gvBNQqkTiqYTWLuZoyAsivsI4AaWTCzHG06/TMjsf1cYe9Cb97UCEhjz7HvnPk2p/tw==", 494 | "dev": true, 495 | "requires": { 496 | "anymatch": "~3.1.1", 497 | "braces": "~3.0.2", 498 | "fsevents": "~2.3.1", 499 | "glob-parent": "~5.1.0", 500 | "is-binary-path": "~2.1.0", 501 | "is-glob": "~4.0.1", 502 | "normalize-path": "~3.0.0", 503 | "readdirp": "~3.5.0" 504 | } 505 | }, 506 | "cliui": { 507 | "version": "7.0.4", 508 | "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", 509 | "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", 510 | "dev": true, 511 | "requires": { 512 | "string-width": "^4.2.0", 513 | "strip-ansi": "^6.0.0", 514 | "wrap-ansi": "^7.0.0" 515 | } 516 | }, 517 | "color-convert": { 518 | "version": "1.9.3", 519 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", 520 | "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", 521 | "dev": true, 522 | "requires": { 523 | "color-name": "1.1.3" 524 | } 525 | }, 526 | "color-name": { 527 | "version": "1.1.3", 528 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", 529 | "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", 530 | "dev": true 531 | }, 532 | "concat-map": { 533 | "version": "0.0.1", 534 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 535 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", 536 | "dev": true 537 | }, 538 | "core-js": { 539 | "version": "3.18.0", 540 | "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.18.0.tgz", 541 | "integrity": "sha512-WJeQqq6jOYgVgg4NrXKL0KLQhi0CT4ZOCvFL+3CQ5o7I6J8HkT5wd53EadMfqTDp1so/MT1J+w2ujhWcCJtN7w==" 542 | }, 543 | "core-util-is": { 544 | "version": "1.0.3", 545 | "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", 546 | "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", 547 | "dev": true 548 | }, 549 | "cross-spawn": { 550 | "version": "7.0.3", 551 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", 552 | "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", 553 | "dev": true, 554 | "requires": { 555 | "path-key": "^3.1.0", 556 | "shebang-command": "^2.0.0", 557 | "which": "^2.0.1" 558 | } 559 | }, 560 | "debug": { 561 | "version": "4.3.2", 562 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz", 563 | "integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==", 564 | "dev": true, 565 | "requires": { 566 | "ms": "2.1.2" 567 | } 568 | }, 569 | "decamelize": { 570 | "version": "4.0.0", 571 | "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz", 572 | "integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==", 573 | "dev": true 574 | }, 575 | "deep-is": { 576 | "version": "0.1.4", 577 | "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", 578 | "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", 579 | "dev": true 580 | }, 581 | "diff": { 582 | "version": "5.0.0", 583 | "resolved": "https://registry.npmjs.org/diff/-/diff-5.0.0.tgz", 584 | "integrity": "sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==", 585 | "dev": true 586 | }, 587 | "dir-glob": { 588 | "version": "3.0.1", 589 | "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", 590 | "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", 591 | "dev": true, 592 | "requires": { 593 | "path-type": "^4.0.0" 594 | } 595 | }, 596 | "doctrine": { 597 | "version": "3.0.0", 598 | "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", 599 | "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", 600 | "dev": true, 601 | "requires": { 602 | "esutils": "^2.0.2" 603 | } 604 | }, 605 | "duplexer2": { 606 | "version": "0.1.4", 607 | "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", 608 | "integrity": "sha1-ixLauHjA1p4+eJEFFmKjL8a93ME=", 609 | "dev": true, 610 | "requires": { 611 | "readable-stream": "^2.0.2" 612 | } 613 | }, 614 | "emoji-regex": { 615 | "version": "8.0.0", 616 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", 617 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", 618 | "dev": true 619 | }, 620 | "enquirer": { 621 | "version": "2.3.6", 622 | "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz", 623 | "integrity": "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==", 624 | "dev": true, 625 | "requires": { 626 | "ansi-colors": "^4.1.1" 627 | } 628 | }, 629 | "escalade": { 630 | "version": "3.1.1", 631 | "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", 632 | "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", 633 | "dev": true 634 | }, 635 | "escape-string-regexp": { 636 | "version": "4.0.0", 637 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", 638 | "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", 639 | "dev": true 640 | }, 641 | "eslint": { 642 | "version": "7.32.0", 643 | "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.32.0.tgz", 644 | "integrity": "sha512-VHZ8gX+EDfz+97jGcgyGCyRia/dPOd6Xh9yPv8Bl1+SoaIwD+a/vlrOmGRUyOYu7MwUhc7CxqeaDZU13S4+EpA==", 645 | "dev": true, 646 | "requires": { 647 | "@babel/code-frame": "7.12.11", 648 | "@eslint/eslintrc": "^0.4.3", 649 | "@humanwhocodes/config-array": "^0.5.0", 650 | "ajv": "^6.10.0", 651 | "chalk": "^4.0.0", 652 | "cross-spawn": "^7.0.2", 653 | "debug": "^4.0.1", 654 | "doctrine": "^3.0.0", 655 | "enquirer": "^2.3.5", 656 | "escape-string-regexp": "^4.0.0", 657 | "eslint-scope": "^5.1.1", 658 | "eslint-utils": "^2.1.0", 659 | "eslint-visitor-keys": "^2.0.0", 660 | "espree": "^7.3.1", 661 | "esquery": "^1.4.0", 662 | "esutils": "^2.0.2", 663 | "fast-deep-equal": "^3.1.3", 664 | "file-entry-cache": "^6.0.1", 665 | "functional-red-black-tree": "^1.0.1", 666 | "glob-parent": "^5.1.2", 667 | "globals": "^13.6.0", 668 | "ignore": "^4.0.6", 669 | "import-fresh": "^3.0.0", 670 | "imurmurhash": "^0.1.4", 671 | "is-glob": "^4.0.0", 672 | "js-yaml": "^3.13.1", 673 | "json-stable-stringify-without-jsonify": "^1.0.1", 674 | "levn": "^0.4.1", 675 | "lodash.merge": "^4.6.2", 676 | "minimatch": "^3.0.4", 677 | "natural-compare": "^1.4.0", 678 | "optionator": "^0.9.1", 679 | "progress": "^2.0.0", 680 | "regexpp": "^3.1.0", 681 | "semver": "^7.2.1", 682 | "strip-ansi": "^6.0.0", 683 | "strip-json-comments": "^3.1.0", 684 | "table": "^6.0.9", 685 | "text-table": "^0.2.0", 686 | "v8-compile-cache": "^2.0.3" 687 | }, 688 | "dependencies": { 689 | "eslint-utils": { 690 | "version": "2.1.0", 691 | "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz", 692 | "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==", 693 | "dev": true, 694 | "requires": { 695 | "eslint-visitor-keys": "^1.1.0" 696 | }, 697 | "dependencies": { 698 | "eslint-visitor-keys": { 699 | "version": "1.3.0", 700 | "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", 701 | "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", 702 | "dev": true 703 | } 704 | } 705 | }, 706 | "ignore": { 707 | "version": "4.0.6", 708 | "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", 709 | "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", 710 | "dev": true 711 | } 712 | } 713 | }, 714 | "eslint-scope": { 715 | "version": "5.1.1", 716 | "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", 717 | "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", 718 | "dev": true, 719 | "requires": { 720 | "esrecurse": "^4.3.0", 721 | "estraverse": "^4.1.1" 722 | } 723 | }, 724 | "eslint-utils": { 725 | "version": "3.0.0", 726 | "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", 727 | "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", 728 | "dev": true, 729 | "requires": { 730 | "eslint-visitor-keys": "^2.0.0" 731 | } 732 | }, 733 | "eslint-visitor-keys": { 734 | "version": "2.1.0", 735 | "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", 736 | "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", 737 | "dev": true 738 | }, 739 | "espree": { 740 | "version": "7.3.1", 741 | "resolved": "https://registry.npmjs.org/espree/-/espree-7.3.1.tgz", 742 | "integrity": "sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g==", 743 | "dev": true, 744 | "requires": { 745 | "acorn": "^7.4.0", 746 | "acorn-jsx": "^5.3.1", 747 | "eslint-visitor-keys": "^1.3.0" 748 | }, 749 | "dependencies": { 750 | "eslint-visitor-keys": { 751 | "version": "1.3.0", 752 | "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", 753 | "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", 754 | "dev": true 755 | } 756 | } 757 | }, 758 | "esprima": { 759 | "version": "4.0.1", 760 | "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", 761 | "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", 762 | "dev": true 763 | }, 764 | "esquery": { 765 | "version": "1.4.0", 766 | "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", 767 | "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", 768 | "dev": true, 769 | "requires": { 770 | "estraverse": "^5.1.0" 771 | }, 772 | "dependencies": { 773 | "estraverse": { 774 | "version": "5.2.0", 775 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", 776 | "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", 777 | "dev": true 778 | } 779 | } 780 | }, 781 | "esrecurse": { 782 | "version": "4.3.0", 783 | "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", 784 | "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", 785 | "dev": true, 786 | "requires": { 787 | "estraverse": "^5.2.0" 788 | }, 789 | "dependencies": { 790 | "estraverse": { 791 | "version": "5.2.0", 792 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", 793 | "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", 794 | "dev": true 795 | } 796 | } 797 | }, 798 | "estraverse": { 799 | "version": "4.3.0", 800 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", 801 | "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", 802 | "dev": true 803 | }, 804 | "esutils": { 805 | "version": "2.0.3", 806 | "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", 807 | "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", 808 | "dev": true 809 | }, 810 | "fast-deep-equal": { 811 | "version": "3.1.3", 812 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", 813 | "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", 814 | "dev": true 815 | }, 816 | "fast-glob": { 817 | "version": "3.2.7", 818 | "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.7.tgz", 819 | "integrity": "sha512-rYGMRwip6lUMvYD3BTScMwT1HtAs2d71SMv66Vrxs0IekGZEjhM0pcMfjQPnknBt2zeCwQMEupiN02ZP4DiT1Q==", 820 | "dev": true, 821 | "requires": { 822 | "@nodelib/fs.stat": "^2.0.2", 823 | "@nodelib/fs.walk": "^1.2.3", 824 | "glob-parent": "^5.1.2", 825 | "merge2": "^1.3.0", 826 | "micromatch": "^4.0.4" 827 | } 828 | }, 829 | "fast-json-stable-stringify": { 830 | "version": "2.1.0", 831 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", 832 | "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", 833 | "dev": true 834 | }, 835 | "fast-levenshtein": { 836 | "version": "2.0.6", 837 | "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", 838 | "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", 839 | "dev": true 840 | }, 841 | "fastq": { 842 | "version": "1.13.0", 843 | "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz", 844 | "integrity": "sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==", 845 | "dev": true, 846 | "requires": { 847 | "reusify": "^1.0.4" 848 | } 849 | }, 850 | "file-entry-cache": { 851 | "version": "6.0.1", 852 | "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", 853 | "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", 854 | "dev": true, 855 | "requires": { 856 | "flat-cache": "^3.0.4" 857 | } 858 | }, 859 | "fill-range": { 860 | "version": "7.0.1", 861 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", 862 | "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", 863 | "dev": true, 864 | "requires": { 865 | "to-regex-range": "^5.0.1" 866 | } 867 | }, 868 | "find-up": { 869 | "version": "5.0.0", 870 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", 871 | "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", 872 | "dev": true, 873 | "requires": { 874 | "locate-path": "^6.0.0", 875 | "path-exists": "^4.0.0" 876 | } 877 | }, 878 | "flat": { 879 | "version": "5.0.2", 880 | "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", 881 | "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==", 882 | "dev": true 883 | }, 884 | "flat-cache": { 885 | "version": "3.0.4", 886 | "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", 887 | "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", 888 | "dev": true, 889 | "requires": { 890 | "flatted": "^3.1.0", 891 | "rimraf": "^3.0.2" 892 | } 893 | }, 894 | "flatted": { 895 | "version": "3.2.2", 896 | "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.2.tgz", 897 | "integrity": "sha512-JaTY/wtrcSyvXJl4IMFHPKyFur1sE9AUqc0QnhOaJ0CxHtAoIV8pYDzeEfAaNEtGkOfq4gr3LBFmdXW5mOQFnA==", 898 | "dev": true 899 | }, 900 | "fs.realpath": { 901 | "version": "1.0.0", 902 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 903 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", 904 | "dev": true 905 | }, 906 | "fsevents": { 907 | "version": "2.3.2", 908 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", 909 | "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", 910 | "dev": true, 911 | "optional": true 912 | }, 913 | "fstream": { 914 | "version": "1.0.12", 915 | "resolved": "https://registry.npmjs.org/fstream/-/fstream-1.0.12.tgz", 916 | "integrity": "sha512-WvJ193OHa0GHPEL+AycEJgxvBEwyfRkN1vhjca23OaPVMCaLCXTd5qAu82AjTcgP1UJmytkOKb63Ypde7raDIg==", 917 | "dev": true, 918 | "requires": { 919 | "graceful-fs": "^4.1.2", 920 | "inherits": "~2.0.0", 921 | "mkdirp": ">=0.5 0", 922 | "rimraf": "2" 923 | }, 924 | "dependencies": { 925 | "rimraf": { 926 | "version": "2.7.1", 927 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", 928 | "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", 929 | "dev": true, 930 | "requires": { 931 | "glob": "^7.1.3" 932 | } 933 | } 934 | } 935 | }, 936 | "functional-red-black-tree": { 937 | "version": "1.0.1", 938 | "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", 939 | "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", 940 | "dev": true 941 | }, 942 | "get-caller-file": { 943 | "version": "2.0.5", 944 | "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", 945 | "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", 946 | "dev": true 947 | }, 948 | "glob": { 949 | "version": "7.2.0", 950 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", 951 | "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", 952 | "dev": true, 953 | "requires": { 954 | "fs.realpath": "^1.0.0", 955 | "inflight": "^1.0.4", 956 | "inherits": "2", 957 | "minimatch": "^3.0.4", 958 | "once": "^1.3.0", 959 | "path-is-absolute": "^1.0.0" 960 | } 961 | }, 962 | "glob-parent": { 963 | "version": "5.1.2", 964 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", 965 | "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", 966 | "dev": true, 967 | "requires": { 968 | "is-glob": "^4.0.1" 969 | } 970 | }, 971 | "globals": { 972 | "version": "13.11.0", 973 | "resolved": "https://registry.npmjs.org/globals/-/globals-13.11.0.tgz", 974 | "integrity": "sha512-08/xrJ7wQjK9kkkRoI3OFUBbLx4f+6x3SGwcPvQ0QH6goFDrOU2oyAWrmh3dJezu65buo+HBMzAMQy6rovVC3g==", 975 | "dev": true, 976 | "requires": { 977 | "type-fest": "^0.20.2" 978 | } 979 | }, 980 | "globby": { 981 | "version": "11.0.4", 982 | "resolved": "https://registry.npmjs.org/globby/-/globby-11.0.4.tgz", 983 | "integrity": "sha512-9O4MVG9ioZJ08ffbcyVYyLOJLk5JQ688pJ4eMGLpdWLHq/Wr1D9BlriLQyL0E+jbkuePVZXYFj47QM/v093wHg==", 984 | "dev": true, 985 | "requires": { 986 | "array-union": "^2.1.0", 987 | "dir-glob": "^3.0.1", 988 | "fast-glob": "^3.1.1", 989 | "ignore": "^5.1.4", 990 | "merge2": "^1.3.0", 991 | "slash": "^3.0.0" 992 | } 993 | }, 994 | "graceful-fs": { 995 | "version": "4.2.8", 996 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.8.tgz", 997 | "integrity": "sha512-qkIilPUYcNhJpd33n0GBXTB1MMPp14TxEsEs0pTrsSVucApsYzW5V+Q8Qxhik6KU3evy+qkAAowTByymK0avdg==", 998 | "dev": true 999 | }, 1000 | "growl": { 1001 | "version": "1.10.5", 1002 | "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", 1003 | "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==", 1004 | "dev": true 1005 | }, 1006 | "has-flag": { 1007 | "version": "3.0.0", 1008 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", 1009 | "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", 1010 | "dev": true 1011 | }, 1012 | "he": { 1013 | "version": "1.2.0", 1014 | "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", 1015 | "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", 1016 | "dev": true 1017 | }, 1018 | "http-proxy-agent": { 1019 | "version": "4.0.1", 1020 | "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", 1021 | "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", 1022 | "dev": true, 1023 | "requires": { 1024 | "@tootallnate/once": "1", 1025 | "agent-base": "6", 1026 | "debug": "4" 1027 | } 1028 | }, 1029 | "https-proxy-agent": { 1030 | "version": "5.0.0", 1031 | "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz", 1032 | "integrity": "sha512-EkYm5BcKUGiduxzSt3Eppko+PiNWNEpa4ySk9vTC6wDsQJW9rHSa+UhGNJoRYp7bz6Ht1eaRIa6QaJqO5rCFbA==", 1033 | "dev": true, 1034 | "requires": { 1035 | "agent-base": "6", 1036 | "debug": "4" 1037 | } 1038 | }, 1039 | "hyperformula": { 1040 | "version": "1.2.0", 1041 | "resolved": "https://registry.npmjs.org/hyperformula/-/hyperformula-1.2.0.tgz", 1042 | "integrity": "sha512-beBM3MICTPr4U7ppr1Z9eVOyp1Xh7INnil052ZHM/8xwVaLDMlZ+VFRvor4CzouiZlnAZs0PmiwX3k40voxGIA==", 1043 | "requires": { 1044 | "chevrotain": "^6.5.0", 1045 | "core-js": "^3.6.4", 1046 | "regenerator-runtime": "^0.13.3", 1047 | "tiny-emitter": "^2.1.0", 1048 | "unorm": "^1.6.0" 1049 | } 1050 | }, 1051 | "ignore": { 1052 | "version": "5.1.8", 1053 | "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.1.8.tgz", 1054 | "integrity": "sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw==", 1055 | "dev": true 1056 | }, 1057 | "import-fresh": { 1058 | "version": "3.3.0", 1059 | "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", 1060 | "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", 1061 | "dev": true, 1062 | "requires": { 1063 | "parent-module": "^1.0.0", 1064 | "resolve-from": "^4.0.0" 1065 | } 1066 | }, 1067 | "imurmurhash": { 1068 | "version": "0.1.4", 1069 | "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", 1070 | "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", 1071 | "dev": true 1072 | }, 1073 | "inflight": { 1074 | "version": "1.0.6", 1075 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 1076 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", 1077 | "dev": true, 1078 | "requires": { 1079 | "once": "^1.3.0", 1080 | "wrappy": "1" 1081 | } 1082 | }, 1083 | "inherits": { 1084 | "version": "2.0.4", 1085 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 1086 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 1087 | "dev": true 1088 | }, 1089 | "is-binary-path": { 1090 | "version": "2.1.0", 1091 | "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", 1092 | "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", 1093 | "dev": true, 1094 | "requires": { 1095 | "binary-extensions": "^2.0.0" 1096 | } 1097 | }, 1098 | "is-extglob": { 1099 | "version": "2.1.1", 1100 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 1101 | "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", 1102 | "dev": true 1103 | }, 1104 | "is-fullwidth-code-point": { 1105 | "version": "3.0.0", 1106 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", 1107 | "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", 1108 | "dev": true 1109 | }, 1110 | "is-glob": { 1111 | "version": "4.0.1", 1112 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", 1113 | "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", 1114 | "dev": true, 1115 | "requires": { 1116 | "is-extglob": "^2.1.1" 1117 | } 1118 | }, 1119 | "is-number": { 1120 | "version": "7.0.0", 1121 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 1122 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", 1123 | "dev": true 1124 | }, 1125 | "is-plain-obj": { 1126 | "version": "2.1.0", 1127 | "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", 1128 | "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", 1129 | "dev": true 1130 | }, 1131 | "isarray": { 1132 | "version": "1.0.0", 1133 | "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", 1134 | "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", 1135 | "dev": true 1136 | }, 1137 | "isexe": { 1138 | "version": "2.0.0", 1139 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 1140 | "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", 1141 | "dev": true 1142 | }, 1143 | "js-tokens": { 1144 | "version": "4.0.0", 1145 | "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", 1146 | "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", 1147 | "dev": true 1148 | }, 1149 | "js-yaml": { 1150 | "version": "3.14.1", 1151 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", 1152 | "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", 1153 | "dev": true, 1154 | "requires": { 1155 | "argparse": "^1.0.7", 1156 | "esprima": "^4.0.0" 1157 | } 1158 | }, 1159 | "json-schema-traverse": { 1160 | "version": "0.4.1", 1161 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", 1162 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", 1163 | "dev": true 1164 | }, 1165 | "json-stable-stringify-without-jsonify": { 1166 | "version": "1.0.1", 1167 | "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", 1168 | "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", 1169 | "dev": true 1170 | }, 1171 | "levn": { 1172 | "version": "0.4.1", 1173 | "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", 1174 | "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", 1175 | "dev": true, 1176 | "requires": { 1177 | "prelude-ls": "^1.2.1", 1178 | "type-check": "~0.4.0" 1179 | } 1180 | }, 1181 | "listenercount": { 1182 | "version": "1.0.1", 1183 | "resolved": "https://registry.npmjs.org/listenercount/-/listenercount-1.0.1.tgz", 1184 | "integrity": "sha1-hMinKrWcRyUyFIDJdeZQg0LnCTc=", 1185 | "dev": true 1186 | }, 1187 | "locate-path": { 1188 | "version": "6.0.0", 1189 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", 1190 | "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", 1191 | "dev": true, 1192 | "requires": { 1193 | "p-locate": "^5.0.0" 1194 | } 1195 | }, 1196 | "lodash.clonedeep": { 1197 | "version": "4.5.0", 1198 | "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", 1199 | "integrity": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=", 1200 | "dev": true 1201 | }, 1202 | "lodash.merge": { 1203 | "version": "4.6.2", 1204 | "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", 1205 | "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", 1206 | "dev": true 1207 | }, 1208 | "lodash.truncate": { 1209 | "version": "4.4.2", 1210 | "resolved": "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz", 1211 | "integrity": "sha1-WjUNoLERO4N+z//VgSy+WNbq4ZM=", 1212 | "dev": true 1213 | }, 1214 | "log-symbols": { 1215 | "version": "4.0.0", 1216 | "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.0.0.tgz", 1217 | "integrity": "sha512-FN8JBzLx6CzeMrB0tg6pqlGU1wCrXW+ZXGH481kfsBqer0hToTIiHdjH4Mq8xJUbvATujKCvaREGWpGUionraA==", 1218 | "dev": true, 1219 | "requires": { 1220 | "chalk": "^4.0.0" 1221 | } 1222 | }, 1223 | "lru-cache": { 1224 | "version": "6.0.0", 1225 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", 1226 | "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", 1227 | "dev": true, 1228 | "requires": { 1229 | "yallist": "^4.0.0" 1230 | } 1231 | }, 1232 | "merge2": { 1233 | "version": "1.4.1", 1234 | "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", 1235 | "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", 1236 | "dev": true 1237 | }, 1238 | "micromatch": { 1239 | "version": "4.0.4", 1240 | "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.4.tgz", 1241 | "integrity": "sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg==", 1242 | "dev": true, 1243 | "requires": { 1244 | "braces": "^3.0.1", 1245 | "picomatch": "^2.2.3" 1246 | } 1247 | }, 1248 | "minimatch": { 1249 | "version": "3.0.4", 1250 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", 1251 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", 1252 | "dev": true, 1253 | "requires": { 1254 | "brace-expansion": "^1.1.7" 1255 | } 1256 | }, 1257 | "minimist": { 1258 | "version": "1.2.5", 1259 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", 1260 | "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", 1261 | "dev": true 1262 | }, 1263 | "mkdirp": { 1264 | "version": "0.5.5", 1265 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", 1266 | "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", 1267 | "dev": true, 1268 | "requires": { 1269 | "minimist": "^1.2.5" 1270 | } 1271 | }, 1272 | "mocha": { 1273 | "version": "8.4.0", 1274 | "resolved": "https://registry.npmjs.org/mocha/-/mocha-8.4.0.tgz", 1275 | "integrity": "sha512-hJaO0mwDXmZS4ghXsvPVriOhsxQ7ofcpQdm8dE+jISUOKopitvnXFQmpRR7jd2K6VBG6E26gU3IAbXXGIbu4sQ==", 1276 | "dev": true, 1277 | "requires": { 1278 | "@ungap/promise-all-settled": "1.1.2", 1279 | "ansi-colors": "4.1.1", 1280 | "browser-stdout": "1.3.1", 1281 | "chokidar": "3.5.1", 1282 | "debug": "4.3.1", 1283 | "diff": "5.0.0", 1284 | "escape-string-regexp": "4.0.0", 1285 | "find-up": "5.0.0", 1286 | "glob": "7.1.6", 1287 | "growl": "1.10.5", 1288 | "he": "1.2.0", 1289 | "js-yaml": "4.0.0", 1290 | "log-symbols": "4.0.0", 1291 | "minimatch": "3.0.4", 1292 | "ms": "2.1.3", 1293 | "nanoid": "3.1.20", 1294 | "serialize-javascript": "5.0.1", 1295 | "strip-json-comments": "3.1.1", 1296 | "supports-color": "8.1.1", 1297 | "which": "2.0.2", 1298 | "wide-align": "1.1.3", 1299 | "workerpool": "6.1.0", 1300 | "yargs": "16.2.0", 1301 | "yargs-parser": "20.2.4", 1302 | "yargs-unparser": "2.0.0" 1303 | }, 1304 | "dependencies": { 1305 | "argparse": { 1306 | "version": "2.0.1", 1307 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", 1308 | "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", 1309 | "dev": true 1310 | }, 1311 | "debug": { 1312 | "version": "4.3.1", 1313 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.1.tgz", 1314 | "integrity": "sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ==", 1315 | "dev": true, 1316 | "requires": { 1317 | "ms": "2.1.2" 1318 | }, 1319 | "dependencies": { 1320 | "ms": { 1321 | "version": "2.1.2", 1322 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 1323 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", 1324 | "dev": true 1325 | } 1326 | } 1327 | }, 1328 | "glob": { 1329 | "version": "7.1.6", 1330 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", 1331 | "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", 1332 | "dev": true, 1333 | "requires": { 1334 | "fs.realpath": "^1.0.0", 1335 | "inflight": "^1.0.4", 1336 | "inherits": "2", 1337 | "minimatch": "^3.0.4", 1338 | "once": "^1.3.0", 1339 | "path-is-absolute": "^1.0.0" 1340 | } 1341 | }, 1342 | "has-flag": { 1343 | "version": "4.0.0", 1344 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", 1345 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", 1346 | "dev": true 1347 | }, 1348 | "js-yaml": { 1349 | "version": "4.0.0", 1350 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.0.0.tgz", 1351 | "integrity": "sha512-pqon0s+4ScYUvX30wxQi3PogGFAlUyH0awepWvwkj4jD4v+ova3RiYw8bmA6x2rDrEaj8i/oWKoRxpVNW+Re8Q==", 1352 | "dev": true, 1353 | "requires": { 1354 | "argparse": "^2.0.1" 1355 | } 1356 | }, 1357 | "ms": { 1358 | "version": "2.1.3", 1359 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 1360 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", 1361 | "dev": true 1362 | }, 1363 | "supports-color": { 1364 | "version": "8.1.1", 1365 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", 1366 | "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", 1367 | "dev": true, 1368 | "requires": { 1369 | "has-flag": "^4.0.0" 1370 | } 1371 | } 1372 | } 1373 | }, 1374 | "ms": { 1375 | "version": "2.1.2", 1376 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 1377 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", 1378 | "dev": true 1379 | }, 1380 | "nanoid": { 1381 | "version": "3.1.20", 1382 | "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.1.20.tgz", 1383 | "integrity": "sha512-a1cQNyczgKbLX9jwbS/+d7W8fX/RfgYR7lVWwWOGIPNgK2m0MWvrGF6/m4kk6U3QcFMnZf3RIhL0v2Jgh/0Uxw==", 1384 | "dev": true 1385 | }, 1386 | "natural-compare": { 1387 | "version": "1.4.0", 1388 | "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", 1389 | "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", 1390 | "dev": true 1391 | }, 1392 | "normalize-path": { 1393 | "version": "3.0.0", 1394 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", 1395 | "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", 1396 | "dev": true 1397 | }, 1398 | "once": { 1399 | "version": "1.4.0", 1400 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 1401 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 1402 | "dev": true, 1403 | "requires": { 1404 | "wrappy": "1" 1405 | } 1406 | }, 1407 | "optionator": { 1408 | "version": "0.9.1", 1409 | "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", 1410 | "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", 1411 | "dev": true, 1412 | "requires": { 1413 | "deep-is": "^0.1.3", 1414 | "fast-levenshtein": "^2.0.6", 1415 | "levn": "^0.4.1", 1416 | "prelude-ls": "^1.2.1", 1417 | "type-check": "^0.4.0", 1418 | "word-wrap": "^1.2.3" 1419 | } 1420 | }, 1421 | "p-limit": { 1422 | "version": "3.1.0", 1423 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", 1424 | "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", 1425 | "dev": true, 1426 | "requires": { 1427 | "yocto-queue": "^0.1.0" 1428 | } 1429 | }, 1430 | "p-locate": { 1431 | "version": "5.0.0", 1432 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", 1433 | "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", 1434 | "dev": true, 1435 | "requires": { 1436 | "p-limit": "^3.0.2" 1437 | } 1438 | }, 1439 | "parent-module": { 1440 | "version": "1.0.1", 1441 | "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", 1442 | "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", 1443 | "dev": true, 1444 | "requires": { 1445 | "callsites": "^3.0.0" 1446 | } 1447 | }, 1448 | "path-exists": { 1449 | "version": "4.0.0", 1450 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", 1451 | "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", 1452 | "dev": true 1453 | }, 1454 | "path-is-absolute": { 1455 | "version": "1.0.1", 1456 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 1457 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", 1458 | "dev": true 1459 | }, 1460 | "path-key": { 1461 | "version": "3.1.1", 1462 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", 1463 | "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", 1464 | "dev": true 1465 | }, 1466 | "path-type": { 1467 | "version": "4.0.0", 1468 | "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", 1469 | "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", 1470 | "dev": true 1471 | }, 1472 | "picomatch": { 1473 | "version": "2.3.0", 1474 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.0.tgz", 1475 | "integrity": "sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw==", 1476 | "dev": true 1477 | }, 1478 | "prelude-ls": { 1479 | "version": "1.2.1", 1480 | "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", 1481 | "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", 1482 | "dev": true 1483 | }, 1484 | "process-nextick-args": { 1485 | "version": "2.0.1", 1486 | "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", 1487 | "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", 1488 | "dev": true 1489 | }, 1490 | "progress": { 1491 | "version": "2.0.3", 1492 | "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", 1493 | "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", 1494 | "dev": true 1495 | }, 1496 | "punycode": { 1497 | "version": "2.1.1", 1498 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", 1499 | "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", 1500 | "dev": true 1501 | }, 1502 | "queue-microtask": { 1503 | "version": "1.2.3", 1504 | "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", 1505 | "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", 1506 | "dev": true 1507 | }, 1508 | "randombytes": { 1509 | "version": "2.1.0", 1510 | "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", 1511 | "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", 1512 | "dev": true, 1513 | "requires": { 1514 | "safe-buffer": "^5.1.0" 1515 | } 1516 | }, 1517 | "readable-stream": { 1518 | "version": "2.3.7", 1519 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", 1520 | "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", 1521 | "dev": true, 1522 | "requires": { 1523 | "core-util-is": "~1.0.0", 1524 | "inherits": "~2.0.3", 1525 | "isarray": "~1.0.0", 1526 | "process-nextick-args": "~2.0.0", 1527 | "safe-buffer": "~5.1.1", 1528 | "string_decoder": "~1.1.1", 1529 | "util-deprecate": "~1.0.1" 1530 | }, 1531 | "dependencies": { 1532 | "safe-buffer": { 1533 | "version": "5.1.2", 1534 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 1535 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", 1536 | "dev": true 1537 | } 1538 | } 1539 | }, 1540 | "readdirp": { 1541 | "version": "3.5.0", 1542 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.5.0.tgz", 1543 | "integrity": "sha512-cMhu7c/8rdhkHXWsY+osBhfSy0JikwpHK/5+imo+LpeasTF8ouErHrlYkwT0++njiyuDvc7OFY5T3ukvZ8qmFQ==", 1544 | "dev": true, 1545 | "requires": { 1546 | "picomatch": "^2.2.1" 1547 | } 1548 | }, 1549 | "regenerator-runtime": { 1550 | "version": "0.13.9", 1551 | "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz", 1552 | "integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==" 1553 | }, 1554 | "regexp-to-ast": { 1555 | "version": "0.4.0", 1556 | "resolved": "https://registry.npmjs.org/regexp-to-ast/-/regexp-to-ast-0.4.0.tgz", 1557 | "integrity": "sha512-4qf/7IsIKfSNHQXSwial1IFmfM1Cc/whNBQqRwe0V2stPe7KmN1U0tWQiIx6JiirgSrisjE0eECdNf7Tav1Ntw==" 1558 | }, 1559 | "regexpp": { 1560 | "version": "3.2.0", 1561 | "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", 1562 | "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", 1563 | "dev": true 1564 | }, 1565 | "require-directory": { 1566 | "version": "2.1.1", 1567 | "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", 1568 | "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", 1569 | "dev": true 1570 | }, 1571 | "require-from-string": { 1572 | "version": "2.0.2", 1573 | "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", 1574 | "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", 1575 | "dev": true 1576 | }, 1577 | "resolve-from": { 1578 | "version": "4.0.0", 1579 | "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", 1580 | "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", 1581 | "dev": true 1582 | }, 1583 | "reusify": { 1584 | "version": "1.0.4", 1585 | "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", 1586 | "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", 1587 | "dev": true 1588 | }, 1589 | "rimraf": { 1590 | "version": "3.0.2", 1591 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", 1592 | "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", 1593 | "dev": true, 1594 | "requires": { 1595 | "glob": "^7.1.3" 1596 | } 1597 | }, 1598 | "run-parallel": { 1599 | "version": "1.2.0", 1600 | "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", 1601 | "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", 1602 | "dev": true, 1603 | "requires": { 1604 | "queue-microtask": "^1.2.2" 1605 | } 1606 | }, 1607 | "safe-buffer": { 1608 | "version": "5.2.1", 1609 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", 1610 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", 1611 | "dev": true 1612 | }, 1613 | "semver": { 1614 | "version": "7.3.5", 1615 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", 1616 | "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", 1617 | "dev": true, 1618 | "requires": { 1619 | "lru-cache": "^6.0.0" 1620 | } 1621 | }, 1622 | "serialize-javascript": { 1623 | "version": "5.0.1", 1624 | "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-5.0.1.tgz", 1625 | "integrity": "sha512-SaaNal9imEO737H2c05Og0/8LUXG7EnsZyMa8MzkmuHoELfT6txuj0cMqRj6zfPKnmQ1yasR4PCJc8x+M4JSPA==", 1626 | "dev": true, 1627 | "requires": { 1628 | "randombytes": "^2.1.0" 1629 | } 1630 | }, 1631 | "setimmediate": { 1632 | "version": "1.0.5", 1633 | "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", 1634 | "integrity": "sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU=", 1635 | "dev": true 1636 | }, 1637 | "shebang-command": { 1638 | "version": "2.0.0", 1639 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", 1640 | "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", 1641 | "dev": true, 1642 | "requires": { 1643 | "shebang-regex": "^3.0.0" 1644 | } 1645 | }, 1646 | "shebang-regex": { 1647 | "version": "3.0.0", 1648 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", 1649 | "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", 1650 | "dev": true 1651 | }, 1652 | "slash": { 1653 | "version": "3.0.0", 1654 | "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", 1655 | "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", 1656 | "dev": true 1657 | }, 1658 | "slice-ansi": { 1659 | "version": "4.0.0", 1660 | "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", 1661 | "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", 1662 | "dev": true, 1663 | "requires": { 1664 | "ansi-styles": "^4.0.0", 1665 | "astral-regex": "^2.0.0", 1666 | "is-fullwidth-code-point": "^3.0.0" 1667 | }, 1668 | "dependencies": { 1669 | "ansi-styles": { 1670 | "version": "4.3.0", 1671 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", 1672 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", 1673 | "dev": true, 1674 | "requires": { 1675 | "color-convert": "^2.0.1" 1676 | } 1677 | }, 1678 | "color-convert": { 1679 | "version": "2.0.1", 1680 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 1681 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 1682 | "dev": true, 1683 | "requires": { 1684 | "color-name": "~1.1.4" 1685 | } 1686 | }, 1687 | "color-name": { 1688 | "version": "1.1.4", 1689 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 1690 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", 1691 | "dev": true 1692 | } 1693 | } 1694 | }, 1695 | "sprintf-js": { 1696 | "version": "1.0.3", 1697 | "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", 1698 | "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", 1699 | "dev": true 1700 | }, 1701 | "string-width": { 1702 | "version": "4.2.3", 1703 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", 1704 | "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", 1705 | "dev": true, 1706 | "requires": { 1707 | "emoji-regex": "^8.0.0", 1708 | "is-fullwidth-code-point": "^3.0.0", 1709 | "strip-ansi": "^6.0.1" 1710 | } 1711 | }, 1712 | "string_decoder": { 1713 | "version": "1.1.1", 1714 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", 1715 | "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", 1716 | "dev": true, 1717 | "requires": { 1718 | "safe-buffer": "~5.1.0" 1719 | }, 1720 | "dependencies": { 1721 | "safe-buffer": { 1722 | "version": "5.1.2", 1723 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 1724 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", 1725 | "dev": true 1726 | } 1727 | } 1728 | }, 1729 | "strip-ansi": { 1730 | "version": "6.0.1", 1731 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 1732 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 1733 | "dev": true, 1734 | "requires": { 1735 | "ansi-regex": "^5.0.1" 1736 | } 1737 | }, 1738 | "strip-json-comments": { 1739 | "version": "3.1.1", 1740 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", 1741 | "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", 1742 | "dev": true 1743 | }, 1744 | "supports-color": { 1745 | "version": "5.5.0", 1746 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", 1747 | "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", 1748 | "dev": true, 1749 | "requires": { 1750 | "has-flag": "^3.0.0" 1751 | } 1752 | }, 1753 | "table": { 1754 | "version": "6.7.1", 1755 | "resolved": "https://registry.npmjs.org/table/-/table-6.7.1.tgz", 1756 | "integrity": "sha512-ZGum47Yi6KOOFDE8m223td53ath2enHcYLgOCjGr5ngu8bdIARQk6mN/wRMv4yMRcHnCSnHbCEha4sobQx5yWg==", 1757 | "dev": true, 1758 | "requires": { 1759 | "ajv": "^8.0.1", 1760 | "lodash.clonedeep": "^4.5.0", 1761 | "lodash.truncate": "^4.4.2", 1762 | "slice-ansi": "^4.0.0", 1763 | "string-width": "^4.2.0", 1764 | "strip-ansi": "^6.0.0" 1765 | }, 1766 | "dependencies": { 1767 | "ajv": { 1768 | "version": "8.6.3", 1769 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.6.3.tgz", 1770 | "integrity": "sha512-SMJOdDP6LqTkD0Uq8qLi+gMwSt0imXLSV080qFVwJCpH9U6Mb+SUGHAXM0KNbcBPguytWyvFxcHgMLe2D2XSpw==", 1771 | "dev": true, 1772 | "requires": { 1773 | "fast-deep-equal": "^3.1.1", 1774 | "json-schema-traverse": "^1.0.0", 1775 | "require-from-string": "^2.0.2", 1776 | "uri-js": "^4.2.2" 1777 | } 1778 | }, 1779 | "json-schema-traverse": { 1780 | "version": "1.0.0", 1781 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", 1782 | "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", 1783 | "dev": true 1784 | } 1785 | } 1786 | }, 1787 | "text-table": { 1788 | "version": "0.2.0", 1789 | "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", 1790 | "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", 1791 | "dev": true 1792 | }, 1793 | "tiny-emitter": { 1794 | "version": "2.1.0", 1795 | "resolved": "https://registry.npmjs.org/tiny-emitter/-/tiny-emitter-2.1.0.tgz", 1796 | "integrity": "sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q==" 1797 | }, 1798 | "to-regex-range": { 1799 | "version": "5.0.1", 1800 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 1801 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 1802 | "dev": true, 1803 | "requires": { 1804 | "is-number": "^7.0.0" 1805 | } 1806 | }, 1807 | "traverse": { 1808 | "version": "0.3.9", 1809 | "resolved": "https://registry.npmjs.org/traverse/-/traverse-0.3.9.tgz", 1810 | "integrity": "sha1-cXuPIgzAu3tE5AUUwisui7xw2Lk=", 1811 | "dev": true 1812 | }, 1813 | "tslib": { 1814 | "version": "1.14.1", 1815 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", 1816 | "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", 1817 | "dev": true 1818 | }, 1819 | "tsutils": { 1820 | "version": "3.21.0", 1821 | "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", 1822 | "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", 1823 | "dev": true, 1824 | "requires": { 1825 | "tslib": "^1.8.1" 1826 | } 1827 | }, 1828 | "type-check": { 1829 | "version": "0.4.0", 1830 | "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", 1831 | "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", 1832 | "dev": true, 1833 | "requires": { 1834 | "prelude-ls": "^1.2.1" 1835 | } 1836 | }, 1837 | "type-fest": { 1838 | "version": "0.20.2", 1839 | "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", 1840 | "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", 1841 | "dev": true 1842 | }, 1843 | "typescript": { 1844 | "version": "4.4.3", 1845 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.4.3.tgz", 1846 | "integrity": "sha512-4xfscpisVgqqDfPaJo5vkd+Qd/ItkoagnHpufr+i2QCHBsNYp+G7UAoyFl8aPtx879u38wPV65rZ8qbGZijalA==", 1847 | "dev": true 1848 | }, 1849 | "unorm": { 1850 | "version": "1.6.0", 1851 | "resolved": "https://registry.npmjs.org/unorm/-/unorm-1.6.0.tgz", 1852 | "integrity": "sha512-b2/KCUlYZUeA7JFUuRJZPUtr4gZvBh7tavtv4fvk4+KV9pfGiR6CQAQAWl49ZpR3ts2dk4FYkP7EIgDJoiOLDA==" 1853 | }, 1854 | "unzipper": { 1855 | "version": "0.10.11", 1856 | "resolved": "https://registry.npmjs.org/unzipper/-/unzipper-0.10.11.tgz", 1857 | "integrity": "sha512-+BrAq2oFqWod5IESRjL3S8baohbevGcVA+teAIOYWM3pDVdseogqbzhhvvmiyQrUNKFUnDMtELW3X8ykbyDCJw==", 1858 | "dev": true, 1859 | "requires": { 1860 | "big-integer": "^1.6.17", 1861 | "binary": "~0.3.0", 1862 | "bluebird": "~3.4.1", 1863 | "buffer-indexof-polyfill": "~1.0.0", 1864 | "duplexer2": "~0.1.4", 1865 | "fstream": "^1.0.12", 1866 | "graceful-fs": "^4.2.2", 1867 | "listenercount": "~1.0.1", 1868 | "readable-stream": "~2.3.6", 1869 | "setimmediate": "~1.0.4" 1870 | } 1871 | }, 1872 | "uri-js": { 1873 | "version": "4.4.1", 1874 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", 1875 | "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", 1876 | "dev": true, 1877 | "requires": { 1878 | "punycode": "^2.1.0" 1879 | } 1880 | }, 1881 | "util-deprecate": { 1882 | "version": "1.0.2", 1883 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", 1884 | "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", 1885 | "dev": true 1886 | }, 1887 | "v8-compile-cache": { 1888 | "version": "2.3.0", 1889 | "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz", 1890 | "integrity": "sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==", 1891 | "dev": true 1892 | }, 1893 | "vscode-test": { 1894 | "version": "1.6.1", 1895 | "resolved": "https://registry.npmjs.org/vscode-test/-/vscode-test-1.6.1.tgz", 1896 | "integrity": "sha512-086q88T2ca1k95mUzffvbzb7esqQNvJgiwY4h29ukPhFo8u+vXOOmelUoU5EQUHs3Of8+JuQ3oGdbVCqaxuTXA==", 1897 | "dev": true, 1898 | "requires": { 1899 | "http-proxy-agent": "^4.0.1", 1900 | "https-proxy-agent": "^5.0.0", 1901 | "rimraf": "^3.0.2", 1902 | "unzipper": "^0.10.11" 1903 | } 1904 | }, 1905 | "which": { 1906 | "version": "2.0.2", 1907 | "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", 1908 | "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", 1909 | "dev": true, 1910 | "requires": { 1911 | "isexe": "^2.0.0" 1912 | } 1913 | }, 1914 | "wide-align": { 1915 | "version": "1.1.3", 1916 | "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", 1917 | "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", 1918 | "dev": true, 1919 | "requires": { 1920 | "string-width": "^1.0.2 || 2" 1921 | }, 1922 | "dependencies": { 1923 | "ansi-regex": { 1924 | "version": "3.0.0", 1925 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", 1926 | "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", 1927 | "dev": true 1928 | }, 1929 | "is-fullwidth-code-point": { 1930 | "version": "2.0.0", 1931 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", 1932 | "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", 1933 | "dev": true 1934 | }, 1935 | "string-width": { 1936 | "version": "2.1.1", 1937 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", 1938 | "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", 1939 | "dev": true, 1940 | "requires": { 1941 | "is-fullwidth-code-point": "^2.0.0", 1942 | "strip-ansi": "^4.0.0" 1943 | } 1944 | }, 1945 | "strip-ansi": { 1946 | "version": "4.0.0", 1947 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", 1948 | "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", 1949 | "dev": true, 1950 | "requires": { 1951 | "ansi-regex": "^3.0.0" 1952 | } 1953 | } 1954 | } 1955 | }, 1956 | "word-wrap": { 1957 | "version": "1.2.3", 1958 | "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", 1959 | "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", 1960 | "dev": true 1961 | }, 1962 | "workerpool": { 1963 | "version": "6.1.0", 1964 | "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.1.0.tgz", 1965 | "integrity": "sha512-toV7q9rWNYha963Pl/qyeZ6wG+3nnsyvolaNUS8+R5Wtw6qJPTxIlOP1ZSvcGhEJw+l3HMMmtiNo9Gl61G4GVg==", 1966 | "dev": true 1967 | }, 1968 | "wrap-ansi": { 1969 | "version": "7.0.0", 1970 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", 1971 | "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", 1972 | "dev": true, 1973 | "requires": { 1974 | "ansi-styles": "^4.0.0", 1975 | "string-width": "^4.1.0", 1976 | "strip-ansi": "^6.0.0" 1977 | }, 1978 | "dependencies": { 1979 | "ansi-styles": { 1980 | "version": "4.3.0", 1981 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", 1982 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", 1983 | "dev": true, 1984 | "requires": { 1985 | "color-convert": "^2.0.1" 1986 | } 1987 | }, 1988 | "color-convert": { 1989 | "version": "2.0.1", 1990 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 1991 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 1992 | "dev": true, 1993 | "requires": { 1994 | "color-name": "~1.1.4" 1995 | } 1996 | }, 1997 | "color-name": { 1998 | "version": "1.1.4", 1999 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 2000 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", 2001 | "dev": true 2002 | } 2003 | } 2004 | }, 2005 | "wrappy": { 2006 | "version": "1.0.2", 2007 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 2008 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", 2009 | "dev": true 2010 | }, 2011 | "y18n": { 2012 | "version": "5.0.8", 2013 | "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", 2014 | "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", 2015 | "dev": true 2016 | }, 2017 | "yallist": { 2018 | "version": "4.0.0", 2019 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", 2020 | "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", 2021 | "dev": true 2022 | }, 2023 | "yargs": { 2024 | "version": "16.2.0", 2025 | "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", 2026 | "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", 2027 | "dev": true, 2028 | "requires": { 2029 | "cliui": "^7.0.2", 2030 | "escalade": "^3.1.1", 2031 | "get-caller-file": "^2.0.5", 2032 | "require-directory": "^2.1.1", 2033 | "string-width": "^4.2.0", 2034 | "y18n": "^5.0.5", 2035 | "yargs-parser": "^20.2.2" 2036 | } 2037 | }, 2038 | "yargs-parser": { 2039 | "version": "20.2.4", 2040 | "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz", 2041 | "integrity": "sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==", 2042 | "dev": true 2043 | }, 2044 | "yargs-unparser": { 2045 | "version": "2.0.0", 2046 | "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-2.0.0.tgz", 2047 | "integrity": "sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==", 2048 | "dev": true, 2049 | "requires": { 2050 | "camelcase": "^6.0.0", 2051 | "decamelize": "^4.0.0", 2052 | "flat": "^5.0.2", 2053 | "is-plain-obj": "^2.1.0" 2054 | } 2055 | }, 2056 | "yocto-queue": { 2057 | "version": "0.1.0", 2058 | "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", 2059 | "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", 2060 | "dev": true 2061 | } 2062 | } 2063 | } 2064 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "markdown-formula", 3 | "displayName": "markdown-formula", 4 | "description": "Use Excel-like formulas in markdown tables", 5 | "version": "0.0.6", 6 | "publisher": "cescript", 7 | "license": "GPLv3", 8 | "repository": { 9 | "url": "https://github.com/cescript/MarkdownFormula" 10 | }, 11 | "keywords": [ 12 | "markdown", 13 | "formula", 14 | "excel" 15 | ], 16 | "icon": "logo/logo.png", 17 | "engines": { 18 | "vscode": "^1.60.0" 19 | }, 20 | "categories": [ 21 | "Other" 22 | ], 23 | "activationEvents": [ 24 | "onCommand:extension.calculate", 25 | "onLanguage:markdown" 26 | ], 27 | "main": "./out/extension.js", 28 | "contributes": { 29 | "commands": [{ 30 | "command": "extension.calculate", 31 | "title": "Calculate all formulas" 32 | }], 33 | "configuration": { 34 | "title": "Markdown Formula Settings", 35 | "properties": { 36 | "markdown-formula.precisionRounding": { 37 | "type": "number", 38 | "default": 4, 39 | "description": "Rounding precision for floating point numbers" 40 | }, 41 | "markdown-formula.includeTableHeaderInCellNumaration": { 42 | "type": "boolean", 43 | "default": false, 44 | "description": "Include the header as the first row (1:1) in enumaration" 45 | }, 46 | "markdown-formula.calculateOnSave": { 47 | "type": "boolean", 48 | "default": true, 49 | "description": "Calculate and update formulas on save (reload required to take effect)" 50 | } 51 | } 52 | } 53 | }, 54 | "scripts": { 55 | "vscode:prepublish": "npm run compile", 56 | "compile": "tsc -p ./", 57 | "watch": "tsc -watch -p ./", 58 | "pretest": "npm run compile && npm run lint", 59 | "lint": "eslint src --ext ts", 60 | "test": "node ./out/test/runTest.js" 61 | }, 62 | "devDependencies": { 63 | "@types/vscode": "^1.60.0", 64 | "@types/glob": "^7.1.3", 65 | "@types/mocha": "^8.2.2", 66 | "@types/node": "14.x", 67 | "eslint": "^7.27.0", 68 | "@typescript-eslint/eslint-plugin": "^4.26.0", 69 | "@typescript-eslint/parser": "^4.26.0", 70 | "glob": "^7.1.7", 71 | "mocha": "^8.4.0", 72 | "typescript": "^4.3.2", 73 | "vscode-test": "^1.5.2" 74 | }, 75 | "dependencies": { 76 | "hyperformula": "^1.2.0" 77 | } 78 | } -------------------------------------------------------------------------------- /src/extension.ts: -------------------------------------------------------------------------------- 1 | // The module 'vscode' contains the VS Code extensibility API 2 | // Import the module and reference it with the alias vscode in your code below 3 | import * as vscode from 'vscode'; 4 | import { MarkdownFormula } from './markdown-formula'; 5 | 6 | // this method is called when your extension is activated 7 | // your extension is activated the very first time the command is executed 8 | export function activate(context: vscode.ExtensionContext) { 9 | 10 | // print info to terminal 11 | console.log('markdown-formula is now active!'); 12 | 13 | // register calculate command 14 | const disposable = vscode.commands.registerCommand('extension.calculate', function () { 15 | // Get the active text editor 16 | const editor = vscode.window.activeTextEditor; 17 | 18 | // if editor found 19 | if (editor) { 20 | const documentText = editor.document.getText(); 21 | 22 | // get the configuration 23 | let precisionRounding = vscode.workspace.getConfiguration('markdown-formula')['precisionRounding']; 24 | let includeTableHeaderInCellNumaration = vscode.workspace.getConfiguration('markdown-formula')['includeTableHeaderInCellNumaration']; 25 | 26 | // get the markdown formulas and evaluated results 27 | let content = MarkdownFormula(documentText, precisionRounding, includeTableHeaderInCellNumaration); 28 | console.log(content); 29 | 30 | // replace all the detected formulas with the calculated values 31 | editor.edit(editBuilder => { 32 | content.forEach(item => { 33 | let start = new vscode.Position(item.locations[0], item.locations[1]); 34 | let end = new vscode.Position(item.locations[0], item.locations[1]+item.locations[2]); 35 | 36 | // replace the lines in between 37 | editBuilder.replace(new vscode.Range(start, end), item.data); 38 | }) 39 | }).then(undefined, err => { 40 | console.error(err); 41 | }); 42 | } 43 | }); 44 | 45 | context.subscriptions.push(disposable); 46 | 47 | // run on save 48 | let calculateOnSave = vscode.workspace.getConfiguration('markdown-formula')['calculateOnSave']; 49 | if(calculateOnSave) { 50 | context.subscriptions.push(vscode.workspace.onWillSaveTextDocument((td) => { 51 | vscode.commands.executeCommand('extension.calculate') 52 | })); 53 | } 54 | } 55 | 56 | // this method is called when your extension is deactivated 57 | export function deactivate() {} 58 | -------------------------------------------------------------------------------- /src/markdown-formula.ts: -------------------------------------------------------------------------------- 1 | import { HyperFormula, SimpleCellAddress } from 'hyperformula'; 2 | 3 | // table struct 4 | type TableCell = { 5 | line: number; 6 | column: number; 7 | content: string; 8 | }; 9 | 10 | type TableContent = { 11 | sheet: string; 12 | data: TableCell[][]; 13 | }; 14 | 15 | type FormulaReturn = { 16 | address: SimpleCellAddress[]; 17 | locations: number[][]; 18 | formulas: string[]; 19 | data: string [][]; 20 | } 21 | 22 | // return the locations of the found formulas and the replacement values 23 | // locations: [lineNumber, column] 24 | // data: [#val](##formula) 25 | export type MarkdownReturn = { 26 | locations: number[]; 27 | data: string; 28 | } 29 | 30 | // given the document, parse valid tables 31 | export function MarkdownFormula(document:string, precisionRounding:number, includeTableHeaderInCellNumaration:boolean):MarkdownReturn[] { 32 | 33 | // split document into lines 34 | let allLines: string[] = document.split(/\r?\n/gm) 35 | 36 | // find the tables 37 | let tableCanditates = SplitValidMarkdownTables(allLines, includeTableHeaderInCellNumaration); 38 | 39 | // print the tables 40 | console.log("markdown-formula detected %d valid tables!", tableCanditates.length); 41 | 42 | // check the precision level 43 | if(precisionRounding < 0) { 44 | console.log("invalid precision level!"); 45 | precisionRounding = 4; 46 | } 47 | 48 | // create hyperformula option 49 | const options = { 50 | precisionRounding: precisionRounding, 51 | licenseKey: 'gpl-v3', 52 | }; 53 | 54 | // build an instance with defined options 55 | const hfInstance = HyperFormula.buildEmpty(options); 56 | 57 | // create output 58 | let output:MarkdownReturn[] = []; 59 | 60 | // formulas in table 61 | let allFormulaData: FormulaReturn[] = []; 62 | 63 | // create data pointer for table content 64 | for(let i = 0; i < tableCanditates.length; i++) 65 | { 66 | // add the current table to hfInstance 67 | const sheetNameI = hfInstance.addSheet(tableCanditates[i].sheet); 68 | const sheetIdI = hfInstance.getSheetId(sheetNameI); 69 | 70 | // not possible but ts forces this check 71 | if(typeof sheetIdI !== "undefined") 72 | { 73 | let formulaData = GetFormulaData(tableCanditates[i], sheetIdI); 74 | hfInstance.setSheetContent(sheetIdI, formulaData.data); 75 | allFormulaData.push(formulaData); 76 | } 77 | } 78 | 79 | // go over all formulas and get the results 80 | for(let k = 0; k < allFormulaData.length; k++) 81 | { 82 | // add the cell address to list 83 | for(let i = 0; i < allFormulaData[k].address.length; i++) 84 | { 85 | const val = hfInstance.getCellValue(allFormulaData[k].address[i]); 86 | let result = '[' + val + ']' + '(#' + allFormulaData[k].formulas[i] + ')'; 87 | // push the result into output vector 88 | output.push({data:result, locations: allFormulaData[k].locations[i]}); 89 | } 90 | } 91 | 92 | // return the result 93 | return output; 94 | } 95 | 96 | // split the table into columns 97 | function GetFormulaData(table:TableContent, sheetID:number):FormulaReturn { 98 | 99 | // get the cells of the table 100 | let tableData = table.data; 101 | let output:FormulaReturn = {address:[], locations:[], formulas:[], data:[]}; 102 | 103 | for(let r = 0; r < tableData.length; r++) 104 | { 105 | let rowRdata: string[] = []; 106 | 107 | // loop on the columns 108 | for(let c = 0; c < tableData[r].length; c++) 109 | { 110 | // get the content 111 | let content = tableData[r][c].content; 112 | 113 | // is formula? 114 | let formulaPattern = /\[.*?\]\(#(.*)\)/ 115 | let match = content.match(formulaPattern); 116 | if(match != null && match.index) 117 | { 118 | output.address.push({ col: c, row: r, sheet: sheetID }); 119 | output.locations.push([tableData[r][c].line, tableData[r][c].column + match.index, match[0].length]); 120 | output.formulas.push(match[1]); 121 | content = '=' + match[1]; 122 | } 123 | 124 | // set the content 125 | rowRdata.push(content.trim()); 126 | } 127 | output.data.push(rowRdata); 128 | } 129 | 130 | // split the content into columns 131 | return output; 132 | } 133 | 134 | // returns all consecutive blocks in given array 135 | // [1,2,4,5,6,7,9] => [[1,2],[4,5,6,7]] 136 | function FindConsecutiveBlocks(array:number[]) { 137 | let consecutiveLineArray: number[][] = []; 138 | let consecutiveLines = [array[0]]; 139 | 140 | // go over the all elements 141 | for (let k = 1; k < array.length; k++) { 142 | // if the current element matches the previous element in the block 143 | if ((consecutiveLines[consecutiveLines.length - 1] + 1) == array[k]) { 144 | consecutiveLines.push(array[k]) 145 | } else { 146 | // if block contains at least two lines, accept it 147 | if (consecutiveLines.length >= 2) { 148 | consecutiveLineArray.push(consecutiveLines); 149 | } 150 | // restart the block since it is not consecutive anymore 151 | consecutiveLines = [array[k]] 152 | } 153 | } 154 | 155 | // add the last part if it is not empty 156 | if (consecutiveLines.length >= 2) { 157 | consecutiveLineArray.push(consecutiveLines); 158 | } 159 | 160 | return consecutiveLineArray; 161 | } 162 | 163 | // create array of table cells that contains the all the data in the row 164 | function GetTableColumns(allContent:string[], lineNumber:number) { 165 | 166 | let column:TableCell[] = []; 167 | 168 | // get the cells 169 | let splits = allContent[lineNumber].split('|') 170 | 171 | // parse each column, skip first and last | 172 | var index=0 173 | for(let i = 1; i < splits.length - 1; i++) { 174 | column.push({line:lineNumber, column: index + 1, content:splits[i]}); 175 | index += splits[i].length + 1; 176 | } 177 | 178 | // return the column 179 | return column; 180 | } 181 | 182 | // get the table content 183 | function GetTableContent(allLines:string[], dataLines:number[], sheetID:number, includeTableHeaderInCellNumaration:boolean) 184 | { 185 | // create a table 186 | let table: TableContent = {sheet:'Sheet' + sheetID, data:[]}; 187 | 188 | // push the table header to the data array 189 | if(includeTableHeaderInCellNumaration) { 190 | table.data.push(GetTableColumns(allLines, dataLines[0])); 191 | } 192 | 193 | // fill the table cells, skip the first two rows 194 | for(let i = 2; i < dataLines.length; i++) 195 | { 196 | table.data.push(GetTableColumns(allLines, dataLines[i])); 197 | } 198 | 199 | // find the sheet name if exist 200 | if(dataLines[0] > 0) 201 | { 202 | // get the line just before the header 203 | let possibleSheetName = allLines[dataLines[0]-1]; 204 | // is that line a markdown comment 205 | let matchPattern = possibleSheetName.match(//) 206 | if(matchPattern != null) 207 | { 208 | table.sheet = matchPattern[1].trim(); 209 | } 210 | } 211 | 212 | return table; 213 | } 214 | 215 | // splits the given document into smaller text groups that can be markdown tables 216 | // returns an array of candidate table content and line numbers 217 | function SplitValidMarkdownTables(allLines:string[], includeTableHeaderInCellNumaration:boolean) { 218 | 219 | let candidateLines: number[] = []; 220 | 221 | // check all the lines and test for table pattern 222 | let tablePattern = /^\|(.*)\|$/m 223 | for (let l = 0; l < allLines.length; l++) { 224 | if (tablePattern.test(allLines[l])) { 225 | candidateLines.push(l); 226 | } 227 | } 228 | 229 | // get the consecutive lines as arrays 230 | let blocks = FindConsecutiveBlocks(candidateLines); 231 | 232 | // create table object 233 | let tables: TableContent[] = []; 234 | 235 | // find the blocks that contains formulas 236 | for(let i = 0; i < blocks.length; i++) 237 | { 238 | // check that table contains |---****---| pattern 239 | if(allLines[blocks[i][1]].match(/(?:\|.+?[-]+.+?)+\|/)) 240 | { 241 | // create table if table contains more than two rows (header and ----) 242 | if(blocks[i].length > 2) 243 | { 244 | tables.push(GetTableContent(allLines, blocks[i], tables.length, includeTableHeaderInCellNumaration)); 245 | } 246 | } 247 | } 248 | 249 | // return the valid table 250 | return tables; 251 | } 252 | -------------------------------------------------------------------------------- /src/test/runTest.ts: -------------------------------------------------------------------------------- 1 | import * as path from 'path'; 2 | 3 | import { runTests } from 'vscode-test'; 4 | 5 | async function main() { 6 | try { 7 | // The folder containing the Extension Manifest package.json 8 | // Passed to `--extensionDevelopmentPath` 9 | const extensionDevelopmentPath = path.resolve(__dirname, '../../'); 10 | 11 | // The path to test runner 12 | // Passed to --extensionTestsPath 13 | const extensionTestsPath = path.resolve(__dirname, './suite/index'); 14 | 15 | // Download VS Code, unzip it and run the integration test 16 | await runTests({ extensionDevelopmentPath, extensionTestsPath }); 17 | } catch (err) { 18 | console.error('Failed to run tests'); 19 | process.exit(1); 20 | } 21 | } 22 | 23 | main(); 24 | -------------------------------------------------------------------------------- /src/test/suite/extension.test.ts: -------------------------------------------------------------------------------- 1 | import * as assert from 'assert'; 2 | 3 | // You can import and use all API from the 'vscode' module 4 | // as well as import your extension to test it 5 | import * as vscode from 'vscode'; 6 | // import * as myExtension from '../../extension'; 7 | 8 | suite('Extension Test Suite', () => { 9 | vscode.window.showInformationMessage('Start all tests.'); 10 | 11 | test('Sample test', () => { 12 | assert.strictEqual(-1, [1, 2, 3].indexOf(5)); 13 | assert.strictEqual(-1, [1, 2, 3].indexOf(0)); 14 | }); 15 | }); 16 | -------------------------------------------------------------------------------- /src/test/suite/index.ts: -------------------------------------------------------------------------------- 1 | import * as path from 'path'; 2 | import * as Mocha from 'mocha'; 3 | import * as glob from 'glob'; 4 | 5 | export function run(): Promise { 6 | // Create the mocha test 7 | const mocha = new Mocha({ 8 | ui: 'tdd', 9 | color: true 10 | }); 11 | 12 | const testsRoot = path.resolve(__dirname, '..'); 13 | 14 | return new Promise((c, e) => { 15 | glob('**/**.test.js', { cwd: testsRoot }, (err, files) => { 16 | if (err) { 17 | return e(err); 18 | } 19 | 20 | // Add files to the test suite 21 | files.forEach(f => mocha.addFile(path.resolve(testsRoot, f))); 22 | 23 | try { 24 | // Run the mocha test 25 | mocha.run(failures => { 26 | if (failures > 0) { 27 | e(new Error(`${failures} tests failed.`)); 28 | } else { 29 | c(); 30 | } 31 | }); 32 | } catch (err) { 33 | console.error(err); 34 | e(err); 35 | } 36 | }); 37 | }); 38 | } 39 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "target": "es6", 5 | "outDir": "out", 6 | "lib": [ 7 | "es6" 8 | ], 9 | "sourceMap": true, 10 | "rootDir": "src", 11 | "strict": true, /* enable all strict type-checking options */ 12 | }, 13 | "exclude": [ 14 | "node_modules", 15 | ".vscode-test" 16 | ] 17 | } 18 | --------------------------------------------------------------------------------