gitlab-ci-local 4.65.0 → 4.66.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -19
- package/dist/index.js +340 -0
- package/dist/index.js.map +480 -0
- package/package.json +26 -80
- package/src/argv.js +0 -307
- package/src/commander.js +0 -247
- package/src/data-expander.js +0 -220
- package/src/executor.js +0 -104
- package/src/git-data.js +0 -168
- package/src/gitlab-preset.js +0 -24
- package/src/global.js +0 -40
- package/src/handler.js +0 -119
- package/src/index.js +0 -364
- package/src/job.js +0 -1463
- package/src/mutex.js +0 -20
- package/src/parallel.js +0 -46
- package/src/parser-includes.js +0 -387
- package/src/parser.js +0 -357
- package/src/predefined-variables.js +0 -67
- package/src/producers.js +0 -42
- package/src/schema/index.js +0 -19
- package/src/schema/schema.js +0 -3190
- package/src/schema-error.js +0 -114
- package/src/state.js +0 -22
- package/src/utils.js +0 -485
- package/src/validator.js +0 -151
- package/src/variables-from-files.js +0 -143
- package/src/write-streams.js +0 -51
package/dist/index.js
ADDED
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
#!/usr/bin/env bun
|
|
2
|
+
// @bun
|
|
3
|
+
import{createRequire as FU}from"node:module";var a_=Object.create;var{getPrototypeOf:t_,defineProperty:V8,getOwnPropertyNames:iq,getOwnPropertyDescriptor:e_}=Object,vq=Object.prototype.hasOwnProperty;var M0=(u,D,F)=>{F=u!=null?a_(t_(u)):{};let $=D||!u||!u.__esModule?V8(F,"default",{value:u,enumerable:!0}):F;for(let B of iq(u))if(!vq.call($,B))V8($,B,{get:()=>u[B],enumerable:!0});return $},Uq=new WeakMap,uU=(u)=>{var D=Uq.get(u),F;if(D)return D;if(D=V8({},"__esModule",{value:!0}),u&&typeof u==="object"||typeof u==="function")iq(u).map(($)=>!vq.call(D,$)&&V8(D,$,{get:()=>u[$],enumerable:!(F=e_(u,$))||F.enumerable}));return Uq.set(u,D),D},V=(u,D)=>()=>(D||u((D={exports:{}}).exports,D),D.exports);var c3=(u,D)=>{for(var F in D)V8(u,F,{get:D[F],enumerable:!0,configurable:!0,set:($)=>D[F]=()=>$})};var DU=(u,D)=>()=>(u&&(D=u(u=0)),D);var o=FU(import.meta.url);var BX=V((B30,$X)=>{$X.exports=()=>{return/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g}});var _X=V((g30,CX)=>{CX.exports=function(D){if(D===void 0)D=2;if(D>=Error.stackTraceLimit)throw TypeError("getCallerFile(position) requires position be less then Error.stackTraceLimit but position was: `"+D+"` and Error.stackTraceLimit was: `"+Error.stackTraceLimit+"`");var F=Error.prepareStackTrace;Error.prepareStackTrace=function(B,z){return z};var $=Error().stack;if(Error.prepareStackTrace=F,$!==null&&typeof $==="object")return $[D]?$[D].getFileName():void 0}});var Q6=V((Y20,EQ)=>{/*!
|
|
4
|
+
* @description Recursive object extending
|
|
5
|
+
* @author Viacheslav Lotsmanov <lotsmanov89@gmail.com>
|
|
6
|
+
* @license MIT
|
|
7
|
+
*
|
|
8
|
+
* The MIT License (MIT)
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) 2013-2018 Viacheslav Lotsmanov
|
|
11
|
+
*
|
|
12
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
13
|
+
* this software and associated documentation files (the "Software"), to deal in
|
|
14
|
+
* the Software without restriction, including without limitation the rights to
|
|
15
|
+
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
16
|
+
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
17
|
+
* subject to the following conditions:
|
|
18
|
+
*
|
|
19
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
20
|
+
* copies or substantial portions of the Software.
|
|
21
|
+
*
|
|
22
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
23
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
24
|
+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
25
|
+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
26
|
+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
27
|
+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
28
|
+
*/function NQ(u){return u instanceof Buffer||u instanceof Date||u instanceof RegExp?!0:!1}function jQ(u){if(u instanceof Buffer){var D=Buffer.alloc?Buffer.alloc(u.length):new Buffer(u.length);return u.copy(D),D}else if(u instanceof Date)return new Date(u.getTime());else if(u instanceof RegExp)return new RegExp(u);else throw Error("Unexpected situation")}function IQ(u){var D=[];return u.forEach(function(F,$){if(typeof F==="object"&&F!==null)if(Array.isArray(F))D[$]=IQ(F);else if(NQ(F))D[$]=jQ(F);else D[$]=L$({},F);else D[$]=F}),D}function wQ(u,D){return D==="__proto__"?void 0:u[D]}var L$=EQ.exports=function(){if(arguments.length<1||typeof arguments[0]!=="object")return!1;if(arguments.length<2)return arguments[0];var u=arguments[0],D=Array.prototype.slice.call(arguments,1),F,$,B;return D.forEach(function(z){if(typeof z!=="object"||z===null||Array.isArray(z))return;Object.keys(z).forEach(function(Z){if($=wQ(u,Z),F=wQ(z,Z),F===u)return;else if(typeof F!=="object"||F===null){u[Z]=F;return}else if(Array.isArray(F)){u[Z]=IQ(F);return}else if(NQ(F)){u[Z]=jQ(F);return}else if(typeof $!=="object"||$===null||Array.isArray($)){u[Z]=L$({},F);return}else{u[Z]=L$($,F);return}})}),u}});var xu=V((ni)=>{ni.fromCallback=function(u){return Object.defineProperty(function(...D){if(typeof D[D.length-1]==="function")u.apply(this,D);else return new Promise((F,$)=>{D.push((B,z)=>B!=null?$(B):F(z)),u.apply(this,D)})},"name",{value:u.name})};ni.fromPromise=function(u){return Object.defineProperty(function(...D){let F=D[D.length-1];if(typeof F!=="function")return u.apply(this,D);else D.pop(),u.apply(this,D).then(($)=>F(null,$),F)},"name",{value:u.name})}});var CQ=V((G20,PQ)=>{var y1=o("constants"),gi=process.cwd,n7=null,di=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!n7)n7=gi.call(process);return n7};try{process.cwd()}catch(u){}if(typeof process.chdir==="function"){if(p7=process.chdir,process.chdir=function(u){n7=null,p7.call(process,u)},Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,p7)}var p7;PQ.exports=oi;function oi(u){if(y1.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./))D(u);if(!u.lutimes)F(u);if(u.chown=z(u.chown),u.fchown=z(u.fchown),u.lchown=z(u.lchown),u.chmod=$(u.chmod),u.fchmod=$(u.fchmod),u.lchmod=$(u.lchmod),u.chownSync=Z(u.chownSync),u.fchownSync=Z(u.fchownSync),u.lchownSync=Z(u.lchownSync),u.chmodSync=B(u.chmodSync),u.fchmodSync=B(u.fchmodSync),u.lchmodSync=B(u.lchmodSync),u.stat=q(u.stat),u.fstat=q(u.fstat),u.lstat=q(u.lstat),u.statSync=X(u.statSync),u.fstatSync=X(u.fstatSync),u.lstatSync=X(u.lstatSync),u.chmod&&!u.lchmod)u.lchmod=function(W,Y,J){if(J)process.nextTick(J)},u.lchmodSync=function(){};if(u.chown&&!u.lchown)u.lchown=function(W,Y,J,G){if(G)process.nextTick(G)},u.lchownSync=function(){};if(di==="win32")u.rename=typeof u.rename!=="function"?u.rename:function(W){function Y(J,G,K){var H=Date.now(),f=0;W(J,G,function x(L){if(L&&(L.code==="EACCES"||L.code==="EPERM"||L.code==="EBUSY")&&Date.now()-H<60000){if(setTimeout(function(){u.stat(G,function(A,C){if(A&&A.code==="ENOENT")W(J,G,x);else K(L)})},f),f<100)f+=10;return}if(K)K(L)})}if(Object.setPrototypeOf)Object.setPrototypeOf(Y,W);return Y}(u.rename);u.read=typeof u.read!=="function"?u.read:function(W){function Y(J,G,K,H,f,x){var L;if(x&&typeof x==="function"){var A=0;L=function(C,I,_){if(C&&C.code==="EAGAIN"&&A<10)return A++,W.call(u,J,G,K,H,f,L);x.apply(this,arguments)}}return W.call(u,J,G,K,H,f,L)}if(Object.setPrototypeOf)Object.setPrototypeOf(Y,W);return Y}(u.read),u.readSync=typeof u.readSync!=="function"?u.readSync:function(W){return function(Y,J,G,K,H){var f=0;while(!0)try{return W.call(u,Y,J,G,K,H)}catch(x){if(x.code==="EAGAIN"&&f<10){f++;continue}throw x}}}(u.readSync);function D(W){W.lchmod=function(Y,J,G){W.open(Y,y1.O_WRONLY|y1.O_SYMLINK,J,function(K,H){if(K){if(G)G(K);return}W.fchmod(H,J,function(f){W.close(H,function(x){if(G)G(f||x)})})})},W.lchmodSync=function(Y,J){var G=W.openSync(Y,y1.O_WRONLY|y1.O_SYMLINK,J),K=!0,H;try{H=W.fchmodSync(G,J),K=!1}finally{if(K)try{W.closeSync(G)}catch(f){}else W.closeSync(G)}return H}}function F(W){if(y1.hasOwnProperty("O_SYMLINK")&&W.futimes)W.lutimes=function(Y,J,G,K){W.open(Y,y1.O_SYMLINK,function(H,f){if(H){if(K)K(H);return}W.futimes(f,J,G,function(x){W.close(f,function(L){if(K)K(x||L)})})})},W.lutimesSync=function(Y,J,G){var K=W.openSync(Y,y1.O_SYMLINK),H,f=!0;try{H=W.futimesSync(K,J,G),f=!1}finally{if(f)try{W.closeSync(K)}catch(x){}else W.closeSync(K)}return H};else if(W.futimes)W.lutimes=function(Y,J,G,K){if(K)process.nextTick(K)},W.lutimesSync=function(){}}function $(W){if(!W)return W;return function(Y,J,G){return W.call(u,Y,J,function(K){if(Q(K))K=null;if(G)G.apply(this,arguments)})}}function B(W){if(!W)return W;return function(Y,J){try{return W.call(u,Y,J)}catch(G){if(!Q(G))throw G}}}function z(W){if(!W)return W;return function(Y,J,G,K){return W.call(u,Y,J,G,function(H){if(Q(H))H=null;if(K)K.apply(this,arguments)})}}function Z(W){if(!W)return W;return function(Y,J,G){try{return W.call(u,Y,J,G)}catch(K){if(!Q(K))throw K}}}function q(W){if(!W)return W;return function(Y,J,G){if(typeof J==="function")G=J,J=null;function K(H,f){if(f){if(f.uid<0)f.uid+=4294967296;if(f.gid<0)f.gid+=4294967296}if(G)G.apply(this,arguments)}return J?W.call(u,Y,J,K):W.call(u,Y,K)}}function X(W){if(!W)return W;return function(Y,J){var G=J?W.call(u,Y,J):W.call(u,Y);if(G){if(G.uid<0)G.uid+=4294967296;if(G.gid<0)G.gid+=4294967296}return G}}function Q(W){if(!W)return!0;if(W.code==="ENOSYS")return!0;var Y=!process.getuid||process.getuid()!==0;if(Y){if(W.code==="EINVAL"||W.code==="EPERM")return!0}return!1}}});var iQ=V((K20,UQ)=>{var _Q=o("stream").Stream;UQ.exports=si;function si(u){return{ReadStream:D,WriteStream:F};function D($,B){if(!(this instanceof D))return new D($,B);_Q.call(this);var z=this;this.path=$,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,B=B||{};var Z=Object.keys(B);for(var q=0,X=Z.length;q<X;q++){var Q=Z[q];this[Q]=B[Q]}if(this.encoding)this.setEncoding(this.encoding);if(this.start!==void 0){if(typeof this.start!=="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!=="number")throw TypeError("end must be a Number");if(this.start>this.end)throw Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){z._read()});return}u.open(this.path,this.flags,this.mode,function(W,Y){if(W){z.emit("error",W),z.readable=!1;return}z.fd=Y,z.emit("open",Y),z._read()})}function F($,B){if(!(this instanceof F))return new F($,B);_Q.call(this),this.path=$,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,B=B||{};var z=Object.keys(B);for(var Z=0,q=z.length;Z<q;Z++){var X=z[Z];this[X]=B[X]}if(this.start!==void 0){if(typeof this.start!=="number")throw TypeError("start must be a Number");if(this.start<0)throw Error("start must be >= zero");this.pos=this.start}if(this.busy=!1,this._queue=[],this.fd===null)this._open=u.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush()}}});var SQ=V((H20,vQ)=>{vQ.exports=ai;var ri=Object.getPrototypeOf||function(u){return u.__proto__};function ai(u){if(u===null||typeof u!=="object")return u;if(u instanceof Object)var D={__proto__:ri(u)};else var D=Object.create(null);return Object.getOwnPropertyNames(u).forEach(function(F){Object.defineProperty(D,F,Object.getOwnPropertyDescriptor(u,F))}),D}});var Y6=V((f20,A$)=>{var uu=o("fs"),ti=CQ(),ei=iQ(),uv=SQ(),l7=o("util"),Nu,d7;if(typeof Symbol==="function"&&typeof Symbol.for==="function")Nu=Symbol.for("graceful-fs.queue"),d7=Symbol.for("graceful-fs.previous");else Nu="___graceful-fs.queue",d7="___graceful-fs.previous";function Dv(){}function yQ(u,D){Object.defineProperty(u,Nu,{get:function(){return D}})}var jF=Dv;if(l7.debuglog)jF=l7.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))jF=function(){var u=l7.format.apply(l7,arguments);u="GFS4: "+u.split(/\n/).join(`
|
|
29
|
+
GFS4: `),console.error(u)};if(!uu[Nu]){if(M$=global[Nu]||[],yQ(uu,M$),uu.close=function(u){function D(F,$){return u.call(uu,F,function(B){if(!B)TQ();if(typeof $==="function")$.apply(this,arguments)})}return Object.defineProperty(D,d7,{value:u}),D}(uu.close),uu.closeSync=function(u){function D(F){u.apply(uu,arguments),TQ()}return Object.defineProperty(D,d7,{value:u}),D}(uu.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))process.on("exit",function(){jF(uu[Nu]),o("assert").equal(uu[Nu].length,0)})}var M$;if(!global[Nu])yQ(global,uu[Nu]);A$.exports=x$(uv(uu));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!uu.__patched)A$.exports=x$(uu),uu.__patched=!0;function x$(u){ti(u),u.gracefulify=x$,u.createReadStream=I,u.createWriteStream=_;var D=u.readFile;u.readFile=F;function F(c,e,w){if(typeof e==="function")w=e,e=null;return h(c,e,w);function h(n,r,i,v){return D(n,r,function(d){if(d&&(d.code==="EMFILE"||d.code==="ENFILE"))W6([h,[n,r,i],d,v||Date.now(),Date.now()]);else if(typeof i==="function")i.apply(this,arguments)})}}var $=u.writeFile;u.writeFile=B;function B(c,e,w,h){if(typeof w==="function")h=w,w=null;return n(c,e,w,h);function n(r,i,v,d,a){return $(r,i,v,function(L0){if(L0&&(L0.code==="EMFILE"||L0.code==="ENFILE"))W6([n,[r,i,v,d],L0,a||Date.now(),Date.now()]);else if(typeof d==="function")d.apply(this,arguments)})}}var z=u.appendFile;if(z)u.appendFile=Z;function Z(c,e,w,h){if(typeof w==="function")h=w,w=null;return n(c,e,w,h);function n(r,i,v,d,a){return z(r,i,v,function(L0){if(L0&&(L0.code==="EMFILE"||L0.code==="ENFILE"))W6([n,[r,i,v,d],L0,a||Date.now(),Date.now()]);else if(typeof d==="function")d.apply(this,arguments)})}}var q=u.copyFile;if(q)u.copyFile=X;function X(c,e,w,h){if(typeof w==="function")h=w,w=0;return n(c,e,w,h);function n(r,i,v,d,a){return q(r,i,v,function(L0){if(L0&&(L0.code==="EMFILE"||L0.code==="ENFILE"))W6([n,[r,i,v,d],L0,a||Date.now(),Date.now()]);else if(typeof d==="function")d.apply(this,arguments)})}}var Q=u.readdir;u.readdir=Y;var W=/^v[0-5]\./;function Y(c,e,w){if(typeof e==="function")w=e,e=null;var h=W.test(process.version)?function(i,v,d,a){return Q(i,n(i,v,d,a))}:function(i,v,d,a){return Q(i,v,n(i,v,d,a))};return h(c,e,w);function n(r,i,v,d){return function(a,L0){if(a&&(a.code==="EMFILE"||a.code==="ENFILE"))W6([h,[r,i,v],a,d||Date.now(),Date.now()]);else{if(L0&&L0.sort)L0.sort();if(typeof v==="function")v.call(this,a,L0)}}}}if(process.version.substr(0,4)==="v0.8"){var J=ei(u);x=J.ReadStream,A=J.WriteStream}var G=u.ReadStream;if(G)x.prototype=Object.create(G.prototype),x.prototype.open=L;var K=u.WriteStream;if(K)A.prototype=Object.create(K.prototype),A.prototype.open=C;Object.defineProperty(u,"ReadStream",{get:function(){return x},set:function(c){x=c},enumerable:!0,configurable:!0}),Object.defineProperty(u,"WriteStream",{get:function(){return A},set:function(c){A=c},enumerable:!0,configurable:!0});var H=x;Object.defineProperty(u,"FileReadStream",{get:function(){return H},set:function(c){H=c},enumerable:!0,configurable:!0});var f=A;Object.defineProperty(u,"FileWriteStream",{get:function(){return f},set:function(c){f=c},enumerable:!0,configurable:!0});function x(c,e){if(this instanceof x)return G.apply(this,arguments),this;else return x.apply(Object.create(x.prototype),arguments)}function L(){var c=this;k(c.path,c.flags,c.mode,function(e,w){if(e){if(c.autoClose)c.destroy();c.emit("error",e)}else c.fd=w,c.emit("open",w),c.read()})}function A(c,e){if(this instanceof A)return K.apply(this,arguments),this;else return A.apply(Object.create(A.prototype),arguments)}function C(){var c=this;k(c.path,c.flags,c.mode,function(e,w){if(e)c.destroy(),c.emit("error",e);else c.fd=w,c.emit("open",w)})}function I(c,e){return new u.ReadStream(c,e)}function _(c,e){return new u.WriteStream(c,e)}var R=u.open;u.open=k;function k(c,e,w,h){if(typeof w==="function")h=w,w=null;return n(c,e,w,h);function n(r,i,v,d,a){return R(r,i,v,function(L0,t){if(L0&&(L0.code==="EMFILE"||L0.code==="ENFILE"))W6([n,[r,i,v,d],L0,a||Date.now(),Date.now()]);else if(typeof d==="function")d.apply(this,arguments)})}}return u}function W6(u){jF("ENQUEUE",u[0].name,u[1]),uu[Nu].push(u),O$()}var g7;function TQ(){var u=Date.now();for(var D=0;D<uu[Nu].length;++D)if(uu[Nu][D].length>2)uu[Nu][D][3]=u,uu[Nu][D][4]=u;O$()}function O$(){if(clearTimeout(g7),g7=void 0,uu[Nu].length===0)return;var u=uu[Nu].shift(),D=u[0],F=u[1],$=u[2],B=u[3],z=u[4];if(B===void 0)jF("RETRY",D.name,F),D.apply(null,F);else if(Date.now()-B>=60000){jF("TIMEOUT",D.name,F);var Z=F.pop();if(typeof Z==="function")Z.call(null,$)}else{var q=Date.now()-z,X=Math.max(z-B,1),Q=Math.min(X*1.2,100);if(q>=Q)jF("RETRY",D.name,F),D.apply(null,F.concat([B]));else uu[Nu].push(u)}if(g7===void 0)g7=setTimeout(O$,0)}});var yu=V((w$)=>{var bQ=xu().fromCallback,Tu=Y6(),Fv=["access","appendFile","chmod","chown","close","copyFile","cp","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","glob","lchmod","lchown","lutimes","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","statfs","symlink","truncate","unlink","utimes","writeFile"].filter((u)=>{return typeof Tu[u]==="function"});Object.assign(w$,Tu);Fv.forEach((u)=>{w$[u]=bQ(Tu[u])});w$.exists=function(u,D){if(typeof D==="function")return Tu.exists(u,D);return new Promise((F)=>{return Tu.exists(u,F)})};w$.read=function(u,D,F,$,B,z){if(typeof z==="function")return Tu.read(u,D,F,$,B,z);return new Promise((Z,q)=>{Tu.read(u,D,F,$,B,(X,Q,W)=>{if(X)return q(X);Z({bytesRead:Q,buffer:W})})})};w$.write=function(u,D,...F){if(typeof F[F.length-1]==="function")return Tu.write(u,D,...F);return new Promise(($,B)=>{Tu.write(u,D,...F,(z,Z,q)=>{if(z)return B(z);$({bytesWritten:Z,buffer:q})})})};w$.readv=function(u,D,...F){if(typeof F[F.length-1]==="function")return Tu.readv(u,D,...F);return new Promise(($,B)=>{Tu.readv(u,D,...F,(z,Z,q)=>{if(z)return B(z);$({bytesRead:Z,buffers:q})})})};w$.writev=function(u,D,...F){if(typeof F[F.length-1]==="function")return Tu.writev(u,D,...F);return new Promise(($,B)=>{Tu.writev(u,D,...F,(z,Z,q)=>{if(z)return B(z);$({bytesWritten:Z,buffers:q})})})};if(typeof Tu.realpath.native==="function")w$.realpath.native=bQ(Tu.realpath.native);else process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var kQ=V((Qv,RQ)=>{var Xv=o("path");Qv.checkPath=function(D){if(process.platform==="win32"){if(/[<>:"|?*]/.test(D.replace(Xv.parse(D).root,""))){let $=Error(`Path contains invalid characters: ${D}`);throw $.code="EINVAL",$}}}});var nQ=V((Yv,N$)=>{var hQ=yu(),{checkPath:cQ}=kQ(),mQ=(u)=>{let D={mode:511};if(typeof u==="number")return u;return{...D,...u}.mode};Yv.makeDir=async(u,D)=>{return cQ(u),hQ.mkdir(u,{mode:mQ(D),recursive:!0})};Yv.makeDirSync=(u,D)=>{return cQ(u),hQ.mkdirSync(u,{mode:mQ(D),recursive:!0})}});var TD=V((M20,pQ)=>{var Kv=xu().fromPromise,{makeDir:Hv,makeDirSync:j$}=nQ(),I$=Kv(Hv);pQ.exports={mkdirs:I$,mkdirsSync:j$,mkdirp:I$,mkdirpSync:j$,ensureDir:I$,ensureDirSync:j$}});var b1=V((x20,gQ)=>{var fv=xu().fromPromise,lQ=yu();function Vv(u){return lQ.access(u).then(()=>!0).catch(()=>!1)}gQ.exports={pathExists:fv(Vv),pathExistsSync:lQ.existsSync}});var E$=V((O20,dQ)=>{var J6=yu(),Lv=xu().fromPromise;async function Mv(u,D,F){let $=await J6.open(u,"r+"),B=null;try{await J6.futimes($,D,F)}finally{try{await J6.close($)}catch(z){B=z}}if(B)throw B}function xv(u,D,F){let $=J6.openSync(u,"r+");return J6.futimesSync($,D,F),J6.closeSync($)}dQ.exports={utimesMillis:Lv(Mv),utimesMillisSync:xv}});var IF=V((A20,aQ)=>{var G6=yu(),Ou=o("path"),oQ=xu().fromPromise;function Ov(u,D,F){let $=F.dereference?(B)=>G6.stat(B,{bigint:!0}):(B)=>G6.lstat(B,{bigint:!0});return Promise.all([$(u),$(D).catch((B)=>{if(B.code==="ENOENT")return null;throw B})]).then(([B,z])=>({srcStat:B,destStat:z}))}function Av(u,D,F){let $,B=F.dereference?(Z)=>G6.statSync(Z,{bigint:!0}):(Z)=>G6.lstatSync(Z,{bigint:!0}),z=B(u);try{$=B(D)}catch(Z){if(Z.code==="ENOENT")return{srcStat:z,destStat:null};throw Z}return{srcStat:z,destStat:$}}async function wv(u,D,F,$){let{srcStat:B,destStat:z}=await Ov(u,D,$);if(z){if(N8(B,z)){let Z=Ou.basename(u),q=Ou.basename(D);if(F==="move"&&Z!==q&&Z.toLowerCase()===q.toLowerCase())return{srcStat:B,destStat:z,isChangingCase:!0};throw Error("Source and destination must not be the same.")}if(B.isDirectory()&&!z.isDirectory())throw Error(`Cannot overwrite non-directory '${D}' with directory '${u}'.`);if(!B.isDirectory()&&z.isDirectory())throw Error(`Cannot overwrite directory '${D}' with non-directory '${u}'.`)}if(B.isDirectory()&&P$(u,D))throw Error(o7(u,D,F));return{srcStat:B,destStat:z}}function Nv(u,D,F,$){let{srcStat:B,destStat:z}=Av(u,D,$);if(z){if(N8(B,z)){let Z=Ou.basename(u),q=Ou.basename(D);if(F==="move"&&Z!==q&&Z.toLowerCase()===q.toLowerCase())return{srcStat:B,destStat:z,isChangingCase:!0};throw Error("Source and destination must not be the same.")}if(B.isDirectory()&&!z.isDirectory())throw Error(`Cannot overwrite non-directory '${D}' with directory '${u}'.`);if(!B.isDirectory()&&z.isDirectory())throw Error(`Cannot overwrite directory '${D}' with non-directory '${u}'.`)}if(B.isDirectory()&&P$(u,D))throw Error(o7(u,D,F));return{srcStat:B,destStat:z}}async function sQ(u,D,F,$){let B=Ou.resolve(Ou.dirname(u)),z=Ou.resolve(Ou.dirname(F));if(z===B||z===Ou.parse(z).root)return;let Z;try{Z=await G6.stat(z,{bigint:!0})}catch(q){if(q.code==="ENOENT")return;throw q}if(N8(D,Z))throw Error(o7(u,F,$));return sQ(u,D,z,$)}function rQ(u,D,F,$){let B=Ou.resolve(Ou.dirname(u)),z=Ou.resolve(Ou.dirname(F));if(z===B||z===Ou.parse(z).root)return;let Z;try{Z=G6.statSync(z,{bigint:!0})}catch(q){if(q.code==="ENOENT")return;throw q}if(N8(D,Z))throw Error(o7(u,F,$));return rQ(u,D,z,$)}function N8(u,D){return D.ino!==void 0&&D.dev!==void 0&&D.ino===u.ino&&D.dev===u.dev}function P$(u,D){let F=Ou.resolve(u).split(Ou.sep).filter((B)=>B),$=Ou.resolve(D).split(Ou.sep).filter((B)=>B);return F.every((B,z)=>$[z]===B)}function o7(u,D,F){return`Cannot ${F} '${u}' to a subdirectory of itself, '${D}'.`}aQ.exports={checkPaths:oQ(wv),checkPathsSync:Nv,checkParentPaths:oQ(sQ),checkParentPathsSync:rQ,isSrcSubdir:P$,areIdentical:N8}});var eQ=V((w20,tQ)=>{async function jv(u,D){let F=[];for await(let $ of u)F.push(D($).then(()=>null,(B)=>B??Error("unknown error")));await Promise.all(F.map(($)=>$.then((B)=>{if(B!==null)throw B})))}tQ.exports={asyncIteratorConcurrentProcess:jv}});var BW=V((N20,$W)=>{var Eu=yu(),j8=o("path"),{mkdirs:Iv}=TD(),{pathExists:Ev}=b1(),{utimesMillis:Pv}=E$(),I8=IF(),{asyncIteratorConcurrentProcess:Cv}=eQ();async function _v(u,D,F={}){if(typeof F==="function")F={filter:F};if(F.clobber="clobber"in F?!!F.clobber:!0,F.overwrite="overwrite"in F?!!F.overwrite:F.clobber,F.preserveTimestamps&&process.arch==="ia32")process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
30
|
+
|
|
31
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001");let{srcStat:$,destStat:B}=await I8.checkPaths(u,D,"copy",F);if(await I8.checkParentPaths(u,$,D,"copy"),!await DW(u,D,F))return;let Z=j8.dirname(D);if(!await Ev(Z))await Iv(Z);await FW(B,u,D,F)}async function DW(u,D,F){if(!F.filter)return!0;return F.filter(u,D)}async function FW(u,D,F,$){let z=await($.dereference?Eu.stat:Eu.lstat)(D);if(z.isDirectory())return Sv(z,u,D,F,$);if(z.isFile()||z.isCharacterDevice()||z.isBlockDevice())return Uv(z,u,D,F,$);if(z.isSymbolicLink())return Tv(u,D,F,$);if(z.isSocket())throw Error(`Cannot copy a socket file: ${D}`);if(z.isFIFO())throw Error(`Cannot copy a FIFO pipe: ${D}`);throw Error(`Unknown file: ${D}`)}async function Uv(u,D,F,$,B){if(!D)return uW(u,F,$,B);if(B.overwrite)return await Eu.unlink($),uW(u,F,$,B);if(B.errorOnExist)throw Error(`'${$}' already exists`)}async function uW(u,D,F,$){if(await Eu.copyFile(D,F),$.preserveTimestamps){if(iv(u.mode))await vv(F,u.mode);let B=await Eu.stat(D);await Pv(F,B.atime,B.mtime)}return Eu.chmod(F,u.mode)}function iv(u){return(u&128)===0}function vv(u,D){return Eu.chmod(u,D|128)}async function Sv(u,D,F,$,B){if(!D)await Eu.mkdir($);if(await Cv(await Eu.opendir(F),async(z)=>{let Z=j8.join(F,z.name),q=j8.join($,z.name);if(await DW(Z,q,B)){let{destStat:Q}=await I8.checkPaths(Z,q,"copy",B);await FW(Q,Z,q,B)}}),!D)await Eu.chmod($,u.mode)}async function Tv(u,D,F,$){let B=await Eu.readlink(D);if($.dereference)B=j8.resolve(process.cwd(),B);if(!u)return Eu.symlink(B,F);let z=null;try{z=await Eu.readlink(F)}catch(Z){if(Z.code==="EINVAL"||Z.code==="UNKNOWN")return Eu.symlink(B,F);throw Z}if($.dereference)z=j8.resolve(process.cwd(),z);if(B!==z){if(I8.isSrcSubdir(B,z))throw Error(`Cannot copy '${B}' to a subdirectory of itself, '${z}'.`);if(I8.isSrcSubdir(z,B))throw Error(`Cannot overwrite '${z}' with '${B}'.`)}return await Eu.unlink(F),Eu.symlink(B,F)}$W.exports=_v});var QW=V((j20,XW)=>{var bu=Y6(),E8=o("path"),yv=TD().mkdirsSync,bv=E$().utimesMillisSync,P8=IF();function Rv(u,D,F){if(typeof F==="function")F={filter:F};if(F=F||{},F.clobber="clobber"in F?!!F.clobber:!0,F.overwrite="overwrite"in F?!!F.overwrite:F.clobber,F.preserveTimestamps&&process.arch==="ia32")process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
32
|
+
|
|
33
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:$,destStat:B}=P8.checkPathsSync(u,D,"copy",F);if(P8.checkParentPathsSync(u,$,D,"copy"),F.filter&&!F.filter(u,D))return;let z=E8.dirname(D);if(!bu.existsSync(z))yv(z);return zW(B,u,D,F)}function zW(u,D,F,$){let z=($.dereference?bu.statSync:bu.lstatSync)(D);if(z.isDirectory())return lv(z,u,D,F,$);else if(z.isFile()||z.isCharacterDevice()||z.isBlockDevice())return kv(z,u,D,F,$);else if(z.isSymbolicLink())return ov(u,D,F,$);else if(z.isSocket())throw Error(`Cannot copy a socket file: ${D}`);else if(z.isFIFO())throw Error(`Cannot copy a FIFO pipe: ${D}`);throw Error(`Unknown file: ${D}`)}function kv(u,D,F,$,B){if(!D)return ZW(u,F,$,B);return hv(u,F,$,B)}function hv(u,D,F,$){if($.overwrite)return bu.unlinkSync(F),ZW(u,D,F,$);else if($.errorOnExist)throw Error(`'${F}' already exists`)}function ZW(u,D,F,$){if(bu.copyFileSync(D,F),$.preserveTimestamps)cv(u.mode,D,F);return C$(F,u.mode)}function cv(u,D,F){if(mv(u))nv(F,u);return pv(D,F)}function mv(u){return(u&128)===0}function nv(u,D){return C$(u,D|128)}function C$(u,D){return bu.chmodSync(u,D)}function pv(u,D){let F=bu.statSync(u);return bv(D,F.atime,F.mtime)}function lv(u,D,F,$,B){if(!D)return gv(u.mode,F,$,B);return qW(F,$,B)}function gv(u,D,F,$){return bu.mkdirSync(F),qW(D,F,$),C$(F,u)}function qW(u,D,F){let $=bu.opendirSync(u);try{let B;while((B=$.readSync())!==null)dv(B.name,u,D,F)}finally{$.closeSync()}}function dv(u,D,F,$){let B=E8.join(D,u),z=E8.join(F,u);if($.filter&&!$.filter(B,z))return;let{destStat:Z}=P8.checkPathsSync(B,z,"copy",$);return zW(Z,B,z,$)}function ov(u,D,F,$){let B=bu.readlinkSync(D);if($.dereference)B=E8.resolve(process.cwd(),B);if(!u)return bu.symlinkSync(B,F);else{let z;try{z=bu.readlinkSync(F)}catch(Z){if(Z.code==="EINVAL"||Z.code==="UNKNOWN")return bu.symlinkSync(B,F);throw Z}if($.dereference)z=E8.resolve(process.cwd(),z);if(B!==z){if(P8.isSrcSubdir(B,z))throw Error(`Cannot copy '${B}' to a subdirectory of itself, '${z}'.`);if(P8.isSrcSubdir(z,B))throw Error(`Cannot overwrite '${z}' with '${B}'.`)}return sv(B,F)}}function sv(u,D){return bu.unlinkSync(D),bu.symlinkSync(u,D)}XW.exports=Rv});var s7=V((I20,WW)=>{var rv=xu().fromPromise;WW.exports={copy:rv(BW()),copySync:QW()}});var C8=V((E20,JW)=>{var YW=Y6(),av=xu().fromCallback;function tv(u,D){YW.rm(u,{recursive:!0,force:!0},D)}function ev(u){YW.rmSync(u,{recursive:!0,force:!0})}JW.exports={remove:av(tv),removeSync:ev}});var xW=V((P20,MW)=>{var uS=xu().fromPromise,HW=yu(),fW=o("path"),VW=TD(),LW=C8(),GW=uS(async function(D){let F;try{F=await HW.readdir(D)}catch{return VW.mkdirs(D)}return Promise.all(F.map(($)=>LW.remove(fW.join(D,$))))});function KW(u){let D;try{D=HW.readdirSync(u)}catch{return VW.mkdirsSync(u)}D.forEach((F)=>{F=fW.join(u,F),LW.removeSync(F)})}MW.exports={emptyDirSync:KW,emptydirSync:KW,emptyDir:GW,emptydir:GW}});var NW=V((C20,wW)=>{var DS=xu().fromPromise,OW=o("path"),W1=yu(),AW=TD();async function FS(u){let D;try{D=await W1.stat(u)}catch{}if(D&&D.isFile())return;let F=OW.dirname(u),$=null;try{$=await W1.stat(F)}catch(B){if(B.code==="ENOENT"){await AW.mkdirs(F),await W1.writeFile(u,"");return}else throw B}if($.isDirectory())await W1.writeFile(u,"");else await W1.readdir(F)}function $S(u){let D;try{D=W1.statSync(u)}catch{}if(D&&D.isFile())return;let F=OW.dirname(u);try{if(!W1.statSync(F).isDirectory())W1.readdirSync(F)}catch($){if($&&$.code==="ENOENT")AW.mkdirsSync(F);else throw $}W1.writeFileSync(u,"")}wW.exports={createFile:DS(FS),createFileSync:$S}});var CW=V((_20,PW)=>{var BS=xu().fromPromise,jW=o("path"),R1=yu(),IW=TD(),{pathExists:zS}=b1(),{areIdentical:EW}=IF();async function ZS(u,D){let F;try{F=await R1.lstat(D)}catch{}let $;try{$=await R1.lstat(u)}catch(Z){throw Z.message=Z.message.replace("lstat","ensureLink"),Z}if(F&&EW($,F))return;let B=jW.dirname(D);if(!await zS(B))await IW.mkdirs(B);await R1.link(u,D)}function qS(u,D){let F;try{F=R1.lstatSync(D)}catch{}try{let z=R1.lstatSync(u);if(F&&EW(z,F))return}catch(z){throw z.message=z.message.replace("lstat","ensureLink"),z}let $=jW.dirname(D);if(R1.existsSync($))return R1.linkSync(u,D);return IW.mkdirsSync($),R1.linkSync(u,D)}PW.exports={createLink:BS(ZS),createLinkSync:qS}});var UW=V((U20,_W)=>{var k1=o("path"),_8=yu(),{pathExists:XS}=b1(),QS=xu().fromPromise;async function WS(u,D){if(k1.isAbsolute(u)){try{await _8.lstat(u)}catch(z){throw z.message=z.message.replace("lstat","ensureSymlink"),z}return{toCwd:u,toDst:u}}let F=k1.dirname(D),$=k1.join(F,u);if(await XS($))return{toCwd:$,toDst:u};try{await _8.lstat(u)}catch(z){throw z.message=z.message.replace("lstat","ensureSymlink"),z}return{toCwd:u,toDst:k1.relative(F,u)}}function YS(u,D){if(k1.isAbsolute(u)){if(!_8.existsSync(u))throw Error("absolute srcpath does not exist");return{toCwd:u,toDst:u}}let F=k1.dirname(D),$=k1.join(F,u);if(_8.existsSync($))return{toCwd:$,toDst:u};if(!_8.existsSync(u))throw Error("relative srcpath does not exist");return{toCwd:u,toDst:k1.relative(F,u)}}_W.exports={symlinkPaths:QS(WS),symlinkPathsSync:YS}});var SW=V((i20,vW)=>{var iW=yu(),JS=xu().fromPromise;async function GS(u,D){if(D)return D;let F;try{F=await iW.lstat(u)}catch{return"file"}return F&&F.isDirectory()?"dir":"file"}function KS(u,D){if(D)return D;let F;try{F=iW.lstatSync(u)}catch{return"file"}return F&&F.isDirectory()?"dir":"file"}vW.exports={symlinkType:JS(GS),symlinkTypeSync:KS}});var RW=V((v20,bW)=>{var HS=xu().fromPromise,TW=o("path"),tD=yu(),{mkdirs:fS,mkdirsSync:VS}=TD(),{symlinkPaths:LS,symlinkPathsSync:MS}=UW(),{symlinkType:xS,symlinkTypeSync:OS}=SW(),{pathExists:AS}=b1(),{areIdentical:yW}=IF();async function wS(u,D,F){let $;try{$=await tD.lstat(D)}catch{}if($&&$.isSymbolicLink()){let[q,X]=await Promise.all([tD.stat(u),tD.stat(D)]);if(yW(q,X))return}let B=await LS(u,D);u=B.toDst;let z=await xS(B.toCwd,F),Z=TW.dirname(D);if(!await AS(Z))await fS(Z);return tD.symlink(u,D,z)}function NS(u,D,F){let $;try{$=tD.lstatSync(D)}catch{}if($&&$.isSymbolicLink()){let q=tD.statSync(u),X=tD.statSync(D);if(yW(q,X))return}let B=MS(u,D);u=B.toDst,F=OS(B.toCwd,F);let z=TW.dirname(D);if(tD.existsSync(z))return tD.symlinkSync(u,D,F);return VS(z),tD.symlinkSync(u,D,F)}bW.exports={createSymlink:HS(wS),createSymlinkSync:NS}});var gW=V((S20,lW)=>{var{createFile:kW,createFileSync:hW}=NW(),{createLink:cW,createLinkSync:mW}=CW(),{createSymlink:nW,createSymlinkSync:pW}=RW();lW.exports={createFile:kW,createFileSync:hW,ensureFile:kW,ensureFileSync:hW,createLink:cW,createLinkSync:mW,ensureLink:cW,ensureLinkSync:mW,createSymlink:nW,createSymlinkSync:pW,ensureSymlink:nW,ensureSymlinkSync:pW}});var r7=V((T20,dW)=>{function jS(u,{EOL:D=`
|
|
34
|
+
`,finalEOL:F=!0,replacer:$=null,spaces:B}={}){let z=F?D:"";return JSON.stringify(u,$,B).replace(/\n/g,D)+z}function IS(u){if(Buffer.isBuffer(u))u=u.toString("utf8");return u.replace(/^\uFEFF/,"")}dW.exports={stringify:jS,stripBom:IS}});var aW=V((y20,rW)=>{var K6;try{K6=Y6()}catch(u){K6=o("fs")}var a7=xu(),{stringify:oW,stripBom:sW}=r7();async function ES(u,D={}){if(typeof D==="string")D={encoding:D};let F=D.fs||K6,$="throws"in D?D.throws:!0,B=await a7.fromCallback(F.readFile)(u,D);B=sW(B);let z;try{z=JSON.parse(B,D?D.reviver:null)}catch(Z){if($)throw Z.message=`${u}: ${Z.message}`,Z;else return null}return z}var PS=a7.fromPromise(ES);function CS(u,D={}){if(typeof D==="string")D={encoding:D};let F=D.fs||K6,$="throws"in D?D.throws:!0;try{let B=F.readFileSync(u,D);return B=sW(B),JSON.parse(B,D.reviver)}catch(B){if($)throw B.message=`${u}: ${B.message}`,B;else return null}}async function _S(u,D,F={}){let $=F.fs||K6,B=oW(D,F);await a7.fromCallback($.writeFile)(u,B,F)}var US=a7.fromPromise(_S);function iS(u,D,F={}){let $=F.fs||K6,B=oW(D,F);return $.writeFileSync(u,B,F)}rW.exports={readFile:PS,readFileSync:CS,writeFile:US,writeFileSync:iS}});var eW=V((b20,tW)=>{var t7=aW();tW.exports={readJson:t7.readFile,readJsonSync:t7.readFileSync,writeJson:t7.writeFile,writeJsonSync:t7.writeFileSync}});var e7=V((R20,FY)=>{var vS=xu().fromPromise,_$=yu(),uY=o("path"),DY=TD(),SS=b1().pathExists;async function TS(u,D,F="utf-8"){let $=uY.dirname(u);if(!await SS($))await DY.mkdirs($);return _$.writeFile(u,D,F)}function yS(u,...D){let F=uY.dirname(u);if(!_$.existsSync(F))DY.mkdirsSync(F);_$.writeFileSync(u,...D)}FY.exports={outputFile:vS(TS),outputFileSync:yS}});var BY=V((k20,$Y)=>{var{stringify:bS}=r7(),{outputFile:RS}=e7();async function kS(u,D,F={}){let $=bS(D,F);await RS(u,$,F)}$Y.exports=kS});var ZY=V((h20,zY)=>{var{stringify:hS}=r7(),{outputFileSync:cS}=e7();function mS(u,D,F){let $=hS(D,F);cS(u,$,F)}zY.exports=mS});var XY=V((c20,qY)=>{var nS=xu().fromPromise,Ru=eW();Ru.outputJson=nS(BY());Ru.outputJsonSync=ZY();Ru.outputJSON=Ru.outputJson;Ru.outputJSONSync=Ru.outputJsonSync;Ru.writeJSON=Ru.writeJson;Ru.writeJSONSync=Ru.writeJsonSync;Ru.readJSON=Ru.readJson;Ru.readJSONSync=Ru.readJsonSync;qY.exports=Ru});var GY=V((m20,JY)=>{var pS=yu(),QY=o("path"),{copy:lS}=s7(),{remove:YY}=C8(),{mkdirp:gS}=TD(),{pathExists:dS}=b1(),WY=IF();async function oS(u,D,F={}){let $=F.overwrite||F.clobber||!1,{srcStat:B,isChangingCase:z=!1}=await WY.checkPaths(u,D,"move",F);await WY.checkParentPaths(u,B,D,"move");let Z=QY.dirname(D);if(QY.parse(Z).root!==Z)await gS(Z);return sS(u,D,$,z)}async function sS(u,D,F,$){if(!$){if(F)await YY(D);else if(await dS(D))throw Error("dest already exists.")}try{await pS.rename(u,D)}catch(B){if(B.code!=="EXDEV")throw B;await rS(u,D,F)}}async function rS(u,D,F){return await lS(u,D,{overwrite:F,errorOnExist:!0,preserveTimestamps:!0}),YY(u)}JY.exports=oS});var LY=V((n20,VY)=>{var HY=Y6(),i$=o("path"),aS=s7().copySync,fY=C8().removeSync,tS=TD().mkdirpSync,KY=IF();function eS(u,D,F){F=F||{};let $=F.overwrite||F.clobber||!1,{srcStat:B,isChangingCase:z=!1}=KY.checkPathsSync(u,D,"move",F);if(KY.checkParentPathsSync(u,B,D,"move"),!uT(D))tS(i$.dirname(D));return DT(u,D,$,z)}function uT(u){let D=i$.dirname(u);return i$.parse(D).root===D}function DT(u,D,F,$){if($)return U$(u,D,F);if(F)return fY(D),U$(u,D,F);if(HY.existsSync(D))throw Error("dest already exists.");return U$(u,D,F)}function U$(u,D,F){try{HY.renameSync(u,D)}catch($){if($.code!=="EXDEV")throw $;return FT(u,D,F)}}function FT(u,D,F){return aS(u,D,{overwrite:F,errorOnExist:!0,preserveTimestamps:!0}),fY(u)}VY.exports=eS});var xY=V((p20,MY)=>{var $T=xu().fromPromise;MY.exports={move:$T(GY()),moveSync:LY()}});var du=V((l20,OY)=>{OY.exports={...yu(),...s7(),...xW(),...gW(),...XY(),...TD(),...xY(),...e7(),...b1(),...C8()}});var PF=V((s20,WJ)=>{var jb=["h","min","s","ms","μs","ns"],Ib=["hour","minute","second","millisecond","microsecond","nanosecond"],QJ=[3600,60,1,1e6,1000,1];WJ.exports=function(u,D){var F,$,B,z,Z,q,X,Q,W,Y;if(F=!1,$=!1,D)F=D.verbose||!1,$=D.precise||!1;if(!Array.isArray(u)||u.length!==2)return"";if(typeof u[0]!=="number"||typeof u[1]!=="number")return"";if(u[1]<0)Y=u[0]+u[1]/1e9,u[0]=parseInt(Y),u[1]=parseFloat((Y%1).toPrecision(9))*1e9;W="";for(B=0;B<6;B++){if(z=B<3?0:1,Z=u[z],B!==3&&B!==0)Z=Z%QJ[B-1];if(B===2)Z+=u[1]/1e9;if(q=Z/QJ[B],q>=1){if(F)q=Math.floor(q);if(!$)X=q>=10?0:2,Q=q.toFixed(X);else Q=q.toString();if(Q.indexOf(".")>-1&&Q[Q.length-1]==="0")Q=Q.replace(/\.?0+$/,"");if(W)W+=" ";if(W+=Q,F){if(W+=" "+Ib[B],Q!=="1")W+="s"}else W+=" "+jb[B];if(!F)break}}return W}});var YJ=V((r20,Eb)=>{Eb.exports={name:"dotenv",version:"17.3.1",description:"Loads environment variables from .env file",main:"lib/main.js",types:"lib/main.d.ts",exports:{".":{types:"./lib/main.d.ts",require:"./lib/main.js",default:"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},scripts:{"dts-check":"tsc --project tests/types/tsconfig.json",lint:"standard",pretest:"npm run lint && npm run dts-check",test:"tap run tests/**/*.js --allow-empty-coverage --disable-coverage --timeout=60000","test:coverage":"tap run tests/**/*.js --show-full-coverage --timeout=60000 --coverage-report=text --coverage-report=lcov",prerelease:"npm test",release:"standard-version"},repository:{type:"git",url:"git://github.com/motdotla/dotenv.git"},homepage:"https://github.com/motdotla/dotenv#readme",funding:"https://dotenvx.com",keywords:["dotenv","env",".env","environment","variables","config","settings"],readmeFilename:"README.md",license:"BSD-2-Clause",devDependencies:{"@types/node":"^18.11.3",decache:"^4.6.2",sinon:"^14.0.1",standard:"^17.0.0","standard-version":"^9.5.0",tap:"^19.2.0",typescript:"^4.8.4"},engines:{node:">=12"},browser:{fs:!1}}});var A6=V((a20,G1)=>{var o$=o("fs"),X9=o("path"),Pb=o("os"),Cb=o("crypto"),_b=YJ(),s$=_b.version,JJ=["\uD83D\uDD10 encrypt with Dotenvx: https://dotenvx.com","\uD83D\uDD10 prevent committing .env to code: https://dotenvx.com/precommit","\uD83D\uDD10 prevent building .env in docker: https://dotenvx.com/prebuild","\uD83E\uDD16 agentic secret storage: https://dotenvx.com/as2","⚡️ secrets for agents: https://dotenvx.com/as2","\uD83D\uDEE1️ auth for agents: https://vestauth.com","\uD83D\uDEE0️ run anywhere with `dotenvx run -- yourcommand`","⚙️ specify custom .env file path with { path: '/custom/path/.env' }","⚙️ enable debug logging with { debug: true }","⚙️ override existing env vars with { override: true }","⚙️ suppress all logs with { quiet: true }","⚙️ write to custom object with { processEnv: myObject }","⚙️ load multiple .env files with { path: ['.env.local', '.env'] }"];function Ub(){return JJ[Math.floor(Math.random()*JJ.length)]}function O6(u){if(typeof u==="string")return!["false","0","no","off",""].includes(u.toLowerCase());return Boolean(u)}function ib(){return process.stdout.isTTY}function vb(u){return ib()?`\x1B[2m${u}\x1B[0m`:u}var Sb=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function Tb(u){let D={},F=u.toString();F=F.replace(/\r\n?/mg,`
|
|
35
|
+
`);let $;while(($=Sb.exec(F))!=null){let B=$[1],z=$[2]||"";z=z.trim();let Z=z[0];if(z=z.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),Z==='"')z=z.replace(/\\n/g,`
|
|
36
|
+
`),z=z.replace(/\\r/g,"\r");D[B]=z}return D}function yb(u){u=u||{};let D=fJ(u);u.path=D;let F=fu.configDotenv(u);if(!F.parsed){let Z=Error(`MISSING_DATA: Cannot parse ${D} for an unknown reason`);throw Z.code="MISSING_DATA",Z}let $=HJ(u).split(","),B=$.length,z;for(let Z=0;Z<B;Z++)try{let q=$[Z].trim(),X=Rb(F,q);z=fu.decrypt(X.ciphertext,X.key);break}catch(q){if(Z+1>=B)throw q}return fu.parse(z)}function bb(u){console.error(`[dotenv@${s$}][WARN] ${u}`)}function y8(u){console.log(`[dotenv@${s$}][DEBUG] ${u}`)}function KJ(u){console.log(`[dotenv@${s$}] ${u}`)}function HJ(u){if(u&&u.DOTENV_KEY&&u.DOTENV_KEY.length>0)return u.DOTENV_KEY;if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0)return process.env.DOTENV_KEY;return""}function Rb(u,D){let F;try{F=new URL(D)}catch(q){if(q.code==="ERR_INVALID_URL"){let X=Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw X.code="INVALID_DOTENV_KEY",X}throw q}let $=F.password;if(!$){let q=Error("INVALID_DOTENV_KEY: Missing key part");throw q.code="INVALID_DOTENV_KEY",q}let B=F.searchParams.get("environment");if(!B){let q=Error("INVALID_DOTENV_KEY: Missing environment part");throw q.code="INVALID_DOTENV_KEY",q}let z=`DOTENV_VAULT_${B.toUpperCase()}`,Z=u.parsed[z];if(!Z){let q=Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${z} in your .env.vault file.`);throw q.code="NOT_FOUND_DOTENV_ENVIRONMENT",q}return{ciphertext:Z,key:$}}function fJ(u){let D=null;if(u&&u.path&&u.path.length>0)if(Array.isArray(u.path)){for(let F of u.path)if(o$.existsSync(F))D=F.endsWith(".vault")?F:`${F}.vault`}else D=u.path.endsWith(".vault")?u.path:`${u.path}.vault`;else D=X9.resolve(process.cwd(),".env.vault");if(o$.existsSync(D))return D;return null}function GJ(u){return u[0]==="~"?X9.join(Pb.homedir(),u.slice(1)):u}function kb(u){let D=O6(process.env.DOTENV_CONFIG_DEBUG||u&&u.debug),F=O6(process.env.DOTENV_CONFIG_QUIET||u&&u.quiet);if(D||!F)KJ("Loading env from encrypted .env.vault");let $=fu._parseVault(u),B=process.env;if(u&&u.processEnv!=null)B=u.processEnv;return fu.populate(B,$,u),{parsed:$}}function hb(u){let D=X9.resolve(process.cwd(),".env"),F="utf8",$=process.env;if(u&&u.processEnv!=null)$=u.processEnv;let B=O6($.DOTENV_CONFIG_DEBUG||u&&u.debug),z=O6($.DOTENV_CONFIG_QUIET||u&&u.quiet);if(u&&u.encoding)F=u.encoding;else if(B)y8("No encoding is specified. UTF-8 is used by default");let Z=[D];if(u&&u.path)if(!Array.isArray(u.path))Z=[GJ(u.path)];else{Z=[];for(let W of u.path)Z.push(GJ(W))}let q,X={};for(let W of Z)try{let Y=fu.parse(o$.readFileSync(W,{encoding:F}));fu.populate(X,Y,u)}catch(Y){if(B)y8(`Failed to load ${W} ${Y.message}`);q=Y}let Q=fu.populate($,X,u);if(B=O6($.DOTENV_CONFIG_DEBUG||B),z=O6($.DOTENV_CONFIG_QUIET||z),B||!z){let W=Object.keys(Q).length,Y=[];for(let J of Z)try{let G=X9.relative(process.cwd(),J);Y.push(G)}catch(G){if(B)y8(`Failed to load ${J} ${G.message}`);q=G}KJ(`injecting env (${W}) from ${Y.join(",")} ${vb(`-- tip: ${Ub()}`)}`)}if(q)return{parsed:X,error:q};else return{parsed:X}}function cb(u){if(HJ(u).length===0)return fu.configDotenv(u);let D=fJ(u);if(!D)return bb(`You set DOTENV_KEY but you are missing a .env.vault file at ${D}. Did you forget to build it?`),fu.configDotenv(u);return fu._configVault(u)}function mb(u,D){let F=Buffer.from(D.slice(-64),"hex"),$=Buffer.from(u,"base64"),B=$.subarray(0,12),z=$.subarray(-16);$=$.subarray(12,-16);try{let Z=Cb.createDecipheriv("aes-256-gcm",F,B);return Z.setAuthTag(z),`${Z.update($)}${Z.final()}`}catch(Z){let q=Z instanceof RangeError,X=Z.message==="Invalid key length",Q=Z.message==="Unsupported state or unable to authenticate data";if(q||X){let W=Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw W.code="INVALID_DOTENV_KEY",W}else if(Q){let W=Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw W.code="DECRYPTION_FAILED",W}else throw Z}}function nb(u,D,F={}){let $=Boolean(F&&F.debug),B=Boolean(F&&F.override),z={};if(typeof D!=="object"){let Z=Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw Z.code="OBJECT_REQUIRED",Z}for(let Z of Object.keys(D))if(Object.prototype.hasOwnProperty.call(u,Z)){if(B===!0)u[Z]=D[Z],z[Z]=D[Z];if($)if(B===!0)y8(`"${Z}" is already defined and WAS overwritten`);else y8(`"${Z}" is already defined and was NOT overwritten`)}else u[Z]=D[Z],z[Z]=D[Z];return z}var fu={configDotenv:hb,_configVault:kb,_parseVault:yb,config:cb,decrypt:mb,parse:Tb,populate:nb};a20.configDotenv=fu.configDotenv;a20._configVault=fu._configVault;a20._parseVault=fu._parseVault;a20.config=fu.config;a20.decrypt=fu.decrypt;a20.parse=fu.parse;a20.populate=fu.populate;G1.exports=fu});var r$=V((t20,MJ)=>{var{Transform:ab}=o("stream"),{StringDecoder:tb}=o("string_decoder"),p1=Symbol("last"),Q9=Symbol("decoder");function eb(u,D,F){let $;if(this.overflow){if($=this[Q9].write(u).split(this.matcher),$.length===1)return F();$.shift(),this.overflow=!1}else this[p1]+=this[Q9].write(u),$=this[p1].split(this.matcher);this[p1]=$.pop();for(let B=0;B<$.length;B++)try{LJ(this,this.mapper($[B]))}catch(z){return F(z)}if(this.overflow=this[p1].length>this.maxLength,this.overflow&&!this.skipOverflow){F(Error("maximum buffer reached"));return}F()}function uR(u){if(this[p1]+=this[Q9].end(),this[p1])try{LJ(this,this.mapper(this[p1]))}catch(D){return u(D)}u()}function LJ(u,D){if(D!==void 0)u.push(D)}function VJ(u){return u}function DR(u,D,F){switch(u=u||/\r?\n/,D=D||VJ,F=F||{},arguments.length){case 1:if(typeof u==="function")D=u,u=/\r?\n/;else if(typeof u==="object"&&!(u instanceof RegExp)&&!u[Symbol.split])F=u,u=/\r?\n/;break;case 2:if(typeof u==="function")F=D,D=u,u=/\r?\n/;else if(typeof D==="object")F=D,D=VJ}F=Object.assign({},F),F.autoDestroy=!0,F.transform=eb,F.flush=uR,F.readableObjectMode=!0;let $=new ab(F);return $[p1]="",$[Q9]=new tb("utf8"),$.matcher=u,$.mapper=D,$.maxLength=F.maxLength,$.skipOverflow=F.skipOverflow||!1,$.overflow=!1,$._destroy=function(B,z){this._writableState.errorEmitted=!1,z(B)},$}MJ.exports=DR});var tJ=V((aJ)=>{Object.defineProperty(aJ,"__esModule",{value:!0});var rJ=".",FR={traversalType:"depth-first",maxNodes:Number.POSITIVE_INFINITY,cycleHandling:!0,maxDepth:Number.POSITIVE_INFINITY,haltOnTruthy:!1,pathSeparator:rJ},e$=function(){function u(){this.head=void 0,this.tail=void 0}var D=u.prototype;return D.enqueue=function($){if(this.tail)this.tail=this.tail.next={value:$};else this.head=this.tail={value:$}},D.dequeue=function(){var $=this.head.value;if(this.head=this.head.next,!this.head)this.tail=this.head;return $},D.isEmpty=function(){return!this.head},D.reset=function(){this.head=this.tail=void 0},u}(),u2=function(){function u(F){this.queue=void 0,this.queue=F}var D=u.prototype;return D.push=function($){this.queue.enqueue($)},D.pop=function(){return this.queue.dequeue()},D.isEmpty=function(){return this.queue.isEmpty()},D.reset=function(){return this.queue.reset()},u}(),D2=function(){function u(){this.tail=void 0}var D=u.prototype;return D.push=function($){this.tail={value:$,prev:this.tail}},D.pop=function(){var $=this.tail;return this.tail=this.tail.prev,$.value},D.isEmpty=function(){return!this.tail},D.reset=function(){this.tail=void 0},u}(),$R=function(D,F,$){if(!(D instanceof Object))throw Error("First argument must be an object");var B=Object.assign({},FR,$);B.disablePathTracking=typeof B.pathSeparator!=="string";var z;if(B.traversalType==="depth-first")z=new D2;else z=new u2(new e$);var Z={visitedNodes:new WeakSet,depth:0};if(!B.disablePathTracking)Z.nodePath=null;z.push({parent:null,key:null,value:D,meta:Z}),BR(F,z,B)},BR=function(D,F,$){var B;if($.traversalType==="depth-first")B=new D2;else B=new u2(new e$);var{maxNodes:z,cycleHandling:Z,maxDepth:q,haltOnTruthy:X,pathSeparator:Q}=$,W=0;while(!F.isEmpty()&&z>W){var Y=F.pop(),J=Y.value,G=Y.meta,K=G.visitedNodes,H=J instanceof Object,f=Z&&H&&K.has(J);if(f)continue;if(D(Y)&&X)break;if(W++,H){K.add(J);var{depth:x,nodePath:L}=G,A=x+1;if(A>q)continue;B.reset();var C=Object.keys(J);for(var I=0;I<C.length;I++){var _=C[I],R={visitedNodes:K,depth:A},k=void 0;if(!$.disablePathTracking){if(!L)k=_;else k=""+L+Q+_;R.nodePath=k}B.push({value:J[_],meta:R,key:_,parent:J})}while(!B.isEmpty())F.push(B.pop())}}};function zR(u,D,F){if(F===void 0)F=rJ;var $=u,B=D.split(F),z=0,Z=B[z];while($&&Z)$=$[Z],Z=B[++z];return $}aJ._Queue=e$;aJ._QueueToStackAdapter=u2;aJ._Stack=D2;aJ.getNodeByPath=zR;aJ.traverse=$R});var qG=V((ZB0,ZG)=>{/*!
|
|
37
|
+
* checksum
|
|
38
|
+
* Copyright(c) 2013 Daniel D. Shaw <dshaw@dshaw.com>
|
|
39
|
+
* MIT Licensed
|
|
40
|
+
*/var BG=o("crypto"),$G=o("fs");ZG.exports=zG;zG.file=AR;function zG(u,D){if(D||(D={}),!D.algorithm)D.algorithm="sha1";var F=BG.createHash(D.algorithm);if(!F.write)return F.update(u),F.digest("hex");else return F.write(u),F.digest("hex")}function AR(u,D,F){if(typeof D==="function")F=D,D={};if(D||(D={}),!D.algorithm)D.algorithm="sha1";$G.stat(u,function($,B){if(!$&&!B.isFile())$=Error("Not a file");if($)return F($);var z=BG.createHash(D.algorithm),Z=$G.createReadStream(u);if(!z.write)Z.on("data",function(q){z.update(q)}),Z.on("end",function(){F(null,z.digest("hex"))});else z.setEncoding("hex"),Z.pipe(z,{end:!1}),Z.on("end",function(){z.end(),F(null,z.read())})})}});var QG=V((XG)=>{Object.defineProperty(XG,"__esModule",{value:!0});function wR(u){var D=4,F=u.length,$=F%D;if(!$)return u;var B=F,z=D-$,Z=F+z,q=Buffer.alloc(Z);q.write(u);while(z--)q.write("=",B++);return q.toString()}XG.default=wR});var JG=V((YG)=>{Object.defineProperty(YG,"__esModule",{value:!0});var jR=QG();function WG(u,D){if(D===void 0)D="utf8";if(Buffer.isBuffer(u))return B2(u.toString("base64"));return B2(Buffer.from(u,D).toString("base64"))}function IR(u,D){if(D===void 0)D="utf8";return Buffer.from(z2(u),"base64").toString(D)}function z2(u){return u=u.toString(),jR.default(u).replace(/\-/g,"+").replace(/_/g,"/")}function B2(u){return u.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function ER(u){return Buffer.from(z2(u),"base64")}var N6=WG;N6.encode=WG;N6.decode=IR;N6.toBase64=z2;N6.fromBase64=B2;N6.toBuffer=ER;YG.default=N6});var GG=V((QB0,H9)=>{H9.exports=JG().default;H9.exports.default=H9.exports});var LG=V((WB0,VG)=>{VG.exports=fG;fG.sync=_R;var KG=o("fs");function CR(u,D){var F=D.pathExt!==void 0?D.pathExt:process.env.PATHEXT;if(!F)return!0;if(F=F.split(";"),F.indexOf("")!==-1)return!0;for(var $=0;$<F.length;$++){var B=F[$].toLowerCase();if(B&&u.substr(-B.length).toLowerCase()===B)return!0}return!1}function HG(u,D,F){if(!u.isSymbolicLink()&&!u.isFile())return!1;return CR(D,F)}function fG(u,D,F){KG.stat(u,function($,B){F($,$?!1:HG(B,u,D))})}function _R(u,D){return HG(KG.statSync(u),u,D)}});var wG=V((YB0,AG)=>{AG.exports=xG;xG.sync=UR;var MG=o("fs");function xG(u,D,F){MG.stat(u,function($,B){F($,$?!1:OG(B,D))})}function UR(u,D){return OG(MG.statSync(u),D)}function OG(u,D){return u.isFile()&&iR(u,D)}function iR(u,D){var{mode:F,uid:$,gid:B}=u,z=D.uid!==void 0?D.uid:process.getuid&&process.getuid(),Z=D.gid!==void 0?D.gid:process.getgid&&process.getgid(),q=parseInt("100",8),X=parseInt("010",8),Q=parseInt("001",8),W=q|X,Y=F&Q||F&X&&B===Z||F&q&&$===z||F&W&&z===0;return Y}});var jG=V((GB0,NG)=>{var JB0=o("fs"),f9;if(process.platform==="win32"||global.TESTING_WINDOWS)f9=LG();else f9=wG();NG.exports=Z2;Z2.sync=vR;function Z2(u,D,F){if(typeof D==="function")F=D,D={};if(!F){if(typeof Promise!=="function")throw TypeError("callback not provided");return new Promise(function($,B){Z2(u,D||{},function(z,Z){if(z)B(z);else $(Z)})})}f9(u,D||{},function($,B){if($){if($.code==="EACCES"||D&&D.ignoreErrors)$=null,B=!1}F($,B)})}function vR(u,D){try{return f9.sync(u,D||{})}catch(F){if(D&&D.ignoreErrors||F.code==="EACCES")return!1;else throw F}}});var iG=V((KB0,UG)=>{var j6=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",IG=o("path"),SR=j6?";":":",EG=jG(),PG=(u)=>Object.assign(Error(`not found: ${u}`),{code:"ENOENT"}),CG=(u,D)=>{let F=D.colon||SR,$=u.match(/\//)||j6&&u.match(/\\/)?[""]:[...j6?[process.cwd()]:[],...(D.path||process.env.PATH||"").split(F)],B=j6?D.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",z=j6?B.split(F):[""];if(j6){if(u.indexOf(".")!==-1&&z[0]!=="")z.unshift("")}return{pathEnv:$,pathExt:z,pathExtExe:B}},_G=(u,D,F)=>{if(typeof D==="function")F=D,D={};if(!D)D={};let{pathEnv:$,pathExt:B,pathExtExe:z}=CG(u,D),Z=[],q=(Q)=>new Promise((W,Y)=>{if(Q===$.length)return D.all&&Z.length?W(Z):Y(PG(u));let J=$[Q],G=/^".*"$/.test(J)?J.slice(1,-1):J,K=IG.join(G,u),H=!G&&/^\.[\\\/]/.test(u)?u.slice(0,2)+K:K;W(X(H,Q,0))}),X=(Q,W,Y)=>new Promise((J,G)=>{if(Y===B.length)return J(q(W+1));let K=B[Y];EG(Q+K,{pathExt:z},(H,f)=>{if(!H&&f)if(D.all)Z.push(Q+K);else return J(Q+K);return J(X(Q,W,Y+1))})});return F?q(0).then((Q)=>F(null,Q),F):q(0)},TR=(u,D)=>{D=D||{};let{pathEnv:F,pathExt:$,pathExtExe:B}=CG(u,D),z=[];for(let Z=0;Z<F.length;Z++){let q=F[Z],X=/^".*"$/.test(q)?q.slice(1,-1):q,Q=IG.join(X,u),W=!X&&/^\.[\\\/]/.test(u)?u.slice(0,2)+Q:Q;for(let Y=0;Y<$.length;Y++){let J=W+$[Y];try{if(EG.sync(J,{pathExt:B}))if(D.all)z.push(J);else return J}catch(G){}}}if(D.all&&z.length)return z;if(D.nothrow)return null;throw PG(u)};UG.exports=_G;_G.sync=TR});var X2=V((HB0,q2)=>{var vG=(u={})=>{let D=u.env||process.env;if((u.platform||process.platform)!=="win32")return"PATH";return Object.keys(D).reverse().find(($)=>$.toUpperCase()==="PATH")||"Path"};q2.exports=vG;q2.exports.default=vG});var bG=V((fB0,yG)=>{var SG=o("path"),yR=iG(),bR=X2();function TG(u,D){let F=u.options.env||process.env,$=process.cwd(),B=u.options.cwd!=null,z=B&&process.chdir!==void 0&&!process.chdir.disabled;if(z)try{process.chdir(u.options.cwd)}catch(q){}let Z;try{Z=yR.sync(u.command,{path:F[bR({env:F})],pathExt:D?SG.delimiter:void 0})}catch(q){}finally{if(z)process.chdir($)}if(Z)Z=SG.resolve(B?u.options.cwd:"",Z);return Z}function RR(u){return TG(u)||TG(u,!0)}yG.exports=RR});var RG=V((cR,W2)=>{var Q2=/([()\][%!^"`<>&|;, *?])/g;function kR(u){return u=u.replace(Q2,"^$1"),u}function hR(u,D){if(u=`${u}`,u=u.replace(/(?=(\\+?)?)\1"/g,"$1$1\\\""),u=u.replace(/(?=(\\+?)?)\1$/,"$1$1"),u=`"${u}"`,u=u.replace(Q2,"^$1"),D)u=u.replace(Q2,"^$1");return u}cR.command=kR;cR.argument=hR});var hG=V((VB0,kG)=>{kG.exports=/^#!(.*)/});var mG=V((LB0,cG)=>{var pR=hG();cG.exports=(u="")=>{let D=u.match(pR);if(!D)return null;let[F,$]=D[0].replace(/#! ?/,"").split(" "),B=F.split("/").pop();if(B==="env")return $;return $?`${B} ${$}`:B}});var pG=V((MB0,nG)=>{var Y2=o("fs"),lR=mG();function gR(u){let F=Buffer.alloc(150),$;try{$=Y2.openSync(u,"r"),Y2.readSync($,F,0,150,0),Y2.closeSync($)}catch(B){}return lR(F.toString())}nG.exports=gR});var oG=V((xB0,dG)=>{var dR=o("path"),lG=bG(),gG=RG(),oR=pG(),sR=process.platform==="win32",rR=/\.(?:com|exe)$/i,aR=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function tR(u){u.file=lG(u);let D=u.file&&oR(u.file);if(D)return u.args.unshift(u.file),u.command=D,lG(u);return u.file}function eR(u){if(!sR)return u;let D=tR(u),F=!rR.test(D);if(u.options.forceShell||F){let $=aR.test(D);u.command=dR.normalize(u.command),u.command=gG.command(u.command),u.args=u.args.map((z)=>gG.argument(z,$));let B=[u.command].concat(u.args).join(" ");u.args=["/d","/s","/c",`"${B}"`],u.command=process.env.comspec||"cmd.exe",u.options.windowsVerbatimArguments=!0}return u}function uk(u,D,F){if(D&&!Array.isArray(D))F=D,D=null;D=D?D.slice(0):[],F=Object.assign({},F);let $={command:u,args:D,options:F,file:void 0,original:{command:u,args:D}};return F.shell?$:eR($)}dG.exports=uk});var aG=V((OB0,rG)=>{var J2=process.platform==="win32";function G2(u,D){return Object.assign(Error(`${D} ${u.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${D} ${u.command}`,path:u.command,spawnargs:u.args})}function Dk(u,D){if(!J2)return;let F=u.emit;u.emit=function($,B){if($==="exit"){let z=sG(B,D);if(z)return F.call(u,"error",z)}return F.apply(u,arguments)}}function sG(u,D){if(J2&&u===1&&!D.file)return G2(D.original,"spawn");return null}function Fk(u,D){if(J2&&u===1&&!D.file)return G2(D.original,"spawnSync");return null}rG.exports={hookChildProcess:Dk,verifyENOENT:sG,verifyENOENTSync:Fk,notFoundError:G2}});var uK=V((AB0,I6)=>{var tG=o("child_process"),K2=oG(),H2=aG();function eG(u,D,F){let $=K2(u,D,F),B=tG.spawn($.command,$.args,$.options);return H2.hookChildProcess(B,$),B}function $k(u,D,F){let $=K2(u,D,F),B=tG.spawnSync($.command,$.args,$.options);return B.error=B.error||H2.verifyENOENTSync(B.status,$),B}I6.exports=eG;I6.exports.spawn=eG;I6.exports.sync=$k;I6.exports._parse=K2;I6.exports._enoent=H2});var FK=V((wB0,DK)=>{DK.exports=(u)=>{let D=typeof u==="string"?`
|
|
41
|
+
`:`
|
|
42
|
+
`.charCodeAt(),F=typeof u==="string"?"\r":"\r".charCodeAt();if(u[u.length-1]===D)u=u.slice(0,u.length-1);if(u[u.length-1]===F)u=u.slice(0,u.length-1);return u}});var zK=V((NB0,l8)=>{var p8=o("path"),$K=X2(),BK=(u)=>{u={cwd:process.cwd(),path:process.env[$K()],execPath:process.execPath,...u};let D,F=p8.resolve(u.cwd),$=[];while(D!==F)$.push(p8.join(F,"node_modules/.bin")),D=F,F=p8.resolve(F,"..");let B=p8.resolve(u.cwd,u.execPath,"..");return $.push(B),$.concat(u.path).join(p8.delimiter)};l8.exports=BK;l8.exports.default=BK;l8.exports.env=(u)=>{u={env:process.env,...u};let D={...u.env},F=$K({env:D});return u.path=D[F],D[F]=l8.exports(u),D}});var qK=V((jB0,f2)=>{var ZK=(u,D)=>{for(let F of Reflect.ownKeys(D))Object.defineProperty(u,F,Object.getOwnPropertyDescriptor(D,F));return u};f2.exports=ZK;f2.exports.default=ZK});var QK=V((IB0,L9)=>{var Bk=qK(),V9=new WeakMap,XK=(u,D={})=>{if(typeof u!=="function")throw TypeError("Expected a function");let F,$=0,B=u.displayName||u.name||"<anonymous>",z=function(...Z){if(V9.set(z,++$),$===1)F=u.apply(this,Z),u=null;else if(D.throw===!0)throw Error(`Function \`${B}\` can only be called once`);return F};return Bk(z,u),V9.set(z,$),z};L9.exports=XK;L9.exports.default=XK;L9.exports.callCount=(u)=>{if(!V9.has(u))throw Error(`The given function \`${u.name}\` is not wrapped by the \`onetime\` package`);return V9.get(u)}});var JK=V((WK)=>{Object.defineProperty(WK,"__esModule",{value:!0});WK.SIGNALS=void 0;var zk=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];WK.SIGNALS=zk});var V2=V((HK)=>{Object.defineProperty(HK,"__esModule",{value:!0});HK.SIGRTMAX=HK.getRealtimeSignals=void 0;var Zk=function(){let u=KK-GK+1;return Array.from({length:u},qk)};HK.getRealtimeSignals=Zk;var qk=function(u,D){return{name:`SIGRT${D+1}`,number:GK+D,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},GK=34,KK=64;HK.SIGRTMAX=KK});var MK=V((VK)=>{Object.defineProperty(VK,"__esModule",{value:!0});VK.getSignals=void 0;var Qk=o("os"),Wk=JK(),Yk=V2(),Jk=function(){let u=(0,Yk.getRealtimeSignals)();return[...Wk.SIGNALS,...u].map(Gk)};VK.getSignals=Jk;var Gk=function({name:u,number:D,description:F,action:$,forced:B=!1,standard:z}){let{signals:{[u]:Z}}=Qk.constants,q=Z!==void 0;return{name:u,number:q?Z:D,description:F,supported:q,action:$,forced:B,standard:z}}});var wK=V((OK)=>{Object.defineProperty(OK,"__esModule",{value:!0});OK.signalsByNumber=OK.signalsByName=void 0;var Kk=o("os"),xK=MK(),Hk=V2(),fk=function(){return(0,xK.getSignals)().reduce(Vk,{})},Vk=function(u,{name:D,number:F,description:$,supported:B,action:z,forced:Z,standard:q}){return{...u,[D]:{name:D,number:F,description:$,supported:B,action:z,forced:Z,standard:q}}},Lk=fk();OK.signalsByName=Lk;var Mk=function(){let u=(0,xK.getSignals)(),D=Hk.SIGRTMAX+1,F=Array.from({length:D},($,B)=>xk(B,u));return Object.assign({},...F)},xk=function(u,D){let F=Ok(u,D);if(F===void 0)return{};let{name:$,description:B,supported:z,action:Z,forced:q,standard:X}=F;return{[u]:{name:$,number:u,description:B,supported:z,action:Z,forced:q,standard:X}}},Ok=function(u,D){let F=D.find(({name:$})=>Kk.constants.signals[$]===u);if(F!==void 0)return F;return D.find(($)=>$.number===u)},Ak=Mk();OK.signalsByNumber=Ak});var jK=V((UB0,NK)=>{var{signalsByName:Nk}=wK(),jk=({timedOut:u,timeout:D,errorCode:F,signal:$,signalDescription:B,exitCode:z,isCanceled:Z})=>{if(u)return`timed out after ${D} milliseconds`;if(Z)return"was canceled";if(F!==void 0)return`failed with ${F}`;if($!==void 0)return`was killed with ${$} (${B})`;if(z!==void 0)return`failed with exit code ${z}`;return"failed"},Ik=({stdout:u,stderr:D,all:F,error:$,signal:B,exitCode:z,command:Z,escapedCommand:q,timedOut:X,isCanceled:Q,killed:W,parsed:{options:{timeout:Y}}})=>{z=z===null?void 0:z,B=B===null?void 0:B;let J=B===void 0?void 0:Nk[B].description,G=$&&$.code,H=`Command ${jk({timedOut:X,timeout:Y,errorCode:G,signal:B,signalDescription:J,exitCode:z,isCanceled:Q})}: ${Z}`,f=Object.prototype.toString.call($)==="[object Error]",x=f?`${H}
|
|
43
|
+
${$.message}`:H,L=[x,D,u].filter(Boolean).join(`
|
|
44
|
+
`);if(f)$.originalMessage=$.message,$.message=L;else $=Error(L);if($.shortMessage=x,$.command=Z,$.escapedCommand=q,$.exitCode=z,$.signal=B,$.signalDescription=J,$.stdout=u,$.stderr=D,F!==void 0)$.all=F;if("bufferedData"in $)delete $.bufferedData;return $.failed=!0,$.timedOut=Boolean(X),$.isCanceled=Q,$.killed=W&&!X,$};NK.exports=Ik});var EK=V((iB0,L2)=>{var M9=["stdin","stdout","stderr"],Ek=(u)=>M9.some((D)=>u[D]!==void 0),IK=(u)=>{if(!u)return;let{stdio:D}=u;if(D===void 0)return M9.map(($)=>u[$]);if(Ek(u))throw Error(`It's not possible to provide \`stdio\` in combination with one of ${M9.map(($)=>`\`${$}\``).join(", ")}`);if(typeof D==="string")return D;if(!Array.isArray(D))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof D}\``);let F=Math.max(D.length,M9.length);return Array.from({length:F},($,B)=>D[B])};L2.exports=IK;L2.exports.node=(u)=>{let D=IK(u);if(D==="ipc")return"ipc";if(D===void 0||typeof D==="string")return[D,D,D,"ipc"];if(D.includes("ipc"))return D;return[...D,"ipc"]}});var PK=V((vB0,x9)=>{x9.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];if(process.platform!=="win32")x9.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");if(process.platform==="linux")x9.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var CK=V((SB0,P6)=>{var t0=global.process,_F=function(u){return u&&typeof u==="object"&&typeof u.removeListener==="function"&&typeof u.emit==="function"&&typeof u.reallyExit==="function"&&typeof u.listeners==="function"&&typeof u.kill==="function"&&typeof u.pid==="number"&&typeof u.on==="function"};if(!_F(t0))P6.exports=function(){return function(){}};else{if(M2=o("assert"),UF=PK(),x2=/^win/i.test(t0.platform),E6=o("events"),typeof E6!=="function")E6=E6.EventEmitter;if(t0.__signal_exit_emitter__)Vu=t0.__signal_exit_emitter__;else Vu=t0.__signal_exit_emitter__=new E6,Vu.count=0,Vu.emitted={};if(!Vu.infinite)Vu.setMaxListeners(1/0),Vu.infinite=!0;P6.exports=function(u,D){if(!_F(global.process))return function(){};if(M2.equal(typeof u,"function","a callback must be provided for exit handler"),iF===!1)O9();var F="exit";if(D&&D.alwaysLast)F="afterexit";var $=function(){if(Vu.removeListener(F,u),Vu.listeners("exit").length===0&&Vu.listeners("afterexit").length===0)g8()};return Vu.on(F,u),$},g8=function(){if(!iF||!_F(global.process))return;iF=!1,UF.forEach(function(D){try{t0.removeListener(D,d8[D])}catch(F){}}),t0.emit=o8,t0.reallyExit=A9,Vu.count-=1},P6.exports.unload=g8,g1=function(D,F,$){if(Vu.emitted[D])return;Vu.emitted[D]=!0,Vu.emit(D,F,$)},d8={},UF.forEach(function(u){d8[u]=function(){if(!_F(global.process))return;var F=t0.listeners(u);if(F.length===Vu.count){if(g8(),g1("exit",null,u),g1("afterexit",null,u),x2&&u==="SIGHUP")u="SIGINT";t0.kill(t0.pid,u)}}}),P6.exports.signals=function(){return UF},iF=!1,O9=function(){if(iF||!_F(global.process))return;iF=!0,Vu.count+=1,UF=UF.filter(function(D){try{return t0.on(D,d8[D]),!0}catch(F){return!1}}),t0.emit=A2,t0.reallyExit=O2},P6.exports.load=O9,A9=t0.reallyExit,O2=function(D){if(!_F(global.process))return;t0.exitCode=D||0,g1("exit",t0.exitCode,null),g1("afterexit",t0.exitCode,null),A9.call(t0,t0.exitCode)},o8=t0.emit,A2=function(D,F){if(D==="exit"&&_F(global.process)){if(F!==void 0)t0.exitCode=F;var $=o8.apply(this,arguments);return g1("exit",t0.exitCode,null),g1("afterexit",t0.exitCode,null),$}else return o8.apply(this,arguments)}}var M2,UF,x2,E6,Vu,g8,g1,d8,iF,O9,A9,O2,o8,A2});var UK=V((TB0,_K)=>{var Pk=o("os"),Ck=CK(),_k=(u,D="SIGTERM",F={})=>{let $=u(D);return Uk(u,D,F,$),$},Uk=(u,D,F,$)=>{if(!ik(D,F,$))return;let B=Sk(F),z=setTimeout(()=>{u("SIGKILL")},B);if(z.unref)z.unref()},ik=(u,{forceKillAfterTimeout:D},F)=>{return vk(u)&&D!==!1&&F},vk=(u)=>{return u===Pk.constants.signals.SIGTERM||typeof u==="string"&&u.toUpperCase()==="SIGTERM"},Sk=({forceKillAfterTimeout:u=!0})=>{if(u===!0)return 5000;if(!Number.isFinite(u)||u<0)throw TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${u}\` (${typeof u})`);return u},Tk=(u,D)=>{if(u.kill())D.isCanceled=!0},yk=(u,D,F)=>{u.kill(D),F(Object.assign(Error("Timed out"),{timedOut:!0,signal:D}))},bk=(u,{timeout:D,killSignal:F="SIGTERM"},$)=>{if(D===0||D===void 0)return $;let B,z=new Promise((q,X)=>{B=setTimeout(()=>{yk(u,F,X)},D)}),Z=$.finally(()=>{clearTimeout(B)});return Promise.race([z,Z])},Rk=({timeout:u})=>{if(u!==void 0&&(!Number.isFinite(u)||u<0))throw TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${u}\` (${typeof u})`)},kk=async(u,{cleanup:D,detached:F},$)=>{if(!D||F)return $;let B=Ck(()=>{u.kill()});return $.finally(()=>{B()})};_K.exports={spawnedKill:_k,spawnedCancel:Tk,setupTimeout:bk,validateTimeout:Rk,setExitHandler:kk}});var vK=V((yB0,iK)=>{var D1=(u)=>u!==null&&typeof u==="object"&&typeof u.pipe==="function";D1.writable=(u)=>D1(u)&&u.writable!==!1&&typeof u._write==="function"&&typeof u._writableState==="object";D1.readable=(u)=>D1(u)&&u.readable!==!1&&typeof u._read==="function"&&typeof u._readableState==="object";D1.duplex=(u)=>D1.writable(u)&&D1.readable(u);D1.transform=(u)=>D1.duplex(u)&&typeof u._transform==="function";iK.exports=D1});var TK=V((bB0,SK)=>{var{PassThrough:hk}=o("stream");SK.exports=(u)=>{u={...u};let{array:D}=u,{encoding:F}=u,$=F==="buffer",B=!1;if(D)B=!(F||$);else F=F||"utf8";if($)F=null;let z=new hk({objectMode:B});if(F)z.setEncoding(F);let Z=0,q=[];return z.on("data",(X)=>{if(q.push(X),B)Z=q.length;else Z+=X.length}),z.getBufferedValue=()=>{if(D)return q;return $?Buffer.concat(q,Z):q.join("")},z.getBufferedLength=()=>Z,z}});var yK=V((RB0,s8)=>{var{constants:ck}=o("buffer"),mk=o("stream"),{promisify:nk}=o("util"),pk=TK(),lk=nk(mk.pipeline);class w2 extends Error{constructor(){super("maxBuffer exceeded");this.name="MaxBufferError"}}async function N2(u,D){if(!u)throw Error("Expected a stream");D={maxBuffer:1/0,...D};let{maxBuffer:F}=D,$=pk(D);return await new Promise((B,z)=>{let Z=(q)=>{if(q&&$.getBufferedLength()<=ck.MAX_LENGTH)q.bufferedData=$.getBufferedValue();z(q)};(async()=>{try{await lk(u,$),B()}catch(q){Z(q)}})(),$.on("data",()=>{if($.getBufferedLength()>F)Z(new w2)})}),$.getBufferedValue()}s8.exports=N2;s8.exports.buffer=(u,D)=>N2(u,{...D,encoding:"buffer"});s8.exports.array=(u,D)=>N2(u,{...D,array:!0});s8.exports.MaxBufferError=w2});var RK=V((kB0,bK)=>{var{PassThrough:gk}=o("stream");bK.exports=function(){var u=[],D=new gk({objectMode:!0});return D.setMaxListeners(0),D.add=F,D.isEmpty=$,D.on("unpipe",B),Array.prototype.slice.call(arguments).forEach(F),D;function F(z){if(Array.isArray(z))return z.forEach(F),this;return u.push(z),z.once("end",B.bind(null,z)),z.once("error",D.emit.bind(D,"error")),z.pipe(D,{end:!1}),this}function $(){return u.length==0}function B(z){if(u=u.filter(function(Z){return Z!==z}),!u.length&&D.readable)D.end()}}});var mK=V((hB0,cK)=>{var hK=vK(),kK=yK(),dk=RK(),ok=(u,D)=>{if(D===void 0||u.stdin===void 0)return;if(hK(D))D.pipe(u.stdin);else u.stdin.end(D)},sk=(u,{all:D})=>{if(!D||!u.stdout&&!u.stderr)return;let F=dk();if(u.stdout)F.add(u.stdout);if(u.stderr)F.add(u.stderr);return F},j2=async(u,D)=>{if(!u)return;u.destroy();try{return await D}catch(F){return F.bufferedData}},I2=(u,{encoding:D,buffer:F,maxBuffer:$})=>{if(!u||!F)return;if(D)return kK(u,{encoding:D,maxBuffer:$});return kK.buffer(u,{maxBuffer:$})},rk=async({stdout:u,stderr:D,all:F},{encoding:$,buffer:B,maxBuffer:z},Z)=>{let q=I2(u,{encoding:$,buffer:B,maxBuffer:z}),X=I2(D,{encoding:$,buffer:B,maxBuffer:z}),Q=I2(F,{encoding:$,buffer:B,maxBuffer:z*2});try{return await Promise.all([Z,q,X,Q])}catch(W){return Promise.all([{error:W,signal:W.signal,timedOut:W.timedOut},j2(u,q),j2(D,X),j2(F,Q)])}},ak=({input:u})=>{if(hK(u))throw TypeError("The `input` option cannot be a stream in sync mode")};cK.exports={handleInput:ok,makeAllStream:sk,getSpawnedResult:rk,validateInputSync:ak}});var pK=V((cB0,nK)=>{var tk=(async()=>{})().constructor.prototype,ek=["then","catch","finally"].map((u)=>[u,Reflect.getOwnPropertyDescriptor(tk,u)]),uh=(u,D)=>{for(let[F,$]of ek){let B=typeof D==="function"?(...z)=>Reflect.apply($.value,D(),z):$.value.bind(D);Reflect.defineProperty(u,F,{...$,value:B})}return u},Dh=(u)=>{return new Promise((D,F)=>{if(u.on("exit",($,B)=>{D({exitCode:$,signal:B})}),u.on("error",($)=>{F($)}),u.stdin)u.stdin.on("error",($)=>{F($)})})};nK.exports={mergePromise:uh,getSpawnedPromise:Dh}});var dK=V((mB0,gK)=>{var lK=(u,D=[])=>{if(!Array.isArray(D))return[u];return[u,...D]},Fh=/^[\w.-]+$/,$h=/"/g,Bh=(u)=>{if(typeof u!=="string"||Fh.test(u))return u;return`"${u.replace($h,"\\\"")}"`},zh=(u,D)=>{return lK(u,D).join(" ")},Zh=(u,D)=>{return lK(u,D).map((F)=>Bh(F)).join(" ")},qh=/ +/g,Xh=(u)=>{let D=[];for(let F of u.trim().split(qh)){let $=D[D.length-1];if($&&$.endsWith("\\"))D[D.length-1]=`${$.slice(0,-1)} ${F}`;else D.push(F)}return D};gK.exports={joinCommand:zh,getEscapedCommand:Zh,parseCommand:Xh}});var j9=V((nB0,C6)=>{var Qh=o("path"),E2=o("child_process"),Wh=uK(),Yh=FK(),Jh=zK(),Gh=QK(),w9=jK(),sK=EK(),{spawnedKill:Kh,spawnedCancel:Hh,setupTimeout:fh,validateTimeout:Vh,setExitHandler:Lh}=UK(),{handleInput:Mh,getSpawnedResult:xh,makeAllStream:Oh,validateInputSync:Ah}=mK(),{mergePromise:oK,getSpawnedPromise:wh}=pK(),{joinCommand:rK,parseCommand:aK,getEscapedCommand:tK}=dK(),Nh=({env:u,extendEnv:D,preferLocal:F,localDir:$,execPath:B})=>{let z=D?{...process.env,...u}:u;if(F)return Jh.env({env:z,cwd:$,execPath:B});return z},eK=(u,D,F={})=>{let $=Wh._parse(u,D,F);if(u=$.command,D=$.args,F=$.options,F={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:F.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...F},F.env=Nh(F),F.stdio=sK(F),process.platform==="win32"&&Qh.basename(u,".exe")==="cmd")D.unshift("/q");return{file:u,args:D,options:F,parsed:$}},r8=(u,D,F)=>{if(typeof D!=="string"&&!Buffer.isBuffer(D))return F===void 0?void 0:"";if(u.stripFinalNewline)return Yh(D);return D},N9=(u,D,F)=>{let $=eK(u,D,F),B=rK(u,D),z=tK(u,D);Vh($.options);let Z;try{Z=E2.spawn($.file,$.args,$.options)}catch(G){let K=new E2.ChildProcess,H=Promise.reject(w9({error:G,stdout:"",stderr:"",all:"",command:B,escapedCommand:z,parsed:$,timedOut:!1,isCanceled:!1,killed:!1}));return oK(K,H)}let q=wh(Z),X=fh(Z,$.options,q),Q=Lh(Z,$.options,X),W={isCanceled:!1};Z.kill=Kh.bind(null,Z.kill.bind(Z)),Z.cancel=Hh.bind(null,Z,W);let J=Gh(async()=>{let[{error:G,exitCode:K,signal:H,timedOut:f},x,L,A]=await xh(Z,$.options,Q),C=r8($.options,x),I=r8($.options,L),_=r8($.options,A);if(G||K!==0||H!==null){let R=w9({error:G,exitCode:K,signal:H,stdout:C,stderr:I,all:_,command:B,escapedCommand:z,parsed:$,timedOut:f,isCanceled:W.isCanceled,killed:Z.killed});if(!$.options.reject)return R;throw R}return{command:B,escapedCommand:z,exitCode:0,stdout:C,stderr:I,all:_,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return Mh(Z,$.options.input),Z.all=Oh(Z,$.options),oK(Z,J)};C6.exports=N9;C6.exports.sync=(u,D,F)=>{let $=eK(u,D,F),B=rK(u,D),z=tK(u,D);Ah($.options);let Z;try{Z=E2.spawnSync($.file,$.args,$.options)}catch(Q){throw w9({error:Q,stdout:"",stderr:"",all:"",command:B,escapedCommand:z,parsed:$,timedOut:!1,isCanceled:!1,killed:!1})}let q=r8($.options,Z.stdout,Z.error),X=r8($.options,Z.stderr,Z.error);if(Z.error||Z.status!==0||Z.signal!==null){let Q=w9({stdout:q,stderr:X,error:Z.error,signal:Z.signal,exitCode:Z.status,command:B,escapedCommand:z,parsed:$,timedOut:Z.error&&Z.error.code==="ETIMEDOUT",isCanceled:!1,killed:Z.signal!==null});if(!$.options.reject)return Q;throw Q}return{command:B,escapedCommand:z,exitCode:0,stdout:q,stderr:X,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};C6.exports.command=(u,D)=>{let[F,...$]=aK(u);return N9(F,$,D)};C6.exports.commandSync=(u,D)=>{let[F,...$]=aK(u);return N9.sync(F,$,D)};C6.exports.node=(u,D,F={})=>{if(D&&!Array.isArray(D)&&typeof D==="object")F=D,D=[];let $=sK.node(F),B=process.execArgv.filter((q)=>!q.startsWith("--inspect")),{nodePath:z=process.execPath,nodeOptions:Z=B}=F;return N9(z,[...Z,u,...Array.isArray(D)?D:[]],{...F,stdin:void 0,stdout:void 0,stderr:void 0,stdio:$,shell:!1})}});var YH=V((QH)=>{Object.defineProperty(QH,"__esModule",{value:!0});QH.splitWhen=QH.flatten=void 0;function Rh(u){return u.reduce((D,F)=>[].concat(D,F),[])}QH.flatten=Rh;function kh(u,D){let F=[[]],$=0;for(let B of u)if(D(B))$++,F[$]=[];else F[$].push(B);return F}QH.splitWhen=kh});var KH=V((JH)=>{Object.defineProperty(JH,"__esModule",{value:!0});JH.isEnoentCodeError=void 0;function ch(u){return u.code==="ENOENT"}JH.isEnoentCodeError=ch});var LH=V((fH)=>{Object.defineProperty(fH,"__esModule",{value:!0});fH.createDirentFromStats=void 0;class HH{constructor(u,D){this.name=u,this.isBlockDevice=D.isBlockDevice.bind(D),this.isCharacterDevice=D.isCharacterDevice.bind(D),this.isDirectory=D.isDirectory.bind(D),this.isFIFO=D.isFIFO.bind(D),this.isFile=D.isFile.bind(D),this.isSocket=D.isSocket.bind(D),this.isSymbolicLink=D.isSymbolicLink.bind(D)}}function mh(u,D){return new HH(u,D)}fH.createDirentFromStats=mh});var NH=V((AH)=>{Object.defineProperty(AH,"__esModule",{value:!0});AH.convertPosixPathToPattern=AH.convertWindowsPathToPattern=AH.convertPathToPattern=AH.escapePosixPath=AH.escapeWindowsPath=AH.escape=AH.removeLeadingDotSegment=AH.makeAbsolute=AH.unixify=void 0;var nh=o("os"),ph=o("path"),MH=nh.platform()==="win32",lh=2,gh=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,dh=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,oh=/^\\\\([.?])/,sh=/\\(?![!()+@[\]{}])/g;function rh(u){return u.replace(/\\/g,"/")}AH.unixify=rh;function ah(u,D){return ph.resolve(u,D)}AH.makeAbsolute=ah;function th(u){if(u.charAt(0)==="."){let D=u.charAt(1);if(D==="/"||D==="\\")return u.slice(lh)}return u}AH.removeLeadingDotSegment=th;AH.escape=MH?i2:v2;function i2(u){return u.replace(dh,"\\$2")}AH.escapeWindowsPath=i2;function v2(u){return u.replace(gh,"\\$2")}AH.escapePosixPath=v2;AH.convertPathToPattern=MH?xH:OH;function xH(u){return i2(u).replace(oh,"//$1").replace(sh,"/")}AH.convertWindowsPathToPattern=xH;function OH(u){return v2(u)}AH.convertPosixPathToPattern=OH});var IH=V((Fz0,jH)=>{/*!
|
|
45
|
+
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
|
46
|
+
*
|
|
47
|
+
* Copyright (c) 2014-2016, Jon Schlinkert.
|
|
48
|
+
* Licensed under the MIT License.
|
|
49
|
+
*/jH.exports=function(D){if(typeof D!=="string"||D==="")return!1;var F;while(F=/(\\).|([@?!+*]\(.*\))/g.exec(D)){if(F[2])return!0;D=D.slice(F.index+F[0].length)}return!1}});var CH=V(($z0,PH)=>{/*!
|
|
50
|
+
* is-glob <https://github.com/jonschlinkert/is-glob>
|
|
51
|
+
*
|
|
52
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
53
|
+
* Released under the MIT License.
|
|
54
|
+
*/var qc=IH(),EH={"{":"}","(":")","[":"]"},Xc=function(u){if(u[0]==="!")return!0;var D=0,F=-2,$=-2,B=-2,z=-2,Z=-2;while(D<u.length){if(u[D]==="*")return!0;if(u[D+1]==="?"&&/[\].+)]/.test(u[D]))return!0;if($!==-1&&u[D]==="["&&u[D+1]!=="]"){if($<D)$=u.indexOf("]",D);if($>D){if(Z===-1||Z>$)return!0;if(Z=u.indexOf("\\",D),Z===-1||Z>$)return!0}}if(B!==-1&&u[D]==="{"&&u[D+1]!=="}"){if(B=u.indexOf("}",D),B>D){if(Z=u.indexOf("\\",D),Z===-1||Z>B)return!0}}if(z!==-1&&u[D]==="("&&u[D+1]==="?"&&/[:!=]/.test(u[D+2])&&u[D+3]!==")"){if(z=u.indexOf(")",D),z>D){if(Z=u.indexOf("\\",D),Z===-1||Z>z)return!0}}if(F!==-1&&u[D]==="("&&u[D+1]!=="|"){if(F<D)F=u.indexOf("|",D);if(F!==-1&&u[F+1]!==")"){if(z=u.indexOf(")",F),z>F){if(Z=u.indexOf("\\",F),Z===-1||Z>z)return!0}}}if(u[D]==="\\"){var q=u[D+1];D+=2;var X=EH[q];if(X){var Q=u.indexOf(X,D);if(Q!==-1)D=Q+1}if(u[D]==="!")return!0}else D++}return!1},Qc=function(u){if(u[0]==="!")return!0;var D=0;while(D<u.length){if(/[*?{}()[\]]/.test(u[D]))return!0;if(u[D]==="\\"){var F=u[D+1];D+=2;var $=EH[F];if($){var B=u.indexOf($,D);if(B!==-1)D=B+1}if(u[D]==="!")return!0}else D++}return!1};PH.exports=function(D,F){if(typeof D!=="string"||D==="")return!1;if(qc(D))return!0;var $=Xc;if(F&&F.strict===!1)$=Qc;return $(D)}});var UH=V((Bz0,_H)=>{var Wc=CH(),Yc=o("path").posix.dirname,Jc=o("os").platform()==="win32",S2="/",Gc=/\\/g,Kc=/[\{\[].*[\}\]]$/,Hc=/(^|[^\\])([\{\[]|\([^\)]+$)/,fc=/\\([\!\*\?\|\[\]\(\)\{\}])/g;_H.exports=function(D,F){var $=Object.assign({flipBackslashes:!0},F);if($.flipBackslashes&&Jc&&D.indexOf(S2)<0)D=D.replace(Gc,S2);if(Kc.test(D))D+=S2;D+="a";do D=Yc(D);while(Wc(D)||Hc.test(D));return D.replace(fc,"$1")}});var E9=V((Vc)=>{Vc.isInteger=(u)=>{if(typeof u==="number")return Number.isInteger(u);if(typeof u==="string"&&u.trim()!=="")return Number.isInteger(Number(u));return!1};Vc.find=(u,D)=>u.nodes.find((F)=>F.type===D);Vc.exceedsLimit=(u,D,F=1,$)=>{if($===!1)return!1;if(!Vc.isInteger(u)||!Vc.isInteger(D))return!1;return(Number(D)-Number(u))/Number(F)>=$};Vc.escapeNode=(u,D=0,F)=>{let $=u.nodes[D];if(!$)return;if(F&&$.type===F||$.type==="open"||$.type==="close"){if($.escaped!==!0)$.value="\\"+$.value,$.escaped=!0}};Vc.encloseBrace=(u)=>{if(u.type!=="brace")return!1;if(u.commas>>0+u.ranges>>0===0)return u.invalid=!0,!0;return!1};Vc.isInvalidBrace=(u)=>{if(u.type!=="brace")return!1;if(u.invalid===!0||u.dollar)return!0;if(u.commas>>0+u.ranges>>0===0)return u.invalid=!0,!0;if(u.open!==!0||u.close!==!0)return u.invalid=!0,!0;return!1};Vc.isOpenOrClose=(u)=>{if(u.type==="open"||u.type==="close")return!0;return u.open===!0||u.close===!0};Vc.reduce=(u)=>u.reduce((D,F)=>{if(F.type==="text")D.push(F.value);if(F.type==="range")F.type="text";return D},[]);Vc.flatten=(...u)=>{let D=[],F=($)=>{for(let B=0;B<$.length;B++){let z=$[B];if(Array.isArray(z)){F(z);continue}if(z!==void 0)D.push(z)}return D};return F(u),D}});var P9=V((Zz0,vH)=>{var iH=E9();vH.exports=(u,D={})=>{let F=($,B={})=>{let z=D.escapeInvalid&&iH.isInvalidBrace(B),Z=$.invalid===!0&&D.escapeInvalid===!0,q="";if($.value){if((z||Z)&&iH.isOpenOrClose($))return"\\"+$.value;return $.value}if($.value)return $.value;if($.nodes)for(let X of $.nodes)q+=F(X);return q};return F(u)}});var TH=V((qz0,SH)=>{/*!
|
|
55
|
+
* is-number <https://github.com/jonschlinkert/is-number>
|
|
56
|
+
*
|
|
57
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
58
|
+
* Released under the MIT License.
|
|
59
|
+
*/SH.exports=function(u){if(typeof u==="number")return u-u===0;if(typeof u==="string"&&u.trim()!=="")return Number.isFinite?Number.isFinite(+u):isFinite(+u);return!1}});var pH=V((Xz0,nH)=>{/*!
|
|
60
|
+
* to-regex-range <https://github.com/micromatch/to-regex-range>
|
|
61
|
+
*
|
|
62
|
+
* Copyright (c) 2015-present, Jon Schlinkert.
|
|
63
|
+
* Released under the MIT License.
|
|
64
|
+
*/var yH=TH(),vF=(u,D,F)=>{if(yH(u)===!1)throw TypeError("toRegexRange: expected the first argument to be a number");if(D===void 0||u===D)return String(u);if(yH(D)===!1)throw TypeError("toRegexRange: expected the second argument to be a number.");let $={relaxZeros:!0,...F};if(typeof $.strictZeros==="boolean")$.relaxZeros=$.strictZeros===!1;let B=String($.relaxZeros),z=String($.shorthand),Z=String($.capture),q=String($.wrap),X=u+":"+D+"="+B+z+Z+q;if(vF.cache.hasOwnProperty(X))return vF.cache[X].result;let Q=Math.min(u,D),W=Math.max(u,D);if(Math.abs(Q-W)===1){let H=u+"|"+D;if($.capture)return`(${H})`;if($.wrap===!1)return H;return`(?:${H})`}let Y=mH(u)||mH(D),J={min:u,max:D,a:Q,b:W},G=[],K=[];if(Y)J.isPadded=Y,J.maxLen=String(J.max).length;if(Q<0){let H=W<0?Math.abs(W):1;K=bH(H,Math.abs(Q),J,$),Q=J.a=0}if(W>=0)G=bH(Q,W,J,$);if(J.negatives=K,J.positives=G,J.result=Ic(K,G,$),$.capture===!0)J.result=`(${J.result})`;else if($.wrap!==!1&&G.length+K.length>1)J.result=`(?:${J.result})`;return vF.cache[X]=J,J.result};function Ic(u,D,F){let $=y2(u,D,"-",!1,F)||[],B=y2(D,u,"",!1,F)||[],z=y2(u,D,"-?",!0,F)||[];return $.concat(z).concat(B).join("|")}function Ec(u,D){let F=1,$=1,B=kH(u,F),z=new Set([D]);while(u<=B&&B<=D)z.add(B),F+=1,B=kH(u,F);B=hH(D+1,$)-1;while(u<B&&B<=D)z.add(B),$+=1,B=hH(D+1,$)-1;return z=[...z],z.sort(_c),z}function Pc(u,D,F){if(u===D)return{pattern:u,count:[],digits:0};let $=Cc(u,D),B=$.length,z="",Z=0;for(let q=0;q<B;q++){let[X,Q]=$[q];if(X===Q)z+=X;else if(X!=="0"||Q!=="9")z+=Uc(X,Q,F);else Z++}if(Z)z+=F.shorthand===!0?"\\d":"[0-9]";return{pattern:z,count:[Z],digits:B}}function bH(u,D,F,$){let B=Ec(u,D),z=[],Z=u,q;for(let X=0;X<B.length;X++){let Q=B[X],W=Pc(String(Z),String(Q),$),Y="";if(!F.isPadded&&q&&q.pattern===W.pattern){if(q.count.length>1)q.count.pop();q.count.push(W.count[0]),q.string=q.pattern+cH(q.count),Z=Q+1;continue}if(F.isPadded)Y=ic(Q,F,$);W.string=Y+W.pattern+cH(W.count),z.push(W),Z=Q+1,q=W}return z}function y2(u,D,F,$,B){let z=[];for(let Z of u){let{string:q}=Z;if(!$&&!RH(D,"string",q))z.push(F+q);if($&&RH(D,"string",q))z.push(F+q)}return z}function Cc(u,D){let F=[];for(let $=0;$<u.length;$++)F.push([u[$],D[$]]);return F}function _c(u,D){return u>D?1:D>u?-1:0}function RH(u,D,F){return u.some(($)=>$[D]===F)}function kH(u,D){return Number(String(u).slice(0,-D)+"9".repeat(D))}function hH(u,D){return u-u%Math.pow(10,D)}function cH(u){let[D=0,F=""]=u;if(F||D>1)return`{${D+(F?","+F:"")}}`;return""}function Uc(u,D,F){return`[${u}${D-u===1?"":"-"}${D}]`}function mH(u){return/^-?(0+)\d/.test(u)}function ic(u,D,F){if(!D.isPadded)return u;let $=Math.abs(D.maxLen-String(u).length),B=F.relaxZeros!==!1;switch($){case 0:return"";case 1:return B?"0?":"0";case 2:return B?"0{0,2}":"00";default:return B?`0{0,${$}}`:`0{${$}}`}}vF.cache={};vF.clearCache=()=>vF.cache={};nH.exports=vF});var k2=V((Qz0,aH)=>{/*!
|
|
65
|
+
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
66
|
+
*
|
|
67
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
68
|
+
* Licensed under the MIT License.
|
|
69
|
+
*/var vc=o("util"),gH=pH(),lH=(u)=>u!==null&&typeof u==="object"&&!Array.isArray(u),Sc=(u)=>{return(D)=>u===!0?Number(D):String(D)},b2=(u)=>{return typeof u==="number"||typeof u==="string"&&u!==""},a8=(u)=>Number.isInteger(+u),R2=(u)=>{let D=`${u}`,F=-1;if(D[0]==="-")D=D.slice(1);if(D==="0")return!1;while(D[++F]==="0");return F>0},Tc=(u,D,F)=>{if(typeof u==="string"||typeof D==="string")return!0;return F.stringify===!0},yc=(u,D,F)=>{if(D>0){let $=u[0]==="-"?"-":"";if($)u=u.slice(1);u=$+u.padStart($?D-1:D,"0")}if(F===!1)return String(u);return u},_9=(u,D)=>{let F=u[0]==="-"?"-":"";if(F)u=u.slice(1),D--;while(u.length<D)u="0"+u;return F?"-"+u:u},bc=(u,D,F)=>{u.negatives.sort((q,X)=>q<X?-1:q>X?1:0),u.positives.sort((q,X)=>q<X?-1:q>X?1:0);let $=D.capture?"":"?:",B="",z="",Z;if(u.positives.length)B=u.positives.map((q)=>_9(String(q),F)).join("|");if(u.negatives.length)z=`-(${$}${u.negatives.map((q)=>_9(String(q),F)).join("|")})`;if(B&&z)Z=`${B}|${z}`;else Z=B||z;if(D.wrap)return`(${$}${Z})`;return Z},dH=(u,D,F,$)=>{if(F)return gH(u,D,{wrap:!1,...$});let B=String.fromCharCode(u);if(u===D)return B;let z=String.fromCharCode(D);return`[${B}-${z}]`},oH=(u,D,F)=>{if(Array.isArray(u)){let $=F.wrap===!0,B=F.capture?"":"?:";return $?`(${B}${u.join("|")})`:u.join("|")}return gH(u,D,F)},sH=(...u)=>{return RangeError("Invalid range arguments: "+vc.inspect(...u))},rH=(u,D,F)=>{if(F.strictRanges===!0)throw sH([u,D]);return[]},Rc=(u,D)=>{if(D.strictRanges===!0)throw TypeError(`Expected step "${u}" to be a number`);return[]},kc=(u,D,F=1,$={})=>{let B=Number(u),z=Number(D);if(!Number.isInteger(B)||!Number.isInteger(z)){if($.strictRanges===!0)throw sH([u,D]);return[]}if(B===0)B=0;if(z===0)z=0;let Z=B>z,q=String(u),X=String(D),Q=String(F);F=Math.max(Math.abs(F),1);let W=R2(q)||R2(X)||R2(Q),Y=W?Math.max(q.length,X.length,Q.length):0,J=W===!1&&Tc(u,D,$)===!1,G=$.transform||Sc(J);if($.toRegex&&F===1)return dH(_9(u,Y),_9(D,Y),!0,$);let K={negatives:[],positives:[]},H=(L)=>K[L<0?"negatives":"positives"].push(Math.abs(L)),f=[],x=0;while(Z?B>=z:B<=z){if($.toRegex===!0&&F>1)H(B);else f.push(yc(G(B,x),Y,J));B=Z?B-F:B+F,x++}if($.toRegex===!0)return F>1?bc(K,$,Y):oH(f,null,{wrap:!1,...$});return f},hc=(u,D,F=1,$={})=>{if(!a8(u)&&u.length>1||!a8(D)&&D.length>1)return rH(u,D,$);let B=$.transform||((J)=>String.fromCharCode(J)),z=`${u}`.charCodeAt(0),Z=`${D}`.charCodeAt(0),q=z>Z,X=Math.min(z,Z),Q=Math.max(z,Z);if($.toRegex&&F===1)return dH(X,Q,!1,$);let W=[],Y=0;while(q?z>=Z:z<=Z)W.push(B(z,Y)),z=q?z-F:z+F,Y++;if($.toRegex===!0)return oH(W,null,{wrap:!1,options:$});return W},C9=(u,D,F,$={})=>{if(D==null&&b2(u))return[u];if(!b2(u)||!b2(D))return rH(u,D,$);if(typeof F==="function")return C9(u,D,1,{transform:F});if(lH(F))return C9(u,D,0,F);let B={...$};if(B.capture===!0)B.wrap=!0;if(F=F||B.step||1,!a8(F)){if(F!=null&&!lH(F))return Rc(F,B);return C9(u,D,1,F)}if(a8(u)&&a8(D))return kc(u,D,F,B);return hc(u,D,Math.max(Math.abs(F),1),B)};aH.exports=C9});var uf=V((Wz0,eH)=>{var cc=k2(),tH=E9(),mc=(u,D={})=>{let F=($,B={})=>{let z=tH.isInvalidBrace(B),Z=$.invalid===!0&&D.escapeInvalid===!0,q=z===!0||Z===!0,X=D.escapeInvalid===!0?"\\":"",Q="";if($.isOpen===!0)return X+$.value;if($.isClose===!0)return console.log("node.isClose",X,$.value),X+$.value;if($.type==="open")return q?X+$.value:"(";if($.type==="close")return q?X+$.value:")";if($.type==="comma")return $.prev.type==="comma"?"":q?$.value:"|";if($.value)return $.value;if($.nodes&&$.ranges>0){let W=tH.reduce($.nodes),Y=cc(...W,{...D,wrap:!1,toRegex:!0,strictZeros:!0});if(Y.length!==0)return W.length>1&&Y.length>1?`(${Y})`:Y}if($.nodes)for(let W of $.nodes)Q+=F(W,$);return Q};return F(u)};eH.exports=mc});var $f=V((Yz0,Ff)=>{var nc=k2(),Df=P9(),_6=E9(),SF=(u="",D="",F=!1)=>{let $=[];if(u=[].concat(u),D=[].concat(D),!D.length)return u;if(!u.length)return F?_6.flatten(D).map((B)=>`{${B}}`):D;for(let B of u)if(Array.isArray(B))for(let z of B)$.push(SF(z,D,F));else for(let z of D){if(F===!0&&typeof z==="string")z=`{${z}}`;$.push(Array.isArray(z)?SF(B,z,F):B+z)}return _6.flatten($)},pc=(u,D={})=>{let F=D.rangeLimit===void 0?1000:D.rangeLimit,$=(B,z={})=>{B.queue=[];let Z=z,q=z.queue;while(Z.type!=="brace"&&Z.type!=="root"&&Z.parent)Z=Z.parent,q=Z.queue;if(B.invalid||B.dollar){q.push(SF(q.pop(),Df(B,D)));return}if(B.type==="brace"&&B.invalid!==!0&&B.nodes.length===2){q.push(SF(q.pop(),["{}"]));return}if(B.nodes&&B.ranges>0){let Y=_6.reduce(B.nodes);if(_6.exceedsLimit(...Y,D.step,F))throw RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let J=nc(...Y,D);if(J.length===0)J=Df(B,D);q.push(SF(q.pop(),J)),B.nodes=[];return}let X=_6.encloseBrace(B),Q=B.queue,W=B;while(W.type!=="brace"&&W.type!=="root"&&W.parent)W=W.parent,Q=W.queue;for(let Y=0;Y<B.nodes.length;Y++){let J=B.nodes[Y];if(J.type==="comma"&&B.type==="brace"){if(Y===1)Q.push("");Q.push("");continue}if(J.type==="close"){q.push(SF(q.pop(),Q,X));continue}if(J.value&&J.type!=="open"){Q.push(SF(Q.pop(),J.value));continue}if(J.nodes)$(J,B)}return Q};return _6.flatten($(u))};Ff.exports=pc});var zf=V((Jz0,Bf)=>{Bf.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
70
|
+
`,CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var Wf=V((Gz0,Qf)=>{var lc=P9(),{MAX_LENGTH:Zf,CHAR_BACKSLASH:h2,CHAR_BACKTICK:gc,CHAR_COMMA:dc,CHAR_DOT:oc,CHAR_LEFT_PARENTHESES:sc,CHAR_RIGHT_PARENTHESES:rc,CHAR_LEFT_CURLY_BRACE:ac,CHAR_RIGHT_CURLY_BRACE:tc,CHAR_LEFT_SQUARE_BRACKET:qf,CHAR_RIGHT_SQUARE_BRACKET:Xf,CHAR_DOUBLE_QUOTE:ec,CHAR_SINGLE_QUOTE:um,CHAR_NO_BREAK_SPACE:Dm,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Fm}=zf(),$m=(u,D={})=>{if(typeof u!=="string")throw TypeError("Expected a string");let F=D||{},$=typeof F.maxLength==="number"?Math.min(Zf,F.maxLength):Zf;if(u.length>$)throw SyntaxError(`Input length (${u.length}), exceeds max characters (${$})`);let B={type:"root",input:u,nodes:[]},z=[B],Z=B,q=B,X=0,Q=u.length,W=0,Y=0,J,G=()=>u[W++],K=(H)=>{if(H.type==="text"&&q.type==="dot")q.type="text";if(q&&q.type==="text"&&H.type==="text"){q.value+=H.value;return}return Z.nodes.push(H),H.parent=Z,H.prev=q,q=H,H};K({type:"bos"});while(W<Q){if(Z=z[z.length-1],J=G(),J===Fm||J===Dm)continue;if(J===h2){K({type:"text",value:(D.keepEscaping?J:"")+G()});continue}if(J===Xf){K({type:"text",value:"\\"+J});continue}if(J===qf){X++;let H;while(W<Q&&(H=G())){if(J+=H,H===qf){X++;continue}if(H===h2){J+=G();continue}if(H===Xf){if(X--,X===0)break}}K({type:"text",value:J});continue}if(J===sc){Z=K({type:"paren",nodes:[]}),z.push(Z),K({type:"text",value:J});continue}if(J===rc){if(Z.type!=="paren"){K({type:"text",value:J});continue}Z=z.pop(),K({type:"text",value:J}),Z=z[z.length-1];continue}if(J===ec||J===um||J===gc){let H=J,f;if(D.keepQuotes!==!0)J="";while(W<Q&&(f=G())){if(f===h2){J+=f+G();continue}if(f===H){if(D.keepQuotes===!0)J+=f;break}J+=f}K({type:"text",value:J});continue}if(J===ac){Y++;let f={type:"brace",open:!0,close:!1,dollar:q.value&&q.value.slice(-1)==="$"||Z.dollar===!0,depth:Y,commas:0,ranges:0,nodes:[]};Z=K(f),z.push(Z),K({type:"open",value:J});continue}if(J===tc){if(Z.type!=="brace"){K({type:"text",value:J});continue}let H="close";Z=z.pop(),Z.close=!0,K({type:H,value:J}),Y--,Z=z[z.length-1];continue}if(J===dc&&Y>0){if(Z.ranges>0){Z.ranges=0;let H=Z.nodes.shift();Z.nodes=[H,{type:"text",value:lc(Z)}]}K({type:"comma",value:J}),Z.commas++;continue}if(J===oc&&Y>0&&Z.commas===0){let H=Z.nodes;if(Y===0||H.length===0){K({type:"text",value:J});continue}if(q.type==="dot"){if(Z.range=[],q.value+=J,q.type="range",Z.nodes.length!==3&&Z.nodes.length!==5){Z.invalid=!0,Z.ranges=0,q.type="text";continue}Z.ranges++,Z.args=[];continue}if(q.type==="range"){H.pop();let f=H[H.length-1];f.value+=q.value+J,q=f,Z.ranges--;continue}K({type:"dot",value:J});continue}K({type:"text",value:J})}do if(Z=z.pop(),Z.type!=="root"){Z.nodes.forEach((x)=>{if(!x.nodes){if(x.type==="open")x.isOpen=!0;if(x.type==="close")x.isClose=!0;if(!x.nodes)x.type="text";x.invalid=!0}});let H=z[z.length-1],f=H.nodes.indexOf(Z);H.nodes.splice(f,1,...Z.nodes)}while(z.length>0);return K({type:"eos"}),B};Qf.exports=$m});var Gf=V((Kz0,Jf)=>{var Yf=P9(),Bm=uf(),zm=$f(),Zm=Wf(),XD=(u,D={})=>{let F=[];if(Array.isArray(u))for(let $ of u){let B=XD.create($,D);if(Array.isArray(B))F.push(...B);else F.push(B)}else F=[].concat(XD.create(u,D));if(D&&D.expand===!0&&D.nodupes===!0)F=[...new Set(F)];return F};XD.parse=(u,D={})=>Zm(u,D);XD.stringify=(u,D={})=>{if(typeof u==="string")return Yf(XD.parse(u,D),D);return Yf(u,D)};XD.compile=(u,D={})=>{if(typeof u==="string")u=XD.parse(u,D);return Bm(u,D)};XD.expand=(u,D={})=>{if(typeof u==="string")u=XD.parse(u,D);let F=zm(u,D);if(D.noempty===!0)F=F.filter(Boolean);if(D.nodupes===!0)F=[...new Set(F)];return F};XD.create=(u,D={})=>{if(u===""||u.length<3)return[u];return D.expand!==!0?XD.compile(u,D):XD.expand(u,D)};Jf.exports=XD});var t8=V((Hz0,Hf)=>{var qm=o("path"),Kf={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:"[^/]",END_ANCHOR:"(?:\\/|$)",DOTS_SLASH:"\\.{1,2}(?:\\/|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|\\/)\\.{1,2}(?:\\/|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:\\/|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:\\/|$))",QMARK_NO_DOT:"[^.\\/]",STAR:"[^/]*?",START_ANCHOR:"(?:^|\\/)"},Xm={...Kf,SLASH_LITERAL:"[\\\\/]",QMARK:"[^\\\\/]",STAR:"[^\\\\/]*?",DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)"},Qm={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};Hf.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:Qm,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:qm.sep,extglobChars(u){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${u.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(u){return u===!0?Xm:Kf}}});var e8=V((fm)=>{var Wm=o("path"),Ym=process.platform==="win32",{REGEX_BACKSLASH:Jm,REGEX_REMOVE_BACKSLASH:Gm,REGEX_SPECIAL_CHARS:Km,REGEX_SPECIAL_CHARS_GLOBAL:Hm}=t8();fm.isObject=(u)=>u!==null&&typeof u==="object"&&!Array.isArray(u);fm.hasRegexChars=(u)=>Km.test(u);fm.isRegexChar=(u)=>u.length===1&&fm.hasRegexChars(u);fm.escapeRegex=(u)=>u.replace(Hm,"\\$1");fm.toPosixSlashes=(u)=>u.replace(Jm,"/");fm.removeBackslashes=(u)=>{return u.replace(Gm,(D)=>{return D==="\\"?"":D})};fm.supportsLookbehinds=()=>{let u=process.version.slice(1).split(".").map(Number);if(u.length===3&&u[0]>=9||u[0]===8&&u[1]>=10)return!0;return!1};fm.isWindows=(u)=>{if(u&&typeof u.windows==="boolean")return u.windows;return Ym===!0||Wm.sep==="\\"};fm.escapeLast=(u,D,F)=>{let $=u.lastIndexOf(D,F);if($===-1)return u;if(u[$-1]==="\\")return fm.escapeLast(u,D,$-1);return`${u.slice(0,$)}\\${u.slice($)}`};fm.removePrefix=(u,D={})=>{let F=u;if(F.startsWith("./"))F=F.slice(2),D.prefix="./";return F};fm.wrapOutput=(u,D={},F={})=>{let $=F.contains?"":"^",B=F.contains?"":"$",z=`${$}(?:${u})${B}`;if(D.negated===!0)z=`(?:^(?!${z}).*$)`;return z}});var jf=V((Vz0,Nf)=>{var Lf=e8(),{CHAR_ASTERISK:c2,CHAR_AT:Im,CHAR_BACKWARD_SLASH:u4,CHAR_COMMA:Em,CHAR_DOT:m2,CHAR_EXCLAMATION_MARK:n2,CHAR_FORWARD_SLASH:wf,CHAR_LEFT_CURLY_BRACE:p2,CHAR_LEFT_PARENTHESES:l2,CHAR_LEFT_SQUARE_BRACKET:Pm,CHAR_PLUS:Cm,CHAR_QUESTION_MARK:Mf,CHAR_RIGHT_CURLY_BRACE:_m,CHAR_RIGHT_PARENTHESES:xf,CHAR_RIGHT_SQUARE_BRACKET:Um}=t8(),Of=(u)=>{return u===wf||u===u4},Af=(u)=>{if(u.isPrefix!==!0)u.depth=u.isGlobstar?1/0:1},im=(u,D)=>{let F=D||{},$=u.length-1,B=F.parts===!0||F.scanToEnd===!0,z=[],Z=[],q=[],X=u,Q=-1,W=0,Y=0,J=!1,G=!1,K=!1,H=!1,f=!1,x=!1,L=!1,A=!1,C=!1,I=!1,_=0,R,k,c={value:"",depth:0,isGlob:!1},e=()=>Q>=$,w=()=>X.charCodeAt(Q+1),h=()=>{return R=k,X.charCodeAt(++Q)};while(Q<$){k=h();let d;if(k===u4){if(L=c.backslashes=!0,k=h(),k===p2)x=!0;continue}if(x===!0||k===p2){_++;while(e()!==!0&&(k=h())){if(k===u4){L=c.backslashes=!0,h();continue}if(k===p2){_++;continue}if(x!==!0&&k===m2&&(k=h())===m2){if(J=c.isBrace=!0,K=c.isGlob=!0,I=!0,B===!0)continue;break}if(x!==!0&&k===Em){if(J=c.isBrace=!0,K=c.isGlob=!0,I=!0,B===!0)continue;break}if(k===_m){if(_--,_===0){x=!1,J=c.isBrace=!0,I=!0;break}}}if(B===!0)continue;break}if(k===wf){if(z.push(Q),Z.push(c),c={value:"",depth:0,isGlob:!1},I===!0)continue;if(R===m2&&Q===W+1){W+=2;continue}Y=Q+1;continue}if(F.noext!==!0){if((k===Cm||k===Im||k===c2||k===Mf||k===n2)===!0&&w()===l2){if(K=c.isGlob=!0,H=c.isExtglob=!0,I=!0,k===n2&&Q===W)C=!0;if(B===!0){while(e()!==!0&&(k=h())){if(k===u4){L=c.backslashes=!0,k=h();continue}if(k===xf){K=c.isGlob=!0,I=!0;break}}continue}break}}if(k===c2){if(R===c2)f=c.isGlobstar=!0;if(K=c.isGlob=!0,I=!0,B===!0)continue;break}if(k===Mf){if(K=c.isGlob=!0,I=!0,B===!0)continue;break}if(k===Pm){while(e()!==!0&&(d=h())){if(d===u4){L=c.backslashes=!0,h();continue}if(d===Um){G=c.isBracket=!0,K=c.isGlob=!0,I=!0;break}}if(B===!0)continue;break}if(F.nonegate!==!0&&k===n2&&Q===W){A=c.negated=!0,W++;continue}if(F.noparen!==!0&&k===l2){if(K=c.isGlob=!0,B===!0){while(e()!==!0&&(k=h())){if(k===l2){L=c.backslashes=!0,k=h();continue}if(k===xf){I=!0;break}}continue}break}if(K===!0){if(I=!0,B===!0)continue;break}}if(F.noext===!0)H=!1,K=!1;let n=X,r="",i="";if(W>0)r=X.slice(0,W),X=X.slice(W),Y-=W;if(n&&K===!0&&Y>0)n=X.slice(0,Y),i=X.slice(Y);else if(K===!0)n="",i=X;else n=X;if(n&&n!==""&&n!=="/"&&n!==X){if(Of(n.charCodeAt(n.length-1)))n=n.slice(0,-1)}if(F.unescape===!0){if(i)i=Lf.removeBackslashes(i);if(n&&L===!0)n=Lf.removeBackslashes(n)}let v={prefix:r,input:u,start:W,base:n,glob:i,isBrace:J,isBracket:G,isGlob:K,isExtglob:H,isGlobstar:f,negated:A,negatedExtglob:C};if(F.tokens===!0){if(v.maxDepth=0,!Of(k))Z.push(c);v.tokens=Z}if(F.parts===!0||F.tokens===!0){let d;for(let a=0;a<z.length;a++){let L0=d?d+1:W,t=z[a],u0=u.slice(L0,t);if(F.tokens){if(a===0&&W!==0)Z[a].isPrefix=!0,Z[a].value=r;else Z[a].value=u0;Af(Z[a]),v.maxDepth+=Z[a].depth}if(a!==0||u0!=="")q.push(u0);d=t}if(d&&d+1<u.length){let a=u.slice(d+1);if(q.push(a),F.tokens)Z[Z.length-1].value=a,Af(Z[Z.length-1]),v.maxDepth+=Z[Z.length-1].depth}v.slashes=z,v.parts=q}return v};Nf.exports=im});var Pf=V((Lz0,Ef)=>{var U9=t8(),QD=e8(),{MAX_LENGTH:i9,POSIX_REGEX_SOURCE:vm,REGEX_NON_SPECIAL_CHARS:Sm,REGEX_SPECIAL_CHARS_BACKREF:Tm,REPLACEMENTS:If}=U9,ym=(u,D)=>{if(typeof D.expandRange==="function")return D.expandRange(...u,D);u.sort();let F=`[${u.join("-")}]`;try{new RegExp(F)}catch($){return u.map((B)=>QD.escapeRegex(B)).join("..")}return F},U6=(u,D)=>{return`Missing ${u}: "${D}" - use "\\\\${D}" to match literal characters`},g2=(u,D)=>{if(typeof u!=="string")throw TypeError("Expected a string");u=If[u]||u;let F={...D},$=typeof F.maxLength==="number"?Math.min(i9,F.maxLength):i9,B=u.length;if(B>$)throw SyntaxError(`Input length: ${B}, exceeds maximum allowed length: ${$}`);let z={type:"bos",value:"",output:F.prepend||""},Z=[z],q=F.capture?"":"?:",X=QD.isWindows(D),Q=U9.globChars(X),W=U9.extglobChars(Q),{DOT_LITERAL:Y,PLUS_LITERAL:J,SLASH_LITERAL:G,ONE_CHAR:K,DOTS_SLASH:H,NO_DOT:f,NO_DOT_SLASH:x,NO_DOTS_SLASH:L,QMARK:A,QMARK_NO_DOT:C,STAR:I,START_ANCHOR:_}=Q,R=(p)=>{return`(${q}(?:(?!${_}${p.dot?H:Y}).)*?)`},k=F.dot?"":f,c=F.dot?A:C,e=F.bash===!0?R(F):I;if(F.capture)e=`(${e})`;if(typeof F.noext==="boolean")F.noextglob=F.noext;let w={input:u,index:-1,start:0,dot:F.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:Z};u=QD.removePrefix(u,w),B=u.length;let h=[],n=[],r=[],i=z,v,d=()=>w.index===B-1,a=w.peek=(p=1)=>u[w.index+p],L0=w.advance=()=>u[++w.index]||"",t=()=>u.slice(w.index+1),u0=(p="",W0=0)=>{w.consumed+=p,w.index+=W0},E0=(p)=>{w.output+=p.output!=null?p.output:p.value,u0(p.value)},Z0=()=>{let p=1;while(a()==="!"&&(a(2)!=="("||a(3)==="?"))L0(),w.start++,p++;if(p%2===0)return!1;return w.negated=!0,w.start++,!0},b0=(p)=>{w[p]++,r.push(p)},$u=(p)=>{w[p]--,r.pop()},g=(p)=>{if(i.type==="globstar"){let W0=w.braces>0&&(p.type==="comma"||p.type==="brace"),l=p.extglob===!0||h.length&&(p.type==="pipe"||p.type==="paren");if(p.type!=="slash"&&p.type!=="paren"&&!W0&&!l)w.output=w.output.slice(0,-i.output.length),i.type="star",i.value="*",i.output=e,w.output+=i.output}if(h.length&&p.type!=="paren")h[h.length-1].inner+=p.value;if(p.value||p.output)E0(p);if(i&&i.type==="text"&&p.type==="text"){i.value+=p.value,i.output=(i.output||"")+p.value;return}p.prev=i,Z.push(p),i=p},O0=(p,W0)=>{let l={...W[W0],conditions:1,inner:""};l.prev=i,l.parens=w.parens,l.output=w.output;let Y0=(F.capture?"(":"")+l.open;b0("parens"),g({type:p,value:W0,output:w.output?"":K}),g({type:"paren",extglob:!0,value:L0(),output:Y0}),h.push(l)},n0=(p)=>{let W0=p.close+(F.capture?")":""),l;if(p.type==="negate"){let Y0=e;if(p.inner&&p.inner.length>1&&p.inner.includes("/"))Y0=R(F);if(Y0!==e||d()||/^\)+$/.test(t()))W0=p.close=`)$))${Y0}`;if(p.inner.includes("*")&&(l=t())&&/^\.[^\\/.]+$/.test(l)){let c0=g2(l,{...D,fastpaths:!1}).output;W0=p.close=`)${c0})${Y0})`}if(p.prev.type==="bos")w.negatedExtglob=!0}g({type:"paren",extglob:!0,value:v,output:W0}),$u("parens")};if(F.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(u)){let p=!1,W0=u.replace(Tm,(l,Y0,c0,j,T,s)=>{if(j==="\\")return p=!0,l;if(j==="?"){if(Y0)return Y0+j+(T?A.repeat(T.length):"");if(s===0)return c+(T?A.repeat(T.length):"");return A.repeat(c0.length)}if(j===".")return Y.repeat(c0.length);if(j==="*"){if(Y0)return Y0+j+(T?e:"");return e}return Y0?l:`\\${l}`});if(p===!0)if(F.unescape===!0)W0=W0.replace(/\\/g,"");else W0=W0.replace(/\\+/g,(l)=>{return l.length%2===0?"\\\\":l?"\\":""});if(W0===u&&F.contains===!0)return w.output=u,w;return w.output=QD.wrapOutput(W0,w,D),w}while(!d()){if(v=L0(),v==="\x00")continue;if(v==="\\"){let l=a();if(l==="/"&&F.bash!==!0)continue;if(l==="."||l===";")continue;if(!l){v+="\\",g({type:"text",value:v});continue}let Y0=/^\\+/.exec(t()),c0=0;if(Y0&&Y0[0].length>2){if(c0=Y0[0].length,w.index+=c0,c0%2!==0)v+="\\"}if(F.unescape===!0)v=L0();else v+=L0();if(w.brackets===0){g({type:"text",value:v});continue}}if(w.brackets>0&&(v!=="]"||i.value==="["||i.value==="[^")){if(F.posix!==!1&&v===":"){let l=i.value.slice(1);if(l.includes("[")){if(i.posix=!0,l.includes(":")){let Y0=i.value.lastIndexOf("["),c0=i.value.slice(0,Y0),j=i.value.slice(Y0+2),T=vm[j];if(T){if(i.value=c0+T,w.backtrack=!0,L0(),!z.output&&Z.indexOf(i)===1)z.output=K;continue}}}}if(v==="["&&a()!==":"||v==="-"&&a()==="]")v=`\\${v}`;if(v==="]"&&(i.value==="["||i.value==="[^"))v=`\\${v}`;if(F.posix===!0&&v==="!"&&i.value==="[")v="^";i.value+=v,E0({value:v});continue}if(w.quotes===1&&v!=='"'){v=QD.escapeRegex(v),i.value+=v,E0({value:v});continue}if(v==='"'){if(w.quotes=w.quotes===1?0:1,F.keepQuotes===!0)g({type:"text",value:v});continue}if(v==="("){b0("parens"),g({type:"paren",value:v});continue}if(v===")"){if(w.parens===0&&F.strictBrackets===!0)throw SyntaxError(U6("opening","("));let l=h[h.length-1];if(l&&w.parens===l.parens+1){n0(h.pop());continue}g({type:"paren",value:v,output:w.parens?")":"\\)"}),$u("parens");continue}if(v==="["){if(F.nobracket===!0||!t().includes("]")){if(F.nobracket!==!0&&F.strictBrackets===!0)throw SyntaxError(U6("closing","]"));v=`\\${v}`}else b0("brackets");g({type:"bracket",value:v});continue}if(v==="]"){if(F.nobracket===!0||i&&i.type==="bracket"&&i.value.length===1){g({type:"text",value:v,output:`\\${v}`});continue}if(w.brackets===0){if(F.strictBrackets===!0)throw SyntaxError(U6("opening","["));g({type:"text",value:v,output:`\\${v}`});continue}$u("brackets");let l=i.value.slice(1);if(i.posix!==!0&&l[0]==="^"&&!l.includes("/"))v=`/${v}`;if(i.value+=v,E0({value:v}),F.literalBrackets===!1||QD.hasRegexChars(l))continue;let Y0=QD.escapeRegex(i.value);if(w.output=w.output.slice(0,-i.value.length),F.literalBrackets===!0){w.output+=Y0,i.value=Y0;continue}i.value=`(${q}${Y0}|${i.value})`,w.output+=i.value;continue}if(v==="{"&&F.nobrace!==!0){b0("braces");let l={type:"brace",value:v,output:"(",outputIndex:w.output.length,tokensIndex:w.tokens.length};n.push(l),g(l);continue}if(v==="}"){let l=n[n.length-1];if(F.nobrace===!0||!l){g({type:"text",value:v,output:v});continue}let Y0=")";if(l.dots===!0){let c0=Z.slice(),j=[];for(let T=c0.length-1;T>=0;T--){if(Z.pop(),c0[T].type==="brace")break;if(c0[T].type!=="dots")j.unshift(c0[T].value)}Y0=ym(j,F),w.backtrack=!0}if(l.comma!==!0&&l.dots!==!0){let c0=w.output.slice(0,l.outputIndex),j=w.tokens.slice(l.tokensIndex);l.value=l.output="\\{",v=Y0="\\}",w.output=c0;for(let T of j)w.output+=T.output||T.value}g({type:"brace",value:v,output:Y0}),$u("braces"),n.pop();continue}if(v==="|"){if(h.length>0)h[h.length-1].conditions++;g({type:"text",value:v});continue}if(v===","){let l=v,Y0=n[n.length-1];if(Y0&&r[r.length-1]==="braces")Y0.comma=!0,l="|";g({type:"comma",value:v,output:l});continue}if(v==="/"){if(i.type==="dot"&&w.index===w.start+1){w.start=w.index+1,w.consumed="",w.output="",Z.pop(),i=z;continue}g({type:"slash",value:v,output:G});continue}if(v==="."){if(w.braces>0&&i.type==="dot"){if(i.value===".")i.output=Y;let l=n[n.length-1];i.type="dots",i.output+=v,i.value+=v,l.dots=!0;continue}if(w.braces+w.parens===0&&i.type!=="bos"&&i.type!=="slash"){g({type:"text",value:v,output:Y});continue}g({type:"dot",value:v,output:Y});continue}if(v==="?"){if(!(i&&i.value==="(")&&F.noextglob!==!0&&a()==="("&&a(2)!=="?"){O0("qmark",v);continue}if(i&&i.type==="paren"){let Y0=a(),c0=v;if(Y0==="<"&&!QD.supportsLookbehinds())throw Error("Node.js v10 or higher is required for regex lookbehinds");if(i.value==="("&&!/[!=<:]/.test(Y0)||Y0==="<"&&!/<([!=]|\w+>)/.test(t()))c0=`\\${v}`;g({type:"text",value:v,output:c0});continue}if(F.dot!==!0&&(i.type==="slash"||i.type==="bos")){g({type:"qmark",value:v,output:C});continue}g({type:"qmark",value:v,output:A});continue}if(v==="!"){if(F.noextglob!==!0&&a()==="("){if(a(2)!=="?"||!/[!=<:]/.test(a(3))){O0("negate",v);continue}}if(F.nonegate!==!0&&w.index===0){Z0();continue}}if(v==="+"){if(F.noextglob!==!0&&a()==="("&&a(2)!=="?"){O0("plus",v);continue}if(i&&i.value==="("||F.regex===!1){g({type:"plus",value:v,output:J});continue}if(i&&(i.type==="bracket"||i.type==="paren"||i.type==="brace")||w.parens>0){g({type:"plus",value:v});continue}g({type:"plus",value:J});continue}if(v==="@"){if(F.noextglob!==!0&&a()==="("&&a(2)!=="?"){g({type:"at",extglob:!0,value:v,output:""});continue}g({type:"text",value:v});continue}if(v!=="*"){if(v==="$"||v==="^")v=`\\${v}`;let l=Sm.exec(t());if(l)v+=l[0],w.index+=l[0].length;g({type:"text",value:v});continue}if(i&&(i.type==="globstar"||i.star===!0)){i.type="star",i.star=!0,i.value+=v,i.output=e,w.backtrack=!0,w.globstar=!0,u0(v);continue}let p=t();if(F.noextglob!==!0&&/^\([^?]/.test(p)){O0("star",v);continue}if(i.type==="star"){if(F.noglobstar===!0){u0(v);continue}let l=i.prev,Y0=l.prev,c0=l.type==="slash"||l.type==="bos",j=Y0&&(Y0.type==="star"||Y0.type==="globstar");if(F.bash===!0&&(!c0||p[0]&&p[0]!=="/")){g({type:"star",value:v,output:""});continue}let T=w.braces>0&&(l.type==="comma"||l.type==="brace"),s=h.length&&(l.type==="pipe"||l.type==="paren");if(!c0&&l.type!=="paren"&&!T&&!s){g({type:"star",value:v,output:""});continue}while(p.slice(0,3)==="/**"){let m=u[w.index+4];if(m&&m!=="/")break;p=p.slice(3),u0("/**",3)}if(l.type==="bos"&&d()){i.type="globstar",i.value+=v,i.output=R(F),w.output=i.output,w.globstar=!0,u0(v);continue}if(l.type==="slash"&&l.prev.type!=="bos"&&!j&&d()){w.output=w.output.slice(0,-(l.output+i.output).length),l.output=`(?:${l.output}`,i.type="globstar",i.output=R(F)+(F.strictSlashes?")":"|$)"),i.value+=v,w.globstar=!0,w.output+=l.output+i.output,u0(v);continue}if(l.type==="slash"&&l.prev.type!=="bos"&&p[0]==="/"){let m=p[1]!==void 0?"|$":"";w.output=w.output.slice(0,-(l.output+i.output).length),l.output=`(?:${l.output}`,i.type="globstar",i.output=`${R(F)}${G}|${G}${m})`,i.value+=v,w.output+=l.output+i.output,w.globstar=!0,u0(v+L0()),g({type:"slash",value:"/",output:""});continue}if(l.type==="bos"&&p[0]==="/"){i.type="globstar",i.value+=v,i.output=`(?:^|${G}|${R(F)}${G})`,w.output=i.output,w.globstar=!0,u0(v+L0()),g({type:"slash",value:"/",output:""});continue}w.output=w.output.slice(0,-i.output.length),i.type="globstar",i.output=R(F),i.value+=v,w.output+=i.output,w.globstar=!0,u0(v);continue}let W0={type:"star",value:v,output:e};if(F.bash===!0){if(W0.output=".*?",i.type==="bos"||i.type==="slash")W0.output=k+W0.output;g(W0);continue}if(i&&(i.type==="bracket"||i.type==="paren")&&F.regex===!0){W0.output=v,g(W0);continue}if(w.index===w.start||i.type==="slash"||i.type==="dot"){if(i.type==="dot")w.output+=x,i.output+=x;else if(F.dot===!0)w.output+=L,i.output+=L;else w.output+=k,i.output+=k;if(a()!=="*")w.output+=K,i.output+=K}g(W0)}while(w.brackets>0){if(F.strictBrackets===!0)throw SyntaxError(U6("closing","]"));w.output=QD.escapeLast(w.output,"["),$u("brackets")}while(w.parens>0){if(F.strictBrackets===!0)throw SyntaxError(U6("closing",")"));w.output=QD.escapeLast(w.output,"("),$u("parens")}while(w.braces>0){if(F.strictBrackets===!0)throw SyntaxError(U6("closing","}"));w.output=QD.escapeLast(w.output,"{"),$u("braces")}if(F.strictSlashes!==!0&&(i.type==="star"||i.type==="bracket"))g({type:"maybe_slash",value:"",output:`${G}?`});if(w.backtrack===!0){w.output="";for(let p of w.tokens)if(w.output+=p.output!=null?p.output:p.value,p.suffix)w.output+=p.suffix}return w};g2.fastpaths=(u,D)=>{let F={...D},$=typeof F.maxLength==="number"?Math.min(i9,F.maxLength):i9,B=u.length;if(B>$)throw SyntaxError(`Input length: ${B}, exceeds maximum allowed length: ${$}`);u=If[u]||u;let z=QD.isWindows(D),{DOT_LITERAL:Z,SLASH_LITERAL:q,ONE_CHAR:X,DOTS_SLASH:Q,NO_DOT:W,NO_DOTS:Y,NO_DOTS_SLASH:J,STAR:G,START_ANCHOR:K}=U9.globChars(z),H=F.dot?Y:W,f=F.dot?J:W,x=F.capture?"":"?:",L={negated:!1,prefix:""},A=F.bash===!0?".*?":G;if(F.capture)A=`(${A})`;let C=(k)=>{if(k.noglobstar===!0)return A;return`(${x}(?:(?!${K}${k.dot?Q:Z}).)*?)`},I=(k)=>{switch(k){case"*":return`${H}${X}${A}`;case".*":return`${Z}${X}${A}`;case"*.*":return`${H}${A}${Z}${X}${A}`;case"*/*":return`${H}${A}${q}${X}${f}${A}`;case"**":return H+C(F);case"**/*":return`(?:${H}${C(F)}${q})?${f}${X}${A}`;case"**/*.*":return`(?:${H}${C(F)}${q})?${f}${A}${Z}${X}${A}`;case"**/.*":return`(?:${H}${C(F)}${q})?${Z}${X}${A}`;default:{let c=/^(.*?)\.(\w+)$/.exec(k);if(!c)return;let e=I(c[1]);if(!e)return;return e+Z+c[2]}}},_=QD.removePrefix(u,L),R=I(_);if(R&&F.strictSlashes!==!0)R+=`${q}?`;return R};Ef.exports=g2});var _f=V((Mz0,Cf)=>{var bm=o("path"),Rm=jf(),d2=Pf(),o2=e8(),km=t8(),hm=(u)=>u&&typeof u==="object"&&!Array.isArray(u),Qu=(u,D,F=!1)=>{if(Array.isArray(u)){let W=u.map((J)=>Qu(J,D,F));return(J)=>{for(let G of W){let K=G(J);if(K)return K}return!1}}let $=hm(u)&&u.tokens&&u.input;if(u===""||typeof u!=="string"&&!$)throw TypeError("Expected pattern to be a non-empty string");let B=D||{},z=o2.isWindows(D),Z=$?Qu.compileRe(u,D):Qu.makeRe(u,D,!1,!0),q=Z.state;delete Z.state;let X=()=>!1;if(B.ignore){let W={...D,ignore:null,onMatch:null,onResult:null};X=Qu(B.ignore,W,F)}let Q=(W,Y=!1)=>{let{isMatch:J,match:G,output:K}=Qu.test(W,Z,D,{glob:u,posix:z}),H={glob:u,state:q,regex:Z,posix:z,input:W,output:K,match:G,isMatch:J};if(typeof B.onResult==="function")B.onResult(H);if(J===!1)return H.isMatch=!1,Y?H:!1;if(X(W)){if(typeof B.onIgnore==="function")B.onIgnore(H);return H.isMatch=!1,Y?H:!1}if(typeof B.onMatch==="function")B.onMatch(H);return Y?H:!0};if(F)Q.state=q;return Q};Qu.test=(u,D,F,{glob:$,posix:B}={})=>{if(typeof u!=="string")throw TypeError("Expected input to be a string");if(u==="")return{isMatch:!1,output:""};let z=F||{},Z=z.format||(B?o2.toPosixSlashes:null),q=u===$,X=q&&Z?Z(u):u;if(q===!1)X=Z?Z(u):u,q=X===$;if(q===!1||z.capture===!0)if(z.matchBase===!0||z.basename===!0)q=Qu.matchBase(u,D,F,B);else q=D.exec(X);return{isMatch:Boolean(q),match:q,output:X}};Qu.matchBase=(u,D,F,$=o2.isWindows(F))=>{return(D instanceof RegExp?D:Qu.makeRe(D,F)).test(bm.basename(u))};Qu.isMatch=(u,D,F)=>Qu(D,F)(u);Qu.parse=(u,D)=>{if(Array.isArray(u))return u.map((F)=>Qu.parse(F,D));return d2(u,{...D,fastpaths:!1})};Qu.scan=(u,D)=>Rm(u,D);Qu.compileRe=(u,D,F=!1,$=!1)=>{if(F===!0)return u.output;let B=D||{},z=B.contains?"":"^",Z=B.contains?"":"$",q=`${z}(?:${u.output})${Z}`;if(u&&u.negated===!0)q=`^(?!${q}).*$`;let X=Qu.toRegex(q,D);if($===!0)X.state=u;return X};Qu.makeRe=(u,D={},F=!1,$=!1)=>{if(!u||typeof u!=="string")throw TypeError("Expected a non-empty string");let B={negated:!1,fastpaths:!0};if(D.fastpaths!==!1&&(u[0]==="."||u[0]==="*"))B.output=d2.fastpaths(u,D);if(!B.output)B=d2(u,D);return Qu.compileRe(B,D,F,$)};Qu.toRegex=(u,D)=>{try{let F=D||{};return new RegExp(u,F.flags||(F.nocase?"i":""))}catch(F){if(D&&D.debug===!0)throw F;return/$^/}};Qu.constants=km;Cf.exports=Qu});var r2=V((xz0,yf)=>{var vf=o("util"),Sf=Gf(),F1=_f(),s2=e8(),Uf=(u)=>u===""||u==="./",Tf=(u)=>{let D=u.indexOf("{");return D>-1&&u.indexOf("}",D)>-1},g0=(u,D,F)=>{D=[].concat(D),u=[].concat(u);let $=new Set,B=new Set,z=new Set,Z=0,q=(W)=>{if(z.add(W.output),F&&F.onResult)F.onResult(W)};for(let W=0;W<D.length;W++){let Y=F1(String(D[W]),{...F,onResult:q},!0),J=Y.state.negated||Y.state.negatedExtglob;if(J)Z++;for(let G of u){let K=Y(G,!0);if(!(J?!K.isMatch:K.isMatch))continue;if(J)$.add(K.output);else $.delete(K.output),B.add(K.output)}}let Q=(Z===D.length?[...z]:[...B]).filter((W)=>!$.has(W));if(F&&Q.length===0){if(F.failglob===!0)throw Error(`No matches found for "${D.join(", ")}"`);if(F.nonull===!0||F.nullglob===!0)return F.unescape?D.map((W)=>W.replace(/\\/g,"")):D}return Q};g0.match=g0;g0.matcher=(u,D)=>F1(u,D);g0.isMatch=(u,D,F)=>F1(D,F)(u);g0.any=g0.isMatch;g0.not=(u,D,F={})=>{D=[].concat(D).map(String);let $=new Set,B=[],Z=new Set(g0(u,D,{...F,onResult:(q)=>{if(F.onResult)F.onResult(q);B.push(q.output)}}));for(let q of B)if(!Z.has(q))$.add(q);return[...$]};g0.contains=(u,D,F)=>{if(typeof u!=="string")throw TypeError(`Expected a string: "${vf.inspect(u)}"`);if(Array.isArray(D))return D.some(($)=>g0.contains(u,$,F));if(typeof D==="string"){if(Uf(u)||Uf(D))return!1;if(u.includes(D)||u.startsWith("./")&&u.slice(2).includes(D))return!0}return g0.isMatch(u,D,{...F,contains:!0})};g0.matchKeys=(u,D,F)=>{if(!s2.isObject(u))throw TypeError("Expected the first argument to be an object");let $=g0(Object.keys(u),D,F),B={};for(let z of $)B[z]=u[z];return B};g0.some=(u,D,F)=>{let $=[].concat(u);for(let B of[].concat(D)){let z=F1(String(B),F);if($.some((Z)=>z(Z)))return!0}return!1};g0.every=(u,D,F)=>{let $=[].concat(u);for(let B of[].concat(D)){let z=F1(String(B),F);if(!$.every((Z)=>z(Z)))return!1}return!0};g0.all=(u,D,F)=>{if(typeof u!=="string")throw TypeError(`Expected a string: "${vf.inspect(u)}"`);return[].concat(D).every(($)=>F1($,F)(u))};g0.capture=(u,D,F)=>{let $=s2.isWindows(F),z=F1.makeRe(String(u),{...F,capture:!0}).exec($?s2.toPosixSlashes(D):D);if(z)return z.slice(1).map((Z)=>Z===void 0?"":Z)};g0.makeRe=(...u)=>F1.makeRe(...u);g0.scan=(...u)=>F1.scan(...u);g0.parse=(u,D)=>{let F=[];for(let $ of[].concat(u||[]))for(let B of Sf(String($),D))F.push(F1.parse(B,D));return F};g0.braces=(u,D)=>{if(typeof u!=="string")throw TypeError("Expected a string");if(D&&D.nobrace===!0||!Tf(u))return[u];return Sf(u,D)};g0.braceExpand=(u,D)=>{if(typeof u!=="string")throw TypeError("Expected a string");return g0.braces(u,{...D,expand:!0})};g0.hasBraces=Tf;yf.exports=g0});var of=V((gf)=>{Object.defineProperty(gf,"__esModule",{value:!0});gf.isAbsolute=gf.partitionAbsoluteAndRelative=gf.removeDuplicateSlashes=gf.matchAny=gf.convertPatternsToRe=gf.makeRe=gf.getPatternParts=gf.expandBraceExpansion=gf.expandPatternsWithBraceExpansion=gf.isAffectDepthOfReadingPattern=gf.endsWithSlashGlobStar=gf.hasGlobStar=gf.getBaseDirectory=gf.isPatternRelatedToParentDirectory=gf.getPatternsOutsideCurrentDirectory=gf.getPatternsInsideCurrentDirectory=gf.getPositivePatterns=gf.getNegativePatterns=gf.isPositivePattern=gf.isNegativePattern=gf.convertToNegativePattern=gf.convertToPositivePattern=gf.isDynamicPattern=gf.isStaticPattern=void 0;var bf=o("path"),cm=UH(),a2=r2(),Rf="**",mm="\\",nm=/[*?]|^!/,pm=/\[[^[]*]/,lm=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,gm=/[!*+?@]\([^(]*\)/,dm=/,|\.\./,om=/(?!^)\/{2,}/g;function kf(u,D={}){return!hf(u,D)}gf.isStaticPattern=kf;function hf(u,D={}){if(u==="")return!1;if(D.caseSensitiveMatch===!1||u.includes(mm))return!0;if(nm.test(u)||pm.test(u)||lm.test(u))return!0;if(D.extglob!==!1&&gm.test(u))return!0;if(D.braceExpansion!==!1&&sm(u))return!0;return!1}gf.isDynamicPattern=hf;function sm(u){let D=u.indexOf("{");if(D===-1)return!1;let F=u.indexOf("}",D+1);if(F===-1)return!1;let $=u.slice(D,F);return dm.test($)}function rm(u){return v9(u)?u.slice(1):u}gf.convertToPositivePattern=rm;function am(u){return"!"+u}gf.convertToNegativePattern=am;function v9(u){return u.startsWith("!")&&u[1]!=="("}gf.isNegativePattern=v9;function cf(u){return!v9(u)}gf.isPositivePattern=cf;function tm(u){return u.filter(v9)}gf.getNegativePatterns=tm;function em(u){return u.filter(cf)}gf.getPositivePatterns=em;function un(u){return u.filter((D)=>!t2(D))}gf.getPatternsInsideCurrentDirectory=un;function Dn(u){return u.filter(t2)}gf.getPatternsOutsideCurrentDirectory=Dn;function t2(u){return u.startsWith("..")||u.startsWith("./..")}gf.isPatternRelatedToParentDirectory=t2;function Fn(u){return cm(u,{flipBackslashes:!1})}gf.getBaseDirectory=Fn;function $n(u){return u.includes(Rf)}gf.hasGlobStar=$n;function mf(u){return u.endsWith("/"+Rf)}gf.endsWithSlashGlobStar=mf;function Bn(u){let D=bf.basename(u);return mf(u)||kf(D)}gf.isAffectDepthOfReadingPattern=Bn;function zn(u){return u.reduce((D,F)=>{return D.concat(nf(F))},[])}gf.expandPatternsWithBraceExpansion=zn;function nf(u){let D=a2.braces(u,{expand:!0,nodupes:!0,keepEscaping:!0});return D.sort((F,$)=>F.length-$.length),D.filter((F)=>F!=="")}gf.expandBraceExpansion=nf;function Zn(u,D){let{parts:F}=a2.scan(u,Object.assign(Object.assign({},D),{parts:!0}));if(F.length===0)F=[u];if(F[0].startsWith("/"))F[0]=F[0].slice(1),F.unshift("");return F}gf.getPatternParts=Zn;function pf(u,D){return a2.makeRe(u,D)}gf.makeRe=pf;function qn(u,D){return u.map((F)=>pf(F,D))}gf.convertPatternsToRe=qn;function Xn(u,D){return D.some((F)=>F.test(u))}gf.matchAny=Xn;function Qn(u){return u.replace(om,"/")}gf.removeDuplicateSlashes=Qn;function Wn(u){let D=[],F=[];for(let $ of u)if(lf($))D.push($);else F.push($);return[D,F]}gf.partitionAbsoluteAndRelative=Wn;function lf(u){return bf.isAbsolute(u)}gf.isAbsolute=lf});var tf=V((Az0,af)=>{var Tn=o("stream"),sf=Tn.PassThrough,yn=Array.prototype.slice;af.exports=bn;function bn(){let u=[],D=yn.call(arguments),F=!1,$=D[D.length-1];if($&&!Array.isArray($)&&$.pipe==null)D.pop();else $={};let B=$.end!==!1,z=$.pipeError===!0;if($.objectMode==null)$.objectMode=!0;if($.highWaterMark==null)$.highWaterMark=65536;let Z=sf($);function q(){for(let W=0,Y=arguments.length;W<Y;W++)u.push(rf(arguments[W],$));return X(),this}function X(){if(F)return;F=!0;let W=u.shift();if(!W){process.nextTick(Q);return}if(!Array.isArray(W))W=[W];let Y=W.length+1;function J(){if(--Y>0)return;F=!1,X()}function G(K){function H(){if(K.removeListener("merge2UnpipeEnd",H),K.removeListener("end",H),z)K.removeListener("error",f);J()}function f(x){Z.emit("error",x)}if(K._readableState.endEmitted)return J();if(K.on("merge2UnpipeEnd",H),K.on("end",H),z)K.on("error",f);K.pipe(Z,{end:!1}),K.resume()}for(let K=0;K<W.length;K++)G(W[K]);J()}function Q(){if(F=!1,Z.emit("queueDrain"),B)Z.end()}if(Z.setMaxListeners(0),Z.add=q,Z.on("unpipe",function(W){W.emit("merge2UnpipeEnd")}),D.length)q.apply(null,D);return Z}function rf(u,D){if(!Array.isArray(u)){if(!u._readableState&&u.pipe)u=u.pipe(sf(D));if(!u._readableState||!u.pause||!u.pipe)throw Error("Only readable stream can be merged.");u.pause()}else for(let F=0,$=u.length;F<$;F++)u[F]=rf(u[F],D);return u}});var FV=V((uV)=>{Object.defineProperty(uV,"__esModule",{value:!0});uV.merge=void 0;var Rn=tf();function kn(u){let D=Rn(u);return u.forEach((F)=>{F.once("error",($)=>D.emit("error",$))}),D.once("close",()=>ef(u)),D.once("end",()=>ef(u)),D}uV.merge=kn;function ef(u){u.forEach((D)=>D.emit("close"))}});var zV=V(($V)=>{Object.defineProperty($V,"__esModule",{value:!0});$V.isEmpty=$V.isString=void 0;function hn(u){return typeof u==="string"}$V.isString=hn;function cn(u){return u===""}$V.isEmpty=cn});var f1=V((ZV)=>{Object.defineProperty(ZV,"__esModule",{value:!0});ZV.string=ZV.stream=ZV.pattern=ZV.path=ZV.fs=ZV.errno=ZV.array=void 0;var nn=YH();ZV.array=nn;var pn=KH();ZV.errno=pn;var ln=LH();ZV.fs=ln;var gn=NH();ZV.path=gn;var dn=of();ZV.pattern=dn;var on=FV();ZV.stream=on;var sn=zV();ZV.string=sn});var GV=V((YV)=>{Object.defineProperty(YV,"__esModule",{value:!0});YV.convertPatternGroupToTask=YV.convertPatternGroupsToTasks=YV.groupPatternsByBaseDirectory=YV.getNegativePatternsAsPositive=YV.getPositivePatterns=YV.convertPatternsToTasks=YV.generate=void 0;var bD=f1();function Fp(u,D){let F=XV(u,D),$=XV(D.ignore,D),B=QV(F),z=WV(F,$),Z=B.filter((W)=>bD.pattern.isStaticPattern(W,D)),q=B.filter((W)=>bD.pattern.isDynamicPattern(W,D)),X=e2(Z,z,!1),Q=e2(q,z,!0);return X.concat(Q)}YV.generate=Fp;function XV(u,D){let F=u;if(D.braceExpansion)F=bD.pattern.expandPatternsWithBraceExpansion(F);if(D.baseNameMatch)F=F.map(($)=>$.includes("/")?$:`**/${$}`);return F.map(($)=>bD.pattern.removeDuplicateSlashes($))}function e2(u,D,F){let $=[],B=bD.pattern.getPatternsOutsideCurrentDirectory(u),z=bD.pattern.getPatternsInsideCurrentDirectory(u),Z=uB(B),q=uB(z);if($.push(...DB(Z,D,F)),"."in q)$.push(FB(".",z,D,F));else $.push(...DB(q,D,F));return $}YV.convertPatternsToTasks=e2;function QV(u){return bD.pattern.getPositivePatterns(u)}YV.getPositivePatterns=QV;function WV(u,D){return bD.pattern.getNegativePatterns(u).concat(D).map(bD.pattern.convertToPositivePattern)}YV.getNegativePatternsAsPositive=WV;function uB(u){let D={};return u.reduce((F,$)=>{let B=bD.pattern.getBaseDirectory($);if(B in F)F[B].push($);else F[B]=[$];return F},D)}YV.groupPatternsByBaseDirectory=uB;function DB(u,D,F){return Object.keys(u).map(($)=>{return FB($,u[$],D,F)})}YV.convertPatternGroupsToTasks=DB;function FB(u,D,F,$){return{dynamic:$,positive:D,negative:F,base:u,patterns:[].concat(D,F.map(bD.pattern.convertToNegativePattern))}}YV.convertPatternGroupToTask=FB});var VV=V((HV)=>{Object.defineProperty(HV,"__esModule",{value:!0});HV.read=void 0;function Qp(u,D,F){D.fs.lstat(u,($,B)=>{if($!==null){KV(F,$);return}if(!B.isSymbolicLink()||!D.followSymbolicLink){$B(F,B);return}D.fs.stat(u,(z,Z)=>{if(z!==null){if(D.throwErrorOnBrokenSymbolicLink){KV(F,z);return}$B(F,B);return}if(D.markSymbolicLink)Z.isSymbolicLink=()=>!0;$B(F,Z)})})}HV.read=Qp;function KV(u,D){u(D)}function $B(u,D){u(null,D)}});var xV=V((LV)=>{Object.defineProperty(LV,"__esModule",{value:!0});LV.read=void 0;function Wp(u,D){let F=D.fs.lstatSync(u);if(!F.isSymbolicLink()||!D.followSymbolicLink)return F;try{let $=D.fs.statSync(u);if(D.markSymbolicLink)$.isSymbolicLink=()=>!0;return $}catch($){if(!D.throwErrorOnBrokenSymbolicLink)return F;throw $}}LV.read=Wp});var wV=V((OV)=>{Object.defineProperty(OV,"__esModule",{value:!0});OV.createFileSystemAdapter=OV.FILE_SYSTEM_ADAPTER=void 0;var S9=o("fs");OV.FILE_SYSTEM_ADAPTER={lstat:S9.lstat,stat:S9.stat,lstatSync:S9.lstatSync,statSync:S9.statSync};function Yp(u){if(u===void 0)return OV.FILE_SYSTEM_ADAPTER;return Object.assign(Object.assign({},OV.FILE_SYSTEM_ADAPTER),u)}OV.createFileSystemAdapter=Yp});var IV=V((jV)=>{Object.defineProperty(jV,"__esModule",{value:!0});var Jp=wV();class NV{constructor(u={}){this._options=u,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Jp.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(u,D){return u!==null&&u!==void 0?u:D}}jV.default=NV});var TF=V((PV)=>{Object.defineProperty(PV,"__esModule",{value:!0});PV.statSync=PV.stat=PV.Settings=void 0;var EV=VV(),Kp=xV(),zB=IV();PV.Settings=zB.default;function Hp(u,D,F){if(typeof D==="function"){EV.read(u,ZB(),D);return}EV.read(u,ZB(D),F)}PV.stat=Hp;function fp(u,D){let F=ZB(D);return Kp.read(u,F)}PV.statSync=fp;function ZB(u={}){if(u instanceof zB.default)return u;return new zB.default(u)}});var iV=V((iz0,UV)=>{/*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var _V;UV.exports=typeof queueMicrotask==="function"?queueMicrotask.bind(typeof window<"u"?window:global):(u)=>(_V||(_V=Promise.resolve())).then(u).catch((D)=>setTimeout(()=>{throw D},0))});var SV=V((vz0,vV)=>{/*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */vV.exports=xp;var Mp=iV();function xp(u,D){let F,$,B,z=!0;if(Array.isArray(u))F=[],$=u.length;else B=Object.keys(u),F={},$=B.length;function Z(X){function Q(){if(D)D(X,F);D=null}if(z)Mp(Q);else Q()}function q(X,Q,W){if(F[X]=W,--$===0||Q)Z(Q)}if(!$)Z(null);else if(B)B.forEach(function(X){u[X](function(Q,W){q(X,Q,W)})});else u.forEach(function(X,Q){X(function(W,Y){q(Q,W,Y)})});z=!1}});var qB=V((bV)=>{Object.defineProperty(bV,"__esModule",{value:!0});bV.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var T9=process.versions.node.split(".");if(T9[0]===void 0||T9[1]===void 0)throw Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var TV=Number.parseInt(T9[0],10),Op=Number.parseInt(T9[1],10),yV=10,Ap=10,wp=TV>yV,Np=TV===yV&&Op>=Ap;bV.IS_SUPPORT_READDIR_WITH_FILE_TYPES=wp||Np});var mV=V((hV)=>{Object.defineProperty(hV,"__esModule",{value:!0});hV.createDirentFromStats=void 0;class kV{constructor(u,D){this.name=u,this.isBlockDevice=D.isBlockDevice.bind(D),this.isCharacterDevice=D.isCharacterDevice.bind(D),this.isDirectory=D.isDirectory.bind(D),this.isFIFO=D.isFIFO.bind(D),this.isFile=D.isFile.bind(D),this.isSocket=D.isSocket.bind(D),this.isSymbolicLink=D.isSymbolicLink.bind(D)}}function jp(u,D){return new kV(u,D)}hV.createDirentFromStats=jp});var XB=V((nV)=>{Object.defineProperty(nV,"__esModule",{value:!0});nV.fs=void 0;var Ip=mV();nV.fs=Ip});var QB=V((lV)=>{Object.defineProperty(lV,"__esModule",{value:!0});lV.joinPathSegments=void 0;function Ep(u,D,F){if(u.endsWith(F))return u+D;return u+F+D}lV.joinPathSegments=Ep});var uL=V((tV)=>{Object.defineProperty(tV,"__esModule",{value:!0});tV.readdir=tV.readdirWithFileTypes=tV.read=void 0;var Pp=TF(),dV=SV(),Cp=qB(),oV=XB(),sV=QB();function _p(u,D,F){if(!D.stats&&Cp.IS_SUPPORT_READDIR_WITH_FILE_TYPES){rV(u,D,F);return}aV(u,D,F)}tV.read=_p;function rV(u,D,F){D.fs.readdir(u,{withFileTypes:!0},($,B)=>{if($!==null){y9(F,$);return}let z=B.map((q)=>({dirent:q,name:q.name,path:sV.joinPathSegments(u,q.name,D.pathSegmentSeparator)}));if(!D.followSymbolicLinks){WB(F,z);return}let Z=z.map((q)=>Up(q,D));dV(Z,(q,X)=>{if(q!==null){y9(F,q);return}WB(F,X)})})}tV.readdirWithFileTypes=rV;function Up(u,D){return(F)=>{if(!u.dirent.isSymbolicLink()){F(null,u);return}D.fs.stat(u.path,($,B)=>{if($!==null){if(D.throwErrorOnBrokenSymbolicLink){F($);return}F(null,u);return}u.dirent=oV.fs.createDirentFromStats(u.name,B),F(null,u)})}}function aV(u,D,F){D.fs.readdir(u,($,B)=>{if($!==null){y9(F,$);return}let z=B.map((Z)=>{let q=sV.joinPathSegments(u,Z,D.pathSegmentSeparator);return(X)=>{Pp.stat(q,D.fsStatSettings,(Q,W)=>{if(Q!==null){X(Q);return}let Y={name:Z,path:q,dirent:oV.fs.createDirentFromStats(Z,W)};if(D.stats)Y.stats=W;X(null,Y)})}});dV(z,(Z,q)=>{if(Z!==null){y9(F,Z);return}WB(F,q)})})}tV.readdir=aV;function y9(u,D){u(D)}function WB(u,D){u(null,D)}});var qL=V((zL)=>{Object.defineProperty(zL,"__esModule",{value:!0});zL.readdir=zL.readdirWithFileTypes=zL.read=void 0;var Sp=TF(),Tp=qB(),DL=XB(),FL=QB();function yp(u,D){if(!D.stats&&Tp.IS_SUPPORT_READDIR_WITH_FILE_TYPES)return $L(u,D);return BL(u,D)}zL.read=yp;function $L(u,D){return D.fs.readdirSync(u,{withFileTypes:!0}).map(($)=>{let B={dirent:$,name:$.name,path:FL.joinPathSegments(u,$.name,D.pathSegmentSeparator)};if(B.dirent.isSymbolicLink()&&D.followSymbolicLinks)try{let z=D.fs.statSync(B.path);B.dirent=DL.fs.createDirentFromStats(B.name,z)}catch(z){if(D.throwErrorOnBrokenSymbolicLink)throw z}return B})}zL.readdirWithFileTypes=$L;function BL(u,D){return D.fs.readdirSync(u).map(($)=>{let B=FL.joinPathSegments(u,$,D.pathSegmentSeparator),z=Sp.statSync(B,D.fsStatSettings),Z={name:$,path:B,dirent:DL.fs.createDirentFromStats($,z)};if(D.stats)Z.stats=z;return Z})}zL.readdir=BL});var WL=V((XL)=>{Object.defineProperty(XL,"__esModule",{value:!0});XL.createFileSystemAdapter=XL.FILE_SYSTEM_ADAPTER=void 0;var i6=o("fs");XL.FILE_SYSTEM_ADAPTER={lstat:i6.lstat,stat:i6.stat,lstatSync:i6.lstatSync,statSync:i6.statSync,readdir:i6.readdir,readdirSync:i6.readdirSync};function kp(u){if(u===void 0)return XL.FILE_SYSTEM_ADAPTER;return Object.assign(Object.assign({},XL.FILE_SYSTEM_ADAPTER),u)}XL.createFileSystemAdapter=kp});var GL=V((JL)=>{Object.defineProperty(JL,"__esModule",{value:!0});var hp=o("path"),cp=TF(),mp=WL();class YL{constructor(u={}){this._options=u,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=mp.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,hp.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new cp.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(u,D){return u!==null&&u!==void 0?u:D}}JL.default=YL});var b9=V((HL)=>{Object.defineProperty(HL,"__esModule",{value:!0});HL.Settings=HL.scandirSync=HL.scandir=void 0;var KL=uL(),pp=qL(),JB=GL();HL.Settings=JB.default;function lp(u,D,F){if(typeof D==="function"){KL.read(u,GB(),D);return}KL.read(u,GB(D),F)}HL.scandir=lp;function gp(u,D){let F=GB(D);return pp.read(u,F)}HL.scandirSync=gp;function GB(u={}){if(u instanceof JB.default)return u;return new JB.default(u)}});var LL=V((nz0,VL)=>{function sp(u){var D=new u,F=D;function $(){var z=D;if(z.next)D=z.next;else D=new u,F=D;return z.next=null,z}function B(z){F.next=z,F=z}return{get:$,release:B}}VL.exports=sp});var xL=V((pz0,KB)=>{var rp=LL();function ML(u,D,F){if(typeof u==="function")F=D,D=u,u=null;if(!(F>=1))throw Error("fastqueue concurrency must be equal to or greater than 1");var $=rp(ap),B=null,z=null,Z=0,q=null,X={push:H,drain:ru,saturated:ru,pause:W,paused:!1,get concurrency(){return F},set concurrency(_){if(!(_>=1))throw Error("fastqueue concurrency must be equal to or greater than 1");if(F=_,X.paused)return;for(;B&&Z<F;)Z++,x()},running:Q,resume:G,idle:K,length:Y,getQueue:J,unshift:f,empty:ru,kill:L,killAndDrain:A,error:I,abort:C};return X;function Q(){return Z}function W(){X.paused=!0}function Y(){var _=B,R=0;while(_)_=_.next,R++;return R}function J(){var _=B,R=[];while(_)R.push(_.value),_=_.next;return R}function G(){if(!X.paused)return;if(X.paused=!1,B===null){Z++,x();return}for(;B&&Z<F;)Z++,x()}function K(){return Z===0&&X.length()===0}function H(_,R){var k=$.get();if(k.context=u,k.release=x,k.value=_,k.callback=R||ru,k.errorHandler=q,Z>=F||X.paused)if(z)z.next=k,z=k;else B=k,z=k,X.saturated();else Z++,D.call(u,k.value,k.worked)}function f(_,R){var k=$.get();if(k.context=u,k.release=x,k.value=_,k.callback=R||ru,k.errorHandler=q,Z>=F||X.paused)if(B)k.next=B,B=k;else B=k,z=k,X.saturated();else Z++,D.call(u,k.value,k.worked)}function x(_){if(_)$.release(_);var R=B;if(R&&Z<=F)if(!X.paused){if(z===B)z=null;if(B=R.next,R.next=null,D.call(u,R.value,R.worked),z===null)X.empty()}else Z--;else if(--Z===0)X.drain()}function L(){B=null,z=null,X.drain=ru}function A(){B=null,z=null,X.drain(),X.drain=ru}function C(){var _=B;B=null,z=null;while(_){var{next:R,callback:k,errorHandler:c,value:e,context:w}=_;if(_.value=null,_.callback=ru,_.errorHandler=null,c)c(Error("abort"),e);k.call(w,Error("abort")),_.release(_),_=R}X.drain=ru}function I(_){q=_}}function ru(){}function ap(){this.value=null,this.callback=ru,this.next=null,this.release=ru,this.context=null,this.errorHandler=null;var u=this;this.worked=function(F,$){var{callback:B,errorHandler:z,value:Z}=u;if(u.value=null,u.callback=ru,u.errorHandler)z(F,Z);B.call(u.context,F,$),u.release(u)}}function tp(u,D,F){if(typeof u==="function")F=D,D=u,u=null;function $(W,Y){D.call(this,W).then(function(J){Y(null,J)},Y)}var B=ML(u,$,F),z=B.push,Z=B.unshift;return B.push=q,B.unshift=X,B.drained=Q,B;function q(W){var Y=new Promise(function(J,G){z(W,function(K,H){if(K){G(K);return}J(H)})});return Y.catch(ru),Y}function X(W){var Y=new Promise(function(J,G){Z(W,function(K,H){if(K){G(K);return}J(H)})});return Y.catch(ru),Y}function Q(){var W=new Promise(function(Y){process.nextTick(function(){if(B.idle())Y();else{var J=B.drain;B.drain=function(){if(typeof J==="function")J();Y(),B.drain=J}}})});return W}}KB.exports=ML;KB.exports.promise=tp});var R9=V((OL)=>{Object.defineProperty(OL,"__esModule",{value:!0});OL.joinPathSegments=OL.replacePathSegmentSeparator=OL.isAppliedFilter=OL.isFatalError=void 0;function ep(u,D){if(u.errorFilter===null)return!0;return!u.errorFilter(D)}OL.isFatalError=ep;function ul(u,D){return u===null||u(D)}OL.isAppliedFilter=ul;function Dl(u,D){return u.split(/[/\\]/).join(D)}OL.replacePathSegmentSeparator=Dl;function Fl(u,D,F){if(u==="")return D;if(u.endsWith(F))return u+D;return u+F+D}OL.joinPathSegments=Fl});var HB=V((NL)=>{Object.defineProperty(NL,"__esModule",{value:!0});var Zl=R9();class wL{constructor(u,D){this._root=u,this._settings=D,this._root=Zl.replacePathSegmentSeparator(u,D.pathSegmentSeparator)}}NL.default=wL});var fB=V((IL)=>{Object.defineProperty(IL,"__esModule",{value:!0});var Xl=o("events"),Ql=b9(),Wl=xL(),k9=R9(),Yl=HB();class jL extends Yl.default{constructor(u,D){super(u,D);this._settings=D,this._scandir=Ql.scandir,this._emitter=new Xl.EventEmitter,this._queue=Wl(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{if(!this._isFatalError)this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(u){this._emitter.on("entry",u)}onError(u){this._emitter.once("error",u)}onEnd(u){this._emitter.once("end",u)}_pushToQueue(u,D){let F={directory:u,base:D};this._queue.push(F,($)=>{if($!==null)this._handleError($)})}_worker(u,D){this._scandir(u.directory,this._settings.fsScandirSettings,(F,$)=>{if(F!==null){D(F,void 0);return}for(let B of $)this._handleEntry(B,u.base);D(null,void 0)})}_handleError(u){if(this._isDestroyed||!k9.isFatalError(this._settings,u))return;this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",u)}_handleEntry(u,D){if(this._isDestroyed||this._isFatalError)return;let F=u.path;if(D!==void 0)u.path=k9.joinPathSegments(D,u.name,this._settings.pathSegmentSeparator);if(k9.isAppliedFilter(this._settings.entryFilter,u))this._emitEntry(u);if(u.dirent.isDirectory()&&k9.isAppliedFilter(this._settings.deepFilter,u))this._pushToQueue(F,D===void 0?void 0:u.path)}_emitEntry(u){this._emitter.emit("entry",u)}}IL.default=jL});var CL=V((PL)=>{Object.defineProperty(PL,"__esModule",{value:!0});var Gl=fB();class EL{constructor(u,D){this._root=u,this._settings=D,this._reader=new Gl.default(this._root,this._settings),this._storage=[]}read(u){this._reader.onError((D)=>{Kl(u,D)}),this._reader.onEntry((D)=>{this._storage.push(D)}),this._reader.onEnd(()=>{Hl(u,this._storage)}),this._reader.read()}}PL.default=EL;function Kl(u,D){u(D)}function Hl(u,D){u(null,D)}});var iL=V((UL)=>{Object.defineProperty(UL,"__esModule",{value:!0});var Vl=o("stream"),Ll=fB();class _L{constructor(u,D){this._root=u,this._settings=D,this._reader=new Ll.default(this._root,this._settings),this._stream=new Vl.Readable({objectMode:!0,read:()=>{},destroy:()=>{if(!this._reader.isDestroyed)this._reader.destroy()}})}read(){return this._reader.onError((u)=>{this._stream.emit("error",u)}),this._reader.onEntry((u)=>{this._stream.push(u)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}}UL.default=_L});var TL=V((SL)=>{Object.defineProperty(SL,"__esModule",{value:!0});var xl=b9(),h9=R9(),Ol=HB();class vL extends Ol.default{constructor(){super(...arguments);this._scandir=xl.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(u,D){this._queue.add({directory:u,base:D})}_handleQueue(){for(let u of this._queue.values())this._handleDirectory(u.directory,u.base)}_handleDirectory(u,D){try{let F=this._scandir(u,this._settings.fsScandirSettings);for(let $ of F)this._handleEntry($,D)}catch(F){this._handleError(F)}}_handleError(u){if(!h9.isFatalError(this._settings,u))return;throw u}_handleEntry(u,D){let F=u.path;if(D!==void 0)u.path=h9.joinPathSegments(D,u.name,this._settings.pathSegmentSeparator);if(h9.isAppliedFilter(this._settings.entryFilter,u))this._pushToStorage(u);if(u.dirent.isDirectory()&&h9.isAppliedFilter(this._settings.deepFilter,u))this._pushToQueue(F,D===void 0?void 0:u.path)}_pushToStorage(u){this._storage.push(u)}}SL.default=vL});var RL=V((bL)=>{Object.defineProperty(bL,"__esModule",{value:!0});var wl=TL();class yL{constructor(u,D){this._root=u,this._settings=D,this._reader=new wl.default(this._root,this._settings)}read(){return this._reader.read()}}bL.default=yL});var cL=V((hL)=>{Object.defineProperty(hL,"__esModule",{value:!0});var jl=o("path"),Il=b9();class kL{constructor(u={}){this._options=u,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,jl.sep),this.fsScandirSettings=new Il.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(u,D){return u!==null&&u!==void 0?u:D}}hL.default=kL});var m9=V((nL)=>{Object.defineProperty(nL,"__esModule",{value:!0});nL.Settings=nL.walkStream=nL.walkSync=nL.walk=void 0;var mL=CL(),Pl=iL(),Cl=RL(),VB=cL();nL.Settings=VB.default;function _l(u,D,F){if(typeof D==="function"){new mL.default(u,c9()).read(D);return}new mL.default(u,c9(D)).read(F)}nL.walk=_l;function Ul(u,D){let F=c9(D);return new Cl.default(u,F).read()}nL.walkSync=Ul;function il(u,D){let F=c9(D);return new Pl.default(u,F).read()}nL.walkStream=il;function c9(u={}){if(u instanceof VB.default)return u;return new VB.default(u)}});var n9=V((dL)=>{Object.defineProperty(dL,"__esModule",{value:!0});var yl=o("path"),bl=TF(),lL=f1();class gL{constructor(u){this._settings=u,this._fsStatSettings=new bl.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(u){return yl.resolve(this._settings.cwd,u)}_makeEntry(u,D){let F={name:D,path:D,dirent:lL.fs.createDirentFromStats(D,u)};if(this._settings.stats)F.stats=u;return F}_isFatalError(u){return!lL.errno.isEnoentCodeError(u)&&!this._settings.suppressErrors}}dL.default=gL});var LB=V((sL)=>{Object.defineProperty(sL,"__esModule",{value:!0});var kl=o("stream"),hl=TF(),cl=m9(),ml=n9();class oL extends ml.default{constructor(){super(...arguments);this._walkStream=cl.walkStream,this._stat=hl.stat}dynamic(u,D){return this._walkStream(u,D)}static(u,D){let F=u.map(this._getFullEntryPath,this),$=new kl.PassThrough({objectMode:!0});$._write=(B,z,Z)=>{return this._getEntry(F[B],u[B],D).then((q)=>{if(q!==null&&D.entryFilter(q))$.push(q);if(B===F.length-1)$.end();Z()}).catch(Z)};for(let B=0;B<F.length;B++)$.write(B);return $}_getEntry(u,D,F){return this._getStat(u).then(($)=>this._makeEntry($,D)).catch(($)=>{if(F.errorFilter($))return null;throw $})}_getStat(u){return new Promise((D,F)=>{this._stat(u,this._fsStatSettings,($,B)=>{return $===null?D(B):F($)})})}}sL.default=oL});var tL=V((aL)=>{Object.defineProperty(aL,"__esModule",{value:!0});var pl=m9(),ll=n9(),gl=LB();class rL extends ll.default{constructor(){super(...arguments);this._walkAsync=pl.walk,this._readerStream=new gl.default(this._settings)}dynamic(u,D){return new Promise((F,$)=>{this._walkAsync(u,D,(B,z)=>{if(B===null)F(z);else $(B)})})}async static(u,D){let F=[],$=this._readerStream.static(u,D);return new Promise((B,z)=>{$.once("error",z),$.on("data",(Z)=>F.push(Z)),$.once("end",()=>B(F))})}}aL.default=rL});var DM=V((uM)=>{Object.defineProperty(uM,"__esModule",{value:!0});var D4=f1();class eL{constructor(u,D,F){this._patterns=u,this._settings=D,this._micromatchOptions=F,this._storage=[],this._fillStorage()}_fillStorage(){for(let u of this._patterns){let D=this._getPatternSegments(u),F=this._splitSegmentsIntoSections(D);this._storage.push({complete:F.length<=1,pattern:u,segments:D,sections:F})}}_getPatternSegments(u){return D4.pattern.getPatternParts(u,this._micromatchOptions).map((F)=>{if(!D4.pattern.isDynamicPattern(F,this._settings))return{dynamic:!1,pattern:F};return{dynamic:!0,pattern:F,patternRe:D4.pattern.makeRe(F,this._micromatchOptions)}})}_splitSegmentsIntoSections(u){return D4.array.splitWhen(u,(D)=>D.dynamic&&D4.pattern.hasGlobStar(D.pattern))}}uM.default=eL});var BM=V(($M)=>{Object.defineProperty($M,"__esModule",{value:!0});var sl=DM();class FM extends sl.default{match(u){let D=u.split("/"),F=D.length,$=this._storage.filter((B)=>!B.complete||B.segments.length>F);for(let B of $){let z=B.sections[0];if(!B.complete&&F>z.length)return!0;if(D.every((q,X)=>{let Q=B.segments[X];if(Q.dynamic&&Q.patternRe.test(q))return!0;if(!Q.dynamic&&Q.pattern===q)return!0;return!1}))return!0}return!1}}$M.default=FM});var qM=V((ZM)=>{Object.defineProperty(ZM,"__esModule",{value:!0});var p9=f1(),al=BM();class zM{constructor(u,D){this._settings=u,this._micromatchOptions=D}getFilter(u,D,F){let $=this._getMatcher(D),B=this._getNegativePatternsRe(F);return(z)=>this._filter(u,z,$,B)}_getMatcher(u){return new al.default(u,this._settings,this._micromatchOptions)}_getNegativePatternsRe(u){let D=u.filter(p9.pattern.isAffectDepthOfReadingPattern);return p9.pattern.convertPatternsToRe(D,this._micromatchOptions)}_filter(u,D,F,$){if(this._isSkippedByDeep(u,D.path))return!1;if(this._isSkippedSymbolicLink(D))return!1;let B=p9.path.removeLeadingDotSegment(D.path);if(this._isSkippedByPositivePatterns(B,F))return!1;return this._isSkippedByNegativePatterns(B,$)}_isSkippedByDeep(u,D){if(this._settings.deep===1/0)return!1;return this._getEntryLevel(u,D)>=this._settings.deep}_getEntryLevel(u,D){let F=D.split("/").length;if(u==="")return F;let $=u.split("/").length;return F-$}_isSkippedSymbolicLink(u){return!this._settings.followSymbolicLinks&&u.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(u,D){return!this._settings.baseNameMatch&&!D.match(u)}_isSkippedByNegativePatterns(u,D){return!p9.pattern.matchAny(u,D)}}ZM.default=zM});var WM=V((QM)=>{Object.defineProperty(QM,"__esModule",{value:!0});var o1=f1();class XM{constructor(u,D){this._settings=u,this._micromatchOptions=D,this.index=new Map}getFilter(u,D){let[F,$]=o1.pattern.partitionAbsoluteAndRelative(D),B={positive:{all:o1.pattern.convertPatternsToRe(u,this._micromatchOptions)},negative:{absolute:o1.pattern.convertPatternsToRe(F,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:o1.pattern.convertPatternsToRe($,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return(z)=>this._filter(z,B)}_filter(u,D){let F=o1.path.removeLeadingDotSegment(u.path);if(this._settings.unique&&this._isDuplicateEntry(F))return!1;if(this._onlyFileFilter(u)||this._onlyDirectoryFilter(u))return!1;let $=this._isMatchToPatternsSet(F,D,u.dirent.isDirectory());if(this._settings.unique&&$)this._createIndexRecord(F);return $}_isDuplicateEntry(u){return this.index.has(u)}_createIndexRecord(u){this.index.set(u,void 0)}_onlyFileFilter(u){return this._settings.onlyFiles&&!u.dirent.isFile()}_onlyDirectoryFilter(u){return this._settings.onlyDirectories&&!u.dirent.isDirectory()}_isMatchToPatternsSet(u,D,F){if(!this._isMatchToPatterns(u,D.positive.all,F))return!1;if(this._isMatchToPatterns(u,D.negative.relative,F))return!1;if(this._isMatchToAbsoluteNegative(u,D.negative.absolute,F))return!1;return!0}_isMatchToAbsoluteNegative(u,D,F){if(D.length===0)return!1;let $=o1.path.makeAbsolute(this._settings.cwd,u);return this._isMatchToPatterns($,D,F)}_isMatchToPatterns(u,D,F){if(D.length===0)return!1;let $=o1.pattern.matchAny(u,D);if(!$&&F)return o1.pattern.matchAny(u+"/",D);return $}}QM.default=XM});var GM=V((JM)=>{Object.defineProperty(JM,"__esModule",{value:!0});var ug=f1();class YM{constructor(u){this._settings=u}getFilter(){return(u)=>this._isNonFatalError(u)}_isNonFatalError(u){return ug.errno.isEnoentCodeError(u)||this._settings.suppressErrors}}JM.default=YM});var VM=V((fM)=>{Object.defineProperty(fM,"__esModule",{value:!0});var KM=f1();class HM{constructor(u){this._settings=u}getTransformer(){return(u)=>this._transform(u)}_transform(u){let D=u.path;if(this._settings.absolute)D=KM.path.makeAbsolute(this._settings.cwd,D),D=KM.path.unixify(D);if(this._settings.markDirectories&&u.dirent.isDirectory())D+="/";if(!this._settings.objectMode)return D;return Object.assign(Object.assign({},u),{path:D})}}fM.default=HM});var l9=V((MM)=>{Object.defineProperty(MM,"__esModule",{value:!0});var $g=o("path"),Bg=qM(),zg=WM(),Zg=GM(),qg=VM();class LM{constructor(u){this._settings=u,this.errorFilter=new Zg.default(this._settings),this.entryFilter=new zg.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new Bg.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new qg.default(this._settings)}_getRootDirectory(u){return $g.resolve(this._settings.cwd,u.base)}_getReaderOptions(u){let D=u.base==="."?"":u.base;return{basePath:D,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(D,u.positive,u.negative),entryFilter:this.entryFilter.getFilter(u.positive,u.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}}MM.default=LM});var AM=V((OM)=>{Object.defineProperty(OM,"__esModule",{value:!0});var Qg=tL(),Wg=l9();class xM extends Wg.default{constructor(){super(...arguments);this._reader=new Qg.default(this._settings)}async read(u){let D=this._getRootDirectory(u),F=this._getReaderOptions(u);return(await this.api(D,u,F)).map((B)=>F.transform(B))}api(u,D,F){if(D.dynamic)return this._reader.dynamic(u,F);return this._reader.static(D.patterns,F)}}OM.default=xM});var jM=V((NM)=>{Object.defineProperty(NM,"__esModule",{value:!0});var Jg=o("stream"),Gg=LB(),Kg=l9();class wM extends Kg.default{constructor(){super(...arguments);this._reader=new Gg.default(this._settings)}read(u){let D=this._getRootDirectory(u),F=this._getReaderOptions(u),$=this.api(D,u,F),B=new Jg.Readable({objectMode:!0,read:()=>{}});return $.once("error",(z)=>B.emit("error",z)).on("data",(z)=>B.emit("data",F.transform(z))).once("end",()=>B.emit("end")),B.once("close",()=>$.destroy()),B}api(u,D,F){if(D.dynamic)return this._reader.dynamic(u,F);return this._reader.static(D.patterns,F)}}NM.default=wM});var PM=V((EM)=>{Object.defineProperty(EM,"__esModule",{value:!0});var fg=TF(),Vg=m9(),Lg=n9();class IM extends Lg.default{constructor(){super(...arguments);this._walkSync=Vg.walkSync,this._statSync=fg.statSync}dynamic(u,D){return this._walkSync(u,D)}static(u,D){let F=[];for(let $ of u){let B=this._getFullEntryPath($),z=this._getEntry(B,$,D);if(z===null||!D.entryFilter(z))continue;F.push(z)}return F}_getEntry(u,D,F){try{let $=this._getStat(u);return this._makeEntry($,D)}catch($){if(F.errorFilter($))return null;throw $}}_getStat(u){return this._statSync(u,this._fsStatSettings)}}EM.default=IM});var UM=V((_M)=>{Object.defineProperty(_M,"__esModule",{value:!0});var xg=PM(),Og=l9();class CM extends Og.default{constructor(){super(...arguments);this._reader=new xg.default(this._settings)}read(u){let D=this._getRootDirectory(u),F=this._getReaderOptions(u);return this.api(D,u,F).map(F.transform)}api(u,D,F){if(D.dynamic)return this._reader.dynamic(u,F);return this._reader.static(D.patterns,F)}}_M.default=CM});var SM=V((vM)=>{Object.defineProperty(vM,"__esModule",{value:!0});vM.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var v6=o("fs"),wg=o("os"),Ng=Math.max(wg.cpus().length,1);vM.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:v6.lstat,lstatSync:v6.lstatSync,stat:v6.stat,statSync:v6.statSync,readdir:v6.readdir,readdirSync:v6.readdirSync};class iM{constructor(u={}){if(this._options=u,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,Ng),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories)this.onlyFiles=!1;if(this.stats)this.objectMode=!0;this.ignore=[].concat(this.ignore)}_getValue(u,D){return u===void 0?D:u}_getFileSystemMethods(u={}){return Object.assign(Object.assign({},vM.DEFAULT_FILE_SYSTEM_ADAPTER),u)}}vM.default=iM});var wB=V((HZ0,yM)=>{var TM=GV(),Ig=AM(),Eg=jM(),Pg=UM(),xB=SM(),MD=f1();async function OB(u,D){RD(u);let F=AB(u,Ig.default,D),$=await Promise.all(F);return MD.array.flatten($)}(function(u){u.glob=u,u.globSync=D,u.globStream=F,u.async=u;function D(Q,W){RD(Q);let Y=AB(Q,Pg.default,W);return MD.array.flatten(Y)}u.sync=D;function F(Q,W){RD(Q);let Y=AB(Q,Eg.default,W);return MD.stream.merge(Y)}u.stream=F;function $(Q,W){RD(Q);let Y=[].concat(Q),J=new xB.default(W);return TM.generate(Y,J)}u.generateTasks=$;function B(Q,W){RD(Q);let Y=new xB.default(W);return MD.pattern.isDynamicPattern(Q,Y)}u.isDynamicPattern=B;function z(Q){return RD(Q),MD.path.escape(Q)}u.escapePath=z;function Z(Q){return RD(Q),MD.path.convertPathToPattern(Q)}u.convertPathToPattern=Z;let q;(function(Q){function W(J){return RD(J),MD.path.escapePosixPath(J)}Q.escapePath=W;function Y(J){return RD(J),MD.path.convertPosixPathToPattern(J)}Q.convertPathToPattern=Y})(q=u.posix||(u.posix={}));let X;(function(Q){function W(J){return RD(J),MD.path.escapeWindowsPath(J)}Q.escapePath=W;function Y(J){return RD(J),MD.path.convertWindowsPathToPattern(J)}Q.convertPathToPattern=Y})(X=u.win32||(u.win32={}))})(OB||(OB={}));function AB(u,D,F){let $=[].concat(u),B=new xB.default(F),z=TM.generate($,B),Z=new D(B);return z.map(Z.read,Z)}function RD(u){if(![].concat(u).every(($)=>MD.string.isString($)&&!MD.string.isEmpty($)))throw TypeError("Patterns must be a string (non empty) or an array of strings")}yM.exports=OB});var oM=V((wZ0,o9)=>{function kM(u){return Array.isArray(u)?u:[u]}var ig=void 0,jB="",bM=" ",NB="\\",vg=/^\s+$/,Sg=/(?:[^\\]|^)\\$/,Tg=/^\\!/,yg=/^\\#/,bg=/\r?\n/g,Rg=/^\.{0,2}\/|^\.{1,2}$/,kg=/\/$/,S6="/",hM="node-ignore";if(typeof Symbol<"u")hM=Symbol.for("node-ignore");var cM=hM,T6=(u,D,F)=>{return Object.defineProperty(u,D,{value:F}),F},hg=/([0-z])-([0-z])/g,mM=()=>!1,cg=(u)=>u.replace(hg,(D,F,$)=>F.charCodeAt(0)<=$.charCodeAt(0)?D:jB),mg=(u)=>{let{length:D}=u;return u.slice(0,D-D%2)},ng=[[/^\uFEFF/,()=>jB],[/((?:\\\\)*?)(\\?\s+)$/,(u,D,F)=>D+(F.indexOf("\\")===0?bM:jB)],[/(\\+?)\s/g,(u,D)=>{let{length:F}=D;return D.slice(0,F-F%2)+bM}],[/[\\$.|*+(){^]/g,(u)=>`\\${u}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return!/\/(?!$)/.test(this)?"(?:^|\\/)":"^"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(u,D,F)=>D+6<F.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(u,D,F)=>{let $=F.replace(/\\\*/g,"[^\\/]*");return D+$}],[/\\\\\\(?=[$.|*+(){^])/g,()=>NB],[/\\\\/g,()=>NB],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(u,D,F,$,B)=>D===NB?`\\[${F}${mg($)}${B}`:B==="]"?$.length%2===0?`[${cg(F)}${$}]`:"[]":"[]"],[/(?:[^*])$/,(u)=>/\/$/.test(u)?`${u}$`:`${u}(?=$|\\/$)`]],pg=/(^|\\\/)?\\\*$/,$4="regex",g9="checkRegex",RM="_",lg={[$4](u,D){return`${D?`${D}[^/]+`:"[^/]*"}(?=$|\\/$)`},[g9](u,D){return`${D?`${D}[^/]*`:"[^/]*"}(?=$|\\/$)`}},gg=(u)=>ng.reduce((D,[F,$])=>D.replace(F,$.bind(u)),u),d9=(u)=>typeof u==="string",dg=(u)=>u&&d9(u)&&!vg.test(u)&&!Sg.test(u)&&u.indexOf("#")!==0,og=(u)=>u.split(bg).filter(Boolean);class nM{constructor(u,D,F,$,B,z){this.pattern=u,this.mark=D,this.negative=B,T6(this,"body",F),T6(this,"ignoreCase",$),T6(this,"regexPrefix",z)}get regex(){let u=RM+$4;if(this[u])return this[u];return this._make($4,u)}get checkRegex(){let u=RM+g9;if(this[u])return this[u];return this._make(g9,u)}_make(u,D){let F=this.regexPrefix.replace(pg,lg[u]),$=this.ignoreCase?new RegExp(F,"i"):new RegExp(F);return T6(this,D,$)}}var sg=({pattern:u,mark:D},F)=>{let $=!1,B=u;if(B.indexOf("!")===0)$=!0,B=B.substr(1);B=B.replace(Tg,"!").replace(yg,"#");let z=gg(B);return new nM(u,D,B,F,$,z)};class pM{constructor(u){this._ignoreCase=u,this._rules=[]}_add(u){if(u&&u[cM]){this._rules=this._rules.concat(u._rules._rules),this._added=!0;return}if(d9(u))u={pattern:u};if(dg(u.pattern)){let D=sg(u,this._ignoreCase);this._added=!0,this._rules.push(D)}}add(u){return this._added=!1,kM(d9(u)?og(u):u).forEach(this._add,this),this._added}test(u,D,F){let $=!1,B=!1,z;this._rules.forEach((q)=>{let{negative:X}=q;if(B===X&&$!==B||X&&!$&&!B&&!D)return;if(!q[F].test(u))return;$=!X,B=X,z=X?ig:q});let Z={ignored:$,unignored:B};if(z)Z.rule=z;return Z}}var rg=(u,D)=>{throw new D(u)},V1=(u,D,F)=>{if(!d9(u))return F(`path must be a string, but got \`${D}\``,TypeError);if(!u)return F("path must not be empty",TypeError);if(V1.isNotRelative(u))return F(`path should be a \`path.relative()\`d string, but got "${D}"`,RangeError);return!0},lM=(u)=>Rg.test(u);V1.isNotRelative=lM;V1.convert=(u)=>u;class gM{constructor({ignorecase:u=!0,ignoreCase:D=u,allowRelativePaths:F=!1}={}){T6(this,cM,!0),this._rules=new pM(D),this._strictPathCheck=!F,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}add(u){if(this._rules.add(u))this._initCache();return this}addPattern(u){return this.add(u)}_test(u,D,F,$){let B=u&&V1.convert(u);return V1(B,u,this._strictPathCheck?rg:mM),this._t(B,D,F,$)}checkIgnore(u){if(!kg.test(u))return this.test(u);let D=u.split(S6).filter(Boolean);if(D.pop(),D.length){let F=this._t(D.join(S6)+S6,this._testCache,!0,D);if(F.ignored)return F}return this._rules.test(u,!1,g9)}_t(u,D,F,$){if(u in D)return D[u];if(!$)$=u.split(S6).filter(Boolean);if($.pop(),!$.length)return D[u]=this._rules.test(u,F,$4);let B=this._t($.join(S6)+S6,D,F,$);return D[u]=B.ignored?B:this._rules.test(u,F,$4)}ignores(u){return this._test(u,this._ignoreCache,!1).ignored}createFilter(){return(u)=>!this.ignores(u)}filter(u){return kM(u).filter(this.createFilter())}test(u){return this._test(u,this._testCache,!0)}}var IB=(u)=>new gM(u),ag=(u)=>V1(u&&V1.convert(u),u,mM),dM=()=>{let u=(F)=>/^\\\\\?\\/.test(F)||/["<>|\u0000-\u001F]+/u.test(F)?F:F.replace(/\\/g,"/");V1.convert=u;let D=/^[a-z]:\//i;V1.isNotRelative=(F)=>D.test(F)||lM(F)};if(typeof process<"u"&&process.platform==="win32")dM();o9.exports=IB;IB.default=IB;o9.exports.isPathValid=ag;T6(o9.exports,Symbol.for("setupWindows"),dM)});var Q4=V((Ux)=>{Object.defineProperty(Ux,"__esModule",{value:!0});Ux.regexpCode=Ux.getEsmExportName=Ux.getProperty=Ux.safeStringify=Ux.stringify=Ux.strConcat=Ux.addCodeArg=Ux.str=Ux._=Ux.nil=Ux._Code=Ux.Name=Ux.IDENTIFIER=Ux._CodeOrName=void 0;class $5{}Ux._CodeOrName=$5;Ux.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class b6 extends $5{constructor(u){super();if(!Ux.IDENTIFIER.test(u))throw Error("CodeGen: name must be a valid identifier");this.str=u}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}Ux.Name=b6;class hD extends $5{constructor(u){super();this._items=typeof u==="string"?[u]:u}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let u=this._items[0];return u===""||u==='""'}get str(){var u;return(u=this._str)!==null&&u!==void 0?u:this._str=this._items.reduce((D,F)=>`${D}${F}`,"")}get names(){var u;return(u=this._names)!==null&&u!==void 0?u:this._names=this._items.reduce((D,F)=>{if(F instanceof b6)D[F.str]=(D[F.str]||0)+1;return D},{})}}Ux._Code=hD;Ux.nil=new hD("");function Cx(u,...D){let F=[u[0]],$=0;while($<D.length)pB(F,D[$]),F.push(u[++$]);return new hD(F)}Ux._=Cx;var nB=new hD("+");function _x(u,...D){let F=[X4(u[0])],$=0;while($<D.length)F.push(nB),pB(F,D[$]),F.push(nB,X4(u[++$]));return Sd(F),new hD(F)}Ux.str=_x;function pB(u,D){if(D instanceof hD)u.push(...D._items);else if(D instanceof b6)u.push(D);else u.push(bd(D))}Ux.addCodeArg=pB;function Sd(u){let D=1;while(D<u.length-1){if(u[D]===nB){let F=Td(u[D-1],u[D+1]);if(F!==void 0){u.splice(D-1,3,F);continue}u[D++]="+"}D++}}function Td(u,D){if(D==='""')return u;if(u==='""')return D;if(typeof u=="string"){if(D instanceof b6||u[u.length-1]!=='"')return;if(typeof D!="string")return`${u.slice(0,-1)}${D}"`;if(D[0]==='"')return u.slice(0,-1)+D.slice(1);return}if(typeof D=="string"&&D[0]==='"'&&!(u instanceof b6))return`"${u}${D.slice(1)}`;return}function yd(u,D){return D.emptyStr()?u:u.emptyStr()?D:_x`${u}${D}`}Ux.strConcat=yd;function bd(u){return typeof u=="number"||typeof u=="boolean"||u===null?u:X4(Array.isArray(u)?u.join(","):u)}function Rd(u){return new hD(X4(u))}Ux.stringify=Rd;function X4(u){return JSON.stringify(u).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}Ux.safeStringify=X4;function kd(u){return typeof u=="string"&&Ux.IDENTIFIER.test(u)?new hD(`.${u}`):Cx`[${u}]`}Ux.getProperty=kd;function hd(u){if(typeof u=="string"&&Ux.IDENTIFIER.test(u))return new hD(`${u}`);throw Error(`CodeGen: invalid export name: ${u}, use explicit $id name mapping`)}Ux.getEsmExportName=hd;function cd(u){return new hD(u.toString())}Ux.regexpCode=cd});var oB=V((Tx)=>{Object.defineProperty(Tx,"__esModule",{value:!0});Tx.ValueScope=Tx.ValueScopeName=Tx.Scope=Tx.varKinds=Tx.UsedValueState=void 0;var tu=Q4();class vx extends Error{constructor(u){super(`CodeGen: "code" for ${u} not defined`);this.value=u.value}}var z5;(function(u){u[u.Started=0]="Started",u[u.Completed=1]="Completed"})(z5||(Tx.UsedValueState=z5={}));Tx.varKinds={const:new tu.Name("const"),let:new tu.Name("let"),var:new tu.Name("var")};class gB{constructor({prefixes:u,parent:D}={}){this._names={},this._prefixes=u,this._parent=D}toName(u){return u instanceof tu.Name?u:this.name(u)}name(u){return new tu.Name(this._newName(u))}_newName(u){let D=this._names[u]||this._nameGroup(u);return`${u}${D.index++}`}_nameGroup(u){var D,F;if(((F=(D=this._parent)===null||D===void 0?void 0:D._prefixes)===null||F===void 0?void 0:F.has(u))||this._prefixes&&!this._prefixes.has(u))throw Error(`CodeGen: prefix "${u}" is not allowed in this scope`);return this._names[u]={prefix:u,index:0}}}Tx.Scope=gB;class dB extends tu.Name{constructor(u,D){super(D);this.prefix=u}setValue(u,{property:D,itemIndex:F}){this.value=u,this.scopePath=tu._`.${new tu.Name(D)}[${F}]`}}Tx.ValueScopeName=dB;var uo=tu._`\n`;class Sx extends gB{constructor(u){super(u);this._values={},this._scope=u.scope,this.opts={...u,_n:u.lines?uo:tu.nil}}get(){return this._scope}name(u){return new dB(u,this._newName(u))}value(u,D){var F;if(D.ref===void 0)throw Error("CodeGen: ref must be passed in value");let $=this.toName(u),{prefix:B}=$,z=(F=D.key)!==null&&F!==void 0?F:D.ref,Z=this._values[B];if(Z){let Q=Z.get(z);if(Q)return Q}else Z=this._values[B]=new Map;Z.set(z,$);let q=this._scope[B]||(this._scope[B]=[]),X=q.length;return q[X]=D.ref,$.setValue(D,{property:B,itemIndex:X}),$}getValue(u,D){let F=this._values[u];if(!F)return;return F.get(D)}scopeRefs(u,D=this._values){return this._reduceValues(D,(F)=>{if(F.scopePath===void 0)throw Error(`CodeGen: name "${F}" has no value`);return tu._`${u}${F.scopePath}`})}scopeCode(u=this._values,D,F){return this._reduceValues(u,($)=>{if($.value===void 0)throw Error(`CodeGen: name "${$}" has no value`);return $.value.code},D,F)}_reduceValues(u,D,F={},$){let B=tu.nil;for(let z in u){let Z=u[z];if(!Z)continue;let q=F[z]=F[z]||new Map;Z.forEach((X)=>{if(q.has(X))return;q.set(X,z5.Started);let Q=D(X);if(Q){let W=this.opts.es5?Tx.varKinds.var:Tx.varKinds.const;B=tu._`${B}${W} ${X} = ${Q};${this.opts._n}`}else if(Q=$===null||$===void 0?void 0:$(X))B=tu._`${B}${Q}${this.opts._n}`;else throw new vx(X);q.set(X,z5.Completed)})}return B}}Tx.ValueScope=Sx});var P0=V((eu)=>{Object.defineProperty(eu,"__esModule",{value:!0});eu.or=eu.and=eu.not=eu.CodeGen=eu.operators=eu.varKinds=eu.ValueScopeName=eu.ValueScope=eu.Scope=eu.Name=eu.regexpCode=eu.stringify=eu.getProperty=eu.nil=eu.strConcat=eu.str=eu._=void 0;var i0=Q4(),cD=oB(),r1=Q4();Object.defineProperty(eu,"_",{enumerable:!0,get:function(){return r1._}});Object.defineProperty(eu,"str",{enumerable:!0,get:function(){return r1.str}});Object.defineProperty(eu,"strConcat",{enumerable:!0,get:function(){return r1.strConcat}});Object.defineProperty(eu,"nil",{enumerable:!0,get:function(){return r1.nil}});Object.defineProperty(eu,"getProperty",{enumerable:!0,get:function(){return r1.getProperty}});Object.defineProperty(eu,"stringify",{enumerable:!0,get:function(){return r1.stringify}});Object.defineProperty(eu,"regexpCode",{enumerable:!0,get:function(){return r1.regexpCode}});Object.defineProperty(eu,"Name",{enumerable:!0,get:function(){return r1.Name}});var Y5=oB();Object.defineProperty(eu,"Scope",{enumerable:!0,get:function(){return Y5.Scope}});Object.defineProperty(eu,"ValueScope",{enumerable:!0,get:function(){return Y5.ValueScope}});Object.defineProperty(eu,"ValueScopeName",{enumerable:!0,get:function(){return Y5.ValueScopeName}});Object.defineProperty(eu,"varKinds",{enumerable:!0,get:function(){return Y5.varKinds}});eu.operators={GT:new i0._Code(">"),GTE:new i0._Code(">="),LT:new i0._Code("<"),LTE:new i0._Code("<="),EQ:new i0._Code("==="),NEQ:new i0._Code("!=="),NOT:new i0._Code("!"),OR:new i0._Code("||"),AND:new i0._Code("&&"),ADD:new i0._Code("+")};class a1{optimizeNodes(){return this}optimizeNames(u,D){return this}}class bx extends a1{constructor(u,D,F){super();this.varKind=u,this.name=D,this.rhs=F}render({es5:u,_n:D}){let F=u?cD.varKinds.var:this.varKind,$=this.rhs===void 0?"":` = ${this.rhs}`;return`${F} ${this.name}${$};`+D}optimizeNames(u,D){if(!u[this.name.str])return;if(this.rhs)this.rhs=k6(this.rhs,u,D);return this}get names(){return this.rhs instanceof i0._CodeOrName?this.rhs.names:{}}}class aB extends a1{constructor(u,D,F){super();this.lhs=u,this.rhs=D,this.sideEffects=F}render({_n:u}){return`${this.lhs} = ${this.rhs};`+u}optimizeNames(u,D){if(this.lhs instanceof i0.Name&&!u[this.lhs.str]&&!this.sideEffects)return;return this.rhs=k6(this.rhs,u,D),this}get names(){let u=this.lhs instanceof i0.Name?{}:{...this.lhs.names};return W5(u,this.rhs)}}class Rx extends aB{constructor(u,D,F,$){super(u,F,$);this.op=D}render({_n:u}){return`${this.lhs} ${this.op}= ${this.rhs};`+u}}class kx extends a1{constructor(u){super();this.label=u,this.names={}}render({_n:u}){return`${this.label}:`+u}}class hx extends a1{constructor(u){super();this.label=u,this.names={}}render({_n:u}){return`break${this.label?` ${this.label}`:""};`+u}}class cx extends a1{constructor(u){super();this.error=u}render({_n:u}){return`throw ${this.error};`+u}get names(){return this.error.names}}class mx extends a1{constructor(u){super();this.code=u}render({_n:u}){return`${this.code};`+u}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(u,D){return this.code=k6(this.code,u,D),this}get names(){return this.code instanceof i0._CodeOrName?this.code.names:{}}}class J5 extends a1{constructor(u=[]){super();this.nodes=u}render(u){return this.nodes.reduce((D,F)=>D+F.render(u),"")}optimizeNodes(){let{nodes:u}=this,D=u.length;while(D--){let F=u[D].optimizeNodes();if(Array.isArray(F))u.splice(D,1,...F);else if(F)u[D]=F;else u.splice(D,1)}return u.length>0?this:void 0}optimizeNames(u,D){let{nodes:F}=this,$=F.length;while($--){let B=F[$];if(B.optimizeNames(u,D))continue;Bo(u,B.names),F.splice($,1)}return F.length>0?this:void 0}get names(){return this.nodes.reduce((u,D)=>bF(u,D.names),{})}}class t1 extends J5{render(u){return"{"+u._n+super.render(u)+"}"+u._n}}class nx extends J5{}class W4 extends t1{}W4.kind="else";class x1 extends t1{constructor(u,D){super(D);this.condition=u}render(u){let D=`if(${this.condition})`+super.render(u);if(this.else)D+="else "+this.else.render(u);return D}optimizeNodes(){super.optimizeNodes();let u=this.condition;if(u===!0)return this.nodes;let D=this.else;if(D){let F=D.optimizeNodes();D=this.else=Array.isArray(F)?new W4(F):F}if(D){if(u===!1)return D instanceof x1?D:D.nodes;if(this.nodes.length)return this;return new x1(ox(u),D instanceof x1?[D]:D.nodes)}if(u===!1||!this.nodes.length)return;return this}optimizeNames(u,D){var F;if(this.else=(F=this.else)===null||F===void 0?void 0:F.optimizeNames(u,D),!(super.optimizeNames(u,D)||this.else))return;return this.condition=k6(this.condition,u,D),this}get names(){let u=super.names;if(W5(u,this.condition),this.else)bF(u,this.else.names);return u}}x1.kind="if";class R6 extends t1{}R6.kind="for";class px extends R6{constructor(u){super();this.iteration=u}render(u){return`for(${this.iteration})`+super.render(u)}optimizeNames(u,D){if(!super.optimizeNames(u,D))return;return this.iteration=k6(this.iteration,u,D),this}get names(){return bF(super.names,this.iteration.names)}}class lx extends R6{constructor(u,D,F,$){super();this.varKind=u,this.name=D,this.from=F,this.to=$}render(u){let D=u.es5?cD.varKinds.var:this.varKind,{name:F,from:$,to:B}=this;return`for(${D} ${F}=${$}; ${F}<${B}; ${F}++)`+super.render(u)}get names(){let u=W5(super.names,this.from);return W5(u,this.to)}}class sB extends R6{constructor(u,D,F,$){super();this.loop=u,this.varKind=D,this.name=F,this.iterable=$}render(u){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(u)}optimizeNames(u,D){if(!super.optimizeNames(u,D))return;return this.iterable=k6(this.iterable,u,D),this}get names(){return bF(super.names,this.iterable.names)}}class Z5 extends t1{constructor(u,D,F){super();this.name=u,this.args=D,this.async=F}render(u){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(u)}}Z5.kind="func";class q5 extends J5{render(u){return"return "+super.render(u)}}q5.kind="return";class gx extends t1{render(u){let D="try"+super.render(u);if(this.catch)D+=this.catch.render(u);if(this.finally)D+=this.finally.render(u);return D}optimizeNodes(){var u,D;return super.optimizeNodes(),(u=this.catch)===null||u===void 0||u.optimizeNodes(),(D=this.finally)===null||D===void 0||D.optimizeNodes(),this}optimizeNames(u,D){var F,$;return super.optimizeNames(u,D),(F=this.catch)===null||F===void 0||F.optimizeNames(u,D),($=this.finally)===null||$===void 0||$.optimizeNames(u,D),this}get names(){let u=super.names;if(this.catch)bF(u,this.catch.names);if(this.finally)bF(u,this.finally.names);return u}}class X5 extends t1{constructor(u){super();this.error=u}render(u){return`catch(${this.error})`+super.render(u)}}X5.kind="catch";class Q5 extends t1{render(u){return"finally"+super.render(u)}}Q5.kind="finally";class dx{constructor(u,D={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...D,_n:D.lines?`
|
|
71
|
+
`:""},this._extScope=u,this._scope=new cD.Scope({parent:u}),this._nodes=[new nx]}toString(){return this._root.render(this.opts)}name(u){return this._scope.name(u)}scopeName(u){return this._extScope.name(u)}scopeValue(u,D){let F=this._extScope.value(u,D);return(this._values[F.prefix]||(this._values[F.prefix]=new Set)).add(F),F}getScopeValue(u,D){return this._extScope.getValue(u,D)}scopeRefs(u){return this._extScope.scopeRefs(u,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(u,D,F,$){let B=this._scope.toName(D);if(F!==void 0&&$)this._constants[B.str]=F;return this._leafNode(new bx(u,B,F)),B}const(u,D,F){return this._def(cD.varKinds.const,u,D,F)}let(u,D,F){return this._def(cD.varKinds.let,u,D,F)}var(u,D,F){return this._def(cD.varKinds.var,u,D,F)}assign(u,D,F){return this._leafNode(new aB(u,D,F))}add(u,D){return this._leafNode(new Rx(u,eu.operators.ADD,D))}code(u){if(typeof u=="function")u();else if(u!==i0.nil)this._leafNode(new mx(u));return this}object(...u){let D=["{"];for(let[F,$]of u){if(D.length>1)D.push(",");if(D.push(F),F!==$||this.opts.es5)D.push(":"),(0,i0.addCodeArg)(D,$)}return D.push("}"),new i0._Code(D)}if(u,D,F){if(this._blockNode(new x1(u)),D&&F)this.code(D).else().code(F).endIf();else if(D)this.code(D).endIf();else if(F)throw Error('CodeGen: "else" body without "then" body');return this}elseIf(u){return this._elseNode(new x1(u))}else(){return this._elseNode(new W4)}endIf(){return this._endBlockNode(x1,W4)}_for(u,D){if(this._blockNode(u),D)this.code(D).endFor();return this}for(u,D){return this._for(new px(u),D)}forRange(u,D,F,$,B=this.opts.es5?cD.varKinds.var:cD.varKinds.let){let z=this._scope.toName(u);return this._for(new lx(B,z,D,F),()=>$(z))}forOf(u,D,F,$=cD.varKinds.const){let B=this._scope.toName(u);if(this.opts.es5){let z=D instanceof i0.Name?D:this.var("_arr",D);return this.forRange("_i",0,i0._`${z}.length`,(Z)=>{this.var(B,i0._`${z}[${Z}]`),F(B)})}return this._for(new sB("of",$,B,D),()=>F(B))}forIn(u,D,F,$=this.opts.es5?cD.varKinds.var:cD.varKinds.const){if(this.opts.ownProperties)return this.forOf(u,i0._`Object.keys(${D})`,F);let B=this._scope.toName(u);return this._for(new sB("in",$,B,D),()=>F(B))}endFor(){return this._endBlockNode(R6)}label(u){return this._leafNode(new kx(u))}break(u){return this._leafNode(new hx(u))}return(u){let D=new q5;if(this._blockNode(D),this.code(u),D.nodes.length!==1)throw Error('CodeGen: "return" should have one node');return this._endBlockNode(q5)}try(u,D,F){if(!D&&!F)throw Error('CodeGen: "try" without "catch" and "finally"');let $=new gx;if(this._blockNode($),this.code(u),D){let B=this.name("e");this._currNode=$.catch=new X5(B),D(B)}if(F)this._currNode=$.finally=new Q5,this.code(F);return this._endBlockNode(X5,Q5)}throw(u){return this._leafNode(new cx(u))}block(u,D){if(this._blockStarts.push(this._nodes.length),u)this.code(u).endBlock(D);return this}endBlock(u){let D=this._blockStarts.pop();if(D===void 0)throw Error("CodeGen: not in self-balancing block");let F=this._nodes.length-D;if(F<0||u!==void 0&&F!==u)throw Error(`CodeGen: wrong number of nodes: ${F} vs ${u} expected`);return this._nodes.length=D,this}func(u,D=i0.nil,F,$){if(this._blockNode(new Z5(u,D,F)),$)this.code($).endFunc();return this}endFunc(){return this._endBlockNode(Z5)}optimize(u=1){while(u-- >0)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(u){return this._currNode.nodes.push(u),this}_blockNode(u){this._currNode.nodes.push(u),this._nodes.push(u)}_endBlockNode(u,D){let F=this._currNode;if(F instanceof u||D&&F instanceof D)return this._nodes.pop(),this;throw Error(`CodeGen: not in block "${D?`${u.kind}/${D.kind}`:u.kind}"`)}_elseNode(u){let D=this._currNode;if(!(D instanceof x1))throw Error('CodeGen: "else" without "if"');return this._currNode=D.else=u,this}get _root(){return this._nodes[0]}get _currNode(){let u=this._nodes;return u[u.length-1]}set _currNode(u){let D=this._nodes;D[D.length-1]=u}}eu.CodeGen=dx;function bF(u,D){for(let F in D)u[F]=(u[F]||0)+(D[F]||0);return u}function W5(u,D){return D instanceof i0._CodeOrName?bF(u,D.names):u}function k6(u,D,F){if(u instanceof i0.Name)return $(u);if(!B(u))return u;return new i0._Code(u._items.reduce((z,Z)=>{if(Z instanceof i0.Name)Z=$(Z);if(Z instanceof i0._Code)z.push(...Z._items);else z.push(Z);return z},[]));function $(z){let Z=F[z.str];if(Z===void 0||D[z.str]!==1)return z;return delete D[z.str],Z}function B(z){return z instanceof i0._Code&&z._items.some((Z)=>Z instanceof i0.Name&&D[Z.str]===1&&F[Z.str]!==void 0)}}function Bo(u,D){for(let F in D)u[F]=(u[F]||0)-(D[F]||0)}function ox(u){return typeof u=="boolean"||typeof u=="number"||u===null?!u:i0._`!${rB(u)}`}eu.not=ox;var zo=sx(eu.operators.AND);function Zo(...u){return u.reduce(zo)}eu.and=Zo;var qo=sx(eu.operators.OR);function Xo(...u){return u.reduce(qo)}eu.or=Xo;function sx(u){return(D,F)=>D===i0.nil?F:F===i0.nil?D:i0._`${rB(D)} ${u} ${rB(F)}`}function rB(u){return u instanceof i0.Name?u:i0._`(${u})`}});var v0=V((BO)=>{Object.defineProperty(BO,"__esModule",{value:!0});BO.checkStrictMode=BO.getErrorPath=BO.Type=BO.useFunc=BO.setEvaluated=BO.evaluatedPropsToName=BO.mergeEvaluated=BO.eachItem=BO.unescapeJsonPointer=BO.escapeJsonPointer=BO.escapeFragment=BO.unescapeFragment=BO.schemaRefOrVal=BO.schemaHasRulesButRef=BO.schemaHasRules=BO.checkUnknownRules=BO.alwaysValidSchema=BO.toHash=void 0;var m0=P0(),Jo=Q4();function Go(u){let D={};for(let F of u)D[F]=!0;return D}BO.toHash=Go;function Ko(u,D){if(typeof D=="boolean")return D;if(Object.keys(D).length===0)return!0;return ex(u,D),!uO(D,u.self.RULES.all)}BO.alwaysValidSchema=Ko;function ex(u,D=u.schema){let{opts:F,self:$}=u;if(!F.strictSchema)return;if(typeof D==="boolean")return;let B=$.RULES.keywords;for(let z in D)if(!B[z])$O(u,`unknown keyword: "${z}"`)}BO.checkUnknownRules=ex;function uO(u,D){if(typeof u=="boolean")return!u;for(let F in u)if(D[F])return!0;return!1}BO.schemaHasRules=uO;function Ho(u,D){if(typeof u=="boolean")return!u;for(let F in u)if(F!=="$ref"&&D.all[F])return!0;return!1}BO.schemaHasRulesButRef=Ho;function fo({topSchemaRef:u,schemaPath:D},F,$,B){if(!B){if(typeof F=="number"||typeof F=="boolean")return F;if(typeof F=="string")return m0._`${F}`}return m0._`${u}${D}${(0,m0.getProperty)($)}`}BO.schemaRefOrVal=fo;function Vo(u){return DO(decodeURIComponent(u))}BO.unescapeFragment=Vo;function Lo(u){return encodeURIComponent(eB(u))}BO.escapeFragment=Lo;function eB(u){if(typeof u=="number")return`${u}`;return u.replace(/~/g,"~0").replace(/\//g,"~1")}BO.escapeJsonPointer=eB;function DO(u){return u.replace(/~1/g,"/").replace(/~0/g,"~")}BO.unescapeJsonPointer=DO;function Mo(u,D){if(Array.isArray(u))for(let F of u)D(F);else D(u)}BO.eachItem=Mo;function ax({mergeNames:u,mergeToName:D,mergeValues:F,resultToName:$}){return(B,z,Z,q)=>{let X=Z===void 0?z:Z instanceof m0.Name?(z instanceof m0.Name?u(B,z,Z):D(B,z,Z),Z):z instanceof m0.Name?(D(B,Z,z),z):F(z,Z);return q===m0.Name&&!(X instanceof m0.Name)?$(B,X):X}}BO.mergeEvaluated={props:ax({mergeNames:(u,D,F)=>u.if(m0._`${F} !== true && ${D} !== undefined`,()=>{u.if(m0._`${D} === true`,()=>u.assign(F,!0),()=>u.assign(F,m0._`${F} || {}`).code(m0._`Object.assign(${F}, ${D})`))}),mergeToName:(u,D,F)=>u.if(m0._`${F} !== true`,()=>{if(D===!0)u.assign(F,!0);else u.assign(F,m0._`${F} || {}`),uz(u,F,D)}),mergeValues:(u,D)=>u===!0?!0:{...u,...D},resultToName:FO}),items:ax({mergeNames:(u,D,F)=>u.if(m0._`${F} !== true && ${D} !== undefined`,()=>u.assign(F,m0._`${D} === true ? true : ${F} > ${D} ? ${F} : ${D}`)),mergeToName:(u,D,F)=>u.if(m0._`${F} !== true`,()=>u.assign(F,D===!0?!0:m0._`${F} > ${D} ? ${F} : ${D}`)),mergeValues:(u,D)=>u===!0?!0:Math.max(u,D),resultToName:(u,D)=>u.var("items",D)})};function FO(u,D){if(D===!0)return u.var("props",!0);let F=u.var("props",m0._`{}`);if(D!==void 0)uz(u,F,D);return F}BO.evaluatedPropsToName=FO;function uz(u,D,F){Object.keys(F).forEach(($)=>u.assign(m0._`${D}${(0,m0.getProperty)($)}`,!0))}BO.setEvaluated=uz;var tx={};function xo(u,D){return u.scopeValue("func",{ref:D,code:tx[D.code]||(tx[D.code]=new Jo._Code(D.code))})}BO.useFunc=xo;var tB;(function(u){u[u.Num=0]="Num",u[u.Str=1]="Str"})(tB||(BO.Type=tB={}));function Oo(u,D,F){if(u instanceof m0.Name){let $=D===tB.Num;return F?$?m0._`"[" + ${u} + "]"`:m0._`"['" + ${u} + "']"`:$?m0._`"/" + ${u}`:m0._`"/" + ${u}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return F?(0,m0.getProperty)(u).toString():"/"+eB(u)}BO.getErrorPath=Oo;function $O(u,D,F=u.opts.strictSchema){if(!F)return;if(D=`strict mode: ${D}`,F===!0)throw Error(D);u.self.logger.warn(D)}BO.checkStrictMode=$O});var O1=V((ZO)=>{Object.defineProperty(ZO,"__esModule",{value:!0});var _u=P0(),ko={data:new _u.Name("data"),valCxt:new _u.Name("valCxt"),instancePath:new _u.Name("instancePath"),parentData:new _u.Name("parentData"),parentDataProperty:new _u.Name("parentDataProperty"),rootData:new _u.Name("rootData"),dynamicAnchors:new _u.Name("dynamicAnchors"),vErrors:new _u.Name("vErrors"),errors:new _u.Name("errors"),this:new _u.Name("this"),self:new _u.Name("self"),scope:new _u.Name("scope"),json:new _u.Name("json"),jsonPos:new _u.Name("jsonPos"),jsonLen:new _u.Name("jsonLen"),jsonPart:new _u.Name("jsonPart")};ZO.default=ko});var Y4=V((WO)=>{Object.defineProperty(WO,"__esModule",{value:!0});WO.extendErrors=WO.resetErrorsCount=WO.reportExtraError=WO.reportError=WO.keyword$DataError=WO.keywordError=void 0;var S0=P0(),K5=v0(),cu=O1();WO.keywordError={message:({keyword:u})=>S0.str`must pass "${u}" keyword validation`};WO.keyword$DataError={message:({keyword:u,schemaType:D})=>D?S0.str`"${u}" keyword must be ${D} ($data)`:S0.str`"${u}" keyword is invalid ($data)`};function co(u,D=WO.keywordError,F,$){let{it:B}=u,{gen:z,compositeRule:Z,allErrors:q}=B,X=QO(u,D,F);if($!==null&&$!==void 0?$:Z||q)qO(z,X);else XO(B,S0._`[${X}]`)}WO.reportError=co;function mo(u,D=WO.keywordError,F){let{it:$}=u,{gen:B,compositeRule:z,allErrors:Z}=$,q=QO(u,D,F);if(qO(B,q),!(z||Z))XO($,cu.default.vErrors)}WO.reportExtraError=mo;function no(u,D){u.assign(cu.default.errors,D),u.if(S0._`${cu.default.vErrors} !== null`,()=>u.if(D,()=>u.assign(S0._`${cu.default.vErrors}.length`,D),()=>u.assign(cu.default.vErrors,null)))}WO.resetErrorsCount=no;function po({gen:u,keyword:D,schemaValue:F,data:$,errsCount:B,it:z}){if(B===void 0)throw Error("ajv implementation error");let Z=u.name("err");u.forRange("i",B,cu.default.errors,(q)=>{if(u.const(Z,S0._`${cu.default.vErrors}[${q}]`),u.if(S0._`${Z}.instancePath === undefined`,()=>u.assign(S0._`${Z}.instancePath`,(0,S0.strConcat)(cu.default.instancePath,z.errorPath))),u.assign(S0._`${Z}.schemaPath`,S0.str`${z.errSchemaPath}/${D}`),z.opts.verbose)u.assign(S0._`${Z}.schema`,F),u.assign(S0._`${Z}.data`,$)})}WO.extendErrors=po;function qO(u,D){let F=u.const("err",D);u.if(S0._`${cu.default.vErrors} === null`,()=>u.assign(cu.default.vErrors,S0._`[${F}]`),S0._`${cu.default.vErrors}.push(${F})`),u.code(S0._`${cu.default.errors}++`)}function XO(u,D){let{gen:F,validateName:$,schemaEnv:B}=u;if(B.$async)F.throw(S0._`new ${u.ValidationError}(${D})`);else F.assign(S0._`${$}.errors`,D),F.return(!1)}var RF={keyword:new S0.Name("keyword"),schemaPath:new S0.Name("schemaPath"),params:new S0.Name("params"),propertyName:new S0.Name("propertyName"),message:new S0.Name("message"),schema:new S0.Name("schema"),parentSchema:new S0.Name("parentSchema")};function QO(u,D,F){let{createErrors:$}=u.it;if($===!1)return S0._`{}`;return lo(u,D,F)}function lo(u,D,F={}){let{gen:$,it:B}=u,z=[go(B,F),oo(u,F)];return so(u,D,z),$.object(...z)}function go({errorPath:u},{instancePath:D}){let F=D?S0.str`${u}${(0,K5.getErrorPath)(D,K5.Type.Str)}`:u;return[cu.default.instancePath,(0,S0.strConcat)(cu.default.instancePath,F)]}function oo({keyword:u,it:{errSchemaPath:D}},{schemaPath:F,parentSchema:$}){let B=$?D:S0.str`${D}/${u}`;if(F)B=S0.str`${B}${(0,K5.getErrorPath)(F,K5.Type.Str)}`;return[RF.schemaPath,B]}function so(u,{params:D,message:F},$){let{keyword:B,data:z,schemaValue:Z,it:q}=u,{opts:X,propertyName:Q,topSchemaRef:W,schemaPath:Y}=q;if($.push([RF.keyword,B],[RF.params,typeof D=="function"?D(u):D||S0._`{}`]),X.messages)$.push([RF.message,typeof F=="function"?F(u):F]);if(X.verbose)$.push([RF.schema,Z],[RF.parentSchema,S0._`${W}${Y}`],[cu.default.data,z]);if(Q)$.push([RF.propertyName,Q])}});var HO=V((GO)=>{Object.defineProperty(GO,"__esModule",{value:!0});GO.boolOrEmptySchema=GO.topBoolOrEmptySchema=void 0;var us=Y4(),Ds=P0(),Fs=O1(),$s={message:"boolean schema is false"};function Bs(u){let{gen:D,schema:F,validateName:$}=u;if(F===!1)JO(u,!1);else if(typeof F=="object"&&F.$async===!0)D.return(Fs.default.data);else D.assign(Ds._`${$}.errors`,null),D.return(!0)}GO.topBoolOrEmptySchema=Bs;function zs(u,D){let{gen:F,schema:$}=u;if($===!1)F.var(D,!1),JO(u);else F.var(D,!0)}GO.boolOrEmptySchema=zs;function JO(u,D){let{gen:F,data:$}=u,B={gen:F,keyword:"false schema",data:$,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:u};(0,us.reportError)(B,$s,void 0,D)}});var Fz=V((fO)=>{Object.defineProperty(fO,"__esModule",{value:!0});fO.getRules=fO.isJSONType=void 0;var qs=["string","number","integer","boolean","null","object","array"],Xs=new Set(qs);function Qs(u){return typeof u=="string"&&Xs.has(u)}fO.isJSONType=Qs;function Ws(){let u={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...u,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},u.number,u.string,u.array,u.object],post:{rules:[]},all:{},keywords:{}}}fO.getRules=Ws});var $z=V((xO)=>{Object.defineProperty(xO,"__esModule",{value:!0});xO.shouldUseRule=xO.shouldUseGroup=xO.schemaHasRulesForType=void 0;function Js({schema:u,self:D},F){let $=D.RULES.types[F];return $&&$!==!0&&LO(u,$)}xO.schemaHasRulesForType=Js;function LO(u,D){return D.rules.some((F)=>MO(u,F))}xO.shouldUseGroup=LO;function MO(u,D){var F;return u[D.keyword]!==void 0||((F=D.definition.implements)===null||F===void 0?void 0:F.some(($)=>u[$]!==void 0))}xO.shouldUseRule=MO});var J4=V((jO)=>{Object.defineProperty(jO,"__esModule",{value:!0});jO.reportTypeError=jO.checkDataTypes=jO.checkDataType=jO.coerceAndCheckDataType=jO.getJSONTypes=jO.getSchemaTypes=jO.DataType=void 0;var Hs=Fz(),fs=$z(),Vs=Y4(),I0=P0(),AO=v0(),h6;(function(u){u[u.Correct=0]="Correct",u[u.Wrong=1]="Wrong"})(h6||(jO.DataType=h6={}));function Ls(u){let D=wO(u.type);if(D.includes("null")){if(u.nullable===!1)throw Error("type: null contradicts nullable: false")}else{if(!D.length&&u.nullable!==void 0)throw Error('"nullable" cannot be used without "type"');if(u.nullable===!0)D.push("null")}return D}jO.getSchemaTypes=Ls;function wO(u){let D=Array.isArray(u)?u:u?[u]:[];if(D.every(Hs.isJSONType))return D;throw Error("type must be JSONType or JSONType[]: "+D.join(","))}jO.getJSONTypes=wO;function Ms(u,D){let{gen:F,data:$,opts:B}=u,z=xs(D,B.coerceTypes),Z=D.length>0&&!(z.length===0&&D.length===1&&(0,fs.schemaHasRulesForType)(u,D[0]));if(Z){let q=zz(D,$,B.strictNumbers,h6.Wrong);F.if(q,()=>{if(z.length)Os(u,D,z);else Zz(u)})}return Z}jO.coerceAndCheckDataType=Ms;var NO=new Set(["string","number","integer","boolean","null"]);function xs(u,D){return D?u.filter((F)=>NO.has(F)||D==="array"&&F==="array"):[]}function Os(u,D,F){let{gen:$,data:B,opts:z}=u,Z=$.let("dataType",I0._`typeof ${B}`),q=$.let("coerced",I0._`undefined`);if(z.coerceTypes==="array")$.if(I0._`${Z} == 'object' && Array.isArray(${B}) && ${B}.length == 1`,()=>$.assign(B,I0._`${B}[0]`).assign(Z,I0._`typeof ${B}`).if(zz(D,B,z.strictNumbers),()=>$.assign(q,B)));$.if(I0._`${q} !== undefined`);for(let Q of F)if(NO.has(Q)||Q==="array"&&z.coerceTypes==="array")X(Q);$.else(),Zz(u),$.endIf(),$.if(I0._`${q} !== undefined`,()=>{$.assign(B,q),As(u,q)});function X(Q){switch(Q){case"string":$.elseIf(I0._`${Z} == "number" || ${Z} == "boolean"`).assign(q,I0._`"" + ${B}`).elseIf(I0._`${B} === null`).assign(q,I0._`""`);return;case"number":$.elseIf(I0._`${Z} == "boolean" || ${B} === null
|
|
72
|
+
|| (${Z} == "string" && ${B} && ${B} == +${B})`).assign(q,I0._`+${B}`);return;case"integer":$.elseIf(I0._`${Z} === "boolean" || ${B} === null
|
|
73
|
+
|| (${Z} === "string" && ${B} && ${B} == +${B} && !(${B} % 1))`).assign(q,I0._`+${B}`);return;case"boolean":$.elseIf(I0._`${B} === "false" || ${B} === 0 || ${B} === null`).assign(q,!1).elseIf(I0._`${B} === "true" || ${B} === 1`).assign(q,!0);return;case"null":$.elseIf(I0._`${B} === "" || ${B} === 0 || ${B} === false`),$.assign(q,null);return;case"array":$.elseIf(I0._`${Z} === "string" || ${Z} === "number"
|
|
74
|
+
|| ${Z} === "boolean" || ${B} === null`).assign(q,I0._`[${B}]`)}}}function As({gen:u,parentData:D,parentDataProperty:F},$){u.if(I0._`${D} !== undefined`,()=>u.assign(I0._`${D}[${F}]`,$))}function Bz(u,D,F,$=h6.Correct){let B=$===h6.Correct?I0.operators.EQ:I0.operators.NEQ,z;switch(u){case"null":return I0._`${D} ${B} null`;case"array":z=I0._`Array.isArray(${D})`;break;case"object":z=I0._`${D} && typeof ${D} == "object" && !Array.isArray(${D})`;break;case"integer":z=Z(I0._`!(${D} % 1) && !isNaN(${D})`);break;case"number":z=Z();break;default:return I0._`typeof ${D} ${B} ${u}`}return $===h6.Correct?z:(0,I0.not)(z);function Z(q=I0.nil){return(0,I0.and)(I0._`typeof ${D} == "number"`,q,F?I0._`isFinite(${D})`:I0.nil)}}jO.checkDataType=Bz;function zz(u,D,F,$){if(u.length===1)return Bz(u[0],D,F,$);let B,z=(0,AO.toHash)(u);if(z.array&&z.object){let Z=I0._`typeof ${D} != "object"`;B=z.null?Z:I0._`!${D} || ${Z}`,delete z.null,delete z.array,delete z.object}else B=I0.nil;if(z.number)delete z.integer;for(let Z in z)B=(0,I0.and)(B,Bz(Z,D,F,$));return B}jO.checkDataTypes=zz;var ws={message:({schema:u})=>`must be ${u}`,params:({schema:u,schemaValue:D})=>typeof u=="string"?I0._`{type: ${u}}`:I0._`{type: ${D}}`};function Zz(u){let D=Ns(u);(0,Vs.reportError)(D,ws)}jO.reportTypeError=Zz;function Ns(u){let{gen:D,data:F,schema:$}=u,B=(0,AO.schemaRefOrVal)(u,$,"type");return{gen:D,keyword:"type",data:F,schema:$.type,schemaCode:B,schemaValue:B,parentSchema:$,params:{},it:u}}});var _O=V((PO)=>{Object.defineProperty(PO,"__esModule",{value:!0});PO.assignDefaults=void 0;var c6=P0(),Us=v0();function is(u,D){let{properties:F,items:$}=u.schema;if(D==="object"&&F)for(let B in F)EO(u,B,F[B].default);else if(D==="array"&&Array.isArray($))$.forEach((B,z)=>EO(u,z,B.default))}PO.assignDefaults=is;function EO(u,D,F){let{gen:$,compositeRule:B,data:z,opts:Z}=u;if(F===void 0)return;let q=c6._`${z}${(0,c6.getProperty)(D)}`;if(B){(0,Us.checkStrictMode)(u,`default is ignored for: ${q}`);return}let X=c6._`${q} === undefined`;if(Z.useDefaults==="empty")X=c6._`${X} || ${q} === null || ${q} === ""`;$.if(X,c6._`${q} = ${(0,c6.stringify)(F)}`)}});var OD=V((vO)=>{Object.defineProperty(vO,"__esModule",{value:!0});vO.validateUnion=vO.validateArray=vO.usePattern=vO.callValidateCode=vO.schemaProperties=vO.allSchemaProperties=vO.noPropertyInData=vO.propertyInData=vO.isOwnProperty=vO.hasPropFunc=vO.reportMissingProp=vO.checkMissingProp=vO.checkReportMissingProp=void 0;var d0=P0(),qz=v0(),e1=O1(),vs=v0();function Ss(u,D){let{gen:F,data:$,it:B}=u;F.if(Qz(F,$,D,B.opts.ownProperties),()=>{u.setParams({missingProperty:d0._`${D}`},!0),u.error()})}vO.checkReportMissingProp=Ss;function Ts({gen:u,data:D,it:{opts:F}},$,B){return(0,d0.or)(...$.map((z)=>(0,d0.and)(Qz(u,D,z,F.ownProperties),d0._`${B} = ${z}`)))}vO.checkMissingProp=Ts;function ys(u,D){u.setParams({missingProperty:D},!0),u.error()}vO.reportMissingProp=ys;function UO(u){return u.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:d0._`Object.prototype.hasOwnProperty`})}vO.hasPropFunc=UO;function Xz(u,D,F){return d0._`${UO(u)}.call(${D}, ${F})`}vO.isOwnProperty=Xz;function bs(u,D,F,$){let B=d0._`${D}${(0,d0.getProperty)(F)} !== undefined`;return $?d0._`${B} && ${Xz(u,D,F)}`:B}vO.propertyInData=bs;function Qz(u,D,F,$){let B=d0._`${D}${(0,d0.getProperty)(F)} === undefined`;return $?(0,d0.or)(B,(0,d0.not)(Xz(u,D,F))):B}vO.noPropertyInData=Qz;function iO(u){return u?Object.keys(u).filter((D)=>D!=="__proto__"):[]}vO.allSchemaProperties=iO;function Rs(u,D){return iO(D).filter((F)=>!(0,qz.alwaysValidSchema)(u,D[F]))}vO.schemaProperties=Rs;function ks({schemaCode:u,data:D,it:{gen:F,topSchemaRef:$,schemaPath:B,errorPath:z},it:Z},q,X,Q){let W=Q?d0._`${u}, ${D}, ${$}${B}`:D,Y=[[e1.default.instancePath,(0,d0.strConcat)(e1.default.instancePath,z)],[e1.default.parentData,Z.parentData],[e1.default.parentDataProperty,Z.parentDataProperty],[e1.default.rootData,e1.default.rootData]];if(Z.opts.dynamicRef)Y.push([e1.default.dynamicAnchors,e1.default.dynamicAnchors]);let J=d0._`${W}, ${F.object(...Y)}`;return X!==d0.nil?d0._`${q}.call(${X}, ${J})`:d0._`${q}(${J})`}vO.callValidateCode=ks;var hs=d0._`new RegExp`;function cs({gen:u,it:{opts:D}},F){let $=D.unicodeRegExp?"u":"",{regExp:B}=D.code,z=B(F,$);return u.scopeValue("pattern",{key:z.toString(),ref:z,code:d0._`${B.code==="new RegExp"?hs:(0,vs.useFunc)(u,B)}(${F}, ${$})`})}vO.usePattern=cs;function ms(u){let{gen:D,data:F,keyword:$,it:B}=u,z=D.name("valid");if(B.allErrors){let q=D.let("valid",!0);return Z(()=>D.assign(q,!1)),q}return D.var(z,!0),Z(()=>D.break()),z;function Z(q){let X=D.const("len",d0._`${F}.length`);D.forRange("i",0,X,(Q)=>{u.subschema({keyword:$,dataProp:Q,dataPropType:qz.Type.Num},z),D.if((0,d0.not)(z),q)})}}vO.validateArray=ms;function ns(u){let{gen:D,schema:F,keyword:$,it:B}=u;if(!Array.isArray(F))throw Error("ajv implementation error");if(F.some((X)=>(0,qz.alwaysValidSchema)(B,X))&&!B.opts.unevaluated)return;let Z=D.let("valid",!1),q=D.name("_valid");D.block(()=>F.forEach((X,Q)=>{let W=u.subschema({keyword:$,schemaProp:Q,compositeRule:!0},q);if(D.assign(Z,d0._`${Z} || ${q}`),!u.mergeValidEvaluated(W,q))D.if((0,d0.not)(Z))})),u.result(Z,()=>u.reset(),()=>u.error(!0))}vO.validateUnion=ns});var kO=V((bO)=>{Object.defineProperty(bO,"__esModule",{value:!0});bO.validateKeywordUsage=bO.validSchemaType=bO.funcKeywordCode=bO.macroKeywordCode=void 0;var mu=P0(),kF=O1(),Fr=OD(),$r=Y4();function Br(u,D){let{gen:F,keyword:$,schema:B,parentSchema:z,it:Z}=u,q=D.macro.call(Z.self,B,z,Z),X=yO(F,$,q);if(Z.opts.validateSchema!==!1)Z.self.validateSchema(q,!0);let Q=F.name("valid");u.subschema({schema:q,schemaPath:mu.nil,errSchemaPath:`${Z.errSchemaPath}/${$}`,topSchemaRef:X,compositeRule:!0},Q),u.pass(Q,()=>u.error(!0))}bO.macroKeywordCode=Br;function zr(u,D){var F;let{gen:$,keyword:B,schema:z,parentSchema:Z,$data:q,it:X}=u;qr(X,D);let Q=!q&&D.compile?D.compile.call(X.self,z,Z,X):D.validate,W=yO($,B,Q),Y=$.let("valid");u.block$data(Y,J),u.ok((F=D.valid)!==null&&F!==void 0?F:Y);function J(){if(D.errors===!1){if(H(),D.modifying)TO(u);f(()=>u.error())}else{let x=D.async?G():K();if(D.modifying)TO(u);f(()=>Zr(u,x))}}function G(){let x=$.let("ruleErrs",null);return $.try(()=>H(mu._`await `),(L)=>$.assign(Y,!1).if(mu._`${L} instanceof ${X.ValidationError}`,()=>$.assign(x,mu._`${L}.errors`),()=>$.throw(L))),x}function K(){let x=mu._`${W}.errors`;return $.assign(x,null),H(mu.nil),x}function H(x=D.async?mu._`await `:mu.nil){let L=X.opts.passContext?kF.default.this:kF.default.self,A=!(("compile"in D)&&!q||D.schema===!1);$.assign(Y,mu._`${x}${(0,Fr.callValidateCode)(u,W,L,A)}`,D.modifying)}function f(x){var L;$.if((0,mu.not)((L=D.valid)!==null&&L!==void 0?L:Y),x)}}bO.funcKeywordCode=zr;function TO(u){let{gen:D,data:F,it:$}=u;D.if($.parentData,()=>D.assign(F,mu._`${$.parentData}[${$.parentDataProperty}]`))}function Zr(u,D){let{gen:F}=u;F.if(mu._`Array.isArray(${D})`,()=>{F.assign(kF.default.vErrors,mu._`${kF.default.vErrors} === null ? ${D} : ${kF.default.vErrors}.concat(${D})`).assign(kF.default.errors,mu._`${kF.default.vErrors}.length`),(0,$r.extendErrors)(u)},()=>u.error())}function qr({schemaEnv:u},D){if(D.async&&!u.$async)throw Error("async keyword in sync schema")}function yO(u,D,F){if(F===void 0)throw Error(`keyword "${D}" failed to compile`);return u.scopeValue("keyword",typeof F=="function"?{ref:F}:{ref:F,code:(0,mu.stringify)(F)})}function Xr(u,D,F=!1){return!D.length||D.some(($)=>$==="array"?Array.isArray(u):$==="object"?u&&typeof u=="object"&&!Array.isArray(u):typeof u==$||F&&typeof u>"u")}bO.validSchemaType=Xr;function Qr({schema:u,opts:D,self:F,errSchemaPath:$},B,z){if(Array.isArray(B.keyword)?!B.keyword.includes(z):B.keyword!==z)throw Error("ajv implementation error");let Z=B.dependencies;if(Z===null||Z===void 0?void 0:Z.some((q)=>!Object.prototype.hasOwnProperty.call(u,q)))throw Error(`parent schema must have dependencies of ${z}: ${Z.join(",")}`);if(B.validateSchema){if(!B.validateSchema(u[z])){let X=`keyword "${z}" value is invalid at path "${$}": `+F.errorsText(B.validateSchema.errors);if(D.validateSchema==="log")F.logger.error(X);else throw Error(X)}}}bO.validateKeywordUsage=Qr});var nO=V((cO)=>{Object.defineProperty(cO,"__esModule",{value:!0});cO.extendSubschemaMode=cO.extendSubschemaData=cO.getSubschema=void 0;var $1=P0(),hO=v0();function Gr(u,{keyword:D,schemaProp:F,schema:$,schemaPath:B,errSchemaPath:z,topSchemaRef:Z}){if(D!==void 0&&$!==void 0)throw Error('both "keyword" and "schema" passed, only one allowed');if(D!==void 0){let q=u.schema[D];return F===void 0?{schema:q,schemaPath:$1._`${u.schemaPath}${(0,$1.getProperty)(D)}`,errSchemaPath:`${u.errSchemaPath}/${D}`}:{schema:q[F],schemaPath:$1._`${u.schemaPath}${(0,$1.getProperty)(D)}${(0,$1.getProperty)(F)}`,errSchemaPath:`${u.errSchemaPath}/${D}/${(0,hO.escapeFragment)(F)}`}}if($!==void 0){if(B===void 0||z===void 0||Z===void 0)throw Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:$,schemaPath:B,topSchemaRef:Z,errSchemaPath:z}}throw Error('either "keyword" or "schema" must be passed')}cO.getSubschema=Gr;function Kr(u,D,{dataProp:F,dataPropType:$,data:B,dataTypes:z,propertyName:Z}){if(B!==void 0&&F!==void 0)throw Error('both "data" and "dataProp" passed, only one allowed');let{gen:q}=D;if(F!==void 0){let{errorPath:Q,dataPathArr:W,opts:Y}=D,J=q.let("data",$1._`${D.data}${(0,$1.getProperty)(F)}`,!0);X(J),u.errorPath=$1.str`${Q}${(0,hO.getErrorPath)(F,$,Y.jsPropertySyntax)}`,u.parentDataProperty=$1._`${F}`,u.dataPathArr=[...W,u.parentDataProperty]}if(B!==void 0){let Q=B instanceof $1.Name?B:q.let("data",B,!0);if(X(Q),Z!==void 0)u.propertyName=Z}if(z)u.dataTypes=z;function X(Q){u.data=Q,u.dataLevel=D.dataLevel+1,u.dataTypes=[],D.definedProperties=new Set,u.parentData=D.data,u.dataNames=[...D.dataNames,Q]}}cO.extendSubschemaData=Kr;function Hr(u,{jtdDiscriminator:D,jtdMetadata:F,compositeRule:$,createErrors:B,allErrors:z}){if($!==void 0)u.compositeRule=$;if(B!==void 0)u.createErrors=B;if(z!==void 0)u.allErrors=z;u.jtdDiscriminator=D,u.jtdMetadata=F}cO.extendSubschemaMode=Hr});var Wz=V((DX0,pO)=>{pO.exports=function u(D,F){if(D===F)return!0;if(D&&F&&typeof D=="object"&&typeof F=="object"){if(D.constructor!==F.constructor)return!1;var $,B,z;if(Array.isArray(D)){if($=D.length,$!=F.length)return!1;for(B=$;B--!==0;)if(!u(D[B],F[B]))return!1;return!0}if(D.constructor===RegExp)return D.source===F.source&&D.flags===F.flags;if(D.valueOf!==Object.prototype.valueOf)return D.valueOf()===F.valueOf();if(D.toString!==Object.prototype.toString)return D.toString()===F.toString();if(z=Object.keys(D),$=z.length,$!==Object.keys(F).length)return!1;for(B=$;B--!==0;)if(!Object.prototype.hasOwnProperty.call(F,z[B]))return!1;for(B=$;B--!==0;){var Z=z[B];if(!u(D[Z],F[Z]))return!1}return!0}return D!==D&&F!==F}});var gO=V((FX0,lO)=>{var uF=lO.exports=function(u,D,F){if(typeof D=="function")F=D,D={};F=D.cb||F;var $=typeof F=="function"?F:F.pre||function(){},B=F.post||function(){};H5(D,$,B,u,"",u)};uF.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};uF.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};uF.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};uF.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function H5(u,D,F,$,B,z,Z,q,X,Q){if($&&typeof $=="object"&&!Array.isArray($)){D($,B,z,Z,q,X,Q);for(var W in $){var Y=$[W];if(Array.isArray(Y)){if(W in uF.arrayKeywords)for(var J=0;J<Y.length;J++)H5(u,D,F,Y[J],B+"/"+W+"/"+J,z,B,W,$,J)}else if(W in uF.propsKeywords){if(Y&&typeof Y=="object")for(var G in Y)H5(u,D,F,Y[G],B+"/"+W+"/"+Lr(G),z,B,W,$,G)}else if(W in uF.keywords||u.allKeys&&!(W in uF.skipKeywords))H5(u,D,F,Y,B+"/"+W,z,B,W,$)}F($,B,z,Z,q,X,Q)}}function Lr(u){return u.replace(/~/g,"~0").replace(/\//g,"~1")}});var G4=V((rO)=>{Object.defineProperty(rO,"__esModule",{value:!0});rO.getSchemaRefs=rO.resolveUrl=rO.normalizeId=rO._getFullPath=rO.getFullPath=rO.inlineRef=void 0;var Mr=v0(),xr=Wz(),Or=gO(),Ar=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function wr(u,D=!0){if(typeof u=="boolean")return!0;if(D===!0)return!Yz(u);if(!D)return!1;return dO(u)<=D}rO.inlineRef=wr;var Nr=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Yz(u){for(let D in u){if(Nr.has(D))return!0;let F=u[D];if(Array.isArray(F)&&F.some(Yz))return!0;if(typeof F=="object"&&Yz(F))return!0}return!1}function dO(u){let D=0;for(let F in u){if(F==="$ref")return 1/0;if(D++,Ar.has(F))continue;if(typeof u[F]=="object")(0,Mr.eachItem)(u[F],($)=>D+=dO($));if(D===1/0)return 1/0}return D}function oO(u,D="",F){if(F!==!1)D=m6(D);let $=u.parse(D);return sO(u,$)}rO.getFullPath=oO;function sO(u,D){return u.serialize(D).split("#")[0]+"#"}rO._getFullPath=sO;var jr=/#\/?$/;function m6(u){return u?u.replace(jr,""):""}rO.normalizeId=m6;function Ir(u,D,F){return F=m6(F),u.resolve(D,F)}rO.resolveUrl=Ir;var Er=/^[a-z_][-a-z0-9._]*$/i;function Pr(u,D){if(typeof u=="boolean")return{};let{schemaId:F,uriResolver:$}=this.opts,B=m6(u[F]||D),z={"":B},Z=oO($,B,!1),q={},X=new Set;return Or(u,{allKeys:!0},(Y,J,G,K)=>{if(K===void 0)return;let H=Z+J,f=z[K];if(typeof Y[F]=="string")f=x.call(this,Y[F]);L.call(this,Y.$anchor),L.call(this,Y.$dynamicAnchor),z[J]=f;function x(A){let C=this.opts.uriResolver.resolve;if(A=m6(f?C(f,A):A),X.has(A))throw W(A);X.add(A);let I=this.refs[A];if(typeof I=="string")I=this.refs[I];if(typeof I=="object")Q(Y,I.schema,A);else if(A!==m6(H))if(A[0]==="#")Q(Y,q[A],A),q[A]=Y;else this.refs[A]=H;return A}function L(A){if(typeof A=="string"){if(!Er.test(A))throw Error(`invalid anchor "${A}"`);x.call(this,`#${A}`)}}}),q;function Q(Y,J,G){if(J!==void 0&&!xr(Y,J))throw W(G)}function W(Y){return Error(`reference "${Y}" resolves to more than one schema`)}}rO.getSchemaRefs=Pr});var f4=V((JA)=>{Object.defineProperty(JA,"__esModule",{value:!0});JA.getData=JA.KeywordCxt=JA.validateFunctionCode=void 0;var FA=HO(),tO=J4(),Gz=$z(),f5=J4(),Sr=_O(),H4=kO(),Jz=nO(),K0=P0(),A0=O1(),Tr=G4(),A1=v0(),K4=Y4();function yr(u){if(zA(u)){if(ZA(u),BA(u)){kr(u);return}}$A(u,()=>(0,FA.topBoolOrEmptySchema)(u))}JA.validateFunctionCode=yr;function $A({gen:u,validateName:D,schema:F,schemaEnv:$,opts:B},z){if(B.code.es5)u.func(D,K0._`${A0.default.data}, ${A0.default.valCxt}`,$.$async,()=>{u.code(K0._`"use strict"; ${eO(F,B)}`),Rr(u,B),u.code(z)});else u.func(D,K0._`${A0.default.data}, ${br(B)}`,$.$async,()=>u.code(eO(F,B)).code(z))}function br(u){return K0._`{${A0.default.instancePath}="", ${A0.default.parentData}, ${A0.default.parentDataProperty}, ${A0.default.rootData}=${A0.default.data}${u.dynamicRef?K0._`, ${A0.default.dynamicAnchors}={}`:K0.nil}}={}`}function Rr(u,D){u.if(A0.default.valCxt,()=>{if(u.var(A0.default.instancePath,K0._`${A0.default.valCxt}.${A0.default.instancePath}`),u.var(A0.default.parentData,K0._`${A0.default.valCxt}.${A0.default.parentData}`),u.var(A0.default.parentDataProperty,K0._`${A0.default.valCxt}.${A0.default.parentDataProperty}`),u.var(A0.default.rootData,K0._`${A0.default.valCxt}.${A0.default.rootData}`),D.dynamicRef)u.var(A0.default.dynamicAnchors,K0._`${A0.default.valCxt}.${A0.default.dynamicAnchors}`)},()=>{if(u.var(A0.default.instancePath,K0._`""`),u.var(A0.default.parentData,K0._`undefined`),u.var(A0.default.parentDataProperty,K0._`undefined`),u.var(A0.default.rootData,A0.default.data),D.dynamicRef)u.var(A0.default.dynamicAnchors,K0._`{}`)})}function kr(u){let{schema:D,opts:F,gen:$}=u;$A(u,()=>{if(F.$comment&&D.$comment)XA(u);if(pr(u),$.let(A0.default.vErrors,null),$.let(A0.default.errors,0),F.unevaluated)hr(u);qA(u),dr(u)});return}function hr(u){let{gen:D,validateName:F}=u;u.evaluated=D.const("evaluated",K0._`${F}.evaluated`),D.if(K0._`${u.evaluated}.dynamicProps`,()=>D.assign(K0._`${u.evaluated}.props`,K0._`undefined`)),D.if(K0._`${u.evaluated}.dynamicItems`,()=>D.assign(K0._`${u.evaluated}.items`,K0._`undefined`))}function eO(u,D){let F=typeof u=="object"&&u[D.schemaId];return F&&(D.code.source||D.code.process)?K0._`/*# sourceURL=${F} */`:K0.nil}function cr(u,D){if(zA(u)){if(ZA(u),BA(u)){mr(u,D);return}}(0,FA.boolOrEmptySchema)(u,D)}function BA({schema:u,self:D}){if(typeof u=="boolean")return!u;for(let F in u)if(D.RULES.all[F])return!0;return!1}function zA(u){return typeof u.schema!="boolean"}function mr(u,D){let{schema:F,gen:$,opts:B}=u;if(B.$comment&&F.$comment)XA(u);lr(u),gr(u);let z=$.const("_errs",A0.default.errors);qA(u,z),$.var(D,K0._`${z} === ${A0.default.errors}`)}function ZA(u){(0,A1.checkUnknownRules)(u),nr(u)}function qA(u,D){if(u.opts.jtd)return uA(u,[],!1,D);let F=(0,tO.getSchemaTypes)(u.schema),$=(0,tO.coerceAndCheckDataType)(u,F);uA(u,F,!$,D)}function nr(u){let{schema:D,errSchemaPath:F,opts:$,self:B}=u;if(D.$ref&&$.ignoreKeywordsWithRef&&(0,A1.schemaHasRulesButRef)(D,B.RULES))B.logger.warn(`$ref: keywords ignored in schema at path "${F}"`)}function pr(u){let{schema:D,opts:F}=u;if(D.default!==void 0&&F.useDefaults&&F.strictSchema)(0,A1.checkStrictMode)(u,"default is ignored in the schema root")}function lr(u){let D=u.schema[u.opts.schemaId];if(D)u.baseId=(0,Tr.resolveUrl)(u.opts.uriResolver,u.baseId,D)}function gr(u){if(u.schema.$async&&!u.schemaEnv.$async)throw Error("async schema in sync schema")}function XA({gen:u,schemaEnv:D,schema:F,errSchemaPath:$,opts:B}){let z=F.$comment;if(B.$comment===!0)u.code(K0._`${A0.default.self}.logger.log(${z})`);else if(typeof B.$comment=="function"){let Z=K0.str`${$}/$comment`,q=u.scopeValue("root",{ref:D.root});u.code(K0._`${A0.default.self}.opts.$comment(${z}, ${Z}, ${q}.schema)`)}}function dr(u){let{gen:D,schemaEnv:F,validateName:$,ValidationError:B,opts:z}=u;if(F.$async)D.if(K0._`${A0.default.errors} === 0`,()=>D.return(A0.default.data),()=>D.throw(K0._`new ${B}(${A0.default.vErrors})`));else{if(D.assign(K0._`${$}.errors`,A0.default.vErrors),z.unevaluated)or(u);D.return(K0._`${A0.default.errors} === 0`)}}function or({gen:u,evaluated:D,props:F,items:$}){if(F instanceof K0.Name)u.assign(K0._`${D}.props`,F);if($ instanceof K0.Name)u.assign(K0._`${D}.items`,$)}function uA(u,D,F,$){let{gen:B,schema:z,data:Z,allErrors:q,opts:X,self:Q}=u,{RULES:W}=Q;if(z.$ref&&(X.ignoreKeywordsWithRef||!(0,A1.schemaHasRulesButRef)(z,W))){B.block(()=>WA(u,"$ref",W.all.$ref.definition));return}if(!X.jtd)sr(u,D);B.block(()=>{for(let J of W.rules)Y(J);Y(W.post)});function Y(J){if(!(0,Gz.shouldUseGroup)(z,J))return;if(J.type){if(B.if((0,f5.checkDataType)(J.type,Z,X.strictNumbers)),DA(u,J),D.length===1&&D[0]===J.type&&F)B.else(),(0,f5.reportTypeError)(u);B.endIf()}else DA(u,J);if(!q)B.if(K0._`${A0.default.errors} === ${$||0}`)}}function DA(u,D){let{gen:F,schema:$,opts:{useDefaults:B}}=u;if(B)(0,Sr.assignDefaults)(u,D.type);F.block(()=>{for(let z of D.rules)if((0,Gz.shouldUseRule)($,z))WA(u,z.keyword,z.definition,D.type)})}function sr(u,D){if(u.schemaEnv.meta||!u.opts.strictTypes)return;if(rr(u,D),!u.opts.allowUnionTypes)ar(u,D);tr(u,u.dataTypes)}function rr(u,D){if(!D.length)return;if(!u.dataTypes.length){u.dataTypes=D;return}D.forEach((F)=>{if(!QA(u.dataTypes,F))Kz(u,`type "${F}" not allowed by context "${u.dataTypes.join(",")}"`)}),ua(u,D)}function ar(u,D){if(D.length>1&&!(D.length===2&&D.includes("null")))Kz(u,"use allowUnionTypes to allow union type keyword")}function tr(u,D){let F=u.self.RULES.all;for(let $ in F){let B=F[$];if(typeof B=="object"&&(0,Gz.shouldUseRule)(u.schema,B)){let{type:z}=B.definition;if(z.length&&!z.some((Z)=>er(D,Z)))Kz(u,`missing type "${z.join(",")}" for keyword "${$}"`)}}}function er(u,D){return u.includes(D)||D==="number"&&u.includes("integer")}function QA(u,D){return u.includes(D)||D==="integer"&&u.includes("number")}function ua(u,D){let F=[];for(let $ of u.dataTypes)if(QA(D,$))F.push($);else if(D.includes("integer")&&$==="number")F.push("integer");u.dataTypes=F}function Kz(u,D){let F=u.schemaEnv.baseId+u.errSchemaPath;D+=` at "${F}" (strictTypes)`,(0,A1.checkStrictMode)(u,D,u.opts.strictTypes)}class Hz{constructor(u,D,F){if((0,H4.validateKeywordUsage)(u,D,F),this.gen=u.gen,this.allErrors=u.allErrors,this.keyword=F,this.data=u.data,this.schema=u.schema[F],this.$data=D.$data&&u.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,A1.schemaRefOrVal)(u,this.schema,F,this.$data),this.schemaType=D.schemaType,this.parentSchema=u.schema,this.params={},this.it=u,this.def=D,this.$data)this.schemaCode=u.gen.const("vSchema",YA(this.$data,u));else if(this.schemaCode=this.schemaValue,!(0,H4.validSchemaType)(this.schema,D.schemaType,D.allowUndefined))throw Error(`${F} value must be ${JSON.stringify(D.schemaType)}`);if("code"in D?D.trackErrors:D.errors!==!1)this.errsCount=u.gen.const("_errs",A0.default.errors)}result(u,D,F){this.failResult((0,K0.not)(u),D,F)}failResult(u,D,F){if(this.gen.if(u),F)F();else this.error();if(D){if(this.gen.else(),D(),this.allErrors)this.gen.endIf()}else if(this.allErrors)this.gen.endIf();else this.gen.else()}pass(u,D){this.failResult((0,K0.not)(u),void 0,D)}fail(u){if(u===void 0){if(this.error(),!this.allErrors)this.gen.if(!1);return}if(this.gen.if(u),this.error(),this.allErrors)this.gen.endIf();else this.gen.else()}fail$data(u){if(!this.$data)return this.fail(u);let{schemaCode:D}=this;this.fail(K0._`${D} !== undefined && (${(0,K0.or)(this.invalid$data(),u)})`)}error(u,D,F){if(D){this.setParams(D),this._error(u,F),this.setParams({});return}this._error(u,F)}_error(u,D){(u?K4.reportExtraError:K4.reportError)(this,this.def.error,D)}$dataError(){(0,K4.reportError)(this,this.def.$dataError||K4.keyword$DataError)}reset(){if(this.errsCount===void 0)throw Error('add "trackErrors" to keyword definition');(0,K4.resetErrorsCount)(this.gen,this.errsCount)}ok(u){if(!this.allErrors)this.gen.if(u)}setParams(u,D){if(D)Object.assign(this.params,u);else this.params=u}block$data(u,D,F=K0.nil){this.gen.block(()=>{this.check$data(u,F),D()})}check$data(u=K0.nil,D=K0.nil){if(!this.$data)return;let{gen:F,schemaCode:$,schemaType:B,def:z}=this;if(F.if((0,K0.or)(K0._`${$} === undefined`,D)),u!==K0.nil)F.assign(u,!0);if(B.length||z.validateSchema){if(F.elseIf(this.invalid$data()),this.$dataError(),u!==K0.nil)F.assign(u,!1)}F.else()}invalid$data(){let{gen:u,schemaCode:D,schemaType:F,def:$,it:B}=this;return(0,K0.or)(z(),Z());function z(){if(F.length){if(!(D instanceof K0.Name))throw Error("ajv implementation error");let q=Array.isArray(F)?F:[F];return K0._`${(0,f5.checkDataTypes)(q,D,B.opts.strictNumbers,f5.DataType.Wrong)}`}return K0.nil}function Z(){if($.validateSchema){let q=u.scopeValue("validate$data",{ref:$.validateSchema});return K0._`!${q}(${D})`}return K0.nil}}subschema(u,D){let F=(0,Jz.getSubschema)(this.it,u);(0,Jz.extendSubschemaData)(F,this.it,u),(0,Jz.extendSubschemaMode)(F,u);let $={...this.it,...F,items:void 0,props:void 0};return cr($,D),$}mergeEvaluated(u,D){let{it:F,gen:$}=this;if(!F.opts.unevaluated)return;if(F.props!==!0&&u.props!==void 0)F.props=A1.mergeEvaluated.props($,u.props,F.props,D);if(F.items!==!0&&u.items!==void 0)F.items=A1.mergeEvaluated.items($,u.items,F.items,D)}mergeValidEvaluated(u,D){let{it:F,gen:$}=this;if(F.opts.unevaluated&&(F.props!==!0||F.items!==!0))return $.if(D,()=>this.mergeEvaluated(u,K0.Name)),!0}}JA.KeywordCxt=Hz;function WA(u,D,F,$){let B=new Hz(u,F,D);if("code"in F)F.code(B,$);else if(B.$data&&F.validate)(0,H4.funcKeywordCode)(B,F);else if("macro"in F)(0,H4.macroKeywordCode)(B,F);else if(F.compile||F.validate)(0,H4.funcKeywordCode)(B,F)}var Da=/^\/(?:[^~]|~0|~1)*$/,Fa=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function YA(u,{dataLevel:D,dataNames:F,dataPathArr:$}){let B,z;if(u==="")return A0.default.rootData;if(u[0]==="/"){if(!Da.test(u))throw Error(`Invalid JSON-pointer: ${u}`);B=u,z=A0.default.rootData}else{let Q=Fa.exec(u);if(!Q)throw Error(`Invalid JSON-pointer: ${u}`);let W=+Q[1];if(B=Q[2],B==="#"){if(W>=D)throw Error(X("property/index",W));return $[D-W]}if(W>D)throw Error(X("data",W));if(z=F[D-W],!B)return z}let Z=z,q=B.split("/");for(let Q of q)if(Q)z=K0._`${z}${(0,K0.getProperty)((0,A1.unescapeJsonPointer)(Q))}`,Z=K0._`${Z} && ${z}`;return Z;function X(Q,W){return`Cannot access ${Q} ${W} levels up, current level is ${D}`}}JA.getData=YA});var V5=V((HA)=>{Object.defineProperty(HA,"__esModule",{value:!0});class KA extends Error{constructor(u){super("validation failed");this.errors=u,this.ajv=this.validation=!0}}HA.default=KA});var V4=V((VA)=>{Object.defineProperty(VA,"__esModule",{value:!0});var fz=G4();class fA extends Error{constructor(u,D,F,$){super($||`can't resolve reference ${F} from id ${D}`);this.missingRef=(0,fz.resolveUrl)(u,D,F),this.missingSchema=(0,fz.normalizeId)((0,fz.getFullPath)(u,this.missingRef))}}VA.default=fA});var M5=V((xA)=>{Object.defineProperty(xA,"__esModule",{value:!0});xA.resolveSchema=xA.getCompilingSchema=xA.resolveRef=xA.compileSchema=xA.SchemaEnv=void 0;var mD=P0(),qa=V5(),hF=O1(),nD=G4(),LA=v0(),Xa=f4();class L4{constructor(u){var D;this.refs={},this.dynamicAnchors={};let F;if(typeof u.schema=="object")F=u.schema;this.schema=u.schema,this.schemaId=u.schemaId,this.root=u.root||this,this.baseId=(D=u.baseId)!==null&&D!==void 0?D:(0,nD.normalizeId)(F===null||F===void 0?void 0:F[u.schemaId||"$id"]),this.schemaPath=u.schemaPath,this.localRefs=u.localRefs,this.meta=u.meta,this.$async=F===null||F===void 0?void 0:F.$async,this.refs={}}}xA.SchemaEnv=L4;function Lz(u){let D=MA.call(this,u);if(D)return D;let F=(0,nD.getFullPath)(this.opts.uriResolver,u.root.baseId),{es5:$,lines:B}=this.opts.code,{ownProperties:z}=this.opts,Z=new mD.CodeGen(this.scope,{es5:$,lines:B,ownProperties:z}),q;if(u.$async)q=Z.scopeValue("Error",{ref:qa.default,code:mD._`require("ajv/dist/runtime/validation_error").default`});let X=Z.scopeName("validate");u.validateName=X;let Q={gen:Z,allErrors:this.opts.allErrors,data:hF.default.data,parentData:hF.default.parentData,parentDataProperty:hF.default.parentDataProperty,dataNames:[hF.default.data],dataPathArr:[mD.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:Z.scopeValue("schema",this.opts.code.source===!0?{ref:u.schema,code:(0,mD.stringify)(u.schema)}:{ref:u.schema}),validateName:X,ValidationError:q,schema:u.schema,schemaEnv:u,rootId:F,baseId:u.baseId||F,schemaPath:mD.nil,errSchemaPath:u.schemaPath||(this.opts.jtd?"":"#"),errorPath:mD._`""`,opts:this.opts,self:this},W;try{this._compilations.add(u),(0,Xa.validateFunctionCode)(Q),Z.optimize(this.opts.code.optimize);let Y=Z.toString();if(W=`${Z.scopeRefs(hF.default.scope)}return ${Y}`,this.opts.code.process)W=this.opts.code.process(W,u);let G=Function(`${hF.default.self}`,`${hF.default.scope}`,W)(this,this.scope.get());if(this.scope.value(X,{ref:G}),G.errors=null,G.schema=u.schema,G.schemaEnv=u,u.$async)G.$async=!0;if(this.opts.code.source===!0)G.source={validateName:X,validateCode:Y,scopeValues:Z._values};if(this.opts.unevaluated){let{props:K,items:H}=Q;if(G.evaluated={props:K instanceof mD.Name?void 0:K,items:H instanceof mD.Name?void 0:H,dynamicProps:K instanceof mD.Name,dynamicItems:H instanceof mD.Name},G.source)G.source.evaluated=(0,mD.stringify)(G.evaluated)}return u.validate=G,u}catch(Y){if(delete u.validate,delete u.validateName,W)this.logger.error("Error compiling schema, function code:",W);throw Y}finally{this._compilations.delete(u)}}xA.compileSchema=Lz;function Qa(u,D,F){var $;F=(0,nD.resolveUrl)(this.opts.uriResolver,D,F);let B=u.refs[F];if(B)return B;let z=Ja.call(this,u,F);if(z===void 0){let Z=($=u.localRefs)===null||$===void 0?void 0:$[F],{schemaId:q}=this.opts;if(Z)z=new L4({schema:Z,schemaId:q,root:u,baseId:D})}if(z===void 0)return;return u.refs[F]=Wa.call(this,z)}xA.resolveRef=Qa;function Wa(u){if((0,nD.inlineRef)(u.schema,this.opts.inlineRefs))return u.schema;return u.validate?u:Lz.call(this,u)}function MA(u){for(let D of this._compilations)if(Ya(D,u))return D}xA.getCompilingSchema=MA;function Ya(u,D){return u.schema===D.schema&&u.root===D.root&&u.baseId===D.baseId}function Ja(u,D){let F;while(typeof(F=this.refs[D])=="string")D=F;return F||this.schemas[D]||L5.call(this,u,D)}function L5(u,D){let F=this.opts.uriResolver.parse(D),$=(0,nD._getFullPath)(this.opts.uriResolver,F),B=(0,nD.getFullPath)(this.opts.uriResolver,u.baseId,void 0);if(Object.keys(u.schema).length>0&&$===B)return Vz.call(this,F,u);let z=(0,nD.normalizeId)($),Z=this.refs[z]||this.schemas[z];if(typeof Z=="string"){let q=L5.call(this,u,Z);if(typeof(q===null||q===void 0?void 0:q.schema)!=="object")return;return Vz.call(this,F,q)}if(typeof(Z===null||Z===void 0?void 0:Z.schema)!=="object")return;if(!Z.validate)Lz.call(this,Z);if(z===(0,nD.normalizeId)(D)){let{schema:q}=Z,{schemaId:X}=this.opts,Q=q[X];if(Q)B=(0,nD.resolveUrl)(this.opts.uriResolver,B,Q);return new L4({schema:q,schemaId:X,root:u,baseId:B})}return Vz.call(this,F,Z)}xA.resolveSchema=L5;var Ga=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Vz(u,{baseId:D,schema:F,root:$}){var B;if(((B=u.fragment)===null||B===void 0?void 0:B[0])!=="/")return;for(let q of u.fragment.slice(1).split("/")){if(typeof F==="boolean")return;let X=F[(0,LA.unescapeFragment)(q)];if(X===void 0)return;F=X;let Q=typeof F==="object"&&F[this.opts.schemaId];if(!Ga.has(q)&&Q)D=(0,nD.resolveUrl)(this.opts.uriResolver,D,Q)}let z;if(typeof F!="boolean"&&F.$ref&&!(0,LA.schemaHasRulesButRef)(F,this.RULES)){let q=(0,nD.resolveUrl)(this.opts.uriResolver,D,F.$ref);z=L5.call(this,$,q)}let{schemaId:Z}=this.opts;if(z=z||new L4({schema:F,schemaId:Z,root:$,baseId:D}),z.schema!==z.root.schema)return z;return}});var AA=V((XX0,La)=>{La.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var xz=V((QX0,IA)=>{var Ma=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),NA=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function Mz(u){let D="",F=0,$=0;for($=0;$<u.length;$++){if(F=u[$].charCodeAt(0),F===48)continue;if(!(F>=48&&F<=57||F>=65&&F<=70||F>=97&&F<=102))return"";D+=u[$];break}for($+=1;$<u.length;$++){if(F=u[$].charCodeAt(0),!(F>=48&&F<=57||F>=65&&F<=70||F>=97&&F<=102))return"";D+=u[$]}return D}var xa=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function wA(u){return u.length=0,!0}function Oa(u,D,F){if(u.length){let $=Mz(u);if($!=="")D.push($);else return F.error=!0,!1;u.length=0}return!0}function Aa(u){let D=0,F={error:!1,address:"",zone:""},$=[],B=[],z=!1,Z=!1,q=Oa;for(let X=0;X<u.length;X++){let Q=u[X];if(Q==="["||Q==="]")continue;if(Q===":"){if(z===!0)Z=!0;if(!q(B,$,F))break;if(++D>7){F.error=!0;break}if(X>0&&u[X-1]===":")z=!0;$.push(":");continue}else if(Q==="%"){if(!q(B,$,F))break;q=wA}else{B.push(Q);continue}}if(B.length)if(q===wA)F.zone=B.join("");else if(Z)$.push(B.join(""));else $.push(Mz(B));return F.address=$.join(""),F}function jA(u){if(wa(u,":")<2)return{host:u,isIPV6:!1};let D=Aa(u);if(!D.error){let{address:F,address:$}=D;if(D.zone)F+="%"+D.zone,$+="%25"+D.zone;return{host:F,isIPV6:!0,escapedHost:$}}else return{host:u,isIPV6:!1}}function wa(u,D){let F=0;for(let $=0;$<u.length;$++)if(u[$]===D)F++;return F}function Na(u){let D=u,F=[],$=-1,B=0;while(B=D.length){if(B===1)if(D===".")break;else if(D==="/"){F.push("/");break}else{F.push(D);break}else if(B===2){if(D[0]==="."){if(D[1]===".")break;else if(D[1]==="/"){D=D.slice(2);continue}}else if(D[0]==="/"){if(D[1]==="."||D[1]==="/"){F.push("/");break}}}else if(B===3){if(D==="/.."){if(F.length!==0)F.pop();F.push("/");break}}if(D[0]==="."){if(D[1]==="."){if(D[2]==="/"){D=D.slice(3);continue}}else if(D[1]==="/"){D=D.slice(2);continue}}else if(D[0]==="/"){if(D[1]==="."){if(D[2]==="/"){D=D.slice(2);continue}else if(D[2]==="."){if(D[3]==="/"){if(D=D.slice(3),F.length!==0)F.pop();continue}}}}if(($=D.indexOf("/",1))===-1){F.push(D);break}else F.push(D.slice(0,$)),D=D.slice($)}return F.join("")}function ja(u,D){let F=D!==!0?escape:unescape;if(u.scheme!==void 0)u.scheme=F(u.scheme);if(u.userinfo!==void 0)u.userinfo=F(u.userinfo);if(u.host!==void 0)u.host=F(u.host);if(u.path!==void 0)u.path=F(u.path);if(u.query!==void 0)u.query=F(u.query);if(u.fragment!==void 0)u.fragment=F(u.fragment);return u}function Ia(u){let D=[];if(u.userinfo!==void 0)D.push(u.userinfo),D.push("@");if(u.host!==void 0){let F=unescape(u.host);if(!NA(F)){let $=jA(F);if($.isIPV6===!0)F=`[${$.escapedHost}]`;else F=u.host}D.push(F)}if(typeof u.port==="number"||typeof u.port==="string")D.push(":"),D.push(String(u.port));return D.length?D.join(""):void 0}IA.exports={nonSimpleDomain:xa,recomposeAuthority:Ia,normalizeComponentEncoding:ja,removeDotSegments:Na,isIPv4:NA,isUUID:Ma,normalizeIPv6:jA,stringArrayToHexStripped:Mz}});var UA=V((WX0,_A)=>{var{isUUID:Ea}=xz(),Pa=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,Ca=["http","https","ws","wss","urn","urn:uuid"];function _a(u){return Ca.indexOf(u)!==-1}function Oz(u){if(u.secure===!0)return!0;else if(u.secure===!1)return!1;else if(u.scheme)return u.scheme.length===3&&(u.scheme[0]==="w"||u.scheme[0]==="W")&&(u.scheme[1]==="s"||u.scheme[1]==="S")&&(u.scheme[2]==="s"||u.scheme[2]==="S");else return!1}function EA(u){if(!u.host)u.error=u.error||"HTTP URIs must have a host.";return u}function PA(u){let D=String(u.scheme).toLowerCase()==="https";if(u.port===(D?443:80)||u.port==="")u.port=void 0;if(!u.path)u.path="/";return u}function Ua(u){return u.secure=Oz(u),u.resourceName=(u.path||"/")+(u.query?"?"+u.query:""),u.path=void 0,u.query=void 0,u}function ia(u){if(u.port===(Oz(u)?443:80)||u.port==="")u.port=void 0;if(typeof u.secure==="boolean")u.scheme=u.secure?"wss":"ws",u.secure=void 0;if(u.resourceName){let[D,F]=u.resourceName.split("?");u.path=D&&D!=="/"?D:void 0,u.query=F,u.resourceName=void 0}return u.fragment=void 0,u}function va(u,D){if(!u.path)return u.error="URN can not be parsed",u;let F=u.path.match(Pa);if(F){let $=D.scheme||u.scheme||"urn";u.nid=F[1].toLowerCase(),u.nss=F[2];let B=`${$}:${D.nid||u.nid}`,z=Az(B);if(u.path=void 0,z)u=z.parse(u,D)}else u.error=u.error||"URN can not be parsed.";return u}function Sa(u,D){if(u.nid===void 0)throw Error("URN without nid cannot be serialized");let F=D.scheme||u.scheme||"urn",$=u.nid.toLowerCase(),B=`${F}:${D.nid||$}`,z=Az(B);if(z)u=z.serialize(u,D);let Z=u,q=u.nss;return Z.path=`${$||D.nid}:${q}`,D.skipEscape=!0,Z}function Ta(u,D){let F=u;if(F.uuid=F.nss,F.nss=void 0,!D.tolerant&&(!F.uuid||!Ea(F.uuid)))F.error=F.error||"UUID is not valid.";return F}function ya(u){let D=u;return D.nss=(u.uuid||"").toLowerCase(),D}var CA={scheme:"http",domainHost:!0,parse:EA,serialize:PA},ba={scheme:"https",domainHost:CA.domainHost,parse:EA,serialize:PA},x5={scheme:"ws",domainHost:!0,parse:Ua,serialize:ia},Ra={scheme:"wss",domainHost:x5.domainHost,parse:x5.parse,serialize:x5.serialize},ka={scheme:"urn",parse:va,serialize:Sa,skipNormalize:!0},ha={scheme:"urn:uuid",parse:Ta,serialize:ya,skipNormalize:!0},O5={http:CA,https:ba,ws:x5,wss:Ra,urn:ka,"urn:uuid":ha};Object.setPrototypeOf(O5,null);function Az(u){return u&&(O5[u]||O5[u.toLowerCase()])||void 0}_A.exports={wsIsSecure:Oz,SCHEMES:O5,isValidSchemeName:_a,getSchemeHandler:Az}});var SA=V((YX0,w5)=>{var{normalizeIPv6:ca,removeDotSegments:M4,recomposeAuthority:ma,normalizeComponentEncoding:A5,isIPv4:na,nonSimpleDomain:pa}=xz(),{SCHEMES:la,getSchemeHandler:iA}=UA();function ga(u,D){if(typeof u==="string")u=B1(w1(u,D),D);else if(typeof u==="object")u=w1(B1(u,D),D);return u}function da(u,D,F){let $=F?Object.assign({scheme:"null"},F):{scheme:"null"},B=vA(w1(u,$),w1(D,$),$,!0);return $.skipEscape=!0,B1(B,$)}function vA(u,D,F,$){let B={};if(!$)u=w1(B1(u,F),F),D=w1(B1(D,F),F);if(F=F||{},!F.tolerant&&D.scheme)B.scheme=D.scheme,B.userinfo=D.userinfo,B.host=D.host,B.port=D.port,B.path=M4(D.path||""),B.query=D.query;else{if(D.userinfo!==void 0||D.host!==void 0||D.port!==void 0)B.userinfo=D.userinfo,B.host=D.host,B.port=D.port,B.path=M4(D.path||""),B.query=D.query;else{if(!D.path)if(B.path=u.path,D.query!==void 0)B.query=D.query;else B.query=u.query;else{if(D.path[0]==="/")B.path=M4(D.path);else{if((u.userinfo!==void 0||u.host!==void 0||u.port!==void 0)&&!u.path)B.path="/"+D.path;else if(!u.path)B.path=D.path;else B.path=u.path.slice(0,u.path.lastIndexOf("/")+1)+D.path;B.path=M4(B.path)}B.query=D.query}B.userinfo=u.userinfo,B.host=u.host,B.port=u.port}B.scheme=u.scheme}return B.fragment=D.fragment,B}function oa(u,D,F){if(typeof u==="string")u=unescape(u),u=B1(A5(w1(u,F),!0),{...F,skipEscape:!0});else if(typeof u==="object")u=B1(A5(u,!0),{...F,skipEscape:!0});if(typeof D==="string")D=unescape(D),D=B1(A5(w1(D,F),!0),{...F,skipEscape:!0});else if(typeof D==="object")D=B1(A5(D,!0),{...F,skipEscape:!0});return u.toLowerCase()===D.toLowerCase()}function B1(u,D){let F={host:u.host,scheme:u.scheme,userinfo:u.userinfo,port:u.port,path:u.path,query:u.query,nid:u.nid,nss:u.nss,uuid:u.uuid,fragment:u.fragment,reference:u.reference,resourceName:u.resourceName,secure:u.secure,error:""},$=Object.assign({},D),B=[],z=iA($.scheme||F.scheme);if(z&&z.serialize)z.serialize(F,$);if(F.path!==void 0)if(!$.skipEscape){if(F.path=escape(F.path),F.scheme!==void 0)F.path=F.path.split("%3A").join(":")}else F.path=unescape(F.path);if($.reference!=="suffix"&&F.scheme)B.push(F.scheme,":");let Z=ma(F);if(Z!==void 0){if($.reference!=="suffix")B.push("//");if(B.push(Z),F.path&&F.path[0]!=="/")B.push("/")}if(F.path!==void 0){let q=F.path;if(!$.absolutePath&&(!z||!z.absolutePath))q=M4(q);if(Z===void 0&&q[0]==="/"&&q[1]==="/")q="/%2F"+q.slice(2);B.push(q)}if(F.query!==void 0)B.push("?",F.query);if(F.fragment!==void 0)B.push("#",F.fragment);return B.join("")}var sa=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function w1(u,D){let F=Object.assign({},D),$={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},B=!1;if(F.reference==="suffix")if(F.scheme)u=F.scheme+":"+u;else u="//"+u;let z=u.match(sa);if(z){if($.scheme=z[1],$.userinfo=z[3],$.host=z[4],$.port=parseInt(z[5],10),$.path=z[6]||"",$.query=z[7],$.fragment=z[8],isNaN($.port))$.port=z[5];if($.host)if(na($.host)===!1){let X=ca($.host);$.host=X.host.toLowerCase(),B=X.isIPV6}else B=!0;if($.scheme===void 0&&$.userinfo===void 0&&$.host===void 0&&$.port===void 0&&$.query===void 0&&!$.path)$.reference="same-document";else if($.scheme===void 0)$.reference="relative";else if($.fragment===void 0)$.reference="absolute";else $.reference="uri";if(F.reference&&F.reference!=="suffix"&&F.reference!==$.reference)$.error=$.error||"URI is not a "+F.reference+" reference.";let Z=iA(F.scheme||$.scheme);if(!F.unicodeSupport&&(!Z||!Z.unicodeSupport)){if($.host&&(F.domainHost||Z&&Z.domainHost)&&B===!1&&pa($.host))try{$.host=URL.domainToASCII($.host.toLowerCase())}catch(q){$.error=$.error||"Host's domain name can not be converted to ASCII: "+q}}if(!Z||Z&&!Z.skipNormalize){if(u.indexOf("%")!==-1){if($.scheme!==void 0)$.scheme=unescape($.scheme);if($.host!==void 0)$.host=unescape($.host)}if($.path)$.path=escape(unescape($.path));if($.fragment)$.fragment=encodeURI(decodeURIComponent($.fragment))}if(Z&&Z.parse)Z.parse($,F)}else $.error=$.error||"URI can not be parsed.";return $}var wz={SCHEMES:la,normalize:ga,resolve:da,resolveComponent:vA,equal:oa,serialize:B1,parse:w1};w5.exports=wz;w5.exports.default=wz;w5.exports.fastUri=wz});var bA=V((yA)=>{Object.defineProperty(yA,"__esModule",{value:!0});var TA=SA();TA.code='require("ajv/dist/runtime/uri").default';yA.default=TA});var lA=V((N1)=>{Object.defineProperty(N1,"__esModule",{value:!0});N1.CodeGen=N1.Name=N1.nil=N1.stringify=N1.str=N1._=N1.KeywordCxt=void 0;var aa=f4();Object.defineProperty(N1,"KeywordCxt",{enumerable:!0,get:function(){return aa.KeywordCxt}});var n6=P0();Object.defineProperty(N1,"_",{enumerable:!0,get:function(){return n6._}});Object.defineProperty(N1,"str",{enumerable:!0,get:function(){return n6.str}});Object.defineProperty(N1,"stringify",{enumerable:!0,get:function(){return n6.stringify}});Object.defineProperty(N1,"nil",{enumerable:!0,get:function(){return n6.nil}});Object.defineProperty(N1,"Name",{enumerable:!0,get:function(){return n6.Name}});Object.defineProperty(N1,"CodeGen",{enumerable:!0,get:function(){return n6.CodeGen}});var ta=V5(),mA=V4(),ea=Fz(),x4=M5(),ut=P0(),O4=G4(),N5=J4(),jz=v0(),RA=AA(),Dt=bA(),nA=(u,D)=>new RegExp(u,D);nA.code="new RegExp";var Ft=["removeAdditional","useDefaults","coerceTypes"],$t=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),Bt={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},zt={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},kA=200;function Zt(u){var D,F,$,B,z,Z,q,X,Q,W,Y,J,G,K,H,f,x,L,A,C,I,_,R,k,c;let e=u.strict,w=(D=u.code)===null||D===void 0?void 0:D.optimize,h=w===!0||w===void 0?1:w||0,n=($=(F=u.code)===null||F===void 0?void 0:F.regExp)!==null&&$!==void 0?$:nA,r=(B=u.uriResolver)!==null&&B!==void 0?B:Dt.default;return{strictSchema:(Z=(z=u.strictSchema)!==null&&z!==void 0?z:e)!==null&&Z!==void 0?Z:!0,strictNumbers:(X=(q=u.strictNumbers)!==null&&q!==void 0?q:e)!==null&&X!==void 0?X:!0,strictTypes:(W=(Q=u.strictTypes)!==null&&Q!==void 0?Q:e)!==null&&W!==void 0?W:"log",strictTuples:(J=(Y=u.strictTuples)!==null&&Y!==void 0?Y:e)!==null&&J!==void 0?J:"log",strictRequired:(K=(G=u.strictRequired)!==null&&G!==void 0?G:e)!==null&&K!==void 0?K:!1,code:u.code?{...u.code,optimize:h,regExp:n}:{optimize:h,regExp:n},loopRequired:(H=u.loopRequired)!==null&&H!==void 0?H:kA,loopEnum:(f=u.loopEnum)!==null&&f!==void 0?f:kA,meta:(x=u.meta)!==null&&x!==void 0?x:!0,messages:(L=u.messages)!==null&&L!==void 0?L:!0,inlineRefs:(A=u.inlineRefs)!==null&&A!==void 0?A:!0,schemaId:(C=u.schemaId)!==null&&C!==void 0?C:"$id",addUsedSchema:(I=u.addUsedSchema)!==null&&I!==void 0?I:!0,validateSchema:(_=u.validateSchema)!==null&&_!==void 0?_:!0,validateFormats:(R=u.validateFormats)!==null&&R!==void 0?R:!0,unicodeRegExp:(k=u.unicodeRegExp)!==null&&k!==void 0?k:!0,int32range:(c=u.int32range)!==null&&c!==void 0?c:!0,uriResolver:r}}class j5{constructor(u={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,u=this.opts={...u,...Zt(u)};let{es5:D,lines:F}=this.opts.code;this.scope=new ut.ValueScope({scope:{},prefixes:$t,es5:D,lines:F}),this.logger=Jt(u.logger);let $=u.validateFormats;if(u.validateFormats=!1,this.RULES=(0,ea.getRules)(),hA.call(this,Bt,u,"NOT SUPPORTED"),hA.call(this,zt,u,"DEPRECATED","warn"),this._metaOpts=Wt.call(this),u.formats)Xt.call(this);if(this._addVocabularies(),this._addDefaultMetaSchema(),u.keywords)Qt.call(this,u.keywords);if(typeof u.meta=="object")this.addMetaSchema(u.meta);qt.call(this),u.validateFormats=$}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:u,meta:D,schemaId:F}=this.opts,$=RA;if(F==="id")$={...RA},$.id=$.$id,delete $.$id;if(D&&u)this.addMetaSchema($,$[F],!1)}defaultMeta(){let{meta:u,schemaId:D}=this.opts;return this.opts.defaultMeta=typeof u=="object"?u[D]||u:void 0}validate(u,D){let F;if(typeof u=="string"){if(F=this.getSchema(u),!F)throw Error(`no schema with key or ref "${u}"`)}else F=this.compile(u);let $=F(D);if(!("$async"in F))this.errors=F.errors;return $}compile(u,D){let F=this._addSchema(u,D);return F.validate||this._compileSchemaEnv(F)}compileAsync(u,D){if(typeof this.opts.loadSchema!="function")throw Error("options.loadSchema should be a function");let{loadSchema:F}=this.opts;return $.call(this,u,D);async function $(Q,W){await B.call(this,Q.$schema);let Y=this._addSchema(Q,W);return Y.validate||z.call(this,Y)}async function B(Q){if(Q&&!this.getSchema(Q))await $.call(this,{$ref:Q},!0)}async function z(Q){try{return this._compileSchemaEnv(Q)}catch(W){if(!(W instanceof mA.default))throw W;return Z.call(this,W),await q.call(this,W.missingSchema),z.call(this,Q)}}function Z({missingSchema:Q,missingRef:W}){if(this.refs[Q])throw Error(`AnySchema ${Q} is loaded but ${W} cannot be resolved`)}async function q(Q){let W=await X.call(this,Q);if(!this.refs[Q])await B.call(this,W.$schema);if(!this.refs[Q])this.addSchema(W,Q,D)}async function X(Q){let W=this._loading[Q];if(W)return W;try{return await(this._loading[Q]=F(Q))}finally{delete this._loading[Q]}}}addSchema(u,D,F,$=this.opts.validateSchema){if(Array.isArray(u)){for(let z of u)this.addSchema(z,void 0,F,$);return this}let B;if(typeof u==="object"){let{schemaId:z}=this.opts;if(B=u[z],B!==void 0&&typeof B!="string")throw Error(`schema ${z} must be string`)}return D=(0,O4.normalizeId)(D||B),this._checkUnique(D),this.schemas[D]=this._addSchema(u,F,D,$,!0),this}addMetaSchema(u,D,F=this.opts.validateSchema){return this.addSchema(u,D,!0,F),this}validateSchema(u,D){if(typeof u=="boolean")return!0;let F;if(F=u.$schema,F!==void 0&&typeof F!="string")throw Error("$schema must be a string");if(F=F||this.opts.defaultMeta||this.defaultMeta(),!F)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let $=this.validate(F,u);if(!$&&D){let B="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(B);else throw Error(B)}return $}getSchema(u){let D;while(typeof(D=cA.call(this,u))=="string")u=D;if(D===void 0){let{schemaId:F}=this.opts,$=new x4.SchemaEnv({schema:{},schemaId:F});if(D=x4.resolveSchema.call(this,$,u),!D)return;this.refs[u]=D}return D.validate||this._compileSchemaEnv(D)}removeSchema(u){if(u instanceof RegExp)return this._removeAllSchemas(this.schemas,u),this._removeAllSchemas(this.refs,u),this;switch(typeof u){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let D=cA.call(this,u);if(typeof D=="object")this._cache.delete(D.schema);return delete this.schemas[u],delete this.refs[u],this}case"object":{let D=u;this._cache.delete(D);let F=u[this.opts.schemaId];if(F)F=(0,O4.normalizeId)(F),delete this.schemas[F],delete this.refs[F];return this}default:throw Error("ajv.removeSchema: invalid parameter")}}addVocabulary(u){for(let D of u)this.addKeyword(D);return this}addKeyword(u,D){let F;if(typeof u=="string"){if(F=u,typeof D=="object")this.logger.warn("these parameters are deprecated, see docs for addKeyword"),D.keyword=F}else if(typeof u=="object"&&D===void 0){if(D=u,F=D.keyword,Array.isArray(F)&&!F.length)throw Error("addKeywords: keyword must be string or non-empty array")}else throw Error("invalid addKeywords parameters");if(Kt.call(this,F,D),!D)return(0,jz.eachItem)(F,(B)=>Nz.call(this,B)),this;ft.call(this,D);let $={...D,type:(0,N5.getJSONTypes)(D.type),schemaType:(0,N5.getJSONTypes)(D.schemaType)};return(0,jz.eachItem)(F,$.type.length===0?(B)=>Nz.call(this,B,$):(B)=>$.type.forEach((z)=>Nz.call(this,B,$,z))),this}getKeyword(u){let D=this.RULES.all[u];return typeof D=="object"?D.definition:!!D}removeKeyword(u){let{RULES:D}=this;delete D.keywords[u],delete D.all[u];for(let F of D.rules){let $=F.rules.findIndex((B)=>B.keyword===u);if($>=0)F.rules.splice($,1)}return this}addFormat(u,D){if(typeof D=="string")D=new RegExp(D);return this.formats[u]=D,this}errorsText(u=this.errors,{separator:D=", ",dataVar:F="data"}={}){if(!u||u.length===0)return"No errors";return u.map(($)=>`${F}${$.instancePath} ${$.message}`).reduce(($,B)=>$+D+B)}$dataMetaSchema(u,D){let F=this.RULES.all;u=JSON.parse(JSON.stringify(u));for(let $ of D){let B=$.split("/").slice(1),z=u;for(let Z of B)z=z[Z];for(let Z in F){let q=F[Z];if(typeof q!="object")continue;let{$data:X}=q.definition,Q=z[Z];if(X&&Q)z[Z]=pA(Q)}}return u}_removeAllSchemas(u,D){for(let F in u){let $=u[F];if(!D||D.test(F)){if(typeof $=="string")delete u[F];else if($&&!$.meta)this._cache.delete($.schema),delete u[F]}}}_addSchema(u,D,F,$=this.opts.validateSchema,B=this.opts.addUsedSchema){let z,{schemaId:Z}=this.opts;if(typeof u=="object")z=u[Z];else if(this.opts.jtd)throw Error("schema must be object");else if(typeof u!="boolean")throw Error("schema must be object or boolean");let q=this._cache.get(u);if(q!==void 0)return q;F=(0,O4.normalizeId)(z||F);let X=O4.getSchemaRefs.call(this,u,F);if(q=new x4.SchemaEnv({schema:u,schemaId:Z,meta:D,baseId:F,localRefs:X}),this._cache.set(q.schema,q),B&&!F.startsWith("#")){if(F)this._checkUnique(F);this.refs[F]=q}if($)this.validateSchema(u,!0);return q}_checkUnique(u){if(this.schemas[u]||this.refs[u])throw Error(`schema with key or id "${u}" already exists`)}_compileSchemaEnv(u){if(u.meta)this._compileMetaSchema(u);else x4.compileSchema.call(this,u);if(!u.validate)throw Error("ajv implementation error");return u.validate}_compileMetaSchema(u){let D=this.opts;this.opts=this._metaOpts;try{x4.compileSchema.call(this,u)}finally{this.opts=D}}}j5.ValidationError=ta.default;j5.MissingRefError=mA.default;N1.default=j5;function hA(u,D,F,$="error"){for(let B in u){let z=B;if(z in D)this.logger[$](`${F}: option ${B}. ${u[z]}`)}}function cA(u){return u=(0,O4.normalizeId)(u),this.schemas[u]||this.refs[u]}function qt(){let u=this.opts.schemas;if(!u)return;if(Array.isArray(u))this.addSchema(u);else for(let D in u)this.addSchema(u[D],D)}function Xt(){for(let u in this.opts.formats){let D=this.opts.formats[u];if(D)this.addFormat(u,D)}}function Qt(u){if(Array.isArray(u)){this.addVocabulary(u);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let D in u){let F=u[D];if(!F.keyword)F.keyword=D;this.addKeyword(F)}}function Wt(){let u={...this.opts};for(let D of Ft)delete u[D];return u}var Yt={log(){},warn(){},error(){}};function Jt(u){if(u===!1)return Yt;if(u===void 0)return console;if(u.log&&u.warn&&u.error)return u;throw Error("logger must implement log, warn and error methods")}var Gt=/^[a-z_$][a-z0-9_$:-]*$/i;function Kt(u,D){let{RULES:F}=this;if((0,jz.eachItem)(u,($)=>{if(F.keywords[$])throw Error(`Keyword ${$} is already defined`);if(!Gt.test($))throw Error(`Keyword ${$} has invalid name`)}),!D)return;if(D.$data&&!(("code"in D)||("validate"in D)))throw Error('$data keyword must have "code" or "validate" function')}function Nz(u,D,F){var $;let B=D===null||D===void 0?void 0:D.post;if(F&&B)throw Error('keyword with "post" flag cannot have "type"');let{RULES:z}=this,Z=B?z.post:z.rules.find(({type:X})=>X===F);if(!Z)Z={type:F,rules:[]},z.rules.push(Z);if(z.keywords[u]=!0,!D)return;let q={keyword:u,definition:{...D,type:(0,N5.getJSONTypes)(D.type),schemaType:(0,N5.getJSONTypes)(D.schemaType)}};if(D.before)Ht.call(this,Z,q,D.before);else Z.rules.push(q);z.all[u]=q,($=D.implements)===null||$===void 0||$.forEach((X)=>this.addKeyword(X))}function Ht(u,D,F){let $=u.rules.findIndex((B)=>B.keyword===F);if($>=0)u.rules.splice($,0,D);else u.rules.push(D),this.logger.warn(`rule ${F} is not defined`)}function ft(u){let{metaSchema:D}=u;if(D===void 0)return;if(u.$data&&this.opts.$data)D=pA(D);u.validateSchema=this.compile(D,!0)}var Vt={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function pA(u){return{anyOf:[u,Vt]}}});var dA=V((gA)=>{Object.defineProperty(gA,"__esModule",{value:!0});var xt={keyword:"id",code(){throw Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};gA.default=xt});var eA=V((aA)=>{Object.defineProperty(aA,"__esModule",{value:!0});aA.callRef=aA.getValidate=void 0;var At=V4(),oA=OD(),uD=P0(),p6=O1(),sA=M5(),I5=v0(),wt={keyword:"$ref",schemaType:"string",code(u){let{gen:D,schema:F,it:$}=u,{baseId:B,schemaEnv:z,validateName:Z,opts:q,self:X}=$,{root:Q}=z;if((F==="#"||F==="#/")&&B===Q.baseId)return Y();let W=sA.resolveRef.call(X,Q,B,F);if(W===void 0)throw new At.default($.opts.uriResolver,B,F);if(W instanceof sA.SchemaEnv)return J(W);return G(W);function Y(){if(z===Q)return E5(u,Z,z,z.$async);let K=D.scopeValue("root",{ref:Q});return E5(u,uD._`${K}.validate`,Q,Q.$async)}function J(K){let H=rA(u,K);E5(u,H,K,K.$async)}function G(K){let H=D.scopeValue("schema",q.code.source===!0?{ref:K,code:(0,uD.stringify)(K)}:{ref:K}),f=D.name("valid"),x=u.subschema({schema:K,dataTypes:[],schemaPath:uD.nil,topSchemaRef:H,errSchemaPath:F},f);u.mergeEvaluated(x),u.ok(f)}}};function rA(u,D){let{gen:F}=u;return D.validate?F.scopeValue("validate",{ref:D.validate}):uD._`${F.scopeValue("wrapper",{ref:D})}.validate`}aA.getValidate=rA;function E5(u,D,F,$){let{gen:B,it:z}=u,{allErrors:Z,schemaEnv:q,opts:X}=z,Q=X.passContext?p6.default.this:uD.nil;if($)W();else Y();function W(){if(!q.$async)throw Error("async schema referenced by sync schema");let K=B.let("valid");B.try(()=>{if(B.code(uD._`await ${(0,oA.callValidateCode)(u,D,Q)}`),G(D),!Z)B.assign(K,!0)},(H)=>{if(B.if(uD._`!(${H} instanceof ${z.ValidationError})`,()=>B.throw(H)),J(H),!Z)B.assign(K,!1)}),u.ok(K)}function Y(){u.result((0,oA.callValidateCode)(u,D,Q),()=>G(D),()=>J(D))}function J(K){let H=uD._`${K}.errors`;B.assign(p6.default.vErrors,uD._`${p6.default.vErrors} === null ? ${H} : ${p6.default.vErrors}.concat(${H})`),B.assign(p6.default.errors,uD._`${p6.default.vErrors}.length`)}function G(K){var H;if(!z.opts.unevaluated)return;let f=(H=F===null||F===void 0?void 0:F.validate)===null||H===void 0?void 0:H.evaluated;if(z.props!==!0)if(f&&!f.dynamicProps){if(f.props!==void 0)z.props=I5.mergeEvaluated.props(B,f.props,z.props)}else{let x=B.var("props",uD._`${K}.evaluated.props`);z.props=I5.mergeEvaluated.props(B,x,z.props,uD.Name)}if(z.items!==!0)if(f&&!f.dynamicItems){if(f.items!==void 0)z.items=I5.mergeEvaluated.items(B,f.items,z.items)}else{let x=B.var("items",uD._`${K}.evaluated.items`);z.items=I5.mergeEvaluated.items(B,x,z.items,uD.Name)}}}aA.callRef=E5;aA.default=wt});var Dw=V((uw)=>{Object.defineProperty(uw,"__esModule",{value:!0});var It=dA(),Et=eA(),Pt=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",It.default,Et.default];uw.default=Pt});var $w=V((Fw)=>{Object.defineProperty(Fw,"__esModule",{value:!0});var P5=P0(),DF=P5.operators,C5={maximum:{okStr:"<=",ok:DF.LTE,fail:DF.GT},minimum:{okStr:">=",ok:DF.GTE,fail:DF.LT},exclusiveMaximum:{okStr:"<",ok:DF.LT,fail:DF.GTE},exclusiveMinimum:{okStr:">",ok:DF.GT,fail:DF.LTE}},_t={message:({keyword:u,schemaCode:D})=>P5.str`must be ${C5[u].okStr} ${D}`,params:({keyword:u,schemaCode:D})=>P5._`{comparison: ${C5[u].okStr}, limit: ${D}}`},Ut={keyword:Object.keys(C5),type:"number",schemaType:"number",$data:!0,error:_t,code(u){let{keyword:D,data:F,schemaCode:$}=u;u.fail$data(P5._`${F} ${C5[D].fail} ${$} || isNaN(${F})`)}};Fw.default=Ut});var zw=V((Bw)=>{Object.defineProperty(Bw,"__esModule",{value:!0});var A4=P0(),vt={message:({schemaCode:u})=>A4.str`must be multiple of ${u}`,params:({schemaCode:u})=>A4._`{multipleOf: ${u}}`},St={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:vt,code(u){let{gen:D,data:F,schemaCode:$,it:B}=u,z=B.opts.multipleOfPrecision,Z=D.let("res"),q=z?A4._`Math.abs(Math.round(${Z}) - ${Z}) > 1e-${z}`:A4._`${Z} !== parseInt(${Z})`;u.fail$data(A4._`(${$} === 0 || (${Z} = ${F}/${$}, ${q}))`)}};Bw.default=St});var Xw=V((qw)=>{Object.defineProperty(qw,"__esModule",{value:!0});function Zw(u){let D=u.length,F=0,$=0,B;while($<D)if(F++,B=u.charCodeAt($++),B>=55296&&B<=56319&&$<D){if(B=u.charCodeAt($),(B&64512)===56320)$++}return F}qw.default=Zw;Zw.code='require("ajv/dist/runtime/ucs2length").default'});var Ww=V((Qw)=>{Object.defineProperty(Qw,"__esModule",{value:!0});var cF=P0(),bt=v0(),Rt=Xw(),kt={message({keyword:u,schemaCode:D}){let F=u==="maxLength"?"more":"fewer";return cF.str`must NOT have ${F} than ${D} characters`},params:({schemaCode:u})=>cF._`{limit: ${u}}`},ht={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:kt,code(u){let{keyword:D,data:F,schemaCode:$,it:B}=u,z=D==="maxLength"?cF.operators.GT:cF.operators.LT,Z=B.opts.unicode===!1?cF._`${F}.length`:cF._`${(0,bt.useFunc)(u.gen,Rt.default)}(${F})`;u.fail$data(cF._`${Z} ${z} ${$}`)}};Qw.default=ht});var Jw=V((Yw)=>{Object.defineProperty(Yw,"__esModule",{value:!0});var mt=OD(),nt=v0(),l6=P0(),pt={message:({schemaCode:u})=>l6.str`must match pattern "${u}"`,params:({schemaCode:u})=>l6._`{pattern: ${u}}`},lt={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:pt,code(u){let{gen:D,data:F,$data:$,schema:B,schemaCode:z,it:Z}=u,q=Z.opts.unicodeRegExp?"u":"";if($){let{regExp:X}=Z.opts.code,Q=X.code==="new RegExp"?l6._`new RegExp`:(0,nt.useFunc)(D,X),W=D.let("valid");D.try(()=>D.assign(W,l6._`${Q}(${z}, ${q}).test(${F})`),()=>D.assign(W,!1)),u.fail$data(l6._`!${W}`)}else{let X=(0,mt.usePattern)(u,B);u.fail$data(l6._`!${X}.test(${F})`)}}};Yw.default=lt});var Kw=V((Gw)=>{Object.defineProperty(Gw,"__esModule",{value:!0});var w4=P0(),dt={message({keyword:u,schemaCode:D}){let F=u==="maxProperties"?"more":"fewer";return w4.str`must NOT have ${F} than ${D} properties`},params:({schemaCode:u})=>w4._`{limit: ${u}}`},ot={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:dt,code(u){let{keyword:D,data:F,schemaCode:$}=u,B=D==="maxProperties"?w4.operators.GT:w4.operators.LT;u.fail$data(w4._`Object.keys(${F}).length ${B} ${$}`)}};Gw.default=ot});var fw=V((Hw)=>{Object.defineProperty(Hw,"__esModule",{value:!0});var N4=OD(),j4=P0(),rt=v0(),at={message:({params:{missingProperty:u}})=>j4.str`must have required property '${u}'`,params:({params:{missingProperty:u}})=>j4._`{missingProperty: ${u}}`},tt={keyword:"required",type:"object",schemaType:"array",$data:!0,error:at,code(u){let{gen:D,schema:F,schemaCode:$,data:B,$data:z,it:Z}=u,{opts:q}=Z;if(!z&&F.length===0)return;let X=F.length>=q.loopRequired;if(Z.allErrors)Q();else W();if(q.strictRequired){let G=u.parentSchema.properties,{definedProperties:K}=u.it;for(let H of F)if((G===null||G===void 0?void 0:G[H])===void 0&&!K.has(H)){let f=Z.schemaEnv.baseId+Z.errSchemaPath,x=`required property "${H}" is not defined at "${f}" (strictRequired)`;(0,rt.checkStrictMode)(Z,x,Z.opts.strictRequired)}}function Q(){if(X||z)u.block$data(j4.nil,Y);else for(let G of F)(0,N4.checkReportMissingProp)(u,G)}function W(){let G=D.let("missing");if(X||z){let K=D.let("valid",!0);u.block$data(K,()=>J(G,K)),u.ok(K)}else D.if((0,N4.checkMissingProp)(u,F,G)),(0,N4.reportMissingProp)(u,G),D.else()}function Y(){D.forOf("prop",$,(G)=>{u.setParams({missingProperty:G}),D.if((0,N4.noPropertyInData)(D,B,G,q.ownProperties),()=>u.error())})}function J(G,K){u.setParams({missingProperty:G}),D.forOf(G,$,()=>{D.assign(K,(0,N4.propertyInData)(D,B,G,q.ownProperties)),D.if((0,j4.not)(K),()=>{u.error(),D.break()})},j4.nil)}}};Hw.default=tt});var Lw=V((Vw)=>{Object.defineProperty(Vw,"__esModule",{value:!0});var I4=P0(),ue={message({keyword:u,schemaCode:D}){let F=u==="maxItems"?"more":"fewer";return I4.str`must NOT have ${F} than ${D} items`},params:({schemaCode:u})=>I4._`{limit: ${u}}`},De={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:ue,code(u){let{keyword:D,data:F,schemaCode:$}=u,B=D==="maxItems"?I4.operators.GT:I4.operators.LT;u.fail$data(I4._`${F}.length ${B} ${$}`)}};Vw.default=De});var _5=V((xw)=>{Object.defineProperty(xw,"__esModule",{value:!0});var Mw=Wz();Mw.code='require("ajv/dist/runtime/equal").default';xw.default=Mw});var Aw=V((Ow)=>{Object.defineProperty(Ow,"__esModule",{value:!0});var Iz=J4(),Iu=P0(),Be=v0(),ze=_5(),Ze={message:({params:{i:u,j:D}})=>Iu.str`must NOT have duplicate items (items ## ${D} and ${u} are identical)`,params:({params:{i:u,j:D}})=>Iu._`{i: ${u}, j: ${D}}`},qe={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Ze,code(u){let{gen:D,data:F,$data:$,schema:B,parentSchema:z,schemaCode:Z,it:q}=u;if(!$&&!B)return;let X=D.let("valid"),Q=z.items?(0,Iz.getSchemaTypes)(z.items):[];u.block$data(X,W,Iu._`${Z} === false`),u.ok(X);function W(){let K=D.let("i",Iu._`${F}.length`),H=D.let("j");u.setParams({i:K,j:H}),D.assign(X,!0),D.if(Iu._`${K} > 1`,()=>(Y()?J:G)(K,H))}function Y(){return Q.length>0&&!Q.some((K)=>K==="object"||K==="array")}function J(K,H){let f=D.name("item"),x=(0,Iz.checkDataTypes)(Q,f,q.opts.strictNumbers,Iz.DataType.Wrong),L=D.const("indices",Iu._`{}`);D.for(Iu._`;${K}--;`,()=>{if(D.let(f,Iu._`${F}[${K}]`),D.if(x,Iu._`continue`),Q.length>1)D.if(Iu._`typeof ${f} == "string"`,Iu._`${f} += "_"`);D.if(Iu._`typeof ${L}[${f}] == "number"`,()=>{D.assign(H,Iu._`${L}[${f}]`),u.error(),D.assign(X,!1).break()}).code(Iu._`${L}[${f}] = ${K}`)})}function G(K,H){let f=(0,Be.useFunc)(D,ze.default),x=D.name("outer");D.label(x).for(Iu._`;${K}--;`,()=>D.for(Iu._`${H} = ${K}; ${H}--;`,()=>D.if(Iu._`${f}(${F}[${K}], ${F}[${H}])`,()=>{u.error(),D.assign(X,!1).break(x)})))}}};Ow.default=qe});var Nw=V((ww)=>{Object.defineProperty(ww,"__esModule",{value:!0});var Ez=P0(),Qe=v0(),We=_5(),Ye={message:"must be equal to constant",params:({schemaCode:u})=>Ez._`{allowedValue: ${u}}`},Je={keyword:"const",$data:!0,error:Ye,code(u){let{gen:D,data:F,$data:$,schemaCode:B,schema:z}=u;if($||z&&typeof z=="object")u.fail$data(Ez._`!${(0,Qe.useFunc)(D,We.default)}(${F}, ${B})`);else u.fail(Ez._`${z} !== ${F}`)}};ww.default=Je});var Iw=V((jw)=>{Object.defineProperty(jw,"__esModule",{value:!0});var E4=P0(),Ke=v0(),He=_5(),fe={message:"must be equal to one of the allowed values",params:({schemaCode:u})=>E4._`{allowedValues: ${u}}`},Ve={keyword:"enum",schemaType:"array",$data:!0,error:fe,code(u){let{gen:D,data:F,$data:$,schema:B,schemaCode:z,it:Z}=u;if(!$&&B.length===0)throw Error("enum must have non-empty array");let q=B.length>=Z.opts.loopEnum,X,Q=()=>X!==null&&X!==void 0?X:X=(0,Ke.useFunc)(D,He.default),W;if(q||$)W=D.let("valid"),u.block$data(W,Y);else{if(!Array.isArray(B))throw Error("ajv implementation error");let G=D.const("vSchema",z);W=(0,E4.or)(...B.map((K,H)=>J(G,H)))}u.pass(W);function Y(){D.assign(W,!1),D.forOf("v",z,(G)=>D.if(E4._`${Q()}(${F}, ${G})`,()=>D.assign(W,!0).break()))}function J(G,K){let H=B[K];return typeof H==="object"&&H!==null?E4._`${Q()}(${F}, ${G}[${K}])`:E4._`${F} === ${H}`}}};jw.default=Ve});var Pw=V((Ew)=>{Object.defineProperty(Ew,"__esModule",{value:!0});var Me=$w(),xe=zw(),Oe=Ww(),Ae=Jw(),we=Kw(),Ne=fw(),je=Lw(),Ie=Aw(),Ee=Nw(),Pe=Iw(),Ce=[Me.default,xe.default,Oe.default,Ae.default,we.default,Ne.default,je.default,Ie.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Ee.default,Pe.default];Ew.default=Ce});var Cz=V((_w)=>{Object.defineProperty(_w,"__esModule",{value:!0});_w.validateAdditionalItems=void 0;var mF=P0(),Pz=v0(),Ue={message:({params:{len:u}})=>mF.str`must NOT have more than ${u} items`,params:({params:{len:u}})=>mF._`{limit: ${u}}`},ie={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:Ue,code(u){let{parentSchema:D,it:F}=u,{items:$}=D;if(!Array.isArray($)){(0,Pz.checkStrictMode)(F,'"additionalItems" is ignored when "items" is not an array of schemas');return}Cw(u,$)}};function Cw(u,D){let{gen:F,schema:$,data:B,keyword:z,it:Z}=u;Z.items=!0;let q=F.const("len",mF._`${B}.length`);if($===!1)u.setParams({len:D.length}),u.pass(mF._`${q} <= ${D.length}`);else if(typeof $=="object"&&!(0,Pz.alwaysValidSchema)(Z,$)){let Q=F.var("valid",mF._`${q} <= ${D.length}`);F.if((0,mF.not)(Q),()=>X(Q)),u.ok(Q)}function X(Q){F.forRange("i",D.length,q,(W)=>{if(u.subschema({keyword:z,dataProp:W,dataPropType:Pz.Type.Num},Q),!Z.allErrors)F.if((0,mF.not)(Q),()=>F.break())})}}_w.validateAdditionalItems=Cw;_w.default=ie});var _z=V((Sw)=>{Object.defineProperty(Sw,"__esModule",{value:!0});Sw.validateTuple=void 0;var iw=P0(),U5=v0(),Se=OD(),Te={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(u){let{schema:D,it:F}=u;if(Array.isArray(D))return vw(u,"additionalItems",D);if(F.items=!0,(0,U5.alwaysValidSchema)(F,D))return;u.ok((0,Se.validateArray)(u))}};function vw(u,D,F=u.schema){let{gen:$,parentSchema:B,data:z,keyword:Z,it:q}=u;if(W(B),q.opts.unevaluated&&F.length&&q.items!==!0)q.items=U5.mergeEvaluated.items($,F.length,q.items);let X=$.name("valid"),Q=$.const("len",iw._`${z}.length`);F.forEach((Y,J)=>{if((0,U5.alwaysValidSchema)(q,Y))return;$.if(iw._`${Q} > ${J}`,()=>u.subschema({keyword:Z,schemaProp:J,dataProp:J},X)),u.ok(X)});function W(Y){let{opts:J,errSchemaPath:G}=q,K=F.length,H=K===Y.minItems&&(K===Y.maxItems||Y[D]===!1);if(J.strictTuples&&!H){let f=`"${Z}" is ${K}-tuple, but minItems or maxItems/${D} are not specified or different at path "${G}"`;(0,U5.checkStrictMode)(q,f,J.strictTuples)}}}Sw.validateTuple=vw;Sw.default=Te});var bw=V((yw)=>{Object.defineProperty(yw,"__esModule",{value:!0});var be=_z(),Re={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:(u)=>(0,be.validateTuple)(u,"items")};yw.default=Re});var hw=V((kw)=>{Object.defineProperty(kw,"__esModule",{value:!0});var Rw=P0(),he=v0(),ce=OD(),me=Cz(),ne={message:({params:{len:u}})=>Rw.str`must NOT have more than ${u} items`,params:({params:{len:u}})=>Rw._`{limit: ${u}}`},pe={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:ne,code(u){let{schema:D,parentSchema:F,it:$}=u,{prefixItems:B}=F;if($.items=!0,(0,he.alwaysValidSchema)($,D))return;if(B)(0,me.validateAdditionalItems)(u,B);else u.ok((0,ce.validateArray)(u))}};kw.default=pe});var mw=V((cw)=>{Object.defineProperty(cw,"__esModule",{value:!0});var AD=P0(),i5=v0(),ge={message:({params:{min:u,max:D}})=>D===void 0?AD.str`must contain at least ${u} valid item(s)`:AD.str`must contain at least ${u} and no more than ${D} valid item(s)`,params:({params:{min:u,max:D}})=>D===void 0?AD._`{minContains: ${u}}`:AD._`{minContains: ${u}, maxContains: ${D}}`},de={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:ge,code(u){let{gen:D,schema:F,parentSchema:$,data:B,it:z}=u,Z,q,{minContains:X,maxContains:Q}=$;if(z.opts.next)Z=X===void 0?1:X,q=Q;else Z=1;let W=D.const("len",AD._`${B}.length`);if(u.setParams({min:Z,max:q}),q===void 0&&Z===0){(0,i5.checkStrictMode)(z,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(q!==void 0&&Z>q){(0,i5.checkStrictMode)(z,'"minContains" > "maxContains" is always invalid'),u.fail();return}if((0,i5.alwaysValidSchema)(z,F)){let H=AD._`${W} >= ${Z}`;if(q!==void 0)H=AD._`${H} && ${W} <= ${q}`;u.pass(H);return}z.items=!0;let Y=D.name("valid");if(q===void 0&&Z===1)G(Y,()=>D.if(Y,()=>D.break()));else if(Z===0){if(D.let(Y,!0),q!==void 0)D.if(AD._`${B}.length > 0`,J)}else D.let(Y,!1),J();u.result(Y,()=>u.reset());function J(){let H=D.name("_valid"),f=D.let("count",0);G(H,()=>D.if(H,()=>K(f)))}function G(H,f){D.forRange("i",0,W,(x)=>{u.subschema({keyword:"contains",dataProp:x,dataPropType:i5.Type.Num,compositeRule:!0},H),f()})}function K(H){if(D.code(AD._`${H}++`),q===void 0)D.if(AD._`${H} >= ${Z}`,()=>D.assign(Y,!0).break());else if(D.if(AD._`${H} > ${q}`,()=>D.assign(Y,!1).break()),Z===1)D.assign(Y,!0);else D.if(AD._`${H} >= ${Z}`,()=>D.assign(Y,!0))}}};cw.default=de});var ow=V((lw)=>{Object.defineProperty(lw,"__esModule",{value:!0});lw.validateSchemaDeps=lw.validatePropertyDeps=lw.error=void 0;var Uz=P0(),se=v0(),P4=OD();lw.error={message:({params:{property:u,depsCount:D,deps:F}})=>{let $=D===1?"property":"properties";return Uz.str`must have ${$} ${F} when property ${u} is present`},params:({params:{property:u,depsCount:D,deps:F,missingProperty:$}})=>Uz._`{property: ${u},
|
|
75
|
+
missingProperty: ${$},
|
|
76
|
+
depsCount: ${D},
|
|
77
|
+
deps: ${F}}`};var re={keyword:"dependencies",type:"object",schemaType:"object",error:lw.error,code(u){let[D,F]=ae(u);nw(u,D),pw(u,F)}};function ae({schema:u}){let D={},F={};for(let $ in u){if($==="__proto__")continue;let B=Array.isArray(u[$])?D:F;B[$]=u[$]}return[D,F]}function nw(u,D=u.schema){let{gen:F,data:$,it:B}=u;if(Object.keys(D).length===0)return;let z=F.let("missing");for(let Z in D){let q=D[Z];if(q.length===0)continue;let X=(0,P4.propertyInData)(F,$,Z,B.opts.ownProperties);if(u.setParams({property:Z,depsCount:q.length,deps:q.join(", ")}),B.allErrors)F.if(X,()=>{for(let Q of q)(0,P4.checkReportMissingProp)(u,Q)});else F.if(Uz._`${X} && (${(0,P4.checkMissingProp)(u,q,z)})`),(0,P4.reportMissingProp)(u,z),F.else()}}lw.validatePropertyDeps=nw;function pw(u,D=u.schema){let{gen:F,data:$,keyword:B,it:z}=u,Z=F.name("valid");for(let q in D){if((0,se.alwaysValidSchema)(z,D[q]))continue;F.if((0,P4.propertyInData)(F,$,q,z.opts.ownProperties),()=>{let X=u.subschema({keyword:B,schemaProp:q},Z);u.mergeValidEvaluated(X,Z)},()=>F.var(Z,!0)),u.ok(Z)}}lw.validateSchemaDeps=pw;lw.default=re});var aw=V((rw)=>{Object.defineProperty(rw,"__esModule",{value:!0});var sw=P0(),u00=v0(),D00={message:"property name must be valid",params:({params:u})=>sw._`{propertyName: ${u.propertyName}}`},F00={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:D00,code(u){let{gen:D,schema:F,data:$,it:B}=u;if((0,u00.alwaysValidSchema)(B,F))return;let z=D.name("valid");D.forIn("key",$,(Z)=>{u.setParams({propertyName:Z}),u.subschema({keyword:"propertyNames",data:Z,dataTypes:["string"],propertyName:Z,compositeRule:!0},z),D.if((0,sw.not)(z),()=>{if(u.error(!0),!B.allErrors)D.break()})}),u.ok(z)}};rw.default=F00});var iz=V((tw)=>{Object.defineProperty(tw,"__esModule",{value:!0});var v5=OD(),pD=P0(),B00=O1(),S5=v0(),z00={message:"must NOT have additional properties",params:({params:u})=>pD._`{additionalProperty: ${u.additionalProperty}}`},Z00={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:z00,code(u){let{gen:D,schema:F,parentSchema:$,data:B,errsCount:z,it:Z}=u;if(!z)throw Error("ajv implementation error");let{allErrors:q,opts:X}=Z;if(Z.props=!0,X.removeAdditional!=="all"&&(0,S5.alwaysValidSchema)(Z,F))return;let Q=(0,v5.allSchemaProperties)($.properties),W=(0,v5.allSchemaProperties)($.patternProperties);Y(),u.ok(pD._`${z} === ${B00.default.errors}`);function Y(){D.forIn("key",B,(f)=>{if(!Q.length&&!W.length)K(f);else D.if(J(f),()=>K(f))})}function J(f){let x;if(Q.length>8){let L=(0,S5.schemaRefOrVal)(Z,$.properties,"properties");x=(0,v5.isOwnProperty)(D,L,f)}else if(Q.length)x=(0,pD.or)(...Q.map((L)=>pD._`${f} === ${L}`));else x=pD.nil;if(W.length)x=(0,pD.or)(x,...W.map((L)=>pD._`${(0,v5.usePattern)(u,L)}.test(${f})`));return(0,pD.not)(x)}function G(f){D.code(pD._`delete ${B}[${f}]`)}function K(f){if(X.removeAdditional==="all"||X.removeAdditional&&F===!1){G(f);return}if(F===!1){if(u.setParams({additionalProperty:f}),u.error(),!q)D.break();return}if(typeof F=="object"&&!(0,S5.alwaysValidSchema)(Z,F)){let x=D.name("valid");if(X.removeAdditional==="failing")H(f,x,!1),D.if((0,pD.not)(x),()=>{u.reset(),G(f)});else if(H(f,x),!q)D.if((0,pD.not)(x),()=>D.break())}}function H(f,x,L){let A={keyword:"additionalProperties",dataProp:f,dataPropType:S5.Type.Str};if(L===!1)Object.assign(A,{compositeRule:!0,createErrors:!1,allErrors:!1});u.subschema(A,x)}}};tw.default=Z00});var FN=V((DN)=>{Object.defineProperty(DN,"__esModule",{value:!0});var X00=f4(),ew=OD(),vz=v0(),uN=iz(),Q00={keyword:"properties",type:"object",schemaType:"object",code(u){let{gen:D,schema:F,parentSchema:$,data:B,it:z}=u;if(z.opts.removeAdditional==="all"&&$.additionalProperties===void 0)uN.default.code(new X00.KeywordCxt(z,uN.default,"additionalProperties"));let Z=(0,ew.allSchemaProperties)(F);for(let Y of Z)z.definedProperties.add(Y);if(z.opts.unevaluated&&Z.length&&z.props!==!0)z.props=vz.mergeEvaluated.props(D,(0,vz.toHash)(Z),z.props);let q=Z.filter((Y)=>!(0,vz.alwaysValidSchema)(z,F[Y]));if(q.length===0)return;let X=D.name("valid");for(let Y of q){if(Q(Y))W(Y);else{if(D.if((0,ew.propertyInData)(D,B,Y,z.opts.ownProperties)),W(Y),!z.allErrors)D.else().var(X,!0);D.endIf()}u.it.definedProperties.add(Y),u.ok(X)}function Q(Y){return z.opts.useDefaults&&!z.compositeRule&&F[Y].default!==void 0}function W(Y){u.subschema({keyword:"properties",schemaProp:Y,dataProp:Y},X)}}};DN.default=Q00});var qN=V((ZN)=>{Object.defineProperty(ZN,"__esModule",{value:!0});var $N=OD(),T5=P0(),BN=v0(),zN=v0(),Y00={keyword:"patternProperties",type:"object",schemaType:"object",code(u){let{gen:D,schema:F,data:$,parentSchema:B,it:z}=u,{opts:Z}=z,q=(0,$N.allSchemaProperties)(F),X=q.filter((H)=>(0,BN.alwaysValidSchema)(z,F[H]));if(q.length===0||X.length===q.length&&(!z.opts.unevaluated||z.props===!0))return;let Q=Z.strictSchema&&!Z.allowMatchingProperties&&B.properties,W=D.name("valid");if(z.props!==!0&&!(z.props instanceof T5.Name))z.props=(0,zN.evaluatedPropsToName)(D,z.props);let{props:Y}=z;J();function J(){for(let H of q){if(Q)G(H);if(z.allErrors)K(H);else D.var(W,!0),K(H),D.if(W)}}function G(H){for(let f in Q)if(new RegExp(H).test(f))(0,BN.checkStrictMode)(z,`property ${f} matches pattern ${H} (use allowMatchingProperties)`)}function K(H){D.forIn("key",$,(f)=>{D.if(T5._`${(0,$N.usePattern)(u,H)}.test(${f})`,()=>{let x=X.includes(H);if(!x)u.subschema({keyword:"patternProperties",schemaProp:H,dataProp:f,dataPropType:zN.Type.Str},W);if(z.opts.unevaluated&&Y!==!0)D.assign(T5._`${Y}[${f}]`,!0);else if(!x&&!z.allErrors)D.if((0,T5.not)(W),()=>D.break())})})}}};ZN.default=Y00});var QN=V((XN)=>{Object.defineProperty(XN,"__esModule",{value:!0});var G00=v0(),K00={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(u){let{gen:D,schema:F,it:$}=u;if((0,G00.alwaysValidSchema)($,F)){u.fail();return}let B=D.name("valid");u.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},B),u.failResult(B,()=>u.reset(),()=>u.error())},error:{message:"must NOT be valid"}};XN.default=K00});var YN=V((WN)=>{Object.defineProperty(WN,"__esModule",{value:!0});var f00=OD(),V00={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:f00.validateUnion,error:{message:"must match a schema in anyOf"}};WN.default=V00});var GN=V((JN)=>{Object.defineProperty(JN,"__esModule",{value:!0});var y5=P0(),M00=v0(),x00={message:"must match exactly one schema in oneOf",params:({params:u})=>y5._`{passingSchemas: ${u.passing}}`},O00={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:x00,code(u){let{gen:D,schema:F,parentSchema:$,it:B}=u;if(!Array.isArray(F))throw Error("ajv implementation error");if(B.opts.discriminator&&$.discriminator)return;let z=F,Z=D.let("valid",!1),q=D.let("passing",null),X=D.name("_valid");u.setParams({passing:q}),D.block(Q),u.result(Z,()=>u.reset(),()=>u.error(!0));function Q(){z.forEach((W,Y)=>{let J;if((0,M00.alwaysValidSchema)(B,W))D.var(X,!0);else J=u.subschema({keyword:"oneOf",schemaProp:Y,compositeRule:!0},X);if(Y>0)D.if(y5._`${X} && ${Z}`).assign(Z,!1).assign(q,y5._`[${q}, ${Y}]`).else();D.if(X,()=>{if(D.assign(Z,!0),D.assign(q,Y),J)u.mergeEvaluated(J,y5.Name)})})}}};JN.default=O00});var HN=V((KN)=>{Object.defineProperty(KN,"__esModule",{value:!0});var w00=v0(),N00={keyword:"allOf",schemaType:"array",code(u){let{gen:D,schema:F,it:$}=u;if(!Array.isArray(F))throw Error("ajv implementation error");let B=D.name("valid");F.forEach((z,Z)=>{if((0,w00.alwaysValidSchema)($,z))return;let q=u.subschema({keyword:"allOf",schemaProp:Z},B);u.ok(B),u.mergeEvaluated(q)})}};KN.default=N00});var MN=V((LN)=>{Object.defineProperty(LN,"__esModule",{value:!0});var b5=P0(),VN=v0(),I00={message:({params:u})=>b5.str`must match "${u.ifClause}" schema`,params:({params:u})=>b5._`{failingKeyword: ${u.ifClause}}`},E00={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:I00,code(u){let{gen:D,parentSchema:F,it:$}=u;if(F.then===void 0&&F.else===void 0)(0,VN.checkStrictMode)($,'"if" without "then" and "else" is ignored');let B=fN($,"then"),z=fN($,"else");if(!B&&!z)return;let Z=D.let("valid",!0),q=D.name("_valid");if(X(),u.reset(),B&&z){let W=D.let("ifClause");u.setParams({ifClause:W}),D.if(q,Q("then",W),Q("else",W))}else if(B)D.if(q,Q("then"));else D.if((0,b5.not)(q),Q("else"));u.pass(Z,()=>u.error(!0));function X(){let W=u.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},q);u.mergeEvaluated(W)}function Q(W,Y){return()=>{let J=u.subschema({keyword:W},q);if(D.assign(Z,q),u.mergeValidEvaluated(J,Z),Y)D.assign(Y,b5._`${W}`);else u.setParams({ifClause:W})}}}};function fN(u,D){let F=u.schema[D];return F!==void 0&&!(0,VN.alwaysValidSchema)(u,F)}LN.default=E00});var ON=V((xN)=>{Object.defineProperty(xN,"__esModule",{value:!0});var C00=v0(),_00={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:u,parentSchema:D,it:F}){if(D.if===void 0)(0,C00.checkStrictMode)(F,`"${u}" without "if" is ignored`)}};xN.default=_00});var wN=V((AN)=>{Object.defineProperty(AN,"__esModule",{value:!0});var i00=Cz(),v00=bw(),S00=_z(),T00=hw(),y00=mw(),b00=ow(),R00=aw(),k00=iz(),h00=FN(),c00=qN(),m00=QN(),n00=YN(),p00=GN(),l00=HN(),g00=MN(),d00=ON();function o00(u=!1){let D=[m00.default,n00.default,p00.default,l00.default,g00.default,d00.default,R00.default,k00.default,b00.default,h00.default,c00.default];if(u)D.push(v00.default,T00.default);else D.push(i00.default,S00.default);return D.push(y00.default),D}AN.default=o00});var jN=V((NN)=>{Object.defineProperty(NN,"__esModule",{value:!0});var Wu=P0(),r00={message:({schemaCode:u})=>Wu.str`must match format "${u}"`,params:({schemaCode:u})=>Wu._`{format: ${u}}`},a00={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:r00,code(u,D){let{gen:F,data:$,$data:B,schema:z,schemaCode:Z,it:q}=u,{opts:X,errSchemaPath:Q,schemaEnv:W,self:Y}=q;if(!X.validateFormats)return;if(B)J();else G();function J(){let K=F.scopeValue("formats",{ref:Y.formats,code:X.code.formats}),H=F.const("fDef",Wu._`${K}[${Z}]`),f=F.let("fType"),x=F.let("format");F.if(Wu._`typeof ${H} == "object" && !(${H} instanceof RegExp)`,()=>F.assign(f,Wu._`${H}.type || "string"`).assign(x,Wu._`${H}.validate`),()=>F.assign(f,Wu._`"string"`).assign(x,H)),u.fail$data((0,Wu.or)(L(),A()));function L(){if(X.strictSchema===!1)return Wu.nil;return Wu._`${Z} && !${x}`}function A(){let C=W.$async?Wu._`(${H}.async ? await ${x}(${$}) : ${x}(${$}))`:Wu._`${x}(${$})`,I=Wu._`(typeof ${x} == "function" ? ${C} : ${x}.test(${$}))`;return Wu._`${x} && ${x} !== true && ${f} === ${D} && !${I}`}}function G(){let K=Y.formats[z];if(!K){L();return}if(K===!0)return;let[H,f,x]=A(K);if(H===D)u.pass(C());function L(){if(X.strictSchema===!1){Y.logger.warn(I());return}throw Error(I());function I(){return`unknown format "${z}" ignored in schema at path "${Q}"`}}function A(I){let _=I instanceof RegExp?(0,Wu.regexpCode)(I):X.code.formats?Wu._`${X.code.formats}${(0,Wu.getProperty)(z)}`:void 0,R=F.scopeValue("formats",{key:z,ref:I,code:_});if(typeof I=="object"&&!(I instanceof RegExp))return[I.type||"string",I.validate,Wu._`${R}.validate`];return["string",I,R]}function C(){if(typeof K=="object"&&!(K instanceof RegExp)&&K.async){if(!W.$async)throw Error("async format in sync schema");return Wu._`await ${x}(${$})`}return typeof f=="function"?Wu._`${x}(${$})`:Wu._`${x}.test(${$})`}}}};NN.default=a00});var EN=V((IN)=>{Object.defineProperty(IN,"__esModule",{value:!0});var e00=jN(),uu0=[e00.default];IN.default=uu0});var _N=V((PN)=>{Object.defineProperty(PN,"__esModule",{value:!0});PN.contentVocabulary=PN.metadataVocabulary=void 0;PN.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];PN.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var vN=V((iN)=>{Object.defineProperty(iN,"__esModule",{value:!0});var $u0=Dw(),Bu0=Pw(),zu0=wN(),Zu0=EN(),UN=_N(),qu0=[$u0.default,Bu0.default,(0,zu0.default)(),Zu0.default,UN.metadataVocabulary,UN.contentVocabulary];iN.default=qu0});var bN=V((TN)=>{Object.defineProperty(TN,"__esModule",{value:!0});TN.DiscrError=void 0;var SN;(function(u){u.Tag="tag",u.Mapping="mapping"})(SN||(TN.DiscrError=SN={}))});var hN=V((kN)=>{Object.defineProperty(kN,"__esModule",{value:!0});var g6=P0(),Sz=bN(),RN=M5(),Qu0=V4(),Wu0=v0(),Yu0={message:({params:{discrError:u,tagName:D}})=>u===Sz.DiscrError.Tag?`tag "${D}" must be string`:`value of tag "${D}" must be in oneOf`,params:({params:{discrError:u,tag:D,tagName:F}})=>g6._`{error: ${u}, tag: ${F}, tagValue: ${D}}`},Ju0={keyword:"discriminator",type:"object",schemaType:"object",error:Yu0,code(u){let{gen:D,data:F,schema:$,parentSchema:B,it:z}=u,{oneOf:Z}=B;if(!z.opts.discriminator)throw Error("discriminator: requires discriminator option");let q=$.propertyName;if(typeof q!="string")throw Error("discriminator: requires propertyName");if($.mapping)throw Error("discriminator: mapping is not supported");if(!Z)throw Error("discriminator: requires oneOf keyword");let X=D.let("valid",!1),Q=D.const("tag",g6._`${F}${(0,g6.getProperty)(q)}`);D.if(g6._`typeof ${Q} == "string"`,()=>W(),()=>u.error(!1,{discrError:Sz.DiscrError.Tag,tag:Q,tagName:q})),u.ok(X);function W(){let G=J();D.if(!1);for(let K in G)D.elseIf(g6._`${Q} === ${K}`),D.assign(X,Y(G[K]));D.else(),u.error(!1,{discrError:Sz.DiscrError.Mapping,tag:Q,tagName:q}),D.endIf()}function Y(G){let K=D.name("valid"),H=u.subschema({keyword:"oneOf",schemaProp:G},K);return u.mergeEvaluated(H,g6.Name),K}function J(){var G;let K={},H=x(B),f=!0;for(let C=0;C<Z.length;C++){let I=Z[C];if((I===null||I===void 0?void 0:I.$ref)&&!(0,Wu0.schemaHasRulesButRef)(I,z.self.RULES)){let R=I.$ref;if(I=RN.resolveRef.call(z.self,z.schemaEnv.root,z.baseId,R),I instanceof RN.SchemaEnv)I=I.schema;if(I===void 0)throw new Qu0.default(z.opts.uriResolver,z.baseId,R)}let _=(G=I===null||I===void 0?void 0:I.properties)===null||G===void 0?void 0:G[q];if(typeof _!="object")throw Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${q}"`);f=f&&(H||x(I)),L(_,C)}if(!f)throw Error(`discriminator: "${q}" must be required`);return K;function x({required:C}){return Array.isArray(C)&&C.includes(q)}function L(C,I){if(C.const)A(C.const,I);else if(C.enum)for(let _ of C.enum)A(_,I);else throw Error(`discriminator: "properties/${q}" must have "const" or "enum"`)}function A(C,I){if(typeof C!="string"||C in K)throw Error(`discriminator: "${q}" values must be unique strings`);K[C]=I}}}};kN.default=Ju0});var cN=V((zQ0,Ku0)=>{Ku0.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var nN=V((DD,Tz)=>{Object.defineProperty(DD,"__esModule",{value:!0});DD.MissingRefError=DD.ValidationError=DD.CodeGen=DD.Name=DD.nil=DD.stringify=DD.str=DD._=DD.KeywordCxt=DD.Ajv=void 0;var Hu0=lA(),fu0=vN(),Vu0=hN(),mN=cN(),Lu0=["/properties"],R5="http://json-schema.org/draft-07/schema";class C4 extends Hu0.default{_addVocabularies(){if(super._addVocabularies(),fu0.default.forEach((u)=>this.addVocabulary(u)),this.opts.discriminator)this.addKeyword(Vu0.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let u=this.opts.$data?this.$dataMetaSchema(mN,Lu0):mN;this.addMetaSchema(u,R5,!1),this.refs["http://json-schema.org/schema"]=R5}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(R5)?R5:void 0)}}DD.Ajv=C4;Tz.exports=DD=C4;Tz.exports.Ajv=C4;Object.defineProperty(DD,"__esModule",{value:!0});DD.default=C4;var Mu0=f4();Object.defineProperty(DD,"KeywordCxt",{enumerable:!0,get:function(){return Mu0.KeywordCxt}});var d6=P0();Object.defineProperty(DD,"_",{enumerable:!0,get:function(){return d6._}});Object.defineProperty(DD,"str",{enumerable:!0,get:function(){return d6.str}});Object.defineProperty(DD,"stringify",{enumerable:!0,get:function(){return d6.stringify}});Object.defineProperty(DD,"nil",{enumerable:!0,get:function(){return d6.nil}});Object.defineProperty(DD,"Name",{enumerable:!0,get:function(){return d6.Name}});Object.defineProperty(DD,"CodeGen",{enumerable:!0,get:function(){return d6.CodeGen}});var xu0=V5();Object.defineProperty(DD,"ValidationError",{enumerable:!0,get:function(){return xu0.default}});var Ou0=V4();Object.defineProperty(DD,"MissingRefError",{enumerable:!0,get:function(){return Ou0.default}})});var oN=V((_u0)=>{var ju0=/~/,Iu0=/~[01]/g;function Eu0(u){switch(u){case"~1":return"/";case"~0":return"~"}throw Error("Invalid tilde escape: "+u)}function lN(u){if(!ju0.test(u))return u;return u.replace(Iu0,Eu0)}function Pu0(u,D,F){var $,B;for(var z=1,Z=D.length;z<Z;){if(D[z]==="constructor"||D[z]==="prototype"||D[z]==="__proto__")return u;if($=lN(D[z++]),B=Z>z,typeof u[$]>"u"){if(Array.isArray(u)&&$==="-")$=u.length;if(B)if(D[z]!==""&&D[z]<1/0||D[z]==="-")u[$]=[];else u[$]={}}if(!B)break;u=u[$]}var q=u[$];if(F===void 0)delete u[$];else u[$]=F;return q}function yz(u){if(typeof u==="string"){if(u=u.split("/"),u[0]==="")return u;throw Error("Invalid JSON pointer.")}else if(Array.isArray(u)){for(let D of u)if(typeof D!=="string"&&typeof D!=="number")throw Error("Invalid JSON pointer. Must be of type string or number.");return u}throw Error("Invalid JSON pointer.")}function gN(u,D){if(typeof u!=="object")throw Error("Invalid input object.");D=yz(D);var F=D.length;if(F===1)return u;for(var $=1;$<F;){if(u=u[lN(D[$++])],F===$)return u;if(typeof u!=="object"||u===null)return}}function dN(u,D,F){if(typeof u!=="object")throw Error("Invalid input object.");if(D=yz(D),D.length===0)throw Error("Invalid JSON pointer for set.");return Pu0(u,D,F)}function Cu0(u){var D=yz(u);return{get:function(F){return gN(F,D)},set:function(F,$){return dN(F,D,$)}}}_u0.get=gN;_u0.set=dN;_u0.compile=Cu0});var Xj={};c3(Xj,{default:()=>ND0,createSupportsColor:()=>i4});import kz from"node:process";import MD0 from"node:os";import qj from"node:tty";function wD(u,D=globalThis.Deno?globalThis.Deno.args:kz.argv){let F=u.startsWith("-")?"":u.length===1?"-":"--",$=D.indexOf(F+u),B=D.indexOf("--");return $!==-1&&(B===-1||$<B)}function xD0(){if(!("FORCE_COLOR"in e0))return;if(e0.FORCE_COLOR==="true")return 1;if(e0.FORCE_COLOR==="false")return 0;if(e0.FORCE_COLOR.length===0)return 1;let u=Math.min(Number.parseInt(e0.FORCE_COLOR,10),3);if(![0,1,2,3].includes(u))return;return u}function OD0(u){if(u===0)return!1;return{level:u,hasBasic:!0,has256:u>=2,has16m:u>=3}}function AD0(u,{streamIsTTY:D,sniffFlags:F=!0}={}){let $=xD0();if($!==void 0)c5=$;let B=F?c5:$;if(B===0)return 0;if(F){if(wD("color=16m")||wD("color=full")||wD("color=truecolor"))return 3;if(wD("color=256"))return 2}if("TF_BUILD"in e0&&"AGENT_NAME"in e0)return 1;if(u&&!D&&B===void 0)return 0;let z=B||0;if(e0.TERM==="dumb")return z;if(kz.platform==="win32"){let Z=MD0.release().split(".");if(Number(Z[0])>=10&&Number(Z[2])>=10586)return Number(Z[2])>=14931?3:2;return 1}if("CI"in e0){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((Z)=>(Z in e0)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((Z)=>(Z in e0))||e0.CI_NAME==="codeship")return 1;return z}if("TEAMCITY_VERSION"in e0)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(e0.TEAMCITY_VERSION)?1:0;if(e0.COLORTERM==="truecolor")return 3;if(e0.TERM==="xterm-kitty")return 3;if(e0.TERM==="xterm-ghostty")return 3;if(e0.TERM==="wezterm")return 3;if("TERM_PROGRAM"in e0){let Z=Number.parseInt((e0.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(e0.TERM_PROGRAM){case"iTerm.app":return Z>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(e0.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(e0.TERM))return 1;if("COLORTERM"in e0)return 1;return z}function i4(u,D={}){let F=AD0(u,{streamIsTTY:u&&u.isTTY,...D});return OD0(F)}var e0,c5,wD0,ND0;var hz=DU(()=>{({env:e0}=kz);if(wD("no-color")||wD("no-colors")||wD("color=false")||wD("color=never"))c5=0;else if(wD("color")||wD("colors")||wD("color=true")||wD("color=always"))c5=1;wD0={stdout:i4({isTTY:qj.isatty(1)}),stderr:i4({isTTY:qj.isatty(2)})},ND0=wD0});var jj=V((QW0,Nj)=>{var wj=o("stream").Stream,G10=o("util");Nj.exports=dD;function dD(){this.source=null,this.dataSize=0,this.maxDataSize=1048576,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}G10.inherits(dD,wj);dD.create=function(u,D){var F=new this;D=D||{};for(var $ in D)F[$]=D[$];F.source=u;var B=u.emit;if(u.emit=function(){return F._handleEmit(arguments),B.apply(u,arguments)},u.on("error",function(){}),F.pauseStream)u.pause();return F};Object.defineProperty(dD.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}});dD.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};dD.prototype.resume=function(){if(!this._released)this.release();this.source.resume()};dD.prototype.pause=function(){this.source.pause()};dD.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(u){this.emit.apply(this,u)}.bind(this)),this._bufferedEvents=[]};dD.prototype.pipe=function(){var u=wj.prototype.pipe.apply(this,arguments);return this.resume(),u};dD.prototype._handleEmit=function(u){if(this._released){this.emit.apply(this,u);return}if(u[0]==="data")this.dataSize+=u[1].length,this._checkIfMaxDataSizeExceeded();this._bufferedEvents.push(u)};dD.prototype._checkIfMaxDataSizeExceeded=function(){if(this._maxDataSizeExceeded)return;if(this.dataSize<=this.maxDataSize)return;this._maxDataSizeExceeded=!0;var u="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",Error(u))}});var Cj=V((WW0,Pj)=>{var K10=o("util"),Ej=o("stream").Stream,Ij=jj();Pj.exports=Zu;function Zu(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2097152,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}K10.inherits(Zu,Ej);Zu.create=function(u){var D=new this;u=u||{};for(var F in u)D[F]=u[F];return D};Zu.isStreamLike=function(u){return typeof u!=="function"&&typeof u!=="string"&&typeof u!=="boolean"&&typeof u!=="number"&&!Buffer.isBuffer(u)};Zu.prototype.append=function(u){var D=Zu.isStreamLike(u);if(D){if(!(u instanceof Ij)){var F=Ij.create(u,{maxDataSize:1/0,pauseStream:this.pauseStreams});u.on("data",this._checkDataSize.bind(this)),u=F}if(this._handleErrors(u),this.pauseStreams)u.pause()}return this._streams.push(u),this};Zu.prototype.pipe=function(u,D){return Ej.prototype.pipe.call(this,u,D),this.resume(),u};Zu.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}};Zu.prototype._realGetNext=function(){var u=this._streams.shift();if(typeof u>"u"){this.end();return}if(typeof u!=="function"){this._pipeNext(u);return}var D=u;D(function(F){var $=Zu.isStreamLike(F);if($)F.on("data",this._checkDataSize.bind(this)),this._handleErrors(F);this._pipeNext(F)}.bind(this))};Zu.prototype._pipeNext=function(u){this._currentStream=u;var D=Zu.isStreamLike(u);if(D){u.on("end",this._getNext.bind(this)),u.pipe(this,{end:!1});return}var F=u;this.write(F),this._getNext()};Zu.prototype._handleErrors=function(u){var D=this;u.on("error",function(F){D._emitError(F)})};Zu.prototype.write=function(u){this.emit("data",u)};Zu.prototype.pause=function(){if(!this.pauseStreams)return;if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function")this._currentStream.pause();this.emit("pause")};Zu.prototype.resume=function(){if(!this._released)this._released=!0,this.writable=!0,this._getNext();if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function")this._currentStream.resume();this.emit("resume")};Zu.prototype.end=function(){this._reset(),this.emit("end")};Zu.prototype.destroy=function(){this._reset(),this.emit("close")};Zu.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};Zu.prototype._checkDataSize=function(){if(this._updateDataSize(),this.dataSize<=this.maxDataSize)return;var u="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(Error(u))};Zu.prototype._updateDataSize=function(){this.dataSize=0;var u=this;if(this._streams.forEach(function(D){if(!D.dataSize)return;u.dataSize+=D.dataSize}),this._currentStream&&this._currentStream.dataSize)this.dataSize+=this._currentStream.dataSize};Zu.prototype._emitError=function(u){this._reset(),this.emit("error",u)}});var _j=V((YW0,H10)=>{H10.exports={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}}});var Tj=V((A10)=>{/*!
|
|
78
|
+
* mime-types
|
|
79
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
80
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
81
|
+
* MIT Licensed
|
|
82
|
+
*/var o5=_j(),f10=o("path").extname,Uj=/^\s*([^;\s]*)(?:;|\s|$)/,V10=/^text\//i;A10.charset=ij;A10.charsets={lookup:ij};A10.contentType=L10;A10.extension=M10;A10.extensions=Object.create(null);A10.lookup=x10;A10.types=Object.create(null);O10(A10.extensions,A10.types);function ij(u){if(!u||typeof u!=="string")return!1;var D=Uj.exec(u),F=D&&o5[D[1].toLowerCase()];if(F&&F.charset)return F.charset;if(D&&V10.test(D[1]))return"UTF-8";return!1}function L10(u){if(!u||typeof u!=="string")return!1;var D=u.indexOf("/")===-1?A10.lookup(u):u;if(!D)return!1;if(D.indexOf("charset")===-1){var F=A10.charset(D);if(F)D+="; charset="+F.toLowerCase()}return D}function M10(u){if(!u||typeof u!=="string")return!1;var D=Uj.exec(u),F=D&&A10.extensions[D[1].toLowerCase()];if(!F||!F.length)return!1;return F[0]}function x10(u){if(!u||typeof u!=="string")return!1;var D=f10("x."+u).toLowerCase().substr(1);if(!D)return!1;return A10.types[D]||!1}function O10(u,D){var F=["nginx","apache",void 0,"iana"];Object.keys(o5).forEach(function(B){var z=o5[B],Z=z.extensions;if(!Z||!Z.length)return;u[B]=Z;for(var q=0;q<Z.length;q++){var X=Z[q];if(D[X]){var Q=F.indexOf(o5[D[X]].source),W=F.indexOf(z.source);if(D[X]!=="application/octet-stream"&&(Q>W||Q===W&&D[X].substr(0,12)==="application/"))continue}D[X]=B}})}});var bj=V((GW0,yj)=>{yj.exports=I10;function I10(u){var D=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;if(D)D(u);else setTimeout(u,0)}});var lz=V((KW0,kj)=>{var Rj=bj();kj.exports=E10;function E10(u){var D=!1;return Rj(function(){D=!0}),function($,B){if(D)u($,B);else Rj(function(){u($,B)})}}});var gz=V((HW0,hj)=>{hj.exports=P10;function P10(u){Object.keys(u.jobs).forEach(C10.bind(u)),u.jobs={}}function C10(u){if(typeof this.jobs[u]=="function")this.jobs[u]()}});var dz=V((fW0,mj)=>{var cj=lz(),_10=gz();mj.exports=U10;function U10(u,D,F,$){var B=F.keyedList?F.keyedList[F.index]:F.index;F.jobs[B]=i10(D,B,u[B],function(z,Z){if(!(B in F.jobs))return;if(delete F.jobs[B],z)_10(F);else F.results[B]=Z;$(z,F.results)})}function i10(u,D,F,$){var B;if(u.length==2)B=u(F,cj($));else B=u(F,D,cj($));return B}});var oz=V((VW0,nj)=>{nj.exports=v10;function v10(u,D){var F=!Array.isArray(u),$={index:0,keyedList:F||D?Object.keys(u):null,jobs:{},results:F?{}:[],size:F?Object.keys(u).length:u.length};if(D)$.keyedList.sort(F?D:function(B,z){return D(u[B],u[z])});return $}});var sz=V((LW0,pj)=>{var S10=gz(),T10=lz();pj.exports=y10;function y10(u){if(!Object.keys(this.jobs).length)return;this.index=this.size,S10(this),T10(u)(null,this.results)}});var gj=V((MW0,lj)=>{var b10=dz(),R10=oz(),k10=sz();lj.exports=h10;function h10(u,D,F){var $=R10(u);while($.index<($.keyedList||u).length)b10(u,D,$,function(B,z){if(B){F(B,z);return}if(Object.keys($.jobs).length===0){F(null,$.results);return}}),$.index++;return k10.bind($,F)}});var rz=V((xW0,s5)=>{var dj=dz(),c10=oz(),m10=sz();s5.exports=n10;s5.exports.ascending=oj;s5.exports.descending=p10;function n10(u,D,F,$){var B=c10(u,F);return dj(u,D,B,function z(Z,q){if(Z){$(Z,q);return}if(B.index++,B.index<(B.keyedList||u).length){dj(u,D,B,z);return}$(null,B.results)}),m10.bind(B,$)}function oj(u,D){return u<D?-1:u>D?1:0}function p10(u,D){return-1*oj(u,D)}});var rj=V((OW0,sj)=>{var l10=rz();sj.exports=g10;function g10(u,D,F){return l10(u,D,null,F)}});var tj=V((AW0,aj)=>{aj.exports={parallel:gj(),serial:rj(),serialOrdered:rz()}});var az=V((wW0,ej)=>{ej.exports=Object});var DI=V((NW0,uI)=>{uI.exports=Error});var $I=V((jW0,FI)=>{FI.exports=EvalError});var zI=V((IW0,BI)=>{BI.exports=RangeError});var qI=V((EW0,ZI)=>{ZI.exports=ReferenceError});var QI=V((PW0,XI)=>{XI.exports=SyntaxError});var r5=V((CW0,WI)=>{WI.exports=TypeError});var JI=V((_W0,YI)=>{YI.exports=URIError});var KI=V((UW0,GI)=>{GI.exports=Math.abs});var fI=V((iW0,HI)=>{HI.exports=Math.floor});var LI=V((vW0,VI)=>{VI.exports=Math.max});var xI=V((SW0,MI)=>{MI.exports=Math.min});var AI=V((TW0,OI)=>{OI.exports=Math.pow});var NI=V((yW0,wI)=>{wI.exports=Math.round});var II=V((bW0,jI)=>{jI.exports=Number.isNaN||function(D){return D!==D}});var PI=V((RW0,EI)=>{var d10=II();EI.exports=function(D){if(d10(D)||D===0)return D;return D<0?-1:1}});var _I=V((kW0,CI)=>{CI.exports=Object.getOwnPropertyDescriptor});var tz=V((hW0,UI)=>{var a5=_I();if(a5)try{a5([],"length")}catch(u){a5=null}UI.exports=a5});var vI=V((cW0,iI)=>{var t5=Object.defineProperty||!1;if(t5)try{t5({},"a",{value:1})}catch(u){t5=!1}iI.exports=t5});var ez=V((mW0,SI)=>{SI.exports=function(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function")return!1;if(typeof Symbol.iterator==="symbol")return!0;var D={},F=Symbol("test"),$=Object(F);if(typeof F==="string")return!1;if(Object.prototype.toString.call(F)!=="[object Symbol]")return!1;if(Object.prototype.toString.call($)!=="[object Symbol]")return!1;var B=42;D[F]=B;for(var z in D)return!1;if(typeof Object.keys==="function"&&Object.keys(D).length!==0)return!1;if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(D).length!==0)return!1;var Z=Object.getOwnPropertySymbols(D);if(Z.length!==1||Z[0]!==F)return!1;if(!Object.prototype.propertyIsEnumerable.call(D,F))return!1;if(typeof Object.getOwnPropertyDescriptor==="function"){var q=Object.getOwnPropertyDescriptor(D,F);if(q.value!==B||q.enumerable!==!0)return!1}return!0}});var bI=V((nW0,yI)=>{var TI=typeof Symbol<"u"&&Symbol,o10=ez();yI.exports=function(){if(typeof TI!=="function")return!1;if(typeof Symbol!=="function")return!1;if(typeof TI("foo")!=="symbol")return!1;if(typeof Symbol("bar")!=="symbol")return!1;return o10()}});var uZ=V((pW0,RI)=>{RI.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var DZ=V((lW0,kI)=>{var s10=az();kI.exports=s10.getPrototypeOf||null});var mI=V((gW0,cI)=>{var r10="Function.prototype.bind called on incompatible ",a10=Object.prototype.toString,t10=Math.max,e10="[object Function]",hI=function(D,F){var $=[];for(var B=0;B<D.length;B+=1)$[B]=D[B];for(var z=0;z<F.length;z+=1)$[z+D.length]=F[z];return $},uF0=function(D,F){var $=[];for(var B=F||0,z=0;B<D.length;B+=1,z+=1)$[z]=D[B];return $},DF0=function(u,D){var F="";for(var $=0;$<u.length;$+=1)if(F+=u[$],$+1<u.length)F+=D;return F};cI.exports=function(D){var F=this;if(typeof F!=="function"||a10.apply(F)!==e10)throw TypeError(r10+F);var $=uF0(arguments,1),B,z=function(){if(this instanceof B){var W=F.apply(this,hI($,arguments));if(Object(W)===W)return W;return this}return F.apply(D,hI($,arguments))},Z=t10(0,F.length-$.length),q=[];for(var X=0;X<Z;X++)q[X]="$"+X;if(B=Function("binder","return function ("+DF0(q,",")+"){ return binder.apply(this,arguments); }")(z),F.prototype){var Q=function(){};Q.prototype=F.prototype,B.prototype=new Q,Q.prototype=null}return B}});var k4=V((dW0,nI)=>{var FF0=mI();nI.exports=Function.prototype.bind||FF0});var e5=V((oW0,pI)=>{pI.exports=Function.prototype.call});var FZ=V((sW0,lI)=>{lI.exports=Function.prototype.apply});var dI=V((rW0,gI)=>{gI.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var sI=V((aW0,oI)=>{var $F0=k4(),BF0=FZ(),zF0=e5(),ZF0=dI();oI.exports=ZF0||$F0.call(zF0,BF0)});var aI=V((tW0,rI)=>{var qF0=k4(),XF0=r5(),QF0=e5(),WF0=sI();rI.exports=function(D){if(D.length<1||typeof D[0]!=="function")throw new XF0("a function is required");return WF0(qF0,QF0,D)}});var $E=V((eW0,FE)=>{var YF0=aI(),tI=tz(),uE;try{uE=[].__proto__===Array.prototype}catch(u){if(!u||typeof u!=="object"||!("code"in u)||u.code!=="ERR_PROTO_ACCESS")throw u}var $Z=!!uE&&tI&&tI(Object.prototype,"__proto__"),DE=Object,eI=DE.getPrototypeOf;FE.exports=$Z&&typeof $Z.get==="function"?YF0([$Z.get]):typeof eI==="function"?function(D){return eI(D==null?D:DE(D))}:!1});var XE=V((uY0,qE)=>{var BE=uZ(),zE=DZ(),ZE=$E();qE.exports=BE?function(D){return BE(D)}:zE?function(D){if(!D||typeof D!=="object"&&typeof D!=="function")throw TypeError("getProto: not an object");return zE(D)}:ZE?function(D){return ZE(D)}:null});var u3=V((DY0,QE)=>{var JF0=Function.prototype.call,GF0=Object.prototype.hasOwnProperty,KF0=k4();QE.exports=KF0.call(JF0,GF0)});var HE=V((FY0,KE)=>{var C0,HF0=az(),fF0=DI(),VF0=$I(),LF0=zI(),MF0=qI(),$8=QI(),F8=r5(),xF0=JI(),OF0=KI(),AF0=fI(),wF0=LI(),NF0=xI(),jF0=AI(),IF0=NI(),EF0=PI(),JE=Function,BZ=function(u){try{return JE('"use strict"; return ('+u+").constructor;")()}catch(D){}},h4=tz(),PF0=vI(),zZ=function(){throw new F8},CF0=h4?function(){try{return arguments.callee,zZ}catch(u){try{return h4(arguments,"callee").get}catch(D){return zZ}}}():zZ,u8=bI()(),Au=XE(),_F0=DZ(),UF0=uZ(),GE=FZ(),c4=e5(),D8={},iF0=typeof Uint8Array>"u"||!Au?C0:Au(Uint8Array),gF={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?C0:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?C0:ArrayBuffer,"%ArrayIteratorPrototype%":u8&&Au?Au([][Symbol.iterator]()):C0,"%AsyncFromSyncIteratorPrototype%":C0,"%AsyncFunction%":D8,"%AsyncGenerator%":D8,"%AsyncGeneratorFunction%":D8,"%AsyncIteratorPrototype%":D8,"%Atomics%":typeof Atomics>"u"?C0:Atomics,"%BigInt%":typeof BigInt>"u"?C0:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?C0:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?C0:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?C0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":fF0,"%eval%":eval,"%EvalError%":VF0,"%Float16Array%":typeof Float16Array>"u"?C0:Float16Array,"%Float32Array%":typeof Float32Array>"u"?C0:Float32Array,"%Float64Array%":typeof Float64Array>"u"?C0:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?C0:FinalizationRegistry,"%Function%":JE,"%GeneratorFunction%":D8,"%Int8Array%":typeof Int8Array>"u"?C0:Int8Array,"%Int16Array%":typeof Int16Array>"u"?C0:Int16Array,"%Int32Array%":typeof Int32Array>"u"?C0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u8&&Au?Au(Au([][Symbol.iterator]())):C0,"%JSON%":typeof JSON==="object"?JSON:C0,"%Map%":typeof Map>"u"?C0:Map,"%MapIteratorPrototype%":typeof Map>"u"||!u8||!Au?C0:Au(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":HF0,"%Object.getOwnPropertyDescriptor%":h4,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?C0:Promise,"%Proxy%":typeof Proxy>"u"?C0:Proxy,"%RangeError%":LF0,"%ReferenceError%":MF0,"%Reflect%":typeof Reflect>"u"?C0:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?C0:Set,"%SetIteratorPrototype%":typeof Set>"u"||!u8||!Au?C0:Au(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?C0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u8&&Au?Au(""[Symbol.iterator]()):C0,"%Symbol%":u8?Symbol:C0,"%SyntaxError%":$8,"%ThrowTypeError%":CF0,"%TypedArray%":iF0,"%TypeError%":F8,"%Uint8Array%":typeof Uint8Array>"u"?C0:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?C0:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?C0:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?C0:Uint32Array,"%URIError%":xF0,"%WeakMap%":typeof WeakMap>"u"?C0:WeakMap,"%WeakRef%":typeof WeakRef>"u"?C0:WeakRef,"%WeakSet%":typeof WeakSet>"u"?C0:WeakSet,"%Function.prototype.call%":c4,"%Function.prototype.apply%":GE,"%Object.defineProperty%":PF0,"%Object.getPrototypeOf%":_F0,"%Math.abs%":OF0,"%Math.floor%":AF0,"%Math.max%":wF0,"%Math.min%":NF0,"%Math.pow%":jF0,"%Math.round%":IF0,"%Math.sign%":EF0,"%Reflect.getPrototypeOf%":UF0};if(Au)try{null.error}catch(u){ZZ=Au(Au(u)),gF["%Error.prototype%"]=ZZ}var ZZ,vF0=function u(D){var F;if(D==="%AsyncFunction%")F=BZ("async function () {}");else if(D==="%GeneratorFunction%")F=BZ("function* () {}");else if(D==="%AsyncGeneratorFunction%")F=BZ("async function* () {}");else if(D==="%AsyncGenerator%"){var $=u("%AsyncGeneratorFunction%");if($)F=$.prototype}else if(D==="%AsyncIteratorPrototype%"){var B=u("%AsyncGenerator%");if(B&&Au)F=Au(B.prototype)}return gF[D]=F,F},WE={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},m4=k4(),D3=u3(),SF0=m4.call(c4,Array.prototype.concat),TF0=m4.call(GE,Array.prototype.splice),YE=m4.call(c4,String.prototype.replace),F3=m4.call(c4,String.prototype.slice),yF0=m4.call(c4,RegExp.prototype.exec),bF0=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,RF0=/\\(\\)?/g,kF0=function(D){var F=F3(D,0,1),$=F3(D,-1);if(F==="%"&&$!=="%")throw new $8("invalid intrinsic syntax, expected closing `%`");else if($==="%"&&F!=="%")throw new $8("invalid intrinsic syntax, expected opening `%`");var B=[];return YE(D,bF0,function(z,Z,q,X){B[B.length]=q?YE(X,RF0,"$1"):Z||z}),B},hF0=function(D,F){var $=D,B;if(D3(WE,$))B=WE[$],$="%"+B[0]+"%";if(D3(gF,$)){var z=gF[$];if(z===D8)z=vF0($);if(typeof z>"u"&&!F)throw new F8("intrinsic "+D+" exists, but is not available. Please file an issue!");return{alias:B,name:$,value:z}}throw new $8("intrinsic "+D+" does not exist!")};KE.exports=function(D,F){if(typeof D!=="string"||D.length===0)throw new F8("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof F!=="boolean")throw new F8('"allowMissing" argument must be a boolean');if(yF0(/^%?[^%]*%?$/,D)===null)throw new $8("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var $=kF0(D),B=$.length>0?$[0]:"",z=hF0("%"+B+"%",F),Z=z.name,q=z.value,X=!1,Q=z.alias;if(Q)B=Q[0],TF0($,SF0([0,1],Q));for(var W=1,Y=!0;W<$.length;W+=1){var J=$[W],G=F3(J,0,1),K=F3(J,-1);if((G==='"'||G==="'"||G==="`"||(K==='"'||K==="'"||K==="`"))&&G!==K)throw new $8("property names with quotes must have matching quotes");if(J==="constructor"||!Y)X=!0;if(B+="."+J,Z="%"+B+"%",D3(gF,Z))q=gF[Z];else if(q!=null){if(!(J in q)){if(!F)throw new F8("base intrinsic for "+D+" exists, but the property is not available.");return}if(h4&&W+1>=$.length){var H=h4(q,J);if(Y=!!H,Y&&"get"in H&&!("originalValue"in H.get))q=H.get;else q=q[J]}else Y=D3(q,J),q=q[J];if(Y&&!X)gF[Z]=q}}return q}});var VE=V(($Y0,fE)=>{var cF0=ez();fE.exports=function(){return cF0()&&!!Symbol.toStringTag}});var xE=V((BY0,ME)=>{var mF0=HE(),LE=mF0("%Object.defineProperty%",!0),nF0=VE()(),pF0=u3(),lF0=r5(),$3=nF0?Symbol.toStringTag:null;ME.exports=function(D,F){var $=arguments.length>2&&!!arguments[2]&&arguments[2].force,B=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof $<"u"&&typeof $!=="boolean"||typeof B<"u"&&typeof B!=="boolean")throw new lF0("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");if($3&&($||!pF0(D,$3)))if(LE)LE(D,$3,{configurable:!B,enumerable:!1,value:F,writable:!1});else D[$3]=F}});var AE=V((zY0,OE)=>{OE.exports=function(u,D){return Object.keys(D).forEach(function(F){u[F]=u[F]||D[F]}),u}});var NE=V((ZY0,wE)=>{var WZ=Cj(),gF0=o("util"),qZ=o("path"),dF0=o("http"),oF0=o("https"),sF0=o("url").parse,rF0=o("fs"),aF0=o("stream").Stream,tF0=o("crypto"),XZ=Tj(),eF0=tj(),u60=xE(),BF=u3(),QZ=AE();function y0(u){if(!(this instanceof y0))return new y0(u);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],WZ.call(this),u=u||{};for(var D in u)this[D]=u[D]}gF0.inherits(y0,WZ);y0.LINE_BREAK=`\r
|
|
83
|
+
`;y0.DEFAULT_CONTENT_TYPE="application/octet-stream";y0.prototype.append=function(u,D,F){if(F=F||{},typeof F==="string")F={filename:F};var $=WZ.prototype.append.bind(this);if(typeof D==="number"||D==null)D=String(D);if(Array.isArray(D)){this._error(Error("Arrays are not supported."));return}var B=this._multiPartHeader(u,D,F),z=this._multiPartFooter();$(B),$(D),$(z),this._trackLength(B,D,F)};y0.prototype._trackLength=function(u,D,F){var $=0;if(F.knownLength!=null)$+=Number(F.knownLength);else if(Buffer.isBuffer(D))$=D.length;else if(typeof D==="string")$=Buffer.byteLength(D);if(this._valueLength+=$,this._overheadLength+=Buffer.byteLength(u)+y0.LINE_BREAK.length,!D||!D.path&&!(D.readable&&BF(D,"httpVersion"))&&!(D instanceof aF0))return;if(!F.knownLength)this._valuesToMeasure.push(D)};y0.prototype._lengthRetriever=function(u,D){if(BF(u,"fd"))if(u.end!=null&&u.end!=1/0&&u.start!=null)D(null,u.end+1-(u.start?u.start:0));else rF0.stat(u.path,function(F,$){if(F){D(F);return}var B=$.size-(u.start?u.start:0);D(null,B)});else if(BF(u,"httpVersion"))D(null,Number(u.headers["content-length"]));else if(BF(u,"httpModule"))u.on("response",function(F){u.pause(),D(null,Number(F.headers["content-length"]))}),u.resume();else D("Unknown stream")};y0.prototype._multiPartHeader=function(u,D,F){if(typeof F.header==="string")return F.header;var $=this._getContentDisposition(D,F),B=this._getContentType(D,F),z="",Z={"Content-Disposition":["form-data",'name="'+u+'"'].concat($||[]),"Content-Type":[].concat(B||[])};if(typeof F.header==="object")QZ(Z,F.header);var q;for(var X in Z)if(BF(Z,X)){if(q=Z[X],q==null)continue;if(!Array.isArray(q))q=[q];if(q.length)z+=X+": "+q.join("; ")+y0.LINE_BREAK}return"--"+this.getBoundary()+y0.LINE_BREAK+z+y0.LINE_BREAK};y0.prototype._getContentDisposition=function(u,D){var F;if(typeof D.filepath==="string")F=qZ.normalize(D.filepath).replace(/\\/g,"/");else if(D.filename||u&&(u.name||u.path))F=qZ.basename(D.filename||u&&(u.name||u.path));else if(u&&u.readable&&BF(u,"httpVersion"))F=qZ.basename(u.client._httpMessage.path||"");if(F)return'filename="'+F+'"'};y0.prototype._getContentType=function(u,D){var F=D.contentType;if(!F&&u&&u.name)F=XZ.lookup(u.name);if(!F&&u&&u.path)F=XZ.lookup(u.path);if(!F&&u&&u.readable&&BF(u,"httpVersion"))F=u.headers["content-type"];if(!F&&(D.filepath||D.filename))F=XZ.lookup(D.filepath||D.filename);if(!F&&u&&typeof u==="object")F=y0.DEFAULT_CONTENT_TYPE;return F};y0.prototype._multiPartFooter=function(){return function(u){var D=y0.LINE_BREAK,F=this._streams.length===0;if(F)D+=this._lastBoundary();u(D)}.bind(this)};y0.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+y0.LINE_BREAK};y0.prototype.getHeaders=function(u){var D,F={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(D in u)if(BF(u,D))F[D.toLowerCase()]=u[D];return F};y0.prototype.setBoundary=function(u){if(typeof u!=="string")throw TypeError("FormData boundary must be a string");this._boundary=u};y0.prototype.getBoundary=function(){if(!this._boundary)this._generateBoundary();return this._boundary};y0.prototype.getBuffer=function(){var u=new Buffer.alloc(0),D=this.getBoundary();for(var F=0,$=this._streams.length;F<$;F++)if(typeof this._streams[F]!=="function"){if(Buffer.isBuffer(this._streams[F]))u=Buffer.concat([u,this._streams[F]]);else u=Buffer.concat([u,Buffer.from(this._streams[F])]);if(typeof this._streams[F]!=="string"||this._streams[F].substring(2,D.length+2)!==D)u=Buffer.concat([u,Buffer.from(y0.LINE_BREAK)])}return Buffer.concat([u,Buffer.from(this._lastBoundary())])};y0.prototype._generateBoundary=function(){this._boundary="--------------------------"+tF0.randomBytes(12).toString("hex")};y0.prototype.getLengthSync=function(){var u=this._overheadLength+this._valueLength;if(this._streams.length)u+=this._lastBoundary().length;if(!this.hasKnownLength())this._error(Error("Cannot calculate proper length in synchronous way."));return u};y0.prototype.hasKnownLength=function(){var u=!0;if(this._valuesToMeasure.length)u=!1;return u};y0.prototype.getLength=function(u){var D=this._overheadLength+this._valueLength;if(this._streams.length)D+=this._lastBoundary().length;if(!this._valuesToMeasure.length){process.nextTick(u.bind(this,null,D));return}eF0.parallel(this._valuesToMeasure,this._lengthRetriever,function(F,$){if(F){u(F);return}$.forEach(function(B){D+=B}),u(null,D)})};y0.prototype.submit=function(u,D){var F,$,B={method:"post"};if(typeof u==="string")u=sF0(u),$=QZ({port:u.port,path:u.pathname,host:u.hostname,protocol:u.protocol},B);else if($=QZ(u,B),!$.port)$.port=$.protocol==="https:"?443:80;if($.headers=this.getHeaders(u.headers),$.protocol==="https:")F=oF0.request($);else F=dF0.request($);return this.getLength(function(z,Z){if(z&&z!=="Unknown stream"){this._error(z);return}if(Z)F.setHeader("Content-Length",Z);if(this.pipe(F),D){var q,X=function(Q,W){return F.removeListener("error",X),F.removeListener("response",q),D.call(this,Q,W)};q=X.bind(this,null),F.on("error",X),F.on("response",q)}}.bind(this)),F};y0.prototype._error=function(u){if(!this.error)this.error=u,this.pause(),this.emit("error",u)};y0.prototype.toString=function(){return"[object FormData]"};u60(y0.prototype,"FormData");wE.exports=y0});var hE=V((j60)=>{var x60=o("url").parse,O60={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},A60=String.prototype.endsWith||function(u){return u.length<=this.length&&this.indexOf(u,this.length-u.length)!==-1};function w60(u){var D=typeof u==="string"?x60(u):u||{},F=D.protocol,$=D.host,B=D.port;if(typeof $!=="string"||!$||typeof F!=="string")return"";if(F=F.split(":",1)[0],$=$.replace(/:\d*$/,""),B=parseInt(B)||O60[F]||0,!N60($,B))return"";var z=z8("npm_config_"+F+"_proxy")||z8(F+"_proxy")||z8("npm_config_proxy")||z8("all_proxy");if(z&&z.indexOf("://")===-1)z=F+"://"+z;return z}function N60(u,D){var F=(z8("npm_config_no_proxy")||z8("no_proxy")).toLowerCase();if(!F)return!0;if(F==="*")return!1;return F.split(/[,\s]/).every(function($){if(!$)return!0;var B=$.match(/^(.+):(\d+)$/),z=B?B[1]:$,Z=B?parseInt(B[2]):0;if(Z&&Z!==D)return!0;if(!/^[.*]/.test(z))return u!==z;if(z.charAt(0)==="*")z=z.slice(1);return!A60.call(u,z)})}function z8(u){return process.env[u.toLowerCase()]||process.env[u.toUpperCase()]||""}j60.getProxyForUrl=w60});var mE=V((XJ0,cE)=>{var Z8=1000,q8=Z8*60,X8=q8*60,sF=X8*24,E60=sF*7,P60=sF*365.25;cE.exports=function(u,D){D=D||{};var F=typeof u;if(F==="string"&&u.length>0)return C60(u);else if(F==="number"&&isFinite(u))return D.long?U60(u):_60(u);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function C60(u){if(u=String(u),u.length>100)return;var D=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(!D)return;var F=parseFloat(D[1]),$=(D[2]||"ms").toLowerCase();switch($){case"years":case"year":case"yrs":case"yr":case"y":return F*P60;case"weeks":case"week":case"w":return F*E60;case"days":case"day":case"d":return F*sF;case"hours":case"hour":case"hrs":case"hr":case"h":return F*X8;case"minutes":case"minute":case"mins":case"min":case"m":return F*q8;case"seconds":case"second":case"secs":case"sec":case"s":return F*Z8;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return F;default:return}}function _60(u){var D=Math.abs(u);if(D>=sF)return Math.round(u/sF)+"d";if(D>=X8)return Math.round(u/X8)+"h";if(D>=q8)return Math.round(u/q8)+"m";if(D>=Z8)return Math.round(u/Z8)+"s";return u+"ms"}function U60(u){var D=Math.abs(u);if(D>=sF)return q3(u,D,sF,"day");if(D>=X8)return q3(u,D,X8,"hour");if(D>=q8)return q3(u,D,q8,"minute");if(D>=Z8)return q3(u,D,Z8,"second");return u+" ms"}function q3(u,D,F,$){var B=D>=F*1.5;return Math.round(u/F)+" "+$+(B?"s":"")}});var AZ=V((QJ0,nE)=>{function i60(u){F.debug=F,F.default=F,F.coerce=X,F.disable=Z,F.enable=B,F.enabled=q,F.humanize=mE(),F.destroy=Q,Object.keys(u).forEach((W)=>{F[W]=u[W]}),F.names=[],F.skips=[],F.formatters={};function D(W){let Y=0;for(let J=0;J<W.length;J++)Y=(Y<<5)-Y+W.charCodeAt(J),Y|=0;return F.colors[Math.abs(Y)%F.colors.length]}F.selectColor=D;function F(W){let Y,J=null,G,K;function H(...f){if(!H.enabled)return;let x=H,L=Number(new Date),A=L-(Y||L);if(x.diff=A,x.prev=Y,x.curr=L,Y=L,f[0]=F.coerce(f[0]),typeof f[0]!=="string")f.unshift("%O");let C=0;f[0]=f[0].replace(/%([a-zA-Z%])/g,(_,R)=>{if(_==="%%")return"%";C++;let k=F.formatters[R];if(typeof k==="function"){let c=f[C];_=k.call(x,c),f.splice(C,1),C--}return _}),F.formatArgs.call(x,f),(x.log||F.log).apply(x,f)}if(H.namespace=W,H.useColors=F.useColors(),H.color=F.selectColor(W),H.extend=$,H.destroy=F.destroy,Object.defineProperty(H,"enabled",{enumerable:!0,configurable:!1,get:()=>{if(J!==null)return J;if(G!==F.namespaces)G=F.namespaces,K=F.enabled(W);return K},set:(f)=>{J=f}}),typeof F.init==="function")F.init(H);return H}function $(W,Y){let J=F(this.namespace+(typeof Y>"u"?":":Y)+W);return J.log=this.log,J}function B(W){F.save(W),F.namespaces=W,F.names=[],F.skips=[];let Y=(typeof W==="string"?W:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let J of Y)if(J[0]==="-")F.skips.push(J.slice(1));else F.names.push(J)}function z(W,Y){let J=0,G=0,K=-1,H=0;while(J<W.length)if(G<Y.length&&(Y[G]===W[J]||Y[G]==="*"))if(Y[G]==="*")K=G,H=J,G++;else J++,G++;else if(K!==-1)G=K+1,H++,J=H;else return!1;while(G<Y.length&&Y[G]==="*")G++;return G===Y.length}function Z(){let W=[...F.names,...F.skips.map((Y)=>"-"+Y)].join(",");return F.enable(""),W}function q(W){for(let Y of F.skips)if(z(W,Y))return!1;for(let Y of F.names)if(z(W,Y))return!0;return!1}function X(W){if(W instanceof Error)return W.stack||W.message;return W}function Q(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return F.enable(F.load()),F}nE.exports=i60});var lE=V((pE,X3)=>{pE.formatArgs=S60;pE.save=T60;pE.load=y60;pE.useColors=v60;pE.storage=b60();pE.destroy=(()=>{let u=!1;return()=>{if(!u)u=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}})();pE.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function v60(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let u;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(u=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(u[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function S60(u){if(u[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+u[0]+(this.useColors?"%c ":" ")+"+"+X3.exports.humanize(this.diff),!this.useColors)return;let D="color: "+this.color;u.splice(1,0,D,"color: inherit");let F=0,$=0;u[0].replace(/%[a-zA-Z%]/g,(B)=>{if(B==="%%")return;if(F++,B==="%c")$=F}),u.splice($,0,D)}pE.log=console.debug||console.log||(()=>{});function T60(u){try{if(u)pE.storage.setItem("debug",u);else pE.storage.removeItem("debug")}catch(D){}}function y60(){let u;try{u=pE.storage.getItem("debug")||pE.storage.getItem("DEBUG")}catch(D){}if(!u&&typeof process<"u"&&"env"in process)u=process.env.DEBUG;return u}function b60(){try{return localStorage}catch(u){}}X3.exports=AZ()(pE);var{formatters:R60}=X3.exports;R60.j=function(u){try{return JSON.stringify(u)}catch(D){return"[UnexpectedJSONParseError]: "+D.message}}});var sE=V((dE,W3)=>{var g60=o("tty"),Q3=o("util");dE.init=e60;dE.log=r60;dE.formatArgs=o60;dE.save=a60;dE.load=t60;dE.useColors=d60;dE.destroy=Q3.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");dE.colors=[6,2,3,4,5,1];try{let u=(hz(),uU(Xj));if(u&&(u.stderr||u).level>=2)dE.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}catch(u){}dE.inspectOpts=Object.keys(process.env).filter((u)=>{return/^debug_/i.test(u)}).reduce((u,D)=>{let F=D.substring(6).toLowerCase().replace(/_([a-z])/g,(B,z)=>{return z.toUpperCase()}),$=process.env[D];if(/^(yes|on|true|enabled)$/i.test($))$=!0;else if(/^(no|off|false|disabled)$/i.test($))$=!1;else if($==="null")$=null;else $=Number($);return u[F]=$,u},{});function d60(){return"colors"in dE.inspectOpts?Boolean(dE.inspectOpts.colors):g60.isatty(process.stderr.fd)}function o60(u){let{namespace:D,useColors:F}=this;if(F){let $=this.color,B="\x1B[3"+($<8?$:"8;5;"+$),z=` ${B};1m${D} \x1B[0m`;u[0]=z+u[0].split(`
|
|
84
|
+
`).join(`
|
|
85
|
+
`+z),u.push(B+"m+"+W3.exports.humanize(this.diff)+"\x1B[0m")}else u[0]=s60()+D+" "+u[0]}function s60(){if(dE.inspectOpts.hideDate)return"";return new Date().toISOString()+" "}function r60(...u){return process.stderr.write(Q3.formatWithOptions(dE.inspectOpts,...u)+`
|
|
86
|
+
`)}function a60(u){if(u)process.env.DEBUG=u;else delete process.env.DEBUG}function t60(){return process.env.DEBUG}function e60(u){u.inspectOpts={};let D=Object.keys(dE.inspectOpts);for(let F=0;F<D.length;F++)u.inspectOpts[D[F]]=dE.inspectOpts[D[F]]}W3.exports=AZ()(dE);var{formatters:gE}=W3.exports;gE.o=function(u){return this.inspectOpts.colors=this.useColors,Q3.inspect(u,this.inspectOpts).split(`
|
|
87
|
+
`).map((D)=>D.trim()).join(" ")};gE.O=function(u){return this.inspectOpts.colors=this.useColors,Q3.inspect(u,this.inspectOpts)}});var rE=V((JJ0,wZ)=>{if(typeof process>"u"||process.type==="renderer"||!1||process.__nwjs)wZ.exports=lE();else wZ.exports=sE()});var tE=V((GJ0,aE)=>{var o4;aE.exports=function(){if(!o4){try{o4=rE()("follow-redirects")}catch(u){}if(typeof o4!=="function")o4=function(){}}o4.apply(null,arguments)}});var $P=V((KJ0,TZ)=>{var r4=o("url"),s4=r4.URL,q80=o("http"),X80=o("https"),PZ=o("stream").Writable,CZ=o("assert"),eE=tE();(function(){var D=typeof process<"u",F=typeof window<"u"&&typeof document<"u",$=tF(Error.captureStackTrace);if(!D&&(F||!$))console.warn("The follow-redirects package should be excluded from browser builds.")})();var _Z=!1;try{CZ(new s4(""))}catch(u){_Z=u.code==="ERR_INVALID_URL"}var Q80=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],UZ=["abort","aborted","connect","error","socket","timeout"],iZ=Object.create(null);UZ.forEach(function(u){iZ[u]=function(D,F,$){this._redirectable.emit(u,D,F,$)}});var jZ=a4("ERR_INVALID_URL","Invalid URL",TypeError),IZ=a4("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),W80=a4("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",IZ),Y80=a4("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),J80=a4("ERR_STREAM_WRITE_AFTER_END","write after end"),G80=PZ.prototype.destroy||DP;function $D(u,D){if(PZ.call(this),this._sanitizeOptions(u),this._options=u,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],D)this.on("response",D);var F=this;this._onNativeResponse=function($){try{F._processResponse($)}catch(B){F.emit("error",B instanceof IZ?B:new IZ({cause:B}))}},this._performRequest()}$D.prototype=Object.create(PZ.prototype);$D.prototype.abort=function(){SZ(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};$D.prototype.destroy=function(u){return SZ(this._currentRequest,u),G80.call(this,u),this};$D.prototype.write=function(u,D,F){if(this._ending)throw new J80;if(!aF(u)&&!f80(u))throw TypeError("data should be a string, Buffer or Uint8Array");if(tF(D))F=D,D=null;if(u.length===0){if(F)F();return}if(this._requestBodyLength+u.length<=this._options.maxBodyLength)this._requestBodyLength+=u.length,this._requestBodyBuffers.push({data:u,encoding:D}),this._currentRequest.write(u,D,F);else this.emit("error",new Y80),this.abort()};$D.prototype.end=function(u,D,F){if(tF(u))F=u,u=D=null;else if(tF(D))F=D,D=null;if(!u)this._ended=this._ending=!0,this._currentRequest.end(null,null,F);else{var $=this,B=this._currentRequest;this.write(u,D,function(){$._ended=!0,B.end(null,null,F)}),this._ending=!0}};$D.prototype.setHeader=function(u,D){this._options.headers[u]=D,this._currentRequest.setHeader(u,D)};$D.prototype.removeHeader=function(u){delete this._options.headers[u],this._currentRequest.removeHeader(u)};$D.prototype.setTimeout=function(u,D){var F=this;function $(Z){Z.setTimeout(u),Z.removeListener("timeout",Z.destroy),Z.addListener("timeout",Z.destroy)}function B(Z){if(F._timeout)clearTimeout(F._timeout);F._timeout=setTimeout(function(){F.emit("timeout"),z()},u),$(Z)}function z(){if(F._timeout)clearTimeout(F._timeout),F._timeout=null;if(F.removeListener("abort",z),F.removeListener("error",z),F.removeListener("response",z),F.removeListener("close",z),D)F.removeListener("timeout",D);if(!F.socket)F._currentRequest.removeListener("socket",B)}if(D)this.on("timeout",D);if(this.socket)B(this.socket);else this._currentRequest.once("socket",B);return this.on("socket",$),this.on("abort",z),this.on("error",z),this.on("response",z),this.on("close",z),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(u){$D.prototype[u]=function(D,F){return this._currentRequest[u](D,F)}});["aborted","connection","socket"].forEach(function(u){Object.defineProperty($D.prototype,u,{get:function(){return this._currentRequest[u]}})});$D.prototype._sanitizeOptions=function(u){if(!u.headers)u.headers={};if(u.host){if(!u.hostname)u.hostname=u.host;delete u.host}if(!u.pathname&&u.path){var D=u.path.indexOf("?");if(D<0)u.pathname=u.path;else u.pathname=u.path.substring(0,D),u.search=u.path.substring(D)}};$D.prototype._performRequest=function(){var u=this._options.protocol,D=this._options.nativeProtocols[u];if(!D)throw TypeError("Unsupported protocol "+u);if(this._options.agents){var F=u.slice(0,-1);this._options.agent=this._options.agents[F]}var $=this._currentRequest=D.request(this._options,this._onNativeResponse);$._redirectable=this;for(var B of UZ)$.on(B,iZ[B]);if(this._currentUrl=/^\//.test(this._options.path)?r4.format(this._options):this._options.path,this._isRedirect){var z=0,Z=this,q=this._requestBodyBuffers;(function X(Q){if($===Z._currentRequest){if(Q)Z.emit("error",Q);else if(z<q.length){var W=q[z++];if(!$.finished)$.write(W.data,W.encoding,X)}else if(Z._ended)$.end()}})()}};$D.prototype._processResponse=function(u){var D=u.statusCode;if(this._options.trackRedirects)this._redirects.push({url:this._currentUrl,headers:u.headers,statusCode:D});var F=u.headers.location;if(!F||this._options.followRedirects===!1||D<300||D>=400){u.responseUrl=this._currentUrl,u.redirects=this._redirects,this.emit("response",u),this._requestBodyBuffers=[];return}if(SZ(this._currentRequest),u.destroy(),++this._redirectCount>this._options.maxRedirects)throw new W80;var $,B=this._options.beforeRedirect;if(B)$=Object.assign({Host:u.req.getHeader("host")},this._options.headers);var z=this._options.method;if((D===301||D===302)&&this._options.method==="POST"||D===303&&!/^(?:GET|HEAD)$/.test(this._options.method))this._options.method="GET",this._requestBodyBuffers=[],NZ(/^content-/i,this._options.headers);var Z=NZ(/^host$/i,this._options.headers),q=vZ(this._currentUrl),X=Z||q.host,Q=/^\w+:/.test(F)?this._currentUrl:r4.format(Object.assign(q,{host:X})),W=K80(F,Q);if(eE("redirecting to",W.href),this._isRedirect=!0,EZ(W,this._options),W.protocol!==q.protocol&&W.protocol!=="https:"||W.host!==X&&!H80(W.host,X))NZ(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers);if(tF(B)){var Y={headers:u.headers,statusCode:D},J={url:Q,method:z,headers:$};B(this._options,Y,J),this._sanitizeOptions(this._options)}this._performRequest()};function uP(u){var D={maxRedirects:21,maxBodyLength:10485760},F={};return Object.keys(u).forEach(function($){var B=$+":",z=F[B]=u[$],Z=D[$]=Object.create(z);function q(Q,W,Y){if(V80(Q))Q=EZ(Q);else if(aF(Q))Q=EZ(vZ(Q));else Y=W,W=FP(Q),Q={protocol:B};if(tF(W))Y=W,W=null;if(W=Object.assign({maxRedirects:D.maxRedirects,maxBodyLength:D.maxBodyLength},Q,W),W.nativeProtocols=F,!aF(W.host)&&!aF(W.hostname))W.hostname="::1";return CZ.equal(W.protocol,B,"protocol mismatch"),eE("options",W),new $D(W,Y)}function X(Q,W,Y){var J=Z.request(Q,W,Y);return J.end(),J}Object.defineProperties(Z,{request:{value:q,configurable:!0,enumerable:!0,writable:!0},get:{value:X,configurable:!0,enumerable:!0,writable:!0}})}),D}function DP(){}function vZ(u){var D;if(_Z)D=new s4(u);else if(D=FP(r4.parse(u)),!aF(D.protocol))throw new jZ({input:u});return D}function K80(u,D){return _Z?new s4(u,D):vZ(r4.resolve(D,u))}function FP(u){if(/^\[/.test(u.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(u.hostname))throw new jZ({input:u.href||u});if(/^\[/.test(u.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(u.host))throw new jZ({input:u.href||u});return u}function EZ(u,D){var F=D||{};for(var $ of Q80)F[$]=u[$];if(F.hostname.startsWith("["))F.hostname=F.hostname.slice(1,-1);if(F.port!=="")F.port=Number(F.port);return F.path=F.search?F.pathname+F.search:F.pathname,F}function NZ(u,D){var F;for(var $ in D)if(u.test($))F=D[$],delete D[$];return F===null||typeof F>"u"?void 0:String(F).trim()}function a4(u,D,F){function $(B){if(tF(Error.captureStackTrace))Error.captureStackTrace(this,this.constructor);Object.assign(this,B||{}),this.code=u,this.message=this.cause?D+": "+this.cause.message:D}return $.prototype=new(F||Error),Object.defineProperties($.prototype,{constructor:{value:$,enumerable:!1},name:{value:"Error ["+u+"]",enumerable:!1}}),$}function SZ(u,D){for(var F of UZ)u.removeListener(F,iZ[F]);u.on("error",DP),u.destroy(D)}function H80(u,D){CZ(aF(u)&&aF(D));var F=u.length-D.length-1;return F>0&&u[F]==="."&&u.endsWith(D)}function aF(u){return typeof u==="string"||u instanceof String}function tF(u){return typeof u==="function"}function f80(u){return typeof u==="object"&&"length"in u}function V80(u){return s4&&u instanceof s4}TZ.exports=uP({http:q80,https:X80});TZ.exports.wrap=uP});var $7=V((uH0,kP)=>{var F40=Number.MAX_SAFE_INTEGER||9007199254740991,$40=["major","premajor","minor","preminor","patch","prepatch","prerelease"];kP.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:F40,RELEASE_TYPES:$40,SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var B7=V((DH0,hP)=>{var B40=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...u)=>console.error("SEMVER",...u):()=>{};hP.exports=B40});var Y8=V((q1,cP)=>{var{MAX_SAFE_COMPONENT_LENGTH:sZ,MAX_SAFE_BUILD_LENGTH:z40,MAX_LENGTH:Z40}=$7(),q40=B7();q1=cP.exports={};var X40=q1.re=[],Q40=q1.safeRe=[],B0=q1.src=[],W40=q1.safeSrc=[],z0=q1.t={},Y40=0,rZ="[a-zA-Z0-9-]",J40=[["\\s",1],["\\d",Z40],[rZ,z40]],G40=(u)=>{for(let[D,F]of J40)u=u.split(`${D}*`).join(`${D}{0,${F}}`).split(`${D}+`).join(`${D}{1,${F}}`);return u},j0=(u,D,F)=>{let $=G40(D),B=Y40++;q40(u,B,D),z0[u]=B,B0[B]=D,W40[B]=$,X40[B]=new RegExp(D,F?"g":void 0),Q40[B]=new RegExp($,F?"g":void 0)};j0("NUMERICIDENTIFIER","0|[1-9]\\d*");j0("NUMERICIDENTIFIERLOOSE","\\d+");j0("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${rZ}*`);j0("MAINVERSION",`(${B0[z0.NUMERICIDENTIFIER]})\\.(${B0[z0.NUMERICIDENTIFIER]})\\.(${B0[z0.NUMERICIDENTIFIER]})`);j0("MAINVERSIONLOOSE",`(${B0[z0.NUMERICIDENTIFIERLOOSE]})\\.(${B0[z0.NUMERICIDENTIFIERLOOSE]})\\.(${B0[z0.NUMERICIDENTIFIERLOOSE]})`);j0("PRERELEASEIDENTIFIER",`(?:${B0[z0.NONNUMERICIDENTIFIER]}|${B0[z0.NUMERICIDENTIFIER]})`);j0("PRERELEASEIDENTIFIERLOOSE",`(?:${B0[z0.NONNUMERICIDENTIFIER]}|${B0[z0.NUMERICIDENTIFIERLOOSE]})`);j0("PRERELEASE",`(?:-(${B0[z0.PRERELEASEIDENTIFIER]}(?:\\.${B0[z0.PRERELEASEIDENTIFIER]})*))`);j0("PRERELEASELOOSE",`(?:-?(${B0[z0.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${B0[z0.PRERELEASEIDENTIFIERLOOSE]})*))`);j0("BUILDIDENTIFIER",`${rZ}+`);j0("BUILD",`(?:\\+(${B0[z0.BUILDIDENTIFIER]}(?:\\.${B0[z0.BUILDIDENTIFIER]})*))`);j0("FULLPLAIN",`v?${B0[z0.MAINVERSION]}${B0[z0.PRERELEASE]}?${B0[z0.BUILD]}?`);j0("FULL",`^${B0[z0.FULLPLAIN]}$`);j0("LOOSEPLAIN",`[v=\\s]*${B0[z0.MAINVERSIONLOOSE]}${B0[z0.PRERELEASELOOSE]}?${B0[z0.BUILD]}?`);j0("LOOSE",`^${B0[z0.LOOSEPLAIN]}$`);j0("GTLT","((?:<|>)?=?)");j0("XRANGEIDENTIFIERLOOSE",`${B0[z0.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);j0("XRANGEIDENTIFIER",`${B0[z0.NUMERICIDENTIFIER]}|x|X|\\*`);j0("XRANGEPLAIN",`[v=\\s]*(${B0[z0.XRANGEIDENTIFIER]})(?:\\.(${B0[z0.XRANGEIDENTIFIER]})(?:\\.(${B0[z0.XRANGEIDENTIFIER]})(?:${B0[z0.PRERELEASE]})?${B0[z0.BUILD]}?)?)?`);j0("XRANGEPLAINLOOSE",`[v=\\s]*(${B0[z0.XRANGEIDENTIFIERLOOSE]})(?:\\.(${B0[z0.XRANGEIDENTIFIERLOOSE]})(?:\\.(${B0[z0.XRANGEIDENTIFIERLOOSE]})(?:${B0[z0.PRERELEASELOOSE]})?${B0[z0.BUILD]}?)?)?`);j0("XRANGE",`^${B0[z0.GTLT]}\\s*${B0[z0.XRANGEPLAIN]}$`);j0("XRANGELOOSE",`^${B0[z0.GTLT]}\\s*${B0[z0.XRANGEPLAINLOOSE]}$`);j0("COERCEPLAIN",`(^|[^\\d])(\\d{1,${sZ}})(?:\\.(\\d{1,${sZ}}))?(?:\\.(\\d{1,${sZ}}))?`);j0("COERCE",`${B0[z0.COERCEPLAIN]}(?:$|[^\\d])`);j0("COERCEFULL",B0[z0.COERCEPLAIN]+`(?:${B0[z0.PRERELEASE]})?(?:${B0[z0.BUILD]})?(?:$|[^\\d])`);j0("COERCERTL",B0[z0.COERCE],!0);j0("COERCERTLFULL",B0[z0.COERCEFULL],!0);j0("LONETILDE","(?:~>?)");j0("TILDETRIM",`(\\s*)${B0[z0.LONETILDE]}\\s+`,!0);q1.tildeTrimReplace="$1~";j0("TILDE",`^${B0[z0.LONETILDE]}${B0[z0.XRANGEPLAIN]}$`);j0("TILDELOOSE",`^${B0[z0.LONETILDE]}${B0[z0.XRANGEPLAINLOOSE]}$`);j0("LONECARET","(?:\\^)");j0("CARETTRIM",`(\\s*)${B0[z0.LONECARET]}\\s+`,!0);q1.caretTrimReplace="$1^";j0("CARET",`^${B0[z0.LONECARET]}${B0[z0.XRANGEPLAIN]}$`);j0("CARETLOOSE",`^${B0[z0.LONECARET]}${B0[z0.XRANGEPLAINLOOSE]}$`);j0("COMPARATORLOOSE",`^${B0[z0.GTLT]}\\s*(${B0[z0.LOOSEPLAIN]})$|^$`);j0("COMPARATOR",`^${B0[z0.GTLT]}\\s*(${B0[z0.FULLPLAIN]})$|^$`);j0("COMPARATORTRIM",`(\\s*)${B0[z0.GTLT]}\\s*(${B0[z0.LOOSEPLAIN]}|${B0[z0.XRANGEPLAIN]})`,!0);q1.comparatorTrimReplace="$1$2$3";j0("HYPHENRANGE",`^\\s*(${B0[z0.XRANGEPLAIN]})\\s+-\\s+(${B0[z0.XRANGEPLAIN]})\\s*$`);j0("HYPHENRANGELOOSE",`^\\s*(${B0[z0.XRANGEPLAINLOOSE]})\\s+-\\s+(${B0[z0.XRANGEPLAINLOOSE]})\\s*$`);j0("STAR","(<|>)?=?\\s*\\*");j0("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");j0("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var V3=V((FH0,mP)=>{var K40=Object.freeze({loose:!0}),H40=Object.freeze({}),f40=(u)=>{if(!u)return H40;if(typeof u!=="object")return K40;return u};mP.exports=f40});var aZ=V(($H0,lP)=>{var nP=/^[0-9]+$/,pP=(u,D)=>{if(typeof u==="number"&&typeof D==="number")return u===D?0:u<D?-1:1;let F=nP.test(u),$=nP.test(D);if(F&&$)u=+u,D=+D;return u===D?0:F&&!$?-1:$&&!F?1:u<D?-1:1},V40=(u,D)=>pP(D,u);lP.exports={compareIdentifiers:pP,rcompareIdentifiers:V40}});var Uu=V((BH0,dP)=>{var L3=B7(),{MAX_LENGTH:gP,MAX_SAFE_INTEGER:M3}=$7(),{safeRe:x3,t:O3}=Y8(),L40=V3(),{compareIdentifiers:tZ}=aZ();class sD{constructor(u,D){if(D=L40(D),u instanceof sD)if(u.loose===!!D.loose&&u.includePrerelease===!!D.includePrerelease)return u;else u=u.version;else if(typeof u!=="string")throw TypeError(`Invalid version. Must be a string. Got type "${typeof u}".`);if(u.length>gP)throw TypeError(`version is longer than ${gP} characters`);L3("SemVer",u,D),this.options=D,this.loose=!!D.loose,this.includePrerelease=!!D.includePrerelease;let F=u.trim().match(D.loose?x3[O3.LOOSE]:x3[O3.FULL]);if(!F)throw TypeError(`Invalid Version: ${u}`);if(this.raw=u,this.major=+F[1],this.minor=+F[2],this.patch=+F[3],this.major>M3||this.major<0)throw TypeError("Invalid major version");if(this.minor>M3||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>M3||this.patch<0)throw TypeError("Invalid patch version");if(!F[4])this.prerelease=[];else this.prerelease=F[4].split(".").map(($)=>{if(/^[0-9]+$/.test($)){let B=+$;if(B>=0&&B<M3)return B}return $});this.build=F[5]?F[5].split("."):[],this.format()}format(){if(this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length)this.version+=`-${this.prerelease.join(".")}`;return this.version}toString(){return this.version}compare(u){if(L3("SemVer.compare",this.version,this.options,u),!(u instanceof sD)){if(typeof u==="string"&&u===this.version)return 0;u=new sD(u,this.options)}if(u.version===this.version)return 0;return this.compareMain(u)||this.comparePre(u)}compareMain(u){if(!(u instanceof sD))u=new sD(u,this.options);if(this.major<u.major)return-1;if(this.major>u.major)return 1;if(this.minor<u.minor)return-1;if(this.minor>u.minor)return 1;if(this.patch<u.patch)return-1;if(this.patch>u.patch)return 1;return 0}comparePre(u){if(!(u instanceof sD))u=new sD(u,this.options);if(this.prerelease.length&&!u.prerelease.length)return-1;else if(!this.prerelease.length&&u.prerelease.length)return 1;else if(!this.prerelease.length&&!u.prerelease.length)return 0;let D=0;do{let F=this.prerelease[D],$=u.prerelease[D];if(L3("prerelease compare",D,F,$),F===void 0&&$===void 0)return 0;else if($===void 0)return 1;else if(F===void 0)return-1;else if(F===$)continue;else return tZ(F,$)}while(++D)}compareBuild(u){if(!(u instanceof sD))u=new sD(u,this.options);let D=0;do{let F=this.build[D],$=u.build[D];if(L3("build compare",D,F,$),F===void 0&&$===void 0)return 0;else if($===void 0)return 1;else if(F===void 0)return-1;else if(F===$)continue;else return tZ(F,$)}while(++D)}inc(u,D,F){if(u.startsWith("pre")){if(!D&&F===!1)throw Error("invalid increment argument: identifier is empty");if(D){let $=`-${D}`.match(this.options.loose?x3[O3.PRERELEASELOOSE]:x3[O3.PRERELEASE]);if(!$||$[1]!==D)throw Error(`invalid identifier: ${D}`)}}switch(u){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",D,F);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",D,F);break;case"prepatch":this.prerelease.length=0,this.inc("patch",D,F),this.inc("pre",D,F);break;case"prerelease":if(this.prerelease.length===0)this.inc("patch",D,F);this.inc("pre",D,F);break;case"release":if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0)this.major++;this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0)this.minor++;this.patch=0,this.prerelease=[];break;case"patch":if(this.prerelease.length===0)this.patch++;this.prerelease=[];break;case"pre":{let $=Number(F)?1:0;if(this.prerelease.length===0)this.prerelease=[$];else{let B=this.prerelease.length;while(--B>=0)if(typeof this.prerelease[B]==="number")this.prerelease[B]++,B=-2;if(B===-1){if(D===this.prerelease.join(".")&&F===!1)throw Error("invalid increment argument: identifier already exists");this.prerelease.push($)}}if(D){let B=[D,$];if(F===!1)B=[D];if(tZ(this.prerelease[0],D)===0){if(isNaN(this.prerelease[1]))this.prerelease=B}else this.prerelease=B}break}default:throw Error(`invalid increment argument: ${u}`)}if(this.raw=this.format(),this.build.length)this.raw+=`+${this.build.join(".")}`;return this}}dP.exports=sD});var D6=V((zH0,sP)=>{var oP=Uu(),M40=(u,D,F=!1)=>{if(u instanceof oP)return u;try{return new oP(u,D)}catch($){if(!F)return null;throw $}};sP.exports=M40});var aP=V((ZH0,rP)=>{var x40=D6(),O40=(u,D)=>{let F=x40(u,D);return F?F.version:null};rP.exports=O40});var eP=V((qH0,tP)=>{var A40=D6(),w40=(u,D)=>{let F=A40(u.trim().replace(/^[=v]+/,""),D);return F?F.version:null};tP.exports=w40});var FC=V((XH0,DC)=>{var uC=Uu(),N40=(u,D,F,$,B)=>{if(typeof F==="string")B=$,$=F,F=void 0;try{return new uC(u instanceof uC?u.version:u,F).inc(D,$,B).version}catch(z){return null}};DC.exports=N40});var zC=V((QH0,BC)=>{var $C=D6(),j40=(u,D)=>{let F=$C(u,null,!0),$=$C(D,null,!0),B=F.compare($);if(B===0)return null;let z=B>0,Z=z?F:$,q=z?$:F,X=!!Z.prerelease.length;if(!!q.prerelease.length&&!X){if(!q.patch&&!q.minor)return"major";if(q.compareMain(Z)===0){if(q.minor&&!q.patch)return"minor";return"patch"}}let W=X?"pre":"";if(F.major!==$.major)return W+"major";if(F.minor!==$.minor)return W+"minor";if(F.patch!==$.patch)return W+"patch";return"prerelease"};BC.exports=j40});var qC=V((WH0,ZC)=>{var I40=Uu(),E40=(u,D)=>new I40(u,D).major;ZC.exports=E40});var QC=V((YH0,XC)=>{var P40=Uu(),C40=(u,D)=>new P40(u,D).minor;XC.exports=C40});var YC=V((JH0,WC)=>{var _40=Uu(),U40=(u,D)=>new _40(u,D).patch;WC.exports=U40});var GC=V((GH0,JC)=>{var i40=D6(),v40=(u,D)=>{let F=i40(u,D);return F&&F.prerelease.length?F.prerelease:null};JC.exports=v40});var jD=V((KH0,HC)=>{var KC=Uu(),S40=(u,D,F)=>new KC(u,F).compare(new KC(D,F));HC.exports=S40});var VC=V((HH0,fC)=>{var T40=jD(),y40=(u,D,F)=>T40(D,u,F);fC.exports=y40});var MC=V((fH0,LC)=>{var b40=jD(),R40=(u,D)=>b40(u,D,!0);LC.exports=R40});var A3=V((VH0,OC)=>{var xC=Uu(),k40=(u,D,F)=>{let $=new xC(u,F),B=new xC(D,F);return $.compare(B)||$.compareBuild(B)};OC.exports=k40});var wC=V((LH0,AC)=>{var h40=A3(),c40=(u,D)=>u.sort((F,$)=>h40(F,$,D));AC.exports=c40});var jC=V((MH0,NC)=>{var m40=A3(),n40=(u,D)=>u.sort((F,$)=>m40($,F,D));NC.exports=n40});var z7=V((xH0,IC)=>{var p40=jD(),l40=(u,D,F)=>p40(u,D,F)>0;IC.exports=l40});var w3=V((OH0,EC)=>{var g40=jD(),d40=(u,D,F)=>g40(u,D,F)<0;EC.exports=d40});var eZ=V((AH0,PC)=>{var o40=jD(),s40=(u,D,F)=>o40(u,D,F)===0;PC.exports=s40});var uq=V((wH0,CC)=>{var r40=jD(),a40=(u,D,F)=>r40(u,D,F)!==0;CC.exports=a40});var N3=V((NH0,_C)=>{var t40=jD(),e40=(u,D,F)=>t40(u,D,F)>=0;_C.exports=e40});var j3=V((jH0,UC)=>{var u70=jD(),D70=(u,D,F)=>u70(u,D,F)<=0;UC.exports=D70});var Dq=V((IH0,iC)=>{var F70=eZ(),$70=uq(),B70=z7(),z70=N3(),Z70=w3(),q70=j3(),X70=(u,D,F,$)=>{switch(D){case"===":if(typeof u==="object")u=u.version;if(typeof F==="object")F=F.version;return u===F;case"!==":if(typeof u==="object")u=u.version;if(typeof F==="object")F=F.version;return u!==F;case"":case"=":case"==":return F70(u,F,$);case"!=":return $70(u,F,$);case">":return B70(u,F,$);case">=":return z70(u,F,$);case"<":return Z70(u,F,$);case"<=":return q70(u,F,$);default:throw TypeError(`Invalid operator: ${D}`)}};iC.exports=X70});var SC=V((EH0,vC)=>{var Q70=Uu(),W70=D6(),{safeRe:I3,t:E3}=Y8(),Y70=(u,D)=>{if(u instanceof Q70)return u;if(typeof u==="number")u=String(u);if(typeof u!=="string")return null;D=D||{};let F=null;if(!D.rtl)F=u.match(D.includePrerelease?I3[E3.COERCEFULL]:I3[E3.COERCE]);else{let X=D.includePrerelease?I3[E3.COERCERTLFULL]:I3[E3.COERCERTL],Q;while((Q=X.exec(u))&&(!F||F.index+F[0].length!==u.length)){if(!F||Q.index+Q[0].length!==F.index+F[0].length)F=Q;X.lastIndex=Q.index+Q[1].length+Q[2].length}X.lastIndex=-1}if(F===null)return null;let $=F[2],B=F[3]||"0",z=F[4]||"0",Z=D.includePrerelease&&F[5]?`-${F[5]}`:"",q=D.includePrerelease&&F[6]?`+${F[6]}`:"";return W70(`${$}.${B}.${z}${Z}${q}`,D)};vC.exports=Y70});var bC=V((PH0,yC)=>{class TC{constructor(){this.max=1000,this.map=new Map}get(u){let D=this.map.get(u);if(D===void 0)return;else return this.map.delete(u),this.map.set(u,D),D}delete(u){return this.map.delete(u)}set(u,D){if(!this.delete(u)&&D!==void 0){if(this.map.size>=this.max){let $=this.map.keys().next().value;this.delete($)}this.map.set(u,D)}return this}}yC.exports=TC});var ID=V((CH0,cC)=>{var J70=/\s+/g;class Z7{constructor(u,D){if(D=K70(D),u instanceof Z7)if(u.loose===!!D.loose&&u.includePrerelease===!!D.includePrerelease)return u;else return new Z7(u.raw,D);if(u instanceof Fq)return this.raw=u.value,this.set=[[u]],this.formatted=void 0,this;if(this.options=D,this.loose=!!D.loose,this.includePrerelease=!!D.includePrerelease,this.raw=u.trim().replace(J70," "),this.set=this.raw.split("||").map((F)=>this.parseRange(F.trim())).filter((F)=>F.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let F=this.set[0];if(this.set=this.set.filter(($)=>!kC($[0])),this.set.length===0)this.set=[F];else if(this.set.length>1){for(let $ of this.set)if($.length===1&&O70($[0])){this.set=[$];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let u=0;u<this.set.length;u++){if(u>0)this.formatted+="||";let D=this.set[u];for(let F=0;F<D.length;F++){if(F>0)this.formatted+=" ";this.formatted+=D[F].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(u){let F=((this.options.includePrerelease&&M70)|(this.options.loose&&x70))+":"+u,$=RC.get(F);if($)return $;let B=this.options.loose,z=B?pu[iu.HYPHENRANGELOOSE]:pu[iu.HYPHENRANGE];u=u.replace(z,U70(this.options.includePrerelease)),o0("hyphen replace",u),u=u.replace(pu[iu.COMPARATORTRIM],f70),o0("comparator trim",u),u=u.replace(pu[iu.TILDETRIM],V70),o0("tilde trim",u),u=u.replace(pu[iu.CARETTRIM],L70),o0("caret trim",u);let Z=u.split(" ").map((W)=>A70(W,this.options)).join(" ").split(/\s+/).map((W)=>_70(W,this.options));if(B)Z=Z.filter((W)=>{return o0("loose invalid filter",W,this.options),!!W.match(pu[iu.COMPARATORLOOSE])});o0("range list",Z);let q=new Map,X=Z.map((W)=>new Fq(W,this.options));for(let W of X){if(kC(W))return[W];q.set(W.value,W)}if(q.size>1&&q.has(""))q.delete("");let Q=[...q.values()];return RC.set(F,Q),Q}intersects(u,D){if(!(u instanceof Z7))throw TypeError("a Range is required");return this.set.some((F)=>{return hC(F,D)&&u.set.some(($)=>{return hC($,D)&&F.every((B)=>{return $.every((z)=>{return B.intersects(z,D)})})})})}test(u){if(!u)return!1;if(typeof u==="string")try{u=new H70(u,this.options)}catch(D){return!1}for(let D=0;D<this.set.length;D++)if(i70(this.set[D],u,this.options))return!0;return!1}}cC.exports=Z7;var G70=bC(),RC=new G70,K70=V3(),Fq=q7(),o0=B7(),H70=Uu(),{safeRe:pu,t:iu,comparatorTrimReplace:f70,tildeTrimReplace:V70,caretTrimReplace:L70}=Y8(),{FLAG_INCLUDE_PRERELEASE:M70,FLAG_LOOSE:x70}=$7(),kC=(u)=>u.value==="<0.0.0-0",O70=(u)=>u.value==="",hC=(u,D)=>{let F=!0,$=u.slice(),B=$.pop();while(F&&$.length)F=$.every((z)=>{return B.intersects(z,D)}),B=$.pop();return F},A70=(u,D)=>{return u=u.replace(pu[iu.BUILD],""),o0("comp",u,D),u=j70(u,D),o0("caret",u),u=w70(u,D),o0("tildes",u),u=E70(u,D),o0("xrange",u),u=C70(u,D),o0("stars",u),u},lu=(u)=>!u||u.toLowerCase()==="x"||u==="*",w70=(u,D)=>{return u.trim().split(/\s+/).map((F)=>N70(F,D)).join(" ")},N70=(u,D)=>{let F=D.loose?pu[iu.TILDELOOSE]:pu[iu.TILDE];return u.replace(F,($,B,z,Z,q)=>{o0("tilde",u,$,B,z,Z,q);let X;if(lu(B))X="";else if(lu(z))X=`>=${B}.0.0 <${+B+1}.0.0-0`;else if(lu(Z))X=`>=${B}.${z}.0 <${B}.${+z+1}.0-0`;else if(q)o0("replaceTilde pr",q),X=`>=${B}.${z}.${Z}-${q} <${B}.${+z+1}.0-0`;else X=`>=${B}.${z}.${Z} <${B}.${+z+1}.0-0`;return o0("tilde return",X),X})},j70=(u,D)=>{return u.trim().split(/\s+/).map((F)=>I70(F,D)).join(" ")},I70=(u,D)=>{o0("caret",u,D);let F=D.loose?pu[iu.CARETLOOSE]:pu[iu.CARET],$=D.includePrerelease?"-0":"";return u.replace(F,(B,z,Z,q,X)=>{o0("caret",u,B,z,Z,q,X);let Q;if(lu(z))Q="";else if(lu(Z))Q=`>=${z}.0.0${$} <${+z+1}.0.0-0`;else if(lu(q))if(z==="0")Q=`>=${z}.${Z}.0${$} <${z}.${+Z+1}.0-0`;else Q=`>=${z}.${Z}.0${$} <${+z+1}.0.0-0`;else if(X)if(o0("replaceCaret pr",X),z==="0")if(Z==="0")Q=`>=${z}.${Z}.${q}-${X} <${z}.${Z}.${+q+1}-0`;else Q=`>=${z}.${Z}.${q}-${X} <${z}.${+Z+1}.0-0`;else Q=`>=${z}.${Z}.${q}-${X} <${+z+1}.0.0-0`;else if(o0("no pr"),z==="0")if(Z==="0")Q=`>=${z}.${Z}.${q}${$} <${z}.${Z}.${+q+1}-0`;else Q=`>=${z}.${Z}.${q}${$} <${z}.${+Z+1}.0-0`;else Q=`>=${z}.${Z}.${q} <${+z+1}.0.0-0`;return o0("caret return",Q),Q})},E70=(u,D)=>{return o0("replaceXRanges",u,D),u.split(/\s+/).map((F)=>P70(F,D)).join(" ")},P70=(u,D)=>{u=u.trim();let F=D.loose?pu[iu.XRANGELOOSE]:pu[iu.XRANGE];return u.replace(F,($,B,z,Z,q,X)=>{o0("xRange",u,$,B,z,Z,q,X);let Q=lu(z),W=Q||lu(Z),Y=W||lu(q),J=Y;if(B==="="&&J)B="";if(X=D.includePrerelease?"-0":"",Q)if(B===">"||B==="<")$="<0.0.0-0";else $="*";else if(B&&J){if(W)Z=0;if(q=0,B===">")if(B=">=",W)z=+z+1,Z=0,q=0;else Z=+Z+1,q=0;else if(B==="<=")if(B="<",W)z=+z+1;else Z=+Z+1;if(B==="<")X="-0";$=`${B+z}.${Z}.${q}${X}`}else if(W)$=`>=${z}.0.0${X} <${+z+1}.0.0-0`;else if(Y)$=`>=${z}.${Z}.0${X} <${z}.${+Z+1}.0-0`;return o0("xRange return",$),$})},C70=(u,D)=>{return o0("replaceStars",u,D),u.trim().replace(pu[iu.STAR],"")},_70=(u,D)=>{return o0("replaceGTE0",u,D),u.trim().replace(pu[D.includePrerelease?iu.GTE0PRE:iu.GTE0],"")},U70=(u)=>(D,F,$,B,z,Z,q,X,Q,W,Y,J)=>{if(lu($))F="";else if(lu(B))F=`>=${$}.0.0${u?"-0":""}`;else if(lu(z))F=`>=${$}.${B}.0${u?"-0":""}`;else if(Z)F=`>=${F}`;else F=`>=${F}${u?"-0":""}`;if(lu(Q))X="";else if(lu(W))X=`<${+Q+1}.0.0-0`;else if(lu(Y))X=`<${Q}.${+W+1}.0-0`;else if(J)X=`<=${Q}.${W}.${Y}-${J}`;else if(u)X=`<${Q}.${W}.${+Y+1}-0`;else X=`<=${X}`;return`${F} ${X}`.trim()},i70=(u,D,F)=>{for(let $=0;$<u.length;$++)if(!u[$].test(D))return!1;if(D.prerelease.length&&!F.includePrerelease){for(let $=0;$<u.length;$++){if(o0(u[$].semver),u[$].semver===Fq.ANY)continue;if(u[$].semver.prerelease.length>0){let B=u[$].semver;if(B.major===D.major&&B.minor===D.minor&&B.patch===D.patch)return!0}}return!1}return!0}});var q7=V((_H0,dC)=>{var X7=Symbol("SemVer ANY");class P3{static get ANY(){return X7}constructor(u,D){if(D=mC(D),u instanceof P3)if(u.loose===!!D.loose)return u;else u=u.value;if(u=u.trim().split(/\s+/).join(" "),Bq("comparator",u,D),this.options=D,this.loose=!!D.loose,this.parse(u),this.semver===X7)this.value="";else this.value=this.operator+this.semver.version;Bq("comp",this)}parse(u){let D=this.options.loose?nC[pC.COMPARATORLOOSE]:nC[pC.COMPARATOR],F=u.match(D);if(!F)throw TypeError(`Invalid comparator: ${u}`);if(this.operator=F[1]!==void 0?F[1]:"",this.operator==="=")this.operator="";if(!F[2])this.semver=X7;else this.semver=new lC(F[2],this.options.loose)}toString(){return this.value}test(u){if(Bq("Comparator.test",u,this.options.loose),this.semver===X7||u===X7)return!0;if(typeof u==="string")try{u=new lC(u,this.options)}catch(D){return!1}return $q(u,this.operator,this.semver,this.options)}intersects(u,D){if(!(u instanceof P3))throw TypeError("a Comparator is required");if(this.operator===""){if(this.value==="")return!0;return new gC(u.value,D).test(this.value)}else if(u.operator===""){if(u.value==="")return!0;return new gC(this.value,D).test(u.semver)}if(D=mC(D),D.includePrerelease&&(this.value==="<0.0.0-0"||u.value==="<0.0.0-0"))return!1;if(!D.includePrerelease&&(this.value.startsWith("<0.0.0")||u.value.startsWith("<0.0.0")))return!1;if(this.operator.startsWith(">")&&u.operator.startsWith(">"))return!0;if(this.operator.startsWith("<")&&u.operator.startsWith("<"))return!0;if(this.semver.version===u.semver.version&&this.operator.includes("=")&&u.operator.includes("="))return!0;if($q(this.semver,"<",u.semver,D)&&this.operator.startsWith(">")&&u.operator.startsWith("<"))return!0;if($q(this.semver,">",u.semver,D)&&this.operator.startsWith("<")&&u.operator.startsWith(">"))return!0;return!1}}dC.exports=P3;var mC=V3(),{safeRe:nC,t:pC}=Y8(),$q=Dq(),Bq=B7(),lC=Uu(),gC=ID()});var Q7=V((UH0,oC)=>{var v70=ID(),S70=(u,D,F)=>{try{D=new v70(D,F)}catch($){return!1}return D.test(u)};oC.exports=S70});var rC=V((iH0,sC)=>{var T70=ID(),y70=(u,D)=>new T70(u,D).set.map((F)=>F.map(($)=>$.value).join(" ").trim().split(" "));sC.exports=y70});var tC=V((vH0,aC)=>{var b70=Uu(),R70=ID(),k70=(u,D,F)=>{let $=null,B=null,z=null;try{z=new R70(D,F)}catch(Z){return null}return u.forEach((Z)=>{if(z.test(Z)){if(!$||B.compare(Z)===-1)$=Z,B=new b70($,F)}}),$};aC.exports=k70});var u_=V((SH0,eC)=>{var h70=Uu(),c70=ID(),m70=(u,D,F)=>{let $=null,B=null,z=null;try{z=new c70(D,F)}catch(Z){return null}return u.forEach((Z)=>{if(z.test(Z)){if(!$||B.compare(Z)===1)$=Z,B=new h70($,F)}}),$};eC.exports=m70});var $_=V((TH0,F_)=>{var zq=Uu(),n70=ID(),D_=z7(),p70=(u,D)=>{u=new n70(u,D);let F=new zq("0.0.0");if(u.test(F))return F;if(F=new zq("0.0.0-0"),u.test(F))return F;F=null;for(let $=0;$<u.set.length;++$){let B=u.set[$],z=null;if(B.forEach((Z)=>{let q=new zq(Z.semver.version);switch(Z.operator){case">":if(q.prerelease.length===0)q.patch++;else q.prerelease.push(0);q.raw=q.format();case"":case">=":if(!z||D_(q,z))z=q;break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${Z.operator}`)}}),z&&(!F||D_(F,z)))F=z}if(F&&u.test(F))return F;return null};F_.exports=p70});var z_=V((yH0,B_)=>{var l70=ID(),g70=(u,D)=>{try{return new l70(u,D).range||"*"}catch(F){return null}};B_.exports=g70});var C3=V((bH0,Q_)=>{var d70=Uu(),X_=q7(),{ANY:o70}=X_,s70=ID(),r70=Q7(),Z_=z7(),q_=w3(),a70=j3(),t70=N3(),e70=(u,D,F,$)=>{u=new d70(u,$),D=new s70(D,$);let B,z,Z,q,X;switch(F){case">":B=Z_,z=a70,Z=q_,q=">",X=">=";break;case"<":B=q_,z=t70,Z=Z_,q="<",X="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(r70(u,D,$))return!1;for(let Q=0;Q<D.set.length;++Q){let W=D.set[Q],Y=null,J=null;if(W.forEach((G)=>{if(G.semver===o70)G=new X_(">=0.0.0");if(Y=Y||G,J=J||G,B(G.semver,Y.semver,$))Y=G;else if(Z(G.semver,J.semver,$))J=G}),Y.operator===q||Y.operator===X)return!1;if((!J.operator||J.operator===q)&&z(u,J.semver))return!1;else if(J.operator===X&&Z(u,J.semver))return!1}return!0};Q_.exports=e70});var Y_=V((RH0,W_)=>{var u90=C3(),D90=(u,D,F)=>u90(u,D,">",F);W_.exports=D90});var G_=V((kH0,J_)=>{var F90=C3(),$90=(u,D,F)=>F90(u,D,"<",F);J_.exports=$90});var f_=V((hH0,H_)=>{var K_=ID(),B90=(u,D,F)=>{return u=new K_(u,F),D=new K_(D,F),u.intersects(D,F)};H_.exports=B90});var L_=V((cH0,V_)=>{var z90=Q7(),Z90=jD();V_.exports=(u,D,F)=>{let $=[],B=null,z=null,Z=u.sort((W,Y)=>Z90(W,Y,F));for(let W of Z)if(z90(W,D,F)){if(z=W,!B)B=W}else{if(z)$.push([B,z]);z=null,B=null}if(B)$.push([B,null]);let q=[];for(let[W,Y]of $)if(W===Y)q.push(W);else if(!Y&&W===Z[0])q.push("*");else if(!Y)q.push(`>=${W}`);else if(W===Z[0])q.push(`<=${Y}`);else q.push(`${W} - ${Y}`);let X=q.join(" || "),Q=typeof D.raw==="string"?D.raw:String(D);return X.length<Q.length?X:D}});var N_=V((mH0,w_)=>{var M_=ID(),qq=q7(),{ANY:Zq}=qq,W7=Q7(),Xq=jD(),q90=(u,D,F={})=>{if(u===D)return!0;u=new M_(u,F),D=new M_(D,F);let $=!1;u:for(let B of u.set){for(let z of D.set){let Z=Q90(B,z,F);if($=$||Z!==null,Z)continue u}if($)return!1}return!0},X90=[new qq(">=0.0.0-0")],x_=[new qq(">=0.0.0")],Q90=(u,D,F)=>{if(u===D)return!0;if(u.length===1&&u[0].semver===Zq)if(D.length===1&&D[0].semver===Zq)return!0;else if(F.includePrerelease)u=X90;else u=x_;if(D.length===1&&D[0].semver===Zq)if(F.includePrerelease)return!0;else D=x_;let $=new Set,B,z;for(let G of u)if(G.operator===">"||G.operator===">=")B=O_(B,G,F);else if(G.operator==="<"||G.operator==="<=")z=A_(z,G,F);else $.add(G.semver);if($.size>1)return null;let Z;if(B&&z){if(Z=Xq(B.semver,z.semver,F),Z>0)return null;else if(Z===0&&(B.operator!==">="||z.operator!=="<="))return null}for(let G of $){if(B&&!W7(G,String(B),F))return null;if(z&&!W7(G,String(z),F))return null;for(let K of D)if(!W7(G,String(K),F))return!1;return!0}let q,X,Q,W,Y=z&&!F.includePrerelease&&z.semver.prerelease.length?z.semver:!1,J=B&&!F.includePrerelease&&B.semver.prerelease.length?B.semver:!1;if(Y&&Y.prerelease.length===1&&z.operator==="<"&&Y.prerelease[0]===0)Y=!1;for(let G of D){if(W=W||G.operator===">"||G.operator===">=",Q=Q||G.operator==="<"||G.operator==="<=",B){if(J){if(G.semver.prerelease&&G.semver.prerelease.length&&G.semver.major===J.major&&G.semver.minor===J.minor&&G.semver.patch===J.patch)J=!1}if(G.operator===">"||G.operator===">="){if(q=O_(B,G,F),q===G&&q!==B)return!1}else if(B.operator===">="&&!W7(B.semver,String(G),F))return!1}if(z){if(Y){if(G.semver.prerelease&&G.semver.prerelease.length&&G.semver.major===Y.major&&G.semver.minor===Y.minor&&G.semver.patch===Y.patch)Y=!1}if(G.operator==="<"||G.operator==="<="){if(X=A_(z,G,F),X===G&&X!==z)return!1}else if(z.operator==="<="&&!W7(z.semver,String(G),F))return!1}if(!G.operator&&(z||B)&&Z!==0)return!1}if(B&&Q&&!z&&Z!==0)return!1;if(z&&W&&!B&&Z!==0)return!1;if(J||Y)return!1;return!0},O_=(u,D,F)=>{if(!u)return D;let $=Xq(u.semver,D.semver,F);return $>0?u:$<0?D:D.operator===">"&&u.operator===">="?D:u},A_=(u,D,F)=>{if(!u)return D;let $=Xq(u.semver,D.semver,F);return $<0?u:$>0?D:D.operator==="<"&&u.operator==="<="?D:u};w_.exports=q90});var P_=V((nH0,E_)=>{var Qq=Y8(),j_=$7(),W90=Uu(),I_=aZ(),Y90=D6(),J90=aP(),G90=eP(),K90=FC(),H90=zC(),f90=qC(),V90=QC(),L90=YC(),M90=GC(),x90=jD(),O90=VC(),A90=MC(),w90=A3(),N90=wC(),j90=jC(),I90=z7(),E90=w3(),P90=eZ(),C90=uq(),_90=N3(),U90=j3(),i90=Dq(),v90=SC(),S90=q7(),T90=ID(),y90=Q7(),b90=rC(),R90=tC(),k90=u_(),h90=$_(),c90=z_(),m90=C3(),n90=Y_(),p90=G_(),l90=f_(),g90=L_(),d90=N_();E_.exports={parse:Y90,valid:J90,clean:G90,inc:K90,diff:H90,major:f90,minor:V90,patch:L90,prerelease:M90,compare:x90,rcompare:O90,compareLoose:A90,compareBuild:w90,sort:N90,rsort:j90,gt:I90,lt:E90,eq:P90,neq:C90,gte:_90,lte:U90,cmp:i90,coerce:v90,Comparator:S90,Range:T90,satisfies:y90,toComparators:b90,maxSatisfying:R90,minSatisfying:k90,minVersion:h90,validRange:c90,outside:m90,gtr:n90,ltr:p90,intersects:l90,simplifyRange:g90,subset:d90,SemVer:W90,re:Qq.re,src:Qq.src,tokens:Qq.t,SEMVER_SPEC_VERSION:j_.SEMVER_SPEC_VERSION,RELEASE_TYPES:j_.RELEASE_TYPES,compareIdentifiers:I_.compareIdentifiers,rcompareIdentifiers:I_.rcompareIdentifiers}});var Sq=(u=0)=>(D)=>`\x1B[${D+u}m`,Tq=(u=0)=>(D)=>`\x1B[${38+u};5;${D}m`,yq=(u=0)=>(D,F,$)=>`\x1B[${38+u};2;${D};${F};${$}m`,s0={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},T50=Object.keys(s0.modifier),$U=Object.keys(s0.color),BU=Object.keys(s0.bgColor),y50=[...$U,...BU];function zU(){let u=new Map;for(let[D,F]of Object.entries(s0)){for(let[$,B]of Object.entries(F))s0[$]={open:`\x1B[${B[0]}m`,close:`\x1B[${B[1]}m`},F[$]=s0[$],u.set(B[0],B[1]);Object.defineProperty(s0,D,{value:F,enumerable:!1})}return Object.defineProperty(s0,"codes",{value:u,enumerable:!1}),s0.color.close="\x1B[39m",s0.bgColor.close="\x1B[49m",s0.color.ansi=Sq(),s0.color.ansi256=Tq(),s0.color.ansi16m=yq(),s0.bgColor.ansi=Sq(10),s0.bgColor.ansi256=Tq(10),s0.bgColor.ansi16m=yq(10),Object.defineProperties(s0,{rgbToAnsi256:{value(D,F,$){if(D===F&&F===$){if(D<8)return 16;if(D>248)return 231;return Math.round((D-8)/247*24)+232}return 16+36*Math.round(D/255*5)+6*Math.round(F/255*5)+Math.round($/255*5)},enumerable:!1},hexToRgb:{value(D){let F=/[a-f\d]{6}|[a-f\d]{3}/i.exec(D.toString(16));if(!F)return[0,0,0];let[$]=F;if($.length===3)$=[...$].map((z)=>z+z).join("");let B=Number.parseInt($,16);return[B>>16&255,B>>8&255,B&255]},enumerable:!1},hexToAnsi256:{value:(D)=>s0.rgbToAnsi256(...s0.hexToRgb(D)),enumerable:!1},ansi256ToAnsi:{value(D){if(D<8)return 30+D;if(D<16)return 90+(D-8);let F,$,B;if(D>=232)F=((D-232)*10+8)/255,$=F,B=F;else{D-=16;let q=D%36;F=Math.floor(D/36)/5,$=Math.floor(q/6)/5,B=q%6/5}let z=Math.max(F,$,B)*2;if(z===0)return 30;let Z=30+(Math.round(B)<<2|Math.round($)<<1|Math.round(F));if(z===2)Z+=60;return Z},enumerable:!1},rgbToAnsi:{value:(D,F,$)=>s0.ansi256ToAnsi(s0.rgbToAnsi256(D,F,$)),enumerable:!1},hexToAnsi:{value:(D)=>s0.ansi256ToAnsi(s0.hexToAnsi256(D)),enumerable:!1}}),s0}var ZU=zU(),iD=ZU;import m3 from"node:process";import qU from"node:os";import bq from"node:tty";function GD(u,D=globalThis.Deno?globalThis.Deno.args:m3.argv){let F=u.startsWith("-")?"":u.length===1?"-":"--",$=D.indexOf(F+u),B=D.indexOf("--");return $!==-1&&(B===-1||$<B)}var{env:r0}=m3,O7;if(GD("no-color")||GD("no-colors")||GD("color=false")||GD("color=never"))O7=0;else if(GD("color")||GD("colors")||GD("color=true")||GD("color=always"))O7=1;function XU(){if("FORCE_COLOR"in r0){if(r0.FORCE_COLOR==="true")return 1;if(r0.FORCE_COLOR==="false")return 0;return r0.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(r0.FORCE_COLOR,10),3)}}function QU(u){if(u===0)return!1;return{level:u,hasBasic:!0,has256:u>=2,has16m:u>=3}}function WU(u,{streamIsTTY:D,sniffFlags:F=!0}={}){let $=XU();if($!==void 0)O7=$;let B=F?O7:$;if(B===0)return 0;if(F){if(GD("color=16m")||GD("color=full")||GD("color=truecolor"))return 3;if(GD("color=256"))return 2}if("TF_BUILD"in r0&&"AGENT_NAME"in r0)return 1;if(u&&!D&&B===void 0)return 0;let z=B||0;if(r0.TERM==="dumb")return z;if(m3.platform==="win32"){let Z=qU.release().split(".");if(Number(Z[0])>=10&&Number(Z[2])>=10586)return Number(Z[2])>=14931?3:2;return 1}if("CI"in r0){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((Z)=>(Z in r0)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((Z)=>(Z in r0))||r0.CI_NAME==="codeship")return 1;return z}if("TEAMCITY_VERSION"in r0)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(r0.TEAMCITY_VERSION)?1:0;if(r0.COLORTERM==="truecolor")return 3;if(r0.TERM==="xterm-kitty")return 3;if(r0.TERM==="xterm-ghostty")return 3;if(r0.TERM==="wezterm")return 3;if("TERM_PROGRAM"in r0){let Z=Number.parseInt((r0.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(r0.TERM_PROGRAM){case"iTerm.app":return Z>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(r0.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(r0.TERM))return 1;if("COLORTERM"in r0)return 1;return z}function Rq(u,D={}){let F=WU(u,{streamIsTTY:u&&u.isTTY,...D});return QU(F)}var YU={stdout:Rq({isTTY:bq.isatty(1)}),stderr:Rq({isTTY:bq.isatty(2)})},kq=YU;function hq(u,D,F){let $=u.indexOf(D);if($===-1)return u;let B=D.length,z=0,Z="";do Z+=u.slice(z,$)+D+F,z=$+B,$=u.indexOf(D,z);while($!==-1);return Z+=u.slice(z),Z}function cq(u,D,F,$){let B=0,z="";do{let Z=u[$-1]==="\r";z+=u.slice(B,Z?$-1:$)+D+(Z?`\r
|
|
88
|
+
`:`
|
|
89
|
+
`)+F,B=$+1,$=u.indexOf(`
|
|
90
|
+
`,B)}while($!==-1);return z+=u.slice(B),z}var{stdout:mq,stderr:nq}=kq,n3=Symbol("GENERATOR"),$6=Symbol("STYLER"),L8=Symbol("IS_EMPTY"),pq=["ansi","ansi","ansi256","ansi16m"],B6=Object.create(null),JU=(u,D={})=>{if(D.level&&!(Number.isInteger(D.level)&&D.level>=0&&D.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let F=mq?mq.level:0;u.level=D.level===void 0?F:D.level};var GU=(u)=>{let D=(...F)=>F.join(" ");return JU(D,u),Object.setPrototypeOf(D,M8.prototype),D};function M8(u){return GU(u)}Object.setPrototypeOf(M8.prototype,Function.prototype);for(let[u,D]of Object.entries(iD))B6[u]={get(){let F=A7(this,l3(D.open,D.close,this[$6]),this[L8]);return Object.defineProperty(this,u,{value:F}),F}};B6.visible={get(){let u=A7(this,this[$6],!0);return Object.defineProperty(this,"visible",{value:u}),u}};var p3=(u,D,F,...$)=>{if(u==="rgb"){if(D==="ansi16m")return iD[F].ansi16m(...$);if(D==="ansi256")return iD[F].ansi256(iD.rgbToAnsi256(...$));return iD[F].ansi(iD.rgbToAnsi(...$))}if(u==="hex")return p3("rgb",D,F,...iD.hexToRgb(...$));return iD[F][u](...$)},KU=["rgb","hex","ansi256"];for(let u of KU){B6[u]={get(){let{level:F}=this;return function(...$){let B=l3(p3(u,pq[F],"color",...$),iD.color.close,this[$6]);return A7(this,B,this[L8])}}};let D="bg"+u[0].toUpperCase()+u.slice(1);B6[D]={get(){let{level:F}=this;return function(...$){let B=l3(p3(u,pq[F],"bgColor",...$),iD.bgColor.close,this[$6]);return A7(this,B,this[L8])}}}}var HU=Object.defineProperties(()=>{},{...B6,level:{enumerable:!0,get(){return this[n3].level},set(u){this[n3].level=u}}}),l3=(u,D,F)=>{let $,B;if(F===void 0)$=u,B=D;else $=F.openAll+u,B=D+F.closeAll;return{open:u,close:D,openAll:$,closeAll:B,parent:F}},A7=(u,D,F)=>{let $=(...B)=>fU($,B.length===1?""+B[0]:B.join(" "));return Object.setPrototypeOf($,HU),$[n3]=u,$[$6]=D,$[L8]=F,$},fU=(u,D)=>{if(u.level<=0||!D)return u[L8]?"":D;let F=u[$6];if(F===void 0)return D;let{openAll:$,closeAll:B}=F;if(D.includes("\x1B"))while(F!==void 0)D=hq(D,F.close,F.open),F=F.parent;let z=D.indexOf(`
|
|
91
|
+
`);if(z!==-1)D=cq(D,B,$,z);return $+D+B};Object.defineProperties(M8.prototype,B6);var VU=M8(),w7=M8({level:nq?nq.level:0});var C1=VU;var LU=/(?:\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.))|(?:{(~)?(#?[\w:]+(?:\([^)]*\))?(?:\.#?[\w:]+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(})|((?:.|[\r\n\f])+?)/gi,lq=/(?:^|\.)(?:(?:(\w+)(?:\(([^)]*)\))?)|(?:#(?=[:a-fA-F\d]{2,})([a-fA-F\d]{6})?(?::([a-fA-F\d]{6}))?))/g,MU=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,xU=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,OU=new Map([["n",`
|
|
92
|
+
`],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\x00"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function dq(u){let D=u[0]==="u",F=u[1]==="{";if(D&&!F&&u.length===5||u[0]==="x"&&u.length===3)return String.fromCodePoint(Number.parseInt(u.slice(1),16));if(D&&F)return String.fromCodePoint(Number.parseInt(u.slice(2,-1),16));return OU.get(u)||u}function AU(u,D){let F=[],$=D.trim().split(/\s*,\s*/g),B;for(let z of $){let Z=Number(z);if(!Number.isNaN(Z))F.push(Z);else if(B=z.match(MU))F.push(B[2].replace(xU,(q,X,Q)=>X?dq(X):Q));else throw Error(`Invalid Chalk template style argument: ${z} (in style '${u}')`)}return F}function gq(u){let D=Number.parseInt(u,16);return[D>>16&255,D>>8&255,D&255]}function wU(u){lq.lastIndex=0;let D=[],F;while((F=lq.exec(u))!==null){let $=F[1];if(F[2])D.push([$,...AU($,F[2])]);else if(F[3]||F[4]){if(F[3])D.push(["rgb",...gq(F[3])]);if(F[4])D.push(["bgRgb",...gq(F[4])])}else D.push([$])}return D}function oq(u){function D($){let B={};for(let Z of $)for(let q of Z.styles)B[q[0]]=Z.inverse?null:q.slice(1);let z=u;for(let[Z,q]of Object.entries(B)){if(!Array.isArray(q))continue;if(!(Z in z))throw Error(`Unknown Chalk style: ${Z}`);z=q.length>0?z[Z](...q):z[Z]}return z}function F($){let B=[],z=[],Z=[];if($.replace(LU,(q,X,Q,W,Y,J)=>{if(X)Z.push(dq(X));else if(W){let G=Z.join("");Z=[],z.push(B.length===0?G:D(B)(G)),B.push({inverse:Q,styles:wU(W)})}else if(Y){if(B.length===0)throw Error("Found extraneous } in Chalk template literal");z.push(D(B)(Z.join(""))),Z=[],B.pop()}else Z.push(J)}),z.push(Z.join("")),B.length>0)throw Error(`Chalk template literal is missing ${B.length} closing bracket${B.length===1?"":"s"} (\`}\`)`);return z.join("")}return F}function sq(u){function D(F,...$){if(!Array.isArray(F)||!Array.isArray(F.raw))throw TypeError("A tagged template literal must be provided");let B=[F.raw[0]];for(let z=1;z<F.raw.length;z++)B.push(String($[z-1]).replace(/[{}\\]/g,"\\$&"),String(F.raw[z]));return u(B.join(""))}return D}var NU=oq(C1),N7=sq(NU),jU=oq(w7),o50=sq(jU);import{notStrictEqual as Xi,strictEqual as Qi}from"assert";var IU={right:CU,center:_U};class aq{constructor(u){var D;this.width=u.width,this.wrap=(D=u.wrap)!==null&&D!==void 0?D:!0,this.rows=[]}span(...u){let D=this.div(...u);D.span=!0}resetOutput(){this.rows=[]}div(...u){if(u.length===0)this.div("");if(this.wrap&&this.shouldApplyLayoutDSL(...u)&&typeof u[0]==="string")return this.applyLayoutDSL(u[0]);let D=u.map((F)=>{if(typeof F==="string")return this.colFromString(F);return F});return this.rows.push(D),D}shouldApplyLayoutDSL(...u){return u.length===1&&typeof u[0]==="string"&&/[\t\n]/.test(u[0])}applyLayoutDSL(u){let D=u.split(`
|
|
93
|
+
`).map(($)=>$.split("\t")),F=0;return D.forEach(($)=>{if($.length>1&&BD.stringWidth($[0])>F)F=Math.min(Math.floor(this.width*0.5),BD.stringWidth($[0]))}),D.forEach(($)=>{this.div(...$.map((B,z)=>{return{text:B.trim(),padding:this.measurePadding(B),width:z===0&&$.length>1?F:void 0}}))}),this.rows[this.rows.length-1]}colFromString(u){return{text:u,padding:this.measurePadding(u)}}measurePadding(u){let D=BD.stripAnsi(u);return[0,D.match(/\s*$/)[0].length,0,D.match(/^\s*/)[0].length]}toString(){let u=[];return this.rows.forEach((D)=>{this.rowToString(D,u)}),u.filter((D)=>!D.hidden).map((D)=>D.text).join(`
|
|
94
|
+
`)}rowToString(u,D){return this.rasterize(u).forEach((F,$)=>{let B="";F.forEach((z,Z)=>{let{width:q}=u[Z],X=this.negatePadding(u[Z]),Q=z;if(X>BD.stringWidth(z))Q+=" ".repeat(X-BD.stringWidth(z));if(u[Z].align&&u[Z].align!=="left"&&this.wrap){let Y=IU[u[Z].align];if(Q=Y(Q,X),BD.stringWidth(Q)<X)Q+=" ".repeat((q||0)-BD.stringWidth(Q)-1)}let W=u[Z].padding||[0,0,0,0];if(W[3])B+=" ".repeat(W[3]);if(B+=rq(u[Z],Q,"| "),B+=Q,B+=rq(u[Z],Q," |"),W[1])B+=" ".repeat(W[1]);if($===0&&D.length>0)B=this.renderInline(B,D[D.length-1])}),D.push({text:B.replace(/ +$/,""),span:u.span})}),D}renderInline(u,D){let F=u.match(/^ */),$=F?F[0].length:0,B=D.text,z=BD.stringWidth(B.trimRight());if(!D.span)return u;if(!this.wrap)return D.hidden=!0,B+u;if($<z)return u;return D.hidden=!0,B.trimRight()+" ".repeat($-z)+u.trimLeft()}rasterize(u){let D=[],F=this.columnWidths(u),$;return u.forEach((B,z)=>{if(B.width=F[z],this.wrap)$=BD.wrap(B.text,this.negatePadding(B),{hard:!0}).split(`
|
|
95
|
+
`);else $=B.text.split(`
|
|
96
|
+
`);if(B.border)$.unshift("."+"-".repeat(this.negatePadding(B)+2)+"."),$.push("'"+"-".repeat(this.negatePadding(B)+2)+"'");if(B.padding)$.unshift(...Array(B.padding[0]||0).fill("")),$.push(...Array(B.padding[2]||0).fill(""));$.forEach((Z,q)=>{if(!D[q])D.push([]);let X=D[q];for(let Q=0;Q<z;Q++)if(X[Q]===void 0)X.push("");X.push(Z)})}),D}negatePadding(u){let D=u.width||0;if(u.padding)D-=(u.padding[3]||0)+(u.padding[1]||0);if(u.border)D-=4;return D}columnWidths(u){if(!this.wrap)return u.map((z)=>{return z.width||BD.stringWidth(z.text)});let D=u.length,F=this.width,$=u.map((z)=>{if(z.width)return D--,F-=z.width,z.width;return}),B=D?Math.floor(F/D):0;return $.map((z,Z)=>{if(z===void 0)return Math.max(B,EU(u[Z]));return z})}}function rq(u,D,F){if(u.border){if(/[.']-+[.']/.test(D))return"";if(D.trim().length!==0)return F;return" "}return""}function EU(u){let D=u.padding||[],F=1+(D[3]||0)+(D[1]||0);if(u.border)return F+4;return F}function PU(){if(typeof process==="object"&&process.stdout&&process.stdout.columns)return process.stdout.columns;return 80}function CU(u,D){u=u.trim();let F=BD.stringWidth(u);if(F<D)return" ".repeat(D-F)+u;return u}function _U(u,D){u=u.trim();let F=BD.stringWidth(u);if(F>=D)return u;return" ".repeat(D-F>>1)+u}var BD;function tq(u,D){return BD=D,new aq({width:(u===null||u===void 0?void 0:u.width)||PU(),wrap:u===null||u===void 0?void 0:u.wrap})}function g3({onlyFirst:u=!1}={}){return new RegExp("(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]",u?void 0:"g")}var UU=g3();function WF(u){if(typeof u!=="string")throw TypeError(`Expected a \`string\`, got \`${typeof u}\``);return u.replace(UU,"")}function eq(u){return u===161||u===164||u===167||u===168||u===170||u===173||u===174||u>=176&&u<=180||u>=182&&u<=186||u>=188&&u<=191||u===198||u===208||u===215||u===216||u>=222&&u<=225||u===230||u>=232&&u<=234||u===236||u===237||u===240||u===242||u===243||u>=247&&u<=250||u===252||u===254||u===257||u===273||u===275||u===283||u===294||u===295||u===299||u>=305&&u<=307||u===312||u>=319&&u<=322||u===324||u>=328&&u<=331||u===333||u===338||u===339||u===358||u===359||u===363||u===462||u===464||u===466||u===468||u===470||u===472||u===474||u===476||u===593||u===609||u===708||u===711||u>=713&&u<=715||u===717||u===720||u>=728&&u<=731||u===733||u===735||u>=768&&u<=879||u>=913&&u<=929||u>=931&&u<=937||u>=945&&u<=961||u>=963&&u<=969||u===1025||u>=1040&&u<=1103||u===1105||u===8208||u>=8211&&u<=8214||u===8216||u===8217||u===8220||u===8221||u>=8224&&u<=8226||u>=8228&&u<=8231||u===8240||u===8242||u===8243||u===8245||u===8251||u===8254||u===8308||u===8319||u>=8321&&u<=8324||u===8364||u===8451||u===8453||u===8457||u===8467||u===8470||u===8481||u===8482||u===8486||u===8491||u===8531||u===8532||u>=8539&&u<=8542||u>=8544&&u<=8555||u>=8560&&u<=8569||u===8585||u>=8592&&u<=8601||u===8632||u===8633||u===8658||u===8660||u===8679||u===8704||u===8706||u===8707||u===8711||u===8712||u===8715||u===8719||u===8721||u===8725||u===8730||u>=8733&&u<=8736||u===8739||u===8741||u>=8743&&u<=8748||u===8750||u>=8756&&u<=8759||u===8764||u===8765||u===8776||u===8780||u===8786||u===8800||u===8801||u>=8804&&u<=8807||u===8810||u===8811||u===8814||u===8815||u===8834||u===8835||u===8838||u===8839||u===8853||u===8857||u===8869||u===8895||u===8978||u>=9312&&u<=9449||u>=9451&&u<=9547||u>=9552&&u<=9587||u>=9600&&u<=9615||u>=9618&&u<=9621||u===9632||u===9633||u>=9635&&u<=9641||u===9650||u===9651||u===9654||u===9655||u===9660||u===9661||u===9664||u===9665||u>=9670&&u<=9672||u===9675||u>=9678&&u<=9681||u>=9698&&u<=9701||u===9711||u===9733||u===9734||u===9737||u===9742||u===9743||u===9756||u===9758||u===9792||u===9794||u===9824||u===9825||u>=9827&&u<=9829||u>=9831&&u<=9834||u===9836||u===9837||u===9839||u===9886||u===9887||u===9919||u>=9926&&u<=9933||u>=9935&&u<=9939||u>=9941&&u<=9953||u===9955||u===9960||u===9961||u>=9963&&u<=9969||u===9972||u>=9974&&u<=9977||u===9979||u===9980||u===9982||u===9983||u===10045||u>=10102&&u<=10111||u>=11094&&u<=11097||u>=12872&&u<=12879||u>=57344&&u<=63743||u>=65024&&u<=65039||u===65533||u>=127232&&u<=127242||u>=127248&&u<=127277||u>=127280&&u<=127337||u>=127344&&u<=127373||u===127375||u===127376||u>=127387&&u<=127404||u>=917760&&u<=917999||u>=983040&&u<=1048573||u>=1048576&&u<=1114109}function uX(u){return u===12288||u>=65281&&u<=65376||u>=65504&&u<=65510}function DX(u){return u>=4352&&u<=4447||u===8986||u===8987||u===9001||u===9002||u>=9193&&u<=9196||u===9200||u===9203||u===9725||u===9726||u===9748||u===9749||u>=9776&&u<=9783||u>=9800&&u<=9811||u===9855||u>=9866&&u<=9871||u===9875||u===9889||u===9898||u===9899||u===9917||u===9918||u===9924||u===9925||u===9934||u===9940||u===9962||u===9970||u===9971||u===9973||u===9978||u===9981||u===9989||u===9994||u===9995||u===10024||u===10060||u===10062||u>=10067&&u<=10069||u===10071||u>=10133&&u<=10135||u===10160||u===10175||u===11035||u===11036||u===11088||u===11093||u>=11904&&u<=11929||u>=11931&&u<=12019||u>=12032&&u<=12245||u>=12272&&u<=12287||u>=12289&&u<=12350||u>=12353&&u<=12438||u>=12441&&u<=12543||u>=12549&&u<=12591||u>=12593&&u<=12686||u>=12688&&u<=12773||u>=12783&&u<=12830||u>=12832&&u<=12871||u>=12880&&u<=42124||u>=42128&&u<=42182||u>=43360&&u<=43388||u>=44032&&u<=55203||u>=63744&&u<=64255||u>=65040&&u<=65049||u>=65072&&u<=65106||u>=65108&&u<=65126||u>=65128&&u<=65131||u>=94176&&u<=94180||u>=94192&&u<=94198||u>=94208&&u<=101589||u>=101631&&u<=101662||u>=101760&&u<=101874||u>=110576&&u<=110579||u>=110581&&u<=110587||u===110589||u===110590||u>=110592&&u<=110882||u===110898||u>=110928&&u<=110930||u===110933||u>=110948&&u<=110951||u>=110960&&u<=111355||u>=119552&&u<=119638||u>=119648&&u<=119670||u===126980||u===127183||u===127374||u>=127377&&u<=127386||u>=127488&&u<=127490||u>=127504&&u<=127547||u>=127552&&u<=127560||u===127568||u===127569||u>=127584&&u<=127589||u>=127744&&u<=127776||u>=127789&&u<=127797||u>=127799&&u<=127868||u>=127870&&u<=127891||u>=127904&&u<=127946||u>=127951&&u<=127955||u>=127968&&u<=127984||u===127988||u>=127992&&u<=128062||u===128064||u>=128066&&u<=128252||u>=128255&&u<=128317||u>=128331&&u<=128334||u>=128336&&u<=128359||u===128378||u===128405||u===128406||u===128420||u>=128507&&u<=128591||u>=128640&&u<=128709||u===128716||u>=128720&&u<=128722||u>=128725&&u<=128728||u>=128732&&u<=128735||u===128747||u===128748||u>=128756&&u<=128764||u>=128992&&u<=129003||u===129008||u>=129292&&u<=129338||u>=129340&&u<=129349||u>=129351&&u<=129535||u>=129648&&u<=129660||u>=129664&&u<=129674||u>=129678&&u<=129734||u===129736||u>=129741&&u<=129756||u>=129759&&u<=129770||u>=129775&&u<=129784||u>=131072&&u<=196605||u>=196608&&u<=262141}function iU(u){if(!Number.isSafeInteger(u))throw TypeError(`Expected a code point, got \`${typeof u}\`.`)}function FX(u,{ambiguousAsWide:D=!1}={}){if(iU(u),uX(u)||DX(u)||D&&eq(u))return 2;return 1}var zX=M0(BX(),1),vU=new Intl.Segmenter,SU=/^\p{Default_Ignorable_Code_Point}$/u;function vD(u,D={}){if(typeof u!=="string"||u.length===0)return 0;let{ambiguousIsNarrow:F=!0,countAnsiEscapeCodes:$=!1}=D;if(!$)u=WF(u);if(u.length===0)return 0;let B=0,z={ambiguousAsWide:!F};for(let{segment:Z}of vU.segment(u)){let q=Z.codePointAt(0);if(q<=31||q>=127&&q<=159)continue;if(q>=8203&&q<=8207||q===65279)continue;if(q>=768&&q<=879||q>=6832&&q<=6911||q>=7616&&q<=7679||q>=8400&&q<=8447||q>=65056&&q<=65071)continue;if(q>=55296&&q<=57343)continue;if(q>=65024&&q<=65039)continue;if(SU.test(Z))continue;if(zX.default().test(Z)){B+=2;continue}B+=FX(q,z)}return B}var ZX=(u=0)=>(D)=>`\x1B[${D+u}m`,qX=(u=0)=>(D)=>`\x1B[${38+u};5;${D}m`,XX=(u=0)=>(D,F,$)=>`\x1B[${38+u};2;${D};${F};${$}m`,a0={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},X30=Object.keys(a0.modifier),TU=Object.keys(a0.color),yU=Object.keys(a0.bgColor),Q30=[...TU,...yU];function bU(){let u=new Map;for(let[D,F]of Object.entries(a0)){for(let[$,B]of Object.entries(F))a0[$]={open:`\x1B[${B[0]}m`,close:`\x1B[${B[1]}m`},F[$]=a0[$],u.set(B[0],B[1]);Object.defineProperty(a0,D,{value:F,enumerable:!1})}return Object.defineProperty(a0,"codes",{value:u,enumerable:!1}),a0.color.close="\x1B[39m",a0.bgColor.close="\x1B[49m",a0.color.ansi=ZX(),a0.color.ansi256=qX(),a0.color.ansi16m=XX(),a0.bgColor.ansi=ZX(10),a0.bgColor.ansi256=qX(10),a0.bgColor.ansi16m=XX(10),Object.defineProperties(a0,{rgbToAnsi256:{value(D,F,$){if(D===F&&F===$){if(D<8)return 16;if(D>248)return 231;return Math.round((D-8)/247*24)+232}return 16+36*Math.round(D/255*5)+6*Math.round(F/255*5)+Math.round($/255*5)},enumerable:!1},hexToRgb:{value(D){let F=/[a-f\d]{6}|[a-f\d]{3}/i.exec(D.toString(16));if(!F)return[0,0,0];let[$]=F;if($.length===3)$=[...$].map((z)=>z+z).join("");let B=Number.parseInt($,16);return[B>>16&255,B>>8&255,B&255]},enumerable:!1},hexToAnsi256:{value:(D)=>a0.rgbToAnsi256(...a0.hexToRgb(D)),enumerable:!1},ansi256ToAnsi:{value(D){if(D<8)return 30+D;if(D<16)return 90+(D-8);let F,$,B;if(D>=232)F=((D-232)*10+8)/255,$=F,B=F;else{D-=16;let q=D%36;F=Math.floor(D/36)/5,$=Math.floor(q/6)/5,B=q%6/5}let z=Math.max(F,$,B)*2;if(z===0)return 30;let Z=30+(Math.round(B)<<2|Math.round($)<<1|Math.round(F));if(z===2)Z+=60;return Z},enumerable:!1},rgbToAnsi:{value:(D,F,$)=>a0.ansi256ToAnsi(a0.rgbToAnsi256(D,F,$)),enumerable:!1},hexToAnsi:{value:(D)=>a0.ansi256ToAnsi(a0.hexToAnsi256(D)),enumerable:!1}}),a0}var RU=bU(),QX=RU;var I7=new Set(["\x1B",""]),kU=39,o3="\x07",JX="[",hU="]",GX="m",j7=`${hU}8;;`,WX=(u)=>`${I7.values().next().value}${JX}${u}${GX}`,YX=(u)=>`${I7.values().next().value}${j7}${u}${o3}`,cU=(u)=>u.split(" ").map((D)=>vD(D)),d3=(u,D,F)=>{let $=[...D],B=!1,z=!1,Z=vD(WF(u.at(-1)));for(let[q,X]of $.entries()){let Q=vD(X);if(Z+Q<=F)u[u.length-1]+=X;else u.push(X),Z=0;if(I7.has(X))B=!0,z=$.slice(q+1,q+1+j7.length).join("")===j7;if(B){if(z){if(X===o3)B=!1,z=!1}else if(X===GX)B=!1;continue}if(Z+=Q,Z===F&&q<$.length-1)u.push(""),Z=0}if(!Z&&u.at(-1).length>0&&u.length>1)u[u.length-2]+=u.pop()},mU=(u)=>{let D=u.split(" "),F=D.length;while(F>0){if(vD(D[F-1])>0)break;F--}if(F===D.length)return u;return D.slice(0,F).join(" ")+D.slice(F).join("")},nU=(u,D,F={})=>{if(F.trim!==!1&&u.trim()==="")return"";let $="",B,z,Z=cU(u),q=[""];for(let[Y,J]of u.split(" ").entries()){if(F.trim!==!1)q[q.length-1]=q.at(-1).trimStart();let G=vD(q.at(-1));if(Y!==0){if(G>=D&&(F.wordWrap===!1||F.trim===!1))q.push(""),G=0;if(G>0||F.trim===!1)q[q.length-1]+=" ",G++}if(F.hard&&Z[Y]>D){let K=D-G,H=1+Math.floor((Z[Y]-K-1)/D);if(Math.floor((Z[Y]-1)/D)<H)q.push("");d3(q,J,D);continue}if(G+Z[Y]>D&&G>0&&Z[Y]>0){if(F.wordWrap===!1&&G<D){d3(q,J,D);continue}q.push("")}if(G+Z[Y]>D&&F.wordWrap===!1){d3(q,J,D);continue}q[q.length-1]+=J}if(F.trim!==!1)q=q.map((Y)=>mU(Y));let X=q.join(`
|
|
97
|
+
`),Q=[...X],W=0;for(let[Y,J]of Q.entries()){if($+=J,I7.has(J)){let{groups:K}=new RegExp(`(?:\\${JX}(?<code>\\d+)m|\\${j7}(?<uri>.*)${o3})`).exec(X.slice(W))||{groups:{}};if(K.code!==void 0){let H=Number.parseFloat(K.code);B=H===kU?void 0:H}else if(K.uri!==void 0)z=K.uri.length===0?void 0:K.uri}let G=QX.codes.get(Number(B));if(Q[Y+1]===`
|
|
98
|
+
`){if(z)$+=YX("");if(B&&G)$+=WX(G)}else if(J===`
|
|
99
|
+
`){if(B&&G)$+=WX(B);if(z)$+=YX(z)}W+=J.length}return $};function s3(u,D,F){return String(u).normalize().replaceAll(`\r
|
|
100
|
+
`,`
|
|
101
|
+
`).split(`
|
|
102
|
+
`).map(($)=>nU($,D,F)).join(`
|
|
103
|
+
`)}function r3(u){return tq(u,{stringWidth:vD,stripAnsi:WF,wrap:s3})}import{dirname as KX,resolve as HX}from"path";import{readdirSync as pU,statSync as lU}from"fs";function a3(u,D){let F=HX(".",u),$;if(!lU(F).isDirectory())F=KX(F);while(!0){if($=D(F,pU(F)),$)return HX(F,$);if(F=KX($=F),$===F)break}}import{inspect as Wi}from"util";import{fileURLToPath as iX}from"url";import{format as oU}from"util";import{normalize as sU,resolve as rU}from"path";function YF(u){if(!(u!==u.toLowerCase()&&u!==u.toUpperCase()))u=u.toLowerCase();if(u.indexOf("-")===-1&&u.indexOf("_")===-1)return u;else{let F="",$=!1,B=u.match(/^-+/);for(let z=B?B[0].length:0;z<u.length;z++){let Z=u.charAt(z);if($)$=!1,Z=Z.toUpperCase();if(z!==0&&(Z==="-"||Z==="_"))$=!0;else if(Z!=="-"&&Z!=="_")F+=Z}return F}}function E7(u,D){let F=u.toLowerCase();D=D||"-";let $="";for(let B=0;B<u.length;B++){let z=F.charAt(B),Z=u.charAt(B);if(z!==Z&&B>0)$+=`${D}${F.charAt(B)}`;else $+=Z}return $}function P7(u){if(u===null||u===void 0)return!1;if(typeof u==="number")return!0;if(/^0x[0-9a-f]+$/i.test(u))return!0;if(/^0[^.]/.test(u))return!1;return/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(u)}function fX(u){if(Array.isArray(u))return u.map((Z)=>typeof Z!=="string"?Z+"":Z);u=u.trim();let D=0,F=null,$=null,B=null,z=[];for(let Z=0;Z<u.length;Z++){if(F=$,$=u.charAt(Z),$===" "&&!B){if(F!==" ")D++;continue}if($===B)B=null;else if(($==="'"||$==='"')&&!B)B=$;if(!z[D])z[D]="";z[D]+=$}return z}var KD;(function(u){u.BOOLEAN="boolean",u.STRING="string",u.NUMBER="number",u.ARRAY="array"})(KD||(KD={}));var Q1;class e3{constructor(u){Q1=u}parse(u,D){let F=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},D),$=fX(u),B=typeof u==="string",z=gU(Object.assign(Object.create(null),F.alias)),Z=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},F.configuration),q=Object.assign(Object.create(null),F.default),X=F.configObjects||[],Q=F.envPrefix,W=Z["populate--"],Y=W?"--":"_",J=Object.create(null),G=Object.create(null),K=F.__||Q1.format,H={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},f=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,x=new RegExp("^--"+Z["negation-prefix"]+"(.+)");if([].concat(F.array||[]).filter(Boolean).forEach(function(j){let T=typeof j==="object"?j.key:j,s=Object.keys(j).map(function(m){return{boolean:"bools",string:"strings",number:"numbers"}[m]}).filter(Boolean).pop();if(s)H[s][T]=!0;H.arrays[T]=!0,H.keys.push(T)}),[].concat(F.boolean||[]).filter(Boolean).forEach(function(j){H.bools[j]=!0,H.keys.push(j)}),[].concat(F.string||[]).filter(Boolean).forEach(function(j){H.strings[j]=!0,H.keys.push(j)}),[].concat(F.number||[]).filter(Boolean).forEach(function(j){H.numbers[j]=!0,H.keys.push(j)}),[].concat(F.count||[]).filter(Boolean).forEach(function(j){H.counts[j]=!0,H.keys.push(j)}),[].concat(F.normalize||[]).filter(Boolean).forEach(function(j){H.normalize[j]=!0,H.keys.push(j)}),typeof F.narg==="object")Object.entries(F.narg).forEach(([j,T])=>{if(typeof T==="number")H.nargs[j]=T,H.keys.push(j)});if(typeof F.coerce==="object")Object.entries(F.coerce).forEach(([j,T])=>{if(typeof T==="function")H.coercions[j]=T,H.keys.push(j)});if(typeof F.config<"u"){if(Array.isArray(F.config)||typeof F.config==="string")[].concat(F.config).filter(Boolean).forEach(function(j){H.configs[j]=!0});else if(typeof F.config==="object")Object.entries(F.config).forEach(([j,T])=>{if(typeof T==="boolean"||typeof T==="function")H.configs[j]=T})}E0(F.key,z,F.default,H.arrays),Object.keys(q).forEach(function(j){(H.aliases[j]||[]).forEach(function(T){q[T]=q[j]})});let L=null;c0();let A=[],C=Object.assign(Object.create(null),{_:[]}),I={};for(let j=0;j<$.length;j++){let T=$[j],s=T.replace(/^-{3,}/,"---"),m,y,Q0,$0,H0,Lu;if(T!=="--"&&/^-/.test(T)&&O0(T))_(T);else if(s.match(/^---+(=|$)/)){_(T);continue}else if(T.match(/^--.+=/)||!Z["short-option-groups"]&&T.match(/^-.+=/)){if($0=T.match(/^--?([^=]+)=([\s\S]*)$/),$0!==null&&Array.isArray($0)&&$0.length>=3)if(Z0($0[1],H.arrays))j=k(j,$0[1],$,$0[2]);else if(Z0($0[1],H.nargs)!==!1)j=R(j,$0[1],$,$0[2]);else c($0[1],$0[2],!0)}else if(T.match(x)&&Z["boolean-negation"]){if($0=T.match(x),$0!==null&&Array.isArray($0)&&$0.length>=2)y=$0[1],c(y,Z0(y,H.arrays)?[!1]:!1)}else if(T.match(/^--.+/)||!Z["short-option-groups"]&&T.match(/^-[^-]+/)){if($0=T.match(/^--?(.+)/),$0!==null&&Array.isArray($0)&&$0.length>=2)if(y=$0[1],Z0(y,H.arrays))j=k(j,y,$);else if(Z0(y,H.nargs)!==!1)j=R(j,y,$);else if(H0=$[j+1],H0!==void 0&&(!H0.match(/^-/)||H0.match(f))&&!Z0(y,H.bools)&&!Z0(y,H.counts))c(y,H0),j++;else if(/^(true|false)$/.test(H0))c(y,H0),j++;else c(y,p(y))}else if(T.match(/^-.\..+=/)){if($0=T.match(/^-([^=]+)=([\s\S]*)$/),$0!==null&&Array.isArray($0)&&$0.length>=3)c($0[1],$0[2])}else if(T.match(/^-.\..+/)&&!T.match(f)){if(H0=$[j+1],$0=T.match(/^-(.\..+)/),$0!==null&&Array.isArray($0)&&$0.length>=2)if(y=$0[1],H0!==void 0&&!H0.match(/^-/)&&!Z0(y,H.bools)&&!Z0(y,H.counts))c(y,H0),j++;else c(y,p(y))}else if(T.match(/^-[^-]+/)&&!T.match(f)){Q0=T.slice(1,-1).split(""),m=!1;for(let vu=0;vu<Q0.length;vu++){if(H0=T.slice(vu+2),Q0[vu+1]&&Q0[vu+1]==="="){if(Lu=T.slice(vu+3),y=Q0[vu],Z0(y,H.arrays))j=k(j,y,$,Lu);else if(Z0(y,H.nargs)!==!1)j=R(j,y,$,Lu);else c(y,Lu);m=!0;break}if(H0==="-"){c(Q0[vu],H0);continue}if(/[A-Za-z]/.test(Q0[vu])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(H0)&&Z0(H0,H.bools)===!1){c(Q0[vu],H0),m=!0;break}if(Q0[vu+1]&&Q0[vu+1].match(/\W/)){c(Q0[vu],H0),m=!0;break}else c(Q0[vu],p(Q0[vu]))}if(y=T.slice(-1)[0],!m&&y!=="-")if(Z0(y,H.arrays))j=k(j,y,$);else if(Z0(y,H.nargs)!==!1)j=R(j,y,$);else if(H0=$[j+1],H0!==void 0&&(!/^(-|--)[^-]/.test(H0)||H0.match(f))&&!Z0(y,H.bools)&&!Z0(y,H.counts))c(y,H0),j++;else if(/^(true|false)$/.test(H0))c(y,H0),j++;else c(y,p(y))}else if(T.match(/^-[0-9]$/)&&T.match(f)&&Z0(T.slice(1),H.bools))y=T.slice(1),c(y,p(y));else if(T==="--"){A=$.slice(j+1);break}else if(Z["halt-at-non-option"]){A=$.slice(j);break}else _(T)}if(v(C,!0),v(C,!1),n(C),i(),L0(C,H.aliases,q,!0),d(C),Z["set-placeholder-key"])a(C);if(Object.keys(H.counts).forEach(function(j){if(!t(C,j.split(".")))c(j,0)}),W&&A.length)C[Y]=[];if(A.forEach(function(j){C[Y].push(j)}),Z["camel-case-expansion"]&&Z["strip-dashed"])Object.keys(C).filter((j)=>j!=="--"&&j.includes("-")).forEach((j)=>{delete C[j]});if(Z["strip-aliased"])[].concat(...Object.keys(z).map((j)=>z[j])).forEach((j)=>{if(Z["camel-case-expansion"]&&j.includes("-"))delete C[j.split(".").map((T)=>YF(T)).join(".")];delete C[j]});function _(j){let T=h("_",j);if(typeof T==="string"||typeof T==="number")C._.push(T)}function R(j,T,s,m){let y,Q0=Z0(T,H.nargs);if(Q0=typeof Q0!=="number"||isNaN(Q0)?1:Q0,Q0===0){if(!Y0(m))L=Error(K("Argument unexpected for: %s",T));return c(T,p(T)),j}let $0=Y0(m)?0:1;if(Z["nargs-eats-options"]){if(s.length-(j+1)+$0<Q0)L=Error(K("Not enough arguments following: %s",T));$0=Q0}else{for(y=j+1;y<s.length;y++)if(!s[y].match(/^-[^0-9]/)||s[y].match(f)||O0(s[y]))$0++;else break;if($0<Q0)L=Error(K("Not enough arguments following: %s",T))}let H0=Math.min($0,Q0);if(!Y0(m)&&H0>0)c(T,m),H0--;for(y=j+1;y<H0+j+1;y++)c(T,s[y]);return j+H0}function k(j,T,s,m){let y=[],Q0=m||s[j+1],$0=Z0(T,H.nargs);if(Z0(T,H.bools)&&!/^(true|false)$/.test(Q0))y.push(!0);else if(Y0(Q0)||Y0(m)&&/^-/.test(Q0)&&!f.test(Q0)&&!O0(Q0)){if(q[T]!==void 0){let H0=q[T];y=Array.isArray(H0)?H0:[H0]}}else{if(!Y0(m))y.push(w(T,m,!0));for(let H0=j+1;H0<s.length;H0++){if(!Z["greedy-arrays"]&&y.length>0||$0&&typeof $0==="number"&&y.length>=$0)break;if(Q0=s[H0],/^-/.test(Q0)&&!f.test(Q0)&&!O0(Q0))break;j=H0,y.push(w(T,Q0,B))}}if(typeof $0==="number"&&($0&&y.length<$0||isNaN($0)&&y.length===0))L=Error(K("Not enough arguments following: %s",T));return c(T,y),j}function c(j,T,s=B){if(/-/.test(j)&&Z["camel-case-expansion"]){let Q0=j.split(".").map(function($0){return YF($0)}).join(".");e(j,Q0)}let m=w(j,T,s),y=j.split(".");if(u0(C,y,m),H.aliases[j])H.aliases[j].forEach(function(Q0){let $0=Q0.split(".");u0(C,$0,m)});if(y.length>1&&Z["dot-notation"])(H.aliases[y[0]]||[]).forEach(function(Q0){let $0=Q0.split("."),H0=[].concat(y);if(H0.shift(),$0=$0.concat(H0),!(H.aliases[j]||[]).includes($0.join(".")))u0(C,$0,m)});if(Z0(j,H.normalize)&&!Z0(j,H.arrays))[j].concat(H.aliases[j]||[]).forEach(function($0){Object.defineProperty(I,$0,{enumerable:!0,get(){return T},set(H0){T=typeof H0==="string"?Q1.normalize(H0):H0}})})}function e(j,T){if(!(H.aliases[j]&&H.aliases[j].length))H.aliases[j]=[T],J[T]=!0;if(!(H.aliases[T]&&H.aliases[T].length))e(T,j)}function w(j,T,s){if(s)T=dU(T);if(Z0(j,H.bools)||Z0(j,H.counts)){if(typeof T==="string")T=T==="true"}let m=Array.isArray(T)?T.map(function(y){return h(j,y)}):h(j,T);if(Z0(j,H.counts)&&(Y0(m)||typeof m==="boolean"))m=t3();if(Z0(j,H.normalize)&&Z0(j,H.arrays))if(Array.isArray(T))m=T.map((y)=>{return Q1.normalize(y)});else m=Q1.normalize(T);return m}function h(j,T){if(!Z["parse-positional-numbers"]&&j==="_")return T;if(!Z0(j,H.strings)&&!Z0(j,H.bools)&&!Array.isArray(T)){if(P7(T)&&Z["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${T}`)))||!Y0(T)&&Z0(j,H.numbers))T=Number(T)}return T}function n(j){let T=Object.create(null);L0(T,H.aliases,q),Object.keys(H.configs).forEach(function(s){let m=j[s]||T[s];if(m)try{let y=null,Q0=Q1.resolve(Q1.cwd(),m),$0=H.configs[s];if(typeof $0==="function"){try{y=$0(Q0)}catch(H0){y=H0}if(y instanceof Error){L=y;return}}else y=Q1.require(Q0);r(y)}catch(y){if(y.name==="PermissionDenied")L=y;else if(j[s])L=Error(K("Invalid JSON config file: %s",m))}})}function r(j,T){Object.keys(j).forEach(function(s){let m=j[s],y=T?T+"."+s:s;if(typeof m==="object"&&m!==null&&!Array.isArray(m)&&Z["dot-notation"])r(m,y);else if(!t(C,y.split("."))||Z0(y,H.arrays)&&Z["combine-arrays"])c(y,m)})}function i(){if(typeof X<"u")X.forEach(function(j){r(j)})}function v(j,T){if(typeof Q>"u")return;let s=typeof Q==="string"?Q:"",m=Q1.env();Object.keys(m).forEach(function(y){if(s===""||y.lastIndexOf(s,0)===0){let Q0=y.split("__").map(function($0,H0){if(H0===0)$0=$0.substring(s.length);return YF($0)});if((T&&H.configs[Q0.join(".")]||!T)&&!t(j,Q0))c(Q0.join("."),m[y])}})}function d(j){let T,s=new Set;Object.keys(j).forEach(function(m){if(!s.has(m)){if(T=Z0(m,H.coercions),typeof T==="function")try{let y=h(m,T(j[m]));[].concat(H.aliases[m]||[],m).forEach((Q0)=>{s.add(Q0),j[Q0]=y})}catch(y){L=y}}})}function a(j){return H.keys.forEach((T)=>{if(~T.indexOf("."))return;if(typeof j[T]>"u")j[T]=void 0}),j}function L0(j,T,s,m=!1){Object.keys(s).forEach(function(y){if(!t(j,y.split("."))){if(u0(j,y.split("."),s[y]),m)G[y]=!0;(T[y]||[]).forEach(function(Q0){if(t(j,Q0.split(".")))return;u0(j,Q0.split("."),s[y])})}})}function t(j,T){let s=j;if(!Z["dot-notation"])T=[T.join(".")];T.slice(0,-1).forEach(function(y){s=s[y]||{}});let m=T[T.length-1];if(typeof s!=="object")return!1;else return m in s}function u0(j,T,s){let m=j;if(!Z["dot-notation"])T=[T.join(".")];T.slice(0,-1).forEach(function(Lu){if(Lu=VX(Lu),typeof m==="object"&&m[Lu]===void 0)m[Lu]={};if(typeof m[Lu]!=="object"||Array.isArray(m[Lu])){if(Array.isArray(m[Lu]))m[Lu].push({});else m[Lu]=[m[Lu],{}];m=m[Lu][m[Lu].length-1]}else m=m[Lu]});let y=VX(T[T.length-1]),Q0=Z0(T.join("."),H.arrays),$0=Array.isArray(s),H0=Z["duplicate-arguments-array"];if(!H0&&Z0(y,H.nargs)){if(H0=!0,!Y0(m[y])&&H.nargs[y]===1||Array.isArray(m[y])&&m[y].length===H.nargs[y])m[y]=void 0}if(s===t3())m[y]=t3(m[y]);else if(Array.isArray(m[y]))if(H0&&Q0&&$0)m[y]=Z["flatten-duplicate-arrays"]?m[y].concat(s):(Array.isArray(m[y][0])?m[y]:[m[y]]).concat([s]);else if(!H0&&Boolean(Q0)===Boolean($0))m[y]=s;else m[y]=m[y].concat([s]);else if(m[y]===void 0&&Q0)m[y]=$0?s:[s];else if(H0&&!(m[y]===void 0||Z0(y,H.counts)||Z0(y,H.bools)))m[y]=[m[y],s];else m[y]=s}function E0(...j){j.forEach(function(T){Object.keys(T||{}).forEach(function(s){if(H.aliases[s])return;H.aliases[s]=[].concat(z[s]||[]),H.aliases[s].concat(s).forEach(function(m){if(/-/.test(m)&&Z["camel-case-expansion"]){let y=YF(m);if(y!==s&&H.aliases[s].indexOf(y)===-1)H.aliases[s].push(y),J[y]=!0}}),H.aliases[s].concat(s).forEach(function(m){if(m.length>1&&/[A-Z]/.test(m)&&Z["camel-case-expansion"]){let y=E7(m,"-");if(y!==s&&H.aliases[s].indexOf(y)===-1)H.aliases[s].push(y),J[y]=!0}}),H.aliases[s].forEach(function(m){H.aliases[m]=[s].concat(H.aliases[s].filter(function(y){return m!==y}))})})})}function Z0(j,T){let s=[].concat(H.aliases[j]||[],j),m=Object.keys(T),y=s.find((Q0)=>m.includes(Q0));return y?T[y]:!1}function b0(j){let T=Object.keys(H);return[].concat(T.map((m)=>H[m])).some(function(m){return Array.isArray(m)?m.includes(j):m[j]})}function $u(j,...T){return[].concat(...T).some(function(m){let y=j.match(m);return y&&b0(y[1])})}function g(j){if(j.match(f)||!j.match(/^-[^-]+/))return!1;let T=!0,s,m=j.slice(1).split("");for(let y=0;y<m.length;y++){if(s=j.slice(y+2),!b0(m[y])){T=!1;break}if(m[y+1]&&m[y+1]==="="||s==="-"||/[A-Za-z]/.test(m[y])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(s)||m[y+1]&&m[y+1].match(/\W/))break}return T}function O0(j){return Z["unknown-options-as-args"]&&n0(j)}function n0(j){if(j=j.replace(/^-{3,}/,"--"),j.match(f))return!1;if(g(j))return!1;return!$u(j,/^-+([^=]+?)=[\s\S]*$/,x,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function p(j){if(!Z0(j,H.bools)&&!Z0(j,H.counts)&&`${j}`in q)return q[j];else return W0(l(j))}function W0(j){return{[KD.BOOLEAN]:!0,[KD.STRING]:"",[KD.NUMBER]:void 0,[KD.ARRAY]:[]}[j]}function l(j){let T=KD.BOOLEAN;if(Z0(j,H.strings))T=KD.STRING;else if(Z0(j,H.numbers))T=KD.NUMBER;else if(Z0(j,H.bools))T=KD.BOOLEAN;else if(Z0(j,H.arrays))T=KD.ARRAY;return T}function Y0(j){return j===void 0}function c0(){Object.keys(H.counts).find((j)=>{if(Z0(j,H.arrays))return L=Error(K("Invalid configuration: %s, opts.count excludes opts.array.",j)),!0;else if(Z0(j,H.nargs))return L=Error(K("Invalid configuration: %s, opts.count excludes opts.narg.",j)),!0;return!1})}return{aliases:Object.assign({},H.aliases),argv:Object.assign(I,C),configuration:Z,defaulted:Object.assign({},G),error:L,newAliases:Object.assign({},J)}}}function gU(u){let D=[],F=Object.create(null),$=!0;Object.keys(u).forEach(function(B){D.push([].concat(u[B],B))});while($){$=!1;for(let B=0;B<D.length;B++)for(let z=B+1;z<D.length;z++)if(D[B].filter(function(q){return D[z].indexOf(q)!==-1}).length){D[B]=D[B].concat(D[z]),D.splice(z,1),$=!0;break}}return D.forEach(function(B){B=B.filter(function(Z,q,X){return X.indexOf(Z)===q});let z=B.pop();if(z!==void 0&&typeof z==="string")F[z]=B}),F}function t3(u){return u!==void 0?u+1:1}function VX(u){if(u==="__proto__")return"___proto___";return u}function dU(u){return typeof u==="string"&&(u[0]==="'"||u[0]==='"')&&u[u.length-1]===u[0]?u.substring(1,u.length-1):u}import{readFileSync as aU}from"fs";import{createRequire as LX}from"node:module";var u$,D$,F$,MX=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):20,xX=(D$=(u$=process===null||process===void 0?void 0:process.versions)===null||u$===void 0?void 0:u$.node)!==null&&D$!==void 0?D$:(F$=process===null||process===void 0?void 0:process.version)===null||F$===void 0?void 0:F$.slice(1);if(xX){if(Number(xX.match(/^([^.]+)/)[1])<MX)throw Error(`yargs parser supports a minimum Node.js version of ${MX}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`)}var tU=process?process.env:{},OX=LX?LX(import.meta.url):void 0,AX=new e3({cwd:process.cwd,env:()=>{return tU},format:oU,normalize:sU,resolve:rU,require:(u)=>{if(typeof OX<"u")return OX(u);else if(u.match(/\.json$/))return JSON.parse(aU(u,"utf8"));else throw Error("only .json config files are supported in ESM")}}),x8=function(D,F){return AX.parse(D.slice(),F).argv};x8.detailed=function(u,D){return AX.parse(u.slice(),D)};x8.camelCase=YF;x8.decamelize=E7;x8.looksLikeNumber=P7;var wX=x8;import{basename as Yi,dirname as Ji,extname as Gi,relative as Ki,resolve as UX,join as Hi}from"path";function eU(){if(ui())return 0;return 1}function ui(){return Di()&&!process.defaultApp}function Di(){return!!process.versions.electron}function NX(){return process.argv[eU()]}import{readFileSync as Fi,statSync as $i,writeFile as Bi}from"fs";import{format as zi}from"util";import{resolve as Zi}from"path";var jX={fs:{readFileSync:Fi,writeFile:Bi},format:zi,resolve:Zi,exists:(u)=>{try{return $i(u).isFile()}catch(D){return!1}}};var SD;class IX{constructor(u){u=u||{},this.directory=u.directory||"./locales",this.updateFiles=typeof u.updateFiles==="boolean"?u.updateFiles:!0,this.locale=u.locale||"en",this.fallbackToLanguage=typeof u.fallbackToLanguage==="boolean"?u.fallbackToLanguage:!0,this.cache=Object.create(null),this.writeQueue=[]}__(...u){if(typeof arguments[0]!=="string")return this._taggedLiteral(arguments[0],...arguments);let D=u.shift(),F=function(){};if(typeof u[u.length-1]==="function")F=u.pop();if(F=F||function(){},!this.cache[this.locale])this._readLocaleFile();if(!this.cache[this.locale][D]&&this.updateFiles)this.cache[this.locale][D]=D,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:F});else F();return SD.format.apply(SD.format,[this.cache[this.locale][D]||D].concat(u))}__n(){let u=Array.prototype.slice.call(arguments),D=u.shift(),F=u.shift(),$=u.shift(),B=function(){};if(typeof u[u.length-1]==="function")B=u.pop();if(!this.cache[this.locale])this._readLocaleFile();let z=$===1?D:F;if(this.cache[this.locale][D])z=this.cache[this.locale][D][$===1?"one":"other"];if(!this.cache[this.locale][D]&&this.updateFiles)this.cache[this.locale][D]={one:D,other:F},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:B});else B();let Z=[z];if(~z.indexOf("%d"))Z.push($);return SD.format.apply(SD.format,Z.concat(u))}setLocale(u){this.locale=u}getLocale(){return this.locale}updateLocale(u){if(!this.cache[this.locale])this._readLocaleFile();for(let D in u)if(Object.prototype.hasOwnProperty.call(u,D))this.cache[this.locale][D]=u[D]}_taggedLiteral(u,...D){let F="";return u.forEach(function($,B){let z=D[B+1];if(F+=$,typeof z<"u")F+="%s"}),this.__.apply(this,[F].concat([].slice.call(D,1)))}_enqueueWrite(u){if(this.writeQueue.push(u),this.writeQueue.length===1)this._processWriteQueue()}_processWriteQueue(){let u=this,D=this.writeQueue[0],F=D.directory,$=D.locale,B=D.cb,z=this._resolveLocaleFile(F,$),Z=JSON.stringify(this.cache[$],null,2);SD.fs.writeFile(z,Z,"utf-8",function(q){if(u.writeQueue.shift(),u.writeQueue.length>0)u._processWriteQueue();B(q)})}_readLocaleFile(){let u={},D=this._resolveLocaleFile(this.directory,this.locale);try{if(SD.fs.readFileSync)u=JSON.parse(SD.fs.readFileSync(D,"utf-8"))}catch(F){if(F instanceof SyntaxError)F.message="syntax error in "+D;if(F.code==="ENOENT")u={};else throw F}this.cache[this.locale]=u}_resolveLocaleFile(u,D){let F=SD.resolve(u,"./",D+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(F)&&~D.lastIndexOf("_")){let $=SD.resolve(u,"./",D.split("_")[0]+".json");if(this._fileExistsSync($))F=$}return F}_fileExistsSync(u){return SD.exists(u)}}function EX(u,D){SD=D;let F=new IX(u);return{__:F.__.bind(F),__n:F.__n.bind(F),setLocale:F.setLocale.bind(F),getLocale:F.getLocale.bind(F),updateLocale:F.updateLocale.bind(F),locale:F.locale}}var qi=(u)=>{return EX(u,jX)},PX=qi;var vX=M0(_X(),1);import{createRequire as fi}from"node:module";import{readFileSync as Vi,readdirSync as Li}from"node:fs";var $$=iX(import.meta.url),Mi=$$.substring(0,$$.lastIndexOf("node_modules")),xi=fi(import.meta.url),C7={assert:{notStrictEqual:Xi,strictEqual:Qi},cliui:r3,findUp:a3,getEnv:(u)=>{return process.env[u]},inspect:Wi,getProcessArgvBin:NX,mainFilename:Mi||process.cwd(),Parser:wX,path:{basename:Yi,dirname:Ji,extname:Gi,relative:Ki,resolve:UX,join:Hi},process:{argv:()=>process.argv,cwd:process.cwd,emitWarning:(u,D)=>process.emitWarning(u,D),execPath:()=>process.execPath,exit:(u)=>{process.exit(u)},nextTick:process.nextTick,stdColumns:typeof process.stdout.columns<"u"?process.stdout.columns:null},readFileSync:Vi,readdirSync:Li,require:xi,getCallerFile:()=>{let u=vX.default(3);return u.match(/^file:\/\//)?iX(u):u},stringWidth:vD,y18n:PX({directory:UX($$,"../../../locales"),updateFiles:!1})};function Su(u,D,F,$){F.assert.notStrictEqual(u,D,$)}function B$(u,D){D.assert.strictEqual(typeof u,"string")}function z6(u){return Object.keys(u)}function l0(u){return!!u&&!!u.then&&typeof u.then==="function"}class qu extends Error{constructor(u){super(u||"yargs error");if(this.name="YError",Error.captureStackTrace)Error.captureStackTrace(this,qu)}}function _1(u){let F=u.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),$=/\.*[\][<>]/g,B=F.shift();if(!B)throw Error(`No command found in: ${u}`);let z={cmd:B.replace($,""),demanded:[],optional:[]};return F.forEach((Z,q)=>{let X=!1;if(Z=Z.replace(/\s/g,""),/\.+[\]>]/.test(Z)&&q===F.length-1)X=!0;if(/^\[/.test(Z))z.optional.push({cmd:Z.replace($,"").split("|"),variadic:X});else z.demanded.push({cmd:Z.replace($,"").split("|"),variadic:X})}),z}var Oi=["first","second","third","fourth","fifth","sixth"];function q0(u,D,F){function $(){return typeof u==="object"?[{demanded:[],optional:[]},u,D]:[_1(`cmd ${u}`),D,F]}try{let B=0,[z,Z,q]=$(),X=[].slice.call(Z);while(X.length&&X[X.length-1]===void 0)X.pop();let Q=q||X.length;if(Q<z.demanded.length)throw new qu(`Not enough arguments provided. Expected ${z.demanded.length} but received ${X.length}.`);let W=z.demanded.length+z.optional.length;if(Q>W)throw new qu(`Too many arguments provided. Expected max ${W} but received ${Q}.`);z.demanded.forEach((Y)=>{let J=X.shift(),G=SX(J);if(Y.cmd.filter((H)=>H===G||H==="*").length===0)TX(G,Y.cmd,B);B+=1}),z.optional.forEach((Y)=>{if(X.length===0)return;let J=X.shift(),G=SX(J);if(Y.cmd.filter((H)=>H===G||H==="*").length===0)TX(G,Y.cmd,B);B+=1})}catch(B){console.warn(B.stack)}}function SX(u){if(Array.isArray(u))return"array";else if(u===null)return"null";return typeof u}function TX(u,D,F){throw new qu(`Invalid ${Oi[F]||"manyith"} argument. Expected ${D.join(" or ")} but received ${u}.`)}class z${constructor(u){this.globalMiddleware=[],this.frozens=[],this.yargs=u}addMiddleware(u,D,F=!0,$=!1){if(q0("<array|function> [boolean] [boolean] [boolean]",[u,D,F],arguments.length),Array.isArray(u)){for(let B=0;B<u.length;B++){if(typeof u[B]!=="function")throw Error("middleware must be a function");let z=u[B];z.applyBeforeValidation=D,z.global=F}Array.prototype.push.apply(this.globalMiddleware,u)}else if(typeof u==="function"){let B=u;B.applyBeforeValidation=D,B.global=F,B.mutates=$,this.globalMiddleware.push(u)}return this.yargs}addCoerceMiddleware(u,D){let F=this.yargs.getAliases();return this.globalMiddleware=this.globalMiddleware.filter(($)=>{let B=[...F[D]||[],D];if(!$.option)return!0;else return!B.includes($.option)}),u.option=D,this.addMiddleware(u,!0,!0,!0)}getMiddleware(){return this.globalMiddleware}freeze(){this.frozens.push([...this.globalMiddleware])}unfreeze(){let u=this.frozens.pop();if(u!==void 0)this.globalMiddleware=u}reset(){this.globalMiddleware=this.globalMiddleware.filter((u)=>u.global)}}function yX(u){if(!u)return[];return u.map((D)=>{return D.applyBeforeValidation=!1,D})}function JF(u,D,F,$){return F.reduce((B,z)=>{if(z.applyBeforeValidation!==$)return B;if(z.mutates){if(z.applied)return B;z.applied=!0}if(l0(B))return B.then((Z)=>Promise.all([Z,z(Z,D)])).then(([Z,q])=>Object.assign(Z,q));else{let Z=z(B,D);return l0(Z)?Z.then((q)=>Object.assign(B,q)):Object.assign(B,Z)}},u)}function GF(u,D,F=($)=>{throw $}){try{let $=Ai(u)?u():u;return l0($)?$.then((B)=>D(B)):D($)}catch($){return F($)}}function Ai(u){return typeof u==="function"}var Z6=/(^\*)|(^\$0)/;class RX{constructor(u,D,F,$){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=$,this.usage=u,this.globalMiddleware=F,this.validation=D}addDirectory(u,D,F,$){$=$||{},this.requireCache.add(F);let B=this.shim.path.resolve(this.shim.path.dirname(F),u),z=this.shim.readdirSync(B,{recursive:$.recurse?!0:!1});if(!Array.isArray($.extensions))$.extensions=["js"];let Z=typeof $.visit==="function"?$.visit:(q)=>q;for(let q of z){let X=q.toString();if($.exclude){let W=!1;if(typeof $.exclude==="function")W=$.exclude(X);else W=$.exclude.test(X);if(W)continue}if($.include){let W=!1;if(typeof $.include==="function")W=$.include(X);else W=$.include.test(X);if(!W)continue}let Q=!1;for(let W of $.extensions)if(X.endsWith(W))Q=!0;if(Q){let W=this.shim.path.join(B,X),Y=D(W),J=Object.create(null,Object.getOwnPropertyDescriptors({...Y}));if(Z(J,W,X)){if(this.requireCache.has(W))continue;else this.requireCache.add(W);if(!J.command)J.command=this.shim.path.basename(W,this.shim.path.extname(W));this.addHandler(J)}}}}addHandler(u,D,F,$,B,z){let Z=[],q=yX(B);if($=$||(()=>{}),Array.isArray(u))if(wi(u))[u,...Z]=u;else for(let X of u)this.addHandler(X);else if(ji(u)){let X=Array.isArray(u.command)||typeof u.command==="string"?u.command:null;if(X===null)throw Error(`No command name given for module: ${this.shim.inspect(u)}`);if(u.aliases)X=[].concat(X).concat(u.aliases);this.addHandler(X,this.extractDesc(u),u.builder,u.handler,u.middlewares,u.deprecated);return}else if(bX(F)){this.addHandler([u].concat(Z),D,F.builder,F.handler,F.middlewares,F.deprecated);return}if(typeof u==="string"){let X=_1(u);Z=Z.map((Y)=>_1(Y).cmd);let Q=!1,W=[X.cmd].concat(Z).filter((Y)=>{if(Z6.test(Y))return Q=!0,!1;return!0});if(W.length===0&&Q)W.push("$0");if(Q)X.cmd=W[0],Z=W.slice(1),u=u.replace(Z6,X.cmd);if(Z.forEach((Y)=>{this.aliasMap[Y]=X.cmd}),D!==!1)this.usage.command(u,D,Q,Z,z);if(this.handlers[X.cmd]={original:u,description:D,handler:$,builder:F||{},middlewares:q,deprecated:z,demanded:X.demanded,optional:X.optional},Q)this.defaultCommand=this.handlers[X.cmd]}}getCommandHandlers(){return this.handlers}getCommands(){return Object.keys(this.handlers).concat(Object.keys(this.aliasMap))}hasDefaultCommand(){return!!this.defaultCommand}runCommand(u,D,F,$,B,z){let Z=this.handlers[u]||this.handlers[this.aliasMap[u]]||this.defaultCommand,q=D.getInternalMethods().getContext(),X=q.commands.slice(),Q=!u;if(u)q.commands.push(u),q.fullCommands.push(Z.original);let W=this.applyBuilderUpdateUsageAndParse(Q,Z,D,F.aliases,X,$,B,z);return l0(W)?W.then((Y)=>this.applyMiddlewareAndGetResult(Q,Z,Y.innerArgv,q,B,Y.aliases,D)):this.applyMiddlewareAndGetResult(Q,Z,W.innerArgv,q,B,W.aliases,D)}applyBuilderUpdateUsageAndParse(u,D,F,$,B,z,Z,q){let X=D.builder,Q=F;if(_7(X)){F.getInternalMethods().getUsageInstance().freeze();let W=X(F.getInternalMethods().reset($),q);if(l0(W))return W.then((Y)=>{return Q=hX(Y)?Y:F,this.parseAndUpdateUsage(u,D,Q,B,z,Z)})}else if(Ni(X))F.getInternalMethods().getUsageInstance().freeze(),Q=F.getInternalMethods().reset($),Object.keys(D.builder).forEach((W)=>{Q.option(W,X[W])});return this.parseAndUpdateUsage(u,D,Q,B,z,Z)}parseAndUpdateUsage(u,D,F,$,B,z){if(u)F.getInternalMethods().getUsageInstance().unfreeze(!0);if(this.shouldUpdateUsage(F))F.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler($,D),D.description);let Z=F.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,B,z);return l0(Z)?Z.then((q)=>({aliases:F.parsed.aliases,innerArgv:q})):{aliases:F.parsed.aliases,innerArgv:Z}}shouldUpdateUsage(u){return!u.getInternalMethods().getUsageInstance().getUsageDisabled()&&u.getInternalMethods().getUsageInstance().getUsage().length===0}usageFromParentCommandsCommandHandler(u,D){let F=Z6.test(D.original)?D.original.replace(Z6,"").trim():D.original,$=u.filter((B)=>{return!Z6.test(B)});return $.push(F),`$0 ${$.join(" ")}`}handleValidationAndGetResult(u,D,F,$,B,z,Z,q){if(!z.getInternalMethods().getHasOutput()){let X=z.getInternalMethods().runValidation(B,q,z.parsed.error,u);F=GF(F,(Q)=>{return X(Q),Q})}if(D.handler&&!z.getInternalMethods().getHasOutput()){z.getInternalMethods().setHasOutput();let X=!!z.getOptions().configuration["populate--"];if(z.getInternalMethods().postProcess(F,X,!1,!1),F=JF(F,z,Z,!1),F=GF(F,(Q)=>{let W=D.handler(Q);return l0(W)?W.then(()=>Q):Q}),!u)z.getInternalMethods().getUsageInstance().cacheHelpMessage();if(l0(F)&&!z.getInternalMethods().hasParseCallback())F.catch((Q)=>{try{z.getInternalMethods().getUsageInstance().fail(null,Q)}catch(W){}})}if(!u)$.commands.pop(),$.fullCommands.pop();return F}applyMiddlewareAndGetResult(u,D,F,$,B,z,Z){let q={};if(B)return F;if(!Z.getInternalMethods().getHasOutput())q=this.populatePositionals(D,F,$,Z);let X=this.globalMiddleware.getMiddleware().slice(0).concat(D.middlewares),Q=JF(F,Z,X,!0);return l0(Q)?Q.then((W)=>this.handleValidationAndGetResult(u,D,W,$,z,Z,X,q)):this.handleValidationAndGetResult(u,D,Q,$,z,Z,X,q)}populatePositionals(u,D,F,$){D._=D._.slice(F.commands.length);let B=u.demanded.slice(0),z=u.optional.slice(0),Z={};this.validation.positionalCount(B.length,D._.length);while(B.length){let q=B.shift();this.populatePositional(q,D,Z)}while(z.length){let q=z.shift();this.populatePositional(q,D,Z)}return D._=F.commands.concat(D._.map((q)=>""+q)),this.postProcessPositionals(D,Z,this.cmdToParseOptions(u.original),$),Z}populatePositional(u,D,F){let $=u.cmd[0];if(u.variadic)F[$]=D._.splice(0).map(String);else if(D._.length)F[$]=[String(D._.shift())]}cmdToParseOptions(u){let D={array:[],default:{},alias:{},demand:{}},F=_1(u);return F.demanded.forEach(($)=>{let[B,...z]=$.cmd;if($.variadic)D.array.push(B),D.default[B]=[];D.alias[B]=z,D.demand[B]=!0}),F.optional.forEach(($)=>{let[B,...z]=$.cmd;if($.variadic)D.array.push(B),D.default[B]=[];D.alias[B]=z}),D}postProcessPositionals(u,D,F,$){let B=Object.assign({},$.getOptions());B.default=Object.assign(F.default,B.default);for(let X of Object.keys(F.alias))B.alias[X]=(B.alias[X]||[]).concat(F.alias[X]);B.array=B.array.concat(F.array),B.config={};let z=[];if(Object.keys(D).forEach((X)=>{D[X].map((Q)=>{if(B.configuration["unknown-options-as-args"])B.key[X]=!0;z.push(`--${X}`),z.push(Q)})}),!z.length)return;let Z=Object.assign({},B.configuration,{"populate--":!1}),q=this.shim.Parser.detailed(z,Object.assign({},B,{configuration:Z}));if(q.error)$.getInternalMethods().getUsageInstance().fail(q.error.message,q.error);else{let X=Object.keys(D);Object.keys(D).forEach((Q)=>{X.push(...q.aliases[Q])}),Object.keys(q.argv).forEach((Q)=>{if(X.includes(Q)){if(!D[Q])D[Q]=q.argv[Q];if(!this.isInConfigs($,Q)&&!this.isDefaulted($,Q)&&Object.prototype.hasOwnProperty.call(u,Q)&&Object.prototype.hasOwnProperty.call(q.argv,Q)&&(Array.isArray(u[Q])||Array.isArray(q.argv[Q])))u[Q]=[].concat(u[Q],q.argv[Q]);else u[Q]=q.argv[Q]}})}}isDefaulted(u,D){let{default:F}=u.getOptions();return Object.prototype.hasOwnProperty.call(F,D)||Object.prototype.hasOwnProperty.call(F,this.shim.Parser.camelCase(D))}isInConfigs(u,D){let{configObjects:F}=u.getOptions();return F.some(($)=>Object.prototype.hasOwnProperty.call($,D))||F.some(($)=>Object.prototype.hasOwnProperty.call($,this.shim.Parser.camelCase(D)))}runDefaultBuilderOn(u){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(u)){let F=Z6.test(this.defaultCommand.original)?this.defaultCommand.original:this.defaultCommand.original.replace(/^[^[\]<>]*/,"$0 ");u.getInternalMethods().getUsageInstance().usage(F,this.defaultCommand.description)}let D=this.defaultCommand.builder;if(_7(D))return D(u,!0);else if(!bX(D))Object.keys(D).forEach((F)=>{u.option(F,D[F])});return}extractDesc({describe:u,description:D,desc:F}){for(let $ of[u,D,F]){if(typeof $==="string"||$===!1)return $;Su($,!0,this.shim)}return!1}freeze(){this.frozens.push({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand})}unfreeze(){let u=this.frozens.pop();Su(u,void 0,this.shim),{handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand}=u}reset(){return this.handlers={},this.aliasMap={},this.defaultCommand=void 0,this.requireCache=new Set,this}}function kX(u,D,F,$){return new RX(u,D,F,$)}function bX(u){return typeof u==="object"&&!!u.builder&&typeof u.handler==="function"}function wi(u){return u.every((D)=>typeof D==="string")}function _7(u){return typeof u==="function"}function Ni(u){return typeof u==="object"}function ji(u){return typeof u==="object"&&!Array.isArray(u)}function U1(u={},D=()=>!0){let F={};return z6(u).forEach(($)=>{if(D($,u[$]))F[$]=u[$]}),F}function i1(u){if(typeof process>"u")return;[process.stdout,process.stderr].forEach((D)=>{let F=D;if(F._handle&&F.isTTY&&typeof F._handle.setBlocking==="function")F._handle.setBlocking(u)})}function Ii(u){return typeof u==="boolean"}function mX(u,D){let F=D.y18n.__,$={},B=[];$.failFn=function(h){B.push(h)};let z=null,Z=null,q=!0;$.showHelpOnFail=function(h=!0,n){let[r,i]=typeof h==="string"?[!0,h]:[h,n];if(u.getInternalMethods().isGlobalContext())Z=i;return z=i,q=r,$};let X=!1;$.fail=function(h,n){let r=u.getInternalMethods().getLoggerInstance();if(B.length)for(let i=B.length-1;i>=0;--i){let v=B[i];if(Ii(v)){if(n)throw n;else if(h)throw Error(h)}else v(h,n,$)}else{if(u.getExitProcess())i1(!0);if(!X){if(X=!0,q)u.showHelp("error"),r.error();if(h||n)r.error(h||n);let i=z||Z;if(i){if(h||n)r.error("");r.error(i)}}if(n=n||new qu(h),u.getExitProcess())return u.exit(1);else if(u.getInternalMethods().hasParseCallback())return u.exit(1,n);else throw n}};let Q=[],W=!1;$.usage=(w,h)=>{if(w===null)return W=!0,Q=[],$;return W=!1,Q.push([w,h||""]),$},$.getUsage=()=>{return Q},$.getUsageDisabled=()=>{return W},$.getPositionalGroupName=()=>{return F("Positionals:")};let Y=[];$.example=(w,h)=>{Y.push([w,h||""])};let J=[];$.command=function(h,n,r,i,v=!1){if(r)J=J.map((d)=>{return d[2]=!1,d});J.push([h,n||"",r,i,v])},$.getCommands=()=>J;let G={};$.describe=function(h,n){if(Array.isArray(h))h.forEach((r)=>{$.describe(r,n)});else if(typeof h==="object")Object.keys(h).forEach((r)=>{$.describe(r,h[r])});else G[h]=n},$.getDescriptions=()=>G;let K=[];$.epilog=(w)=>{K.push(w)};let H=!1,f;$.wrap=(w)=>{H=!0,f=w},$.getWrap=()=>{if(D.getEnv("YARGS_DISABLE_WRAP"))return null;if(!H)f=k(),H=!0;return f};let x="__yargsString__:";$.deferY18nLookup=(w)=>x+w,$.help=function(){if(C)return C;A();let h=u.customScriptName?u.$0:D.path.basename(u.$0),n=u.getDemandedOptions(),r=u.getDemandedCommands(),i=u.getDeprecatedOptions(),v=u.getGroups(),d=u.getOptions(),a=[];a=a.concat(Object.keys(G)),a=a.concat(Object.keys(n)),a=a.concat(Object.keys(r)),a=a.concat(Object.keys(d.default)),a=a.filter(_),a=Object.keys(a.reduce((g,O0)=>{if(O0!=="_")g[O0]=!0;return g},{}));let L0=$.getWrap(),t=D.cliui({width:L0,wrap:!!L0});if(!W){if(Q.length)Q.forEach((g)=>{if(t.div({text:`${g[0].replace(/\$0/g,h)}`}),g[1])t.div({text:`${g[1]}`,padding:[1,0,0,0]})}),t.div();else if(J.length){let g=null;if(r._)g=`${h} <${F("command")}>
|
|
104
|
+
`;else g=`${h} [${F("command")}]
|
|
105
|
+
`;t.div(`${g}`)}}if(J.length>1||J.length===1&&!J[0][2]){t.div(F("Commands:"));let g=u.getInternalMethods().getContext(),O0=g.commands.length?`${g.commands.join(" ")} `:"";if(u.getInternalMethods().getParserConfiguration()["sort-commands"]===!0)J=J.sort((p,W0)=>p[0].localeCompare(W0[0]));let n0=h?`${h} `:"";J.forEach((p)=>{let W0=`${n0}${O0}${p[0].replace(/^\$0 ?/,"")}`;t.span({text:W0,padding:[0,2,0,2],width:L(J,L0,`${h}${O0}`)+4},{text:p[1]});let l=[];if(p[2])l.push(`[${F("default")}]`);if(p[3]&&p[3].length)l.push(`[${F("aliases:")} ${p[3].join(", ")}]`);if(p[4])if(typeof p[4]==="string")l.push(`[${F("deprecated: %s",p[4])}]`);else l.push(`[${F("deprecated")}]`);if(l.length)t.div({text:l.join(" "),padding:[0,0,0,2],align:"right"});else t.div()}),t.div()}let u0=(Object.keys(d.alias)||[]).concat(Object.keys(u.parsed.newAliases)||[]);a=a.filter((g)=>!u.parsed.newAliases[g]&&u0.every((O0)=>(d.alias[O0]||[]).indexOf(g)===-1));let E0=F("Options:");if(!v[E0])v[E0]=[];I(a,d.alias,v,E0);let Z0=(g)=>/^--/.test(U7(g)),b0=Object.keys(v).filter((g)=>v[g].length>0).map((g)=>{let O0=v[g].filter(_).map((n0)=>{if(u0.includes(n0))return n0;for(let p=0,W0;(W0=u0[p])!==void 0;p++)if((d.alias[W0]||[]).includes(n0))return W0;return n0});return{groupName:g,normalizedKeys:O0}}).filter(({normalizedKeys:g})=>g.length>0).map(({groupName:g,normalizedKeys:O0})=>{let n0=O0.reduce((p,W0)=>{return p[W0]=[W0].concat(d.alias[W0]||[]).map((l)=>{if(g===$.getPositionalGroupName())return l;else return(/^[0-9]$/.test(l)?d.boolean.includes(W0)?"-":"--":l.length>1?"--":"-")+l}).sort((l,Y0)=>Z0(l)===Z0(Y0)?0:Z0(l)?1:-1).join(", "),p},{});return{groupName:g,normalizedKeys:O0,switches:n0}});if(b0.filter(({groupName:g})=>g!==$.getPositionalGroupName()).some(({normalizedKeys:g,switches:O0})=>!g.every((n0)=>Z0(O0[n0]))))b0.filter(({groupName:g})=>g!==$.getPositionalGroupName()).forEach(({normalizedKeys:g,switches:O0})=>{g.forEach((n0)=>{if(Z0(O0[n0]))O0[n0]=Ei(O0[n0],4)})});if(b0.forEach(({groupName:g,normalizedKeys:O0,switches:n0})=>{t.div(g),O0.forEach((p)=>{let W0=n0[p],l=G[p]||"",Y0=null;if(l.includes(x))l=F(l.substring(x.length));if(d.boolean.includes(p))Y0=`[${F("boolean")}]`;if(d.count.includes(p))Y0=`[${F("count")}]`;if(d.string.includes(p))Y0=`[${F("string")}]`;if(d.normalize.includes(p))Y0=`[${F("string")}]`;if(d.array.includes(p))Y0=`[${F("array")}]`;if(d.number.includes(p))Y0=`[${F("number")}]`;let c0=(s)=>typeof s==="string"?`[${F("deprecated: %s",s)}]`:`[${F("deprecated")}]`,j=[p in i?c0(i[p]):null,Y0,p in n?`[${F("required")}]`:null,d.choices&&d.choices[p]?`[${F("choices:")} ${$.stringifiedValues(d.choices[p])}]`:null,R(d.default[p],d.defaultDescription[p])].filter(Boolean).join(" ");t.span({text:U7(W0),padding:[0,2,0,2+cX(W0)],width:L(n0,L0)+4},l);let T=u.getInternalMethods().getUsageConfiguration()["hide-types"]===!0;if(j&&!T)t.div({text:j,padding:[0,0,0,2],align:"right"});else t.div()}),t.div()}),Y.length)t.div(F("Examples:")),Y.forEach((g)=>{g[0]=g[0].replace(/\$0/g,h)}),Y.forEach((g)=>{if(g[1]==="")t.div({text:g[0],padding:[0,2,0,2]});else t.div({text:g[0],padding:[0,2,0,2],width:L(Y,L0)+4},{text:g[1]})}),t.div();if(K.length>0){let g=K.map((O0)=>O0.replace(/\$0/g,h)).join(`
|
|
106
|
+
`);t.div(`${g}
|
|
107
|
+
`)}return t.toString().replace(/\s*$/,"")};function L(w,h,n){let r=0;if(!Array.isArray(w))w=Object.values(w).map((i)=>[i]);if(w.forEach((i)=>{r=Math.max(D.stringWidth(n?`${n} ${U7(i[0])}`:U7(i[0]))+cX(i[0]),r)}),h)r=Math.min(r,parseInt((h*0.5).toString(),10));return r}function A(){let w=u.getDemandedOptions(),h=u.getOptions();(Object.keys(h.alias)||[]).forEach((n)=>{h.alias[n].forEach((r)=>{if(G[r])$.describe(n,G[r]);if(r in w)u.demandOption(n,w[r]);if(h.boolean.includes(r))u.boolean(n);if(h.count.includes(r))u.count(n);if(h.string.includes(r))u.string(n);if(h.normalize.includes(r))u.normalize(n);if(h.array.includes(r))u.array(n);if(h.number.includes(r))u.number(n)})})}let C;$.cacheHelpMessage=function(){C=this.help()},$.clearCachedHelpMessage=function(){C=void 0},$.hasCachedHelpMessage=function(){return!!C};function I(w,h,n,r){let i=[],v=null;return Object.keys(n).forEach((d)=>{i=i.concat(n[d])}),w.forEach((d)=>{if(v=[d].concat(h[d]),!v.some((a)=>i.indexOf(a)!==-1))n[r].push(d)}),i}function _(w){return u.getOptions().hiddenOptions.indexOf(w)<0||u.parsed.argv[u.getOptions().showHiddenOpt]}$.showHelp=(w)=>{let h=u.getInternalMethods().getLoggerInstance();if(!w)w="error";(typeof w==="function"?w:h[w])($.help())},$.functionDescription=(w)=>{return["(",w.name?D.Parser.decamelize(w.name,"-"):F("generated-value"),")"].join("")},$.stringifiedValues=function(h,n){let r="",i=n||", ",v=[].concat(h);if(!h||!v.length)return r;return v.forEach((d)=>{if(r.length)r+=i;r+=JSON.stringify(d)}),r};function R(w,h){let n=`[${F("default:")} `;if(w===void 0&&!h)return null;if(h)n+=h;else switch(typeof w){case"string":n+=`"${w}"`;break;case"object":n+=JSON.stringify(w);break;default:n+=w}return`${n}]`}function k(){if(D.process.stdColumns)return Math.min(80,D.process.stdColumns);else return 80}let c=null;$.version=(w)=>{c=w},$.showVersion=(w)=>{let h=u.getInternalMethods().getLoggerInstance();if(!w)w="error";(typeof w==="function"?w:h[w])(c)},$.reset=function(h){return z=null,X=!1,Q=[],W=!1,K=[],Y=[],J=[],G=U1(G,(n)=>!h[n]),$};let e=[];return $.freeze=function(){e.push({failMessage:z,failureOutput:X,usages:Q,usageDisabled:W,epilogs:K,examples:Y,commands:J,descriptions:G})},$.unfreeze=function(h=!1){let n=e.pop();if(!n)return;if(h)G={...n.descriptions,...G},J=[...n.commands,...J],Q=[...n.usages,...Q],Y=[...n.examples,...Y],K=[...n.epilogs,...K];else({failMessage:z,failureOutput:X,usages:Q,usageDisabled:W,epilogs:K,examples:Y,commands:J,descriptions:G}=n)},$}function Z$(u){return typeof u==="object"}function Ei(u,D){return Z$(u)?{text:u.text,indentation:u.indentation+D}:{text:u,indentation:D}}function cX(u){return Z$(u)?u.indentation:0}function U7(u){return Z$(u)?u.text:u}var nX=`###-begin-{{app_name}}-completions-###
|
|
108
|
+
#
|
|
109
|
+
# yargs command completion script
|
|
110
|
+
#
|
|
111
|
+
# Installation: {{app_path}} {{completion_command}} >> ~/.bashrc
|
|
112
|
+
# or {{app_path}} {{completion_command}} >> ~/.bash_profile on OSX.
|
|
113
|
+
#
|
|
114
|
+
_{{app_name}}_yargs_completions()
|
|
115
|
+
{
|
|
116
|
+
local cur_word args type_list
|
|
117
|
+
|
|
118
|
+
cur_word="\${COMP_WORDS[COMP_CWORD]}"
|
|
119
|
+
args=("\${COMP_WORDS[@]}")
|
|
120
|
+
|
|
121
|
+
# ask yargs to generate completions.
|
|
122
|
+
# see https://stackoverflow.com/a/40944195/7080036 for the spaces-handling awk
|
|
123
|
+
mapfile -t type_list < <({{app_path}} --get-yargs-completions "\${args[@]}")
|
|
124
|
+
mapfile -t COMPREPLY < <(compgen -W "$( printf '%q ' "\${type_list[@]}" )" -- "\${cur_word}" |
|
|
125
|
+
awk '/ / { print "\\""$0"\\"" } /^[^ ]+$/ { print $0 }')
|
|
126
|
+
|
|
127
|
+
# if no match was found, fall back to filename completion
|
|
128
|
+
if [ \${#COMPREPLY[@]} -eq 0 ]; then
|
|
129
|
+
COMPREPLY=()
|
|
130
|
+
fi
|
|
131
|
+
|
|
132
|
+
return 0
|
|
133
|
+
}
|
|
134
|
+
complete -o bashdefault -o default -F _{{app_name}}_yargs_completions {{app_name}}
|
|
135
|
+
###-end-{{app_name}}-completions-###
|
|
136
|
+
`,pX=`#compdef {{app_name}}
|
|
137
|
+
###-begin-{{app_name}}-completions-###
|
|
138
|
+
#
|
|
139
|
+
# yargs command completion script
|
|
140
|
+
#
|
|
141
|
+
# Installation: {{app_path}} {{completion_command}} >> ~/.zshrc
|
|
142
|
+
# or {{app_path}} {{completion_command}} >> ~/.zprofile on OSX.
|
|
143
|
+
#
|
|
144
|
+
_{{app_name}}_yargs_completions()
|
|
145
|
+
{
|
|
146
|
+
local reply
|
|
147
|
+
local si=$IFS
|
|
148
|
+
IFS=$'
|
|
149
|
+
' reply=($(COMP_CWORD="$((CURRENT-1))" COMP_LINE="$BUFFER" COMP_POINT="$CURSOR" {{app_path}} --get-yargs-completions "\${words[@]}"))
|
|
150
|
+
IFS=$si
|
|
151
|
+
if [[ \${#reply} -gt 0 ]]; then
|
|
152
|
+
_describe 'values' reply
|
|
153
|
+
else
|
|
154
|
+
_default
|
|
155
|
+
fi
|
|
156
|
+
}
|
|
157
|
+
if [[ "'\${zsh_eval_context[-1]}" == "loadautofunc" ]]; then
|
|
158
|
+
_{{app_name}}_yargs_completions "$@"
|
|
159
|
+
else
|
|
160
|
+
compdef _{{app_name}}_yargs_completions {{app_name}}
|
|
161
|
+
fi
|
|
162
|
+
###-end-{{app_name}}-completions-###
|
|
163
|
+
`;class lX{constructor(u,D,F,$){var B,z,Z;this.yargs=u,this.usage=D,this.command=F,this.shim=$,this.completionKey="get-yargs-completions",this.aliases=null,this.customCompletionFunction=null,this.indexAfterLastReset=0,this.zshShell=(Z=((B=this.shim.getEnv("SHELL"))===null||B===void 0?void 0:B.includes("zsh"))||((z=this.shim.getEnv("ZSH_NAME"))===null||z===void 0?void 0:z.includes("zsh")))!==null&&Z!==void 0?Z:!1}defaultCompletion(u,D,F,$){let B=this.command.getCommandHandlers();for(let Z=0,q=u.length;Z<q;++Z)if(B[u[Z]]&&B[u[Z]].builder){let X=B[u[Z]].builder;if(_7(X)){this.indexAfterLastReset=Z+1;let Q=this.yargs.getInternalMethods().reset();return X(Q,!0),Q.argv}}let z=[];this.commandCompletions(z,u,F),this.optionCompletions(z,u,D,F),this.choicesFromOptionsCompletions(z,u,D,F),this.choicesFromPositionalsCompletions(z,u,D,F),$(null,z)}commandCompletions(u,D,F){let $=this.yargs.getInternalMethods().getContext().commands;if(!F.match(/^-/)&&$[$.length-1]!==F&&!this.previousArgHasChoices(D))this.usage.getCommands().forEach((B)=>{let z=_1(B[0]).cmd;if(D.indexOf(z)===-1)if(!this.zshShell)u.push(z);else{let Z=B[1]||"";u.push(z.replace(/:/g,"\\:")+":"+Z)}})}optionCompletions(u,D,F,$){if(($.match(/^-/)||$===""&&u.length===0)&&!this.previousArgHasChoices(D)){let B=this.yargs.getOptions(),z=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[];Object.keys(B.key).forEach((Z)=>{let q=!!B.configuration["boolean-negation"]&&B.boolean.includes(Z);if(!z.includes(Z)&&!B.hiddenOptions.includes(Z)&&!this.argsContainKey(D,Z,q))this.completeOptionKey(Z,u,$,q&&!!B.default[Z])})}}choicesFromOptionsCompletions(u,D,F,$){if(this.previousArgHasChoices(D)){let B=this.getPreviousArgChoices(D);if(B&&B.length>0)u.push(...B.map((z)=>z.replace(/:/g,"\\:")))}}choicesFromPositionalsCompletions(u,D,F,$){if($===""&&u.length>0&&this.previousArgHasChoices(D))return;let B=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[],z=Math.max(this.indexAfterLastReset,this.yargs.getInternalMethods().getContext().commands.length+1),Z=B[F._.length-z-1];if(!Z)return;let q=this.yargs.getOptions().choices[Z]||[];for(let X of q)if(X.startsWith($))u.push(X.replace(/:/g,"\\:"))}getPreviousArgChoices(u){if(u.length<1)return;let D=u[u.length-1],F="";if(!D.startsWith("-")&&u.length>1)F=D,D=u[u.length-2];if(!D.startsWith("-"))return;let $=D.replace(/^-+/,""),B=this.yargs.getOptions(),z=[$,...this.yargs.getAliases()[$]||[]],Z;for(let q of z)if(Object.prototype.hasOwnProperty.call(B.key,q)&&Array.isArray(B.choices[q])){Z=B.choices[q];break}if(Z)return Z.filter((q)=>!F||q.startsWith(F))}previousArgHasChoices(u){let D=this.getPreviousArgChoices(u);return D!==void 0&&D.length>0}argsContainKey(u,D,F){let $=(B)=>u.indexOf((/^[^0-9]$/.test(B)?"-":"--")+B)!==-1;if($(D))return!0;if(F&&$(`no-${D}`))return!0;if(this.aliases){for(let B of this.aliases[D])if($(B))return!0}return!1}completeOptionKey(u,D,F,$){var B,z,Z,q;let X=u;if(this.zshShell){let J=this.usage.getDescriptions(),G=(z=(B=this===null||this===void 0?void 0:this.aliases)===null||B===void 0?void 0:B[u])===null||z===void 0?void 0:z.find((f)=>{let x=J[f];return typeof x==="string"&&x.length>0}),K=G?J[G]:void 0,H=(q=(Z=J[u])!==null&&Z!==void 0?Z:K)!==null&&q!==void 0?q:"";X=`${u.replace(/:/g,"\\:")}:${H.replace("__yargsString__:","").replace(/(\r\n|\n|\r)/gm," ")}`}let Q=(J)=>/^--/.test(J),W=(J)=>/^[^0-9]$/.test(J),Y=!Q(F)&&W(u)?"-":"--";if(D.push(Y+X),$)D.push(Y+"no-"+X)}customCompletion(u,D,F,$){if(Su(this.customCompletionFunction,null,this.shim),Ci(this.customCompletionFunction)){let B=this.customCompletionFunction(F,D);if(l0(B))return B.then((z)=>{this.shim.process.nextTick(()=>{$(null,z)})}).catch((z)=>{this.shim.process.nextTick(()=>{$(z,void 0)})});return $(null,B)}else if(_i(this.customCompletionFunction))return this.customCompletionFunction(F,D,(B=$)=>this.defaultCompletion(u,D,F,B),(B)=>{$(null,B)});else return this.customCompletionFunction(F,D,(B)=>{$(null,B)})}getCompletion(u,D){let F=u.length?u[u.length-1]:"",$=this.yargs.parse(u,!0),B=this.customCompletionFunction?(z)=>this.customCompletion(u,z,F,D):(z)=>this.defaultCompletion(u,z,F,D);return l0($)?$.then(B):B($)}generateCompletionScript(u,D){let F=this.zshShell?pX:nX,$=this.shim.path.basename(u);if(u.match(/\.js$/))u=`./${u}`;return F=F.replace(/{{app_name}}/g,$),F=F.replace(/{{completion_command}}/g,D),F.replace(/{{app_path}}/g,u)}registerFunction(u){this.customCompletionFunction=u}setParsed(u){this.aliases=u.aliases}}function gX(u,D,F,$){return new lX(u,D,F,$)}function Ci(u){return u.length<3}function _i(u){return u.length>3}function dX(u,D){if(u.length===0)return D.length;if(D.length===0)return u.length;let F=[],$;for($=0;$<=D.length;$++)F[$]=[$];let B;for(B=0;B<=u.length;B++)F[0][B]=B;for($=1;$<=D.length;$++)for(B=1;B<=u.length;B++)if(D.charAt($-1)===u.charAt(B-1))F[$][B]=F[$-1][B-1];else if($>1&&B>1&&D.charAt($-2)===u.charAt(B-1)&&D.charAt($-1)===u.charAt(B-2))F[$][B]=F[$-2][B-2]+1;else F[$][B]=Math.min(F[$-1][B-1]+1,Math.min(F[$][B-1]+1,F[$-1][B]+1));return F[D.length][u.length]}var oX=["$0","--","_"];function sX(u,D,F){let $=F.y18n.__,B=F.y18n.__n,z={};z.nonOptionCount=function(Y){let J=u.getDemandedCommands(),K=Y._.length+(Y["--"]?Y["--"].length:0)-u.getInternalMethods().getContext().commands.length;if(J._&&(K<J._.min||K>J._.max)){if(K<J._.min)if(J._.minMsg!==void 0)D.fail(J._.minMsg?J._.minMsg.replace(/\$0/g,K.toString()).replace(/\$1/,J._.min.toString()):null);else D.fail(B("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",K,K.toString(),J._.min.toString()));else if(K>J._.max)if(J._.maxMsg!==void 0)D.fail(J._.maxMsg?J._.maxMsg.replace(/\$0/g,K.toString()).replace(/\$1/,J._.max.toString()):null);else D.fail(B("Too many non-option arguments: got %s, maximum of %s","Too many non-option arguments: got %s, maximum of %s",K,K.toString(),J._.max.toString()))}},z.positionalCount=function(Y,J){if(J<Y)D.fail(B("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",J,J+"",Y+""))},z.requiredArguments=function(Y,J){let G=null;for(let K of Object.keys(J))if(!Object.prototype.hasOwnProperty.call(Y,K)||typeof Y[K]>"u")G=G||{},G[K]=J[K];if(G){let K=[];for(let f of Object.keys(G)){let x=G[f];if(x&&K.indexOf(x)<0)K.push(x)}let H=K.length?`
|
|
164
|
+
${K.join(`
|
|
165
|
+
`)}`:"";D.fail(B("Missing required argument: %s","Missing required arguments: %s",Object.keys(G).length,Object.keys(G).join(", ")+H))}},z.unknownArguments=function(Y,J,G,K,H=!0){var f;let x=u.getInternalMethods().getCommandInstance().getCommands(),L=[],A=u.getInternalMethods().getContext();if(Object.keys(Y).forEach((C)=>{if(!oX.includes(C)&&!Object.prototype.hasOwnProperty.call(G,C)&&!Object.prototype.hasOwnProperty.call(u.getInternalMethods().getParseContext(),C)&&!z.isValidAndSomeAliasIsNotNew(C,J))L.push(C)}),H&&(A.commands.length>0||x.length>0||K))Y._.slice(A.commands.length).forEach((C)=>{if(!x.includes(""+C))L.push(""+C)});if(H){let I=((f=u.getDemandedCommands()._)===null||f===void 0?void 0:f.max)||0,_=A.commands.length+I;if(_<Y._.length)Y._.slice(_).forEach((R)=>{if(R=String(R),!A.commands.includes(R)&&!L.includes(R))L.push(R)})}if(L.length)D.fail(B("Unknown argument: %s","Unknown arguments: %s",L.length,L.map((C)=>C.trim()?C:`"${C}"`).join(", ")))},z.unknownCommands=function(Y){let J=u.getInternalMethods().getCommandInstance().getCommands(),G=[],K=u.getInternalMethods().getContext();if(K.commands.length>0||J.length>0)Y._.slice(K.commands.length).forEach((H)=>{if(!J.includes(""+H))G.push(""+H)});if(G.length>0)return D.fail(B("Unknown command: %s","Unknown commands: %s",G.length,G.join(", "))),!0;else return!1},z.isValidAndSomeAliasIsNotNew=function(Y,J){if(!Object.prototype.hasOwnProperty.call(J,Y))return!1;let G=u.parsed.newAliases;return[Y,...J[Y]].some((K)=>!Object.prototype.hasOwnProperty.call(G,K)||!G[Y])},z.limitedChoices=function(Y){let J=u.getOptions(),G={};if(!Object.keys(J.choices).length)return;Object.keys(Y).forEach((f)=>{if(oX.indexOf(f)===-1&&Object.prototype.hasOwnProperty.call(J.choices,f))[].concat(Y[f]).forEach((x)=>{if(J.choices[f].indexOf(x)===-1&&x!==void 0)G[f]=(G[f]||[]).concat(x)})});let K=Object.keys(G);if(!K.length)return;let H=$("Invalid values:");K.forEach((f)=>{H+=`
|
|
166
|
+
${$("Argument: %s, Given: %s, Choices: %s",f,D.stringifiedValues(G[f]),D.stringifiedValues(J.choices[f]))}`}),D.fail(H)};let Z={};z.implies=function(Y,J){if(q0("<string|object> [array|number|string]",[Y,J],arguments.length),typeof Y==="object")Object.keys(Y).forEach((G)=>{z.implies(G,Y[G])});else{if(u.global(Y),!Z[Y])Z[Y]=[];if(Array.isArray(J))J.forEach((G)=>z.implies(Y,G));else Su(J,void 0,F),Z[Y].push(J)}},z.getImplied=function(){return Z};function q(W,Y){let J=Number(Y);if(Y=isNaN(J)?Y:J,typeof Y==="number")Y=W._.length>=Y;else if(Y.match(/^--no-.+/))Y=Y.match(/^--no-(.+)/)[1],Y=!Object.prototype.hasOwnProperty.call(W,Y);else Y=Object.prototype.hasOwnProperty.call(W,Y);return Y}z.implications=function(Y){let J=[];if(Object.keys(Z).forEach((G)=>{let K=G;(Z[G]||[]).forEach((H)=>{let f=K,x=H;if(f=q(Y,f),H=q(Y,H),f&&!H)J.push(` ${K} -> ${x}`)})}),J.length){let G=`${$("Implications failed:")}
|
|
167
|
+
`;J.forEach((K)=>{G+=K}),D.fail(G)}};let X={};z.conflicts=function(Y,J){if(q0("<string|object> [array|string]",[Y,J],arguments.length),typeof Y==="object")Object.keys(Y).forEach((G)=>{z.conflicts(G,Y[G])});else{if(u.global(Y),!X[Y])X[Y]=[];if(Array.isArray(J))J.forEach((G)=>z.conflicts(Y,G));else X[Y].push(J)}},z.getConflicting=()=>X,z.conflicting=function(Y){if(Object.keys(Y).forEach((J)=>{if(X[J])X[J].forEach((G)=>{if(G&&Y[J]!==void 0&&Y[G]!==void 0)D.fail($("Arguments %s and %s are mutually exclusive",J,G))})}),u.getInternalMethods().getParserConfiguration()["strip-dashed"])Object.keys(X).forEach((J)=>{X[J].forEach((G)=>{if(G&&Y[F.Parser.camelCase(J)]!==void 0&&Y[F.Parser.camelCase(G)]!==void 0)D.fail($("Arguments %s and %s are mutually exclusive",J,G))})})},z.recommendCommands=function(Y,J){J=J.sort((f,x)=>x.length-f.length);let K=null,H=1/0;for(let f=0,x;(x=J[f])!==void 0;f++){let L=dX(Y,x);if(L<=3&&L<H)H=L,K=x}if(K)D.fail($("Did you mean %s?",K))},z.reset=function(Y){return Z=U1(Z,(J)=>!Y[J]),X=U1(X,(J)=>!Y[J]),z};let Q=[];return z.freeze=function(){Q.push({implied:Z,conflicting:X})},z.unfreeze=function(){let Y=Q.pop();Su(Y,void 0,F),{implied:Z,conflicting:X}=Y},z}var q$=[],O8;function i7(u,D,F,$){O8=$;let B={};if(Object.prototype.hasOwnProperty.call(u,"extends")){if(typeof u.extends!=="string")return B;let z=/\.json|\..*rc$/.test(u.extends),Z=null;if(!z)try{Z=import.meta.resolve(u.extends)}catch(q){return u}else Z=ii(D,u.extends);Ui(Z),q$.push(Z),B=z?JSON.parse(O8.readFileSync(Z,"utf8")):$.require(u.extends),delete u.extends,B=i7(B,O8.path.dirname(Z),F,O8)}return q$=[],F?rX(B,u):Object.assign({},B,u)}function Ui(u){if(q$.indexOf(u)>-1)throw new qu(`Circular extended configurations: '${u}'.`)}function ii(u,D){return O8.path.resolve(u,D)}function rX(u,D){let F={};function $(B){return B&&typeof B==="object"&&!Array.isArray(B)}Object.assign(F,u);for(let B of Object.keys(D))if($(D[B])&&$(F[B]))F[B]=rX(u[B],D[B]);else F[B]=D[B];return F}var X0=function(u,D,F,$,B){if($==="m")throw TypeError("Private method is not writable");if($==="a"&&!B)throw TypeError("Private accessor was defined without a setter");if(typeof D==="function"?u!==D||!B:!D.has(u))throw TypeError("Cannot write private member to an object whose class did not declare it");return $==="a"?B.call(u,F):B?B.value=F:D.set(u,F),F},M=function(u,D,F,$){if(F==="a"&&!$)throw TypeError("Private accessor was defined without a getter");if(typeof D==="function"?u!==D||!$:!D.has(u))throw TypeError("Cannot read private member from an object whose class did not declare it");return F==="m"?$:F==="a"?$.call(u):$?$.value:D.get(u)},Xu,KF,A8,gu,zD,v7,v1,HF,S7,HD,T7,fD,rD,ZD,VD,y7,fF,Mu,J0,b7,R7,qD,VF,q6,LF,S1,k7,x0,MF,xF,OF,w0,h7,aD,Bu;function m7(u){return(D=[],F=u.process.cwd(),$)=>{let B=new fQ(D,F,$,u);return Object.defineProperty(B,"argv",{get:()=>{return B.parse()},enumerable:!0}),B.help(),B.version(),B}}var aX=Symbol("copyDoubleDash"),tX=Symbol("copyDoubleDash"),X$=Symbol("deleteFromParserHintObject"),eX=Symbol("emitWarning"),uQ=Symbol("freeze"),DQ=Symbol("getDollarZero"),AF=Symbol("getParserConfiguration"),FQ=Symbol("getUsageConfiguration"),Q$=Symbol("guessLocale"),$Q=Symbol("guessVersion"),BQ=Symbol("parsePositionalNumbers"),W$=Symbol("pkgUp"),T1=Symbol("populateParserHintArray"),X6=Symbol("populateParserHintSingleValueDictionary"),Y$=Symbol("populateParserHintArrayDictionary"),J$=Symbol("populateParserHintDictionary"),G$=Symbol("sanitizeKey"),K$=Symbol("setKey"),H$=Symbol("unfreeze"),zQ=Symbol("validateAsync"),ZQ=Symbol("getCommandInstance"),qQ=Symbol("getContext"),XQ=Symbol("getHasOutput"),QQ=Symbol("getLoggerInstance"),WQ=Symbol("getParseContext"),YQ=Symbol("getUsageInstance"),JQ=Symbol("getValidationInstance"),c7=Symbol("hasParseCallback"),GQ=Symbol("isGlobalContext"),wF=Symbol("postProcess"),KQ=Symbol("rebase"),f$=Symbol("reset"),w8=Symbol("runYargsParserAndExecuteCommands"),V$=Symbol("runValidation"),HQ=Symbol("setHasOutput"),NF=Symbol("kTrackManuallySetKeys"),vi="en_US";class fQ{constructor(u=[],D,F,$){this.customScriptName=!1,this.parsed=!1,Xu.set(this,void 0),KF.set(this,void 0),A8.set(this,{commands:[],fullCommands:[]}),gu.set(this,null),zD.set(this,null),v7.set(this,"show-hidden"),v1.set(this,null),HF.set(this,!0),S7.set(this,{}),HD.set(this,!0),T7.set(this,[]),fD.set(this,void 0),rD.set(this,{}),ZD.set(this,!1),VD.set(this,null),y7.set(this,!0),fF.set(this,void 0),Mu.set(this,""),J0.set(this,void 0),b7.set(this,void 0),R7.set(this,{}),qD.set(this,null),VF.set(this,null),q6.set(this,{}),LF.set(this,{}),S1.set(this,void 0),k7.set(this,!1),x0.set(this,void 0),MF.set(this,!1),xF.set(this,!1),OF.set(this,!1),w0.set(this,void 0),h7.set(this,{}),aD.set(this,null),Bu.set(this,void 0),X0(this,x0,$,"f"),X0(this,S1,u,"f"),X0(this,KF,D,"f"),X0(this,b7,F,"f"),X0(this,fD,new z$(this),"f"),this.$0=this[DQ](),this[f$](),X0(this,Xu,M(this,Xu,"f"),"f"),X0(this,w0,M(this,w0,"f"),"f"),X0(this,Bu,M(this,Bu,"f"),"f"),X0(this,J0,M(this,J0,"f"),"f"),M(this,J0,"f").showHiddenOpt=M(this,v7,"f"),X0(this,fF,this[tX](),"f"),M(this,x0,"f").y18n.setLocale(vi)}addHelpOpt(u,D){if(q0("[string|boolean] [string]",[u,D],arguments.length),M(this,VD,"f"))this[X$](M(this,VD,"f")),X0(this,VD,null,"f");if(u===!1&&D===void 0)return this;return X0(this,VD,typeof u==="string"?u:"help","f"),this.boolean(M(this,VD,"f")),this.describe(M(this,VD,"f"),D||M(this,w0,"f").deferY18nLookup("Show help")),this}help(u,D){return this.addHelpOpt(u,D)}addShowHiddenOpt(u,D){if(q0("[string|boolean] [string]",[u,D],arguments.length),u===!1&&D===void 0)return this;let F=typeof u==="string"?u:M(this,v7,"f");return this.boolean(F),this.describe(F,D||M(this,w0,"f").deferY18nLookup("Show hidden options")),M(this,J0,"f").showHiddenOpt=F,this}showHidden(u,D){return this.addShowHiddenOpt(u,D)}alias(u,D){return q0("<object|string|array> [string|array]",[u,D],arguments.length),this[Y$](this.alias.bind(this),"alias",u,D),this}array(u){return q0("<array|string>",[u],arguments.length),this[T1]("array",u),this[NF](u),this}boolean(u){return q0("<array|string>",[u],arguments.length),this[T1]("boolean",u),this[NF](u),this}check(u,D){return q0("<function> [boolean]",[u,D],arguments.length),this.middleware((F,$)=>{return GF(()=>{return u(F,$.getOptions())},(B)=>{if(!B)M(this,w0,"f").fail(M(this,x0,"f").y18n.__("Argument check failed: %s",u.toString()));else if(typeof B==="string"||B instanceof Error)M(this,w0,"f").fail(B.toString(),B);return F},(B)=>{return M(this,w0,"f").fail(B.message?B.message:B.toString(),B),F})},!1,D),this}choices(u,D){return q0("<object|string|array> [string|array]",[u,D],arguments.length),this[Y$](this.choices.bind(this),"choices",u,D),this}coerce(u,D){if(q0("<object|string|array> [function]",[u,D],arguments.length),Array.isArray(u)){if(!D)throw new qu("coerce callback must be provided");for(let $ of u)this.coerce($,D);return this}else if(typeof u==="object"){for(let $ of Object.keys(u))this.coerce($,u[$]);return this}if(!D)throw new qu("coerce callback must be provided");let F=u;return M(this,J0,"f").key[F]=!0,M(this,fD,"f").addCoerceMiddleware(($,B)=>{var z;let Z=(z=B.getAliases()[F])!==null&&z!==void 0?z:[],q=[F,...Z].filter((X)=>Object.prototype.hasOwnProperty.call($,X));if(q.length===0)return $;return GF(()=>{return D($[q[0]])},(X)=>{return q.forEach((Q)=>{$[Q]=X}),$},(X)=>{throw new qu(X.message)})},F),this}conflicts(u,D){return q0("<string|object> [string|array]",[u,D],arguments.length),M(this,Bu,"f").conflicts(u,D),this}config(u="config",D,F){if(q0("[object|string] [string|function] [function]",[u,D,F],arguments.length),typeof u==="object"&&!Array.isArray(u))return u=i7(u,M(this,KF,"f"),this[AF]()["deep-merge-config"]||!1,M(this,x0,"f")),M(this,J0,"f").configObjects=(M(this,J0,"f").configObjects||[]).concat(u),this;if(typeof D==="function")F=D,D=void 0;return this.describe(u,D||M(this,w0,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(u)?u:[u]).forEach(($)=>{M(this,J0,"f").config[$]=F||!0}),this}completion(u,D,F){if(q0("[string] [string|boolean|function] [function]",[u,D,F],arguments.length),typeof D==="function")F=D,D=void 0;if(X0(this,zD,u||M(this,zD,"f")||"completion","f"),!D&&D!==!1)D="generate completion script";if(this.command(M(this,zD,"f"),D),F)M(this,gu,"f").registerFunction(F);return this}command(u,D,F,$,B,z){return q0("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[u,D,F,$,B,z],arguments.length),M(this,Xu,"f").addHandler(u,D,F,$,B,z),this}commands(u,D,F,$,B,z){return this.command(u,D,F,$,B,z)}commandDir(u,D){q0("<string> [object]",[u,D],arguments.length);let F=M(this,b7,"f")||M(this,x0,"f").require;return M(this,Xu,"f").addDirectory(u,F,M(this,x0,"f").getCallerFile(),D),this}count(u){return q0("<array|string>",[u],arguments.length),this[T1]("count",u),this[NF](u),this}default(u,D,F){if(q0("<object|string|array> [*] [string]",[u,D,F],arguments.length),F)B$(u,M(this,x0,"f")),M(this,J0,"f").defaultDescription[u]=F;if(typeof D==="function"){if(B$(u,M(this,x0,"f")),!M(this,J0,"f").defaultDescription[u])M(this,J0,"f").defaultDescription[u]=M(this,w0,"f").functionDescription(D);D=D.call()}return this[X6](this.default.bind(this),"default",u,D),this}defaults(u,D,F){return this.default(u,D,F)}demandCommand(u=1,D,F,$){if(q0("[number] [number|string] [string|null|undefined] [string|null|undefined]",[u,D,F,$],arguments.length),typeof D!=="number")F=D,D=1/0;return this.global("_",!1),M(this,J0,"f").demandedCommands._={min:u,max:D,minMsg:F,maxMsg:$},this}demand(u,D,F){if(Array.isArray(D))D.forEach(($)=>{Su(F,!0,M(this,x0,"f")),this.demandOption($,F)}),D=1/0;else if(typeof D!=="number")F=D,D=1/0;if(typeof u==="number")Su(F,!0,M(this,x0,"f")),this.demandCommand(u,D,F,F);else if(Array.isArray(u))u.forEach(($)=>{Su(F,!0,M(this,x0,"f")),this.demandOption($,F)});else if(typeof F==="string")this.demandOption(u,F);else if(F===!0||typeof F>"u")this.demandOption(u);return this}demandOption(u,D){return q0("<object|string|array> [string]",[u,D],arguments.length),this[X6](this.demandOption.bind(this),"demandedOptions",u,D),this}deprecateOption(u,D){return q0("<string> [string|boolean]",[u,D],arguments.length),M(this,J0,"f").deprecatedOptions[u]=D,this}describe(u,D){return q0("<object|string|array> [string]",[u,D],arguments.length),this[K$](u,!0),M(this,w0,"f").describe(u,D),this}detectLocale(u){return q0("<boolean>",[u],arguments.length),X0(this,HF,u,"f"),this}env(u){if(q0("[string|boolean]",[u],arguments.length),u===!1)delete M(this,J0,"f").envPrefix;else M(this,J0,"f").envPrefix=u||"";return this}epilogue(u){return q0("<string>",[u],arguments.length),M(this,w0,"f").epilog(u),this}epilog(u){return this.epilogue(u)}example(u,D){if(q0("<string|array> [string]",[u,D],arguments.length),Array.isArray(u))u.forEach((F)=>this.example(...F));else M(this,w0,"f").example(u,D);return this}exit(u,D){if(X0(this,ZD,!0,"f"),X0(this,v1,D,"f"),M(this,HD,"f"))M(this,x0,"f").process.exit(u)}exitProcess(u=!0){return q0("[boolean]",[u],arguments.length),X0(this,HD,u,"f"),this}fail(u){if(q0("<function|boolean>",[u],arguments.length),typeof u==="boolean"&&u!==!1)throw new qu("Invalid first argument. Expected function or boolean 'false'");return M(this,w0,"f").failFn(u),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(u,D){if(q0("<array> [function]",[u,D],arguments.length),!D)return new Promise((F,$)=>{M(this,gu,"f").getCompletion(u,(B,z)=>{if(B)$(B);else F(z)})});else return M(this,gu,"f").getCompletion(u,D)}getDemandedOptions(){return q0([],0),M(this,J0,"f").demandedOptions}getDemandedCommands(){return q0([],0),M(this,J0,"f").demandedCommands}getDeprecatedOptions(){return q0([],0),M(this,J0,"f").deprecatedOptions}getDetectLocale(){return M(this,HF,"f")}getExitProcess(){return M(this,HD,"f")}getGroups(){return Object.assign({},M(this,rD,"f"),M(this,LF,"f"))}getHelp(){if(X0(this,ZD,!0,"f"),!M(this,w0,"f").hasCachedHelpMessage()){if(!this.parsed){let D=this[w8](M(this,S1,"f"),void 0,void 0,0,!0);if(l0(D))return D.then(()=>{return M(this,w0,"f").help()})}let u=M(this,Xu,"f").runDefaultBuilderOn(this);if(l0(u))return u.then(()=>{return M(this,w0,"f").help()})}return Promise.resolve(M(this,w0,"f").help())}getOptions(){return M(this,J0,"f")}getStrict(){return M(this,MF,"f")}getStrictCommands(){return M(this,xF,"f")}getStrictOptions(){return M(this,OF,"f")}global(u,D){if(q0("<string|array> [boolean]",[u,D],arguments.length),u=[].concat(u),D!==!1)M(this,J0,"f").local=M(this,J0,"f").local.filter((F)=>u.indexOf(F)===-1);else u.forEach((F)=>{if(!M(this,J0,"f").local.includes(F))M(this,J0,"f").local.push(F)});return this}group(u,D){q0("<string|array> <string>",[u,D],arguments.length);let F=M(this,LF,"f")[D]||M(this,rD,"f")[D];if(M(this,LF,"f")[D])delete M(this,LF,"f")[D];let $={};return M(this,rD,"f")[D]=(F||[]).concat(u).filter((B)=>{if($[B])return!1;return $[B]=!0}),this}hide(u){return q0("<string>",[u],arguments.length),M(this,J0,"f").hiddenOptions.push(u),this}implies(u,D){return q0("<string|object> [number|string|array]",[u,D],arguments.length),M(this,Bu,"f").implies(u,D),this}locale(u){if(q0("[string]",[u],arguments.length),u===void 0)return this[Q$](),M(this,x0,"f").y18n.getLocale();return X0(this,HF,!1,"f"),M(this,x0,"f").y18n.setLocale(u),this}middleware(u,D,F){return M(this,fD,"f").addMiddleware(u,!!D,F)}nargs(u,D){return q0("<string|object|array> [number]",[u,D],arguments.length),this[X6](this.nargs.bind(this),"narg",u,D),this}normalize(u){return q0("<array|string>",[u],arguments.length),this[T1]("normalize",u),this}number(u){return q0("<array|string>",[u],arguments.length),this[T1]("number",u),this[NF](u),this}option(u,D){if(q0("<string|object> [object]",[u,D],arguments.length),typeof u==="object")Object.keys(u).forEach((F)=>{this.options(F,u[F])});else{if(typeof D!=="object")D={};if(this[NF](u),M(this,aD,"f")&&(u==="version"||(D===null||D===void 0?void 0:D.alias)==="version"))this[eX](['"version" is a reserved word.',"Please do one of the following:",'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)","- Use a different option key","https://yargs.js.org/docs/#api-reference-version"].join(`
|
|
168
|
+
`),void 0,"versionWarning");if(M(this,J0,"f").key[u]=!0,D.alias)this.alias(u,D.alias);let F=D.deprecate||D.deprecated;if(F)this.deprecateOption(u,F);let $=D.demand||D.required||D.require;if($)this.demand(u,$);if(D.demandOption)this.demandOption(u,typeof D.demandOption==="string"?D.demandOption:void 0);if(D.conflicts)this.conflicts(u,D.conflicts);if("default"in D)this.default(u,D.default);if(D.implies!==void 0)this.implies(u,D.implies);if(D.nargs!==void 0)this.nargs(u,D.nargs);if(D.config)this.config(u,D.configParser);if(D.normalize)this.normalize(u);if(D.choices)this.choices(u,D.choices);if(D.coerce)this.coerce(u,D.coerce);if(D.group)this.group(u,D.group);if(D.boolean||D.type==="boolean"){if(this.boolean(u),D.alias)this.boolean(D.alias)}if(D.array||D.type==="array"){if(this.array(u),D.alias)this.array(D.alias)}if(D.number||D.type==="number"){if(this.number(u),D.alias)this.number(D.alias)}if(D.string||D.type==="string"){if(this.string(u),D.alias)this.string(D.alias)}if(D.count||D.type==="count")this.count(u);if(typeof D.global==="boolean")this.global(u,D.global);if(D.defaultDescription)M(this,J0,"f").defaultDescription[u]=D.defaultDescription;if(D.skipValidation)this.skipValidation(u);let B=D.describe||D.description||D.desc,z=M(this,w0,"f").getDescriptions();if(!Object.prototype.hasOwnProperty.call(z,u)||typeof B==="string")this.describe(u,B);if(D.hidden)this.hide(u);if(D.requiresArg)this.requiresArg(u)}return this}options(u,D){return this.option(u,D)}parse(u,D,F){if(q0("[string|array] [function|boolean|object] [function]",[u,D,F],arguments.length),this[uQ](),typeof u>"u")u=M(this,S1,"f");if(typeof D==="object")X0(this,VF,D,"f"),D=F;if(typeof D==="function")X0(this,qD,D,"f"),D=!1;if(!D)X0(this,S1,u,"f");if(M(this,qD,"f"))X0(this,HD,!1,"f");let $=this[w8](u,!!D),B=this.parsed;if(M(this,gu,"f").setParsed(this.parsed),l0($))return $.then((z)=>{if(M(this,qD,"f"))M(this,qD,"f").call(this,M(this,v1,"f"),z,M(this,Mu,"f"));return z}).catch((z)=>{if(M(this,qD,"f"))M(this,qD,"f")(z,this.parsed.argv,M(this,Mu,"f"));throw z}).finally(()=>{this[H$](),this.parsed=B});else{if(M(this,qD,"f"))M(this,qD,"f").call(this,M(this,v1,"f"),$,M(this,Mu,"f"));this[H$](),this.parsed=B}return $}parseAsync(u,D,F){let $=this.parse(u,D,F);return!l0($)?Promise.resolve($):$}parseSync(u,D,F){let $=this.parse(u,D,F);if(l0($))throw new qu(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return $}parserConfiguration(u){return q0("<object>",[u],arguments.length),X0(this,R7,u,"f"),this}pkgConf(u,D){q0("<string> [string]",[u,D],arguments.length);let F=null,$=this[W$](D||M(this,KF,"f"));if($[u]&&typeof $[u]==="object")F=i7($[u],D||M(this,KF,"f"),this[AF]()["deep-merge-config"]||!1,M(this,x0,"f")),M(this,J0,"f").configObjects=(M(this,J0,"f").configObjects||[]).concat(F);return this}positional(u,D){q0("<string> <object>",[u,D],arguments.length);let F=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];D=U1(D,(z,Z)=>{if(z==="type"&&!["string","number","boolean"].includes(Z))return!1;return F.includes(z)});let $=M(this,A8,"f").fullCommands[M(this,A8,"f").fullCommands.length-1],B=$?M(this,Xu,"f").cmdToParseOptions($):{array:[],alias:{},default:{},demand:{}};return z6(B).forEach((z)=>{let Z=B[z];if(Array.isArray(Z)){if(Z.indexOf(u)!==-1)D[z]=!0}else if(Z[u]&&!(z in D))D[z]=Z[u]}),this.group(u,M(this,w0,"f").getPositionalGroupName()),this.option(u,D)}recommendCommands(u=!0){return q0("[boolean]",[u],arguments.length),X0(this,k7,u,"f"),this}required(u,D,F){return this.demand(u,D,F)}require(u,D,F){return this.demand(u,D,F)}requiresArg(u){if(q0("<array|string|object> [number]",[u],arguments.length),typeof u==="string"&&M(this,J0,"f").narg[u])return this;else this[X6](this.requiresArg.bind(this),"narg",u,NaN);return this}showCompletionScript(u,D){return q0("[string] [string]",[u,D],arguments.length),u=u||this.$0,M(this,fF,"f").log(M(this,gu,"f").generateCompletionScript(u,D||M(this,zD,"f")||"completion")),this}showHelp(u){if(q0("[string|function]",[u],arguments.length),X0(this,ZD,!0,"f"),!M(this,w0,"f").hasCachedHelpMessage()){if(!this.parsed){let F=this[w8](M(this,S1,"f"),void 0,void 0,0,!0);if(l0(F))return F.then(()=>{M(this,w0,"f").showHelp(u)}),this}let D=M(this,Xu,"f").runDefaultBuilderOn(this);if(l0(D))return D.then(()=>{M(this,w0,"f").showHelp(u)}),this}return M(this,w0,"f").showHelp(u),this}scriptName(u){return this.customScriptName=!0,this.$0=u,this}showHelpOnFail(u,D){return q0("[boolean|string] [string]",[u,D],arguments.length),M(this,w0,"f").showHelpOnFail(u,D),this}showVersion(u){return q0("[string|function]",[u],arguments.length),M(this,w0,"f").showVersion(u),this}skipValidation(u){return q0("<array|string>",[u],arguments.length),this[T1]("skipValidation",u),this}strict(u){return q0("[boolean]",[u],arguments.length),X0(this,MF,u!==!1,"f"),this}strictCommands(u){return q0("[boolean]",[u],arguments.length),X0(this,xF,u!==!1,"f"),this}strictOptions(u){return q0("[boolean]",[u],arguments.length),X0(this,OF,u!==!1,"f"),this}string(u){return q0("<array|string>",[u],arguments.length),this[T1]("string",u),this[NF](u),this}terminalWidth(){return q0([],0),M(this,x0,"f").process.stdColumns}updateLocale(u){return this.updateStrings(u)}updateStrings(u){return q0("<object>",[u],arguments.length),X0(this,HF,!1,"f"),M(this,x0,"f").y18n.updateLocale(u),this}usage(u,D,F,$){if(q0("<string|null|undefined> [string|boolean] [function|object] [function]",[u,D,F,$],arguments.length),D!==void 0)if(Su(u,null,M(this,x0,"f")),(u||"").match(/^\$0( |$)/))return this.command(u,D,F,$);else throw new qu(".usage() description must start with $0 if being used as alias for .command()");else return M(this,w0,"f").usage(u),this}usageConfiguration(u){return q0("<object>",[u],arguments.length),X0(this,h7,u,"f"),this}version(u,D,F){if(q0("[boolean|string] [string] [string]",[u,D,F],arguments.length),M(this,aD,"f"))this[X$](M(this,aD,"f")),M(this,w0,"f").version(void 0),X0(this,aD,null,"f");if(arguments.length===0)F=this[$Q](),u="version";else if(arguments.length===1){if(u===!1)return this;F=u,u="version"}else if(arguments.length===2)F=D,D=void 0;return X0(this,aD,typeof u==="string"?u:"version","f"),D=D||M(this,w0,"f").deferY18nLookup("Show version number"),M(this,w0,"f").version(F||void 0),this.boolean(M(this,aD,"f")),this.describe(M(this,aD,"f"),D),this}wrap(u){return q0("<number|null|undefined>",[u],arguments.length),M(this,w0,"f").wrap(u),this}[(Xu=new WeakMap,KF=new WeakMap,A8=new WeakMap,gu=new WeakMap,zD=new WeakMap,v7=new WeakMap,v1=new WeakMap,HF=new WeakMap,S7=new WeakMap,HD=new WeakMap,T7=new WeakMap,fD=new WeakMap,rD=new WeakMap,ZD=new WeakMap,VD=new WeakMap,y7=new WeakMap,fF=new WeakMap,Mu=new WeakMap,J0=new WeakMap,b7=new WeakMap,R7=new WeakMap,qD=new WeakMap,VF=new WeakMap,q6=new WeakMap,LF=new WeakMap,S1=new WeakMap,k7=new WeakMap,x0=new WeakMap,MF=new WeakMap,xF=new WeakMap,OF=new WeakMap,w0=new WeakMap,h7=new WeakMap,aD=new WeakMap,Bu=new WeakMap,aX)](u){if(!u._||!u["--"])return u;u._.push.apply(u._,u["--"]);try{delete u["--"]}catch(D){}return u}[tX](){return{log:(...u)=>{if(!this[c7]())console.log(...u);if(X0(this,ZD,!0,"f"),M(this,Mu,"f").length)X0(this,Mu,M(this,Mu,"f")+`
|
|
169
|
+
`,"f");X0(this,Mu,M(this,Mu,"f")+u.join(" "),"f")},error:(...u)=>{if(!this[c7]())console.error(...u);if(X0(this,ZD,!0,"f"),M(this,Mu,"f").length)X0(this,Mu,M(this,Mu,"f")+`
|
|
170
|
+
`,"f");X0(this,Mu,M(this,Mu,"f")+u.join(" "),"f")}}}[X$](u){z6(M(this,J0,"f")).forEach((D)=>{if((($)=>$==="configObjects")(D))return;let F=M(this,J0,"f")[D];if(Array.isArray(F)){if(F.includes(u))F.splice(F.indexOf(u),1)}else if(typeof F==="object")delete F[u]}),delete M(this,w0,"f").getDescriptions()[u]}[eX](u,D,F){if(!M(this,S7,"f")[F])M(this,x0,"f").process.emitWarning(u,D),M(this,S7,"f")[F]=!0}[uQ](){M(this,T7,"f").push({options:M(this,J0,"f"),configObjects:M(this,J0,"f").configObjects.slice(0),exitProcess:M(this,HD,"f"),groups:M(this,rD,"f"),strict:M(this,MF,"f"),strictCommands:M(this,xF,"f"),strictOptions:M(this,OF,"f"),completionCommand:M(this,zD,"f"),output:M(this,Mu,"f"),exitError:M(this,v1,"f"),hasOutput:M(this,ZD,"f"),parsed:this.parsed,parseFn:M(this,qD,"f"),parseContext:M(this,VF,"f")}),M(this,w0,"f").freeze(),M(this,Bu,"f").freeze(),M(this,Xu,"f").freeze(),M(this,fD,"f").freeze()}[DQ](){let u="",D;if(/\b(node|iojs|electron)(\.exe)?$/.test(M(this,x0,"f").process.argv()[0]))D=M(this,x0,"f").process.argv().slice(1,2);else D=M(this,x0,"f").process.argv().slice(0,1);if(u=D.map((F)=>{let $=this[KQ](M(this,KF,"f"),F);return F.match(/^(\/|([a-zA-Z]:)?\\)/)&&$.length<F.length?$:F}).join(" ").trim(),M(this,x0,"f").getEnv("_")&&M(this,x0,"f").getProcessArgvBin()===M(this,x0,"f").getEnv("_"))u=M(this,x0,"f").getEnv("_").replace(`${M(this,x0,"f").path.dirname(M(this,x0,"f").process.execPath())}/`,"");return u}[AF](){return M(this,R7,"f")}[FQ](){return M(this,h7,"f")}[Q$](){if(!M(this,HF,"f"))return;let u=M(this,x0,"f").getEnv("LC_ALL")||M(this,x0,"f").getEnv("LC_MESSAGES")||M(this,x0,"f").getEnv("LANG")||M(this,x0,"f").getEnv("LANGUAGE")||"en_US";this.locale(u.replace(/[.:].*/,""))}[$Q](){return this[W$]().version||"unknown"}[BQ](u){let D=u["--"]?u["--"]:u._;for(let F=0,$;($=D[F])!==void 0;F++)if(M(this,x0,"f").Parser.looksLikeNumber($)&&Number.isSafeInteger(Math.floor(parseFloat(`${$}`))))D[F]=Number($);return u}[W$](u){let D=u||"*";if(M(this,q6,"f")[D])return M(this,q6,"f")[D];let F={};try{let $=u||M(this,x0,"f").mainFilename;if(M(this,x0,"f").path.extname($))$=M(this,x0,"f").path.dirname($);let B=M(this,x0,"f").findUp($,(z,Z)=>{if(Z.includes("package.json"))return"package.json";else return});Su(B,void 0,M(this,x0,"f")),F=JSON.parse(M(this,x0,"f").readFileSync(B,"utf8"))}catch($){}return M(this,q6,"f")[D]=F||{},M(this,q6,"f")[D]}[T1](u,D){D=[].concat(D),D.forEach((F)=>{F=this[G$](F),M(this,J0,"f")[u].push(F)})}[X6](u,D,F,$){this[J$](u,D,F,$,(B,z,Z)=>{M(this,J0,"f")[B][z]=Z})}[Y$](u,D,F,$){this[J$](u,D,F,$,(B,z,Z)=>{M(this,J0,"f")[B][z]=(M(this,J0,"f")[B][z]||[]).concat(Z)})}[J$](u,D,F,$,B){if(Array.isArray(F))F.forEach((z)=>{u(z,$)});else if(((z)=>typeof z==="object")(F))for(let z of z6(F))u(z,F[z]);else B(D,this[G$](F),$)}[G$](u){if(u==="__proto__")return"___proto___";return u}[K$](u,D){return this[X6](this[K$].bind(this),"key",u,D),this}[H$](){var u,D,F,$,B,z,Z,q,X,Q,W,Y;let J=M(this,T7,"f").pop();Su(J,void 0,M(this,x0,"f"));let G;u=this,D=this,F=this,$=this,B=this,z=this,Z=this,q=this,X=this,Q=this,W=this,Y=this,{options:{set value(K){X0(u,J0,K,"f")}}.value,configObjects:G,exitProcess:{set value(K){X0(D,HD,K,"f")}}.value,groups:{set value(K){X0(F,rD,K,"f")}}.value,output:{set value(K){X0($,Mu,K,"f")}}.value,exitError:{set value(K){X0(B,v1,K,"f")}}.value,hasOutput:{set value(K){X0(z,ZD,K,"f")}}.value,parsed:this.parsed,strict:{set value(K){X0(Z,MF,K,"f")}}.value,strictCommands:{set value(K){X0(q,xF,K,"f")}}.value,strictOptions:{set value(K){X0(X,OF,K,"f")}}.value,completionCommand:{set value(K){X0(Q,zD,K,"f")}}.value,parseFn:{set value(K){X0(W,qD,K,"f")}}.value,parseContext:{set value(K){X0(Y,VF,K,"f")}}.value}=J,M(this,J0,"f").configObjects=G,M(this,w0,"f").unfreeze(),M(this,Bu,"f").unfreeze(),M(this,Xu,"f").unfreeze(),M(this,fD,"f").unfreeze()}[zQ](u,D){return GF(D,(F)=>{return u(F),F})}getInternalMethods(){return{getCommandInstance:this[ZQ].bind(this),getContext:this[qQ].bind(this),getHasOutput:this[XQ].bind(this),getLoggerInstance:this[QQ].bind(this),getParseContext:this[WQ].bind(this),getParserConfiguration:this[AF].bind(this),getUsageConfiguration:this[FQ].bind(this),getUsageInstance:this[YQ].bind(this),getValidationInstance:this[JQ].bind(this),hasParseCallback:this[c7].bind(this),isGlobalContext:this[GQ].bind(this),postProcess:this[wF].bind(this),reset:this[f$].bind(this),runValidation:this[V$].bind(this),runYargsParserAndExecuteCommands:this[w8].bind(this),setHasOutput:this[HQ].bind(this)}}[ZQ](){return M(this,Xu,"f")}[qQ](){return M(this,A8,"f")}[XQ](){return M(this,ZD,"f")}[QQ](){return M(this,fF,"f")}[WQ](){return M(this,VF,"f")||{}}[YQ](){return M(this,w0,"f")}[JQ](){return M(this,Bu,"f")}[c7](){return!!M(this,qD,"f")}[GQ](){return M(this,y7,"f")}[wF](u,D,F,$){if(F)return u;if(l0(u))return u;if(!D)u=this[aX](u);if(this[AF]()["parse-positional-numbers"]||this[AF]()["parse-positional-numbers"]===void 0)u=this[BQ](u);if($)u=JF(u,this,M(this,fD,"f").getMiddleware(),!1);return u}[f$](u={}){X0(this,J0,M(this,J0,"f")||{},"f");let D={};D.local=M(this,J0,"f").local||[],D.configObjects=M(this,J0,"f").configObjects||[];let F={};D.local.forEach((z)=>{F[z]=!0,(u[z]||[]).forEach((Z)=>{F[Z]=!0})}),Object.assign(M(this,LF,"f"),Object.keys(M(this,rD,"f")).reduce((z,Z)=>{let q=M(this,rD,"f")[Z].filter((X)=>!(X in F));if(q.length>0)z[Z]=q;return z},{})),X0(this,rD,{},"f");let $=["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"],B=["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"];if($.forEach((z)=>{D[z]=(M(this,J0,"f")[z]||[]).filter((Z)=>!F[Z])}),B.forEach((z)=>{D[z]=U1(M(this,J0,"f")[z],(Z)=>!F[Z])}),D.envPrefix=M(this,J0,"f").envPrefix,X0(this,J0,D,"f"),X0(this,w0,M(this,w0,"f")?M(this,w0,"f").reset(F):mX(this,M(this,x0,"f")),"f"),X0(this,Bu,M(this,Bu,"f")?M(this,Bu,"f").reset(F):sX(this,M(this,w0,"f"),M(this,x0,"f")),"f"),X0(this,Xu,M(this,Xu,"f")?M(this,Xu,"f").reset():kX(M(this,w0,"f"),M(this,Bu,"f"),M(this,fD,"f"),M(this,x0,"f")),"f"),!M(this,gu,"f"))X0(this,gu,gX(this,M(this,w0,"f"),M(this,Xu,"f"),M(this,x0,"f")),"f");return M(this,fD,"f").reset(),X0(this,zD,null,"f"),X0(this,Mu,"","f"),X0(this,v1,null,"f"),X0(this,ZD,!1,"f"),this.parsed=!1,this}[KQ](u,D){return M(this,x0,"f").path.relative(u,D)}[w8](u,D,F,$=0,B=!1){var z,Z,q,X;let Q=!!F||B;u=u||M(this,S1,"f"),M(this,J0,"f").__=M(this,x0,"f").y18n.__,M(this,J0,"f").configuration=this[AF]();let W=!!M(this,J0,"f").configuration["populate--"],Y=Object.assign({},M(this,J0,"f").configuration,{"populate--":!0}),J=M(this,x0,"f").Parser.detailed(u,Object.assign({},M(this,J0,"f"),{configuration:{"parse-positional-numbers":!1,...Y}})),G=Object.assign(J.argv,M(this,VF,"f")),K=void 0,H=J.aliases,f=!1,x=!1;if(Object.keys(G).forEach((L)=>{if(L===M(this,VD,"f")&&G[L])f=!0;else if(L===M(this,aD,"f")&&G[L])x=!0}),G.$0=this.$0,this.parsed=J,$===0)M(this,w0,"f").clearCachedHelpMessage();try{if(this[Q$](),D)return this[wF](G,W,!!F,!1);if(M(this,VD,"f")){if([M(this,VD,"f")].concat(H[M(this,VD,"f")]||[]).filter((_)=>_.length>1).includes(""+G._[G._.length-1]))G._.pop(),f=!0}X0(this,y7,!1,"f");let L=M(this,Xu,"f").getCommands(),A=((z=M(this,gu,"f"))===null||z===void 0?void 0:z.completionKey)?[(Z=M(this,gu,"f"))===null||Z===void 0?void 0:Z.completionKey,...(X=this.getAliases()[(q=M(this,gu,"f"))===null||q===void 0?void 0:q.completionKey])!==null&&X!==void 0?X:[]].some((I)=>Object.prototype.hasOwnProperty.call(G,I)):!1,C=f||A||B;if(G._.length){if(L.length){let I;for(let _=$||0,R;G._[_]!==void 0;_++)if(R=String(G._[_]),L.includes(R)&&R!==M(this,zD,"f")){let k=M(this,Xu,"f").runCommand(R,this,J,_+1,B,f||x||B);return this[wF](k,W,!!F,!1)}else if(!I&&R!==M(this,zD,"f")){I=R;break}if(!M(this,Xu,"f").hasDefaultCommand()&&M(this,k7,"f")&&I&&!C)M(this,Bu,"f").recommendCommands(I,L)}if(M(this,zD,"f")&&G._.includes(M(this,zD,"f"))&&!A){if(M(this,HD,"f"))i1(!0);this.showCompletionScript(),this.exit(0)}}if(M(this,Xu,"f").hasDefaultCommand()&&!C){let I=M(this,Xu,"f").runCommand(null,this,J,0,B,f||x||B);return this[wF](I,W,!!F,!1)}if(A){if(M(this,HD,"f"))i1(!0);u=[].concat(u);let I=u.slice(u.indexOf(`--${M(this,gu,"f").completionKey}`)+1);return M(this,gu,"f").getCompletion(I,(_,R)=>{if(_)throw new qu(_.message);(R||[]).forEach((k)=>{M(this,fF,"f").log(k)}),this.exit(0)}),this[wF](G,!W,!!F,!1)}if(!M(this,ZD,"f")){if(f){if(M(this,HD,"f"))i1(!0);Q=!0,this.showHelp((I)=>{M(this,fF,"f").log(I),this.exit(0)})}else if(x){if(M(this,HD,"f"))i1(!0);Q=!0,M(this,w0,"f").showVersion("log"),this.exit(0)}}if(!Q&&M(this,J0,"f").skipValidation.length>0)Q=Object.keys(G).some((I)=>M(this,J0,"f").skipValidation.indexOf(I)>=0&&G[I]===!0);if(!Q){if(J.error)throw new qu(J.error.message);if(!A){let I=this[V$](H,{},J.error);if(!F)K=JF(G,this,M(this,fD,"f").getMiddleware(),!0);if(K=this[zQ](I,K!==null&&K!==void 0?K:G),l0(K)&&!F)K=K.then(()=>{return JF(G,this,M(this,fD,"f").getMiddleware(),!1)})}}}catch(L){if(L instanceof qu)M(this,w0,"f").fail(L.message,L);else throw L}return this[wF](K!==null&&K!==void 0?K:G,W,!!F,!0)}[V$](u,D,F,$){let B={...this.getDemandedOptions()};return(z)=>{if(F)throw new qu(F.message);M(this,Bu,"f").nonOptionCount(z),M(this,Bu,"f").requiredArguments(z,B);let Z=!1;if(M(this,xF,"f"))Z=M(this,Bu,"f").unknownCommands(z);if(M(this,MF,"f")&&!Z)M(this,Bu,"f").unknownArguments(z,u,D,!!$);else if(M(this,OF,"f"))M(this,Bu,"f").unknownArguments(z,u,{},!1,!1);M(this,Bu,"f").limitedChoices(z),M(this,Bu,"f").implications(z),M(this,Bu,"f").conflicting(z)}}[HQ](){X0(this,ZD,!0,"f")}[NF](u){if(typeof u==="string")M(this,J0,"f").key[u]=!0;else for(let D of u)M(this,J0,"f").key[D]=!0}}function hX(u){return!!u&&typeof u.getInternalMethods==="function"}var Si=m7(C7),VQ=Si;var Ti=/(?:\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.))|(?:{(~)?(#?[\w:]+(?:\([^)]*\))?(?:\.#?[\w:]+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(})|((?:.|[\r\n\f])+?)/gi,LQ=/(?:^|\.)(?:(?:(\w+)(?:\(([^)]*)\))?)|(?:#(?=[:a-fA-F\d]{2,})([a-fA-F\d]{6})?(?::([a-fA-F\d]{6}))?))/g,yi=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,bi=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,Ri=new Map([["n",`
|
|
171
|
+
`],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\x00"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function xQ(u){let D=u[0]==="u",F=u[1]==="{";if(D&&!F&&u.length===5||u[0]==="x"&&u.length===3)return String.fromCodePoint(Number.parseInt(u.slice(1),16));if(D&&F)return String.fromCodePoint(Number.parseInt(u.slice(2,-1),16));return Ri.get(u)||u}function ki(u,D){let F=[],$=D.trim().split(/\s*,\s*/g),B;for(let z of $){let Z=Number(z);if(!Number.isNaN(Z))F.push(Z);else if(B=z.match(yi))F.push(B[2].replace(bi,(q,X,Q)=>X?xQ(X):Q));else throw Error(`Invalid Chalk template style argument: ${z} (in style '${u}')`)}return F}function MQ(u){let D=Number.parseInt(u,16);return[D>>16&255,D>>8&255,D&255]}function hi(u){LQ.lastIndex=0;let D=[],F;while((F=LQ.exec(u))!==null){let $=F[1];if(F[2])D.push([$,...ki($,F[2])]);else if(F[3]||F[4]){if(F[3])D.push(["rgb",...MQ(F[3])]);if(F[4])D.push(["bgRgb",...MQ(F[4])])}else D.push([$])}return D}function OQ(u){function D($){let B={};for(let Z of $)for(let q of Z.styles)B[q[0]]=Z.inverse?null:q.slice(1);let z=u;for(let[Z,q]of Object.entries(B)){if(!Array.isArray(q))continue;if(!(Z in z))throw Error(`Unknown Chalk style: ${Z}`);z=q.length>0?z[Z](...q):z[Z]}return z}function F($){let B=[],z=[],Z=[];if($.replace(Ti,(q,X,Q,W,Y,J)=>{if(X)Z.push(xQ(X));else if(W){let G=Z.join("");Z=[],z.push(B.length===0?G:D(B)(G)),B.push({inverse:Q,styles:hi(W)})}else if(Y){if(B.length===0)throw Error("Found extraneous } in Chalk template literal");z.push(D(B)(Z.join(""))),Z=[],B.pop()}else Z.push(J)}),z.push(Z.join("")),B.length>0)throw Error(`Chalk template literal is missing ${B.length} closing bracket${B.length===1?"":"s"} (\`}\`)`);return z.join("")}return F}function AQ(u){function D(F,...$){if(!Array.isArray(F)||!Array.isArray(F.raw))throw TypeError("A tagged template literal must be provided");let B=[F.raw[0]];for(let z=1;z<F.raw.length;z++)B.push(String($[z-1]).replace(/[{}\\]/g,"\\$&"),String(F.raw[z]));return u(B.join(""))}return D}var ci=OQ(C1),S=AQ(ci),mi=OQ(w7),Q20=AQ(mi);var c_=M0(Q6(),1),L7=M0(du(),1);import Oq from"path";/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */function bY(u){return typeof u>"u"||u===null}function BT(u){return typeof u==="object"&&u!==null}function zT(u){if(Array.isArray(u))return u;else if(bY(u))return[];return[u]}function ZT(u,D){var F,$,B,z;if(D){z=Object.keys(D);for(F=0,$=z.length;F<$;F+=1)B=z[F],u[B]=D[B]}return u}function qT(u,D){var F="",$;for($=0;$<D;$+=1)F+=u;return F}function XT(u){return u===0&&Number.NEGATIVE_INFINITY===1/u}var QT=bY,WT=BT,YT=zT,JT=qT,GT=XT,KT=ZT,Hu={isNothing:QT,isObject:WT,toArray:YT,repeat:JT,isNegativeZero:GT,extend:KT};function RY(u,D){var F="",$=u.reason||"(unknown reason)";if(!u.mark)return $;if(u.mark.name)F+='in "'+u.mark.name+'" ';if(F+="("+(u.mark.line+1)+":"+(u.mark.column+1)+")",!D&&u.mark.snippet)F+=`
|
|
172
|
+
|
|
173
|
+
`+u.mark.snippet;return $+" "+F}function i8(u,D){if(Error.call(this),this.name="YAMLException",this.reason=u,this.mark=D,this.message=RY(this,!1),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);else this.stack=Error().stack||""}i8.prototype=Object.create(Error.prototype);i8.prototype.constructor=i8;i8.prototype.toString=function(D){return this.name+": "+RY(this,D)};var ku=i8;function v$(u,D,F,$,B){var z="",Z="",q=Math.floor(B/2)-1;if($-D>q)z=" ... ",D=$-q+z.length;if(F-$>q)Z=" ...",F=$+q-Z.length;return{str:z+u.slice(D,F).replace(/\t/g,"→")+Z,pos:$-D+z.length}}function S$(u,D){return Hu.repeat(" ",D-u.length)+u}function HT(u,D){if(D=Object.create(D||null),!u.buffer)return null;if(!D.maxLength)D.maxLength=79;if(typeof D.indent!=="number")D.indent=1;if(typeof D.linesBefore!=="number")D.linesBefore=3;if(typeof D.linesAfter!=="number")D.linesAfter=2;var F=/\r?\n|\r|\0/g,$=[0],B=[],z,Z=-1;while(z=F.exec(u.buffer))if(B.push(z.index),$.push(z.index+z[0].length),u.position<=z.index&&Z<0)Z=$.length-2;if(Z<0)Z=$.length-1;var q="",X,Q,W=Math.min(u.line+D.linesAfter,B.length).toString().length,Y=D.maxLength-(D.indent+W+3);for(X=1;X<=D.linesBefore;X++){if(Z-X<0)break;Q=v$(u.buffer,$[Z-X],B[Z-X],u.position-($[Z]-$[Z-X]),Y),q=Hu.repeat(" ",D.indent)+S$((u.line-X+1).toString(),W)+" | "+Q.str+`
|
|
174
|
+
`+q}Q=v$(u.buffer,$[Z],B[Z],u.position,Y),q+=Hu.repeat(" ",D.indent)+S$((u.line+1).toString(),W)+" | "+Q.str+`
|
|
175
|
+
`,q+=Hu.repeat("-",D.indent+W+3+Q.pos)+`^
|
|
176
|
+
`;for(X=1;X<=D.linesAfter;X++){if(Z+X>=B.length)break;Q=v$(u.buffer,$[Z+X],B[Z+X],u.position-($[Z]-$[Z+X]),Y),q+=Hu.repeat(" ",D.indent)+S$((u.line+X+1).toString(),W)+" | "+Q.str+`
|
|
177
|
+
`}return q.replace(/\n$/,"")}var fT=HT,VT=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],LT=["scalar","sequence","mapping"];function MT(u){var D={};if(u!==null)Object.keys(u).forEach(function(F){u[F].forEach(function($){D[String($)]=F})});return D}function xT(u,D){if(D=D||{},Object.keys(D).forEach(function(F){if(VT.indexOf(F)===-1)throw new ku('Unknown option "'+F+'" is met in definition of "'+u+'" YAML type.')}),this.options=D,this.tag=u,this.kind=D.kind||null,this.resolve=D.resolve||function(){return!0},this.construct=D.construct||function(F){return F},this.instanceOf=D.instanceOf||null,this.predicate=D.predicate||null,this.represent=D.represent||null,this.representName=D.representName||null,this.defaultStyle=D.defaultStyle||null,this.multi=D.multi||!1,this.styleAliases=MT(D.styleAliases||null),LT.indexOf(this.kind)===-1)throw new ku('Unknown kind "'+this.kind+'" is specified for "'+u+'" YAML type.')}var ju=xT;function AY(u,D){var F=[];return u[D].forEach(function($){var B=F.length;F.forEach(function(z,Z){if(z.tag===$.tag&&z.kind===$.kind&&z.multi===$.multi)B=Z}),F[B]=$}),F}function OT(){var u={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},D,F;function $(B){if(B.multi)u.multi[B.kind].push(B),u.multi.fallback.push(B);else u[B.kind][B.tag]=u.fallback[B.tag]=B}for(D=0,F=arguments.length;D<F;D+=1)arguments[D].forEach($);return u}function y$(u){return this.extend(u)}y$.prototype.extend=function(D){var F=[],$=[];if(D instanceof ju)$.push(D);else if(Array.isArray(D))$=$.concat(D);else if(D&&(Array.isArray(D.implicit)||Array.isArray(D.explicit))){if(D.implicit)F=F.concat(D.implicit);if(D.explicit)$=$.concat(D.explicit)}else throw new ku("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");F.forEach(function(z){if(!(z instanceof ju))throw new ku("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(z.loadKind&&z.loadKind!=="scalar")throw new ku("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(z.multi)throw new ku("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),$.forEach(function(z){if(!(z instanceof ju))throw new ku("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var B=Object.create(y$.prototype);return B.implicit=(this.implicit||[]).concat(F),B.explicit=(this.explicit||[]).concat($),B.compiledImplicit=AY(B,"implicit"),B.compiledExplicit=AY(B,"explicit"),B.compiledTypeMap=OT(B.compiledImplicit,B.compiledExplicit),B};var AT=y$,wT=new ju("tag:yaml.org,2002:str",{kind:"scalar",construct:function(u){return u!==null?u:""}}),NT=new ju("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(u){return u!==null?u:[]}}),jT=new ju("tag:yaml.org,2002:map",{kind:"mapping",construct:function(u){return u!==null?u:{}}}),kY=new AT({explicit:[wT,NT,jT]});function IT(u){if(u===null)return!0;var D=u.length;return D===1&&u==="~"||D===4&&(u==="null"||u==="Null"||u==="NULL")}function ET(){return null}function PT(u){return u===null}var CT=new ju("tag:yaml.org,2002:null",{kind:"scalar",resolve:IT,construct:ET,predicate:PT,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function _T(u){if(u===null)return!1;var D=u.length;return D===4&&(u==="true"||u==="True"||u==="TRUE")||D===5&&(u==="false"||u==="False"||u==="FALSE")}function UT(u){return u==="true"||u==="True"||u==="TRUE"}function iT(u){return Object.prototype.toString.call(u)==="[object Boolean]"}var vT=new ju("tag:yaml.org,2002:bool",{kind:"scalar",resolve:_T,construct:UT,predicate:iT,represent:{lowercase:function(u){return u?"true":"false"},uppercase:function(u){return u?"TRUE":"FALSE"},camelcase:function(u){return u?"True":"False"}},defaultStyle:"lowercase"});function ST(u){return 48<=u&&u<=57||65<=u&&u<=70||97<=u&&u<=102}function TT(u){return 48<=u&&u<=55}function yT(u){return 48<=u&&u<=57}function bT(u){if(u===null)return!1;var D=u.length,F=0,$=!1,B;if(!D)return!1;if(B=u[F],B==="-"||B==="+")B=u[++F];if(B==="0"){if(F+1===D)return!0;if(B=u[++F],B==="b"){F++;for(;F<D;F++){if(B=u[F],B==="_")continue;if(B!=="0"&&B!=="1")return!1;$=!0}return $&&B!=="_"}if(B==="x"){F++;for(;F<D;F++){if(B=u[F],B==="_")continue;if(!ST(u.charCodeAt(F)))return!1;$=!0}return $&&B!=="_"}if(B==="o"){F++;for(;F<D;F++){if(B=u[F],B==="_")continue;if(!TT(u.charCodeAt(F)))return!1;$=!0}return $&&B!=="_"}}if(B==="_")return!1;for(;F<D;F++){if(B=u[F],B==="_")continue;if(!yT(u.charCodeAt(F)))return!1;$=!0}if(!$||B==="_")return!1;return!0}function RT(u){var D=u,F=1,$;if(D.indexOf("_")!==-1)D=D.replace(/_/g,"");if($=D[0],$==="-"||$==="+"){if($==="-")F=-1;D=D.slice(1),$=D[0]}if(D==="0")return 0;if($==="0"){if(D[1]==="b")return F*parseInt(D.slice(2),2);if(D[1]==="x")return F*parseInt(D.slice(2),16);if(D[1]==="o")return F*parseInt(D.slice(2),8)}return F*parseInt(D,10)}function kT(u){return Object.prototype.toString.call(u)==="[object Number]"&&(u%1===0&&!Hu.isNegativeZero(u))}var hT=new ju("tag:yaml.org,2002:int",{kind:"scalar",resolve:bT,construct:RT,predicate:kT,represent:{binary:function(u){return u>=0?"0b"+u.toString(2):"-0b"+u.toString(2).slice(1)},octal:function(u){return u>=0?"0o"+u.toString(8):"-0o"+u.toString(8).slice(1)},decimal:function(u){return u.toString(10)},hexadecimal:function(u){return u>=0?"0x"+u.toString(16).toUpperCase():"-0x"+u.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),cT=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function mT(u){if(u===null)return!1;if(!cT.test(u)||u[u.length-1]==="_")return!1;return!0}function nT(u){var D,F;if(D=u.replace(/_/g,"").toLowerCase(),F=D[0]==="-"?-1:1,"+-".indexOf(D[0])>=0)D=D.slice(1);if(D===".inf")return F===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;else if(D===".nan")return NaN;return F*parseFloat(D,10)}var pT=/^[-+]?[0-9]+e/;function lT(u,D){var F;if(isNaN(u))switch(D){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===u)switch(D){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===u)switch(D){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Hu.isNegativeZero(u))return"-0.0";return F=u.toString(10),pT.test(F)?F.replace("e",".e"):F}function gT(u){return Object.prototype.toString.call(u)==="[object Number]"&&(u%1!==0||Hu.isNegativeZero(u))}var dT=new ju("tag:yaml.org,2002:float",{kind:"scalar",resolve:mT,construct:nT,predicate:gT,represent:lT,defaultStyle:"lowercase"}),oT=kY.extend({implicit:[CT,vT,hT,dT]}),sT=oT,hY=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),cY=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function rT(u){if(u===null)return!1;if(hY.exec(u)!==null)return!0;if(cY.exec(u)!==null)return!0;return!1}function aT(u){var D,F,$,B,z,Z,q,X=0,Q=null,W,Y,J;if(D=hY.exec(u),D===null)D=cY.exec(u);if(D===null)throw Error("Date resolve error");if(F=+D[1],$=+D[2]-1,B=+D[3],!D[4])return new Date(Date.UTC(F,$,B));if(z=+D[4],Z=+D[5],q=+D[6],D[7]){X=D[7].slice(0,3);while(X.length<3)X+="0";X=+X}if(D[9]){if(W=+D[10],Y=+(D[11]||0),Q=(W*60+Y)*60000,D[9]==="-")Q=-Q}if(J=new Date(Date.UTC(F,$,B,z,Z,q,X)),Q)J.setTime(J.getTime()-Q);return J}function tT(u){return u.toISOString()}var eT=new ju("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:rT,construct:aT,instanceOf:Date,represent:tT});function uy(u){return u==="<<"||u===null}var Dy=new ju("tag:yaml.org,2002:merge",{kind:"scalar",resolve:uy}),c$=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
178
|
+
\r`;function Fy(u){if(u===null)return!1;var D,F,$=0,B=u.length,z=c$;for(F=0;F<B;F++){if(D=z.indexOf(u.charAt(F)),D>64)continue;if(D<0)return!1;$+=6}return $%8===0}function $y(u){var D,F,$=u.replace(/[\r\n=]/g,""),B=$.length,z=c$,Z=0,q=[];for(D=0;D<B;D++){if(D%4===0&&D)q.push(Z>>16&255),q.push(Z>>8&255),q.push(Z&255);Z=Z<<6|z.indexOf($.charAt(D))}if(F=B%4*6,F===0)q.push(Z>>16&255),q.push(Z>>8&255),q.push(Z&255);else if(F===18)q.push(Z>>10&255),q.push(Z>>2&255);else if(F===12)q.push(Z>>4&255);return new Uint8Array(q)}function By(u){var D="",F=0,$,B,z=u.length,Z=c$;for($=0;$<z;$++){if($%3===0&&$)D+=Z[F>>18&63],D+=Z[F>>12&63],D+=Z[F>>6&63],D+=Z[F&63];F=(F<<8)+u[$]}if(B=z%3,B===0)D+=Z[F>>18&63],D+=Z[F>>12&63],D+=Z[F>>6&63],D+=Z[F&63];else if(B===2)D+=Z[F>>10&63],D+=Z[F>>4&63],D+=Z[F<<2&63],D+=Z[64];else if(B===1)D+=Z[F>>2&63],D+=Z[F<<4&63],D+=Z[64],D+=Z[64];return D}function zy(u){return Object.prototype.toString.call(u)==="[object Uint8Array]"}var Zy=new ju("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Fy,construct:$y,predicate:zy,represent:By}),qy=Object.prototype.hasOwnProperty,Xy=Object.prototype.toString;function Qy(u){if(u===null)return!0;var D=[],F,$,B,z,Z,q=u;for(F=0,$=q.length;F<$;F+=1){if(B=q[F],Z=!1,Xy.call(B)!=="[object Object]")return!1;for(z in B)if(qy.call(B,z))if(!Z)Z=!0;else return!1;if(!Z)return!1;if(D.indexOf(z)===-1)D.push(z);else return!1}return!0}function Wy(u){return u!==null?u:[]}var Yy=new ju("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Qy,construct:Wy}),Jy=Object.prototype.toString;function Gy(u){if(u===null)return!0;var D,F,$,B,z,Z=u;z=Array(Z.length);for(D=0,F=Z.length;D<F;D+=1){if($=Z[D],Jy.call($)!=="[object Object]")return!1;if(B=Object.keys($),B.length!==1)return!1;z[D]=[B[0],$[B[0]]]}return!0}function Ky(u){if(u===null)return[];var D,F,$,B,z,Z=u;z=Array(Z.length);for(D=0,F=Z.length;D<F;D+=1)$=Z[D],B=Object.keys($),z[D]=[B[0],$[B[0]]];return z}var Hy=new ju("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Gy,construct:Ky}),fy=Object.prototype.hasOwnProperty;function Vy(u){if(u===null)return!0;var D,F=u;for(D in F)if(fy.call(F,D)){if(F[D]!==null)return!1}return!0}function Ly(u){return u!==null?u:{}}var My=new ju("tag:yaml.org,2002:set",{kind:"mapping",resolve:Vy,construct:Ly}),m$=sT.extend({implicit:[eT,Dy],explicit:[Zy,Yy,Hy,My]}),m1=Object.prototype.hasOwnProperty,u9=1,mY=2,nY=3,D9=4,T$=1,xy=2,wY=3,Oy=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Ay=/[\x85\u2028\u2029]/,wy=/[,\[\]\{\}]/,pY=/^(?:!|!!|![a-z\-]+!)$/i,lY=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function NY(u){return Object.prototype.toString.call(u)}function eD(u){return u===10||u===13}function EF(u){return u===9||u===32}function ou(u){return u===9||u===32||u===10||u===13}function f6(u){return u===44||u===91||u===93||u===123||u===125}function Ny(u){var D;if(48<=u&&u<=57)return u-48;if(D=u|32,97<=D&&D<=102)return D-97+10;return-1}function jy(u){if(u===120)return 2;if(u===117)return 4;if(u===85)return 8;return 0}function Iy(u){if(48<=u&&u<=57)return u-48;return-1}function jY(u){return u===48?"\x00":u===97?"\x07":u===98?"\b":u===116?"\t":u===9?"\t":u===110?`
|
|
179
|
+
`:u===118?"\v":u===102?"\f":u===114?"\r":u===101?"\x1B":u===32?" ":u===34?'"':u===47?"/":u===92?"\\":u===78?"
":u===95?" ":u===76?"\u2028":u===80?"\u2029":""}function Ey(u){if(u<=65535)return String.fromCharCode(u);return String.fromCharCode((u-65536>>10)+55296,(u-65536&1023)+56320)}function gY(u,D,F){if(D==="__proto__")Object.defineProperty(u,D,{configurable:!0,enumerable:!0,writable:!0,value:F});else u[D]=F}var dY=Array(256),oY=Array(256);for(h1=0;h1<256;h1++)dY[h1]=jY(h1)?1:0,oY[h1]=jY(h1);var h1;function Py(u,D){this.input=u,this.filename=D.filename||null,this.schema=D.schema||m$,this.onWarning=D.onWarning||null,this.legacy=D.legacy||!1,this.json=D.json||!1,this.listener=D.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=u.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function sY(u,D){var F={name:u.filename,buffer:u.input.slice(0,-1),position:u.position,line:u.line,column:u.position-u.lineStart};return F.snippet=fT(F),new ku(D,F)}function f0(u,D){throw sY(u,D)}function F9(u,D){if(u.onWarning)u.onWarning.call(null,sY(u,D))}var IY={YAML:function(D,F,$){var B,z,Z;if(D.version!==null)f0(D,"duplication of %YAML directive");if($.length!==1)f0(D,"YAML directive accepts exactly one argument");if(B=/^([0-9]+)\.([0-9]+)$/.exec($[0]),B===null)f0(D,"ill-formed argument of the YAML directive");if(z=parseInt(B[1],10),Z=parseInt(B[2],10),z!==1)f0(D,"unacceptable YAML version of the document");if(D.version=$[0],D.checkLineBreaks=Z<2,Z!==1&&Z!==2)F9(D,"unsupported YAML version of the document")},TAG:function(D,F,$){var B,z;if($.length!==2)f0(D,"TAG directive accepts exactly two arguments");if(B=$[0],z=$[1],!pY.test(B))f0(D,"ill-formed tag handle (first argument) of the TAG directive");if(m1.call(D.tagMap,B))f0(D,'there is a previously declared suffix for "'+B+'" tag handle');if(!lY.test(z))f0(D,"ill-formed tag prefix (second argument) of the TAG directive");try{z=decodeURIComponent(z)}catch(Z){f0(D,"tag prefix is malformed: "+z)}D.tagMap[B]=z}};function c1(u,D,F,$){var B,z,Z,q;if(D<F){if(q=u.input.slice(D,F),$){for(B=0,z=q.length;B<z;B+=1)if(Z=q.charCodeAt(B),!(Z===9||32<=Z&&Z<=1114111))f0(u,"expected valid JSON character")}else if(Oy.test(q))f0(u,"the stream contains non-printable characters");u.result+=q}}function EY(u,D,F,$){var B,z,Z,q;if(!Hu.isObject(F))f0(u,"cannot merge mappings; the provided source object is unacceptable");B=Object.keys(F);for(Z=0,q=B.length;Z<q;Z+=1)if(z=B[Z],!m1.call(D,z))gY(D,z,F[z]),$[z]=!0}function V6(u,D,F,$,B,z,Z,q,X){var Q,W;if(Array.isArray(B)){B=Array.prototype.slice.call(B);for(Q=0,W=B.length;Q<W;Q+=1){if(Array.isArray(B[Q]))f0(u,"nested arrays are not supported inside keys");if(typeof B==="object"&&NY(B[Q])==="[object Object]")B[Q]="[object Object]"}}if(typeof B==="object"&&NY(B)==="[object Object]")B="[object Object]";if(B=String(B),D===null)D={};if($==="tag:yaml.org,2002:merge")if(Array.isArray(z))for(Q=0,W=z.length;Q<W;Q+=1)EY(u,D,z[Q],F);else EY(u,D,z,F);else{if(!u.json&&!m1.call(F,B)&&m1.call(D,B))u.line=Z||u.line,u.lineStart=q||u.lineStart,u.position=X||u.position,f0(u,"duplicated mapping key");gY(D,B,z),delete F[B]}return D}function n$(u){var D=u.input.charCodeAt(u.position);if(D===10)u.position++;else if(D===13){if(u.position++,u.input.charCodeAt(u.position)===10)u.position++}else f0(u,"a line break is expected");u.line+=1,u.lineStart=u.position,u.firstTabInLine=-1}function Ju(u,D,F){var $=0,B=u.input.charCodeAt(u.position);while(B!==0){while(EF(B)){if(B===9&&u.firstTabInLine===-1)u.firstTabInLine=u.position;B=u.input.charCodeAt(++u.position)}if(D&&B===35)do B=u.input.charCodeAt(++u.position);while(B!==10&&B!==13&&B!==0);if(eD(B)){n$(u),B=u.input.charCodeAt(u.position),$++,u.lineIndent=0;while(B===32)u.lineIndent++,B=u.input.charCodeAt(++u.position)}else break}if(F!==-1&&$!==0&&u.lineIndent<F)F9(u,"deficient indentation");return $}function z9(u){var D=u.position,F;if(F=u.input.charCodeAt(D),(F===45||F===46)&&F===u.input.charCodeAt(D+1)&&F===u.input.charCodeAt(D+2)){if(D+=3,F=u.input.charCodeAt(D),F===0||ou(F))return!0}return!1}function p$(u,D){if(D===1)u.result+=" ";else if(D>1)u.result+=Hu.repeat(`
|
|
180
|
+
`,D-1)}function Cy(u,D,F){var $,B,z,Z,q,X,Q,W,Y=u.kind,J=u.result,G;if(G=u.input.charCodeAt(u.position),ou(G)||f6(G)||G===35||G===38||G===42||G===33||G===124||G===62||G===39||G===34||G===37||G===64||G===96)return!1;if(G===63||G===45){if(B=u.input.charCodeAt(u.position+1),ou(B)||F&&f6(B))return!1}u.kind="scalar",u.result="",z=Z=u.position,q=!1;while(G!==0){if(G===58){if(B=u.input.charCodeAt(u.position+1),ou(B)||F&&f6(B))break}else if(G===35){if($=u.input.charCodeAt(u.position-1),ou($))break}else if(u.position===u.lineStart&&z9(u)||F&&f6(G))break;else if(eD(G))if(X=u.line,Q=u.lineStart,W=u.lineIndent,Ju(u,!1,-1),u.lineIndent>=D){q=!0,G=u.input.charCodeAt(u.position);continue}else{u.position=Z,u.line=X,u.lineStart=Q,u.lineIndent=W;break}if(q)c1(u,z,Z,!1),p$(u,u.line-X),z=Z=u.position,q=!1;if(!EF(G))Z=u.position+1;G=u.input.charCodeAt(++u.position)}if(c1(u,z,Z,!1),u.result)return!0;return u.kind=Y,u.result=J,!1}function _y(u,D){var F,$,B;if(F=u.input.charCodeAt(u.position),F!==39)return!1;u.kind="scalar",u.result="",u.position++,$=B=u.position;while((F=u.input.charCodeAt(u.position))!==0)if(F===39)if(c1(u,$,u.position,!0),F=u.input.charCodeAt(++u.position),F===39)$=u.position,u.position++,B=u.position;else return!0;else if(eD(F))c1(u,$,B,!0),p$(u,Ju(u,!1,D)),$=B=u.position;else if(u.position===u.lineStart&&z9(u))f0(u,"unexpected end of the document within a single quoted scalar");else u.position++,B=u.position;f0(u,"unexpected end of the stream within a single quoted scalar")}function Uy(u,D){var F,$,B,z,Z,q;if(q=u.input.charCodeAt(u.position),q!==34)return!1;u.kind="scalar",u.result="",u.position++,F=$=u.position;while((q=u.input.charCodeAt(u.position))!==0)if(q===34)return c1(u,F,u.position,!0),u.position++,!0;else if(q===92){if(c1(u,F,u.position,!0),q=u.input.charCodeAt(++u.position),eD(q))Ju(u,!1,D);else if(q<256&&dY[q])u.result+=oY[q],u.position++;else if((Z=jy(q))>0){B=Z,z=0;for(;B>0;B--)if(q=u.input.charCodeAt(++u.position),(Z=Ny(q))>=0)z=(z<<4)+Z;else f0(u,"expected hexadecimal character");u.result+=Ey(z),u.position++}else f0(u,"unknown escape sequence");F=$=u.position}else if(eD(q))c1(u,F,$,!0),p$(u,Ju(u,!1,D)),F=$=u.position;else if(u.position===u.lineStart&&z9(u))f0(u,"unexpected end of the document within a double quoted scalar");else u.position++,$=u.position;f0(u,"unexpected end of the stream within a double quoted scalar")}function iy(u,D){var F=!0,$,B,z,Z=u.tag,q,X=u.anchor,Q,W,Y,J,G,K=Object.create(null),H,f,x,L;if(L=u.input.charCodeAt(u.position),L===91)W=93,G=!1,q=[];else if(L===123)W=125,G=!0,q={};else return!1;if(u.anchor!==null)u.anchorMap[u.anchor]=q;L=u.input.charCodeAt(++u.position);while(L!==0){if(Ju(u,!0,D),L=u.input.charCodeAt(u.position),L===W)return u.position++,u.tag=Z,u.anchor=X,u.kind=G?"mapping":"sequence",u.result=q,!0;else if(!F)f0(u,"missed comma between flow collection entries");else if(L===44)f0(u,"expected the node content, but found ','");if(f=H=x=null,Y=J=!1,L===63){if(Q=u.input.charCodeAt(u.position+1),ou(Q))Y=J=!0,u.position++,Ju(u,!0,D)}if($=u.line,B=u.lineStart,z=u.position,L6(u,D,u9,!1,!0),f=u.tag,H=u.result,Ju(u,!0,D),L=u.input.charCodeAt(u.position),(J||u.line===$)&&L===58)Y=!0,L=u.input.charCodeAt(++u.position),Ju(u,!0,D),L6(u,D,u9,!1,!0),x=u.result;if(G)V6(u,q,K,f,H,x,$,B,z);else if(Y)q.push(V6(u,null,K,f,H,x,$,B,z));else q.push(H);if(Ju(u,!0,D),L=u.input.charCodeAt(u.position),L===44)F=!0,L=u.input.charCodeAt(++u.position);else F=!1}f0(u,"unexpected end of the stream within a flow collection")}function vy(u,D){var F,$,B=T$,z=!1,Z=!1,q=D,X=0,Q=!1,W,Y;if(Y=u.input.charCodeAt(u.position),Y===124)$=!1;else if(Y===62)$=!0;else return!1;u.kind="scalar",u.result="";while(Y!==0)if(Y=u.input.charCodeAt(++u.position),Y===43||Y===45)if(T$===B)B=Y===43?wY:xy;else f0(u,"repeat of a chomping mode identifier");else if((W=Iy(Y))>=0)if(W===0)f0(u,"bad explicit indentation width of a block scalar; it cannot be less than one");else if(!Z)q=D+W-1,Z=!0;else f0(u,"repeat of an indentation width identifier");else break;if(EF(Y)){do Y=u.input.charCodeAt(++u.position);while(EF(Y));if(Y===35)do Y=u.input.charCodeAt(++u.position);while(!eD(Y)&&Y!==0)}while(Y!==0){n$(u),u.lineIndent=0,Y=u.input.charCodeAt(u.position);while((!Z||u.lineIndent<q)&&Y===32)u.lineIndent++,Y=u.input.charCodeAt(++u.position);if(!Z&&u.lineIndent>q)q=u.lineIndent;if(eD(Y)){X++;continue}if(u.lineIndent<q){if(B===wY)u.result+=Hu.repeat(`
|
|
181
|
+
`,z?1+X:X);else if(B===T$){if(z)u.result+=`
|
|
182
|
+
`}break}if($)if(EF(Y))Q=!0,u.result+=Hu.repeat(`
|
|
183
|
+
`,z?1+X:X);else if(Q)Q=!1,u.result+=Hu.repeat(`
|
|
184
|
+
`,X+1);else if(X===0){if(z)u.result+=" "}else u.result+=Hu.repeat(`
|
|
185
|
+
`,X);else u.result+=Hu.repeat(`
|
|
186
|
+
`,z?1+X:X);z=!0,Z=!0,X=0,F=u.position;while(!eD(Y)&&Y!==0)Y=u.input.charCodeAt(++u.position);c1(u,F,u.position,!1)}return!0}function PY(u,D){var F,$=u.tag,B=u.anchor,z=[],Z,q=!1,X;if(u.firstTabInLine!==-1)return!1;if(u.anchor!==null)u.anchorMap[u.anchor]=z;X=u.input.charCodeAt(u.position);while(X!==0){if(u.firstTabInLine!==-1)u.position=u.firstTabInLine,f0(u,"tab characters must not be used in indentation");if(X!==45)break;if(Z=u.input.charCodeAt(u.position+1),!ou(Z))break;if(q=!0,u.position++,Ju(u,!0,-1)){if(u.lineIndent<=D){z.push(null),X=u.input.charCodeAt(u.position);continue}}if(F=u.line,L6(u,D,nY,!1,!0),z.push(u.result),Ju(u,!0,-1),X=u.input.charCodeAt(u.position),(u.line===F||u.lineIndent>D)&&X!==0)f0(u,"bad indentation of a sequence entry");else if(u.lineIndent<D)break}if(q)return u.tag=$,u.anchor=B,u.kind="sequence",u.result=z,!0;return!1}function Sy(u,D,F){var $,B,z,Z,q,X,Q=u.tag,W=u.anchor,Y={},J=Object.create(null),G=null,K=null,H=null,f=!1,x=!1,L;if(u.firstTabInLine!==-1)return!1;if(u.anchor!==null)u.anchorMap[u.anchor]=Y;L=u.input.charCodeAt(u.position);while(L!==0){if(!f&&u.firstTabInLine!==-1)u.position=u.firstTabInLine,f0(u,"tab characters must not be used in indentation");if($=u.input.charCodeAt(u.position+1),z=u.line,(L===63||L===58)&&ou($)){if(L===63){if(f)V6(u,Y,J,G,K,null,Z,q,X),G=K=H=null;x=!0,f=!0,B=!0}else if(f)f=!1,B=!0;else f0(u,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");u.position+=1,L=$}else{if(Z=u.line,q=u.lineStart,X=u.position,!L6(u,F,mY,!1,!0))break;if(u.line===z){L=u.input.charCodeAt(u.position);while(EF(L))L=u.input.charCodeAt(++u.position);if(L===58){if(L=u.input.charCodeAt(++u.position),!ou(L))f0(u,"a whitespace character is expected after the key-value separator within a block mapping");if(f)V6(u,Y,J,G,K,null,Z,q,X),G=K=H=null;x=!0,f=!1,B=!1,G=u.tag,K=u.result}else if(x)f0(u,"can not read an implicit mapping pair; a colon is missed");else return u.tag=Q,u.anchor=W,!0}else if(x)f0(u,"can not read a block mapping entry; a multiline key may not be an implicit key");else return u.tag=Q,u.anchor=W,!0}if(u.line===z||u.lineIndent>D){if(f)Z=u.line,q=u.lineStart,X=u.position;if(L6(u,D,D9,!0,B))if(f)K=u.result;else H=u.result;if(!f)V6(u,Y,J,G,K,H,Z,q,X),G=K=H=null;Ju(u,!0,-1),L=u.input.charCodeAt(u.position)}if((u.line===z||u.lineIndent>D)&&L!==0)f0(u,"bad indentation of a mapping entry");else if(u.lineIndent<D)break}if(f)V6(u,Y,J,G,K,null,Z,q,X);if(x)u.tag=Q,u.anchor=W,u.kind="mapping",u.result=Y;return x}function Ty(u){var D,F=!1,$=!1,B,z,Z;if(Z=u.input.charCodeAt(u.position),Z!==33)return!1;if(u.tag!==null)f0(u,"duplication of a tag property");if(Z=u.input.charCodeAt(++u.position),Z===60)F=!0,Z=u.input.charCodeAt(++u.position);else if(Z===33)$=!0,B="!!",Z=u.input.charCodeAt(++u.position);else B="!";if(D=u.position,F){do Z=u.input.charCodeAt(++u.position);while(Z!==0&&Z!==62);if(u.position<u.length)z=u.input.slice(D,u.position),Z=u.input.charCodeAt(++u.position);else f0(u,"unexpected end of the stream within a verbatim tag")}else{while(Z!==0&&!ou(Z)){if(Z===33)if(!$){if(B=u.input.slice(D-1,u.position+1),!pY.test(B))f0(u,"named tag handle cannot contain such characters");$=!0,D=u.position+1}else f0(u,"tag suffix cannot contain exclamation marks");Z=u.input.charCodeAt(++u.position)}if(z=u.input.slice(D,u.position),wy.test(z))f0(u,"tag suffix cannot contain flow indicator characters")}if(z&&!lY.test(z))f0(u,"tag name cannot contain such characters: "+z);try{z=decodeURIComponent(z)}catch(q){f0(u,"tag name is malformed: "+z)}if(F)u.tag=z;else if(m1.call(u.tagMap,B))u.tag=u.tagMap[B]+z;else if(B==="!")u.tag="!"+z;else if(B==="!!")u.tag="tag:yaml.org,2002:"+z;else f0(u,'undeclared tag handle "'+B+'"');return!0}function yy(u){var D,F;if(F=u.input.charCodeAt(u.position),F!==38)return!1;if(u.anchor!==null)f0(u,"duplication of an anchor property");F=u.input.charCodeAt(++u.position),D=u.position;while(F!==0&&!ou(F)&&!f6(F))F=u.input.charCodeAt(++u.position);if(u.position===D)f0(u,"name of an anchor node must contain at least one character");return u.anchor=u.input.slice(D,u.position),!0}function by(u){var D,F,$;if($=u.input.charCodeAt(u.position),$!==42)return!1;$=u.input.charCodeAt(++u.position),D=u.position;while($!==0&&!ou($)&&!f6($))$=u.input.charCodeAt(++u.position);if(u.position===D)f0(u,"name of an alias node must contain at least one character");if(F=u.input.slice(D,u.position),!m1.call(u.anchorMap,F))f0(u,'unidentified alias "'+F+'"');return u.result=u.anchorMap[F],Ju(u,!0,-1),!0}function L6(u,D,F,$,B){var z,Z,q,X=1,Q=!1,W=!1,Y,J,G,K,H,f;if(u.listener!==null)u.listener("open",u);if(u.tag=null,u.anchor=null,u.kind=null,u.result=null,z=Z=q=D9===F||nY===F,$){if(Ju(u,!0,-1)){if(Q=!0,u.lineIndent>D)X=1;else if(u.lineIndent===D)X=0;else if(u.lineIndent<D)X=-1}}if(X===1)while(Ty(u)||yy(u))if(Ju(u,!0,-1)){if(Q=!0,q=z,u.lineIndent>D)X=1;else if(u.lineIndent===D)X=0;else if(u.lineIndent<D)X=-1}else q=!1;if(q)q=Q||B;if(X===1||D9===F){if(u9===F||mY===F)H=D;else H=D+1;if(f=u.position-u.lineStart,X===1)if(q&&(PY(u,f)||Sy(u,f,H))||iy(u,H))W=!0;else{if(Z&&vy(u,H)||_y(u,H)||Uy(u,H))W=!0;else if(by(u)){if(W=!0,u.tag!==null||u.anchor!==null)f0(u,"alias node should not have any properties")}else if(Cy(u,H,u9===F)){if(W=!0,u.tag===null)u.tag="?"}if(u.anchor!==null)u.anchorMap[u.anchor]=u.result}else if(X===0)W=q&&PY(u,f)}if(u.tag===null){if(u.anchor!==null)u.anchorMap[u.anchor]=u.result}else if(u.tag==="?"){if(u.result!==null&&u.kind!=="scalar")f0(u,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+u.kind+'"');for(Y=0,J=u.implicitTypes.length;Y<J;Y+=1)if(K=u.implicitTypes[Y],K.resolve(u.result)){if(u.result=K.construct(u.result),u.tag=K.tag,u.anchor!==null)u.anchorMap[u.anchor]=u.result;break}}else if(u.tag!=="!"){if(m1.call(u.typeMap[u.kind||"fallback"],u.tag))K=u.typeMap[u.kind||"fallback"][u.tag];else{K=null,G=u.typeMap.multi[u.kind||"fallback"];for(Y=0,J=G.length;Y<J;Y+=1)if(u.tag.slice(0,G[Y].tag.length)===G[Y].tag){K=G[Y];break}}if(!K)f0(u,"unknown tag !<"+u.tag+">");if(u.result!==null&&K.kind!==u.kind)f0(u,"unacceptable node kind for !<"+u.tag+'> tag; it should be "'+K.kind+'", not "'+u.kind+'"');if(!K.resolve(u.result,u.tag))f0(u,"cannot resolve a node with !<"+u.tag+"> explicit tag");else if(u.result=K.construct(u.result,u.tag),u.anchor!==null)u.anchorMap[u.anchor]=u.result}if(u.listener!==null)u.listener("close",u);return u.tag!==null||u.anchor!==null||W}function Ry(u){var D=u.position,F,$,B,z=!1,Z;u.version=null,u.checkLineBreaks=u.legacy,u.tagMap=Object.create(null),u.anchorMap=Object.create(null);while((Z=u.input.charCodeAt(u.position))!==0){if(Ju(u,!0,-1),Z=u.input.charCodeAt(u.position),u.lineIndent>0||Z!==37)break;z=!0,Z=u.input.charCodeAt(++u.position),F=u.position;while(Z!==0&&!ou(Z))Z=u.input.charCodeAt(++u.position);if($=u.input.slice(F,u.position),B=[],$.length<1)f0(u,"directive name must not be less than one character in length");while(Z!==0){while(EF(Z))Z=u.input.charCodeAt(++u.position);if(Z===35){do Z=u.input.charCodeAt(++u.position);while(Z!==0&&!eD(Z));break}if(eD(Z))break;F=u.position;while(Z!==0&&!ou(Z))Z=u.input.charCodeAt(++u.position);B.push(u.input.slice(F,u.position))}if(Z!==0)n$(u);if(m1.call(IY,$))IY[$](u,$,B);else F9(u,'unknown document directive "'+$+'"')}if(Ju(u,!0,-1),u.lineIndent===0&&u.input.charCodeAt(u.position)===45&&u.input.charCodeAt(u.position+1)===45&&u.input.charCodeAt(u.position+2)===45)u.position+=3,Ju(u,!0,-1);else if(z)f0(u,"directives end mark is expected");if(L6(u,u.lineIndent-1,D9,!1,!0),Ju(u,!0,-1),u.checkLineBreaks&&Ay.test(u.input.slice(D,u.position)))F9(u,"non-ASCII line breaks are interpreted as content");if(u.documents.push(u.result),u.position===u.lineStart&&z9(u)){if(u.input.charCodeAt(u.position)===46)u.position+=3,Ju(u,!0,-1);return}if(u.position<u.length-1)f0(u,"end of the stream or a document separator is expected");else return}function rY(u,D){if(u=String(u),D=D||{},u.length!==0){if(u.charCodeAt(u.length-1)!==10&&u.charCodeAt(u.length-1)!==13)u+=`
|
|
187
|
+
`;if(u.charCodeAt(0)===65279)u=u.slice(1)}var F=new Py(u,D),$=u.indexOf("\x00");if($!==-1)F.position=$,f0(F,"null byte is not allowed in input");F.input+="\x00";while(F.input.charCodeAt(F.position)===32)F.lineIndent+=1,F.position+=1;while(F.position<F.length-1)Ry(F);return F.documents}function ky(u,D,F){if(D!==null&&typeof D==="object"&&typeof F>"u")F=D,D=null;var $=rY(u,F);if(typeof D!=="function")return $;for(var B=0,z=$.length;B<z;B+=1)D($[B])}function hy(u,D){var F=rY(u,D);if(F.length===0)return;else if(F.length===1)return F[0];throw new ku("expected a single document in the stream, but found more")}var cy=ky,my=hy,aY={loadAll:cy,load:my},tY=Object.prototype.toString,eY=Object.prototype.hasOwnProperty,l$=65279,ny=9,v8=10,py=13,ly=32,gy=33,dy=34,b$=35,oy=37,sy=38,ry=39,ay=42,uJ=44,ty=45,$9=58,ey=61,ub=62,Db=63,Fb=64,DJ=91,FJ=93,$b=96,$J=123,Bb=124,BJ=125,Pu={};Pu[0]="\\0";Pu[7]="\\a";Pu[8]="\\b";Pu[9]="\\t";Pu[10]="\\n";Pu[11]="\\v";Pu[12]="\\f";Pu[13]="\\r";Pu[27]="\\e";Pu[34]="\\\"";Pu[92]="\\\\";Pu[133]="\\N";Pu[160]="\\_";Pu[8232]="\\L";Pu[8233]="\\P";var zb=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Zb=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function qb(u,D){var F,$,B,z,Z,q,X;if(D===null)return{};F={},$=Object.keys(D);for(B=0,z=$.length;B<z;B+=1){if(Z=$[B],q=String(D[Z]),Z.slice(0,2)==="!!")Z="tag:yaml.org,2002:"+Z.slice(2);if(X=u.compiledTypeMap.fallback[Z],X&&eY.call(X.styleAliases,q))q=X.styleAliases[q];F[Z]=q}return F}function Xb(u){var D,F,$;if(D=u.toString(16).toUpperCase(),u<=255)F="x",$=2;else if(u<=65535)F="u",$=4;else if(u<=4294967295)F="U",$=8;else throw new ku("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+F+Hu.repeat("0",$-D.length)+D}var Qb=1,S8=2;function Wb(u){this.schema=u.schema||m$,this.indent=Math.max(1,u.indent||2),this.noArrayIndent=u.noArrayIndent||!1,this.skipInvalid=u.skipInvalid||!1,this.flowLevel=Hu.isNothing(u.flowLevel)?-1:u.flowLevel,this.styleMap=qb(this.schema,u.styles||null),this.sortKeys=u.sortKeys||!1,this.lineWidth=u.lineWidth||80,this.noRefs=u.noRefs||!1,this.noCompatMode=u.noCompatMode||!1,this.condenseFlow=u.condenseFlow||!1,this.quotingType=u.quotingType==='"'?S8:Qb,this.forceQuotes=u.forceQuotes||!1,this.replacer=typeof u.replacer==="function"?u.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function CY(u,D){var F=Hu.repeat(" ",D),$=0,B=-1,z="",Z,q=u.length;while($<q){if(B=u.indexOf(`
|
|
188
|
+
`,$),B===-1)Z=u.slice($),$=q;else Z=u.slice($,B+1),$=B+1;if(Z.length&&Z!==`
|
|
189
|
+
`)z+=F;z+=Z}return z}function R$(u,D){return`
|
|
190
|
+
`+Hu.repeat(" ",u.indent*D)}function Yb(u,D){var F,$,B;for(F=0,$=u.implicitTypes.length;F<$;F+=1)if(B=u.implicitTypes[F],B.resolve(D))return!0;return!1}function B9(u){return u===ly||u===ny}function T8(u){return 32<=u&&u<=126||161<=u&&u<=55295&&u!==8232&&u!==8233||57344<=u&&u<=65533&&u!==l$||65536<=u&&u<=1114111}function _Y(u){return T8(u)&&u!==l$&&u!==py&&u!==v8}function UY(u,D,F){var $=_Y(u),B=$&&!B9(u);return(F?$:$&&u!==uJ&&u!==DJ&&u!==FJ&&u!==$J&&u!==BJ)&&u!==b$&&!(D===$9&&!B)||_Y(D)&&!B9(D)&&u===b$||D===$9&&B}function Jb(u){return T8(u)&&u!==l$&&!B9(u)&&u!==ty&&u!==Db&&u!==$9&&u!==uJ&&u!==DJ&&u!==FJ&&u!==$J&&u!==BJ&&u!==b$&&u!==sy&&u!==ay&&u!==gy&&u!==Bb&&u!==ey&&u!==ub&&u!==ry&&u!==dy&&u!==oy&&u!==Fb&&u!==$b}function Gb(u){return!B9(u)&&u!==$9}function U8(u,D){var F=u.charCodeAt(D),$;if(F>=55296&&F<=56319&&D+1<u.length){if($=u.charCodeAt(D+1),$>=56320&&$<=57343)return(F-55296)*1024+$-56320+65536}return F}function zJ(u){var D=/^\n* /;return D.test(u)}var ZJ=1,k$=2,qJ=3,XJ=4,H6=5;function Kb(u,D,F,$,B,z,Z,q){var X,Q=0,W=null,Y=!1,J=!1,G=$!==-1,K=-1,H=Jb(U8(u,0))&&Gb(U8(u,u.length-1));if(D||Z)for(X=0;X<u.length;Q>=65536?X+=2:X++){if(Q=U8(u,X),!T8(Q))return H6;H=H&&UY(Q,W,q),W=Q}else{for(X=0;X<u.length;Q>=65536?X+=2:X++){if(Q=U8(u,X),Q===v8){if(Y=!0,G)J=J||X-K-1>$&&u[K+1]!==" ",K=X}else if(!T8(Q))return H6;H=H&&UY(Q,W,q),W=Q}J=J||G&&(X-K-1>$&&u[K+1]!==" ")}if(!Y&&!J){if(H&&!Z&&!B(u))return ZJ;return z===S8?H6:k$}if(F>9&&zJ(u))return H6;if(!Z)return J?XJ:qJ;return z===S8?H6:k$}function Hb(u,D,F,$,B){u.dump=function(){if(D.length===0)return u.quotingType===S8?'""':"''";if(!u.noCompatMode){if(zb.indexOf(D)!==-1||Zb.test(D))return u.quotingType===S8?'"'+D+'"':"'"+D+"'"}var z=u.indent*Math.max(1,F),Z=u.lineWidth===-1?-1:Math.max(Math.min(u.lineWidth,40),u.lineWidth-z),q=$||u.flowLevel>-1&&F>=u.flowLevel;function X(Q){return Yb(u,Q)}switch(Kb(D,q,u.indent,Z,X,u.quotingType,u.forceQuotes&&!$,B)){case ZJ:return D;case k$:return"'"+D.replace(/'/g,"''")+"'";case qJ:return"|"+iY(D,u.indent)+vY(CY(D,z));case XJ:return">"+iY(D,u.indent)+vY(CY(fb(D,Z),z));case H6:return'"'+Vb(D)+'"';default:throw new ku("impossible error: invalid scalar style")}}()}function iY(u,D){var F=zJ(u)?String(D):"",$=u[u.length-1]===`
|
|
191
|
+
`,B=$&&(u[u.length-2]===`
|
|
192
|
+
`||u===`
|
|
193
|
+
`),z=B?"+":$?"":"-";return F+z+`
|
|
194
|
+
`}function vY(u){return u[u.length-1]===`
|
|
195
|
+
`?u.slice(0,-1):u}function fb(u,D){var F=/(\n+)([^\n]*)/g,$=function(){var Q=u.indexOf(`
|
|
196
|
+
`);return Q=Q!==-1?Q:u.length,F.lastIndex=Q,SY(u.slice(0,Q),D)}(),B=u[0]===`
|
|
197
|
+
`||u[0]===" ",z,Z;while(Z=F.exec(u)){var q=Z[1],X=Z[2];z=X[0]===" ",$+=q+(!B&&!z&&X!==""?`
|
|
198
|
+
`:"")+SY(X,D),B=z}return $}function SY(u,D){if(u===""||u[0]===" ")return u;var F=/ [^ ]/g,$,B=0,z,Z=0,q=0,X="";while($=F.exec(u)){if(q=$.index,q-B>D)z=Z>B?Z:q,X+=`
|
|
199
|
+
`+u.slice(B,z),B=z+1;Z=q}if(X+=`
|
|
200
|
+
`,u.length-B>D&&Z>B)X+=u.slice(B,Z)+`
|
|
201
|
+
`+u.slice(Z+1);else X+=u.slice(B);return X.slice(1)}function Vb(u){var D="",F=0,$;for(var B=0;B<u.length;F>=65536?B+=2:B++)if(F=U8(u,B),$=Pu[F],!$&&T8(F)){if(D+=u[B],F>=65536)D+=u[B+1]}else D+=$||Xb(F);return D}function Lb(u,D,F){var $="",B=u.tag,z,Z,q;for(z=0,Z=F.length;z<Z;z+=1){if(q=F[z],u.replacer)q=u.replacer.call(F,String(z),q);if(Y1(u,D,q,!1,!1)||typeof q>"u"&&Y1(u,D,null,!1,!1)){if($!=="")$+=","+(!u.condenseFlow?" ":"");$+=u.dump}}u.tag=B,u.dump="["+$+"]"}function TY(u,D,F,$){var B="",z=u.tag,Z,q,X;for(Z=0,q=F.length;Z<q;Z+=1){if(X=F[Z],u.replacer)X=u.replacer.call(F,String(Z),X);if(Y1(u,D+1,X,!0,!0,!1,!0)||typeof X>"u"&&Y1(u,D+1,null,!0,!0,!1,!0)){if(!$||B!=="")B+=R$(u,D);if(u.dump&&v8===u.dump.charCodeAt(0))B+="-";else B+="- ";B+=u.dump}}u.tag=z,u.dump=B||"[]"}function Mb(u,D,F){var $="",B=u.tag,z=Object.keys(F),Z,q,X,Q,W;for(Z=0,q=z.length;Z<q;Z+=1){if(W="",$!=="")W+=", ";if(u.condenseFlow)W+='"';if(X=z[Z],Q=F[X],u.replacer)Q=u.replacer.call(F,X,Q);if(!Y1(u,D,X,!1,!1))continue;if(u.dump.length>1024)W+="? ";if(W+=u.dump+(u.condenseFlow?'"':"")+":"+(u.condenseFlow?"":" "),!Y1(u,D,Q,!1,!1))continue;W+=u.dump,$+=W}u.tag=B,u.dump="{"+$+"}"}function xb(u,D,F,$){var B="",z=u.tag,Z=Object.keys(F),q,X,Q,W,Y,J;if(u.sortKeys===!0)Z.sort();else if(typeof u.sortKeys==="function")Z.sort(u.sortKeys);else if(u.sortKeys)throw new ku("sortKeys must be a boolean or a function");for(q=0,X=Z.length;q<X;q+=1){if(J="",!$||B!=="")J+=R$(u,D);if(Q=Z[q],W=F[Q],u.replacer)W=u.replacer.call(F,Q,W);if(!Y1(u,D+1,Q,!0,!0,!0))continue;if(Y=u.tag!==null&&u.tag!=="?"||u.dump&&u.dump.length>1024,Y)if(u.dump&&v8===u.dump.charCodeAt(0))J+="?";else J+="? ";if(J+=u.dump,Y)J+=R$(u,D);if(!Y1(u,D+1,W,!0,Y))continue;if(u.dump&&v8===u.dump.charCodeAt(0))J+=":";else J+=": ";J+=u.dump,B+=J}u.tag=z,u.dump=B||"{}"}function yY(u,D,F){var $,B,z,Z,q,X;B=F?u.explicitTypes:u.implicitTypes;for(z=0,Z=B.length;z<Z;z+=1)if(q=B[z],(q.instanceOf||q.predicate)&&(!q.instanceOf||typeof D==="object"&&D instanceof q.instanceOf)&&(!q.predicate||q.predicate(D))){if(F)if(q.multi&&q.representName)u.tag=q.representName(D);else u.tag=q.tag;else u.tag="?";if(q.represent){if(X=u.styleMap[q.tag]||q.defaultStyle,tY.call(q.represent)==="[object Function]")$=q.represent(D,X);else if(eY.call(q.represent,X))$=q.represent[X](D,X);else throw new ku("!<"+q.tag+'> tag resolver accepts not "'+X+'" style');u.dump=$}return!0}return!1}function Y1(u,D,F,$,B,z,Z){if(u.tag=null,u.dump=F,!yY(u,F,!1))yY(u,F,!0);var q=tY.call(u.dump),X=$,Q;if($)$=u.flowLevel<0||u.flowLevel>D;var W=q==="[object Object]"||q==="[object Array]",Y,J;if(W)Y=u.duplicates.indexOf(F),J=Y!==-1;if(u.tag!==null&&u.tag!=="?"||J||u.indent!==2&&D>0)B=!1;if(J&&u.usedDuplicates[Y])u.dump="*ref_"+Y;else{if(W&&J&&!u.usedDuplicates[Y])u.usedDuplicates[Y]=!0;if(q==="[object Object]"){if($&&Object.keys(u.dump).length!==0){if(xb(u,D,u.dump,B),J)u.dump="&ref_"+Y+u.dump}else if(Mb(u,D,u.dump),J)u.dump="&ref_"+Y+" "+u.dump}else if(q==="[object Array]"){if($&&u.dump.length!==0){if(u.noArrayIndent&&!Z&&D>0)TY(u,D-1,u.dump,B);else TY(u,D,u.dump,B);if(J)u.dump="&ref_"+Y+u.dump}else if(Lb(u,D,u.dump),J)u.dump="&ref_"+Y+" "+u.dump}else if(q==="[object String]"){if(u.tag!=="?")Hb(u,u.dump,D,z,X)}else if(q==="[object Undefined]")return!1;else{if(u.skipInvalid)return!1;throw new ku("unacceptable kind of an object to dump "+q)}if(u.tag!==null&&u.tag!=="?"){if(Q=encodeURI(u.tag[0]==="!"?u.tag.slice(1):u.tag).replace(/!/g,"%21"),u.tag[0]==="!")Q="!"+Q;else if(Q.slice(0,18)==="tag:yaml.org,2002:")Q="!!"+Q.slice(18);else Q="!<"+Q+">";u.dump=Q+" "+u.dump}}return!0}function Ob(u,D){var F=[],$=[],B,z;h$(u,F,$);for(B=0,z=$.length;B<z;B+=1)D.duplicates.push(F[$[B]]);D.usedDuplicates=Array(z)}function h$(u,D,F){var $,B,z;if(u!==null&&typeof u==="object")if(B=D.indexOf(u),B!==-1){if(F.indexOf(B)===-1)F.push(B)}else if(D.push(u),Array.isArray(u))for(B=0,z=u.length;B<z;B+=1)h$(u[B],D,F);else{$=Object.keys(u);for(B=0,z=$.length;B<z;B+=1)h$(u[$[B]],D,F)}}function Ab(u,D){D=D||{};var F=new Wb(D);if(!F.noRefs)Ob(u,F);var $=u;if(F.replacer)$=F.replacer.call({"":$},"",$);if(Y1(F,0,$,!0,!0))return F.dump+`
|
|
202
|
+
`;return""}var wb=Ab,Nb={dump:wb};function g$(u,D){return function(){throw Error("Function yaml."+u+" is removed in js-yaml 4. Use yaml."+D+" instead, which is now safe by default.")}}var Z9=ju;var d$=kY;var q9=m$,n1=aY.load,M6=aY.loadAll,su=Nb.dump,x6=ku;var g20=g$("safeLoad","load"),d20=g$("safeLoadAll","loadAll"),o20=g$("safeDump","dump");var Aq=M0(PF(),1);var k_=M0(A6(),1),h0=M0(du(),1),CD=M0(PF(),1),Mq=M0(r$(),1);String.prototype.matchRE2JS=function(u){let D=null,F=u.matcher(this.toString());while(F.find()){let $=F.group();if($==null||$=="")continue;D=D??[],D.push($)}return D};String.prototype.matchAllRE2JS=function(u){let D=this.toString(),F=u.matcher(D);function*$(){while(F.find()){let B=[];for(let z=0;z<=F.groupCount();z++)B.push(F.group(z));if(B.index=F.groups[0],B.input=D,F.namedGroups&&Object.keys(F.namedGroups).length>0){let z=Object.create(null);for(let[Z,q]of Object.entries(F.namedGroups))z[Z]=F.group(q);B.groups=z}else B.groups=void 0;yield B}}return $()};/*!
|
|
203
|
+
* re2js
|
|
204
|
+
* RE2JS is the JavaScript port of RE2, a regular expression engine that provides linear time matching
|
|
205
|
+
*
|
|
206
|
+
* @version v1.2.1
|
|
207
|
+
* @author Alexey Vasiliev
|
|
208
|
+
* @homepage https://github.com/le0pard/re2js#readme
|
|
209
|
+
* @repository github:le0pard/re2js
|
|
210
|
+
* @license MIT
|
|
211
|
+
*/class D0{static FOLD_CASE=1;static LITERAL=2;static CLASS_NL=4;static DOT_NL=8;static ONE_LINE=16;static NON_GREEDY=32;static PERL_X=64;static UNICODE_GROUPS=128;static WAS_DOLLAR=256;static MATCH_NL=D0.CLASS_NL|D0.DOT_NL;static PERL=D0.CLASS_NL|D0.ONE_LINE|D0.PERL_X|D0.UNICODE_GROUPS;static POSIX=0;static UNANCHORED=0;static ANCHOR_START=1;static ANCHOR_BOTH=2}class b{static CODES=new Map([["\x07",7],["\b",8],["\t",9],[`
|
|
212
|
+
`,10],["\v",11],["\f",12],["\r",13],[" ",32],['"',34],["$",36],["&",38],["(",40],[")",41],["*",42],["+",43],["-",45],[".",46],["0",48],["1",49],["2",50],["3",51],["4",52],["5",53],["6",54],["7",55],["8",56],["9",57],[":",58],["<",60],[">",62],["?",63],["A",65],["B",66],["C",67],["F",70],["P",80],["Q",81],["U",85],["Z",90],["[",91],["\\",92],["]",93],["^",94],["_",95],["a",97],["b",98],["f",102],["i",105],["m",109],["n",110],["r",114],["s",115],["t",116],["v",118],["x",120],["z",122],["{",123],["|",124],["}",125]]);static toUpperCase(u){let D=String.fromCodePoint(u).toUpperCase();if(D.length>1)return u;let F=String.fromCodePoint(D.codePointAt(0)).toLowerCase();if(F.length>1||F.codePointAt(0)!==u)return u;return D.codePointAt(0)}static toLowerCase(u){let D=String.fromCodePoint(u).toLowerCase();if(D.length>1)return u;let F=String.fromCodePoint(D.codePointAt(0)).toUpperCase();if(F.length>1||F.codePointAt(0)!==u)return u;return D.codePointAt(0)}}class N{SIZE=3;constructor(u){this.data=u}getLo(u){return this.data[u*this.SIZE]}getHi(u){return this.data[u*this.SIZE+1]}getStride(u){return this.data[u*this.SIZE+2]}get(u){let D=u*this.SIZE;return[this.data[D],this.data[D+1],this.data[D+2]]}get length(){return this.data.length/this.SIZE}}class O{static CASE_ORBIT=new Map([[75,107],[107,8490],[8490,75],[83,115],[115,383],[383,83],[181,924],[924,956],[956,181],[197,229],[229,8491],[8491,197],[452,453],[453,454],[454,452],[455,456],[456,457],[457,455],[458,459],[459,460],[460,458],[497,498],[498,499],[499,497],[837,921],[921,953],[953,8126],[8126,837],[914,946],[946,976],[976,914],[917,949],[949,1013],[1013,917],[920,952],[952,977],[977,1012],[1012,920],[922,954],[954,1008],[1008,922],[928,960],[960,982],[982,928],[929,961],[961,1009],[1009,929],[931,962],[962,963],[963,931],[934,966],[966,981],[981,934],[937,969],[969,8486],[8486,937],[1042,1074],[1074,7296],[7296,1042],[1044,1076],[1076,7297],[7297,1044],[1054,1086],[1086,7298],[7298,1054],[1057,1089],[1089,7299],[7299,1057],[1058,1090],[1090,7300],[7300,7301],[7301,1058],[1066,1098],[1098,7302],[7302,1066],[1122,1123],[1123,7303],[7303,1122],[7304,42570],[42570,42571],[42571,7304],[7776,7777],[7777,7835],[7835,7776],[223,7838],[7838,223],[8064,8072],[8072,8064],[8065,8073],[8073,8065],[8066,8074],[8074,8066],[8067,8075],[8075,8067],[8068,8076],[8076,8068],[8069,8077],[8077,8069],[8070,8078],[8078,8070],[8071,8079],[8079,8071],[8080,8088],[8088,8080],[8081,8089],[8089,8081],[8082,8090],[8090,8082],[8083,8091],[8091,8083],[8084,8092],[8092,8084],[8085,8093],[8093,8085],[8086,8094],[8094,8086],[8087,8095],[8095,8087],[8096,8104],[8104,8096],[8097,8105],[8105,8097],[8098,8106],[8106,8098],[8099,8107],[8107,8099],[8100,8108],[8108,8100],[8101,8109],[8109,8101],[8102,8110],[8110,8102],[8103,8111],[8111,8103],[8115,8124],[8124,8115],[8131,8140],[8140,8131],[912,8147],[8147,912],[944,8163],[8163,944],[8179,8188],[8188,8179],[64261,64262],[64262,64261],[66560,66600],[66600,66560],[66561,66601],[66601,66561],[66562,66602],[66602,66562],[66563,66603],[66603,66563],[66564,66604],[66604,66564],[66565,66605],[66605,66565],[66566,66606],[66606,66566],[66567,66607],[66607,66567],[66568,66608],[66608,66568],[66569,66609],[66609,66569],[66570,66610],[66610,66570],[66571,66611],[66611,66571],[66572,66612],[66612,66572],[66573,66613],[66613,66573],[66574,66614],[66614,66574],[66575,66615],[66615,66575],[66576,66616],[66616,66576],[66577,66617],[66617,66577],[66578,66618],[66618,66578],[66579,66619],[66619,66579],[66580,66620],[66620,66580],[66581,66621],[66621,66581],[66582,66622],[66622,66582],[66583,66623],[66623,66583],[66584,66624],[66624,66584],[66585,66625],[66625,66585],[66586,66626],[66626,66586],[66587,66627],[66627,66587],[66588,66628],[66628,66588],[66589,66629],[66629,66589],[66590,66630],[66630,66590],[66591,66631],[66631,66591],[66592,66632],[66632,66592],[66593,66633],[66633,66593],[66594,66634],[66634,66594],[66595,66635],[66635,66595],[66596,66636],[66636,66596],[66597,66637],[66637,66597],[66598,66638],[66638,66598],[66599,66639],[66639,66599],[66736,66776],[66776,66736],[66737,66777],[66777,66737],[66738,66778],[66778,66738],[66739,66779],[66779,66739],[66740,66780],[66780,66740],[66741,66781],[66781,66741],[66742,66782],[66782,66742],[66743,66783],[66783,66743],[66744,66784],[66784,66744],[66745,66785],[66785,66745],[66746,66786],[66786,66746],[66747,66787],[66787,66747],[66748,66788],[66788,66748],[66749,66789],[66789,66749],[66750,66790],[66790,66750],[66751,66791],[66791,66751],[66752,66792],[66792,66752],[66753,66793],[66793,66753],[66754,66794],[66794,66754],[66755,66795],[66795,66755],[66756,66796],[66796,66756],[66757,66797],[66797,66757],[66758,66798],[66798,66758],[66759,66799],[66799,66759],[66760,66800],[66800,66760],[66761,66801],[66801,66761],[66762,66802],[66802,66762],[66763,66803],[66803,66763],[66764,66804],[66804,66764],[66765,66805],[66805,66765],[66766,66806],[66806,66766],[66767,66807],[66807,66767],[66768,66808],[66808,66768],[66769,66809],[66809,66769],[66770,66810],[66810,66770],[66771,66811],[66811,66771],[66928,66967],[66967,66928],[66929,66968],[66968,66929],[66930,66969],[66969,66930],[66931,66970],[66970,66931],[66932,66971],[66971,66932],[66933,66972],[66972,66933],[66934,66973],[66973,66934],[66935,66974],[66974,66935],[66936,66975],[66975,66936],[66937,66976],[66976,66937],[66938,66977],[66977,66938],[66940,66979],[66979,66940],[66941,66980],[66980,66941],[66942,66981],[66981,66942],[66943,66982],[66982,66943],[66944,66983],[66983,66944],[66945,66984],[66984,66945],[66946,66985],[66985,66946],[66947,66986],[66986,66947],[66948,66987],[66987,66948],[66949,66988],[66988,66949],[66950,66989],[66989,66950],[66951,66990],[66990,66951],[66952,66991],[66991,66952],[66953,66992],[66992,66953],[66954,66993],[66993,66954],[66956,66995],[66995,66956],[66957,66996],[66996,66957],[66958,66997],[66997,66958],[66959,66998],[66998,66959],[66960,66999],[66999,66960],[66961,67000],[67000,66961],[66962,67001],[67001,66962],[66964,67003],[67003,66964],[66965,67004],[67004,66965],[68736,68800],[68800,68736],[68737,68801],[68801,68737],[68738,68802],[68802,68738],[68739,68803],[68803,68739],[68740,68804],[68804,68740],[68741,68805],[68805,68741],[68742,68806],[68806,68742],[68743,68807],[68807,68743],[68744,68808],[68808,68744],[68745,68809],[68809,68745],[68746,68810],[68810,68746],[68747,68811],[68811,68747],[68748,68812],[68812,68748],[68749,68813],[68813,68749],[68750,68814],[68814,68750],[68751,68815],[68815,68751],[68752,68816],[68816,68752],[68753,68817],[68817,68753],[68754,68818],[68818,68754],[68755,68819],[68819,68755],[68756,68820],[68820,68756],[68757,68821],[68821,68757],[68758,68822],[68822,68758],[68759,68823],[68823,68759],[68760,68824],[68824,68760],[68761,68825],[68825,68761],[68762,68826],[68826,68762],[68763,68827],[68827,68763],[68764,68828],[68828,68764],[68765,68829],[68829,68765],[68766,68830],[68830,68766],[68767,68831],[68831,68767],[68768,68832],[68832,68768],[68769,68833],[68833,68769],[68770,68834],[68834,68770],[68771,68835],[68835,68771],[68772,68836],[68836,68772],[68773,68837],[68837,68773],[68774,68838],[68838,68774],[68775,68839],[68839,68775],[68776,68840],[68840,68776],[68777,68841],[68841,68777],[68778,68842],[68842,68778],[68779,68843],[68843,68779],[68780,68844],[68844,68780],[68781,68845],[68845,68781],[68782,68846],[68846,68782],[68783,68847],[68847,68783],[68784,68848],[68848,68784],[68785,68849],[68849,68785],[68786,68850],[68850,68786],[68944,68976],[68976,68944],[68945,68977],[68977,68945],[68946,68978],[68978,68946],[68947,68979],[68979,68947],[68948,68980],[68980,68948],[68949,68981],[68981,68949],[68950,68982],[68982,68950],[68951,68983],[68983,68951],[68952,68984],[68984,68952],[68953,68985],[68985,68953],[68954,68986],[68986,68954],[68955,68987],[68987,68955],[68956,68988],[68988,68956],[68957,68989],[68989,68957],[68958,68990],[68990,68958],[68959,68991],[68991,68959],[68960,68992],[68992,68960],[68961,68993],[68993,68961],[68962,68994],[68994,68962],[68963,68995],[68995,68963],[68964,68996],[68996,68964],[68965,68997],[68997,68965],[71840,71872],[71872,71840],[71841,71873],[71873,71841],[71842,71874],[71874,71842],[71843,71875],[71875,71843],[71844,71876],[71876,71844],[71845,71877],[71877,71845],[71846,71878],[71878,71846],[71847,71879],[71879,71847],[71848,71880],[71880,71848],[71849,71881],[71881,71849],[71850,71882],[71882,71850],[71851,71883],[71883,71851],[71852,71884],[71884,71852],[71853,71885],[71885,71853],[71854,71886],[71886,71854],[71855,71887],[71887,71855],[71856,71888],[71888,71856],[71857,71889],[71889,71857],[71858,71890],[71890,71858],[71859,71891],[71891,71859],[71860,71892],[71892,71860],[71861,71893],[71893,71861],[71862,71894],[71894,71862],[71863,71895],[71895,71863],[71864,71896],[71896,71864],[71865,71897],[71897,71865],[71866,71898],[71898,71866],[71867,71899],[71899,71867],[71868,71900],[71900,71868],[71869,71901],[71901,71869],[71870,71902],[71902,71870],[71871,71903],[71903,71871],[93760,93792],[93792,93760],[93761,93793],[93793,93761],[93762,93794],[93794,93762],[93763,93795],[93795,93763],[93764,93796],[93796,93764],[93765,93797],[93797,93765],[93766,93798],[93798,93766],[93767,93799],[93799,93767],[93768,93800],[93800,93768],[93769,93801],[93801,93769],[93770,93802],[93802,93770],[93771,93803],[93803,93771],[93772,93804],[93804,93772],[93773,93805],[93805,93773],[93774,93806],[93806,93774],[93775,93807],[93807,93775],[93776,93808],[93808,93776],[93777,93809],[93809,93777],[93778,93810],[93810,93778],[93779,93811],[93811,93779],[93780,93812],[93812,93780],[93781,93813],[93813,93781],[93782,93814],[93814,93782],[93783,93815],[93815,93783],[93784,93816],[93816,93784],[93785,93817],[93817,93785],[93786,93818],[93818,93786],[93787,93819],[93819,93787],[93788,93820],[93820,93788],[93789,93821],[93821,93789],[93790,93822],[93822,93790],[93791,93823],[93823,93791],[125184,125218],[125218,125184],[125185,125219],[125219,125185],[125186,125220],[125220,125186],[125187,125221],[125221,125187],[125188,125222],[125222,125188],[125189,125223],[125223,125189],[125190,125224],[125224,125190],[125191,125225],[125225,125191],[125192,125226],[125226,125192],[125193,125227],[125227,125193],[125194,125228],[125228,125194],[125195,125229],[125229,125195],[125196,125230],[125230,125196],[125197,125231],[125231,125197],[125198,125232],[125232,125198],[125199,125233],[125233,125199],[125200,125234],[125234,125200],[125201,125235],[125235,125201],[125202,125236],[125236,125202],[125203,125237],[125237,125203],[125204,125238],[125238,125204],[125205,125239],[125239,125205],[125206,125240],[125240,125206],[125207,125241],[125241,125207],[125208,125242],[125242,125208],[125209,125243],[125243,125209],[125210,125244],[125244,125210],[125211,125245],[125245,125211],[125212,125246],[125246,125212],[125213,125247],[125247,125213],[125214,125248],[125248,125214],[125215,125249],[125249,125215],[125216,125250],[125250,125216],[125217,125251],[125251,125217]]);static C=new N(new Uint32Array([0,31,1,127,159,1,173,888,715,889,896,7,897,899,1,907,909,2,930,1328,398,1367,1368,1,1419,1420,1,1424,1480,56,1481,1487,1,1515,1518,1,1525,1541,1,1564,1757,193,1806,1807,1,1867,1868,1,1970,1983,1,2043,2044,1,2094,2095,1,2111,2140,29,2141,2143,2,2155,2159,1,2191,2198,1,2274,2436,162,2445,2446,1,2449,2450,1,2473,2481,8,2483,2485,1,2490,2491,1,2501,2502,1,2505,2506,1,2511,2518,1,2520,2523,1,2526,2532,6,2533,2559,26,2560,2564,4,2571,2574,1,2577,2578,1,2601,2609,8,2612,2618,3,2619,2621,2,2627,2630,1,2633,2634,1,2638,2640,1,2642,2648,1,2653,2655,2,2656,2661,1,2679,2688,1,2692,2702,10,2706,2729,23,2737,2740,3,2746,2747,1,2758,2766,4,2767,2769,2,2770,2783,1,2788,2789,1,2802,2808,1,2816,2820,4,2829,2830,1,2833,2834,1,2857,2865,8,2868,2874,6,2875,2885,10,2886,2889,3,2890,2894,4,2895,2900,1,2904,2907,1,2910,2916,6,2917,2936,19,2937,2945,1,2948,2955,7,2956,2957,1,2961,2966,5,2967,2968,1,2971,2973,2,2976,2978,1,2981,2983,1,2987,2989,1,3002,3005,1,3011,3013,1,3017,3022,5,3023,3025,2,3026,3030,1,3032,3045,1,3067,3071,1,3085,3089,4,3113,3130,17,3131,3141,10,3145,3150,5,3151,3156,1,3159,3163,4,3164,3166,2,3167,3172,5,3173,3184,11,3185,3190,1,3213,3217,4,3241,3252,11,3258,3259,1,3269,3273,4,3278,3284,1,3287,3292,1,3295,3300,5,3301,3312,11,3316,3327,1,3341,3345,4,3397,3401,4,3408,3411,1,3428,3429,1,3456,3460,4,3479,3481,1,3506,3516,10,3518,3519,1,3527,3529,1,3531,3534,1,3541,3543,2,3552,3557,1,3568,3569,1,3573,3584,1,3643,3646,1,3676,3712,1,3715,3717,2,3723,3748,25,3750,3774,24,3775,3781,6,3783,3791,8,3802,3803,1,3808,3839,1,3912,3949,37,3950,3952,1,3992,4029,37,4045,4059,14,4060,4095,1,4294,4296,2,4297,4300,1,4302,4303,1,4681,4686,5,4687,4695,8,4697,4702,5,4703,4745,42,4750,4751,1,4785,4790,5,4791,4799,8,4801,4806,5,4807,4823,16,4881,4886,5,4887,4955,68,4956,4989,33,4990,4991,1,5018,5023,1,5110,5111,1,5118,5119,1,5789,5791,1,5881,5887,1,5910,5918,1,5943,5951,1,5972,5983,1,5997,6001,4,6004,6015,1,6110,6111,1,6122,6127,1,6138,6143,1,6158,6170,12,6171,6175,1,6265,6271,1,6315,6319,1,6390,6399,1,6431,6444,13,6445,6447,1,6460,6463,1,6465,6467,1,6510,6511,1,6517,6527,1,6572,6575,1,6602,6607,1,6619,6621,1,6684,6685,1,6751,6781,30,6782,6794,12,6795,6799,1,6810,6815,1,6830,6831,1,6863,6911,1,6989,7156,167,7157,7163,1,7224,7226,1,7242,7244,1,7307,7311,1,7355,7356,1,7368,7375,1,7419,7423,1,7958,7959,1,7966,7967,1,8006,8007,1,8014,8015,1,8024,8030,2,8062,8063,1,8117,8133,16,8148,8149,1,8156,8176,20,8177,8181,4,8191,8203,12,8204,8207,1,8234,8238,1,8288,8303,1,8306,8307,1,8335,8349,14,8350,8351,1,8385,8399,1,8433,8447,1,8588,8591,1,9258,9279,1,9291,9311,1,11124,11125,1,11158,11508,350,11509,11512,1,11558,11560,2,11561,11564,1,11566,11567,1,11624,11630,1,11633,11646,1,11671,11679,1,11687,11743,8,11870,11903,1,11930,12020,90,12021,12031,1,12246,12271,1,12352,12439,87,12440,12544,104,12545,12548,1,12592,12687,95,12774,12782,1,12831,42125,29294,42126,42127,1,42183,42191,1,42540,42559,1,42744,42751,1,42958,42959,1,42962,42964,2,42973,42993,1,43053,43055,1,43066,43071,1,43128,43135,1,43206,43213,1,43226,43231,1,43348,43358,1,43389,43391,1,43470,43482,12,43483,43485,1,43519,43575,56,43576,43583,1,43598,43599,1,43610,43611,1,43715,43738,1,43767,43776,1,43783,43784,1,43791,43792,1,43799,43807,1,43815,43823,8,43884,43887,1,44014,44015,1,44026,44031,1,55204,55215,1,55239,55242,1,55292,63743,1,64110,64111,1,64218,64255,1,64263,64274,1,64280,64284,1,64311,64317,6,64319,64325,3,64451,64466,1,64912,64913,1,64968,64974,1,64976,65007,1,65050,65055,1,65107,65127,20,65132,65135,1,65141,65277,136,65278,65280,1,65471,65473,1,65480,65481,1,65488,65489,1,65496,65497,1,65501,65503,1,65511,65519,8,65520,65531,1,65534,65535,1,65548,65575,27,65595,65598,3,65614,65615,1,65630,65663,1,65787,65791,1,65795,65798,1,65844,65846,1,65935,65949,14,65950,65951,1,65953,65999,1,66046,66175,1,66205,66207,1,66257,66271,1,66300,66303,1,66340,66348,1,66379,66383,1,66427,66431,1,66462,66500,38,66501,66503,1,66518,66559,1,66718,66719,1,66730,66735,1,66772,66775,1,66812,66815,1,66856,66863,1,66916,66926,1,66939,66955,16,66963,66966,3,66978,66994,16,67002,67005,3,67006,67007,1,67060,67071,1,67383,67391,1,67414,67423,1,67432,67455,1,67462,67505,43,67515,67583,1,67590,67591,1,67593,67638,45,67641,67643,1,67645,67646,1,67670,67743,73,67744,67750,1,67760,67807,1,67827,67830,3,67831,67834,1,67868,67870,1,67898,67902,1,67904,67967,1,68024,68027,1,68048,68049,1,68100,68103,3,68104,68107,1,68116,68120,4,68150,68151,1,68155,68158,1,68169,68175,1,68185,68191,1,68256,68287,1,68327,68330,1,68343,68351,1,68406,68408,1,68438,68439,1,68467,68471,1,68498,68504,1,68509,68520,1,68528,68607,1,68681,68735,1,68787,68799,1,68851,68857,1,68904,68911,1,68922,68927,1,68966,68968,1,68998,69005,1,69008,69215,1,69247,69290,43,69294,69295,1,69298,69313,1,69317,69371,1,69416,69423,1,69466,69487,1,69514,69551,1,69580,69599,1,69623,69631,1,69710,69713,1,69750,69758,1,69821,69827,6,69828,69839,1,69865,69871,1,69882,69887,1,69941,69960,19,69961,69967,1,70007,70015,1,70112,70133,21,70134,70143,1,70162,70210,48,70211,70271,1,70279,70281,2,70286,70302,16,70314,70319,1,70379,70383,1,70394,70399,1,70404,70413,9,70414,70417,3,70418,70441,23,70449,70452,3,70458,70469,11,70470,70473,3,70474,70478,4,70479,70481,2,70482,70486,1,70488,70492,1,70500,70501,1,70509,70511,1,70517,70527,1,70538,70540,2,70541,70543,2,70582,70593,11,70595,70596,1,70598,70603,5,70614,70617,3,70618,70624,1,70627,70655,1,70748,70754,6,70755,70783,1,70856,70863,1,70874,71039,1,71094,71095,1,71134,71167,1,71237,71247,1,71258,71263,1,71277,71295,1,71354,71359,1,71370,71375,1,71396,71423,1,71451,71452,1,71468,71471,1,71495,71679,1,71740,71839,1,71923,71934,1,71943,71944,1,71946,71947,1,71956,71959,3,71990,71993,3,71994,72007,13,72008,72015,1,72026,72095,1,72104,72105,1,72152,72153,1,72165,72191,1,72264,72271,1,72355,72367,1,72441,72447,1,72458,72639,1,72674,72687,1,72698,72703,1,72713,72759,46,72774,72783,1,72813,72815,1,72848,72849,1,72872,72887,15,72888,72959,1,72967,72970,3,73015,73017,1,73019,73022,3,73032,73039,1,73050,73055,1,73062,73065,3,73103,73106,3,73113,73119,1,73130,73439,1,73465,73471,1,73489,73531,42,73532,73533,1,73563,73647,1,73649,73663,1,73714,73726,1,74650,74751,1,74863,74869,6,74870,74879,1,75076,77711,1,77811,77823,1,78896,78911,1,78934,78943,1,82939,82943,1,83527,90367,1,90426,92159,1,92729,92735,1,92767,92778,11,92779,92781,1,92863,92874,11,92875,92879,1,92910,92911,1,92918,92927,1,92998,93007,1,93018,93026,8,93048,93052,1,93072,93503,1,93562,93759,1,93851,93951,1,94027,94030,1,94088,94094,1,94112,94175,1,94181,94191,1,94194,94207,1,100344,100351,1,101590,101630,1,101641,110575,1,110580,110588,8,110591,110883,292,110884,110897,1,110899,110927,1,110931,110932,1,110934,110947,1,110952,110959,1,111356,113663,1,113771,113775,1,113789,113791,1,113801,113807,1,113818,113819,1,113824,117759,1,118010,118015,1,118452,118527,1,118574,118575,1,118599,118607,1,118724,118783,1,119030,119039,1,119079,119080,1,119155,119162,1,119275,119295,1,119366,119487,1,119508,119519,1,119540,119551,1,119639,119647,1,119673,119807,1,119893,119965,72,119968,119969,1,119971,119972,1,119975,119976,1,119981,119994,13,119996,120004,8,120070,120075,5,120076,120085,9,120093,120122,29,120127,120133,6,120135,120137,1,120145,120486,341,120487,120780,293,120781,121484,703,121485,121498,1,121504,121520,16,121521,122623,1,122655,122660,1,122667,122879,1,122887,122905,18,122906,122914,8,122917,122923,6,122924,122927,1,122990,123022,1,123024,123135,1,123181,123183,1,123198,123199,1,123210,123213,1,123216,123535,1,123567,123583,1,123642,123646,1,123648,124111,1,124154,124367,1,124411,124414,1,124416,124895,1,124903,124908,5,124911,124927,16,125125,125126,1,125143,125183,1,125260,125263,1,125274,125277,1,125280,126064,1,126133,126208,1,126270,126463,1,126468,126496,28,126499,126501,2,126502,126504,2,126515,126520,5,126522,126524,2,126525,126529,1,126531,126534,1,126536,126540,2,126544,126547,3,126549,126550,1,126552,126560,2,126563,126565,2,126566,126571,5,126579,126589,5,126591,126602,11,126620,126624,1,126628,126634,6,126652,126703,1,126706,126975,1,127020,127023,1,127124,127135,1,127151,127152,1,127168,127184,16,127222,127231,1,127406,127461,1,127491,127503,1,127548,127551,1,127561,127567,1,127570,127583,1,127590,127743,1,128728,128731,1,128749,128751,1,128765,128767,1,128887,128890,1,128986,128991,1,129004,129007,1,129009,129023,1,129036,129039,1,129096,129103,1,129114,129119,1,129160,129167,1,129198,129199,1,129212,129215,1,129218,129279,1,129620,129631,1,129646,129647,1,129661,129663,1,129674,129678,1,129735,129741,1,129757,129758,1,129770,129775,1,129785,129791,1,129939,130042,103,130043,131071,1,173792,173823,1,177978,177983,1,178206,178207,1,183970,183983,1,191457,191471,1,192094,194559,1,195102,196607,1,201547,201551,1,205744,917759,1,918000,1114111,1]));static Cc=new N(new Uint32Array([0,31,1,127,159,1]));static Cf=new N(new Uint32Array([173,1536,1363,1537,1541,1,1564,1757,193,1807,2192,385,2193,2274,81,6158,8203,2045,8204,8207,1,8234,8238,1,8288,8292,1,8294,8303,1,65279,65529,250,65530,65531,1,69821,69837,16,78896,78911,1,113824,113827,1,119155,119162,1,917505,917536,31,917537,917631,1]));static Co=new N(new Uint32Array([57344,63743,1,983040,1048573,1,1048576,1114109,1]));static Cs=new N(new Uint32Array([55296,57343,1]));static L=new N(new Uint32Array([65,90,1,97,122,1,170,181,11,186,192,6,193,214,1,216,246,1,248,705,1,710,721,1,736,740,1,748,750,2,880,884,1,886,887,1,890,893,1,895,902,7,904,906,1,908,910,2,911,929,1,931,1013,1,1015,1153,1,1162,1327,1,1329,1366,1,1369,1376,7,1377,1416,1,1488,1514,1,1519,1522,1,1568,1610,1,1646,1647,1,1649,1747,1,1749,1765,16,1766,1774,8,1775,1786,11,1787,1788,1,1791,1808,17,1810,1839,1,1869,1957,1,1969,1994,25,1995,2026,1,2036,2037,1,2042,2048,6,2049,2069,1,2074,2084,10,2088,2112,24,2113,2136,1,2144,2154,1,2160,2183,1,2185,2190,1,2208,2249,1,2308,2361,1,2365,2384,19,2392,2401,1,2417,2432,1,2437,2444,1,2447,2448,1,2451,2472,1,2474,2480,1,2482,2486,4,2487,2489,1,2493,2510,17,2524,2525,1,2527,2529,1,2544,2545,1,2556,2565,9,2566,2570,1,2575,2576,1,2579,2600,1,2602,2608,1,2610,2611,1,2613,2614,1,2616,2617,1,2649,2652,1,2654,2674,20,2675,2676,1,2693,2701,1,2703,2705,1,2707,2728,1,2730,2736,1,2738,2739,1,2741,2745,1,2749,2768,19,2784,2785,1,2809,2821,12,2822,2828,1,2831,2832,1,2835,2856,1,2858,2864,1,2866,2867,1,2869,2873,1,2877,2908,31,2909,2911,2,2912,2913,1,2929,2947,18,2949,2954,1,2958,2960,1,2962,2965,1,2969,2970,1,2972,2974,2,2975,2979,4,2980,2984,4,2985,2986,1,2990,3001,1,3024,3077,53,3078,3084,1,3086,3088,1,3090,3112,1,3114,3129,1,3133,3160,27,3161,3162,1,3165,3168,3,3169,3200,31,3205,3212,1,3214,3216,1,3218,3240,1,3242,3251,1,3253,3257,1,3261,3293,32,3294,3296,2,3297,3313,16,3314,3332,18,3333,3340,1,3342,3344,1,3346,3386,1,3389,3406,17,3412,3414,1,3423,3425,1,3450,3455,1,3461,3478,1,3482,3505,1,3507,3515,1,3517,3520,3,3521,3526,1,3585,3632,1,3634,3635,1,3648,3654,1,3713,3714,1,3716,3718,2,3719,3722,1,3724,3747,1,3749,3751,2,3752,3760,1,3762,3763,1,3773,3776,3,3777,3780,1,3782,3804,22,3805,3807,1,3840,3904,64,3905,3911,1,3913,3948,1,3976,3980,1,4096,4138,1,4159,4176,17,4177,4181,1,4186,4189,1,4193,4197,4,4198,4206,8,4207,4208,1,4213,4225,1,4238,4256,18,4257,4293,1,4295,4301,6,4304,4346,1,4348,4680,1,4682,4685,1,4688,4694,1,4696,4698,2,4699,4701,1,4704,4744,1,4746,4749,1,4752,4784,1,4786,4789,1,4792,4798,1,4800,4802,2,4803,4805,1,4808,4822,1,4824,4880,1,4882,4885,1,4888,4954,1,4992,5007,1,5024,5109,1,5112,5117,1,5121,5740,1,5743,5759,1,5761,5786,1,5792,5866,1,5873,5880,1,5888,5905,1,5919,5937,1,5952,5969,1,5984,5996,1,5998,6000,1,6016,6067,1,6103,6108,5,6176,6264,1,6272,6276,1,6279,6312,1,6314,6320,6,6321,6389,1,6400,6430,1,6480,6509,1,6512,6516,1,6528,6571,1,6576,6601,1,6656,6678,1,6688,6740,1,6823,6917,94,6918,6963,1,6981,6988,1,7043,7072,1,7086,7087,1,7098,7141,1,7168,7203,1,7245,7247,1,7258,7293,1,7296,7306,1,7312,7354,1,7357,7359,1,7401,7404,1,7406,7411,1,7413,7414,1,7418,7424,6,7425,7615,1,7680,7957,1,7960,7965,1,7968,8005,1,8008,8013,1,8016,8023,1,8025,8031,2,8032,8061,1,8064,8116,1,8118,8124,1,8126,8130,4,8131,8132,1,8134,8140,1,8144,8147,1,8150,8155,1,8160,8172,1,8178,8180,1,8182,8188,1,8305,8319,14,8336,8348,1,8450,8455,5,8458,8467,1,8469,8473,4,8474,8477,1,8484,8490,2,8491,8493,1,8495,8505,1,8508,8511,1,8517,8521,1,8526,8579,53,8580,11264,2684,11265,11492,1,11499,11502,1,11506,11507,1,11520,11557,1,11559,11565,6,11568,11623,1,11631,11648,17,11649,11670,1,11680,11686,1,11688,11694,1,11696,11702,1,11704,11710,1,11712,11718,1,11720,11726,1,11728,11734,1,11736,11742,1,11823,12293,470,12294,12337,43,12338,12341,1,12347,12348,1,12353,12438,1,12445,12447,1,12449,12538,1,12540,12543,1,12549,12591,1,12593,12686,1,12704,12735,1,12784,12799,1,13312,19903,1,19968,42124,1,42192,42237,1,42240,42508,1,42512,42527,1,42538,42539,1,42560,42606,1,42623,42653,1,42656,42725,1,42775,42783,1,42786,42888,1,42891,42957,1,42960,42961,1,42963,42965,2,42966,42972,1,42994,43009,1,43011,43013,1,43015,43018,1,43020,43042,1,43072,43123,1,43138,43187,1,43250,43255,1,43259,43261,2,43262,43274,12,43275,43301,1,43312,43334,1,43360,43388,1,43396,43442,1,43471,43488,17,43489,43492,1,43494,43503,1,43514,43518,1,43520,43560,1,43584,43586,1,43588,43595,1,43616,43638,1,43642,43646,4,43647,43695,1,43697,43701,4,43702,43705,3,43706,43709,1,43712,43714,2,43739,43741,1,43744,43754,1,43762,43764,1,43777,43782,1,43785,43790,1,43793,43798,1,43808,43814,1,43816,43822,1,43824,43866,1,43868,43881,1,43888,44002,1,44032,55203,1,55216,55238,1,55243,55291,1,63744,64109,1,64112,64217,1,64256,64262,1,64275,64279,1,64285,64287,2,64288,64296,1,64298,64310,1,64312,64316,1,64318,64320,2,64321,64323,2,64324,64326,2,64327,64433,1,64467,64829,1,64848,64911,1,64914,64967,1,65008,65019,1,65136,65140,1,65142,65276,1,65313,65338,1,65345,65370,1,65382,65470,1,65474,65479,1,65482,65487,1,65490,65495,1,65498,65500,1,65536,65547,1,65549,65574,1,65576,65594,1,65596,65597,1,65599,65613,1,65616,65629,1,65664,65786,1,66176,66204,1,66208,66256,1,66304,66335,1,66349,66368,1,66370,66377,1,66384,66421,1,66432,66461,1,66464,66499,1,66504,66511,1,66560,66717,1,66736,66771,1,66776,66811,1,66816,66855,1,66864,66915,1,66928,66938,1,66940,66954,1,66956,66962,1,66964,66965,1,66967,66977,1,66979,66993,1,66995,67001,1,67003,67004,1,67008,67059,1,67072,67382,1,67392,67413,1,67424,67431,1,67456,67461,1,67463,67504,1,67506,67514,1,67584,67589,1,67592,67594,2,67595,67637,1,67639,67640,1,67644,67647,3,67648,67669,1,67680,67702,1,67712,67742,1,67808,67826,1,67828,67829,1,67840,67861,1,67872,67897,1,67968,68023,1,68030,68031,1,68096,68112,16,68113,68115,1,68117,68119,1,68121,68149,1,68192,68220,1,68224,68252,1,68288,68295,1,68297,68324,1,68352,68405,1,68416,68437,1,68448,68466,1,68480,68497,1,68608,68680,1,68736,68786,1,68800,68850,1,68864,68899,1,68938,68965,1,68975,68997,1,69248,69289,1,69296,69297,1,69314,69316,1,69376,69404,1,69415,69424,9,69425,69445,1,69488,69505,1,69552,69572,1,69600,69622,1,69635,69687,1,69745,69746,1,69749,69763,14,69764,69807,1,69840,69864,1,69891,69926,1,69956,69959,3,69968,70002,1,70006,70019,13,70020,70066,1,70081,70084,1,70106,70108,2,70144,70161,1,70163,70187,1,70207,70208,1,70272,70278,1,70280,70282,2,70283,70285,1,70287,70301,1,70303,70312,1,70320,70366,1,70405,70412,1,70415,70416,1,70419,70440,1,70442,70448,1,70450,70451,1,70453,70457,1,70461,70480,19,70493,70497,1,70528,70537,1,70539,70542,3,70544,70581,1,70583,70609,26,70611,70656,45,70657,70708,1,70727,70730,1,70751,70753,1,70784,70831,1,70852,70853,1,70855,71040,185,71041,71086,1,71128,71131,1,71168,71215,1,71236,71296,60,71297,71338,1,71352,71424,72,71425,71450,1,71488,71494,1,71680,71723,1,71840,71903,1,71935,71942,1,71945,71948,3,71949,71955,1,71957,71958,1,71960,71983,1,71999,72001,2,72096,72103,1,72106,72144,1,72161,72163,2,72192,72203,11,72204,72242,1,72250,72272,22,72284,72329,1,72349,72368,19,72369,72440,1,72640,72672,1,72704,72712,1,72714,72750,1,72768,72818,50,72819,72847,1,72960,72966,1,72968,72969,1,72971,73008,1,73030,73056,26,73057,73061,1,73063,73064,1,73066,73097,1,73112,73440,328,73441,73458,1,73474,73476,2,73477,73488,1,73490,73523,1,73648,73728,80,73729,74649,1,74880,75075,1,77712,77808,1,77824,78895,1,78913,78918,1,78944,82938,1,82944,83526,1,90368,90397,1,92160,92728,1,92736,92766,1,92784,92862,1,92880,92909,1,92928,92975,1,92992,92995,1,93027,93047,1,93053,93071,1,93504,93548,1,93760,93823,1,93952,94026,1,94032,94099,67,94100,94111,1,94176,94177,1,94179,94208,29,94209,100343,1,100352,101589,1,101631,101640,1,110576,110579,1,110581,110587,1,110589,110590,1,110592,110882,1,110898,110928,30,110929,110930,1,110933,110948,15,110949,110951,1,110960,111355,1,113664,113770,1,113776,113788,1,113792,113800,1,113808,113817,1,119808,119892,1,119894,119964,1,119966,119967,1,119970,119973,3,119974,119977,3,119978,119980,1,119982,119993,1,119995,119997,2,119998,120003,1,120005,120069,1,120071,120074,1,120077,120084,1,120086,120092,1,120094,120121,1,120123,120126,1,120128,120132,1,120134,120138,4,120139,120144,1,120146,120485,1,120488,120512,1,120514,120538,1,120540,120570,1,120572,120596,1,120598,120628,1,120630,120654,1,120656,120686,1,120688,120712,1,120714,120744,1,120746,120770,1,120772,120779,1,122624,122654,1,122661,122666,1,122928,122989,1,123136,123180,1,123191,123197,1,123214,123536,322,123537,123565,1,123584,123627,1,124112,124139,1,124368,124397,1,124400,124896,496,124897,124902,1,124904,124907,1,124909,124910,1,124912,124926,1,124928,125124,1,125184,125251,1,125259,126464,1205,126465,126467,1,126469,126495,1,126497,126498,1,126500,126503,3,126505,126514,1,126516,126519,1,126521,126523,2,126530,126535,5,126537,126541,2,126542,126543,1,126545,126546,1,126548,126551,3,126553,126561,2,126562,126564,2,126567,126570,1,126572,126578,1,126580,126583,1,126585,126588,1,126590,126592,2,126593,126601,1,126603,126619,1,126625,126627,1,126629,126633,1,126635,126651,1,131072,173791,1,173824,177977,1,177984,178205,1,178208,183969,1,183984,191456,1,191472,192093,1,194560,195101,1,196608,201546,1,201552,205743,1]));static foldL=new N(new Uint32Array([837,837,1]));static Ll=new N(new Uint32Array([97,122,1,181,223,42,224,246,1,248,255,1,257,311,2,312,328,2,329,375,2,378,382,2,383,384,1,387,389,2,392,396,4,397,402,5,405,409,4,410,411,1,414,417,3,419,421,2,424,426,2,427,429,2,432,436,4,438,441,3,442,445,3,446,447,1,454,460,3,462,476,2,477,495,2,496,499,3,501,505,4,507,563,2,564,569,1,572,575,3,576,578,2,583,591,2,592,659,1,661,687,1,881,883,2,887,891,4,892,893,1,912,940,28,941,974,1,976,977,1,981,983,1,985,1007,2,1008,1011,1,1013,1019,3,1020,1072,52,1073,1119,1,1121,1153,2,1163,1215,2,1218,1230,2,1231,1327,2,1376,1416,1,4304,4346,1,4349,4351,1,5112,5117,1,7296,7304,1,7306,7424,118,7425,7467,1,7531,7543,1,7545,7578,1,7681,7829,2,7830,7837,1,7839,7935,2,7936,7943,1,7952,7957,1,7968,7975,1,7984,7991,1,8000,8005,1,8016,8023,1,8032,8039,1,8048,8061,1,8064,8071,1,8080,8087,1,8096,8103,1,8112,8116,1,8118,8119,1,8126,8130,4,8131,8132,1,8134,8135,1,8144,8147,1,8150,8151,1,8160,8167,1,8178,8180,1,8182,8183,1,8458,8462,4,8463,8467,4,8495,8505,5,8508,8509,1,8518,8521,1,8526,8580,54,11312,11359,1,11361,11365,4,11366,11372,2,11377,11379,2,11380,11382,2,11383,11387,1,11393,11491,2,11492,11500,8,11502,11507,5,11520,11557,1,11559,11565,6,42561,42605,2,42625,42651,2,42787,42799,2,42800,42801,1,42803,42865,2,42866,42872,1,42874,42876,2,42879,42887,2,42892,42894,2,42897,42899,2,42900,42901,1,42903,42921,2,42927,42933,6,42935,42947,2,42952,42954,2,42957,42961,4,42963,42971,2,42998,43002,4,43824,43866,1,43872,43880,1,43888,43967,1,64256,64262,1,64275,64279,1,65345,65370,1,66600,66639,1,66776,66811,1,66967,66977,1,66979,66993,1,66995,67001,1,67003,67004,1,68800,68850,1,68976,68997,1,71872,71903,1,93792,93823,1,119834,119859,1,119886,119892,1,119894,119911,1,119938,119963,1,119990,119993,1,119995,119997,2,119998,120003,1,120005,120015,1,120042,120067,1,120094,120119,1,120146,120171,1,120198,120223,1,120250,120275,1,120302,120327,1,120354,120379,1,120406,120431,1,120458,120485,1,120514,120538,1,120540,120545,1,120572,120596,1,120598,120603,1,120630,120654,1,120656,120661,1,120688,120712,1,120714,120719,1,120746,120770,1,120772,120777,1,120779,122624,1845,122625,122633,1,122635,122654,1,122661,122666,1,125218,125251,1]));static foldLl=new N(new Uint32Array([65,90,1,192,214,1,216,222,1,256,302,2,306,310,2,313,327,2,330,376,2,377,381,2,385,386,1,388,390,2,391,393,2,394,395,1,398,401,1,403,404,1,406,408,1,412,413,1,415,416,1,418,422,2,423,425,2,428,430,2,431,433,2,434,435,1,437,439,2,440,444,4,452,453,1,455,456,1,458,459,1,461,475,2,478,494,2,497,498,1,500,502,2,503,504,1,506,562,2,570,571,1,573,574,1,577,579,2,580,582,1,584,590,2,837,880,43,882,886,4,895,902,7,904,906,1,908,910,2,911,913,2,914,929,1,931,939,1,975,984,9,986,1006,2,1012,1015,3,1017,1018,1,1021,1071,1,1120,1152,2,1162,1216,2,1217,1229,2,1232,1326,2,1329,1366,1,4256,4293,1,4295,4301,6,5024,5109,1,7305,7312,7,7313,7354,1,7357,7359,1,7680,7828,2,7838,7934,2,7944,7951,1,7960,7965,1,7976,7983,1,7992,7999,1,8008,8013,1,8025,8031,2,8040,8047,1,8072,8079,1,8088,8095,1,8104,8111,1,8120,8124,1,8136,8140,1,8152,8155,1,8168,8172,1,8184,8188,1,8486,8490,4,8491,8498,7,8579,11264,2685,11265,11311,1,11360,11362,2,11363,11364,1,11367,11373,2,11374,11376,1,11378,11381,3,11390,11392,1,11394,11490,2,11499,11501,2,11506,42560,31054,42562,42604,2,42624,42650,2,42786,42798,2,42802,42862,2,42873,42877,2,42878,42886,2,42891,42893,2,42896,42898,2,42902,42922,2,42923,42926,1,42928,42932,1,42934,42948,2,42949,42951,1,42953,42955,2,42956,42960,4,42966,42972,2,42997,65313,22316,65314,65338,1,66560,66599,1,66736,66771,1,66928,66938,1,66940,66954,1,66956,66962,1,66964,66965,1,68736,68786,1,68944,68965,1,71840,71871,1,93760,93791,1,125184,125217,1]));static Lm=new N(new Uint32Array([688,705,1,710,721,1,736,740,1,748,750,2,884,890,6,1369,1600,231,1765,1766,1,2036,2037,1,2042,2074,32,2084,2088,4,2249,2417,168,3654,3782,128,4348,6103,1755,6211,6823,612,7288,7293,1,7468,7530,1,7544,7579,35,7580,7615,1,8305,8319,14,8336,8348,1,11388,11389,1,11631,11823,192,12293,12337,44,12338,12341,1,12347,12445,98,12446,12540,94,12541,12542,1,40981,42232,1251,42233,42237,1,42508,42623,115,42652,42653,1,42775,42783,1,42864,42888,24,42994,42996,1,43000,43001,1,43471,43494,23,43632,43741,109,43763,43764,1,43868,43871,1,43881,65392,21511,65438,65439,1,67456,67461,1,67463,67504,1,67506,67514,1,68942,68975,33,92992,92995,1,93504,93506,1,93547,93548,1,94099,94111,1,94176,94177,1,94179,110576,16397,110577,110579,1,110581,110587,1,110589,110590,1,122928,122989,1,123191,123197,1,124139,125259,1120]));static Lo=new N(new Uint32Array([170,186,16,443,448,5,449,451,1,660,1488,828,1489,1514,1,1519,1522,1,1568,1599,1,1601,1610,1,1646,1647,1,1649,1747,1,1749,1774,25,1775,1786,11,1787,1788,1,1791,1808,17,1810,1839,1,1869,1957,1,1969,1994,25,1995,2026,1,2048,2069,1,2112,2136,1,2144,2154,1,2160,2183,1,2185,2190,1,2208,2248,1,2308,2361,1,2365,2384,19,2392,2401,1,2418,2432,1,2437,2444,1,2447,2448,1,2451,2472,1,2474,2480,1,2482,2486,4,2487,2489,1,2493,2510,17,2524,2525,1,2527,2529,1,2544,2545,1,2556,2565,9,2566,2570,1,2575,2576,1,2579,2600,1,2602,2608,1,2610,2611,1,2613,2614,1,2616,2617,1,2649,2652,1,2654,2674,20,2675,2676,1,2693,2701,1,2703,2705,1,2707,2728,1,2730,2736,1,2738,2739,1,2741,2745,1,2749,2768,19,2784,2785,1,2809,2821,12,2822,2828,1,2831,2832,1,2835,2856,1,2858,2864,1,2866,2867,1,2869,2873,1,2877,2908,31,2909,2911,2,2912,2913,1,2929,2947,18,2949,2954,1,2958,2960,1,2962,2965,1,2969,2970,1,2972,2974,2,2975,2979,4,2980,2984,4,2985,2986,1,2990,3001,1,3024,3077,53,3078,3084,1,3086,3088,1,3090,3112,1,3114,3129,1,3133,3160,27,3161,3162,1,3165,3168,3,3169,3200,31,3205,3212,1,3214,3216,1,3218,3240,1,3242,3251,1,3253,3257,1,3261,3293,32,3294,3296,2,3297,3313,16,3314,3332,18,3333,3340,1,3342,3344,1,3346,3386,1,3389,3406,17,3412,3414,1,3423,3425,1,3450,3455,1,3461,3478,1,3482,3505,1,3507,3515,1,3517,3520,3,3521,3526,1,3585,3632,1,3634,3635,1,3648,3653,1,3713,3714,1,3716,3718,2,3719,3722,1,3724,3747,1,3749,3751,2,3752,3760,1,3762,3763,1,3773,3776,3,3777,3780,1,3804,3807,1,3840,3904,64,3905,3911,1,3913,3948,1,3976,3980,1,4096,4138,1,4159,4176,17,4177,4181,1,4186,4189,1,4193,4197,4,4198,4206,8,4207,4208,1,4213,4225,1,4238,4352,114,4353,4680,1,4682,4685,1,4688,4694,1,4696,4698,2,4699,4701,1,4704,4744,1,4746,4749,1,4752,4784,1,4786,4789,1,4792,4798,1,4800,4802,2,4803,4805,1,4808,4822,1,4824,4880,1,4882,4885,1,4888,4954,1,4992,5007,1,5121,5740,1,5743,5759,1,5761,5786,1,5792,5866,1,5873,5880,1,5888,5905,1,5919,5937,1,5952,5969,1,5984,5996,1,5998,6000,1,6016,6067,1,6108,6176,68,6177,6210,1,6212,6264,1,6272,6276,1,6279,6312,1,6314,6320,6,6321,6389,1,6400,6430,1,6480,6509,1,6512,6516,1,6528,6571,1,6576,6601,1,6656,6678,1,6688,6740,1,6917,6963,1,6981,6988,1,7043,7072,1,7086,7087,1,7098,7141,1,7168,7203,1,7245,7247,1,7258,7287,1,7401,7404,1,7406,7411,1,7413,7414,1,7418,8501,1083,8502,8504,1,11568,11623,1,11648,11670,1,11680,11686,1,11688,11694,1,11696,11702,1,11704,11710,1,11712,11718,1,11720,11726,1,11728,11734,1,11736,11742,1,12294,12348,54,12353,12438,1,12447,12449,2,12450,12538,1,12543,12549,6,12550,12591,1,12593,12686,1,12704,12735,1,12784,12799,1,13312,19903,1,19968,40980,1,40982,42124,1,42192,42231,1,42240,42507,1,42512,42527,1,42538,42539,1,42606,42656,50,42657,42725,1,42895,42999,104,43003,43009,1,43011,43013,1,43015,43018,1,43020,43042,1,43072,43123,1,43138,43187,1,43250,43255,1,43259,43261,2,43262,43274,12,43275,43301,1,43312,43334,1,43360,43388,1,43396,43442,1,43488,43492,1,43495,43503,1,43514,43518,1,43520,43560,1,43584,43586,1,43588,43595,1,43616,43631,1,43633,43638,1,43642,43646,4,43647,43695,1,43697,43701,4,43702,43705,3,43706,43709,1,43712,43714,2,43739,43740,1,43744,43754,1,43762,43777,15,43778,43782,1,43785,43790,1,43793,43798,1,43808,43814,1,43816,43822,1,43968,44002,1,44032,55203,1,55216,55238,1,55243,55291,1,63744,64109,1,64112,64217,1,64285,64287,2,64288,64296,1,64298,64310,1,64312,64316,1,64318,64320,2,64321,64323,2,64324,64326,2,64327,64433,1,64467,64829,1,64848,64911,1,64914,64967,1,65008,65019,1,65136,65140,1,65142,65276,1,65382,65391,1,65393,65437,1,65440,65470,1,65474,65479,1,65482,65487,1,65490,65495,1,65498,65500,1,65536,65547,1,65549,65574,1,65576,65594,1,65596,65597,1,65599,65613,1,65616,65629,1,65664,65786,1,66176,66204,1,66208,66256,1,66304,66335,1,66349,66368,1,66370,66377,1,66384,66421,1,66432,66461,1,66464,66499,1,66504,66511,1,66640,66717,1,66816,66855,1,66864,66915,1,67008,67059,1,67072,67382,1,67392,67413,1,67424,67431,1,67584,67589,1,67592,67594,2,67595,67637,1,67639,67640,1,67644,67647,3,67648,67669,1,67680,67702,1,67712,67742,1,67808,67826,1,67828,67829,1,67840,67861,1,67872,67897,1,67968,68023,1,68030,68031,1,68096,68112,16,68113,68115,1,68117,68119,1,68121,68149,1,68192,68220,1,68224,68252,1,68288,68295,1,68297,68324,1,68352,68405,1,68416,68437,1,68448,68466,1,68480,68497,1,68608,68680,1,68864,68899,1,68938,68941,1,68943,69248,305,69249,69289,1,69296,69297,1,69314,69316,1,69376,69404,1,69415,69424,9,69425,69445,1,69488,69505,1,69552,69572,1,69600,69622,1,69635,69687,1,69745,69746,1,69749,69763,14,69764,69807,1,69840,69864,1,69891,69926,1,69956,69959,3,69968,70002,1,70006,70019,13,70020,70066,1,70081,70084,1,70106,70108,2,70144,70161,1,70163,70187,1,70207,70208,1,70272,70278,1,70280,70282,2,70283,70285,1,70287,70301,1,70303,70312,1,70320,70366,1,70405,70412,1,70415,70416,1,70419,70440,1,70442,70448,1,70450,70451,1,70453,70457,1,70461,70480,19,70493,70497,1,70528,70537,1,70539,70542,3,70544,70581,1,70583,70609,26,70611,70656,45,70657,70708,1,70727,70730,1,70751,70753,1,70784,70831,1,70852,70853,1,70855,71040,185,71041,71086,1,71128,71131,1,71168,71215,1,71236,71296,60,71297,71338,1,71352,71424,72,71425,71450,1,71488,71494,1,71680,71723,1,71935,71942,1,71945,71948,3,71949,71955,1,71957,71958,1,71960,71983,1,71999,72001,2,72096,72103,1,72106,72144,1,72161,72163,2,72192,72203,11,72204,72242,1,72250,72272,22,72284,72329,1,72349,72368,19,72369,72440,1,72640,72672,1,72704,72712,1,72714,72750,1,72768,72818,50,72819,72847,1,72960,72966,1,72968,72969,1,72971,73008,1,73030,73056,26,73057,73061,1,73063,73064,1,73066,73097,1,73112,73440,328,73441,73458,1,73474,73476,2,73477,73488,1,73490,73523,1,73648,73728,80,73729,74649,1,74880,75075,1,77712,77808,1,77824,78895,1,78913,78918,1,78944,82938,1,82944,83526,1,90368,90397,1,92160,92728,1,92736,92766,1,92784,92862,1,92880,92909,1,92928,92975,1,93027,93047,1,93053,93071,1,93507,93546,1,93952,94026,1,94032,94208,176,94209,100343,1,100352,101589,1,101631,101640,1,110592,110882,1,110898,110928,30,110929,110930,1,110933,110948,15,110949,110951,1,110960,111355,1,113664,113770,1,113776,113788,1,113792,113800,1,113808,113817,1,122634,123136,502,123137,123180,1,123214,123536,322,123537,123565,1,123584,123627,1,124112,124138,1,124368,124397,1,124400,124896,496,124897,124902,1,124904,124907,1,124909,124910,1,124912,124926,1,124928,125124,1,126464,126467,1,126469,126495,1,126497,126498,1,126500,126503,3,126505,126514,1,126516,126519,1,126521,126523,2,126530,126535,5,126537,126541,2,126542,126543,1,126545,126546,1,126548,126551,3,126553,126561,2,126562,126564,2,126567,126570,1,126572,126578,1,126580,126583,1,126585,126588,1,126590,126592,2,126593,126601,1,126603,126619,1,126625,126627,1,126629,126633,1,126635,126651,1,131072,173791,1,173824,177977,1,177984,178205,1,178208,183969,1,183984,191456,1,191472,192093,1,194560,195101,1,196608,201546,1,201552,205743,1]));static Lt=new N(new Uint32Array([453,459,3,498,8072,7574,8073,8079,1,8088,8095,1,8104,8111,1,8124,8140,16,8188,8188,1]));static foldLt=new N(new Uint32Array([452,454,2,455,457,2,458,460,2,497,499,2,8064,8071,1,8080,8087,1,8096,8103,1,8115,8131,16,8179,8179,1]));static Lu=new N(new Uint32Array([65,90,1,192,214,1,216,222,1,256,310,2,313,327,2,330,376,2,377,381,2,385,386,1,388,390,2,391,393,2,394,395,1,398,401,1,403,404,1,406,408,1,412,413,1,415,416,1,418,422,2,423,425,2,428,430,2,431,433,2,434,435,1,437,439,2,440,444,4,452,461,3,463,475,2,478,494,2,497,500,3,502,504,1,506,562,2,570,571,1,573,574,1,577,579,2,580,582,1,584,590,2,880,882,2,886,895,9,902,904,2,905,906,1,908,910,2,911,913,2,914,929,1,931,939,1,975,978,3,979,980,1,984,1006,2,1012,1015,3,1017,1018,1,1021,1071,1,1120,1152,2,1162,1216,2,1217,1229,2,1232,1326,2,1329,1366,1,4256,4293,1,4295,4301,6,5024,5109,1,7305,7312,7,7313,7354,1,7357,7359,1,7680,7828,2,7838,7934,2,7944,7951,1,7960,7965,1,7976,7983,1,7992,7999,1,8008,8013,1,8025,8031,2,8040,8047,1,8120,8123,1,8136,8139,1,8152,8155,1,8168,8172,1,8184,8187,1,8450,8455,5,8459,8461,1,8464,8466,1,8469,8473,4,8474,8477,1,8484,8490,2,8491,8493,1,8496,8499,1,8510,8511,1,8517,8579,62,11264,11311,1,11360,11362,2,11363,11364,1,11367,11373,2,11374,11376,1,11378,11381,3,11390,11392,1,11394,11490,2,11499,11501,2,11506,42560,31054,42562,42604,2,42624,42650,2,42786,42798,2,42802,42862,2,42873,42877,2,42878,42886,2,42891,42893,2,42896,42898,2,42902,42922,2,42923,42926,1,42928,42932,1,42934,42948,2,42949,42951,1,42953,42955,2,42956,42960,4,42966,42972,2,42997,65313,22316,65314,65338,1,66560,66599,1,66736,66771,1,66928,66938,1,66940,66954,1,66956,66962,1,66964,66965,1,68736,68786,1,68944,68965,1,71840,71871,1,93760,93791,1,119808,119833,1,119860,119885,1,119912,119937,1,119964,119966,2,119967,119973,3,119974,119977,3,119978,119980,1,119982,119989,1,120016,120041,1,120068,120069,1,120071,120074,1,120077,120084,1,120086,120092,1,120120,120121,1,120123,120126,1,120128,120132,1,120134,120138,4,120139,120144,1,120172,120197,1,120224,120249,1,120276,120301,1,120328,120353,1,120380,120405,1,120432,120457,1,120488,120512,1,120546,120570,1,120604,120628,1,120662,120686,1,120720,120744,1,120778,125184,4406,125185,125217,1]));static Upper=this.Lu;static foldLu=new N(new Uint32Array([97,122,1,181,223,42,224,246,1,248,255,1,257,303,2,307,311,2,314,328,2,331,375,2,378,382,2,383,384,1,387,389,2,392,396,4,402,405,3,409,411,1,414,417,3,419,421,2,424,429,5,432,436,4,438,441,3,445,447,2,453,454,1,456,457,1,459,460,1,462,476,2,477,495,2,498,499,1,501,505,4,507,543,2,547,563,2,572,575,3,576,578,2,583,591,2,592,596,1,598,599,1,601,603,2,604,608,4,609,611,2,612,614,1,616,620,1,623,625,2,626,629,3,637,640,3,642,643,1,647,652,1,658,669,11,670,837,167,881,883,2,887,891,4,892,893,1,940,943,1,945,974,1,976,977,1,981,983,1,985,1007,2,1008,1011,1,1013,1019,3,1072,1119,1,1121,1153,2,1163,1215,2,1218,1230,2,1231,1327,2,1377,1414,1,4304,4346,1,4349,4351,1,5112,5117,1,7296,7304,1,7306,7545,239,7549,7566,17,7681,7829,2,7835,7841,6,7843,7935,2,7936,7943,1,7952,7957,1,7968,7975,1,7984,7991,1,8000,8005,1,8017,8023,2,8032,8039,1,8048,8061,1,8112,8113,1,8126,8144,18,8145,8160,15,8161,8165,4,8526,8580,54,11312,11359,1,11361,11365,4,11366,11372,2,11379,11382,3,11393,11491,2,11500,11502,2,11507,11520,13,11521,11557,1,11559,11565,6,42561,42605,2,42625,42651,2,42787,42799,2,42803,42863,2,42874,42876,2,42879,42887,2,42892,42897,5,42899,42900,1,42903,42921,2,42933,42947,2,42952,42954,2,42957,42961,4,42967,42971,2,42998,43859,861,43888,43967,1,65345,65370,1,66600,66639,1,66776,66811,1,66967,66977,1,66979,66993,1,66995,67001,1,67003,67004,1,68800,68850,1,68976,68997,1,71872,71903,1,93792,93823,1,125218,125251,1]));static M=new N(new Uint32Array([768,879,1,1155,1161,1,1425,1469,1,1471,1473,2,1474,1476,2,1477,1479,2,1552,1562,1,1611,1631,1,1648,1750,102,1751,1756,1,1759,1764,1,1767,1768,1,1770,1773,1,1809,1840,31,1841,1866,1,1958,1968,1,2027,2035,1,2045,2070,25,2071,2073,1,2075,2083,1,2085,2087,1,2089,2093,1,2137,2139,1,2199,2207,1,2250,2273,1,2275,2307,1,2362,2364,1,2366,2383,1,2385,2391,1,2402,2403,1,2433,2435,1,2492,2494,2,2495,2500,1,2503,2504,1,2507,2509,1,2519,2530,11,2531,2558,27,2561,2563,1,2620,2622,2,2623,2626,1,2631,2632,1,2635,2637,1,2641,2672,31,2673,2677,4,2689,2691,1,2748,2750,2,2751,2757,1,2759,2761,1,2763,2765,1,2786,2787,1,2810,2815,1,2817,2819,1,2876,2878,2,2879,2884,1,2887,2888,1,2891,2893,1,2901,2903,1,2914,2915,1,2946,3006,60,3007,3010,1,3014,3016,1,3018,3021,1,3031,3072,41,3073,3076,1,3132,3134,2,3135,3140,1,3142,3144,1,3146,3149,1,3157,3158,1,3170,3171,1,3201,3203,1,3260,3262,2,3263,3268,1,3270,3272,1,3274,3277,1,3285,3286,1,3298,3299,1,3315,3328,13,3329,3331,1,3387,3388,1,3390,3396,1,3398,3400,1,3402,3405,1,3415,3426,11,3427,3457,30,3458,3459,1,3530,3535,5,3536,3540,1,3542,3544,2,3545,3551,1,3570,3571,1,3633,3636,3,3637,3642,1,3655,3662,1,3761,3764,3,3765,3772,1,3784,3790,1,3864,3865,1,3893,3897,2,3902,3903,1,3953,3972,1,3974,3975,1,3981,3991,1,3993,4028,1,4038,4139,101,4140,4158,1,4182,4185,1,4190,4192,1,4194,4196,1,4199,4205,1,4209,4212,1,4226,4237,1,4239,4250,11,4251,4253,1,4957,4959,1,5906,5909,1,5938,5940,1,5970,5971,1,6002,6003,1,6068,6099,1,6109,6155,46,6156,6157,1,6159,6277,118,6278,6313,35,6432,6443,1,6448,6459,1,6679,6683,1,6741,6750,1,6752,6780,1,6783,6832,49,6833,6862,1,6912,6916,1,6964,6980,1,7019,7027,1,7040,7042,1,7073,7085,1,7142,7155,1,7204,7223,1,7376,7378,1,7380,7400,1,7405,7412,7,7415,7417,1,7616,7679,1,8400,8432,1,11503,11505,1,11647,11744,97,11745,11775,1,12330,12335,1,12441,12442,1,42607,42610,1,42612,42621,1,42654,42655,1,42736,42737,1,43010,43014,4,43019,43043,24,43044,43047,1,43052,43136,84,43137,43188,51,43189,43205,1,43232,43249,1,43263,43302,39,43303,43309,1,43335,43347,1,43392,43395,1,43443,43456,1,43493,43561,68,43562,43574,1,43587,43596,9,43597,43643,46,43644,43645,1,43696,43698,2,43699,43700,1,43703,43704,1,43710,43711,1,43713,43755,42,43756,43759,1,43765,43766,1,44003,44010,1,44012,44013,1,64286,65024,738,65025,65039,1,65056,65071,1,66045,66272,227,66422,66426,1,68097,68099,1,68101,68102,1,68108,68111,1,68152,68154,1,68159,68325,166,68326,68900,574,68901,68903,1,68969,68973,1,69291,69292,1,69372,69375,1,69446,69456,1,69506,69509,1,69632,69634,1,69688,69702,1,69744,69747,3,69748,69759,11,69760,69762,1,69808,69818,1,69826,69888,62,69889,69890,1,69927,69940,1,69957,69958,1,70003,70016,13,70017,70018,1,70067,70080,1,70089,70092,1,70094,70095,1,70188,70199,1,70206,70209,3,70367,70378,1,70400,70403,1,70459,70460,1,70462,70468,1,70471,70472,1,70475,70477,1,70487,70498,11,70499,70502,3,70503,70508,1,70512,70516,1,70584,70592,1,70594,70597,3,70599,70602,1,70604,70608,1,70610,70625,15,70626,70709,83,70710,70726,1,70750,70832,82,70833,70851,1,71087,71093,1,71096,71104,1,71132,71133,1,71216,71232,1,71339,71351,1,71453,71467,1,71724,71738,1,71984,71989,1,71991,71992,1,71995,71998,1,72000,72002,2,72003,72145,142,72146,72151,1,72154,72160,1,72164,72193,29,72194,72202,1,72243,72249,1,72251,72254,1,72263,72273,10,72274,72283,1,72330,72345,1,72751,72758,1,72760,72767,1,72850,72871,1,72873,72886,1,73009,73014,1,73018,73020,2,73021,73023,2,73024,73029,1,73031,73098,67,73099,73102,1,73104,73105,1,73107,73111,1,73459,73462,1,73472,73473,1,73475,73524,49,73525,73530,1,73534,73538,1,73562,78912,5350,78919,78933,1,90398,90415,1,92912,92916,1,92976,92982,1,94031,94033,2,94034,94087,1,94095,94098,1,94180,94192,12,94193,113821,19628,113822,118528,4706,118529,118573,1,118576,118598,1,119141,119145,1,119149,119154,1,119163,119170,1,119173,119179,1,119210,119213,1,119362,119364,1,121344,121398,1,121403,121452,1,121461,121476,15,121499,121503,1,121505,121519,1,122880,122886,1,122888,122904,1,122907,122913,1,122915,122916,1,122918,122922,1,123023,123184,161,123185,123190,1,123566,123628,62,123629,123631,1,124140,124143,1,124398,124399,1,125136,125142,1,125252,125258,1,917760,917999,1]));static foldM=new N(new Uint32Array([921,953,32,8126,8126,1]));static Mc=new N(new Uint32Array([2307,2363,56,2366,2368,1,2377,2380,1,2382,2383,1,2434,2435,1,2494,2496,1,2503,2504,1,2507,2508,1,2519,2563,44,2622,2624,1,2691,2750,59,2751,2752,1,2761,2763,2,2764,2818,54,2819,2878,59,2880,2887,7,2888,2891,3,2892,2903,11,3006,3007,1,3009,3010,1,3014,3016,1,3018,3020,1,3031,3073,42,3074,3075,1,3137,3140,1,3202,3203,1,3262,3264,2,3265,3268,1,3271,3272,1,3274,3275,1,3285,3286,1,3315,3330,15,3331,3390,59,3391,3392,1,3398,3400,1,3402,3404,1,3415,3458,43,3459,3535,76,3536,3537,1,3544,3551,1,3570,3571,1,3902,3903,1,3967,4139,172,4140,4145,5,4152,4155,3,4156,4182,26,4183,4194,11,4195,4196,1,4199,4205,1,4227,4228,1,4231,4236,1,4239,4250,11,4251,4252,1,5909,5940,31,6070,6078,8,6079,6085,1,6087,6088,1,6435,6438,1,6441,6443,1,6448,6449,1,6451,6456,1,6681,6682,1,6741,6743,2,6753,6755,2,6756,6765,9,6766,6770,1,6916,6965,49,6971,6973,2,6974,6977,1,6979,6980,1,7042,7073,31,7078,7079,1,7082,7143,61,7146,7148,1,7150,7154,4,7155,7204,49,7205,7211,1,7220,7221,1,7393,7415,22,12334,12335,1,43043,43044,1,43047,43136,89,43137,43188,51,43189,43203,1,43346,43347,1,43395,43444,49,43445,43450,5,43451,43454,3,43455,43456,1,43567,43568,1,43571,43572,1,43597,43643,46,43645,43755,110,43758,43759,1,43765,44003,238,44004,44006,2,44007,44009,2,44010,44012,2,69632,69634,2,69762,69808,46,69809,69810,1,69815,69816,1,69932,69957,25,69958,70018,60,70067,70069,1,70079,70080,1,70094,70188,94,70189,70190,1,70194,70195,1,70197,70368,171,70369,70370,1,70402,70403,1,70462,70463,1,70465,70468,1,70471,70472,1,70475,70477,1,70487,70498,11,70499,70584,85,70585,70586,1,70594,70597,3,70599,70602,1,70604,70605,1,70607,70709,102,70710,70711,1,70720,70721,1,70725,70832,107,70833,70834,1,70841,70843,2,70844,70846,1,70849,71087,238,71088,71089,1,71096,71099,1,71102,71216,114,71217,71218,1,71227,71228,1,71230,71340,110,71342,71343,1,71350,71454,104,71456,71457,1,71462,71724,262,71725,71726,1,71736,71984,248,71985,71989,1,71991,71992,1,71997,72000,3,72002,72145,143,72146,72147,1,72156,72159,1,72164,72249,85,72279,72280,1,72343,72751,408,72766,72873,107,72881,72884,3,73098,73102,1,73107,73108,1,73110,73461,351,73462,73475,13,73524,73525,1,73534,73535,1,73537,90410,16873,90411,90412,1,94033,94087,1,94192,94193,1,119141,119142,1,119149,119154,1]));static Me=new N(new Uint32Array([1160,1161,1,6846,8413,1567,8414,8416,1,8418,8420,1,42608,42610,1]));static Mn=new N(new Uint32Array([768,879,1,1155,1159,1,1425,1469,1,1471,1473,2,1474,1476,2,1477,1479,2,1552,1562,1,1611,1631,1,1648,1750,102,1751,1756,1,1759,1764,1,1767,1768,1,1770,1773,1,1809,1840,31,1841,1866,1,1958,1968,1,2027,2035,1,2045,2070,25,2071,2073,1,2075,2083,1,2085,2087,1,2089,2093,1,2137,2139,1,2199,2207,1,2250,2273,1,2275,2306,1,2362,2364,2,2369,2376,1,2381,2385,4,2386,2391,1,2402,2403,1,2433,2492,59,2497,2500,1,2509,2530,21,2531,2558,27,2561,2562,1,2620,2625,5,2626,2631,5,2632,2635,3,2636,2637,1,2641,2672,31,2673,2677,4,2689,2690,1,2748,2753,5,2754,2757,1,2759,2760,1,2765,2786,21,2787,2810,23,2811,2815,1,2817,2876,59,2879,2881,2,2882,2884,1,2893,2901,8,2902,2914,12,2915,2946,31,3008,3021,13,3072,3076,4,3132,3134,2,3135,3136,1,3142,3144,1,3146,3149,1,3157,3158,1,3170,3171,1,3201,3260,59,3263,3270,7,3276,3277,1,3298,3299,1,3328,3329,1,3387,3388,1,3393,3396,1,3405,3426,21,3427,3457,30,3530,3538,8,3539,3540,1,3542,3633,91,3636,3642,1,3655,3662,1,3761,3764,3,3765,3772,1,3784,3790,1,3864,3865,1,3893,3897,2,3953,3966,1,3968,3972,1,3974,3975,1,3981,3991,1,3993,4028,1,4038,4141,103,4142,4144,1,4146,4151,1,4153,4154,1,4157,4158,1,4184,4185,1,4190,4192,1,4209,4212,1,4226,4229,3,4230,4237,7,4253,4957,704,4958,4959,1,5906,5908,1,5938,5939,1,5970,5971,1,6002,6003,1,6068,6069,1,6071,6077,1,6086,6089,3,6090,6099,1,6109,6155,46,6156,6157,1,6159,6277,118,6278,6313,35,6432,6434,1,6439,6440,1,6450,6457,7,6458,6459,1,6679,6680,1,6683,6742,59,6744,6750,1,6752,6754,2,6757,6764,1,6771,6780,1,6783,6832,49,6833,6845,1,6847,6862,1,6912,6915,1,6964,6966,2,6967,6970,1,6972,6978,6,7019,7027,1,7040,7041,1,7074,7077,1,7080,7081,1,7083,7085,1,7142,7144,2,7145,7149,4,7151,7153,1,7212,7219,1,7222,7223,1,7376,7378,1,7380,7392,1,7394,7400,1,7405,7412,7,7416,7417,1,7616,7679,1,8400,8412,1,8417,8421,4,8422,8432,1,11503,11505,1,11647,11744,97,11745,11775,1,12330,12333,1,12441,12442,1,42607,42612,5,42613,42621,1,42654,42655,1,42736,42737,1,43010,43014,4,43019,43045,26,43046,43052,6,43204,43205,1,43232,43249,1,43263,43302,39,43303,43309,1,43335,43345,1,43392,43394,1,43443,43446,3,43447,43449,1,43452,43453,1,43493,43561,68,43562,43566,1,43569,43570,1,43573,43574,1,43587,43596,9,43644,43696,52,43698,43700,1,43703,43704,1,43710,43711,1,43713,43756,43,43757,43766,9,44005,44008,3,44013,64286,20273,65024,65039,1,65056,65071,1,66045,66272,227,66422,66426,1,68097,68099,1,68101,68102,1,68108,68111,1,68152,68154,1,68159,68325,166,68326,68900,574,68901,68903,1,68969,68973,1,69291,69292,1,69372,69375,1,69446,69456,1,69506,69509,1,69633,69688,55,69689,69702,1,69744,69747,3,69748,69759,11,69760,69761,1,69811,69814,1,69817,69818,1,69826,69888,62,69889,69890,1,69927,69931,1,69933,69940,1,70003,70016,13,70017,70070,53,70071,70078,1,70089,70092,1,70095,70191,96,70192,70193,1,70196,70198,2,70199,70206,7,70209,70367,158,70371,70378,1,70400,70401,1,70459,70460,1,70464,70502,38,70503,70508,1,70512,70516,1,70587,70592,1,70606,70610,2,70625,70626,1,70712,70719,1,70722,70724,1,70726,70750,24,70835,70840,1,70842,70847,5,70848,70850,2,70851,71090,239,71091,71093,1,71100,71101,1,71103,71104,1,71132,71133,1,71219,71226,1,71229,71231,2,71232,71339,107,71341,71344,3,71345,71349,1,71351,71453,102,71455,71458,3,71459,71461,1,71463,71467,1,71727,71735,1,71737,71738,1,71995,71996,1,71998,72003,5,72148,72151,1,72154,72155,1,72160,72193,33,72194,72202,1,72243,72248,1,72251,72254,1,72263,72273,10,72274,72278,1,72281,72283,1,72330,72342,1,72344,72345,1,72752,72758,1,72760,72765,1,72767,72850,83,72851,72871,1,72874,72880,1,72882,72883,1,72885,72886,1,73009,73014,1,73018,73020,2,73021,73023,2,73024,73029,1,73031,73104,73,73105,73109,4,73111,73459,348,73460,73472,12,73473,73526,53,73527,73530,1,73536,73538,2,73562,78912,5350,78919,78933,1,90398,90409,1,90413,90415,1,92912,92916,1,92976,92982,1,94031,94095,64,94096,94098,1,94180,113821,19641,113822,118528,4706,118529,118573,1,118576,118598,1,119143,119145,1,119163,119170,1,119173,119179,1,119210,119213,1,119362,119364,1,121344,121398,1,121403,121452,1,121461,121476,15,121499,121503,1,121505,121519,1,122880,122886,1,122888,122904,1,122907,122913,1,122915,122916,1,122918,122922,1,123023,123184,161,123185,123190,1,123566,123628,62,123629,123631,1,124140,124143,1,124398,124399,1,125136,125142,1,125252,125258,1,917760,917999,1]));static foldMn=new N(new Uint32Array([921,953,32,8126,8126,1]));static N=new N(new Uint32Array([48,57,1,178,179,1,185,188,3,189,190,1,1632,1641,1,1776,1785,1,1984,1993,1,2406,2415,1,2534,2543,1,2548,2553,1,2662,2671,1,2790,2799,1,2918,2927,1,2930,2935,1,3046,3058,1,3174,3183,1,3192,3198,1,3302,3311,1,3416,3422,1,3430,3448,1,3558,3567,1,3664,3673,1,3792,3801,1,3872,3891,1,4160,4169,1,4240,4249,1,4969,4988,1,5870,5872,1,6112,6121,1,6128,6137,1,6160,6169,1,6470,6479,1,6608,6618,1,6784,6793,1,6800,6809,1,6992,7001,1,7088,7097,1,7232,7241,1,7248,7257,1,8304,8308,4,8309,8313,1,8320,8329,1,8528,8578,1,8581,8585,1,9312,9371,1,9450,9471,1,10102,10131,1,11517,12295,778,12321,12329,1,12344,12346,1,12690,12693,1,12832,12841,1,12872,12879,1,12881,12895,1,12928,12937,1,12977,12991,1,42528,42537,1,42726,42735,1,43056,43061,1,43216,43225,1,43264,43273,1,43472,43481,1,43504,43513,1,43600,43609,1,44016,44025,1,65296,65305,1,65799,65843,1,65856,65912,1,65930,65931,1,66273,66299,1,66336,66339,1,66369,66378,9,66513,66517,1,66720,66729,1,67672,67679,1,67705,67711,1,67751,67759,1,67835,67839,1,67862,67867,1,68028,68029,1,68032,68047,1,68050,68095,1,68160,68168,1,68221,68222,1,68253,68255,1,68331,68335,1,68440,68447,1,68472,68479,1,68521,68527,1,68858,68863,1,68912,68921,1,68928,68937,1,69216,69246,1,69405,69414,1,69457,69460,1,69573,69579,1,69714,69743,1,69872,69881,1,69942,69951,1,70096,70105,1,70113,70132,1,70384,70393,1,70736,70745,1,70864,70873,1,71248,71257,1,71360,71369,1,71376,71395,1,71472,71483,1,71904,71922,1,72016,72025,1,72688,72697,1,72784,72812,1,73040,73049,1,73120,73129,1,73552,73561,1,73664,73684,1,74752,74862,1,90416,90425,1,92768,92777,1,92864,92873,1,93008,93017,1,93019,93025,1,93552,93561,1,93824,93846,1,118000,118009,1,119488,119507,1,119520,119539,1,119648,119672,1,120782,120831,1,123200,123209,1,123632,123641,1,124144,124153,1,124401,124410,1,125127,125135,1,125264,125273,1,126065,126123,1,126125,126127,1,126129,126132,1,126209,126253,1,126255,126269,1,127232,127244,1,130032,130041,1]));static Nd=new N(new Uint32Array([48,57,1,1632,1641,1,1776,1785,1,1984,1993,1,2406,2415,1,2534,2543,1,2662,2671,1,2790,2799,1,2918,2927,1,3046,3055,1,3174,3183,1,3302,3311,1,3430,3439,1,3558,3567,1,3664,3673,1,3792,3801,1,3872,3881,1,4160,4169,1,4240,4249,1,6112,6121,1,6160,6169,1,6470,6479,1,6608,6617,1,6784,6793,1,6800,6809,1,6992,7001,1,7088,7097,1,7232,7241,1,7248,7257,1,42528,42537,1,43216,43225,1,43264,43273,1,43472,43481,1,43504,43513,1,43600,43609,1,44016,44025,1,65296,65305,1,66720,66729,1,68912,68921,1,68928,68937,1,69734,69743,1,69872,69881,1,69942,69951,1,70096,70105,1,70384,70393,1,70736,70745,1,70864,70873,1,71248,71257,1,71360,71369,1,71376,71395,1,71472,71481,1,71904,71913,1,72016,72025,1,72688,72697,1,72784,72793,1,73040,73049,1,73120,73129,1,73552,73561,1,90416,90425,1,92768,92777,1,92864,92873,1,93008,93017,1,93552,93561,1,118000,118009,1,120782,120831,1,123200,123209,1,123632,123641,1,124144,124153,1,124401,124410,1,125264,125273,1,130032,130041,1]));static Nl=new N(new Uint32Array([5870,5872,1,8544,8578,1,8581,8584,1,12295,12321,26,12322,12329,1,12344,12346,1,42726,42735,1,65856,65908,1,66369,66378,9,66513,66517,1,74752,74862,1]));static No=new N(new Uint32Array([178,179,1,185,188,3,189,190,1,2548,2553,1,2930,2935,1,3056,3058,1,3192,3198,1,3416,3422,1,3440,3448,1,3882,3891,1,4969,4988,1,6128,6137,1,6618,8304,1686,8308,8313,1,8320,8329,1,8528,8543,1,8585,9312,727,9313,9371,1,9450,9471,1,10102,10131,1,11517,12690,1173,12691,12693,1,12832,12841,1,12872,12879,1,12881,12895,1,12928,12937,1,12977,12991,1,43056,43061,1,65799,65843,1,65909,65912,1,65930,65931,1,66273,66299,1,66336,66339,1,67672,67679,1,67705,67711,1,67751,67759,1,67835,67839,1,67862,67867,1,68028,68029,1,68032,68047,1,68050,68095,1,68160,68168,1,68221,68222,1,68253,68255,1,68331,68335,1,68440,68447,1,68472,68479,1,68521,68527,1,68858,68863,1,69216,69246,1,69405,69414,1,69457,69460,1,69573,69579,1,69714,69733,1,70113,70132,1,71482,71483,1,71914,71922,1,72794,72812,1,73664,73684,1,93019,93025,1,93824,93846,1,119488,119507,1,119520,119539,1,119648,119672,1,125127,125135,1,126065,126123,1,126125,126127,1,126129,126132,1,126209,126253,1,126255,126269,1,127232,127244,1]));static P=new N(new Uint32Array([33,35,1,37,42,1,44,47,1,58,59,1,63,64,1,91,93,1,95,123,28,125,161,36,167,171,4,182,183,1,187,191,4,894,903,9,1370,1375,1,1417,1418,1,1470,1472,2,1475,1478,3,1523,1524,1,1545,1546,1,1548,1549,1,1563,1565,2,1566,1567,1,1642,1645,1,1748,1792,44,1793,1805,1,2039,2041,1,2096,2110,1,2142,2404,262,2405,2416,11,2557,2678,121,2800,3191,391,3204,3572,368,3663,3674,11,3675,3844,169,3845,3858,1,3860,3898,38,3899,3901,1,3973,4048,75,4049,4052,1,4057,4058,1,4170,4175,1,4347,4960,613,4961,4968,1,5120,5742,622,5787,5788,1,5867,5869,1,5941,5942,1,6100,6102,1,6104,6106,1,6144,6154,1,6468,6469,1,6686,6687,1,6816,6822,1,6824,6829,1,6990,6991,1,7002,7008,1,7037,7039,1,7164,7167,1,7227,7231,1,7294,7295,1,7360,7367,1,7379,8208,829,8209,8231,1,8240,8259,1,8261,8273,1,8275,8286,1,8317,8318,1,8333,8334,1,8968,8971,1,9001,9002,1,10088,10101,1,10181,10182,1,10214,10223,1,10627,10648,1,10712,10715,1,10748,10749,1,11513,11516,1,11518,11519,1,11632,11776,144,11777,11822,1,11824,11855,1,11858,11869,1,12289,12291,1,12296,12305,1,12308,12319,1,12336,12349,13,12448,12539,91,42238,42239,1,42509,42511,1,42611,42622,11,42738,42743,1,43124,43127,1,43214,43215,1,43256,43258,1,43260,43310,50,43311,43359,48,43457,43469,1,43486,43487,1,43612,43615,1,43742,43743,1,43760,43761,1,44011,64830,20819,64831,65040,209,65041,65049,1,65072,65106,1,65108,65121,1,65123,65128,5,65130,65131,1,65281,65283,1,65285,65290,1,65292,65295,1,65306,65307,1,65311,65312,1,65339,65341,1,65343,65371,28,65373,65375,2,65376,65381,1,65792,65794,1,66463,66512,49,66927,67671,744,67871,67903,32,68176,68184,1,68223,68336,113,68337,68342,1,68409,68415,1,68505,68508,1,68974,69293,319,69461,69465,1,69510,69513,1,69703,69709,1,69819,69820,1,69822,69825,1,69952,69955,1,70004,70005,1,70085,70088,1,70093,70107,14,70109,70111,1,70200,70205,1,70313,70612,299,70613,70615,2,70616,70731,115,70732,70735,1,70746,70747,1,70749,70854,105,71105,71127,1,71233,71235,1,71264,71276,1,71353,71484,131,71485,71486,1,71739,72004,265,72005,72006,1,72162,72255,93,72256,72262,1,72346,72348,1,72350,72354,1,72448,72457,1,72673,72769,96,72770,72773,1,72816,72817,1,73463,73464,1,73539,73551,1,73727,74864,1137,74865,74868,1,77809,77810,1,92782,92783,1,92917,92983,66,92984,92987,1,92996,93549,553,93550,93551,1,93847,93850,1,94178,113823,19645,121479,121483,1,124415,125278,863,125279,125279,1]));static Pc=new N(new Uint32Array([95,8255,8160,8256,8276,20,65075,65076,1,65101,65103,1,65343,65343,1]));static Pd=new N(new Uint32Array([45,1418,1373,1470,5120,3650,6150,8208,2058,8209,8213,1,11799,11802,3,11834,11835,1,11840,11869,29,12316,12336,20,12448,65073,52625,65074,65112,38,65123,65293,170,68974,69293,319]));static Pe=new N(new Uint32Array([41,93,52,125,3899,3774,3901,5788,1887,8262,8318,56,8334,8969,635,8971,9002,31,10089,10101,2,10182,10215,33,10217,10223,2,10628,10648,2,10713,10715,2,10749,11811,1062,11813,11817,2,11862,11868,2,12297,12305,2,12309,12315,2,12318,12319,1,64830,65048,218,65078,65092,2,65096,65114,18,65116,65118,2,65289,65341,52,65373,65379,3]));static Pf=new N(new Uint32Array([187,8217,8030,8221,8250,29,11779,11781,2,11786,11789,3,11805,11809,4]));static Pi=new N(new Uint32Array([171,8216,8045,8219,8220,1,8223,8249,26,11778,11780,2,11785,11788,3,11804,11808,4]));static Po=new N(new Uint32Array([33,35,1,37,39,1,42,46,2,47,58,11,59,63,4,64,92,28,161,167,6,182,183,1,191,894,703,903,1370,467,1371,1375,1,1417,1472,55,1475,1478,3,1523,1524,1,1545,1546,1,1548,1549,1,1563,1565,2,1566,1567,1,1642,1645,1,1748,1792,44,1793,1805,1,2039,2041,1,2096,2110,1,2142,2404,262,2405,2416,11,2557,2678,121,2800,3191,391,3204,3572,368,3663,3674,11,3675,3844,169,3845,3858,1,3860,3973,113,4048,4052,1,4057,4058,1,4170,4175,1,4347,4960,613,4961,4968,1,5742,5867,125,5868,5869,1,5941,5942,1,6100,6102,1,6104,6106,1,6144,6149,1,6151,6154,1,6468,6469,1,6686,6687,1,6816,6822,1,6824,6829,1,6990,6991,1,7002,7008,1,7037,7039,1,7164,7167,1,7227,7231,1,7294,7295,1,7360,7367,1,7379,8214,835,8215,8224,9,8225,8231,1,8240,8248,1,8251,8254,1,8257,8259,1,8263,8273,1,8275,8277,2,8278,8286,1,11513,11516,1,11518,11519,1,11632,11776,144,11777,11782,5,11783,11784,1,11787,11790,3,11791,11798,1,11800,11801,1,11803,11806,3,11807,11818,11,11819,11822,1,11824,11833,1,11836,11839,1,11841,11843,2,11844,11855,1,11858,11860,1,12289,12291,1,12349,12539,190,42238,42239,1,42509,42511,1,42611,42622,11,42738,42743,1,43124,43127,1,43214,43215,1,43256,43258,1,43260,43310,50,43311,43359,48,43457,43469,1,43486,43487,1,43612,43615,1,43742,43743,1,43760,43761,1,44011,65040,21029,65041,65046,1,65049,65072,23,65093,65094,1,65097,65100,1,65104,65106,1,65108,65111,1,65119,65121,1,65128,65130,2,65131,65281,150,65282,65283,1,65285,65287,1,65290,65294,2,65295,65306,11,65307,65311,4,65312,65340,28,65377,65380,3,65381,65792,411,65793,65794,1,66463,66512,49,66927,67671,744,67871,67903,32,68176,68184,1,68223,68336,113,68337,68342,1,68409,68415,1,68505,68508,1,69461,69465,1,69510,69513,1,69703,69709,1,69819,69820,1,69822,69825,1,69952,69955,1,70004,70005,1,70085,70088,1,70093,70107,14,70109,70111,1,70200,70205,1,70313,70612,299,70613,70615,2,70616,70731,115,70732,70735,1,70746,70747,1,70749,70854,105,71105,71127,1,71233,71235,1,71264,71276,1,71353,71484,131,71485,71486,1,71739,72004,265,72005,72006,1,72162,72255,93,72256,72262,1,72346,72348,1,72350,72354,1,72448,72457,1,72673,72769,96,72770,72773,1,72816,72817,1,73463,73464,1,73539,73551,1,73727,74864,1137,74865,74868,1,77809,77810,1,92782,92783,1,92917,92983,66,92984,92987,1,92996,93549,553,93550,93551,1,93847,93850,1,94178,113823,19645,121479,121483,1,124415,125278,863,125279,125279,1]));static Ps=new N(new Uint32Array([40,91,51,123,3898,3775,3900,5787,1887,8218,8222,4,8261,8317,56,8333,8968,635,8970,9001,31,10088,10100,2,10181,10214,33,10216,10222,2,10627,10647,2,10712,10714,2,10748,11810,1062,11812,11816,2,11842,11861,19,11863,11867,2,12296,12304,2,12308,12314,2,12317,64831,52514,65047,65077,30,65079,65091,2,65095,65113,18,65115,65117,2,65288,65339,51,65371,65375,4,65378,65378,1]));static S=new N(new Uint32Array([36,43,7,60,62,1,94,96,2,124,126,2,162,166,1,168,169,1,172,174,2,175,177,1,180,184,4,215,247,32,706,709,1,722,735,1,741,747,1,749,751,2,752,767,1,885,900,15,901,1014,113,1154,1421,267,1422,1423,1,1542,1544,1,1547,1550,3,1551,1758,207,1769,1789,20,1790,2038,248,2046,2047,1,2184,2546,362,2547,2554,7,2555,2801,246,2928,3059,131,3060,3066,1,3199,3407,208,3449,3647,198,3841,3843,1,3859,3861,2,3862,3863,1,3866,3871,1,3892,3896,2,4030,4037,1,4039,4044,1,4046,4047,1,4053,4056,1,4254,4255,1,5008,5017,1,5741,6107,366,6464,6622,158,6623,6655,1,7009,7018,1,7028,7036,1,8125,8127,2,8128,8129,1,8141,8143,1,8157,8159,1,8173,8175,1,8189,8190,1,8260,8274,14,8314,8316,1,8330,8332,1,8352,8384,1,8448,8449,1,8451,8454,1,8456,8457,1,8468,8470,2,8471,8472,1,8478,8483,1,8485,8489,2,8494,8506,12,8507,8512,5,8513,8516,1,8522,8525,1,8527,8586,59,8587,8592,5,8593,8967,1,8972,9000,1,9003,9257,1,9280,9290,1,9372,9449,1,9472,10087,1,10132,10180,1,10183,10213,1,10224,10626,1,10649,10711,1,10716,10747,1,10750,11123,1,11126,11157,1,11159,11263,1,11493,11498,1,11856,11857,1,11904,11929,1,11931,12019,1,12032,12245,1,12272,12287,1,12292,12306,14,12307,12320,13,12342,12343,1,12350,12351,1,12443,12444,1,12688,12689,1,12694,12703,1,12736,12773,1,12783,12800,17,12801,12830,1,12842,12871,1,12880,12896,16,12897,12927,1,12938,12976,1,12992,13311,1,19904,19967,1,42128,42182,1,42752,42774,1,42784,42785,1,42889,42890,1,43048,43051,1,43062,43065,1,43639,43641,1,43867,43882,15,43883,64297,20414,64434,64450,1,64832,64847,1,64975,65020,45,65021,65023,1,65122,65124,2,65125,65126,1,65129,65284,155,65291,65308,17,65309,65310,1,65342,65344,2,65372,65374,2,65504,65510,1,65512,65518,1,65532,65533,1,65847,65855,1,65913,65929,1,65932,65934,1,65936,65948,1,65952,66000,48,66001,66044,1,67703,67704,1,68296,69006,710,69007,71487,2480,73685,73713,1,92988,92991,1,92997,113820,20823,117760,117999,1,118016,118451,1,118608,118723,1,118784,119029,1,119040,119078,1,119081,119140,1,119146,119148,1,119171,119172,1,119180,119209,1,119214,119274,1,119296,119361,1,119365,119552,187,119553,119638,1,120513,120539,26,120571,120597,26,120629,120655,26,120687,120713,26,120745,120771,26,120832,121343,1,121399,121402,1,121453,121460,1,121462,121475,1,121477,121478,1,123215,123647,432,126124,126128,4,126254,126704,450,126705,126976,271,126977,127019,1,127024,127123,1,127136,127150,1,127153,127167,1,127169,127183,1,127185,127221,1,127245,127405,1,127462,127490,1,127504,127547,1,127552,127560,1,127568,127569,1,127584,127589,1,127744,128727,1,128732,128748,1,128752,128764,1,128768,128886,1,128891,128985,1,128992,129003,1,129008,129024,16,129025,129035,1,129040,129095,1,129104,129113,1,129120,129159,1,129168,129197,1,129200,129211,1,129216,129217,1,129280,129619,1,129632,129645,1,129648,129660,1,129664,129673,1,129679,129734,1,129742,129756,1,129759,129769,1,129776,129784,1,129792,129938,1,129940,130031,1]));static Sc=new N(new Uint32Array([36,162,126,163,165,1,1423,1547,124,2046,2047,1,2546,2547,1,2555,2801,246,3065,3647,582,6107,8352,2245,8353,8384,1,43064,65020,21956,65129,65284,155,65504,65505,1,65509,65510,1,73693,73696,1,123647,126128,2481]));static Sk=new N(new Uint32Array([94,96,2,168,175,7,180,184,4,706,709,1,722,735,1,741,747,1,749,751,2,752,767,1,885,900,15,901,2184,1283,8125,8127,2,8128,8129,1,8141,8143,1,8157,8159,1,8173,8175,1,8189,8190,1,12443,12444,1,42752,42774,1,42784,42785,1,42889,42890,1,43867,43882,15,43883,64434,20551,64435,64450,1,65342,65344,2,65507,127995,62488,127996,127999,1]));static Sm=new N(new Uint32Array([43,60,17,61,62,1,124,126,2,172,177,5,215,247,32,1014,1542,528,1543,1544,1,8260,8274,14,8314,8316,1,8330,8332,1,8472,8512,40,8513,8516,1,8523,8592,69,8593,8596,1,8602,8603,1,8608,8614,3,8622,8654,32,8655,8658,3,8660,8692,32,8693,8959,1,8992,8993,1,9084,9115,31,9116,9139,1,9180,9185,1,9655,9665,10,9720,9727,1,9839,10176,337,10177,10180,1,10183,10213,1,10224,10239,1,10496,10626,1,10649,10711,1,10716,10747,1,10750,11007,1,11056,11076,1,11079,11084,1,64297,65122,825,65124,65126,1,65291,65308,17,65309,65310,1,65372,65374,2,65506,65513,7,65514,65516,1,69006,69007,1,120513,120539,26,120571,120597,26,120629,120655,26,120687,120713,26,120745,120771,26,126704,126705,1]));static So=new N(new Uint32Array([166,169,3,174,176,2,1154,1421,267,1422,1550,128,1551,1758,207,1769,1789,20,1790,2038,248,2554,2928,374,3059,3064,1,3066,3199,133,3407,3449,42,3841,3843,1,3859,3861,2,3862,3863,1,3866,3871,1,3892,3896,2,4030,4037,1,4039,4044,1,4046,4047,1,4053,4056,1,4254,4255,1,5008,5017,1,5741,6464,723,6622,6655,1,7009,7018,1,7028,7036,1,8448,8449,1,8451,8454,1,8456,8457,1,8468,8470,2,8471,8478,7,8479,8483,1,8485,8489,2,8494,8506,12,8507,8522,15,8524,8525,1,8527,8586,59,8587,8597,10,8598,8601,1,8604,8607,1,8609,8610,1,8612,8613,1,8615,8621,1,8623,8653,1,8656,8657,1,8659,8661,2,8662,8691,1,8960,8967,1,8972,8991,1,8994,9000,1,9003,9083,1,9085,9114,1,9140,9179,1,9186,9257,1,9280,9290,1,9372,9449,1,9472,9654,1,9656,9664,1,9666,9719,1,9728,9838,1,9840,10087,1,10132,10175,1,10240,10495,1,11008,11055,1,11077,11078,1,11085,11123,1,11126,11157,1,11159,11263,1,11493,11498,1,11856,11857,1,11904,11929,1,11931,12019,1,12032,12245,1,12272,12287,1,12292,12306,14,12307,12320,13,12342,12343,1,12350,12351,1,12688,12689,1,12694,12703,1,12736,12773,1,12783,12800,17,12801,12830,1,12842,12871,1,12880,12896,16,12897,12927,1,12938,12976,1,12992,13311,1,19904,19967,1,42128,42182,1,43048,43051,1,43062,43063,1,43065,43639,574,43640,43641,1,64832,64847,1,64975,65021,46,65022,65023,1,65508,65512,4,65517,65518,1,65532,65533,1,65847,65855,1,65913,65929,1,65932,65934,1,65936,65948,1,65952,66000,48,66001,66044,1,67703,67704,1,68296,71487,3191,73685,73692,1,73697,73713,1,92988,92991,1,92997,113820,20823,117760,117999,1,118016,118451,1,118608,118723,1,118784,119029,1,119040,119078,1,119081,119140,1,119146,119148,1,119171,119172,1,119180,119209,1,119214,119274,1,119296,119361,1,119365,119552,187,119553,119638,1,120832,121343,1,121399,121402,1,121453,121460,1,121462,121475,1,121477,121478,1,123215,126124,2909,126254,126976,722,126977,127019,1,127024,127123,1,127136,127150,1,127153,127167,1,127169,127183,1,127185,127221,1,127245,127405,1,127462,127490,1,127504,127547,1,127552,127560,1,127568,127569,1,127584,127589,1,127744,127994,1,128000,128727,1,128732,128748,1,128752,128764,1,128768,128886,1,128891,128985,1,128992,129003,1,129008,129024,16,129025,129035,1,129040,129095,1,129104,129113,1,129120,129159,1,129168,129197,1,129200,129211,1,129216,129217,1,129280,129619,1,129632,129645,1,129648,129660,1,129664,129673,1,129679,129734,1,129742,129756,1,129759,129769,1,129776,129784,1,129792,129938,1,129940,130031,1]));static Z=new N(new Uint32Array([32,160,128,5760,8192,2432,8193,8202,1,8232,8233,1,8239,8287,48,12288,12288,1]));static Zl=new N(new Uint32Array([8232,8232,1]));static Zp=new N(new Uint32Array([8233,8233,1]));static Zs=new N(new Uint32Array([32,160,128,5760,8192,2432,8193,8202,1,8239,8287,48,12288,12288,1]));static Adlam=new N(new Uint32Array([125184,125259,1,125264,125273,1,125278,125279,1]));static Ahom=new N(new Uint32Array([71424,71450,1,71453,71467,1,71472,71494,1]));static Anatolian_Hieroglyphs=new N(new Uint32Array([82944,83526,1]));static Arabic=new N(new Uint32Array([1536,1540,1,1542,1547,1,1549,1562,1,1564,1566,1,1568,1599,1,1601,1610,1,1622,1647,1,1649,1756,1,1758,1791,1,1872,1919,1,2160,2190,1,2192,2193,1,2199,2273,1,2275,2303,1,64336,64450,1,64467,64829,1,64832,64911,1,64914,64967,1,64975,65008,33,65009,65023,1,65136,65140,1,65142,65276,1,69216,69246,1,69314,69316,1,69372,69375,1,126464,126467,1,126469,126495,1,126497,126498,1,126500,126503,3,126505,126514,1,126516,126519,1,126521,126523,2,126530,126535,5,126537,126541,2,126542,126543,1,126545,126546,1,126548,126551,3,126553,126561,2,126562,126564,2,126567,126570,1,126572,126578,1,126580,126583,1,126585,126588,1,126590,126592,2,126593,126601,1,126603,126619,1,126625,126627,1,126629,126633,1,126635,126651,1,126704,126705,1]));static Armenian=new N(new Uint32Array([1329,1366,1,1369,1418,1,1421,1423,1,64275,64279,1]));static Avestan=new N(new Uint32Array([68352,68405,1,68409,68415,1]));static Balinese=new N(new Uint32Array([6912,6988,1,6990,7039,1]));static Bamum=new N(new Uint32Array([42656,42743,1,92160,92728,1]));static Bassa_Vah=new N(new Uint32Array([92880,92909,1,92912,92917,1]));static Batak=new N(new Uint32Array([7104,7155,1,7164,7167,1]));static Bengali=new N(new Uint32Array([2432,2435,1,2437,2444,1,2447,2448,1,2451,2472,1,2474,2480,1,2482,2486,4,2487,2489,1,2492,2500,1,2503,2504,1,2507,2510,1,2519,2524,5,2525,2527,2,2528,2531,1,2534,2558,1]));static Bhaiksuki=new N(new Uint32Array([72704,72712,1,72714,72758,1,72760,72773,1,72784,72812,1]));static Bopomofo=new N(new Uint32Array([746,747,1,12549,12591,1,12704,12735,1]));static Brahmi=new N(new Uint32Array([69632,69709,1,69714,69749,1,69759,69759,1]));static Braille=new N(new Uint32Array([10240,10495,1]));static Buginese=new N(new Uint32Array([6656,6683,1,6686,6687,1]));static Buhid=new N(new Uint32Array([5952,5971,1]));static Canadian_Aboriginal=new N(new Uint32Array([5120,5759,1,6320,6389,1,72368,72383,1]));static Carian=new N(new Uint32Array([66208,66256,1]));static Caucasian_Albanian=new N(new Uint32Array([66864,66915,1,66927,66927,1]));static Chakma=new N(new Uint32Array([69888,69940,1,69942,69959,1]));static Cham=new N(new Uint32Array([43520,43574,1,43584,43597,1,43600,43609,1,43612,43615,1]));static Cherokee=new N(new Uint32Array([5024,5109,1,5112,5117,1,43888,43967,1]));static Chorasmian=new N(new Uint32Array([69552,69579,1]));static Common=new N(new Uint32Array([0,64,1,91,96,1,123,169,1,171,185,1,187,191,1,215,247,32,697,735,1,741,745,1,748,767,1,884,894,10,901,903,2,1541,1548,7,1563,1567,4,1600,1757,157,2274,2404,130,2405,3647,1242,4053,4056,1,4347,5867,1520,5868,5869,1,5941,5942,1,6146,6147,1,6149,7379,1230,7393,7401,8,7402,7404,1,7406,7411,1,7413,7415,1,7418,8192,774,8193,8203,1,8206,8292,1,8294,8304,1,8308,8318,1,8320,8334,1,8352,8384,1,8448,8485,1,8487,8489,1,8492,8497,1,8499,8525,1,8527,8543,1,8585,8587,1,8592,9257,1,9280,9290,1,9312,10239,1,10496,11123,1,11126,11157,1,11159,11263,1,11776,11869,1,12272,12292,1,12294,12296,2,12297,12320,1,12336,12343,1,12348,12351,1,12443,12444,1,12448,12539,91,12540,12688,148,12689,12703,1,12736,12773,1,12783,12832,49,12833,12895,1,12927,13007,1,13055,13144,89,13145,13311,1,19904,19967,1,42752,42785,1,42888,42890,1,43056,43065,1,43310,43471,161,43867,43882,15,43883,64830,20947,64831,65040,209,65041,65049,1,65072,65106,1,65108,65126,1,65128,65131,1,65279,65281,2,65282,65312,1,65339,65344,1,65371,65381,1,65392,65438,46,65439,65504,65,65505,65510,1,65512,65518,1,65529,65533,1,65792,65794,1,65799,65843,1,65847,65855,1,65936,65948,1,66000,66044,1,66273,66299,1,113824,113827,1,117760,118009,1,118016,118451,1,118608,118723,1,118784,119029,1,119040,119078,1,119081,119142,1,119146,119162,1,119171,119172,1,119180,119209,1,119214,119274,1,119488,119507,1,119520,119539,1,119552,119638,1,119648,119672,1,119808,119892,1,119894,119964,1,119966,119967,1,119970,119973,3,119974,119977,3,119978,119980,1,119982,119993,1,119995,119997,2,119998,120003,1,120005,120069,1,120071,120074,1,120077,120084,1,120086,120092,1,120094,120121,1,120123,120126,1,120128,120132,1,120134,120138,4,120139,120144,1,120146,120485,1,120488,120779,1,120782,120831,1,126065,126132,1,126209,126269,1,126976,127019,1,127024,127123,1,127136,127150,1,127153,127167,1,127169,127183,1,127185,127221,1,127232,127405,1,127462,127487,1,127489,127490,1,127504,127547,1,127552,127560,1,127568,127569,1,127584,127589,1,127744,128727,1,128732,128748,1,128752,128764,1,128768,128886,1,128891,128985,1,128992,129003,1,129008,129024,16,129025,129035,1,129040,129095,1,129104,129113,1,129120,129159,1,129168,129197,1,129200,129211,1,129216,129217,1,129280,129619,1,129632,129645,1,129648,129660,1,129664,129673,1,129679,129734,1,129742,129756,1,129759,129769,1,129776,129784,1,129792,129938,1,129940,130041,1,917505,917536,31,917537,917631,1]));static foldCommon=new N(new Uint32Array([924,956,32]));static Coptic=new N(new Uint32Array([994,1007,1,11392,11507,1,11513,11519,1]));static Cuneiform=new N(new Uint32Array([73728,74649,1,74752,74862,1,74864,74868,1,74880,75075,1]));static Cypriot=new N(new Uint32Array([67584,67589,1,67592,67594,2,67595,67637,1,67639,67640,1,67644,67647,3]));static Cypro_Minoan=new N(new Uint32Array([77712,77810,1]));static Cyrillic=new N(new Uint32Array([1024,1156,1,1159,1327,1,7296,7306,1,7467,7544,77,11744,11775,1,42560,42655,1,65070,65071,1,122928,122989,1,123023,123023,1]));static Deseret=new N(new Uint32Array([66560,66639,1]));static Devanagari=new N(new Uint32Array([2304,2384,1,2389,2403,1,2406,2431,1,43232,43263,1,72448,72457,1]));static Dives_Akuru=new N(new Uint32Array([71936,71942,1,71945,71948,3,71949,71955,1,71957,71958,1,71960,71989,1,71991,71992,1,71995,72006,1,72016,72025,1]));static Dogra=new N(new Uint32Array([71680,71739,1]));static Duployan=new N(new Uint32Array([113664,113770,1,113776,113788,1,113792,113800,1,113808,113817,1,113820,113823,1]));static Egyptian_Hieroglyphs=new N(new Uint32Array([77824,78933,1,78944,82938,1]));static Elbasan=new N(new Uint32Array([66816,66855,1]));static Elymaic=new N(new Uint32Array([69600,69622,1]));static Ethiopic=new N(new Uint32Array([4608,4680,1,4682,4685,1,4688,4694,1,4696,4698,2,4699,4701,1,4704,4744,1,4746,4749,1,4752,4784,1,4786,4789,1,4792,4798,1,4800,4802,2,4803,4805,1,4808,4822,1,4824,4880,1,4882,4885,1,4888,4954,1,4957,4988,1,4992,5017,1,11648,11670,1,11680,11686,1,11688,11694,1,11696,11702,1,11704,11710,1,11712,11718,1,11720,11726,1,11728,11734,1,11736,11742,1,43777,43782,1,43785,43790,1,43793,43798,1,43808,43814,1,43816,43822,1,124896,124902,1,124904,124907,1,124909,124910,1,124912,124926,1]));static Garay=new N(new Uint32Array([68928,68965,1,68969,68997,1,69006,69007,1]));static Georgian=new N(new Uint32Array([4256,4293,1,4295,4301,6,4304,4346,1,4348,4351,1,7312,7354,1,7357,7359,1,11520,11557,1,11559,11565,6]));static Glagolitic=new N(new Uint32Array([11264,11359,1,122880,122886,1,122888,122904,1,122907,122913,1,122915,122916,1,122918,122922,1]));static Gothic=new N(new Uint32Array([66352,66378,1]));static Grantha=new N(new Uint32Array([70400,70403,1,70405,70412,1,70415,70416,1,70419,70440,1,70442,70448,1,70450,70451,1,70453,70457,1,70460,70468,1,70471,70472,1,70475,70477,1,70480,70487,7,70493,70499,1,70502,70508,1,70512,70516,1]));static Greek=new N(new Uint32Array([880,883,1,885,887,1,890,893,1,895,900,5,902,904,2,905,906,1,908,910,2,911,929,1,931,993,1,1008,1023,1,7462,7466,1,7517,7521,1,7526,7530,1,7615,7936,321,7937,7957,1,7960,7965,1,7968,8005,1,8008,8013,1,8016,8023,1,8025,8031,2,8032,8061,1,8064,8116,1,8118,8132,1,8134,8147,1,8150,8155,1,8157,8175,1,8178,8180,1,8182,8190,1,8486,43877,35391,65856,65934,1,65952,119296,53344,119297,119365,1]));static foldGreek=new N(new Uint32Array([181,837,656]));static Gujarati=new N(new Uint32Array([2689,2691,1,2693,2701,1,2703,2705,1,2707,2728,1,2730,2736,1,2738,2739,1,2741,2745,1,2748,2757,1,2759,2761,1,2763,2765,1,2768,2784,16,2785,2787,1,2790,2801,1,2809,2815,1]));static Gunjala_Gondi=new N(new Uint32Array([73056,73061,1,73063,73064,1,73066,73102,1,73104,73105,1,73107,73112,1,73120,73129,1]));static Gurmukhi=new N(new Uint32Array([2561,2563,1,2565,2570,1,2575,2576,1,2579,2600,1,2602,2608,1,2610,2611,1,2613,2614,1,2616,2617,1,2620,2622,2,2623,2626,1,2631,2632,1,2635,2637,1,2641,2649,8,2650,2652,1,2654,2662,8,2663,2678,1]));static Gurung_Khema=new N(new Uint32Array([90368,90425,1]));static Han=new N(new Uint32Array([11904,11929,1,11931,12019,1,12032,12245,1,12293,12295,2,12321,12329,1,12344,12347,1,13312,19903,1,19968,40959,1,63744,64109,1,64112,64217,1,94178,94179,1,94192,94193,1,131072,173791,1,173824,177977,1,177984,178205,1,178208,183969,1,183984,191456,1,191472,192093,1,194560,195101,1,196608,201546,1,201552,205743,1]));static Hangul=new N(new Uint32Array([4352,4607,1,12334,12335,1,12593,12686,1,12800,12830,1,12896,12926,1,43360,43388,1,44032,55203,1,55216,55238,1,55243,55291,1,65440,65470,1,65474,65479,1,65482,65487,1,65490,65495,1,65498,65500,1]));static Hanifi_Rohingya=new N(new Uint32Array([68864,68903,1,68912,68921,1]));static Hanunoo=new N(new Uint32Array([5920,5940,1]));static Hatran=new N(new Uint32Array([67808,67826,1,67828,67829,1,67835,67839,1]));static Hebrew=new N(new Uint32Array([1425,1479,1,1488,1514,1,1519,1524,1,64285,64310,1,64312,64316,1,64318,64320,2,64321,64323,2,64324,64326,2,64327,64335,1]));static Hiragana=new N(new Uint32Array([12353,12438,1,12445,12447,1,110593,110879,1,110898,110928,30,110929,110930,1,127488,127488,1]));static Imperial_Aramaic=new N(new Uint32Array([67648,67669,1,67671,67679,1]));static Inherited=new N(new Uint32Array([768,879,1,1157,1158,1,1611,1621,1,1648,2385,737,2386,2388,1,6832,6862,1,7376,7378,1,7380,7392,1,7394,7400,1,7405,7412,7,7416,7417,1,7616,7679,1,8204,8205,1,8400,8432,1,12330,12333,1,12441,12442,1,65024,65039,1,65056,65069,1,66045,66272,227,70459,118528,48069,118529,118573,1,118576,118598,1,119143,119145,1,119163,119170,1,119173,119179,1,119210,119213,1,917760,917999,1]));static foldInherited=new N(new Uint32Array([921,953,32,8126,8126,1]));static Inscriptional_Pahlavi=new N(new Uint32Array([68448,68466,1,68472,68479,1]));static Inscriptional_Parthian=new N(new Uint32Array([68416,68437,1,68440,68447,1]));static Javanese=new N(new Uint32Array([43392,43469,1,43472,43481,1,43486,43487,1]));static Kaithi=new N(new Uint32Array([69760,69826,1,69837,69837,1]));static Kannada=new N(new Uint32Array([3200,3212,1,3214,3216,1,3218,3240,1,3242,3251,1,3253,3257,1,3260,3268,1,3270,3272,1,3274,3277,1,3285,3286,1,3293,3294,1,3296,3299,1,3302,3311,1,3313,3315,1]));static Katakana=new N(new Uint32Array([12449,12538,1,12541,12543,1,12784,12799,1,13008,13054,1,13056,13143,1,65382,65391,1,65393,65437,1,110576,110579,1,110581,110587,1,110589,110590,1,110592,110880,288,110881,110882,1,110933,110948,15,110949,110951,1]));static Kawi=new N(new Uint32Array([73472,73488,1,73490,73530,1,73534,73562,1]));static Kayah_Li=new N(new Uint32Array([43264,43309,1,43311,43311,1]));static Kharoshthi=new N(new Uint32Array([68096,68099,1,68101,68102,1,68108,68115,1,68117,68119,1,68121,68149,1,68152,68154,1,68159,68168,1,68176,68184,1]));static Khitan_Small_Script=new N(new Uint32Array([94180,101120,6940,101121,101589,1,101631,101631,1]));static Khmer=new N(new Uint32Array([6016,6109,1,6112,6121,1,6128,6137,1,6624,6655,1]));static Khojki=new N(new Uint32Array([70144,70161,1,70163,70209,1]));static Khudawadi=new N(new Uint32Array([70320,70378,1,70384,70393,1]));static Kirat_Rai=new N(new Uint32Array([93504,93561,1]));static Lao=new N(new Uint32Array([3713,3714,1,3716,3718,2,3719,3722,1,3724,3747,1,3749,3751,2,3752,3773,1,3776,3780,1,3782,3784,2,3785,3790,1,3792,3801,1,3804,3807,1]));static Latin=new N(new Uint32Array([65,90,1,97,122,1,170,186,16,192,214,1,216,246,1,248,696,1,736,740,1,7424,7461,1,7468,7516,1,7522,7525,1,7531,7543,1,7545,7614,1,7680,7935,1,8305,8319,14,8336,8348,1,8490,8491,1,8498,8526,28,8544,8584,1,11360,11391,1,42786,42887,1,42891,42957,1,42960,42961,1,42963,42965,2,42966,42972,1,42994,43007,1,43824,43866,1,43868,43876,1,43878,43881,1,64256,64262,1,65313,65338,1,65345,65370,1,67456,67461,1,67463,67504,1,67506,67514,1,122624,122654,1,122661,122666,1]));static Lepcha=new N(new Uint32Array([7168,7223,1,7227,7241,1,7245,7247,1]));static Limbu=new N(new Uint32Array([6400,6430,1,6432,6443,1,6448,6459,1,6464,6468,4,6469,6479,1]));static Linear_A=new N(new Uint32Array([67072,67382,1,67392,67413,1,67424,67431,1]));static Linear_B=new N(new Uint32Array([65536,65547,1,65549,65574,1,65576,65594,1,65596,65597,1,65599,65613,1,65616,65629,1,65664,65786,1]));static Lisu=new N(new Uint32Array([42192,42239,1,73648,73648,1]));static Lycian=new N(new Uint32Array([66176,66204,1]));static Lydian=new N(new Uint32Array([67872,67897,1,67903,67903,1]));static Mahajani=new N(new Uint32Array([69968,70006,1]));static Makasar=new N(new Uint32Array([73440,73464,1]));static Malayalam=new N(new Uint32Array([3328,3340,1,3342,3344,1,3346,3396,1,3398,3400,1,3402,3407,1,3412,3427,1,3430,3455,1]));static Mandaic=new N(new Uint32Array([2112,2139,1,2142,2142,1]));static Manichaean=new N(new Uint32Array([68288,68326,1,68331,68342,1]));static Marchen=new N(new Uint32Array([72816,72847,1,72850,72871,1,72873,72886,1]));static Masaram_Gondi=new N(new Uint32Array([72960,72966,1,72968,72969,1,72971,73014,1,73018,73020,2,73021,73023,2,73024,73031,1,73040,73049,1]));static Medefaidrin=new N(new Uint32Array([93760,93850,1]));static Meetei_Mayek=new N(new Uint32Array([43744,43766,1,43968,44013,1,44016,44025,1]));static Mende_Kikakui=new N(new Uint32Array([124928,125124,1,125127,125142,1]));static Meroitic_Cursive=new N(new Uint32Array([68000,68023,1,68028,68047,1,68050,68095,1]));static Meroitic_Hieroglyphs=new N(new Uint32Array([67968,67999,1]));static Miao=new N(new Uint32Array([93952,94026,1,94031,94087,1,94095,94111,1]));static Modi=new N(new Uint32Array([71168,71236,1,71248,71257,1]));static Mongolian=new N(new Uint32Array([6144,6145,1,6148,6150,2,6151,6169,1,6176,6264,1,6272,6314,1,71264,71276,1]));static Mro=new N(new Uint32Array([92736,92766,1,92768,92777,1,92782,92783,1]));static Multani=new N(new Uint32Array([70272,70278,1,70280,70282,2,70283,70285,1,70287,70301,1,70303,70313,1]));static Myanmar=new N(new Uint32Array([4096,4255,1,43488,43518,1,43616,43647,1,71376,71395,1]));static Nabataean=new N(new Uint32Array([67712,67742,1,67751,67759,1]));static Nag_Mundari=new N(new Uint32Array([124112,124153,1]));static Nandinagari=new N(new Uint32Array([72096,72103,1,72106,72151,1,72154,72164,1]));static New_Tai_Lue=new N(new Uint32Array([6528,6571,1,6576,6601,1,6608,6618,1,6622,6623,1]));static Newa=new N(new Uint32Array([70656,70747,1,70749,70753,1]));static Nko=new N(new Uint32Array([1984,2042,1,2045,2047,1]));static Nushu=new N(new Uint32Array([94177,110960,16783,110961,111355,1]));static Nyiakeng_Puachue_Hmong=new N(new Uint32Array([123136,123180,1,123184,123197,1,123200,123209,1,123214,123215,1]));static Ogham=new N(new Uint32Array([5760,5788,1]));static Ol_Chiki=new N(new Uint32Array([7248,7295,1]));static Ol_Onal=new N(new Uint32Array([124368,124410,1,124415,124415,1]));static Old_Hungarian=new N(new Uint32Array([68736,68786,1,68800,68850,1,68858,68863,1]));static Old_Italic=new N(new Uint32Array([66304,66339,1,66349,66351,1]));static Old_North_Arabian=new N(new Uint32Array([68224,68255,1]));static Old_Permic=new N(new Uint32Array([66384,66426,1]));static Old_Persian=new N(new Uint32Array([66464,66499,1,66504,66517,1]));static Old_Sogdian=new N(new Uint32Array([69376,69415,1]));static Old_South_Arabian=new N(new Uint32Array([68192,68223,1]));static Old_Turkic=new N(new Uint32Array([68608,68680,1]));static Old_Uyghur=new N(new Uint32Array([69488,69513,1]));static Oriya=new N(new Uint32Array([2817,2819,1,2821,2828,1,2831,2832,1,2835,2856,1,2858,2864,1,2866,2867,1,2869,2873,1,2876,2884,1,2887,2888,1,2891,2893,1,2901,2903,1,2908,2909,1,2911,2915,1,2918,2935,1]));static Osage=new N(new Uint32Array([66736,66771,1,66776,66811,1]));static Osmanya=new N(new Uint32Array([66688,66717,1,66720,66729,1]));static Pahawh_Hmong=new N(new Uint32Array([92928,92997,1,93008,93017,1,93019,93025,1,93027,93047,1,93053,93071,1]));static Palmyrene=new N(new Uint32Array([67680,67711,1]));static Pau_Cin_Hau=new N(new Uint32Array([72384,72440,1]));static Phags_Pa=new N(new Uint32Array([43072,43127,1]));static Phoenician=new N(new Uint32Array([67840,67867,1,67871,67871,1]));static Psalter_Pahlavi=new N(new Uint32Array([68480,68497,1,68505,68508,1,68521,68527,1]));static Rejang=new N(new Uint32Array([43312,43347,1,43359,43359,1]));static Runic=new N(new Uint32Array([5792,5866,1,5870,5880,1]));static Samaritan=new N(new Uint32Array([2048,2093,1,2096,2110,1]));static Saurashtra=new N(new Uint32Array([43136,43205,1,43214,43225,1]));static Sharada=new N(new Uint32Array([70016,70111,1]));static Shavian=new N(new Uint32Array([66640,66687,1]));static Siddham=new N(new Uint32Array([71040,71093,1,71096,71133,1]));static SignWriting=new N(new Uint32Array([120832,121483,1,121499,121503,1,121505,121519,1]));static Sinhala=new N(new Uint32Array([3457,3459,1,3461,3478,1,3482,3505,1,3507,3515,1,3517,3520,3,3521,3526,1,3530,3535,5,3536,3540,1,3542,3544,2,3545,3551,1,3558,3567,1,3570,3572,1,70113,70132,1]));static Sogdian=new N(new Uint32Array([69424,69465,1]));static Sora_Sompeng=new N(new Uint32Array([69840,69864,1,69872,69881,1]));static Soyombo=new N(new Uint32Array([72272,72354,1]));static Sundanese=new N(new Uint32Array([7040,7103,1,7360,7367,1]));static Sunuwar=new N(new Uint32Array([72640,72673,1,72688,72697,1]));static Syloti_Nagri=new N(new Uint32Array([43008,43052,1]));static Syriac=new N(new Uint32Array([1792,1805,1,1807,1866,1,1869,1871,1,2144,2154,1]));static Tagalog=new N(new Uint32Array([5888,5909,1,5919,5919,1]));static Tagbanwa=new N(new Uint32Array([5984,5996,1,5998,6000,1,6002,6003,1]));static Tai_Le=new N(new Uint32Array([6480,6509,1,6512,6516,1]));static Tai_Tham=new N(new Uint32Array([6688,6750,1,6752,6780,1,6783,6793,1,6800,6809,1,6816,6829,1]));static Tai_Viet=new N(new Uint32Array([43648,43714,1,43739,43743,1]));static Takri=new N(new Uint32Array([71296,71353,1,71360,71369,1]));static Tamil=new N(new Uint32Array([2946,2947,1,2949,2954,1,2958,2960,1,2962,2965,1,2969,2970,1,2972,2974,2,2975,2979,4,2980,2984,4,2985,2986,1,2990,3001,1,3006,3010,1,3014,3016,1,3018,3021,1,3024,3031,7,3046,3066,1,73664,73713,1,73727,73727,1]));static Tangsa=new N(new Uint32Array([92784,92862,1,92864,92873,1]));static Tangut=new N(new Uint32Array([94176,94208,32,94209,100343,1,100352,101119,1,101632,101640,1]));static Telugu=new N(new Uint32Array([3072,3084,1,3086,3088,1,3090,3112,1,3114,3129,1,3132,3140,1,3142,3144,1,3146,3149,1,3157,3158,1,3160,3162,1,3165,3168,3,3169,3171,1,3174,3183,1,3191,3199,1]));static Thaana=new N(new Uint32Array([1920,1969,1]));static Thai=new N(new Uint32Array([3585,3642,1,3648,3675,1]));static Tibetan=new N(new Uint32Array([3840,3911,1,3913,3948,1,3953,3991,1,3993,4028,1,4030,4044,1,4046,4052,1,4057,4058,1]));static Tifinagh=new N(new Uint32Array([11568,11623,1,11631,11632,1,11647,11647,1]));static Tirhuta=new N(new Uint32Array([70784,70855,1,70864,70873,1]));static Todhri=new N(new Uint32Array([67008,67059,1]));static Toto=new N(new Uint32Array([123536,123566,1]));static Tulu_Tigalari=new N(new Uint32Array([70528,70537,1,70539,70542,3,70544,70581,1,70583,70592,1,70594,70597,3,70599,70602,1,70604,70613,1,70615,70616,1,70625,70626,1]));static Ugaritic=new N(new Uint32Array([66432,66461,1,66463,66463,1]));static Vai=new N(new Uint32Array([42240,42539,1]));static Vithkuqi=new N(new Uint32Array([66928,66938,1,66940,66954,1,66956,66962,1,66964,66965,1,66967,66977,1,66979,66993,1,66995,67001,1,67003,67004,1]));static Wancho=new N(new Uint32Array([123584,123641,1,123647,123647,1]));static Warang_Citi=new N(new Uint32Array([71840,71922,1,71935,71935,1]));static Yezidi=new N(new Uint32Array([69248,69289,1,69291,69293,1,69296,69297,1]));static Yi=new N(new Uint32Array([40960,42124,1,42128,42182,1]));static Zanabazar_Square=new N(new Uint32Array([72192,72263,1]));static CATEGORIES=new Map([["C",O.C],["Cc",O.Cc],["Cf",O.Cf],["Co",O.Co],["Cs",O.Cs],["L",O.L],["Ll",O.Ll],["Lm",O.Lm],["Lo",O.Lo],["Lt",O.Lt],["Lu",O.Lu],["M",O.M],["Mc",O.Mc],["Me",O.Me],["Mn",O.Mn],["N",O.N],["Nd",O.Nd],["Nl",O.Nl],["No",O.No],["P",O.P],["Pc",O.Pc],["Pd",O.Pd],["Pe",O.Pe],["Pf",O.Pf],["Pi",O.Pi],["Po",O.Po],["Ps",O.Ps],["S",O.S],["Sc",O.Sc],["Sk",O.Sk],["Sm",O.Sm],["So",O.So],["Z",O.Z],["Zl",O.Zl],["Zp",O.Zp],["Zs",O.Zs]]);static SCRIPTS=new Map([["Adlam",O.Adlam],["Ahom",O.Ahom],["Anatolian_Hieroglyphs",O.Anatolian_Hieroglyphs],["Arabic",O.Arabic],["Armenian",O.Armenian],["Avestan",O.Avestan],["Balinese",O.Balinese],["Bamum",O.Bamum],["Bassa_Vah",O.Bassa_Vah],["Batak",O.Batak],["Bengali",O.Bengali],["Bhaiksuki",O.Bhaiksuki],["Bopomofo",O.Bopomofo],["Brahmi",O.Brahmi],["Braille",O.Braille],["Buginese",O.Buginese],["Buhid",O.Buhid],["Canadian_Aboriginal",O.Canadian_Aboriginal],["Carian",O.Carian],["Caucasian_Albanian",O.Caucasian_Albanian],["Chakma",O.Chakma],["Cham",O.Cham],["Cherokee",O.Cherokee],["Chorasmian",O.Chorasmian],["Common",O.Common],["Coptic",O.Coptic],["Cuneiform",O.Cuneiform],["Cypriot",O.Cypriot],["Cypro_Minoan",O.Cypro_Minoan],["Cyrillic",O.Cyrillic],["Deseret",O.Deseret],["Devanagari",O.Devanagari],["Dives_Akuru",O.Dives_Akuru],["Dogra",O.Dogra],["Duployan",O.Duployan],["Egyptian_Hieroglyphs",O.Egyptian_Hieroglyphs],["Elbasan",O.Elbasan],["Elymaic",O.Elymaic],["Ethiopic",O.Ethiopic],["Garay",O.Garay],["Georgian",O.Georgian],["Glagolitic",O.Glagolitic],["Gothic",O.Gothic],["Grantha",O.Grantha],["Greek",O.Greek],["Gujarati",O.Gujarati],["Gunjala_Gondi",O.Gunjala_Gondi],["Gurmukhi",O.Gurmukhi],["Gurung_Khema",O.Gurung_Khema],["Han",O.Han],["Hangul",O.Hangul],["Hanifi_Rohingya",O.Hanifi_Rohingya],["Hanunoo",O.Hanunoo],["Hatran",O.Hatran],["Hebrew",O.Hebrew],["Hiragana",O.Hiragana],["Imperial_Aramaic",O.Imperial_Aramaic],["Inherited",O.Inherited],["Inscriptional_Pahlavi",O.Inscriptional_Pahlavi],["Inscriptional_Parthian",O.Inscriptional_Parthian],["Javanese",O.Javanese],["Kaithi",O.Kaithi],["Kannada",O.Kannada],["Katakana",O.Katakana],["Kawi",O.Kawi],["Kayah_Li",O.Kayah_Li],["Kharoshthi",O.Kharoshthi],["Khitan_Small_Script",O.Khitan_Small_Script],["Khmer",O.Khmer],["Khojki",O.Khojki],["Khudawadi",O.Khudawadi],["Kirat_Rai",O.Kirat_Rai],["Lao",O.Lao],["Latin",O.Latin],["Lepcha",O.Lepcha],["Limbu",O.Limbu],["Linear_A",O.Linear_A],["Linear_B",O.Linear_B],["Lisu",O.Lisu],["Lycian",O.Lycian],["Lydian",O.Lydian],["Mahajani",O.Mahajani],["Makasar",O.Makasar],["Malayalam",O.Malayalam],["Mandaic",O.Mandaic],["Manichaean",O.Manichaean],["Marchen",O.Marchen],["Masaram_Gondi",O.Masaram_Gondi],["Medefaidrin",O.Medefaidrin],["Meetei_Mayek",O.Meetei_Mayek],["Mende_Kikakui",O.Mende_Kikakui],["Meroitic_Cursive",O.Meroitic_Cursive],["Meroitic_Hieroglyphs",O.Meroitic_Hieroglyphs],["Miao",O.Miao],["Modi",O.Modi],["Mongolian",O.Mongolian],["Mro",O.Mro],["Multani",O.Multani],["Myanmar",O.Myanmar],["Nabataean",O.Nabataean],["Nag_Mundari",O.Nag_Mundari],["Nandinagari",O.Nandinagari],["New_Tai_Lue",O.New_Tai_Lue],["Newa",O.Newa],["Nko",O.Nko],["Nushu",O.Nushu],["Nyiakeng_Puachue_Hmong",O.Nyiakeng_Puachue_Hmong],["Ogham",O.Ogham],["Ol_Chiki",O.Ol_Chiki],["Ol_Onal",O.Ol_Onal],["Old_Hungarian",O.Old_Hungarian],["Old_Italic",O.Old_Italic],["Old_North_Arabian",O.Old_North_Arabian],["Old_Permic",O.Old_Permic],["Old_Persian",O.Old_Persian],["Old_Sogdian",O.Old_Sogdian],["Old_South_Arabian",O.Old_South_Arabian],["Old_Turkic",O.Old_Turkic],["Old_Uyghur",O.Old_Uyghur],["Oriya",O.Oriya],["Osage",O.Osage],["Osmanya",O.Osmanya],["Pahawh_Hmong",O.Pahawh_Hmong],["Palmyrene",O.Palmyrene],["Pau_Cin_Hau",O.Pau_Cin_Hau],["Phags_Pa",O.Phags_Pa],["Phoenician",O.Phoenician],["Psalter_Pahlavi",O.Psalter_Pahlavi],["Rejang",O.Rejang],["Runic",O.Runic],["Samaritan",O.Samaritan],["Saurashtra",O.Saurashtra],["Sharada",O.Sharada],["Shavian",O.Shavian],["Siddham",O.Siddham],["SignWriting",O.SignWriting],["Sinhala",O.Sinhala],["Sogdian",O.Sogdian],["Sora_Sompeng",O.Sora_Sompeng],["Soyombo",O.Soyombo],["Sundanese",O.Sundanese],["Sunuwar",O.Sunuwar],["Syloti_Nagri",O.Syloti_Nagri],["Syriac",O.Syriac],["Tagalog",O.Tagalog],["Tagbanwa",O.Tagbanwa],["Tai_Le",O.Tai_Le],["Tai_Tham",O.Tai_Tham],["Tai_Viet",O.Tai_Viet],["Takri",O.Takri],["Tamil",O.Tamil],["Tangsa",O.Tangsa],["Tangut",O.Tangut],["Telugu",O.Telugu],["Thaana",O.Thaana],["Thai",O.Thai],["Tibetan",O.Tibetan],["Tifinagh",O.Tifinagh],["Tirhuta",O.Tirhuta],["Todhri",O.Todhri],["Toto",O.Toto],["Tulu_Tigalari",O.Tulu_Tigalari],["Ugaritic",O.Ugaritic],["Vai",O.Vai],["Vithkuqi",O.Vithkuqi],["Wancho",O.Wancho],["Warang_Citi",O.Warang_Citi],["Yezidi",O.Yezidi],["Yi",O.Yi],["Zanabazar_Square",O.Zanabazar_Square]]);static FOLD_CATEGORIES=new Map([["L",O.foldL],["Ll",O.foldLl],["Lt",O.foldLt],["Lu",O.foldLu],["M",O.foldM],["Mn",O.foldMn]]);static FOLD_SCRIPT=new Map([["Common",O.foldCommon],["Greek",O.foldGreek],["Inherited",O.foldInherited]]);static Print=new N(new Uint32Array([33,126,1,161,172,1,174,887,1,890,895,1,900,906,1,908,910,2,911,929,1,931,1327,1,1329,1366,1,1369,1418,1,1421,1423,1,1425,1479,1,1488,1514,1,1519,1524,1,1542,1563,1,1565,1756,1,1758,1805,1,1808,1866,1,1869,1969,1,1984,2042,1,2045,2093,1,2096,2110,1,2112,2139,1,2142,2144,2,2145,2154,1,2160,2190,1,2199,2273,1,2275,2435,1,2437,2444,1,2447,2448,1,2451,2472,1,2474,2480,1,2482,2486,4,2487,2489,1,2492,2500,1,2503,2504,1,2507,2510,1,2519,2524,5,2525,2527,2,2528,2531,1,2534,2558,1,2561,2563,1,2565,2570,1,2575,2576,1,2579,2600,1,2602,2608,1,2610,2611,1,2613,2614,1,2616,2617,1,2620,2622,2,2623,2626,1,2631,2632,1,2635,2637,1,2641,2649,8,2650,2652,1,2654,2662,8,2663,2678,1,2689,2691,1,2693,2701,1,2703,2705,1,2707,2728,1,2730,2736,1,2738,2739,1,2741,2745,1,2748,2757,1,2759,2761,1,2763,2765,1,2768,2784,16,2785,2787,1,2790,2801,1,2809,2815,1,2817,2819,1,2821,2828,1,2831,2832,1,2835,2856,1,2858,2864,1,2866,2867,1,2869,2873,1,2876,2884,1,2887,2888,1,2891,2893,1,2901,2903,1,2908,2909,1,2911,2915,1,2918,2935,1,2946,2947,1,2949,2954,1,2958,2960,1,2962,2965,1,2969,2970,1,2972,2974,2,2975,2979,4,2980,2984,4,2985,2986,1,2990,3001,1,3006,3010,1,3014,3016,1,3018,3021,1,3024,3031,7,3046,3066,1,3072,3084,1,3086,3088,1,3090,3112,1,3114,3129,1,3132,3140,1,3142,3144,1,3146,3149,1,3157,3158,1,3160,3162,1,3165,3168,3,3169,3171,1,3174,3183,1,3191,3212,1,3214,3216,1,3218,3240,1,3242,3251,1,3253,3257,1,3260,3268,1,3270,3272,1,3274,3277,1,3285,3286,1,3293,3294,1,3296,3299,1,3302,3311,1,3313,3315,1,3328,3340,1,3342,3344,1,3346,3396,1,3398,3400,1,3402,3407,1,3412,3427,1,3430,3455,1,3457,3459,1,3461,3478,1,3482,3505,1,3507,3515,1,3517,3520,3,3521,3526,1,3530,3535,5,3536,3540,1,3542,3544,2,3545,3551,1,3558,3567,1,3570,3572,1,3585,3642,1,3647,3675,1,3713,3714,1,3716,3718,2,3719,3722,1,3724,3747,1,3749,3751,2,3752,3773,1,3776,3780,1,3782,3784,2,3785,3790,1,3792,3801,1,3804,3807,1,3840,3911,1,3913,3948,1,3953,3991,1,3993,4028,1,4030,4044,1,4046,4058,1,4096,4293,1,4295,4301,6,4304,4680,1,4682,4685,1,4688,4694,1,4696,4698,2,4699,4701,1,4704,4744,1,4746,4749,1,4752,4784,1,4786,4789,1,4792,4798,1,4800,4802,2,4803,4805,1,4808,4822,1,4824,4880,1,4882,4885,1,4888,4954,1,4957,4988,1,4992,5017,1,5024,5109,1,5112,5117,1,5120,5759,1,5761,5788,1,5792,5880,1,5888,5909,1,5919,5942,1,5952,5971,1,5984,5996,1,5998,6000,1,6002,6003,1,6016,6109,1,6112,6121,1,6128,6137,1,6144,6157,1,6159,6169,1,6176,6264,1,6272,6314,1,6320,6389,1,6400,6430,1,6432,6443,1,6448,6459,1,6464,6468,4,6469,6509,1,6512,6516,1,6528,6571,1,6576,6601,1,6608,6618,1,6622,6683,1,6686,6750,1,6752,6780,1,6783,6793,1,6800,6809,1,6816,6829,1,6832,6862,1,6912,6988,1,6990,7155,1,7164,7223,1,7227,7241,1,7245,7306,1,7312,7354,1,7357,7367,1,7376,7418,1,7424,7957,1,7960,7965,1,7968,8005,1,8008,8013,1,8016,8023,1,8025,8031,2,8032,8061,1,8064,8116,1,8118,8132,1,8134,8147,1,8150,8155,1,8157,8175,1,8178,8180,1,8182,8190,1,8208,8231,1,8240,8286,1,8304,8305,1,8308,8334,1,8336,8348,1,8352,8384,1,8400,8432,1,8448,8587,1,8592,9257,1,9280,9290,1,9312,11123,1,11126,11157,1,11159,11507,1,11513,11557,1,11559,11565,6,11568,11623,1,11631,11632,1,11647,11670,1,11680,11686,1,11688,11694,1,11696,11702,1,11704,11710,1,11712,11718,1,11720,11726,1,11728,11734,1,11736,11742,1,11744,11869,1,11904,11929,1,11931,12019,1,12032,12245,1,12272,12287,1,12289,12351,1,12353,12438,1,12441,12543,1,12549,12591,1,12593,12686,1,12688,12773,1,12783,12830,1,12832,42124,1,42128,42182,1,42192,42539,1,42560,42743,1,42752,42957,1,42960,42961,1,42963,42965,2,42966,42972,1,42994,43052,1,43056,43065,1,43072,43127,1,43136,43205,1,43214,43225,1,43232,43347,1,43359,43388,1,43392,43469,1,43471,43481,1,43486,43518,1,43520,43574,1,43584,43597,1,43600,43609,1,43612,43714,1,43739,43766,1,43777,43782,1,43785,43790,1,43793,43798,1,43808,43814,1,43816,43822,1,43824,43883,1,43888,44013,1,44016,44025,1,44032,55203,1,55216,55238,1,55243,55291,1,63744,64109,1,64112,64217,1,64256,64262,1,64275,64279,1,64285,64310,1,64312,64316,1,64318,64320,2,64321,64323,2,64324,64326,2,64327,64450,1,64467,64911,1,64914,64967,1,64975,65008,33,65009,65049,1,65056,65106,1,65108,65126,1,65128,65131,1,65136,65140,1,65142,65276,1,65281,65470,1,65474,65479,1,65482,65487,1,65490,65495,1,65498,65500,1,65504,65510,1,65512,65518,1,65532,65533,1,65536,65547,1,65549,65574,1,65576,65594,1,65596,65597,1,65599,65613,1,65616,65629,1,65664,65786,1,65792,65794,1,65799,65843,1,65847,65934,1,65936,65948,1,65952,66000,48,66001,66045,1,66176,66204,1,66208,66256,1,66272,66299,1,66304,66339,1,66349,66378,1,66384,66426,1,66432,66461,1,66463,66499,1,66504,66517,1,66560,66717,1,66720,66729,1,66736,66771,1,66776,66811,1,66816,66855,1,66864,66915,1,66927,66938,1,66940,66954,1,66956,66962,1,66964,66965,1,66967,66977,1,66979,66993,1,66995,67001,1,67003,67004,1,67008,67059,1,67072,67382,1,67392,67413,1,67424,67431,1,67456,67461,1,67463,67504,1,67506,67514,1,67584,67589,1,67592,67594,2,67595,67637,1,67639,67640,1,67644,67647,3,67648,67669,1,67671,67742,1,67751,67759,1,67808,67826,1,67828,67829,1,67835,67867,1,67871,67897,1,67903,67968,65,67969,68023,1,68028,68047,1,68050,68099,1,68101,68102,1,68108,68115,1,68117,68119,1,68121,68149,1,68152,68154,1,68159,68168,1,68176,68184,1,68192,68255,1,68288,68326,1,68331,68342,1,68352,68405,1,68409,68437,1,68440,68466,1,68472,68497,1,68505,68508,1,68521,68527,1,68608,68680,1,68736,68786,1,68800,68850,1,68858,68903,1,68912,68921,1,68928,68965,1,68969,68997,1,69006,69007,1,69216,69246,1,69248,69289,1,69291,69293,1,69296,69297,1,69314,69316,1,69372,69415,1,69424,69465,1,69488,69513,1,69552,69579,1,69600,69622,1,69632,69709,1,69714,69749,1,69759,69820,1,69822,69826,1,69840,69864,1,69872,69881,1,69888,69940,1,69942,69959,1,69968,70006,1,70016,70111,1,70113,70132,1,70144,70161,1,70163,70209,1,70272,70278,1,70280,70282,2,70283,70285,1,70287,70301,1,70303,70313,1,70320,70378,1,70384,70393,1,70400,70403,1,70405,70412,1,70415,70416,1,70419,70440,1,70442,70448,1,70450,70451,1,70453,70457,1,70459,70468,1,70471,70472,1,70475,70477,1,70480,70487,7,70493,70499,1,70502,70508,1,70512,70516,1,70528,70537,1,70539,70542,3,70544,70581,1,70583,70592,1,70594,70597,3,70599,70602,1,70604,70613,1,70615,70616,1,70625,70626,1,70656,70747,1,70749,70753,1,70784,70855,1,70864,70873,1,71040,71093,1,71096,71133,1,71168,71236,1,71248,71257,1,71264,71276,1,71296,71353,1,71360,71369,1,71376,71395,1,71424,71450,1,71453,71467,1,71472,71494,1,71680,71739,1,71840,71922,1,71935,71942,1,71945,71948,3,71949,71955,1,71957,71958,1,71960,71989,1,71991,71992,1,71995,72006,1,72016,72025,1,72096,72103,1,72106,72151,1,72154,72164,1,72192,72263,1,72272,72354,1,72368,72440,1,72448,72457,1,72640,72673,1,72688,72697,1,72704,72712,1,72714,72758,1,72760,72773,1,72784,72812,1,72816,72847,1,72850,72871,1,72873,72886,1,72960,72966,1,72968,72969,1,72971,73014,1,73018,73020,2,73021,73023,2,73024,73031,1,73040,73049,1,73056,73061,1,73063,73064,1,73066,73102,1,73104,73105,1,73107,73112,1,73120,73129,1,73440,73464,1,73472,73488,1,73490,73530,1,73534,73562,1,73648,73664,16,73665,73713,1,73727,74649,1,74752,74862,1,74864,74868,1,74880,75075,1,77712,77810,1,77824,78895,1,78912,78933,1,78944,82938,1,82944,83526,1,90368,90425,1,92160,92728,1,92736,92766,1,92768,92777,1,92782,92862,1,92864,92873,1,92880,92909,1,92912,92917,1,92928,92997,1,93008,93017,1,93019,93025,1,93027,93047,1,93053,93071,1,93504,93561,1,93760,93850,1,93952,94026,1,94031,94087,1,94095,94111,1,94176,94180,1,94192,94193,1,94208,100343,1,100352,101589,1,101631,101640,1,110576,110579,1,110581,110587,1,110589,110590,1,110592,110882,1,110898,110928,30,110929,110930,1,110933,110948,15,110949,110951,1,110960,111355,1,113664,113770,1,113776,113788,1,113792,113800,1,113808,113817,1,113820,113823,1,117760,118009,1,118016,118451,1,118528,118573,1,118576,118598,1,118608,118723,1,118784,119029,1,119040,119078,1,119081,119154,1,119163,119274,1,119296,119365,1,119488,119507,1,119520,119539,1,119552,119638,1,119648,119672,1,119808,119892,1,119894,119964,1,119966,119967,1,119970,119973,3,119974,119977,3,119978,119980,1,119982,119993,1,119995,119997,2,119998,120003,1,120005,120069,1,120071,120074,1,120077,120084,1,120086,120092,1,120094,120121,1,120123,120126,1,120128,120132,1,120134,120138,4,120139,120144,1,120146,120485,1,120488,120779,1,120782,121483,1,121499,121503,1,121505,121519,1,122624,122654,1,122661,122666,1,122880,122886,1,122888,122904,1,122907,122913,1,122915,122916,1,122918,122922,1,122928,122989,1,123023,123136,113,123137,123180,1,123184,123197,1,123200,123209,1,123214,123215,1,123536,123566,1,123584,123641,1,123647,124112,465,124113,124153,1,124368,124410,1,124415,124896,481,124897,124902,1,124904,124907,1,124909,124910,1,124912,124926,1,124928,125124,1,125127,125142,1,125184,125259,1,125264,125273,1,125278,125279,1,126065,126132,1,126209,126269,1,126464,126467,1,126469,126495,1,126497,126498,1,126500,126503,3,126505,126514,1,126516,126519,1,126521,126523,2,126530,126535,5,126537,126541,2,126542,126543,1,126545,126546,1,126548,126551,3,126553,126561,2,126562,126564,2,126567,126570,1,126572,126578,1,126580,126583,1,126585,126588,1,126590,126592,2,126593,126601,1,126603,126619,1,126625,126627,1,126629,126633,1,126635,126651,1,126704,126705,1,126976,127019,1,127024,127123,1,127136,127150,1,127153,127167,1,127169,127183,1,127185,127221,1,127232,127405,1,127462,127490,1,127504,127547,1,127552,127560,1,127568,127569,1,127584,127589,1,127744,128727,1,128732,128748,1,128752,128764,1,128768,128886,1,128891,128985,1,128992,129003,1,129008,129024,16,129025,129035,1,129040,129095,1,129104,129113,1,129120,129159,1,129168,129197,1,129200,129211,1,129216,129217,1,129280,129619,1,129632,129645,1,129648,129660,1,129664,129673,1,129679,129734,1,129742,129756,1,129759,129769,1,129776,129784,1,129792,129938,1,129940,130041,1,131072,173791,1,173824,177977,1,177984,178205,1,178208,183969,1,183984,191456,1,191472,192093,1,194560,195101,1,196608,201546,1,201552,205743,1,917760,917999,1]))}class N0{static MAX_RUNE=1114111;static MAX_ASCII=127;static MAX_LATIN1=255;static MAX_BMP=65535;static MIN_FOLD=65;static MAX_FOLD=125251;static is32(u,D){let F=0,$=u.length;while(F<$){let B=F+Math.floor(($-F)/2),z=u.getLo(B),Z=u.getHi(B);if(z<=D&&D<=Z){let q=u.getStride(B);return(D-z)%q===0}if(D<z)$=B;else F=B+1}return!1}static is(u,D){if(D<=this.MAX_LATIN1){for(let F=0;F<u.length;F++){let $=u.getHi(F);if(D>$)continue;let B=u.getLo(F);if(D<B)return!1;let z=u.getStride(F);return(D-B)%z===0}return!1}return u.length>0&&D>=u.getLo(0)&&this.is32(u,D)}static isUpper(u){if(u<=this.MAX_LATIN1){let D=String.fromCodePoint(u);return D.toUpperCase()===D&&D.toLowerCase()!==D}return this.is(O.Upper,u)}static isPrint(u){if(u<=this.MAX_LATIN1)return u>=32&&u<this.MAX_ASCII||u>=161&&u!==173;return this.is(O.Print,u)}static simpleFold(u){if(O.CASE_ORBIT.has(u))return O.CASE_ORBIT.get(u);let D=b.toLowerCase(u);if(D!==u)return D;return b.toUpperCase(u)}static equalsIgnoreCase(u,D){if(u<0||D<0||u===D)return!0;if(u<=this.MAX_ASCII&&D<=this.MAX_ASCII){if(b.CODES.get("A")<=u&&u<=b.CODES.get("Z"))u|=32;if(b.CODES.get("A")<=D&&D<=b.CODES.get("Z"))D|=32;return u===D}for(let F=this.simpleFold(u);F!==u;F=this.simpleFold(F))if(F===D)return!0;return!1}}class U0{static METACHARACTERS="\\.+*?()|[]{}^$";static EMPTY_BEGIN_LINE=1;static EMPTY_END_LINE=2;static EMPTY_BEGIN_TEXT=4;static EMPTY_END_TEXT=8;static EMPTY_WORD_BOUNDARY=16;static EMPTY_NO_WORD_BOUNDARY=32;static EMPTY_ALL=-1;static emptyInts(){return[]}static isalnum(u){return b.CODES.get("0")<=u&&u<=b.CODES.get("9")||b.CODES.get("a")<=u&&u<=b.CODES.get("z")||b.CODES.get("A")<=u&&u<=b.CODES.get("Z")}static unhex(u){if(b.CODES.get("0")<=u&&u<=b.CODES.get("9"))return u-b.CODES.get("0");if(b.CODES.get("a")<=u&&u<=b.CODES.get("f"))return u-b.CODES.get("a")+10;if(b.CODES.get("A")<=u&&u<=b.CODES.get("F"))return u-b.CODES.get("A")+10;return-1}static escapeRune(u){let D="";if(N0.isPrint(u)){if(this.METACHARACTERS.indexOf(String.fromCodePoint(u))>=0)D+="\\";D+=String.fromCodePoint(u)}else switch(u){case b.CODES.get('"'):D+="\\\"";break;case b.CODES.get("\\"):D+="\\\\";break;case b.CODES.get("\t"):D+="\\t";break;case b.CODES.get(`
|
|
213
|
+
`):D+="\\n";break;case b.CODES.get("\r"):D+="\\r";break;case b.CODES.get("\b"):D+="\\b";break;case b.CODES.get("\f"):D+="\\f";break;default:{let F=u.toString(16);if(u<256){if(D+="\\x",F.length===1)D+="0";D+=F}else D+=`\\x{${F}}`;break}}return D}static stringToRunes(u){return String(u).split("").map((D)=>D.codePointAt(0))}static runeToString(u){return String.fromCodePoint(u)}static isWordRune(u){return b.CODES.get("a")<=u&&u<=b.CODES.get("z")||b.CODES.get("A")<=u&&u<=b.CODES.get("Z")||b.CODES.get("0")<=u&&u<=b.CODES.get("9")||u===b.CODES.get("_")}static emptyOpContext(u,D){let F=0;if(u<0)F|=this.EMPTY_BEGIN_TEXT|this.EMPTY_BEGIN_LINE;if(u===b.CODES.get(`
|
|
214
|
+
`))F|=this.EMPTY_BEGIN_LINE;if(D<0)F|=this.EMPTY_END_TEXT|this.EMPTY_END_LINE;if(D===b.CODES.get(`
|
|
215
|
+
`))F|=this.EMPTY_END_LINE;if(this.isWordRune(u)!==this.isWordRune(D))F|=this.EMPTY_WORD_BOUNDARY;else F|=this.EMPTY_NO_WORD_BOUNDARY;return F}static quoteMeta(u){return u.split("").map((D)=>{if(this.METACHARACTERS.indexOf(D)>=0)return`\\${D}`;return D}).join("")}static charCount(u){return u>N0.MAX_BMP?2:1}static stringToUtf8ByteArray(u){if(globalThis.TextEncoder)return Array.from(new TextEncoder().encode(u));else{let D=[],F=0;for(let $=0;$<u.length;$++){let B=u.charCodeAt($);if(B<128)D[F++]=B;else if(B<2048)D[F++]=B>>6|192,D[F++]=B&63|128;else if((B&64512)===55296&&$+1<u.length&&(u.charCodeAt($+1)&64512)===56320)B=65536+((B&1023)<<10)+(u.charCodeAt(++$)&1023),D[F++]=B>>18|240,D[F++]=B>>12&63|128,D[F++]=B>>6&63|128,D[F++]=B&63|128;else D[F++]=B>>12|224,D[F++]=B>>6&63|128,D[F++]=B&63|128}return D}}static utf8ByteArrayToString(u){if(globalThis.TextDecoder)return new TextDecoder("utf-8").decode(new Uint8Array(u));else{let D=[],F=0,$=0;while(F<u.length){let B=u[F++];if(B<128)D[$++]=String.fromCharCode(B);else if(B>191&&B<224){let z=u[F++];D[$++]=String.fromCharCode((B&31)<<6|z&63)}else if(B>239&&B<365){let z=u[F++],Z=u[F++],q=u[F++],X=((B&7)<<18|(z&63)<<12|(Z&63)<<6|q&63)-65536;D[$++]=String.fromCharCode(55296+(X>>10)),D[$++]=String.fromCharCode(56320+(X&1023))}else{let z=u[F++],Z=u[F++];D[$++]=String.fromCharCode((B&15)<<12|(z&63)<<6|Z&63)}}return D.join("")}}}var kJ=(u=[],D=0)=>{let F={};for(let $=0;$<u.length;$++){let B=u[$],z=D+$;F[B]=z,F[z]=B}return Object.freeze(F)};class H1{static Encoding=kJ(["UTF_16","UTF_8"]);getEncoding(){throw Error("not implemented")}isUTF8Encoding(){return this.getEncoding()===H1.Encoding.UTF_8}isUTF16Encoding(){return this.getEncoding()===H1.Encoding.UTF_16}}class a$ extends H1{constructor(u=null){super();this.bytes=u}getEncoding(){return H1.Encoding.UTF_8}asCharSequence(){return U0.utf8ByteArrayToString(this.bytes)}asBytes(){return this.bytes}length(){return this.bytes.length}}class hJ extends H1{constructor(u=null){super();this.charSequence=u}getEncoding(){return H1.Encoding.UTF_16}asCharSequence(){return this.charSequence}asBytes(){return this.charSequence.toString().split("").map((u)=>u.codePointAt(0))}length(){return this.charSequence.length}}class h8{static utf16(u){return new hJ(u)}static utf8(u){if(Array.isArray(u))return new a$(u);return new a$(U0.stringToUtf8ByteArray(u))}}class c8 extends Error{constructor(u){super(u);this.name="RE2JSException"}}class p0 extends c8{constructor(u,D=null){let F=`error parsing regexp: ${u}`;if(D)F+=`: \`${D}\``;super(F);this.name="RE2JSSyntaxException",this.message=F,this.error=u,this.input=D}getDescription(){return this.error}getPattern(){return this.input}}class cJ extends c8{constructor(u){super(u);this.name="RE2JSCompileException"}}class u1 extends c8{constructor(u){super(u);this.name="RE2JSGroupException"}}class mJ extends c8{constructor(u){super(u);this.name="RE2JSFlagsException"}}class nJ{static quoteReplacement(u){if(u.indexOf("\\")<0&&u.indexOf("$")<0)return u;return u.split("").map((D)=>{let F=D.codePointAt(0);if(F===b.CODES["\\"]||F===b.CODES.$)return`\\${D}`;return D}).join("")}constructor(u,D){if(u===null)throw Error("pattern is null");this.patternInput=u;let F=this.patternInput.re2();if(this.patternGroupCount=F.numberOfCapturingGroups(),this.groups=[],this.namedGroups=F.namedGroups,this.numberOfInstructions=F.numberOfInstructions(),D instanceof H1)this.resetMatcherInput(D);else if(Array.isArray(D))this.resetMatcherInput(h8.utf8(D));else this.resetMatcherInput(h8.utf16(D))}pattern(){return this.patternInput}reset(){return this.matcherInputLength=this.matcherInput.length(),this.appendPos=0,this.hasMatch=!1,this.hasGroups=!1,this.anchorFlag=0,this}resetMatcherInput(u){if(u===null)throw Error("input is null");return this.matcherInput=u,this.reset(),this}start(u=0){if(typeof u==="string"){let D=this.namedGroups[u];if(!Number.isFinite(D))throw new u1(`group '${u}' not found`);u=D}return this.loadGroup(u),this.groups[2*u]}end(u=0){if(typeof u==="string"){let D=this.namedGroups[u];if(!Number.isFinite(D))throw new u1(`group '${u}' not found`);u=D}return this.loadGroup(u),this.groups[2*u+1]}programSize(){return this.numberOfInstructions}group(u=0){if(typeof u==="string"){let $=this.namedGroups[u];if(!Number.isFinite($))throw new u1(`group '${u}' not found`);u=$}let D=this.start(u),F=this.end(u);if(D<0&&F<0)return null;return this.substring(D,F)}groupCount(){return this.patternGroupCount}loadGroup(u){if(u<0||u>this.patternGroupCount)throw new u1(`Group index out of bounds: ${u}`);if(!this.hasMatch)throw new u1("perhaps no match attempted");if(u===0||this.hasGroups)return;let D=this.groups[1]+1;if(D>this.matcherInputLength)D=this.matcherInputLength;let F=this.patternInput.re2().matchMachineInput(this.matcherInput,this.groups[0],D,this.anchorFlag,1+this.patternGroupCount);if(!F[0])throw new u1("inconsistency in matching group data");this.groups=F[1],this.hasGroups=!0}matches(){return this.genMatch(0,D0.ANCHOR_BOTH)}lookingAt(){return this.genMatch(0,D0.ANCHOR_START)}find(u=null){if(u!==null){if(u<0||u>this.matcherInputLength)throw new u1(`start index out of bounds: ${u}`);return this.reset(),this.genMatch(u,0)}if(u=0,this.hasMatch){if(u=this.groups[1],this.groups[0]===this.groups[1])u++}return this.genMatch(u,D0.UNANCHORED)}genMatch(u,D){let F=this.patternInput.re2().matchMachineInput(this.matcherInput,u,this.matcherInputLength,D,1);if(!F[0])return!1;return this.groups=F[1],this.hasMatch=!0,this.hasGroups=!1,this.anchorFlag=D,!0}substring(u,D){if(this.matcherInput.isUTF8Encoding())return U0.utf8ByteArrayToString(this.matcherInput.asBytes().slice(u,D));return this.matcherInput.asCharSequence().substring(u,D).toString()}inputLength(){return this.matcherInputLength}appendReplacement(u,D=!1){let F="",$=this.start(),B=this.end();if(this.appendPos<$)F+=this.substring(this.appendPos,$);return this.appendPos=B,F+=D?this.appendReplacementInternalPerl(u):this.appendReplacementInternal(u),F}appendReplacementInternal(u){let D="",F=0,$=u.length;for(let B=0;B<$-1;B++){if(u.codePointAt(B)===b.CODES.get("\\")){if(F<B)D+=u.substring(F,B);B++,F=B;continue}if(u.codePointAt(B)===b.CODES.get("$")){let z=u.codePointAt(B+1);if(b.CODES.get("0")<=z&&z<=b.CODES.get("9")){let Z=z-b.CODES.get("0");if(F<B)D+=u.substring(F,B);for(B+=2;B<$;B++){if(z=u.codePointAt(B),z<b.CODES.get("0")||z>b.CODES.get("9")||Z*10+z-b.CODES.get("0")>this.patternGroupCount)break;Z=Z*10+z-b.CODES.get("0")}if(Z>this.patternGroupCount)throw new u1(`n > number of groups: ${Z}`);let q=this.group(Z);if(q!==null)D+=q;F=B,B--;continue}else if(z===b.CODES.get("{")){if(F<B)D+=u.substring(F,B);B++;let Z=B+1;while(Z<u.length&&u.codePointAt(Z)!==b.CODES.get("}")&&u.codePointAt(Z)!==b.CODES.get(" "))Z++;if(Z===u.length||u.codePointAt(Z)!==b.CODES.get("}"))throw new u1("named capture group is missing trailing '}'");let q=u.substring(B+1,Z);D+=this.group(q),F=Z+1}}}if(F<$)D+=u.substring(F,$);return D}appendReplacementInternalPerl(u){let D="",F=0,$=u.length;for(let B=0;B<$-1;B++)if(u.codePointAt(B)===b.CODES.get("$")){let z=u.codePointAt(B+1);if(b.CODES.get("$")===z){if(F<B)D+=u.substring(F,B);D+="$",B++,F=B+1;continue}else if(b.CODES.get("&")===z){if(F<B)D+=u.substring(F,B);let Z=this.group(0);if(Z!==null)D+=Z;else D+="$&";B++,F=B+1;continue}else if(b.CODES.get("1")<=z&&z<=b.CODES.get("9")){let Z=z-b.CODES.get("0");if(F<B)D+=u.substring(F,B);for(B+=2;B<$;B++){if(z=u.codePointAt(B),z<b.CODES.get("0")||z>b.CODES.get("9")||Z*10+z-b.CODES.get("0")>this.patternGroupCount)break;Z=Z*10+z-b.CODES.get("0")}if(Z>this.patternGroupCount){D+=`$${Z}`,F=B,B--;continue}let q=this.group(Z);if(q!==null)D+=q;F=B,B--;continue}else if(z===b.CODES.get("<")){if(F<B)D+=u.substring(F,B);B++;let Z=B+1;while(Z<u.length&&u.codePointAt(Z)!==b.CODES.get(">")&&u.codePointAt(Z)!==b.CODES.get(" "))Z++;if(Z===u.length||u.codePointAt(Z)!==b.CODES.get(">")){D+=u.substring(B-1,Z+1),F=Z+1;continue}let q=u.substring(B+1,Z);if(Object.prototype.hasOwnProperty.call(this.namedGroups,q))D+=this.group(q);else D+=`$<${q}>`;F=Z+1}}if(F<$)D+=u.substring(F,$);return D}appendTail(){return this.substring(this.appendPos,this.matcherInputLength)}replaceAll(u,D=!1){return this.replace(u,!0,D)}replaceFirst(u,D=!1){return this.replace(u,!1,D)}replace(u,D=!0,F=!1){let $="";this.reset();while(this.find())if($+=this.appendReplacement(u,F),!D)break;return $+=this.appendTail(),$}}class K1{static EOF(){return-8}canCheckPrefix(){return!0}endPos(){return this.end}}class pJ extends K1{constructor(u,D=0,F=u.length){super();this.bytes=u,this.start=D,this.end=F}step(u){if(u+=this.start,u>=this.end)return K1.EOF();let D=this.bytes[u++]&255;if((D&128)===0)return D<<3|1;else if((D&224)===192){if(D=D&31,u>=this.end)return K1.EOF();return D=D<<6|this.bytes[u++]&63,D<<3|2}else if((D&240)===224){if(D=D&15,u+1>=this.end)return K1.EOF();return D=D<<6|this.bytes[u++]&63,D=D<<6|this.bytes[u++]&63,D<<3|3}else{if(D=D&7,u+2>=this.end)return K1.EOF();return D=D<<6|this.bytes[u++]&63,D=D<<6|this.bytes[u++]&63,D=D<<6|this.bytes[u++]&63,D<<3|4}}index(u,D){D+=this.start;let F=this.indexOf(this.bytes,u.prefixUTF8,D);return F<0?F:F-D}context(u){u+=this.start;let D=-1;if(u>this.start&&u<=this.end){let $=u-1;if(D=this.bytes[$--],D>=128){let B=u-4;if(B<this.start)B=this.start;while($>=B&&(this.bytes[$]&192)===128)$--;if($<this.start)$=this.start;D=this.step($)>>3}}let F=u<this.end?this.step(u)>>3:-1;return U0.emptyOpContext(D,F)}indexOf(u,D,F=0){let $=D.length;if($===0)return-1;let B=u.length;for(let z=F;z<=B-$;z++)for(let Z=0;Z<$;Z++)if(u[z+Z]!==D[Z])break;else if(Z===$-1)return z;return-1}}class lJ extends K1{constructor(u,D=0,F=u.length){super();this.charSequence=u,this.start=D,this.end=F}step(u){if(u+=this.start,u<this.end){let D=this.charSequence.codePointAt(u);return D<<3|U0.charCount(D)}else return K1.EOF()}index(u,D){D+=this.start;let F=this.charSequence.indexOf(u.prefix,D);return F<0?F:F-D}context(u){u+=this.start;let D=u>0&&u<=this.charSequence.length?this.charSequence.codePointAt(u-1):-1,F=u<this.charSequence.length?this.charSequence.codePointAt(u):-1;return U0.emptyOpContext(D,F)}}class zu{static fromUTF8(u,D=0,F=u.length){return new pJ(u,D,F)}static fromUTF16(u,D=0,F=u.length){return new lJ(u,D,F)}}class V0{static ALT=1;static ALT_MATCH=2;static CAPTURE=3;static EMPTY_WIDTH=4;static FAIL=5;static MATCH=6;static NOP=7;static RUNE=8;static RUNE1=9;static RUNE_ANY=10;static RUNE_ANY_NOT_NL=11;static isRuneOp(u){return V0.RUNE<=u&&u<=V0.RUNE_ANY_NOT_NL}static escapeRunes(u){let D='"';for(let F of u)D+=U0.escapeRune(F);return D+='"',D}constructor(u){this.op=u,this.out=0,this.arg=0,this.runes=[]}matchRune(u){if(this.runes.length===1){let $=this.runes[0];if((this.arg&D0.FOLD_CASE)!==0)return N0.equalsIgnoreCase($,u);return u===$}for(let $=0;$<this.runes.length&&$<=8;$+=2){if(u<this.runes[$])return!1;if(u<=this.runes[$+1])return!0}let D=0,F=this.runes.length/2|0;while(D<F){let $=D+((F-D)/2|0);if(this.runes[2*$]<=u){if(u<=this.runes[2*$+1])return!0;D=$+1}else F=$}return!1}toString(){switch(this.op){case V0.ALT:return`alt -> ${this.out}, ${this.arg}`;case V0.ALT_MATCH:return`altmatch -> ${this.out}, ${this.arg}`;case V0.CAPTURE:return`cap ${this.arg} -> ${this.out}`;case V0.EMPTY_WIDTH:return`empty ${this.arg} -> ${this.out}`;case V0.MATCH:return"match";case V0.FAIL:return"fail";case V0.NOP:return`nop -> ${this.out}`;case V0.RUNE:if(this.runes===null)return"rune <null>";return["rune ",V0.escapeRunes(this.runes),(this.arg&D0.FOLD_CASE)!==0?"/i":""," -> ",this.out].join("");case V0.RUNE1:return`rune1 ${V0.escapeRunes(this.runes)} -> ${this.out}`;case V0.RUNE_ANY:return`any -> ${this.out}`;case V0.RUNE_ANY_NOT_NL:return`anynotnl -> ${this.out}`;default:throw Error("unhandled case in Inst.toString")}}}class gJ{constructor(){this.inst=null,this.cap=[]}}class t${constructor(){this.sparse=[],this.densePcs=[],this.denseThreads=[],this.size=0}contains(u){let D=this.sparse[u];return D<this.size&&this.densePcs[D]===u}isEmpty(){return this.size===0}add(u){let D=this.size++;return this.sparse[u]=D,this.denseThreads[D]=null,this.densePcs[D]=u,D}clear(){this.sparse=[],this.densePcs=[],this.denseThreads=[],this.size=0}toString(){let u="{";for(let D=0;D<this.size;D++){if(D!==0)u+=", ";u+=this.densePcs[D]}return u+="}",u}}class w6{static fromRE2(u){let D=new w6;return D.prog=u.prog,D.re2=u,D.q0=new t$(D.prog.numInst()),D.q1=new t$(D.prog.numInst()),D.pool=[],D.poolSize=0,D.matched=!1,D.matchcap=Array(D.prog.numCap<2?2:D.prog.numCap).fill(0),D.ncap=0,D}static fromMachine(u){let D=new w6;return D.re2=u.re2,D.prog=u.prog,D.q0=u.q0,D.q1=u.q1,D.pool=u.pool,D.poolSize=u.poolSize,D.matched=u.matched,D.matchcap=u.matchcap,D.ncap=u.ncap,D}init(u){if(this.ncap=u,u>this.matchcap.length)this.initNewCap(u);else this.resetCap(u)}resetCap(u){for(let D=0;D<this.poolSize;D++){let F=this.pool[D];F.cap=Array(u).fill(0)}}initNewCap(u){for(let D=0;D<this.poolSize;D++){let F=this.pool[D];F.cap=Array(u).fill(0)}this.matchcap=Array(u).fill(0)}submatches(){if(this.ncap===0)return U0.emptyInts();return this.matchcap.slice(0,this.ncap)}alloc(u){let D;if(this.poolSize>0)this.poolSize--,D=this.pool[this.poolSize];else D=new gJ;return D.inst=u,D}freeQueue(u,D=0){let F=u.size-D,$=this.poolSize+F;if(this.pool.length<$)this.pool=this.pool.slice(0,Math.max(this.pool.length*2,$));for(let B=D;B<u.size;B++){let z=u.denseThreads[B];if(z!==null)this.pool[this.poolSize]=z,this.poolSize++}u.clear()}freeThread(u){if(this.pool.length<=this.poolSize)this.pool=this.pool.slice(0,this.pool.length*2);this.pool[this.poolSize]=u,this.poolSize++}match(u,D,F){let $=this.re2.cond;if($===U0.EMPTY_ALL)return!1;if((F===D0.ANCHOR_START||F===D0.ANCHOR_BOTH)&&D!==0)return!1;this.matched=!1,this.matchcap=Array(this.prog.numCap).fill(-1);let B=this.q0,z=this.q1,Z=u.step(D),q=Z>>3,X=Z&7,Q=-1,W=0;if(Z!==K1.EOF())Z=u.step(D+X),Q=Z>>3,W=Z&7;let Y;if(D===0)Y=U0.emptyOpContext(-1,q);else Y=u.context(D);while(!0){if(B.isEmpty()){if(($&U0.EMPTY_BEGIN_TEXT)!==0&&D!==0)break;if(this.matched)break;if(this.re2.prefix.length!==0&&Q!==this.re2.prefixRune&&u.canCheckPrefix()){let K=u.index(this.re2,D);if(K<0)break;D+=K,Z=u.step(D),q=Z>>3,X=Z&7,Z=u.step(D+X),Q=Z>>3,W=Z&7}}if(!this.matched&&(D===0||F===D0.UNANCHORED)){if(this.ncap>0)this.matchcap[0]=D;this.add(B,this.prog.start,D,this.matchcap,Y,null)}let J=D+X;if(Y=u.context(J),this.step(B,z,D,J,q,Y,F,D===u.endPos()),X===0)break;if(this.ncap===0&&this.matched)break;if(D+=X,q=Q,X=W,q!==-1)Z=u.step(D+X),Q=Z>>3,W=Z&7;let G=B;B=z,z=G}return this.freeQueue(z),this.matched}step(u,D,F,$,B,z,Z,q){let X=this.re2.longest;for(let Q=0;Q<u.size;Q++){let W=u.denseThreads[Q];if(W===null)continue;if(X&&this.matched&&this.ncap>0&&this.matchcap[0]<W.cap[0]){this.freeThread(W);continue}let Y=W.inst,J=!1;switch(Y.op){case V0.MATCH:if(Z===D0.ANCHOR_BOTH&&!q)break;if(this.ncap>0&&(!X||!this.matched||this.matchcap[1]<F))W.cap[1]=F,this.matchcap=W.cap.slice(0,this.ncap);if(!X)this.freeQueue(u,Q+1);this.matched=!0;break;case V0.RUNE:J=Y.matchRune(B);break;case V0.RUNE1:J=B===Y.runes[0];break;case V0.RUNE_ANY:J=!0;break;case V0.RUNE_ANY_NOT_NL:J=B!==b.CODES.get(`
|
|
216
|
+
`);break;default:throw Error("bad inst")}if(J)W=this.add(D,Y.out,$,W.cap,z,W);if(W!==null)this.freeThread(W),u.denseThreads[Q]=null}u.clear()}add(u,D,F,$,B,z){if(D===0)return z;if(u.contains(D))return z;let Z=u.add(D),q=this.prog.inst[D];switch(q.op){case V0.FAIL:break;case V0.ALT:case V0.ALT_MATCH:z=this.add(u,q.out,F,$,B,z),z=this.add(u,q.arg,F,$,B,z);break;case V0.EMPTY_WIDTH:if((q.arg&~B)===0)z=this.add(u,q.out,F,$,B,z);break;case V0.NOP:z=this.add(u,q.out,F,$,B,z);break;case V0.CAPTURE:if(q.arg<this.ncap){let X=$[q.arg];$[q.arg]=F,this.add(u,q.out,F,$,B,null),$[q.arg]=X}else z=this.add(u,q.out,F,$,B,z);break;case V0.MATCH:case V0.RUNE:case V0.RUNE1:case V0.RUNE_ANY:case V0.RUNE_ANY_NOT_NL:if(z===null)z=this.alloc(q);else z.inst=q;if(this.ncap>0&&z.cap!==$)z.cap=$.slice(0,this.ncap);u.denseThreads[Z]=z,z=null;break;default:throw Error("unhandled")}return z}}class U{static Op=kJ(["NO_MATCH","EMPTY_MATCH","LITERAL","CHAR_CLASS","ANY_CHAR_NOT_NL","ANY_CHAR","BEGIN_LINE","END_LINE","BEGIN_TEXT","END_TEXT","WORD_BOUNDARY","NO_WORD_BOUNDARY","CAPTURE","STAR","PLUS","QUEST","REPEAT","CONCAT","ALTERNATE","LEFT_PAREN","VERTICAL_BAR"]);static isPseudoOp(u){return u>=U.Op.LEFT_PAREN}static emptySubs(){return[]}static quoteIfHyphen(u){if(u===b.CODES.get("-"))return"\\";return""}static fromRegexp(u){let D=new U(u.op);return D.flags=u.flags,D.subs=u.subs,D.runes=u.runes,D.cap=u.cap,D.min=u.min,D.max=u.max,D.name=u.name,D.namedGroups=u.namedGroups,D}constructor(u){this.op=u,this.flags=0,this.subs=U.emptySubs(),this.runes=[],this.min=0,this.max=0,this.cap=0,this.name=null,this.namedGroups={}}reinit(){this.flags=0,this.subs=U.emptySubs(),this.runes=[],this.cap=0,this.min=0,this.max=0,this.name=null,this.namedGroups={}}toString(){return this.appendTo()}appendTo(){let u="";switch(this.op){case U.Op.NO_MATCH:u+="[^\\x00-\\x{10FFFF}]";break;case U.Op.EMPTY_MATCH:u+="(?:)";break;case U.Op.STAR:case U.Op.PLUS:case U.Op.QUEST:case U.Op.REPEAT:{let D=this.subs[0];if(D.op>U.Op.CAPTURE||D.op===U.Op.LITERAL&&D.runes.length>1)u+=`(?:${D.appendTo()})`;else u+=D.appendTo();switch(this.op){case U.Op.STAR:u+="*";break;case U.Op.PLUS:u+="+";break;case U.Op.QUEST:u+="?";break;case U.Op.REPEAT:if(u+=`{${this.min}`,this.min!==this.max){if(u+=",",this.max>=0)u+=this.max}u+="}";break}if((this.flags&D0.NON_GREEDY)!==0)u+="?";break}case U.Op.CONCAT:{for(let D of this.subs)if(D.op===U.Op.ALTERNATE)u+=`(?:${D.appendTo()})`;else u+=D.appendTo();break}case U.Op.ALTERNATE:{let D="";for(let F of this.subs)u+=D,D="|",u+=F.appendTo();break}case U.Op.LITERAL:if((this.flags&D0.FOLD_CASE)!==0)u+="(?i:";for(let D of this.runes)u+=U0.escapeRune(D);if((this.flags&D0.FOLD_CASE)!==0)u+=")";break;case U.Op.ANY_CHAR_NOT_NL:u+="(?-s:.)";break;case U.Op.ANY_CHAR:u+="(?s:.)";break;case U.Op.CAPTURE:if(this.name===null||this.name.length===0)u+="(";else u+=`(?P<${this.name}>`;if(this.subs[0].op!==U.Op.EMPTY_MATCH)u+=this.subs[0].appendTo();u+=")";break;case U.Op.BEGIN_TEXT:u+="\\A";break;case U.Op.END_TEXT:if((this.flags&D0.WAS_DOLLAR)!==0)u+="(?-m:$)";else u+="\\z";break;case U.Op.BEGIN_LINE:u+="^";break;case U.Op.END_LINE:u+="$";break;case U.Op.WORD_BOUNDARY:u+="\\b";break;case U.Op.NO_WORD_BOUNDARY:u+="\\B";break;case U.Op.CHAR_CLASS:if(this.runes.length%2!==0){u+="[invalid char class]";break}if(u+="[",this.runes.length===0)u+="^\\x00-\\x{10FFFF}";else if(this.runes[0]===0&&this.runes[this.runes.length-1]===N0.MAX_RUNE){u+="^";for(let D=1;D<this.runes.length-1;D+=2){let F=this.runes[D]+1,$=this.runes[D+1]-1;if(u+=U.quoteIfHyphen(F),u+=U0.escapeRune(F),F!==$)u+="-",u+=U.quoteIfHyphen($),u+=U0.escapeRune($)}}else for(let D=0;D<this.runes.length;D+=2){let F=this.runes[D],$=this.runes[D+1];if(u+=U.quoteIfHyphen(F),u+=U0.escapeRune(F),F!==$)u+="-",u+=U.quoteIfHyphen($),u+=U0.escapeRune($)}u+="]";break;default:u+=this.op;break}return u}maxCap(){let u=0;if(this.op===U.Op.CAPTURE)u=this.cap;if(this.subs!==null)for(let D of this.subs){let F=D.maxCap();if(u<F)u=F}return u}equals(u){if(!(u!==null&&u instanceof U))return!1;if(this.op!==u.op)return!1;switch(this.op){case U.Op.END_TEXT:{if((this.flags&D0.WAS_DOLLAR)!==(u.flags&D0.WAS_DOLLAR))return!1;break}case U.Op.LITERAL:case U.Op.CHAR_CLASS:{if(this.runes===null&&u.runes===null)break;if(this.runes===null||u.runes===null)return!1;if(this.runes.length!==u.runes.length)return!1;for(let D=0;D<this.runes.length;D++)if(this.runes[D]!==u.runes[D])return!1;break}case U.Op.ALTERNATE:case U.Op.CONCAT:{if(this.subs.length!==u.subs.length)return!1;for(let D=0;D<this.subs.length;++D)if(!this.subs[D].equals(u.subs[D]))return!1;break}case U.Op.STAR:case U.Op.PLUS:case U.Op.QUEST:{if((this.flags&D0.NON_GREEDY)!==(u.flags&D0.NON_GREEDY)||!this.subs[0].equals(u.subs[0]))return!1;break}case U.Op.REPEAT:{if((this.flags&D0.NON_GREEDY)!==(u.flags&D0.NON_GREEDY)||this.min!==u.min||this.max!==u.max||!this.subs[0].equals(u.subs[0]))return!1;break}case U.Op.CAPTURE:{if(this.cap!==u.cap||(this.name===null?u.name!==null:this.name!==u.name)||!this.subs[0].equals(u.subs[0]))return!1;break}}return!0}}class dJ{constructor(){this.inst=[],this.start=0,this.numCap=2}getInst(u){return this.inst[u]}numInst(){return this.inst.length}addInst(u){this.inst.push(new V0(u))}skipNop(u){let D=this.inst[u];while(D.op===V0.NOP||D.op===V0.CAPTURE)D=this.inst[u],u=D.out;return D}prefix(){let u="",D=this.skipNop(this.start);if(!V0.isRuneOp(D.op)||D.runes.length!==1)return[D.op===V0.MATCH,u];while(V0.isRuneOp(D.op)&&D.runes.length===1&&(D.arg&D0.FOLD_CASE)===0)u+=String.fromCodePoint(D.runes[0]),D=this.skipNop(D.out);return[D.op===V0.MATCH,u]}startCond(){let u=0,D=this.start;u:for(;;){let F=this.inst[D];switch(F.op){case V0.EMPTY_WIDTH:u|=F.arg;break;case V0.FAIL:return-1;case V0.CAPTURE:case V0.NOP:break;default:break u}D=F.out}return u}next(u){let D=this.inst[u>>1];if((u&1)===0)return D.out;return D.arg}patch(u,D){while(u!==0){let F=this.inst[u>>1];if((u&1)===0)u=F.out,F.out=D;else u=F.arg,F.arg=D}}append(u,D){if(u===0)return D;if(D===0)return u;let F=u;for(;;){let B=this.next(F);if(B===0)break;F=B}let $=this.inst[F>>1];if((F&1)===0)$.out=D;else $.arg=D;return u}toString(){let u="";for(let D=0;D<this.inst.length;D++){let F=u.length;if(u+=D,D===this.start)u+="*";u+=" ".substring(u.length-F),u+=this.inst[D],u+=`
|
|
217
|
+
`}return u}}class b8{constructor(u=0,D=0,F=!1){this.i=u,this.out=D,this.nullable=F}}class R8{static ANY_RUNE_NOT_NL(){return[0,b.CODES.get(`
|
|
218
|
+
`)-1,b.CODES.get(`
|
|
219
|
+
`)+1,N0.MAX_RUNE]}static ANY_RUNE(){return[0,N0.MAX_RUNE]}static compileRegexp(u){let D=new R8,F=D.compile(u);return D.prog.patch(F.out,D.newInst(V0.MATCH).i),D.prog.start=F.i,D.prog}constructor(){this.prog=new dJ,this.newInst(V0.FAIL)}newInst(u){return this.prog.addInst(u),new b8(this.prog.numInst()-1,0,!0)}nop(){let u=this.newInst(V0.NOP);return u.out=u.i<<1,u}fail(){return new b8}cap(u){let D=this.newInst(V0.CAPTURE);if(D.out=D.i<<1,this.prog.getInst(D.i).arg=u,this.prog.numCap<u+1)this.prog.numCap=u+1;return D}cat(u,D){if(u.i===0||D.i===0)return this.fail();return this.prog.patch(u.out,D.i),new b8(u.i,D.out,u.nullable&&D.nullable)}alt(u,D){if(u.i===0)return D;if(D.i===0)return u;let F=this.newInst(V0.ALT),$=this.prog.getInst(F.i);return $.out=u.i,$.arg=D.i,F.out=this.prog.append(u.out,D.out),F.nullable=u.nullable||D.nullable,F}loop(u,D){let F=this.newInst(V0.ALT),$=this.prog.getInst(F.i);if(D)$.arg=u.i,F.out=F.i<<1;else $.out=u.i,F.out=F.i<<1|1;return this.prog.patch(u.out,F.i),F}quest(u,D){let F=this.newInst(V0.ALT),$=this.prog.getInst(F.i);if(D)$.arg=u.i,F.out=F.i<<1;else $.out=u.i,F.out=F.i<<1|1;return F.out=this.prog.append(F.out,u.out),F}star(u,D){if(u.nullable)return this.quest(this.plus(u,D),D);return this.loop(u,D)}plus(u,D){return new b8(u.i,this.loop(u,D).out,u.nullable)}empty(u){let D=this.newInst(V0.EMPTY_WIDTH);return this.prog.getInst(D.i).arg=u,D.out=D.i<<1,D}rune(u,D){let F=this.newInst(V0.RUNE);F.nullable=!1;let $=this.prog.getInst(F.i);if($.runes=u,D&=D0.FOLD_CASE,u.length!==1||N0.simpleFold(u[0])===u[0])D&=-2;if($.arg=D,F.out=F.i<<1,(D&D0.FOLD_CASE)===0&&u.length===1||u.length===2&&u[0]===u[1])$.op=V0.RUNE1;else if(u.length===2&&u[0]===0&&u[1]===N0.MAX_RUNE)$.op=V0.RUNE_ANY;else if(u.length===4&&u[0]===0&&u[1]===b.CODES.get(`
|
|
220
|
+
`)-1&&u[2]===b.CODES.get(`
|
|
221
|
+
`)+1&&u[3]===N0.MAX_RUNE)$.op=V0.RUNE_ANY_NOT_NL;return F}compile(u){switch(u.op){case U.Op.NO_MATCH:return this.fail();case U.Op.EMPTY_MATCH:return this.nop();case U.Op.LITERAL:if(u.runes.length===0)return this.nop();else{let D=null;for(let F of u.runes){let $=this.rune([F],u.flags);D=D===null?$:this.cat(D,$)}return D}case U.Op.CHAR_CLASS:return this.rune(u.runes,u.flags);case U.Op.ANY_CHAR_NOT_NL:return this.rune(R8.ANY_RUNE_NOT_NL(),0);case U.Op.ANY_CHAR:return this.rune(R8.ANY_RUNE(),0);case U.Op.BEGIN_LINE:return this.empty(U0.EMPTY_BEGIN_LINE);case U.Op.END_LINE:return this.empty(U0.EMPTY_END_LINE);case U.Op.BEGIN_TEXT:return this.empty(U0.EMPTY_BEGIN_TEXT);case U.Op.END_TEXT:return this.empty(U0.EMPTY_END_TEXT);case U.Op.WORD_BOUNDARY:return this.empty(U0.EMPTY_WORD_BOUNDARY);case U.Op.NO_WORD_BOUNDARY:return this.empty(U0.EMPTY_NO_WORD_BOUNDARY);case U.Op.CAPTURE:{let D=this.cap(u.cap<<1),F=this.compile(u.subs[0]),$=this.cap(u.cap<<1|1);return this.cat(this.cat(D,F),$)}case U.Op.STAR:return this.star(this.compile(u.subs[0]),(u.flags&D0.NON_GREEDY)!==0);case U.Op.PLUS:return this.plus(this.compile(u.subs[0]),(u.flags&D0.NON_GREEDY)!==0);case U.Op.QUEST:return this.quest(this.compile(u.subs[0]),(u.flags&D0.NON_GREEDY)!==0);case U.Op.CONCAT:if(u.subs.length===0)return this.nop();else{let D=null;for(let F of u.subs){let $=this.compile(F);D=D===null?$:this.cat(D,$)}return D}case U.Op.ALTERNATE:if(u.subs.length===0)return this.nop();else{let D=null;for(let F of u.subs){let $=this.compile(F);D=D===null?$:this.alt(D,$)}return D}default:throw new cJ("regexp: unhandled case in compile")}}}class yD{static simplify(u){if(u===null)return null;switch(u.op){case U.Op.CAPTURE:case U.Op.CONCAT:case U.Op.ALTERNATE:{let D=u;for(let F=0;F<u.subs.length;F++){let $=u.subs[F],B=yD.simplify($);if(D===u&&B!==$)D=U.fromRegexp(u),D.runes=[],D.subs=u.subs.slice(0,u.subs.length);if(D!==u)D.subs[F]=B}return D}case U.Op.STAR:case U.Op.PLUS:case U.Op.QUEST:{let D=yD.simplify(u.subs[0]);return yD.simplify1(u.op,u.flags,D,u)}case U.Op.REPEAT:{if(u.min===0&&u.max===0)return new U(U.Op.EMPTY_MATCH);let D=yD.simplify(u.subs[0]);if(u.max===-1){if(u.min===0)return yD.simplify1(U.Op.STAR,u.flags,D,null);if(u.min===1)return yD.simplify1(U.Op.PLUS,u.flags,D,null);let $=new U(U.Op.CONCAT),B=[];for(let z=0;z<u.min-1;z++)B.push(D);return B.push(yD.simplify1(U.Op.PLUS,u.flags,D,null)),$.subs=B.slice(0),$}if(u.min===1&&u.max===1)return D;let F=null;if(u.min>0){F=[];for(let $=0;$<u.min;$++)F.push(D)}if(u.max>u.min){let $=yD.simplify1(U.Op.QUEST,u.flags,D,null);for(let B=u.min+1;B<u.max;B++){let z=new U(U.Op.CONCAT);z.subs=[D,$],$=yD.simplify1(U.Op.QUEST,u.flags,z,null)}if(F===null)return $;F.push($)}if(F!==null){let $=new U(U.Op.CONCAT);return $.subs=F.slice(0),$}return new U(U.Op.NO_MATCH)}}return u}static simplify1(u,D,F,$){if(F.op===U.Op.EMPTY_MATCH)return F;if(u===F.op&&(D&D0.NON_GREEDY)===(F.flags&D0.NON_GREEDY))return F;if($!==null&&$.op===u&&($.flags&D0.NON_GREEDY)===(D&D0.NON_GREEDY)&&F===$.subs[0])return $;return $=new U(u),$.flags=D,$.subs=[F],$}}class _0{constructor(u,D){this.sign=u,this.cls=D}}var xJ=[48,57],OJ=[9,10,12,13,32,32],AJ=[48,57,65,90,95,95,97,122],wJ=new Map([["\\d",new _0(1,xJ)],["\\D",new _0(-1,xJ)],["\\s",new _0(1,OJ)],["\\S",new _0(-1,OJ)],["\\w",new _0(1,AJ)],["\\W",new _0(-1,AJ)]]),NJ=[48,57,65,90,97,122],jJ=[65,90,97,122],IJ=[0,127],EJ=[9,9,32,32],PJ=[0,31,127,127],CJ=[48,57],_J=[33,126],UJ=[97,122],iJ=[32,126],vJ=[33,47,58,64,91,96,123,126],SJ=[9,13,32,32],TJ=[65,90],yJ=[48,57,65,90,95,95,97,122],bJ=[48,57,65,70,97,102],RJ=new Map([["[:alnum:]",new _0(1,NJ)],["[:^alnum:]",new _0(-1,NJ)],["[:alpha:]",new _0(1,jJ)],["[:^alpha:]",new _0(-1,jJ)],["[:ascii:]",new _0(1,IJ)],["[:^ascii:]",new _0(-1,IJ)],["[:blank:]",new _0(1,EJ)],["[:^blank:]",new _0(-1,EJ)],["[:cntrl:]",new _0(1,PJ)],["[:^cntrl:]",new _0(-1,PJ)],["[:digit:]",new _0(1,CJ)],["[:^digit:]",new _0(-1,CJ)],["[:graph:]",new _0(1,_J)],["[:^graph:]",new _0(-1,_J)],["[:lower:]",new _0(1,UJ)],["[:^lower:]",new _0(-1,UJ)],["[:print:]",new _0(1,iJ)],["[:^print:]",new _0(-1,iJ)],["[:punct:]",new _0(1,vJ)],["[:^punct:]",new _0(-1,vJ)],["[:space:]",new _0(1,SJ)],["[:^space:]",new _0(-1,SJ)],["[:upper:]",new _0(1,TJ)],["[:^upper:]",new _0(-1,TJ)],["[:word:]",new _0(1,yJ)],["[:^word:]",new _0(-1,yJ)],["[:xdigit:]",new _0(1,bJ)],["[:^xdigit:]",new _0(-1,bJ)]]);class Cu{static charClassToString(u,D){let F="[";for(let $=0;$<D;$+=2){if($>0)F+=" ";let B=u[$],z=u[$+1];if(B===z)F+=`0x${B.toString(16)}`;else F+=`0x${B.toString(16)}-0x${z.toString(16)}`}return F+="]",F}static cmp(u,D,F,$){let B=u[D]-F;return B!==0?B:$-u[D+1]}static qsortIntPair(u,D,F){let $=((D+F)/2|0)&-2,B=u[$],z=u[$+1],Z=D,q=F;while(Z<=q){while(Z<F&&Cu.cmp(u,Z,B,z)<0)Z+=2;while(q>D&&Cu.cmp(u,q,B,z)>0)q-=2;if(Z<=q){if(Z!==q){let X=u[Z];u[Z]=u[q],u[q]=X,X=u[Z+1],u[Z+1]=u[q+1],u[q+1]=X}Z+=2,q-=2}}if(D<q)Cu.qsortIntPair(u,D,q);if(Z<F)Cu.qsortIntPair(u,Z,F)}constructor(u=U0.emptyInts()){this.r=u,this.len=u.length}toArray(){if(this.len===this.r.length)return this.r;else return this.r.slice(0,this.len)}cleanClass(){if(this.len<4)return this;Cu.qsortIntPair(this.r,0,this.len-2);let u=2;for(let D=2;D<this.len;D+=2){let F=this.r[D],$=this.r[D+1];if(F<=this.r[u-1]+1){if($>this.r[u-1])this.r[u-1]=$;continue}this.r[u]=F,this.r[u+1]=$,u+=2}return this.len=u,this}appendLiteral(u,D){return(D&D0.FOLD_CASE)!==0?this.appendFoldedRange(u,u):this.appendRange(u,u)}appendRange(u,D){if(this.len>0){for(let F=2;F<=4;F+=2)if(this.len>=F){let $=this.r[this.len-F],B=this.r[this.len-F+1];if(u<=B+1&&$<=D+1){if(u<$)this.r[this.len-F]=u;if(D>B)this.r[this.len-F+1]=D;return this}}}return this.r[this.len++]=u,this.r[this.len++]=D,this}appendFoldedRange(u,D){if(u<=N0.MIN_FOLD&&D>=N0.MAX_FOLD)return this.appendRange(u,D);if(D<N0.MIN_FOLD||u>N0.MAX_FOLD)return this.appendRange(u,D);if(u<N0.MIN_FOLD)this.appendRange(u,N0.MIN_FOLD-1),u=N0.MIN_FOLD;if(D>N0.MAX_FOLD)this.appendRange(N0.MAX_FOLD+1,D),D=N0.MAX_FOLD;for(let F=u;F<=D;F++){this.appendRange(F,F);for(let $=N0.simpleFold(F);$!==F;$=N0.simpleFold($))this.appendRange($,$)}return this}appendClass(u){for(let D=0;D<u.length;D+=2)this.appendRange(u[D],u[D+1]);return this}appendFoldedClass(u){for(let D=0;D<u.length;D+=2)this.appendFoldedRange(u[D],u[D+1]);return this}appendNegatedClass(u){let D=0;for(let F=0;F<u.length;F+=2){let $=u[F],B=u[F+1];if(D<=$-1)this.appendRange(D,$-1);D=B+1}if(D<=N0.MAX_RUNE)this.appendRange(D,N0.MAX_RUNE);return this}appendTable(u){for(let D=0;D<u.length;++D){let F=u.getLo(D),$=u.getHi(D),B=u.getStride(D);if(B===1){this.appendRange(F,$);continue}for(let z=F;z<=$;z+=B)this.appendRange(z,z)}return this}appendNegatedTable(u){let D=0;for(let F=0;F<u.length;++F){let $=u.getLo(F),B=u.getHi(F),z=u.getStride(F);if(z===1){if(D<=$-1)this.appendRange(D,$-1);D=B+1;continue}for(let Z=$;Z<=B;Z+=z){if(D<=Z-1)this.appendRange(D,Z-1);D=Z+1}}if(D<=N0.MAX_RUNE)this.appendRange(D,N0.MAX_RUNE);return this}appendTableWithSign(u,D){return D<0?this.appendNegatedTable(u):this.appendTable(u)}negateClass(){let u=0,D=0;for(let F=0;F<this.len;F+=2){let $=this.r[F],B=this.r[F+1];if(u<=$-1)this.r[D]=u,this.r[D+1]=$-1,D+=2;u=B+1}if(this.len=D,u<=N0.MAX_RUNE)this.r[this.len++]=u,this.r[this.len++]=N0.MAX_RUNE;return this}appendClassWithSign(u,D){return D<0?this.appendNegatedClass(u):this.appendClass(u)}appendGroup(u,D){let F=u.cls;if(D)F=new Cu().appendFoldedClass(F).cleanClass().toArray();return this.appendClassWithSign(F,u.sign)}toString(){return Cu.charClassToString(this.r,this.len)}}class k8{static of(u,D){return new k8(u,D)}constructor(u,D){this.first=u,this.second=D}}class oJ{constructor(u){this.str=u,this.position=0}pos(){return this.position}rewindTo(u){this.position=u}more(){return this.position<this.str.length}peek(){return this.str.codePointAt(this.position)}skip(u){this.position+=u}skipString(u){this.position+=u.length}pop(){let u=this.str.codePointAt(this.position);return this.position+=U0.charCount(u),u}lookingAt(u){return this.rest().startsWith(u)}rest(){return this.str.substring(this.position)}from(u){return this.str.substring(u,this.position)}toString(){return this.rest()}}class G0{static ERR_INTERNAL_ERROR="regexp/syntax: internal error";static ERR_INVALID_CHAR_RANGE="invalid character class range";static ERR_INVALID_ESCAPE="invalid escape sequence";static ERR_INVALID_NAMED_CAPTURE="invalid named capture";static ERR_INVALID_PERL_OP="invalid or unsupported Perl syntax";static ERR_INVALID_REPEAT_OP="invalid nested repetition operator";static ERR_INVALID_REPEAT_SIZE="invalid repeat count";static ERR_MISSING_BRACKET="missing closing ]";static ERR_MISSING_PAREN="missing closing )";static ERR_MISSING_REPEAT_ARGUMENT="missing argument to repetition operator";static ERR_TRAILING_BACKSLASH="trailing backslash at end of expression";static ERR_DUPLICATE_NAMED_CAPTURE="duplicate capture group name";static ERR_UNEXPECTED_PAREN="unexpected )";static ERR_NESTING_DEPTH="expression nests too deeply";static ERR_LARGE="expression too large";static MAX_HEIGHT=1000;static MAX_SIZE=3355443;static MAX_RUNES=33554432;static ANY_TABLE=new N(new Uint32Array([0,N0.MAX_RUNE,1]));static unicodeTable(u){if(u==="Any")return k8.of(G0.ANY_TABLE,G0.ANY_TABLE);if(O.CATEGORIES.has(u))return k8.of(O.CATEGORIES.get(u),O.FOLD_CATEGORIES.get(u));if(O.SCRIPTS.has(u))return k8.of(O.SCRIPTS.get(u),O.FOLD_SCRIPT.get(u));return null}static minFoldRune(u){if(u<N0.MIN_FOLD||u>N0.MAX_FOLD)return u;let D=u,F=u;for(u=N0.simpleFold(u);u!==F;u=N0.simpleFold(u))if(D>u)D=u;return D}static leadingRegexp(u){if(u.op===U.Op.EMPTY_MATCH)return null;if(u.op===U.Op.CONCAT&&u.subs.length>0){let D=u.subs[0];if(D.op===U.Op.EMPTY_MATCH)return null;return D}return u}static literalRegexp(u,D){let F=new U(U.Op.LITERAL);return F.flags=D,F.runes=U0.stringToRunes(u),F}static parse(u,D){return new G0(u,D).parseInternal()}static parseRepeat(u){let D=u.pos();if(!u.more()||!u.lookingAt("{"))return-1;u.skip(1);let F=G0.parseInt(u);if(F===-1)return-1;if(!u.more())return-1;let $;if(!u.lookingAt(","))$=F;else{if(u.skip(1),!u.more())return-1;if(u.lookingAt("}"))$=-1;else if(($=G0.parseInt(u))===-1)return-1}if(!u.more()||!u.lookingAt("}"))return-1;if(u.skip(1),F<0||F>1000||$===-2||$>1000||$>=0&&F>$)throw new p0(G0.ERR_INVALID_REPEAT_SIZE,u.from(D));return F<<16|$&N0.MAX_BMP}static isValidCaptureName(u){if(u.length===0)return!1;for(let D=0;D<u.length;D++){let F=u.codePointAt(D);if(F!==b.CODES.get("_")&&!U0.isalnum(F))return!1}return!0}static parseInt(u){let D=u.pos();while(u.more()&&u.peek()>=b.CODES.get("0")&&u.peek()<=b.CODES.get("9"))u.skip(1);let F=u.from(D);if(F.length===0||F.length>1&&F.codePointAt(0)===b.CODES.get("0"))return-1;if(F.length>8)return-2;return parseFloat(F,10)}static isCharClass(u){return u.op===U.Op.LITERAL&&u.runes.length===1||u.op===U.Op.CHAR_CLASS||u.op===U.Op.ANY_CHAR_NOT_NL||u.op===U.Op.ANY_CHAR}static matchRune(u,D){switch(u.op){case U.Op.LITERAL:return u.runes.length===1&&u.runes[0]===D;case U.Op.CHAR_CLASS:for(let F=0;F<u.runes.length;F+=2)if(u.runes[F]<=D&&D<=u.runes[F+1])return!0;return!1;case U.Op.ANY_CHAR_NOT_NL:return D!==b.CODES.get(`
|
|
222
|
+
`);case U.Op.ANY_CHAR:return!0}return!1}static mergeCharClass(u,D){switch(u.op){case U.Op.ANY_CHAR:break;case U.Op.ANY_CHAR_NOT_NL:if(G0.matchRune(D,b.CODES.get(`
|
|
223
|
+
`)))u.op=U.Op.ANY_CHAR;break;case U.Op.CHAR_CLASS:if(D.op===U.Op.LITERAL)u.runes=new Cu(u.runes).appendLiteral(D.runes[0],D.flags).toArray();else u.runes=new Cu(u.runes).appendClass(D.runes).toArray();break;case U.Op.LITERAL:if(D.runes[0]===u.runes[0]&&D.flags===u.flags)break;u.op=U.Op.CHAR_CLASS,u.runes=new Cu().appendLiteral(u.runes[0],u.flags).appendLiteral(D.runes[0],D.flags).toArray();break}}static parseEscape(u){let D=u.pos();if(u.skip(1),!u.more())throw new p0(G0.ERR_TRAILING_BACKSLASH);let F=u.pop();u:switch(F){case b.CODES.get("1"):case b.CODES.get("2"):case b.CODES.get("3"):case b.CODES.get("4"):case b.CODES.get("5"):case b.CODES.get("6"):case b.CODES.get("7"):if(!u.more()||u.peek()<b.CODES.get("0")||u.peek()>b.CODES.get("7"))break;case b.CODES.get("0"):{let $=F-b.CODES.get("0");for(let B=1;B<3;B++){if(!u.more()||u.peek()<b.CODES.get("0")||u.peek()>b.CODES.get("7"))break;$=$*8+u.peek()-b.CODES.get("0"),u.skip(1)}return $}case b.CODES.get("x"):{if(!u.more())break;if(F=u.pop(),F===b.CODES.get("{")){let z=0,Z=0;while(!0){if(!u.more())break u;if(F=u.pop(),F===b.CODES.get("}"))break;let q=U0.unhex(F);if(q<0)break u;if(Z=Z*16+q,Z>N0.MAX_RUNE)break u;z++}if(z===0)break u;return Z}let $=U0.unhex(F);if(!u.more())break;F=u.pop();let B=U0.unhex(F);if($<0||B<0)break;return $*16+B}case b.CODES.get("a"):return b.CODES.get("\x07");case b.CODES.get("f"):return b.CODES.get("\f");case b.CODES.get("n"):return b.CODES.get(`
|
|
224
|
+
`);case b.CODES.get("r"):return b.CODES.get("\r");case b.CODES.get("t"):return b.CODES.get("\t");case b.CODES.get("v"):return b.CODES.get("\v");default:if(F<=N0.MAX_ASCII&&!U0.isalnum(F))return F;break}throw new p0(G0.ERR_INVALID_ESCAPE,u.from(D))}static parseClassChar(u,D){if(!u.more())throw new p0(G0.ERR_MISSING_BRACKET,u.from(D));if(u.lookingAt("\\"))return G0.parseEscape(u);return u.pop()}static concatRunes(u,D){return[...u,...D]}constructor(u,D=0){this.wholeRegexp=u,this.flags=D,this.numCap=0,this.namedGroups={},this.stack=[],this.free=null,this.numRegexp=0,this.numRunes=0,this.repeats=0,this.height=null,this.size=null}newRegexp(u){let D=this.free;if(D!==null&&D.subs!==null&&D.subs.length>0)this.free=D.subs[0],D.reinit(),D.op=u;else D=new U(u),this.numRegexp+=1;return D}reuse(u){if(this.height!==null&&Object.prototype.hasOwnProperty.call(this.height,u))delete this.height[u];if(u.subs!==null&&u.subs.length>0)u.subs[0]=this.free;this.free=u}checkLimits(u){if(this.numRunes>G0.MAX_RUNES)throw new p0(G0.ERR_LARGE);this.checkSize(u),this.checkHeight(u)}checkSize(u){if(this.size===null){if(this.repeats===0)this.repeats=1;if(u.op===U.Op.REPEAT){let D=u.max;if(D===-1)D=u.min;if(D<=0)D=1;if(D>G0.MAX_SIZE/this.repeats)this.repeats=G0.MAX_SIZE;else this.repeats*=D}if(this.numRegexp<G0.MAX_SIZE/this.repeats)return;this.size={};for(let D of this.stack)this.checkSize(D)}if(this.calcSize(u,!0)>G0.MAX_SIZE)throw new p0(G0.ERR_LARGE)}calcSize(u,D=!1){if(!D){if(Object.prototype.hasOwnProperty.call(this.size,u))return this.size[u]}let F=0;switch(u.op){case U.Op.LITERAL:{F=u.runes.length;break}case U.Op.CAPTURE:case U.Op.STAR:{F=2+this.calcSize(u.subs[0]);break}case U.Op.PLUS:case U.Op.QUEST:{F=1+this.calcSize(u.subs[0]);break}case U.Op.CONCAT:{for(let $ of u.subs)F=F+this.calcSize($);break}case U.Op.ALTERNATE:{for(let $ of u.subs)F=F+this.calcSize($);if(u.subs.length>1)F=F+u.subs.length-1;break}case U.Op.REPEAT:{let $=this.calcSize(u.subs[0]);if(u.max===-1){if(u.min===0)F=2+$;else F=1+u.min*$;break}F=u.max*$+(u.max-u.min);break}}return F=Math.max(1,F),this.size[u]=F,F}checkHeight(u){if(this.numRegexp<G0.MAX_HEIGHT)return;if(this.height===null){this.height={};for(let D of this.stack)this.checkHeight(D)}if(this.calcHeight(u,!0)>G0.MAX_HEIGHT)throw new p0(G0.ERR_NESTING_DEPTH)}calcHeight(u,D=!1){if(!D){if(Object.prototype.hasOwnProperty.call(this.height,u))return this.height[u]}let F=1;for(let $ of u.subs){let B=this.calcHeight($);if(F<1+B)F=1+B}return this.height[u]=F,F}pop(){return this.stack.pop()}popToPseudo(){let u=this.stack.length,D=u;while(D>0&&!U.isPseudoOp(this.stack[D-1].op))D--;let F=this.stack.slice(D,u);return this.stack=this.stack.slice(0,D),F}push(u){if(this.numRunes+=u.runes.length,u.op===U.Op.CHAR_CLASS&&u.runes.length===2&&u.runes[0]===u.runes[1]){if(this.maybeConcat(u.runes[0],this.flags&-2))return null;u.op=U.Op.LITERAL,u.runes=[u.runes[0]],u.flags=this.flags&-2}else if(u.op===U.Op.CHAR_CLASS&&u.runes.length===4&&u.runes[0]===u.runes[1]&&u.runes[2]===u.runes[3]&&N0.simpleFold(u.runes[0])===u.runes[2]&&N0.simpleFold(u.runes[2])===u.runes[0]||u.op===U.Op.CHAR_CLASS&&u.runes.length===2&&u.runes[0]+1===u.runes[1]&&N0.simpleFold(u.runes[0])===u.runes[1]&&N0.simpleFold(u.runes[1])===u.runes[0]){if(this.maybeConcat(u.runes[0],this.flags|D0.FOLD_CASE))return null;u.op=U.Op.LITERAL,u.runes=[u.runes[0]],u.flags=this.flags|D0.FOLD_CASE}else this.maybeConcat(-1,0);return this.stack.push(u),this.checkLimits(u),u}maybeConcat(u,D){let F=this.stack.length;if(F<2)return!1;let $=this.stack[F-1],B=this.stack[F-2];if($.op!==U.Op.LITERAL||B.op!==U.Op.LITERAL||($.flags&D0.FOLD_CASE)!==(B.flags&D0.FOLD_CASE))return!1;if(B.runes=G0.concatRunes(B.runes,$.runes),u>=0)return $.runes=[u],$.flags=D,!0;return this.pop(),this.reuse($),!1}newLiteral(u,D){let F=this.newRegexp(U.Op.LITERAL);if(F.flags=D,(D&D0.FOLD_CASE)!==0)u=G0.minFoldRune(u);return F.runes=[u],F}literal(u){this.push(this.newLiteral(u,this.flags))}op(u){let D=this.newRegexp(u);return D.flags=this.flags,this.push(D)}repeat(u,D,F,$,B,z){let Z=this.flags;if((Z&D0.PERL_X)!==0){if(B.more()&&B.lookingAt("?"))B.skip(1),Z^=D0.NON_GREEDY;if(z!==-1)throw new p0(G0.ERR_INVALID_REPEAT_OP,B.from(z))}let q=this.stack.length;if(q===0)throw new p0(G0.ERR_MISSING_REPEAT_ARGUMENT,B.from($));let X=this.stack[q-1];if(U.isPseudoOp(X.op))throw new p0(G0.ERR_MISSING_REPEAT_ARGUMENT,B.from($));let Q=this.newRegexp(u);if(Q.min=D,Q.max=F,Q.flags=Z,Q.subs=[X],this.stack[q-1]=Q,this.checkLimits(Q),u===U.Op.REPEAT&&(D>=2||F>=2)&&!this.repeatIsValid(Q,1000))throw new p0(G0.ERR_INVALID_REPEAT_SIZE,B.from($))}repeatIsValid(u,D){if(u.op===U.Op.REPEAT){let F=u.max;if(F===0)return!0;if(F<0)F=u.min;if(F>D)return!1;if(F>0)D=Math.trunc(D/F)}for(let F of u.subs)if(!this.repeatIsValid(F,D))return!1;return!0}concat(){this.maybeConcat(-1,0);let u=this.popToPseudo();if(u.length===0)return this.push(this.newRegexp(U.Op.EMPTY_MATCH));return this.push(this.collapse(u,U.Op.CONCAT))}alternate(){let u=this.popToPseudo();if(u.length>0)this.cleanAlt(u[u.length-1]);if(u.length===0)return this.push(this.newRegexp(U.Op.NO_MATCH));return this.push(this.collapse(u,U.Op.ALTERNATE))}cleanAlt(u){if(u.op===U.Op.CHAR_CLASS){if(u.runes=new Cu(u.runes).cleanClass().toArray(),u.runes.length===2&&u.runes[0]===0&&u.runes[1]===N0.MAX_RUNE)u.runes=[],u.op=U.Op.ANY_CHAR;else if(u.runes.length===4&&u.runes[0]===0&&u.runes[1]===b.CODES.get(`
|
|
225
|
+
`)-1&&u.runes[2]===b.CODES.get(`
|
|
226
|
+
`)+1&&u.runes[3]===N0.MAX_RUNE)u.runes=[],u.op=U.Op.ANY_CHAR_NOT_NL}}collapse(u,D){if(u.length===1)return u[0];let F=0;for(let Z of u)F+=Z.op===D?Z.subs.length:1;let $=Array(F).fill(null),B=0;for(let Z of u)if(Z.op===D)$.splice(B,Z.subs.length,...Z.subs),B+=Z.subs.length,this.reuse(Z);else $[B++]=Z;let z=this.newRegexp(D);if(z.subs=$,D===U.Op.ALTERNATE){if(z.subs=this.factor(z.subs),z.subs.length===1){let Z=z;z=z.subs[0],this.reuse(Z)}}return z}factor(u){if(u.length<2)return u;let D=0,F=u.length,$=0,B=null,z=0,Z=0,q=0;for(let Q=0;Q<=F;Q++){let W=null,Y=0,J=0;if(Q<F){let G=u[D+Q];if(G.op===U.Op.CONCAT&&G.subs.length>0)G=G.subs[0];if(G.op===U.Op.LITERAL)W=G.runes,Y=G.runes.length,J=G.flags&D0.FOLD_CASE;if(J===Z){let K=0;while(K<z&&K<Y&&B[K]===W[K])K++;if(K>0){z=K;continue}}}if(Q===q);else if(Q===q+1)u[$++]=u[D+q];else{let G=this.newRegexp(U.Op.LITERAL);G.flags=Z,G.runes=B.slice(0,z);for(let f=q;f<Q;f++)u[D+f]=this.removeLeadingString(u[D+f],z),this.checkLimits(u[D+f]);let K=this.collapse(u.slice(D+q,D+Q),U.Op.ALTERNATE),H=this.newRegexp(U.Op.CONCAT);H.subs=[G,K],u[$++]=H}q=Q,B=W,z=Y,Z=J}F=$,D=0,q=0,$=0;let X=null;for(let Q=0;Q<=F;Q++){let W=null;if(Q<F){if(W=G0.leadingRegexp(u[D+Q]),X!==null&&X.equals(W)&&(G0.isCharClass(X)||X.op===U.Op.REPEAT&&X.min===X.max&&G0.isCharClass(X.subs[0])))continue}if(Q===q);else if(Q===q+1)u[$++]=u[D+q];else{let Y=X;for(let K=q;K<Q;K++){let H=K!==q;u[D+K]=this.removeLeadingRegexp(u[D+K],H),this.checkLimits(u[D+K])}let J=this.collapse(u.slice(D+q,D+Q),U.Op.ALTERNATE),G=this.newRegexp(U.Op.CONCAT);G.subs=[Y,J],u[$++]=G}q=Q,X=W}F=$,D=0,q=0,$=0;for(let Q=0;Q<=F;Q++){if(Q<F&&G0.isCharClass(u[D+Q]))continue;if(Q===q);else if(Q===q+1)u[$++]=u[D+q];else{let W=q;for(let J=q+1;J<Q;J++){let G=u[D+W],K=u[D+J];if(G.op<K.op||G.op===K.op&&(G.runes!==null?G.runes.length:0)<(K.runes!==null?K.runes.length:0))W=J}let Y=u[D+q];u[D+q]=u[D+W],u[D+W]=Y;for(let J=q+1;J<Q;J++)G0.mergeCharClass(u[D+q],u[D+J]),this.reuse(u[D+J]);this.cleanAlt(u[D+q]),u[$++]=u[D+q]}if(Q<F)u[$++]=u[D+Q];q=Q+1}F=$,D=0,q=0,$=0;for(let Q=0;Q<F;++Q){if(Q+1<F&&u[D+Q].op===U.Op.EMPTY_MATCH&&u[D+Q+1].op===U.Op.EMPTY_MATCH)continue;u[$++]=u[D+Q]}return F=$,D=0,u.slice(D,F)}removeLeadingString(u,D){if(u.op===U.Op.CONCAT&&u.subs.length>0){let F=this.removeLeadingString(u.subs[0],D);if(u.subs[0]=F,F.op===U.Op.EMPTY_MATCH)switch(this.reuse(F),u.subs.length){case 0:case 1:u.op=U.Op.EMPTY_MATCH,u.subs=null;break;case 2:{let $=u;u=u.subs[1],this.reuse($);break}default:u.subs=u.subs.slice(1,u.subs.length);break}return u}if(u.op===U.Op.LITERAL){if(u.runes=u.runes.slice(D,u.runes.length),u.runes.length===0)u.op=U.Op.EMPTY_MATCH}return u}removeLeadingRegexp(u,D){if(u.op===U.Op.CONCAT&&u.subs.length>0){if(D)this.reuse(u.subs[0]);switch(u.subs=u.subs.slice(1,u.subs.length),u.subs.length){case 0:{u.op=U.Op.EMPTY_MATCH,u.subs=U.emptySubs();break}case 1:{let F=u;u=u.subs[0],this.reuse(F);break}}return u}if(D)this.reuse(u);return this.newRegexp(U.Op.EMPTY_MATCH)}parseInternal(){if((this.flags&D0.LITERAL)!==0)return G0.literalRegexp(this.wholeRegexp,this.flags);let u=-1,D=-1,F=-1,$=new oJ(this.wholeRegexp);while($.more()){let z=-1;u:switch($.peek()){case b.CODES.get("("):if((this.flags&D0.PERL_X)!==0&&$.lookingAt("(?")){this.parsePerlFlags($);break}this.op(U.Op.LEFT_PAREN).cap=++this.numCap,$.skip(1);break;case b.CODES.get("|"):this.parseVerticalBar(),$.skip(1);break;case b.CODES.get(")"):this.parseRightParen(),$.skip(1);break;case b.CODES.get("^"):if((this.flags&D0.ONE_LINE)!==0)this.op(U.Op.BEGIN_TEXT);else this.op(U.Op.BEGIN_LINE);$.skip(1);break;case b.CODES.get("$"):if((this.flags&D0.ONE_LINE)!==0)this.op(U.Op.END_TEXT).flags|=D0.WAS_DOLLAR;else this.op(U.Op.END_LINE);$.skip(1);break;case b.CODES.get("."):if((this.flags&D0.DOT_NL)!==0)this.op(U.Op.ANY_CHAR);else this.op(U.Op.ANY_CHAR_NOT_NL);$.skip(1);break;case b.CODES.get("["):this.parseClass($);break;case b.CODES.get("*"):case b.CODES.get("+"):case b.CODES.get("?"):{z=$.pos();let Z=null;switch($.pop()){case b.CODES.get("*"):Z=U.Op.STAR;break;case b.CODES.get("+"):Z=U.Op.PLUS;break;case b.CODES.get("?"):Z=U.Op.QUEST;break}this.repeat(Z,D,F,z,$,u);break}case b.CODES.get("{"):{z=$.pos();let Z=G0.parseRepeat($);if(Z<0){$.rewindTo(z),this.literal($.pop());break}D=Z>>16,F=(Z&N0.MAX_BMP)<<16>>16,this.repeat(U.Op.REPEAT,D,F,z,$,u);break}case b.CODES.get("\\"):{let Z=$.pos();if($.skip(1),(this.flags&D0.PERL_X)!==0&&$.more())switch($.pop()){case b.CODES.get("A"):this.op(U.Op.BEGIN_TEXT);break u;case b.CODES.get("b"):this.op(U.Op.WORD_BOUNDARY);break u;case b.CODES.get("B"):this.op(U.Op.NO_WORD_BOUNDARY);break u;case b.CODES.get("C"):throw new p0(G0.ERR_INVALID_ESCAPE,"\\C");case b.CODES.get("Q"):{let W=$.rest(),Y=W.indexOf("\\E");if(Y>=0)W=W.substring(0,Y);$.skipString(W),$.skipString("\\E");let J=0;while(J<W.length){let G=W.codePointAt(J);this.literal(G),J+=U0.charCount(G)}break u}case b.CODES.get("z"):this.op(U.Op.END_TEXT);break u;default:$.rewindTo(Z);break}let q=this.newRegexp(U.Op.CHAR_CLASS);if(q.flags=this.flags,$.lookingAt("\\p")||$.lookingAt("\\P")){let Q=new Cu;if(this.parseUnicodeClass($,Q)){q.runes=Q.toArray(),this.push(q);break u}}let X=new Cu;if(this.parsePerlClassEscape($,X)){q.runes=X.toArray(),this.push(q);break u}$.rewindTo(Z),this.reuse(q),this.literal(G0.parseEscape($));break}default:this.literal($.pop());break}u=z}if(this.concat(),this.swapVerticalBar())this.pop();if(this.alternate(),this.stack.length!==1)throw new p0(G0.ERR_MISSING_PAREN,this.wholeRegexp);return this.stack[0].namedGroups=this.namedGroups,this.stack[0]}parsePerlFlags(u){let D=u.pos(),F=u.rest();if(F.startsWith("(?P<")||F.startsWith("(?<")){let Z=F.charAt(2)==="P"?4:3,q=F.indexOf(">");if(q<0)throw new p0(G0.ERR_INVALID_NAMED_CAPTURE,F);let X=F.substring(Z,q);if(u.skipString(X),u.skip(Z+1),!G0.isValidCaptureName(X))throw new p0(G0.ERR_INVALID_NAMED_CAPTURE,F.substring(0,q+1));let Q=this.op(U.Op.LEFT_PAREN);if(Q.cap=++this.numCap,this.namedGroups[X])throw new p0(G0.ERR_DUPLICATE_NAMED_CAPTURE,X);this.namedGroups[X]=this.numCap,Q.name=X;return}u.skip(2);let $=this.flags,B=1,z=!1;u:while(u.more()){let Z=u.pop();switch(Z){case b.CODES.get("i"):$|=D0.FOLD_CASE,z=!0;break;case b.CODES.get("m"):$&=-17,z=!0;break;case b.CODES.get("s"):$|=D0.DOT_NL,z=!0;break;case b.CODES.get("U"):$|=D0.NON_GREEDY,z=!0;break;case b.CODES.get("-"):if(B<0)break u;B=-1,$=~$,z=!1;break;case b.CODES.get(":"):case b.CODES.get(")"):if(B<0){if(!z)break u;$=~$}if(Z===b.CODES.get(":"))this.op(U.Op.LEFT_PAREN);this.flags=$;return;default:break u}}throw new p0(G0.ERR_INVALID_PERL_OP,u.from(D))}parseVerticalBar(){if(this.concat(),!this.swapVerticalBar())this.op(U.Op.VERTICAL_BAR)}swapVerticalBar(){let u=this.stack.length;if(u>=3&&this.stack[u-2].op===U.Op.VERTICAL_BAR&&G0.isCharClass(this.stack[u-1])&&G0.isCharClass(this.stack[u-3])){let D=this.stack[u-1],F=this.stack[u-3];if(D.op>F.op){let $=F;F=D,D=$,this.stack[u-3]=F}return G0.mergeCharClass(F,D),this.reuse(D),this.pop(),!0}if(u>=2){let D=this.stack[u-1],F=this.stack[u-2];if(F.op===U.Op.VERTICAL_BAR){if(u>=3)this.cleanAlt(this.stack[u-3]);return this.stack[u-2]=D,this.stack[u-1]=F,!0}}return!1}parseRightParen(){if(this.concat(),this.swapVerticalBar())this.pop();if(this.alternate(),this.stack.length<2)throw new p0(G0.ERR_UNEXPECTED_PAREN,this.wholeRegexp);let D=this.pop(),F=this.pop();if(F.op!==U.Op.LEFT_PAREN)throw new p0(G0.ERR_UNEXPECTED_PAREN,this.wholeRegexp);if(this.flags=F.flags,F.cap===0)this.push(D);else F.op=U.Op.CAPTURE,F.subs=[D],this.push(F)}parsePerlClassEscape(u,D){let F=u.pos();if((this.flags&D0.PERL_X)===0||!u.more()||u.pop()!==b.CODES.get("\\")||!u.more())return!1;u.pop();let $=u.from(F),B=wJ.has($)?wJ.get($):null;if(B===null)return!1;return D.appendGroup(B,(this.flags&D0.FOLD_CASE)!==0),!0}parseNamedClass(u,D){let F=u.rest(),$=F.indexOf(":]");if($<0)return!1;let B=F.substring(0,$+2);u.skipString(B);let z=RJ.has(B)?RJ.get(B):null;if(z===null)throw new p0(G0.ERR_INVALID_CHAR_RANGE,B);return D.appendGroup(z,(this.flags&D0.FOLD_CASE)!==0),!0}parseUnicodeClass(u,D){let F=u.pos();if((this.flags&D0.UNICODE_GROUPS)===0||!u.lookingAt("\\p")&&!u.lookingAt("\\P"))return!1;u.skip(1);let $=1,B=u.pop();if(B===b.CODES.get("P"))$=-1;if(!u.more())throw u.rewindTo(F),new p0(G0.ERR_INVALID_CHAR_RANGE,u.rest());B=u.pop();let z;if(B!==b.CODES.get("{"))z=U0.runeToString(B);else{let Q=u.rest(),W=Q.indexOf("}");if(W<0)throw u.rewindTo(F),new p0(G0.ERR_INVALID_CHAR_RANGE,u.rest());z=Q.substring(0,W),u.skipString(z),u.skip(1)}if(z.length!==0&&z.codePointAt(0)===b.CODES.get("^"))$=0-$,z=z.substring(1);let Z=G0.unicodeTable(z);if(Z===null)throw new p0(G0.ERR_INVALID_CHAR_RANGE,u.from(F));let{first:q,second:X}=Z;if((this.flags&D0.FOLD_CASE)===0||X===null)D.appendTableWithSign(q,$);else{let Q=new Cu().appendTable(q).appendTable(X).cleanClass().toArray();D.appendClassWithSign(Q,$)}return!0}parseClass(u){let D=u.pos();u.skip(1);let F=this.newRegexp(U.Op.CHAR_CLASS);F.flags=this.flags;let $=new Cu,B=1;if(u.more()&&u.lookingAt("^")){if(B=-1,u.skip(1),(this.flags&D0.CLASS_NL)===0)$.appendRange(b.CODES.get(`
|
|
227
|
+
`),b.CODES.get(`
|
|
228
|
+
`))}let z=!0;while(!u.more()||u.peek()!==b.CODES.get("]")||z){if(u.more()&&u.lookingAt("-")&&(this.flags&D0.PERL_X)===0&&!z){let Q=u.rest();if(Q==="-"||!Q.startsWith("-]"))throw u.rewindTo(D),new p0(G0.ERR_INVALID_CHAR_RANGE,u.rest())}z=!1;let Z=u.pos();if(u.lookingAt("[:")){if(this.parseNamedClass(u,$))continue;u.rewindTo(Z)}if(this.parseUnicodeClass(u,$))continue;if(this.parsePerlClassEscape(u,$))continue;u.rewindTo(Z);let q=G0.parseClassChar(u,D),X=q;if(u.more()&&u.lookingAt("-")){if(u.skip(1),u.more()&&u.lookingAt("]"))u.skip(-1);else if(X=G0.parseClassChar(u,D),X<q)throw new p0(G0.ERR_INVALID_CHAR_RANGE,u.from(Z))}if((this.flags&D0.FOLD_CASE)===0)$.appendRange(q,X);else $.appendFoldedRange(q,X)}if(u.skip(1),$.cleanClass(),B<0)$.negateClass();F.runes=$.toArray(),this.push(F)}}class sJ{constructor(u){this.value=u}get(){return this.value}set(u){this.value=u}compareAndSet(u,D){if(this.value===u)return this.value=D,!0;return!1}}class l1{static initTest(u){let D=l1.compile(u),F=new l1(D.expr,D.prog,D.numSubexp,D.longest);return F.cond=D.cond,F.prefix=D.prefix,F.prefixUTF8=D.prefixUTF8,F.prefixComplete=D.prefixComplete,F.prefixRune=D.prefixRune,F}static compile(u){return l1.compileImpl(u,D0.PERL,!1)}static compilePOSIX(u){return l1.compileImpl(u,D0.POSIX,!0)}static compileImpl(u,D,F){let $=G0.parse(u,D),B=$.maxCap();$=yD.simplify($);let z=R8.compileRegexp($),Z=new l1(u,z,B,F),[q,X]=z.prefix();if(Z.prefixComplete=q,Z.prefix=X,Z.prefixUTF8=U0.stringToUtf8ByteArray(Z.prefix),Z.prefix.length>0)Z.prefixRune=Z.prefix.codePointAt(0);return Z.namedGroups=$.namedGroups,Z}static match(u,D){return l1.compile(u).match(D)}constructor(u,D,F=0,$=0){this.expr=u,this.prog=D,this.numSubexp=F,this.longest=$,this.cond=D.startCond(),this.prefix=null,this.prefixUTF8=null,this.prefixComplete=!1,this.prefixRune=0,this.pooled=new sJ}numberOfCapturingGroups(){return this.numSubexp}numberOfInstructions(){return this.prog.numInst()}get(){let u;do u=this.pooled.get();while(u&&!this.pooled.compareAndSet(u,u.next));return u}reset(){this.pooled.set(null)}put(u,D){let F=this.pooled.get();do{if(F=this.pooled.get(),!D&&F)u=w6.fromMachine(u),D=!0;if(u.next!==F)u.next=F}while(!this.pooled.compareAndSet(F,u))}toString(){return this.expr}doExecute(u,D,F,$){let B=this.get(),z=!1;if(!B)B=w6.fromRE2(this),z=!0;else if(B.next!==null)B=w6.fromMachine(B),z=!0;B.init($);let Z=B.match(u,D,F)?B.submatches():null;return this.put(B,z),Z}match(u){return this.doExecute(zu.fromUTF16(u),0,D0.UNANCHORED,0)!==null}matchWithGroup(u,D,F,$,B){if(!(u instanceof H1))u=h8.utf16(u);return this.matchMachineInput(u,D,F,$,B)}matchMachineInput(u,D,F,$,B){if(D>F)return[!1,null];let z=u.isUTF16Encoding()?zu.fromUTF16(u.asCharSequence(),0,F):zu.fromUTF8(u.asBytes(),0,F),Z=this.doExecute(z,D,$,2*B);if(Z===null)return[!1,null];return[!0,Z]}matchUTF8(u){return this.doExecute(zu.fromUTF8(u),0,D0.UNANCHORED,0)!==null}replaceAll(u,D){return this.replaceAllFunc(u,()=>D,2*u.length+1)}replaceFirst(u,D){return this.replaceAllFunc(u,()=>D,1)}replaceAllFunc(u,D,F){let $=0,B=0,z="",Z=zu.fromUTF16(u),q=0;while(B<=u.length){let X=this.doExecute(Z,B,D0.UNANCHORED,2);if(X===null||X.length===0)break;if(z+=u.substring($,X[0]),X[1]>$||X[0]===0)z+=D(u.substring(X[0],X[1])),q++;$=X[1];let Q=Z.step(B)&7;if(B+Q>X[1])B+=Q;else if(B+1>X[1])B++;else B=X[1];if(q>=F)break}return z+=u.substring($),z}pad(u){if(u===null)return null;let D=(1+this.numSubexp)*2;if(u.length<D){let F=Array(D).fill(-1);for(let $=0;$<u.length;$++)F[$]=u[$];u=F}return u}allMatches(u,D,F=($)=>$){let $=[],B=u.endPos();if(D<0)D=B+1;let z=0,Z=0,q=-1;while(Z<D&&z<=B){let X=this.doExecute(u,z,D0.UNANCHORED,this.prog.numCap);if(X===null||X.length===0)break;let Q=!0;if(X[1]===z){if(X[0]===q)Q=!1;let W=u.step(z);if(W<0)z=B+1;else z+=W&7}else z=X[1];if(q=X[1],Q)$.push(F(this.pad(X))),Z++}return $}findUTF8(u){let D=this.doExecute(zu.fromUTF8(u),0,D0.UNANCHORED,2);if(D===null)return null;return u.slice(D[0],D[1])}findUTF8Index(u){let D=this.doExecute(zu.fromUTF8(u),0,D0.UNANCHORED,2);if(D===null)return null;return D.slice(0,2)}find(u){let D=this.doExecute(zu.fromUTF16(u),0,D0.UNANCHORED,2);if(D===null)return"";return u.substring(D[0],D[1])}findIndex(u){return this.doExecute(zu.fromUTF16(u),0,D0.UNANCHORED,2)}findUTF8Submatch(u){let D=this.doExecute(zu.fromUTF8(u),0,D0.UNANCHORED,this.prog.numCap);if(D===null)return null;let F=Array(1+this.numSubexp).fill(null);for(let $=0;$<F.length;$++)if(2*$<D.length&&D[2*$]>=0)F[$]=u.slice(D[2*$],D[2*$+1]);return F}findUTF8SubmatchIndex(u){return this.pad(this.doExecute(zu.fromUTF8(u),0,D0.UNANCHORED,this.prog.numCap))}findSubmatch(u){let D=this.doExecute(zu.fromUTF16(u),0,D0.UNANCHORED,this.prog.numCap);if(D===null)return null;let F=Array(1+this.numSubexp).fill(null);for(let $=0;$<F.length;$++)if(2*$<D.length&&D[2*$]>=0)F[$]=u.substring(D[2*$],D[2*$+1]);return F}findSubmatchIndex(u){return this.pad(this.doExecute(zu.fromUTF16(u),0,D0.UNANCHORED,this.prog.numCap))}findAllUTF8(u,D){let F=this.allMatches(zu.fromUTF8(u),D,($)=>u.slice($[0],$[1]));if(F.length===0)return null;return F}findAllUTF8Index(u,D){let F=this.allMatches(zu.fromUTF8(u),D,($)=>$.slice(0,2));if(F.length===0)return null;return F}findAll(u,D){let F=this.allMatches(zu.fromUTF16(u),D,($)=>u.substring($[0],$[1]));if(F.length===0)return null;return F}findAllIndex(u,D){let F=this.allMatches(zu.fromUTF16(u),D,($)=>$.slice(0,2));if(F.length===0)return null;return F}findAllUTF8Submatch(u,D){let F=this.allMatches(zu.fromUTF8(u),D,($)=>{let B=Array($.length/2|0).fill(null);for(let z=0;z<B.length;z++)if($[2*z]>=0)B[z]=u.slice($[2*z],$[2*z+1]);return B});if(F.length===0)return null;return F}findAllUTF8SubmatchIndex(u,D){let F=this.allMatches(zu.fromUTF8(u),D);if(F.length===0)return null;return F}findAllSubmatch(u,D){let F=this.allMatches(zu.fromUTF16(u),D,($)=>{let B=Array($.length/2|0).fill(null);for(let z=0;z<B.length;z++)if($[2*z]>=0)B[z]=u.substring($[2*z],$[2*z+1]);return B});if(F.length===0)return null;return F}findAllSubmatchIndex(u,D){let F=this.allMatches(zu.fromUTF16(u),D);if(F.length===0)return null;return F}}class CF{static isUpperCaseAlpha(u){return"A"<=u&&u<="Z"}static isHexadecimal(u){return"0"<=u&&u<="9"||"A"<=u&&u<="F"||"a"<=u&&u<="f"}static getUtf8CharSize(u){let D=u.charCodeAt(0);if(D<128)return 1;if(D<2048)return 2;if(D<65536)return 3;return 4}static translate(u){if(typeof u!=="string")return u;let D="",F=!1,$=u.length;if($===0)D="(?:)",F=!0;let B=0;while(B<$){let z=u[B];if(z==="\\"){if(B+1<$)switch(z=u[B+1],z){case"\\":{D+="\\\\",B+=2;continue}case"c":{if(B+2<$){let q=u[B+2];if(CF.isUpperCaseAlpha(q)){D+="\\x",D+=(q.charCodeAt(0)-64>>4).toString(16).toUpperCase(),D+=(q.charCodeAt(0)-64&15).toString(16).toUpperCase(),B+=3,F=!0;continue}}D+="\\c",B+=2;continue}case"u":{if(B+2<$){let q=u[B+2];if(CF.isHexadecimal(q)){D+="\\x{"+q,B+=3;for(let X=0;X<3&&B<$;++B,++X){if(q=u[B],!CF.isHexadecimal(q))break;D+=q}D+="}",F=!0;continue}else if(q==="{"){D+="\\x",B+=2,F=!0;continue}}D+="\\u",B+=2;continue}default:{D+="\\";let q=CF.getUtf8CharSize(z);D+=u.substring(B+1,B+1+q),B+=q+1;continue}}}else if(z==="/"){D+="\\/",B+=1,F=!0;continue}else if(z==="("&&B+2<$&&u[B+1]==="?"&&u[B+2]==="<"){if(B+3>=$||u[B+3]!=="="&&u[B+3]!=="!"){D+="(?P<",B+=3,F=!0;continue}}let Z=CF.getUtf8CharSize(z);D+=u.substring(B,B+Z),B+=Z}return F?D:u}}class Du{static CASE_INSENSITIVE=1;static DOTALL=2;static MULTILINE=4;static DISABLE_UNICODE_GROUPS=8;static LONGEST_MATCH=16;static quote(u){return U0.quoteMeta(u)}static translateRegExp(u){return CF.translate(u)}static compile(u,D=0){let F=u;if((D&Du.CASE_INSENSITIVE)!==0)F=`(?i)${F}`;if((D&Du.DOTALL)!==0)F=`(?s)${F}`;if((D&Du.MULTILINE)!==0)F=`(?m)${F}`;if((D&~(Du.MULTILINE|Du.DOTALL|Du.CASE_INSENSITIVE|Du.DISABLE_UNICODE_GROUPS|Du.LONGEST_MATCH))!==0)throw new mJ("Flags should only be a combination of MULTILINE, DOTALL, CASE_INSENSITIVE, DISABLE_UNICODE_GROUPS, LONGEST_MATCH");let $=D0.PERL;if((D&Du.DISABLE_UNICODE_GROUPS)!==0)$&=-129;let B=new Du(u,D);return B.re2Input=l1.compileImpl(F,$,(D&Du.LONGEST_MATCH)!==0),B}static matches(u,D){return Du.compile(u).matcher(D).matches()}static initTest(u,D,F){if(u==null)throw Error("pattern is null");if(F==null)throw Error("re2 is null");let $=new Du(u,D);return $.re2Input=F,$}constructor(u,D){this.patternInput=u,this.flagsInput=D}reset(){this.re2Input.reset()}flags(){return this.flagsInput}pattern(){return this.patternInput}re2(){return this.re2Input}matches(u){return this.matcher(u).matches()}matcher(u){if(Array.isArray(u))u=h8.utf8(u);return new nJ(this,u)}split(u,D=0){let F=this.matcher(u),$=[],B=0,z=0;while(F.find()){if(z===0&&F.end()===0){z=F.end();continue}if(D>0&&$.length===D-1)break;if(z===F.start()){if(D===0){B+=1,z=F.end();continue}}else while(B>0)$.push(""),B-=1;$.push(F.substring(z,F.start())),z=F.end()}if(D===0&&z!==F.inputLength()){while(B>0)$.push(""),B-=1;$.push(F.substring(z,F.inputLength()))}if(D!==0||$.length===0)$.push(F.substring(z,F.inputLength()));return $}toString(){return this.patternInput}programSize(){return this.re2Input.numberOfInstructions()}groupCount(){return this.re2Input.numberOfCapturingGroups()}namedGroups(){return this.re2Input.namedGroups}equals(u){if(this===u)return!0;if(u===null||this.constructor!==u.constructor)return!1;return this.flagsInput===u.flagsInput&&this.patternInput===u.patternInput}}var uG=M0(Q6(),1);import m8,{AssertionError as YR}from"assert";var F2=M0(tJ(),1);var JR=11,DG=(u,D,F,$,B)=>{m8(B<JR,S`{blueBright ${D}}: circular dependency detected in \`extends\``),B++,F.extends=typeof F.extends==="string"?[F.extends]:F.extends,F.extends=F.extends??[];for(let z of F.extends){let Z=u[z];m8(Z!=null,S`{blueBright ${z}} is unspecified, used by {blueBright ${D}} extends`),DG(u,z,Z,$,B),$.push(Z)}return $};function W9(u){for(let[D,F]of Object.entries(u)){if(LD.illegalJobNames.has(D))continue;if(!P.isObject(F))continue;let $=DG(u,D,F,[],0);u[D]=uG.default({},...$,F)}for(let[D,F]of Object.entries(u)){if(LD.illegalJobNames.has(D))continue;if(!P.isObject(F))continue;delete F.extends}}function n8(u,D){for(let[F,$]of Object.entries(D||{})){if($?.referenceData)if(Object.keys($).length>1)D[F]={...eJ(u,$.referenceData),...D[F]},delete D[F].referenceData;else D[F]=eJ(u,$.referenceData);else if(typeof $==="object")n8(u,$);if(GR(D))throw new YR({message:`!reference circular chain detected [${$.referenceData}]`})}}var eJ=(u,D)=>{let F=u;return D.forEach(($)=>{m8(F[$]!=null,`!reference [${D.join(", ")}] is undefined`),F=F[$]}),F};function GR(u){try{JSON.stringify(u)}catch(D){if(D instanceof TypeError&&(D.message.startsWith("Converting circular structure")||D.message.includes("cyclic structures")))return!0}return!1}function Y9(u){let D=["image","services","cache","before_script","after_script"];u.default=u.default??{};for(let F of D)if(u[F]!==void 0)u.default[F]=u[F],delete u[F]}function J9(u){OR(u);for(let[D,F]of Object.entries(u)){if(LD.illegalJobNames.has(D)||D.startsWith("."))continue;KR(D,u),fR(D,u),LR(D,u),xR(D,u),F.after_script=typeof F.after_script==="string"&&F.after_script!==""?[F.after_script]:F.after_script,F.before_script=typeof F.before_script==="string"&&F.before_script!==""?[F.before_script]:F.before_script,F.script=typeof F.script==="string"&&F.script!==""?[F.script]:F.script}}function $2(u){let D={job:u.job??u,artifacts:u.artifacts??!0,...u.pipeline?{pipeline:u.pipeline}:{},...u.project?{project:u.project}:{},...u.ref?{ref:u.ref}:{},...u.optional?{optional:u.optional}:{}};if(!u.project&&!u.pipeline&&u.optional===void 0)D.optional=!1;return D}function KR(u,D){let F=D[u];if(!F.needs)return;for(let[$,B]of Object.entries(F.needs))F.needs[$]=$2(B)}function HR(u){return{key:u.key,paths:u.paths,policy:u.policy??"pull-push",when:u.when??"on_success"}}function fR(u,D){let F=D[u],$=F.cache;if(!$)return;F.cache=Array.isArray($)?$:[$];for(let[B,z]of Object.entries(F.cache)){if(z.key?.files instanceof Array)m8(z.key.files.length===1||z.key.files.length===2,`cache:key:files should be an array of one or two file paths. Got ${z.key.files.length}`);F.cache[B]=HR(z)}F.cache=F.cache.filter((B)=>B.paths?.length!==void 0)}function VR(u){return{name:typeof u==="string"?u:u.name,entrypoint:u.entrypoint,command:u.command,alias:u.alias,variables:u.variables}}function LR(u,D){let F=D[u],$=F.services;if(!$)return;F.services=Array.isArray($)?$:[$];for(let[B,z]of Object.entries(F.services))F.services[B]=VR(z)}function MR(u){if(u==null)return u;return{name:typeof u==="string"?u:u.name,entrypoint:u.entrypoint,...u.docker?.user?{docker:{user:u.docker?.user}}:{}}}function xR(u,D){let F=D[u];if(!F.image)return;F.image=MR(F.image)}function G9(u){for(let[D,F]of Object.entries(u)){if(F.inherit?.default===!1)continue;if(LD.illegalJobNames.has(D)||D.startsWith("."))continue;let $=Array.isArray(F.inherit?.default)?F.inherit.default:["artifacts","cache","services","image","before_script","after_script"];for(let B of $)if(u.default[B]!==void 0)F[B]=F[B]??u.default[B]}}function OR(u){for(let[D,F]of Object.entries(u.variables??{}))u.variables[D]=P.normalizeVariables(F)}function K9(u){F2.traverse(u,({parent:D,key:F,value:$,meta:B})=>{if(D!=null&&F!=null&&Array.isArray($))m8(!$.flat(9).some(Array.isArray),S`This Gitlab CI configuration is invalid: {blueBright ${B.nodePath}} config should be string or a nested array of strings up to 10 level deep`)},{cycleHandling:!0}),F2.traverse(u,({parent:D,key:F,value:$})=>{if(D!=null&&F!=null&&Array.isArray($))D[F]=$.flat(9)},{cycleHandling:!1})}var s1=M0(du(),1),bB=M0(qG(),1),wx=M0(GG(),1),y6=M0(j9(),1);import Z4 from"assert";import P2,{AssertionError as uH}from"assert";class d1{user={GITLAB_USER_LOGIN:"local",GITLAB_USER_EMAIL:"local@gitlab.com",GITLAB_USER_NAME:"Bob Local",GITLAB_USER_ID:"1000"};branches={default:"main"};remote={schema:"git",port:"22",host:"gitlab.com",group:"fallback.group",project:"fallback.project"};commit={REF_NAME:"main",SHA:"0000000000000000000000000000000000000000",SHORT_SHA:"00000000",TIMESTAMP:new Date().toISOString().split(".")[0]+"Z"};static async init(u,D){let F=new d1,$=[];return $.push(F.initCommitData(u,D)),$.push(F.initRemoteData(u,D)),$.push(F.initUserData(u,D)),$.push(F.initBranchData(u,D)),await Promise.all($),F}async initCommitData(u,D){let F=[],$=P.spawn(["git","rev-parse","--abbrev-ref","HEAD"],u);F.push($.then(({stdout:z})=>{this.commit.REF_NAME=z.trimEnd()}));let B=P.spawn(["git","rev-parse","HEAD"],u);F.push(B.then(({stdout:z})=>{this.commit.SHA=z.trimEnd()}));try{await Promise.all(F)}catch(z){if(z instanceof uH)return D.stderr(S`{yellow ${z.message}}\n`);D.stderr(S`{yellow Using fallback git commit data}\n`),D.stderr(S`{yellow ${z.message}\n}`)}}async initBranchData(u,D){try{let{stdout:F}=await P.spawn(["git","symbolic-ref","--short","refs/remotes/origin/HEAD"],u);this.branches.default=F.replace("origin/","")}catch(F){if(F.stderr==="fatal: ref refs/remotes/origin/HEAD is not a symbolic ref")D.stderr(S`{yellow Unable to retrieve default remote branch, falling back to \`${this.branches.default}\`. The default remote branch can be set via \`git remote set-head origin <default_branch>\`\n}`),D.stderr(S`{yellow ${F.message}\n}`);else D.stderr(S`{yellow Unable to retrieve default remote branch, falling back to \`${this.branches.default}\`.\n}`),D.stderr(S`{yellow ${F.message}\n}`)}}static changedFiles(u,D){return P.syncSpawn(["git","diff","--name-only",u],D).stdout.split(`
|
|
229
|
+
`)}async initRemoteData(u,D){try{let F,$;try{$=(await P.spawn(["git","remote","get-url","gcl-origin"],u)).stdout}catch{$=(await P.spawn(["git","remote","get-url","origin"],u)).stdout}let B=$.replace(/\/$/,"").replace(/\.git$/,"");if(B.startsWith("http")){F=/(?<schema>https?):\/\/(?:([^:]+):([^@]+)@)?(?<host>[^/:]+):?(?<port>\d+)?\/(?<group>\S+)\/(?<project>\S+)/.exec(B),P2(F?.groups!=null,"git remote get-url origin didn't provide valid matches");let z="443";if(F.groups.schema==="https")z=F.groups.port??"443";else if(F.groups.schema==="http")z=F.groups.port??"80";this.remote.host=F.groups.host,this.remote.group=F.groups.group,this.remote.project=F.groups.project,this.remote.schema=F.groups.schema,this.remote.port=z}else if(B.startsWith("ssh://"))F=/(?<schema>ssh):\/\/(\w+)@(?<host>[^/:]+):?(?<port>\d+)?\/(?<group>\S+)\/(?<project>\S+)/.exec(B),P2(F?.groups!=null,"git remote get-url origin didn't provide valid matches"),this.remote.host=F.groups.host,this.remote.group=F.groups.group,this.remote.project=F.groups.project,this.remote.schema=F.groups.schema,this.remote.port=F.groups.port??"22";else{F=/(?<username>\S+)@(?<host>[^:]+):(?<group>\S+)\/(?<project>\S+)/.exec(B),P2(F?.groups!=null,"git remote get-url origin didn't provide valid matches");let{stdout:z}=await P.spawn(["ssh","-G",`${F.groups.username}@${F.groups.host}`]),Z=z.split(`
|
|
230
|
+
`).filter((q)=>q.startsWith("port "))[0].split(" ")[1];this.remote.host=F.groups.host,this.remote.group=F.groups.group,this.remote.project=F.groups.project,this.remote.schema="git",this.remote.port=Z}}catch(F){if(F instanceof uH){D.stderr(S`{yellow ${F.message}}\n`);return}D.stderr(S`{yellow Using fallback git remote data}\n`),D.stderr(S`{yellow ${F.message}\n}`)}}async initUserData(u,D){let F=[],$=P.spawn(["git","config","user.name"],u).then(({stdout:Z})=>{this.user.GITLAB_USER_NAME=Z.trimEnd()}).catch((Z)=>{D.stderr(S`{yellow Using fallback git user.name}\n`),D.stderr(S`{yellow ${Z.message}\n}`)});F.push($);let B=P.spawn(["git","config","user.email"],u).then(({stdout:Z})=>{let q=Z.trimEnd();this.user.GITLAB_USER_EMAIL=q,this.user.GITLAB_USER_LOGIN=q.replace(/@.*/,"")}).catch((Z)=>{D.stderr(S`{yellow Using fallback git user.email}\n`),D.stderr(S`{yellow ${Z.message}\n}`)});F.push(B);let z=P.spawn(["id","-u"],u).then(({stdout:Z})=>{this.user.GITLAB_USER_ID=Z.trimEnd()}).catch((Z)=>{D.stderr(S`{yellow Using fallback linux user id}\n`),D.stderr(S`{yellow ${Z.message}\n}`)});F.push(z),await Promise.all(F)}}import vB from"node:process";import SB from"node:fs";import L1 from"node:path";import{Readable as jd}from"node:stream";import{on as jh,once as DH}from"node:events";import{PassThrough as Ih,getDefaultHighWaterMark as Eh}from"node:stream";import{finished as BH}from"node:stream/promises";function _2(u){if(!Array.isArray(u))throw TypeError(`Expected an array, got \`${typeof u}\`.`);for(let B of u)C2(B);let D=u.some(({readableObjectMode:B})=>B),F=Ph(u,D),$=new zH({objectMode:D,writableHighWaterMark:F,readableHighWaterMark:F});for(let B of u)$.add(B);return $}var Ph=(u,D)=>{if(u.length===0)return Eh(D);let F=u.filter(({readableObjectMode:$})=>$===D).map(({readableHighWaterMark:$})=>$);return Math.max(...F)};class zH extends Ih{#u=new Set([]);#B=new Set([]);#z=new Set([]);#F;#$=Symbol("unpipe");#D=new WeakMap;add(u){if(C2(u),this.#u.has(u))return;this.#u.add(u),this.#F??=Ch(this,this.#u,this.#$);let D=ih({passThroughStream:this,stream:u,streams:this.#u,ended:this.#B,aborted:this.#z,onFinished:this.#F,unpipeEvent:this.#$});this.#D.set(u,D),u.pipe(this,{end:!1})}async remove(u){if(C2(u),!this.#u.has(u))return!1;let D=this.#D.get(u);if(D===void 0)return!1;return this.#D.delete(u),u.unpipe(this),await D,!0}}var Ch=async(u,D,F)=>{I9(u,FH);let $=new AbortController;try{await Promise.race([_h(u,$),Uh(u,D,F,$)])}finally{$.abort(),I9(u,-FH)}},_h=async(u,{signal:D})=>{try{await BH(u,{signal:D,cleanup:!0})}catch(F){throw ZH(u,F),F}},Uh=async(u,D,F,{signal:$})=>{for await(let[B]of jh(u,"unpipe",{signal:$}))if(D.has(B))B.emit(F)},C2=(u)=>{if(typeof u?.pipe!=="function")throw TypeError(`Expected a readable stream, got: \`${typeof u}\`.`)},ih=async({passThroughStream:u,stream:D,streams:F,ended:$,aborted:B,onFinished:z,unpipeEvent:Z})=>{I9(u,$H);let q=new AbortController;try{await Promise.race([vh(z,D,q),Sh({passThroughStream:u,stream:D,streams:F,ended:$,aborted:B,controller:q}),Th({stream:D,streams:F,ended:$,aborted:B,unpipeEvent:Z,controller:q})])}finally{q.abort(),I9(u,-$H)}if(F.size>0&&F.size===$.size+B.size)if($.size===0&&B.size>0)U2(u);else yh(u)},vh=async(u,D,{signal:F})=>{try{if(await u,!F.aborted)U2(D)}catch($){if(!F.aborted)ZH(D,$)}},Sh=async({passThroughStream:u,stream:D,streams:F,ended:$,aborted:B,controller:{signal:z}})=>{try{if(await BH(D,{signal:z,cleanup:!0,readable:!0,writable:!1}),F.has(D))$.add(D)}catch(Z){if(z.aborted||!F.has(D))return;if(qH(Z))B.add(D);else XH(u,Z)}},Th=async({stream:u,streams:D,ended:F,aborted:$,unpipeEvent:B,controller:{signal:z}})=>{if(await DH(u,B,{signal:z}),!u.readable)return DH(z,"abort",{signal:z});D.delete(u),F.delete(u),$.delete(u)},yh=(u)=>{if(u.writable)u.end()},ZH=(u,D)=>{if(qH(D))U2(u);else XH(u,D)},qH=(u)=>u?.code==="ERR_STREAM_PREMATURE_CLOSE",U2=(u)=>{if(u.readable||u.writable)u.destroy()},XH=(u,D)=>{if(!u.destroyed)u.once("error",bh),u.destroy(D)},bh=()=>{},I9=(u,D)=>{let F=u.getMaxListeners();if(F!==0&&F!==Number.POSITIVE_INFINITY)u.setMaxListeners(F+D)},FH=2,$H=1;var z4=M0(wB(),1);import{promisify as Cg}from"node:util";import{execFile as _g,execFileSync as LZ0}from"node:child_process";import{fileURLToPath as Ug}from"node:url";var xZ0=Cg(_g);function F4(u){return u instanceof URL?Ug(u):u}var iB=M0(wB(),1),ux=M0(oM(),1);import Zd from"node:process";import qd from"node:fs";import Xd from"node:fs/promises";import hu from"node:path";import EB from"node:path";function B4(u,D){let F=EB.relative(D,u);return Boolean(F&&F!==".."&&!F.startsWith(`..${EB.sep}`)&&F!==EB.resolve(u))}function s9(u){if(u.startsWith("\\\\?\\"))return u;return u.replace(/\\/g,"/")}import sM from"node:fs";import xD from"node:path";import{promisify as tg}from"node:util";var kD=(u)=>u[0]==="!",rM=(u)=>u.startsWith("/")?u.slice(1):u,au=(u,D)=>{let F=u?.[D];return typeof F==="function"?F.bind(u):void 0},r9=(u,D)=>{let F=u?.[D];if(typeof F!=="function")return;return tg(F.bind(u))},PB=(u)=>{if(!u.endsWith("/"))return u;let D=u.replace(/\/+$/u,"");if(!D)return"/**";if(D==="**")return"**/**";let F=D.startsWith("/"),B=(F?D.slice(1):D).includes("/");return`${!F&&!B&&!D.startsWith("**/")?"**/":""}${D}/**`},eg=(u)=>{let F=(kD(u)?u.slice(1):u).match(/^(\.\.\/)+/);return F?F[0]:""},a9=(u,D)=>{if(u.length===0||D.length===0)return D;let F=u.map((z)=>eg(z)),$=F[0];if(!$)return D;if(!F.every((z)=>z===$))return D;return D.map((z)=>{if(z.startsWith("**/")&&!z.startsWith("../"))return $+z;return z})},ud=(u)=>au(u?.promises,"stat")??au(sM.promises,"stat"),Dd=(u)=>{if(u)return au(u,"statSync");return au(sM,"statSync")},aM=(u)=>Boolean(u?.isDirectory?.()||u?.isFile?.()),CB=(u,D)=>{let F=[],$=u;F.push($);while($!==D){let B=xD.dirname($);if(B===$)break;$=B,F.push($)}return F},Fd=async(u,D)=>{for(let F of u){let $=xD.join(F,".git");try{let B=await D($);if(aM(B))return F}catch{}}return},$d=(u,D)=>{let F=Dd(D);if(!F)return;let $=xD.resolve(u),{root:B}=xD.parse($),z=CB($,B);for(let Z of z){let q=xD.join(Z,".git");try{let X=F(q);if(aM(X))return Z}catch{}}return},_B=(u,D)=>{if(typeof u!=="string")throw TypeError("cwd must be a string");return $d(u,D)},Bd=async(u,D)=>{let F=ud(D);if(!F)return _B(u,D);let $=xD.resolve(u),{root:B}=xD.parse($),z=CB($,B);return Fd(z,F)},tM=async(u,D)=>{if(typeof u!=="string")throw TypeError("cwd must be a string");return Bd(u,D)},zd=(u,D)=>{let F=xD.resolve(u),$=xD.resolve(D);return $===F||B4($,F)},eM=(u,D)=>{if(u&&typeof u!=="string")throw TypeError("gitRoot must be a string or undefined");if(typeof D!=="string")throw TypeError("cwd must be a string");if(!u)return[];if(!zd(u,D))return[];return[...CB(xD.resolve(D),xD.resolve(u))].reverse().map(($)=>xD.join($,".gitignore"))},UB=(u,D,F)=>{if(D)return[];let $=[],B=!1;for(let z of u){if(kD(z)){B=!0;break}$.push(F(z))}return B?[]:$};var Qd=["**/node_modules","**/flow-typed","**/coverage","**/.git"],Wd={absolute:!0,dot:!0},Dx="**/.gitignore",Yd=(u)=>au(u?.promises,"readFile")??au(Xd,"readFile")??r9(u,"readFile"),Jd=(u)=>au(u,"readFileSync")??au(qd,"readFileSync"),Fx=(u,D)=>{if(!u)return Boolean(D);if(u.code==="ENOENT"||u.code==="ENOTDIR")return!0;return Boolean(D)},$x=(u,D)=>{if(D instanceof Error)return D.message=`Failed to read ignore file at ${u}: ${D.message}`,D;return Error(`Failed to read ignore file at ${u}: ${String(D)}`)},Gd=(u,D,F)=>{try{let $=D(u,"utf8");return{filePath:u,content:$}}catch($){if(Fx($,F))return;throw $x(u,$)}},Kd=async(u,D,F)=>{return(await Promise.all(u.map(async(B)=>{try{let z=await D(B,"utf8");return{filePath:B,content:z}}catch(z){if(Fx(z,F))return;throw $x(B,z)}}))).filter(Boolean)},Hd=(u,D,F)=>u.map(($)=>Gd($,D,F)).filter(Boolean),fd=(u)=>{let D=new Set;return u.filter((F)=>{if(D.has(F))return!1;return D.add(F),!0})},Bx=(u,D,F)=>u(D,{...F,...Wd}),Vd=(u,D)=>u?eM(u,D.cwd):[],zx=(u,D,F)=>fd([...Vd(u,D),...F]),Zx=(u,D,F)=>{let $=F||D.cwd,B=Nd(u,$);return{patterns:B,predicate:Od(B,D.cwd,$),usingGitRoot:Boolean(F&&F!==D.cwd)}},Ld=(u,D)=>{if(!D)return u;let F=kD(u),$=F?u.slice(1):u,B=$.indexOf("/"),z=B!==-1&&B!==$.length-1,Z;if(!z)Z=hu.posix.join(D,"**",$);else if($.startsWith("/"))Z=hu.posix.join(D,$.slice(1));else Z=hu.posix.join(D,$);return F?"!"+Z:Z},Md=(u,D)=>{let F=s9(hu.relative(D,hu.dirname(u.filePath)));return u.content.split(/\r?\n/).filter(($)=>$&&!$.startsWith("#")).map(($)=>Ld($,F))},xd=(u,D)=>{if(hu.isAbsolute(u)){let F=hu.relative(D,u);if(F&&!B4(u,D))return;return F}if(u.startsWith("./"))return u.slice(2);if(u.startsWith("../"))return;return u},Od=(u,D,F)=>{let $=ux.default().add(u),B=hu.normalize(hu.resolve(D)),z=hu.normalize(hu.resolve(F));return(Z)=>{if(Z=F4(Z),hu.normalize(hu.resolve(Z))===B)return!1;let X=xd(Z,z);if(X===void 0)return!1;return X?$.ignores(s9(X)):!1}},qx=(u={})=>{let D=u.ignore?Array.isArray(u.ignore)?u.ignore:[u.ignore]:[],F=F4(u.cwd)??Zd.cwd(),$=typeof u.deep==="number"?Math.max(0,u.deep)+1:Number.POSITIVE_INFINITY;return{cwd:F,suppressErrors:u.suppressErrors??!1,deep:$,ignore:[...D,...Qd],followSymbolicLinks:u.followSymbolicLinks??!0,concurrency:u.concurrency,throwErrorOnBrokenSymbolicLink:u.throwErrorOnBrokenSymbolicLink??!1,fs:u.fs}},Ad=async(u,D,F)=>{let $=qx(D),B=await Bx(iB.default,u,$),z=F?await tM($.cwd,$.fs):void 0,Z=zx(z,$,B),q=Yd($.fs);return{files:await Kd(Z,q,$.suppressErrors),normalizedOptions:$,gitRoot:z}},wd=(u,D,F)=>{let $=qx(D),B=Bx(iB.default.sync,u,$),z=F?_B($.cwd,$.fs):void 0,Z=zx(z,$,B),q=Jd($.fs);return{files:Hd(Z,q,$.suppressErrors),normalizedOptions:$,gitRoot:z}};var Nd=(u,D)=>u.flatMap((F)=>Md(F,D)),Xx=async(u,D,F=!1)=>{let{files:$,normalizedOptions:B,gitRoot:z}=await Ad(u,D,F);return Zx($,B,z)},Qx=(u,D,F=!1)=>{let{files:$,normalizedOptions:B,gitRoot:z}=wd(u,D,F);return Zx($,B,z)};var Id=(u)=>{if(u.some((D)=>typeof D!=="string"))throw TypeError("Patterns must be a string or an array of strings")},Ed=(u)=>au(u?.promises,"stat")??au(SB.promises,"stat")??r9(u,"stat"),Pd=(u)=>au(u,"statSync")??au(SB,"statSync"),Cd=async(u,D)=>{try{return(await Ed(D)(u)).isDirectory()}catch{return!1}},_d=(u,D)=>{try{return Pd(D)(u).isDirectory()}catch{return!1}},Jx=(u,D)=>{let F=kD(u)?u.slice(1):u;return L1.isAbsolute(F)?F:L1.join(D,F)},Gx=(u)=>{let D=u?.match(/\*\*\/([^/]+)$/);if(!D)return!1;let F=D[1],$=/[*?[\]{}]/.test(F),B=L1.extname(F)&&!F.startsWith(".");return!$&&!B},t9=({directoryPath:u,files:D,extensions:F})=>{let $=F?.length>0?`.${F.length>1?`{${F.join(",")}}`:F[0]}`:"";return D?D.map((B)=>L1.posix.join(u,`**/${L1.extname(B)?B:`${B}${$}`}`)):[L1.posix.join(u,`**${$?`/*${$}`:""}`)]},Wx=async(u,{cwd:D=vB.cwd(),files:F,extensions:$,fs:B}={})=>{return(await Promise.all(u.map(async(Z)=>{let q=kD(Z)?Z.slice(1):Z;if(Gx(q))return t9({directoryPath:Z,files:F,extensions:$});let X=Jx(Z,D);return await Cd(X,B)?t9({directoryPath:Z,files:F,extensions:$}):Z}))).flat()},Yx=(u,{cwd:D=vB.cwd(),files:F,extensions:$,fs:B}={})=>u.flatMap((z)=>{let Z=kD(z)?z.slice(1):z;if(Gx(Z))return t9({directoryPath:z,files:F,extensions:$});let q=Jx(z,D);return _d(q,B)?t9({directoryPath:z,files:F,extensions:$}):z}),TB=(u)=>{return u=[...new Set([u].flat())],Id(u),u},Ud=(u,D=SB)=>{if(!u||!D.statSync)return;let F;try{F=D.statSync(u)}catch{return}if(!F.isDirectory())throw Error(`The \`cwd\` option must be a path to a directory, got: ${u}`)},Kx=(u={})=>{let D=u.ignore?Array.isArray(u.ignore)?u.ignore:[u.ignore]:[];return u={...u,ignore:D,expandDirectories:u.expandDirectories??!0,cwd:F4(u.cwd)},Ud(u.cwd,u.fs),u},Hx=(u)=>async(D,F)=>u(TB(D),Kx(F)),u5=(u)=>(D,F)=>u(TB(D),Kx(F)),fx=(u)=>{let{ignoreFiles:D,gitignore:F}=u,$=D?TB(D):[];if(F)$.push(Dx);return $},id=async(u)=>{let D=fx(u);if(D.length===0)return{options:u,filter:e9(!1,u.cwd)};let F=u.gitignore===!0,{patterns:$,predicate:B,usingGitRoot:z}=await Xx(D,u,F),Z=UB($,z,PB);return{options:{...u,ignore:[...u.ignore,...Z]},filter:e9(B,u.cwd)}},Vx=(u)=>{let D=fx(u);if(D.length===0)return{options:u,filter:e9(!1,u.cwd)};let F=u.gitignore===!0,{patterns:$,predicate:B,usingGitRoot:z}=Qx(D,u,F),Z=UB($,z,PB);return{options:{...u,ignore:[...u.ignore,...Z]},filter:e9(B,u.cwd)}},e9=(u,D)=>{let F=new Set,$=D||vB.cwd(),B=new Map;return(z)=>{let Z=L1.normalize(z.path??z);if(F.has(Z))return!1;if(u){let q=B.get(Z);if(q===void 0){if(q=L1.isAbsolute(Z)?Z:L1.resolve($,Z),B.set(Z,q),B.size>1e4)B.clear()}if(u(q))return!1}return F.add(Z),!0}},Lx=(u,D)=>u.flat().filter((F)=>D(F)),Mx=(u,D)=>{if(u.length>0&&u.every(($)=>kD($))){if(D.expandNegationOnlyPatterns===!1)return[];u=["**/*",...u]}u=u.map(($)=>kD($)?`!${rM($.slice(1))}`:$);let F=[];while(u.length>0){let $=u.findIndex((z)=>kD(z));if($===-1){F.push({patterns:u,options:D});break}let B=u[$].slice(1);for(let z of F)z.options.ignore.push(B);if($!==0)F.push({patterns:u.slice(0,$),options:{...D,ignore:[...D.ignore,B]}});u=u.slice($+1)}return F},xx=(u)=>u.map((D)=>({patterns:D.patterns,options:{...D.options,ignore:a9(D.patterns,D.options.ignore)}})),Ox=(u,D)=>({...D?{cwd:D}:{},...Array.isArray(u)?{files:u}:u}),Ax=async(u,D)=>{let F=Mx(u,D),{cwd:$,expandDirectories:B,fs:z}=D;if(!B)return xx(F);let Z={...Ox(B,$),fs:z};return Promise.all(F.map(async(q)=>{let{patterns:X,options:Q}=q;return[X,Q.ignore]=await Promise.all([Wx(X,Z),Wx(Q.ignore,{cwd:$,fs:z})]),Q.ignore=a9(X,Q.ignore),{patterns:X,options:Q}}))},yB=(u,D)=>{let F=Mx(u,D),{cwd:$,expandDirectories:B,fs:z}=D;if(!B)return xx(F);let Z={...Ox(B,$),fs:z};return F.map((q)=>{let{patterns:X,options:Q}=q;return X=Yx(X,Z),Q.ignore=Yx(Q.ignore,{cwd:$,fs:z}),Q.ignore=a9(X,Q.ignore),{patterns:X,options:Q}})},sZ0=Hx(async(u,D)=>{let{options:F,filter:$}=await id(D),B=await Ax(u,F),z=await Promise.all(B.map((Z)=>z4.default(Z.patterns,Z.options)));return Lx(z,$)}),D5=u5((u,D)=>{let{options:F,filter:$}=Vx(D),z=yB(u,F).map((Z)=>z4.default.sync(Z.patterns,Z.options));return Lx(z,$)}),rZ0=u5((u,D)=>{let{options:F,filter:$}=Vx(D),z=yB(u,F).map((q)=>z4.default.stream(q.patterns,q.options));if(z.length===0)return jd.from([]);return _2(z).filter((q)=>$(q))}),aZ0=u5((u,D)=>u.some((F)=>z4.default.isDynamicPattern(F,D))),tZ0=Hx(Ax),eZ0=u5(yB);var Nx=M0(r2(),1);import yF from"path";class P{static bashMulti(u,D=process.cwd()){return y6.default(u.join(" && \\"),{shell:"bash",cwd:D})}static bash(u,D=process.cwd()){return y6.default(u,{shell:"bash",cwd:D})}static spawn(u,D=process.cwd()){return y6.default(u[0],u.slice(1),{cwd:D})}static syncSpawn(u,D=process.cwd()){return y6.default.sync(u[0],u.slice(1),{cwd:D})}static fsUrl(u){return u.replace(/^https:\/\//g,"").replace(/^http:\/\//g,"")}static safeDockerString(u){return u.replace(/[^\w-]+/g,(D)=>{return wx.default.encode(D)})}static safeBashString(u){return`'${u.replace(/'/g,`'"'"'`)}'`}static forEachRealJob(u,D){for(let[F,$]of Object.entries(u)){if(LD.illegalJobNames.has(F)||F[0].startsWith("."))continue;D(F,$)}}static getJobNamesFromPreviousStages(u,D,F){let $=[],B=D.indexOf(F.stage);return u.forEach((z)=>{if(D.indexOf(z.stage)<B)$.push(z.name)}),$}static async getCoveragePercent(u,D,F,$){let B=await s1.default.readFile(`${u}/${D}/output/${$}.log`,"utf8"),z=Du.compile(F.replace(/^\//,"").replace(/\/$/,""),Du.MULTILINE),Z=Array.from(B.matchAllRE2JS(z));if(Z.length===0)return"0";let q=Z[Z.length-1],X=/\d+(?:\.\d+)?/.exec(q[1]??q[0]??"");if(!X)return"0";return X[0]??"0"}static printJobNames(u,D,F,$){if(F===$.length-1)u(S`{blueBright ${D.name}}`);else u(S`{blueBright ${D.name}}, `)}static expandTextWith(u,D){if(typeof u!=="string")return u;return u.replace(/(\$\$)|\$\{([a-zA-Z_]\w*)}|\$([a-zA-Z_]\w*)/g,(F,$,B,z)=>{if(typeof $<"u")return D.unescape;else{let Z=B||z;return Z4(Z,"unexpected unset capture group"),`${D.variable(Z)}`}})}static expandText(u,D){return this.expandTextWith(u,{unescape:"$",variable:(F)=>D[F]??""})}static expandVariables(u){let D={...u},F,$=0;do{Z4($<100,"Recursive variable expansion reached 100 iterations"),F=!1;for(let[B,z]of Object.entries(D)){let Z={...D};delete Z[B],D[B]=P.expandTextWith(z,{unescape:"$$",variable:(q)=>Z[q]??""}),F||=D[B]!==z}$++}while(F);return D}static unscape$$Variables(u){for(let[D,F]of Object.entries(u))u[D]=P.expandText(F,{});return u}static findEnvMatchedVariables(u,D,F){let $={};for(let[B,z]of Object.entries(u))for(let Z of z.environments)if(F?.name.match(Z.regexp)||Z.regexp.source===".*"){if(D!=null&&z.type==="file"&&!Z.fileSource)$[B]=`${D}/${B}`,s1.default.mkdirpSync(`${D}`),s1.default.writeFileSync(`${D}/${B}`,Z.content);else if(D!=null&&z.type==="file"&&Z.fileSource)$[B]=`${D}/${B}`,s1.default.mkdirpSync(`${D}`),s1.default.copyFileSync(Z.fileSource,`${D}/${B}`);else $[B]=Z.content;break}return $}static getRulesResult(u,D,F="on_success",$=void 0){let B="never",{evaluateRuleChanges:z}=u.argv,Z=$??F==="manual",q,X;for(let Q of u.rules){if(!P.evaluateRuleIf(Q.if,u.variables))continue;if(!P.evaluateRuleExist(u.cwd,Q.exists))continue;if(z&&!P.evaluateRuleChanges(D.branches.default,Q.changes,u.cwd))continue;B=Q.when?Q.when:F,Z=Q.allow_failure??Z,q=Q.variables,X=Q.needs?.map((W)=>$2(W));break}return{when:B,allowFailure:Z,variables:q,needs:X}}static evaluateRuleIf(u,D){if(u===void 0)return!0;let F=u,$=(X)=>{let Q=0;if(X.includes("i"))Q|=Du.CASE_INSENSITIVE;if(X.includes("s"))Q|=Du.DOTALL;if(X.includes("m"))Q|=Du.MULTILINE;return Q};F=this.expandTextWith(F,{unescape:JSON.stringify("$"),variable:(X)=>JSON.stringify(D[X]??null).replaceAll("\\\\","\\")});let B=F,z=/\s*(?<operator>(?:=~)|(?:!~))\s*\/(?<rhs>.*?[^\\])\/(?<flags>[igmsuy]*)(\s|$|\))/g;F=F.replace(z,(X,Q,W,Y,J)=>{let G;switch(Q){case"=~":G="!=";break;case"!~":G="==";break;default:throw Q}let K=JSON.stringify(W),H=/(?<!\\)\//.test(K),f=["Error attempting to evaluate the following rules:"," rules:",` - if: '${B}'`,"as rhs contains unescaped quote"];Z4(!H,f.join(`
|
|
231
|
+
`));let x=$(Y);return`.matchRE2JS(RE2JS.compile(${K}, ${x})) ${G} null${J}`});let Z=/\s*(?<operator>=~|!~)\s*(["'])(?<rhs>(?:\\.|[^\\])*?)\2/g;F=F.replace(Z,(X,Q,W,Y)=>{let J;switch(Q){case"=~":J="!=";break;case"!~":J="==";break;default:throw Q}let G=["RHS (${rhs}) must be a regex pattern. Do not rely on this behavior!","Refer to https://docs.gitlab.com/ee/ci/jobs/job_rules.html#unexpected-behavior-from-regular-expression-matching-with- for more info..."];Z4(/\/(.*)\/(\w*)/.test(Y),G.join(`
|
|
232
|
+
`));let K=/\/(?<pattern>.*)\/(?<flags>[igmsuy]*)/;return`.matchRE2JS(${Y.replace(K,(f,x,L)=>{let A=$(L);return`RE2JS.compile("${x}", ${A})`})}) ${J} null`}),F=F.replace(/null.matchRE2JS\(.+?\)\s*!=\s*null/g,"false"),F=F.replace(/null.matchRE2JS\(.+?\)\s*==\s*null/g,"true"),F=F.trim();let q;try{global.RE2JS=Du,q=(0,eval)(F),delete global.RE2JS}catch{let X=["Error attempting to evaluate the following rules:"," rules:",` - if: '${B}'`,"as","```javascript",`${F}`,"```"];Z4(!1,X.join(`
|
|
233
|
+
`))}return Boolean(q)}static evaluateRuleExist(u,D){if(D===void 0)return!0;if(!Array.isArray(D))D=D.paths;for(let F of D){if(F=="")continue;if(D5(F,{dot:!0,cwd:u}).length>0)return!0}return!1}static evaluateRuleChanges(u,D,F){if(D===void 0)return!0;if(!Array.isArray(D))D=D.paths;return Nx.default.some(d1.changedFiles(`origin/${u}`,F),D,{nonegate:!0,noextglob:!0,posix:!1,dot:!0})}static isSubpath(u,D,F=process.cwd()){let $=yF.isAbsolute(u)?u:yF.resolve(F,u),B=yF.isAbsolute(D)?D:yF.resolve(F,D);return!yF.relative(B,$).startsWith("..")}static async rsyncTrackedFiles(u,D,F){let $=process.hrtime();return await s1.default.mkdirp(`${u}/${D}/builds/${F}`),await P.bash(`rsync -a --delete-excluded --delete --exclude-from=<(git ls-files -o --directory | awk '{print "/"$0}') --exclude ${D}/ ./ ${D}/builds/${F}/`,u),{hrdeltatime:process.hrtime($)}}static async checksumFiles(u,D){let F=[];D.forEach((B)=>{F.push(new Promise((z,Z)=>{if(!s1.default.pathExistsSync(B))z(yF.relative(u,B));bB.default.file(B,(q,X)=>{if(q)return Z(q);z(X)})}))});let $=await Promise.all(F);return bB.default($.join(""))}static isObject(u){return Object.getPrototypeOf(u)===Object.prototype}static switchStatementExhaustiveCheck(u){throw Error(`Unhandled case ${u}`)}static async dockerVolumeFileExists(u,D,F){try{return await P.spawn([u,"run","--rm","-v",`${F}:/mnt/vol`,"alpine","ls",`/mnt/vol/${D}`]),!0}catch{return!1}}static gclRegistryPrefix="registry.gcl.local";static async startDockerRegistry(u){let D=`${this.gclRegistryPrefix}.certs`,F=`${this.gclRegistryPrefix}.data`,$=`${this.gclRegistryPrefix}.net`;try{await P.spawn(`${u.containerExecutable} volume create ${D}`.split(" "))}catch(B){if(B instanceof Error&&!B.message.endsWith("already exists"))throw B}if(!await this.dockerVolumeFileExists(u.containerExecutable,`${this.gclRegistryPrefix}.crt`,D)){let B=["req","-newkey","rsa:4096","-nodes","-sha256","-keyout",`/certs/${this.gclRegistryPrefix}.key`,"-x509","-days","365","-out",`/certs/${this.gclRegistryPrefix}.crt`,"-subj",`/CN=${this.gclRegistryPrefix}`,"-addext",`subjectAltName=DNS:${this.gclRegistryPrefix}`],z=[u.containerExecutable,"run","--rm","-v",`${D}:/certs`,"--entrypoint","sh","alpine/openssl","-c",["openssl",...B,"&&","mkdir","-p",`/certs/${this.gclRegistryPrefix}`,"&&","cp",`/certs/${this.gclRegistryPrefix}.crt`,`/certs/${this.gclRegistryPrefix}/ca.crt`].join(" ")];await P.spawn(z)}try{await P.spawn([u.containerExecutable,"volume","create",F])}catch(B){if(B instanceof Error&&!B.message.endsWith("already exists"))throw B}try{await P.spawn([u.containerExecutable,"network","create",$])}catch(B){if(B instanceof Error&&!B.message.includes("already exists"))throw B}await P.spawn([u.containerExecutable,"rm","-f",this.gclRegistryPrefix]),await P.spawn([u.containerExecutable,"run","-d","--name",this.gclRegistryPrefix,"--network",$,"--volume",`${F}:/var/lib/registry`,"--volume",`${D}:/certs:ro`,"-e","REGISTRY_HTTP_ADDR=0.0.0.0:443","-e",`REGISTRY_HTTP_TLS_CERTIFICATE=/certs/${this.gclRegistryPrefix}.crt`,"-e",`REGISTRY_HTTP_TLS_KEY=/certs/${this.gclRegistryPrefix}.key`,"registry"]);try{await y6.default(u.containerExecutable,["run","--rm","--network",$,"--entrypoint","sh","curlimages/curl","-c",`until [ "$(curl -s -o /dev/null -k -w "%{http_code}" https://${this.gclRegistryPrefix}:443)" = "200" ]; do sleep 1; done;`],{timeout:4000})}catch(B){if(await this.stopDockerRegistry(u.containerExecutable),B.timedOut)throw"local docker registry port check timed out";throw B}}static async stopDockerRegistry(u){await P.spawn([u,"rm","-f",this.gclRegistryPrefix])}static async getTrackedFiles(u){let D=await P.bash("git ls-files --deduplicate",u);if(D.exitCode!=0)throw Error(`Failed to list tracked files in ${u}: ${D.stderr}`);return D.stdout.split(`
|
|
234
|
+
`)}static getAxiosProxyConfig(){let u=process.env.HTTPS_PROXY||process.env.HTTP_PROXY;if(u){let D=new URL(u);return{proxy:{host:D.hostname,port:D.port?parseInt(D.port,10):8080,protocol:D.protocol.replace(":","")}}}return{}}static normalizeVariables(u){if(u===null)return"";else if(P.isObject(u)){if(u.expand===!1)return String(u.value).replaceAll("$",()=>"$$");return String(u.value)}else return String(u)}}import Yu,{AssertionError as b3}from"assert";class M1{static locks=new Set;static async waitForLock(u){return new Promise((D)=>{let F=setInterval(()=>{if(!M1.locks.has(u))return clearInterval(F),D()},10)})}static async exclusive(u,D){await M1.waitForLock(u),M1.locks.add(u),await D(),M1.locks.delete(u)}}var xq=M0(j9(),1);var jx;((z)=>{z.SMALL="saas-linux-small";z.MEDIUM="saas-linux-medium";z.LARGE="saas-linux-large";z.XLARGE="saas-linux-xlarge";z.TWO_XLARGE="saas-linux-2xlarge"})(jx||={});var RB=Object.values(jx),kB={["saas-linux-small"]:8192,["saas-linux-medium"]:16384,["saas-linux-large"]:32768,["saas-linux-xlarge"]:65536,["saas-linux-2xlarge"]:131072},hB={["saas-linux-small"]:2,["saas-linux-medium"]:4,["saas-linux-large"]:8,["saas-linux-xlarge"]:16,["saas-linux-2xlarge"]:32};var T3=M0(du(),1);import G50 from"path";var vd=m7(C7),F5=vd;import cB,{AssertionError as Ex}from"assert";async function q4(u,D,{concurrency:F=Number.POSITIVE_INFINITY,stopOnError:$=!0,signal:B}={}){return new Promise((z,Z)=>{if(u[Symbol.iterator]===void 0&&u[Symbol.asyncIterator]===void 0)throw TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof u})`);if(typeof D!=="function")throw TypeError("Mapper function is required");if(!(Number.isSafeInteger(F)&&F>=1||F===Number.POSITIVE_INFINITY))throw TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${F}\` (${typeof F})`);let q=[],X=[],Q=new Map,W=!1,Y=!1,J=!1,G=0,K=0,H=u[Symbol.iterator]===void 0?u[Symbol.asyncIterator]():u[Symbol.iterator](),f=()=>{A(B.reason)},x=()=>{B?.removeEventListener("abort",f)},L=(I)=>{z(I),x()},A=(I)=>{W=!0,Y=!0,Z(I),x()};if(B){if(B.aborted)A(B.reason);B.addEventListener("abort",f,{once:!0})}let C=async()=>{if(Y)return;let I=await H.next(),_=K;if(K++,I.done){if(J=!0,G===0&&!Y){if(!$&&X.length>0){A(AggregateError(X));return}if(Y=!0,Q.size===0){L(q);return}let R=[];for(let[k,c]of q.entries()){if(Q.get(k)===Ix)continue;R.push(c)}L(R)}return}G++,(async()=>{try{let R=await I.value;if(Y)return;let k=await D(R,_);if(k===Ix)Q.set(_,k);q[_]=k,G--,await C()}catch(R){if($)A(R);else{X.push(R),G--;try{await C()}catch(k){A(k)}}}})()};(async()=>{for(let I=0;I<F;I++){try{await C()}catch(_){A(_);break}if(J||W)break}})()})}var Ix=Symbol("skip");class WD{static async runLoop(u,D,F,$){let B;do if(B=WD.getStartCandidates(D,F,$,u.manual),B.length>0)await q4(B,async(Z)=>Z.start(),{concurrency:u.concurrency??B.length});while(B.length>0)}static getStartCandidates(u,D,F,$){let B=[];for(let z of[...new Set(F)]){if(z.started)continue;let Z=WD.getPastToWaitFor(u,D,z,$);if(WD.isNotFinished(Z))continue;if(z.when==="on_success"&&WD.isPastFailed(Z))continue;if(z.when==="manual"&&WD.isPastFailed(Z))continue;if(z.when==="on_failure"&&!WD.isPastFailed(Z))continue;B.push(z)}return B}static isPastFailed(u){return u.filter((F)=>{if(F.allowFailure)return!1;return(F.preScriptsExitCode?F.preScriptsExitCode:0)>0}).length>0}static isNotFinished(u){return u.filter((F)=>!F.finished).length>0}static getFailed(u){return u.filter((D)=>D.finished&&!D.allowFailure&&(D.preScriptsExitCode??0)>0)}static getPastToWaitFor(u,D,F,$){let B=new Set,z=[F];while(z.length>0){let Z=z.pop();if(cB(Z!=null,"Job not found in getPastToWaitFor, should be impossible!"),Z.needs){let q=this.getNeededToWaitFor(u,$,Z);z.push(...q)}else{let q=this.getPreviousToWaitFor(u,D,Z);z=z.concat(q),z=z.filter((X)=>X.when!=="never"),z=z.filter((X)=>X.when!=="manual"||$.includes(X.name))}z.forEach((q)=>B.add(q))}return[...B]}static getNeededToWaitFor(u,D,F){let $=[];cB(F.needs!=null,S`${F.name}.needs cannot be null in getNeededToWaitFor`);for(let B of F.needs){let z=u.filter((Z)=>Z.baseName===B.job);for(let Z of z){if(Z.when==="never"&&!B.optional)throw new Ex({message:S`{blueBright ${Z.name}} is when:never, but its needed by {blueBright ${F.name}}`});if(Z.when==="never"&&B.optional)continue;if(Z.when==="manual"&&!D.includes(Z.name))throw new Ex({message:S`{blueBright ${Z.name}} is when:manual, its needed by {blueBright ${F.name}}, and not specified in --manual`});cB(F.name!==Z.name,S`This GitLab CI configuration is invalid: The pipeline has circular dependencies: self-dependency: {blueBright ${B.job}}.`),$.push(Z)}}return $}static getPreviousToWaitFor(u,D,F){let $=[],B=D.indexOf(F.stage);return D.slice(0,B).forEach((Z)=>{$.push(...[...u.values()].filter((q)=>q.stage===Z))}),$}}var mB=M0(du(),1);import{AssertionError as Px}from"assert";class Gu{static async runPipeline(u,D,F){let{jobs:$,stages:B}=D,z=[...$.values()];z=z.filter((Z)=>Z.when!=="never"),z=z.filter((Z)=>Z.when!=="manual"||u.manual.includes(Z.name)),await WD.runLoop(u,$,B,z),await Gu.printReport({cwd:u.cwd,showTimestamps:u.showTimestamps,stateDir:u.stateDir,writeStreams:F,jobs:$,stages:B,jobNamePad:D.jobNamePad})}static async runJobsInStage(u,D,F){let $=D.jobs.filter((Z)=>Z.stage===u.stage),B=D.stages,z=[...$.values()];z=z.filter((Z)=>Z.when!=="never"),z=z.filter((Z)=>Z.when!=="manual"||u.manual.includes(Z.name)),z=z.filter((Z)=>Z.stage===u.stage),await WD.runLoop(u,$,B,z),await Gu.printReport({cwd:u.cwd,showTimestamps:u.showTimestamps,stateDir:u.stateDir,writeStreams:F,jobs:$,stages:B,jobNamePad:D.jobNamePad})}static async runJobs(u,D,F){let $=u.needs||u.onlyNeeds,B=u.job,z=D.jobs,Z=D.stages,q=[],X=$?new Set(z):new Set;if(B.forEach((W)=>{let Y=z.filter((J)=>J.baseName==W||J.name===W);for(let J of Y){if(X.add(J),$)q.push(...WD.getPastToWaitFor(z,Z,J,u.manual));q.push(J)}}),q.length===0)throw new Px({message:S`{blueBright ${B.join(",")}} could not be found`});let Q=u.onlyNeeds?q.filter((W)=>!B.includes(W.name)):q;await WD.runLoop(u,Array.from(X),Z,Q),await Gu.printReport({cwd:u.cwd,showTimestamps:u.showTimestamps,stateDir:u.stateDir,writeStreams:F,jobs:z,stages:Z,jobNamePad:D.jobNamePad})}static async printReport({cwd:u,stateDir:D,showTimestamps:F,writeStreams:$,jobs:B,stages:z,jobNamePad:Z}){$.stdout(`
|
|
235
|
+
`);let q=(W)=>F?` [${W.padStart(7)}]`:"",X={successful:[],failed:[],warned:[]},Q={warned:[]};for(let W of B.values())if(W.started&&W.afterScriptsExitCode!==0)Q.warned.push(W);for(let W of B.values()){if(!W.started)continue;if(W.jobStatus==="success")X.successful.push(W);else if(W.jobStatus==="warning")X.warned.push(W);else X.failed.push(W)}if(X.successful.length!==0)X.successful.sort((W,Y)=>z.indexOf(W.stage)-z.indexOf(Y.stage)),X.successful.forEach(({argv:W,coveragePercent:Y,name:J,prettyDuration:G})=>{let K="";if(W.childPipelineDepth>0)K=`[${W.variable.GCL_TRIGGERER}] -> `;let H=J.padEnd(Z);if($.stdout(S`{black.bgGreenBright PASS }${q(G)} {blueBright ${K}${H}}`),Y)$.stdout(S` ${Y}% {grey coverage}`);$.stdout(`
|
|
236
|
+
`)});if(X.warned.length!==0){X.warned.sort((W,Y)=>z.indexOf(W.stage)-z.indexOf(Y.stage));for(let{name:W,prettyDuration:Y}of X.warned){let J=W.padEnd(Z),G=P.safeDockerString(W);$.stdout(S`{black.bgYellowBright WARN }${q(Y)} {blueBright ${J}} pre_script\n`);let K=await mB.default.readFile(`${u}/${D}/output/${G}.log`,"utf8");for(let H of K.split(/\r?\n/).filter((f)=>!f.replaceAll(/\x1b\[[\d;]*m/g,"").startsWith("$ ")).filter((f)=>f!=="").slice(-3))$.stdout(S` {yellow >} ${H}\n`)}}if(Q.warned.length!==0)Q.warned.sort((W,Y)=>z.indexOf(W.stage)-z.indexOf(Y.stage)),Q.warned.forEach(({name:W,prettyDuration:Y})=>{let J=W.padEnd(Z);$.stdout(S`{black.bgYellowBright WARN }${q(Y)} {blueBright ${J}} after_script\n`)});if(X.failed.length!==0){X.failed.sort((W,Y)=>z.indexOf(W.stage)-z.indexOf(Y.stage));for(let{name:W,prettyDuration:Y}of X.failed){let J=W.padEnd(Z),G=P.safeDockerString(W);$.stdout(S`{black.bgRed FAIL }${q(Y)} {blueBright ${J}}\n`);let K=await mB.default.readFile(`${u}/${D}/output/${G}.log`,"utf8");for(let H of K.split(/\r?\n/).filter((f)=>!f.replaceAll(/\x1b\[[\d;]*m/g,"").startsWith("$ ")).filter((f)=>f!=="").slice(-3))$.stdout(S` {red >} ${H}\n`)}}for(let W of X.successful){let Y=W.environment;if(Y==null)continue;let{name:J,url:G}=Y;if($.stdout(S`{blueBright ${W.name}} environment: \{ name: {bold ${J}}`),G!=null)$.stdout(S`, url: {bold ${G}}`);$.stdout(` }
|
|
237
|
+
`)}}static runList(u,D,F){let $=u.stages,B=[...u.jobs.values()];B.sort((W,Y)=>{return $.indexOf(W.stage)-$.indexOf(Y.stage)});let z=4;B.forEach((W)=>z=Math.max(W.when.length,z));let Z=5;$.forEach((W)=>Z=Math.max(W.length,Z));let q=11;B.forEach((W)=>q=Math.max(W.description.length,q));let X=u.jobNamePad;if(!F)B=B.filter((W)=>W.when!=="never");D.stdout(S`{grey ${"name".padEnd(X)} ${"description".padEnd(q)}} `),D.stdout(S`{grey ${"stage".padEnd(Z)} ${"when".padEnd(z)}} `),D.stdout(S`{grey allow_failure needs}\n`);let Q=(W)=>{let Y=W.needs?.filter((K)=>!K.project&&!K.pipeline).map((K)=>K.job),J=W.allowFailure?"true ":"false ",G=S`{blueBright ${W.name.padEnd(X)}} ${W.description.padEnd(q)} `;if(G+=S`{yellow ${W.stage.padEnd(Z)}} ${W.when.padEnd(z)} ${J.padEnd(11)}`,Y)G+=S` [{blueBright ${Y}}]`;D.stdout(`${G}
|
|
238
|
+
`)};B.forEach((W)=>Q(W))}static runJson(u,D){let F=[...u.jobs.values()],$=[];F.forEach((B)=>{$.push({name:B.name,description:B.description,stage:B.stage,when:B.when,allow_failure:B.allowFailure,needs:B.needs?.filter((z)=>!z.project&&!z.pipeline),...B.rules?{rules:B.rules}:{}})}),D.stdout(`${JSON.stringify($,null,2)}
|
|
239
|
+
`)}static runCsv(u,D,F){let $=u.stages,B=[...u.jobs.values()];if(B.sort((z,Z)=>{return $.indexOf(z.stage)-$.indexOf(Z.stage)}),!F)B=B.filter((z)=>z.when!=="never");D.stdout(`name;description;stage;when;allowFailure;needs
|
|
240
|
+
`),B.forEach((z)=>{let Z=z.needs?.filter((q)=>!q.project&&!q.pipeline).map((q)=>q.job).join(",")??[];D.stdout(`${z.name};"${z.description}";${z.stage};${z.when};${z.allowFailure?"true":"false"};[${Z}]
|
|
241
|
+
`)})}static validateDependencyChain(u){let D=u.jobs,F=D.filter((z)=>z.when!=="never"),$=u.stages;WD.getStartCandidates(D,$,F,[]);let B=new Set(F.map((z)=>z.name));for(let z of F)if(z.dependencies){for(let Z of z.dependencies)if(!B.has(Z))throw new Px({message:S`{blueBright ${Z}} is when:never, but its depended on by {blueBright ${z.name}}`})}}}var i_=M0(Q6(),1),f7=M0(du(),1);import Jq from"path";var Gq=M0(PF(),1);import PD from"assert";var Jj=M0(nN(),1);import lD from"assert";var FF={$schema:"http://json-schema.org/draft-07/schema#",$id:"https://gitlab.com/.gitlab-ci.yml",markdownDescription:"GitLab has a built-in solution for doing CI called GitLab CI. It is configured by supplying a file called `.gitlab-ci.yml`, which will list all the jobs that are going to run for the project. A full list of all options can be found [here](https://docs.gitlab.com/ci/yaml/). [Learn More](https://docs.gitlab.com/ci/).",type:"object",properties:{$schema:{type:"string",format:"uri"},spec:{type:"object",markdownDescription:"Specification for pipeline configuration. Must be declared at the top of a configuration file, in a header section separated from the rest of the configuration with `---`. [Learn More](https://docs.gitlab.com/ci/yaml/#spec).",properties:{inputs:{$ref:"#/definitions/configInputs"}},additionalProperties:!1},image:{$ref:"#/definitions/image",markdownDescription:"Defining `image` globally is deprecated. Use [`default`](https://docs.gitlab.com/ci/yaml/#default) instead. [Learn more](https://docs.gitlab.com/ci/yaml/#globally-defined-image-services-cache-before_script-after_script)."},services:{$ref:"#/definitions/services",markdownDescription:"Defining `services` globally is deprecated. Use [`default`](https://docs.gitlab.com/ci/yaml/#default) instead. [Learn more](https://docs.gitlab.com/ci/yaml/#globally-defined-image-services-cache-before_script-after_script)."},before_script:{$ref:"#/definitions/before_script",markdownDescription:"Defining `before_script` globally is deprecated. Use [`default`](https://docs.gitlab.com/ci/yaml/#default) instead. [Learn more](https://docs.gitlab.com/ci/yaml/#globally-defined-image-services-cache-before_script-after_script)."},after_script:{$ref:"#/definitions/after_script",markdownDescription:"Defining `after_script` globally is deprecated. Use [`default`](https://docs.gitlab.com/ci/yaml/#default) instead. [Learn more](https://docs.gitlab.com/ci/yaml/#globally-defined-image-services-cache-before_script-after_script)."},variables:{$ref:"#/definitions/globalVariables"},cache:{$ref:"#/definitions/cache",markdownDescription:"Defining `cache` globally is deprecated. Use [`default`](https://docs.gitlab.com/ci/yaml/#default) instead. [Learn more](https://docs.gitlab.com/ci/yaml/#globally-defined-image-services-cache-before_script-after_script)."},"!reference":{$ref:"#/definitions/!reference"},default:{type:"object",properties:{after_script:{$ref:"#/definitions/after_script"},artifacts:{$ref:"#/definitions/artifacts"},before_script:{$ref:"#/definitions/before_script"},hooks:{$ref:"#/definitions/hooks"},cache:{$ref:"#/definitions/cache"},image:{$ref:"#/definitions/image"},interruptible:{$ref:"#/definitions/interruptible"},id_tokens:{$ref:"#/definitions/id_tokens"},identity:{$ref:"#/definitions/identity"},retry:{$ref:"#/definitions/retry"},services:{$ref:"#/definitions/services"},tags:{$ref:"#/definitions/tags"},timeout:{$ref:"#/definitions/timeout"},"!reference":{$ref:"#/definitions/!reference"}},additionalProperties:!1},stages:{type:"array",markdownDescription:"Groups jobs into stages. All jobs in one stage must complete before next stage is executed. Defaults to ['build', 'test', 'deploy']. [Learn More](https://docs.gitlab.com/ci/yaml/#stages).",default:["build","test","deploy"],items:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},uniqueItems:!0,minItems:1},include:{markdownDescription:"Can be `IncludeItem` or `IncludeItem[]`. Each `IncludeItem` will be a string, or an object with properties for the method if including external YAML file. The external content will be fetched, included and evaluated along the `.gitlab-ci.yml`. [Learn More](https://docs.gitlab.com/ci/yaml/#include).",oneOf:[{$ref:"#/definitions/include_item"},{type:"array",items:{$ref:"#/definitions/include_item"}}]},pages:{$ref:"#/definitions/job",markdownDescription:"A special job used to upload static sites to GitLab pages. Requires a `public/` directory with `artifacts.path` pointing to it. [Learn More](https://docs.gitlab.com/ci/yaml/#pages)."},workflow:{type:"object",properties:{name:{$ref:"#/definitions/workflowName"},auto_cancel:{$ref:"#/definitions/workflowAutoCancel"},rules:{type:"array",items:{anyOf:[{type:"object"},{type:"array",minItems:1,items:{type:"string"}}],properties:{if:{$ref:"#/definitions/if"},changes:{$ref:"#/definitions/changes"},exists:{$ref:"#/definitions/exists"},variables:{$ref:"#/definitions/rulesVariables"},when:{type:"string",enum:["always","never"]},auto_cancel:{$ref:"#/definitions/workflowAutoCancel"}},additionalProperties:!1}}}}},patternProperties:{"^[.]":{description:"Hidden keys.",anyOf:[{$ref:"#/definitions/job_template"},{description:"Arbitrary YAML anchor."}]}},additionalProperties:{$ref:"#/definitions/job"},definitions:{artifacts:{type:["object","null"],markdownDescription:"Used to specify a list of files and directories that should be attached to the job if it succeeds. Artifacts are sent to GitLab where they can be downloaded. [Learn More](https://docs.gitlab.com/ci/yaml/#artifacts).",additionalProperties:!1,properties:{paths:{type:"array",markdownDescription:"A list of paths to files/folders that should be included in the artifact. [Learn More](https://docs.gitlab.com/ci/yaml/#artifactspaths).",items:{type:"string"},minItems:1},exclude:{type:"array",markdownDescription:"A list of paths to files/folders that should be excluded in the artifact. [Learn More](https://docs.gitlab.com/ci/yaml/#artifactsexclude).",items:{type:"string"},minItems:1},expose_as:{type:"string",markdownDescription:"Can be used to expose job artifacts in the merge request UI. GitLab will add a link <expose_as> to the relevant merge request that points to the artifact. [Learn More](https://docs.gitlab.com/ci/yaml/#artifactsexpose_as)."},name:{type:"string",markdownDescription:"Name for the archive created on job success. Can use variables in the name, e.g. '$CI_JOB_NAME' [Learn More](https://docs.gitlab.com/ci/yaml/#artifactsname)."},untracked:{type:"boolean",markdownDescription:"Whether to add all untracked files (along with 'artifacts.paths') to the artifact. [Learn More](https://docs.gitlab.com/ci/yaml/#artifactsuntracked).",default:!1},when:{markdownDescription:"Configure when artifacts are uploaded depended on job status. [Learn More](https://docs.gitlab.com/ci/yaml/#artifactswhen).",default:"on_success",type:"string",enum:["on_success","on_failure","always"]},access:{markdownDescription:"Configure who can access the artifacts. [Learn More](https://docs.gitlab.com/ci/yaml/#artifactsaccess).",default:"all",type:"string",enum:["none","developer","all"]},expire_in:{type:"string",markdownDescription:"How long artifacts should be kept. They are saved 30 days by default. Artifacts that have expired are removed periodically via cron job. Supports a wide variety of formats, e.g. '1 week', '3 mins 4 sec', '2 hrs 20 min', '2h20min', '6 mos 1 day', '47 yrs 6 mos and 4d', '3 weeks and 2 days'. [Learn More](https://docs.gitlab.com/ci/yaml/#artifactsexpire_in).",default:"30 days"},reports:{type:"object",markdownDescription:"Reports will be uploaded as artifacts, and often displayed in the GitLab UI, such as in merge requests. [Learn More](https://docs.gitlab.com/ci/yaml/#artifactsreports).",additionalProperties:!1,properties:{accessibility:{type:"string",description:"Path to JSON file with accessibility report."},annotations:{type:"string",description:"Path to JSON file with annotations report."},junit:{description:"Path for file(s) that should be parsed as JUnit XML result",oneOf:[{type:"string",description:"Path to a single XML file"},{type:"array",description:"A list of paths to XML files that will automatically be concatenated into a single file",items:{type:"string"},minItems:1}]},browser_performance:{type:"string",description:"Path to a single file with browser performance metric report(s)."},coverage_report:{type:["object","null"],description:"Used to collect coverage reports from the job.",properties:{coverage_format:{description:"Code coverage format used by the test framework.",enum:["cobertura","jacoco"]},path:{description:"Path to the coverage report file that should be parsed.",type:"string",minLength:1}}},codequality:{$ref:"#/definitions/string_file_list",description:"Path to file or list of files with code quality report(s) (such as Code Climate)."},dotenv:{$ref:"#/definitions/string_file_list",description:"Path to file or list of files containing runtime-created variables for this job."},lsif:{$ref:"#/definitions/string_file_list",description:"Path to file or list of files containing code intelligence (Language Server Index Format)."},sast:{$ref:"#/definitions/string_file_list",description:"Path to file or list of files with SAST vulnerabilities report(s)."},dependency_scanning:{$ref:"#/definitions/string_file_list",description:"Path to file or list of files with Dependency scanning vulnerabilities report(s)."},container_scanning:{$ref:"#/definitions/string_file_list",description:"Path to file or list of files with Container scanning vulnerabilities report(s)."},dast:{$ref:"#/definitions/string_file_list",description:"Path to file or list of files with DAST vulnerabilities report(s)."},license_management:{$ref:"#/definitions/string_file_list",description:"Deprecated in 12.8: Path to file or list of files with license report(s)."},license_scanning:{$ref:"#/definitions/string_file_list",description:"Path to file or list of files with license report(s)."},requirements:{$ref:"#/definitions/string_file_list",description:"Path to file or list of files with requirements report(s)."},secret_detection:{$ref:"#/definitions/string_file_list",description:"Path to file or list of files with secret detection report(s)."},metrics:{$ref:"#/definitions/string_file_list",description:"Path to file or list of files with custom metrics report(s)."},terraform:{$ref:"#/definitions/string_file_list",description:"Path to file or list of files with terraform plan(s)."},cyclonedx:{$ref:"#/definitions/string_file_list",markdownDescription:"Path to file or list of files with cyclonedx report(s). [Learn More](https://docs.gitlab.com/ci/yaml/artifacts_reports/#artifactsreportscyclonedx)."},load_performance:{$ref:"#/definitions/string_file_list",markdownDescription:"Path to file or list of files with load performance testing report(s). [Learn More](https://docs.gitlab.com/ci/yaml/artifacts_reports/#artifactsreportsload_performance)."},repository_xray:{$ref:"#/definitions/string_file_list",description:"Path to file or list of files with Repository X-Ray report(s)."}}}}},string_file_list:{oneOf:[{type:"string"},{type:"array",items:{type:"string"}}]},baseInput:{type:"object",properties:{type:{type:"string",markdownDescription:"Input type. Defaults to 'string' when not specified.",enum:["array","boolean","number","string"],default:"string"},description:{type:"string",markdownDescription:"Human-readable explanation of the parameter.",maxLength:1024},options:{type:"array",markdownDescription:"List of allowed values for this input.",items:{oneOf:[{type:"string"},{type:"number"},{type:"boolean"}]}},regex:{type:"string",markdownDescription:"Regular expression that string values must match."},default:{markdownDescription:"Default value for this input."}}},configInputs:{type:"object",markdownDescription:"Define input parameters for reusable CI/CD configuration. Config inputs can optionally specify defaults. [Learn More](https://docs.gitlab.com/ci/inputs/).",patternProperties:{".*":{oneOf:[{allOf:[{$ref:"#/definitions/baseInput"},{properties:{rules:{type:"array",markdownDescription:"Conditional rules for this input.",items:{type:"object"}}}},{allOf:[{if:{properties:{type:{enum:["string"]}}},then:{properties:{default:{type:["string","null"]}}}},{if:{properties:{type:{enum:["number"]}}},then:{properties:{default:{type:["number","null"]}}}},{if:{properties:{type:{enum:["boolean"]}}},then:{properties:{default:{type:["boolean","null"]}}}},{if:{properties:{type:{enum:["array"]}}},then:{properties:{default:{oneOf:[{type:"array"},{type:"null"}]}}}}]}]},{type:"null"}]}}},jobInputs:{type:"object",markdownDescription:"Define input parameters for a job. Job inputs must always include a `default` value. [Learn More](https://docs.gitlab.com/ci/yaml/#inputs).",maxProperties:50,patternProperties:{".*":{allOf:[{$ref:"#/definitions/baseInput"},{required:["default"]},{allOf:[{if:{properties:{type:{enum:["string"]}}},then:{properties:{default:{type:"string"}}}},{if:{properties:{type:{enum:["number"]}}},then:{properties:{default:{type:"number"}}}},{if:{properties:{type:{enum:["boolean"]}}},then:{properties:{default:{type:"boolean"}}}},{if:{properties:{type:{enum:["array"]}}},then:{properties:{default:{type:"array"}}}}]}]}}},include_item:{oneOf:[{description:"Will infer the method based on the value. E.g. `https://...` strings will be of type `include:remote`, and `/templates/...` or `templates/...` will be of type `include:local`.",type:"string",format:"uri-reference",pattern:"\\w\\.ya?ml$",anyOf:[{pattern:"^https?://"},{not:{pattern:"^\\w+://"}}]},{type:"object",additionalProperties:!1,properties:{local:{description:"Relative path from local repository root (`/`) to the `yaml`/`yml` file template. The file must be on the same branch, and does not work across git submodules.",type:"string",format:"uri-reference",pattern:"\\.ya?ml$"},rules:{$ref:"#/definitions/includeRules"},inputs:{$ref:"#/definitions/inputs"}},required:["local"]},{type:"object",additionalProperties:!1,properties:{project:{description:"Path to the project, e.g. `group/project`, or `group/sub-group/project` [Learn more](https://docs.gitlab.com/ci/yaml/#includeproject).",type:"string",pattern:"(?:\\S/\\S|\\$\\S+)"},ref:{description:"Branch/Tag/Commit-hash for the target project.",type:"string"},file:{oneOf:[{description:"Relative path from project root (`/`) to the `yaml`/`yml` file template.",type:"string",pattern:"\\.ya?ml$"},{description:"List of files by relative path from project root (`/`) to the `yaml`/`yml` file template.",type:"array",items:{type:"string",pattern:"\\.ya?ml$"}}]},rules:{$ref:"#/definitions/includeRules"},inputs:{$ref:"#/definitions/inputs"}},required:["project","file"]},{type:"object",additionalProperties:!1,properties:{template:{description:"Use a `.gitlab-ci.yml` template as a base, e.g. `Nodejs.gitlab-ci.yml`.",type:"string",format:"uri-reference",pattern:"\\.ya?ml$"},rules:{$ref:"#/definitions/includeRules"},inputs:{$ref:"#/definitions/inputs"}},required:["template"]},{type:"object",additionalProperties:!1,properties:{component:{description:"Local path to component directory or full path to external component directory.",type:"string",format:"uri-reference"},rules:{$ref:"#/definitions/includeRules"},inputs:{$ref:"#/definitions/inputs"}},required:["component"]},{type:"object",additionalProperties:!1,properties:{remote:{description:"URL to a `yaml`/`yml` template file using HTTP/HTTPS.",type:"string",format:"uri-reference",pattern:"^https?://.+\\.ya?ml$"},integrity:{description:"SHA256 integrity hash of the remote file content.",type:"string",pattern:"^sha256-[A-Za-z0-9+/]{43}=$"},rules:{$ref:"#/definitions/includeRules"},inputs:{$ref:"#/definitions/inputs"}},required:["remote"]}]},"!reference":{type:"array",items:{type:"string",minLength:1}},image:{oneOf:[{type:"string",minLength:1,description:"Full name of the image that should be used. It should contain the Registry part if needed."},{type:"object",description:"Specifies the docker image to use for the job or globally for all jobs. Job configuration takes precedence over global setting. Requires a certain kind of GitLab runner executor.",additionalProperties:!1,properties:{name:{type:"string",minLength:1,description:"Full name of the image that should be used. It should contain the Registry part if needed."},entrypoint:{type:"array",description:"Command or script that should be executed as the container's entrypoint. It will be translated to Docker's --entrypoint option while creating the container. The syntax is similar to Dockerfile's ENTRYPOINT directive, where each shell token is a separate string in the array.",minItems:1},docker:{type:"object",markdownDescription:"Options to pass to Runners Docker Executor. [Learn More](https://docs.gitlab.com/ci/yaml/#imagedocker)",additionalProperties:!1,properties:{platform:{type:"string",minLength:1,description:"Image architecture to pull."},user:{type:"string",minLength:1,maxLength:255,description:"Username or UID to use for the container."}}},kubernetes:{type:"object",markdownDescription:"Options to pass to Runners Kubernetes Executor. [Learn More](https://docs.gitlab.com/ci/yaml/#imagekubernetes)",additionalProperties:!1,properties:{user:{type:["string","integer"],minLength:1,maxLength:255,description:"Username or UID to use for the container. It also supports the UID:GID format."}}},pull_policy:{markdownDescription:"Specifies how to pull the image in Runner. It can be one of `always`, `never` or `if-not-present`. The default value is `always`. [Learn more](https://docs.gitlab.com/ci/yaml/#imagepull_policy).",default:"always",oneOf:[{type:"string",enum:["always","never","if-not-present"]},{type:"array",items:{type:"string",enum:["always","never","if-not-present"]},minItems:1,uniqueItems:!0}]}},required:["name"]}],markdownDescription:"Specifies the docker image to use for the job or globally for all jobs. Job configuration takes precedence over global setting. Requires a certain kind of GitLab runner executor. [Learn More](https://docs.gitlab.com/ci/yaml/#image)."},services:{type:"array",markdownDescription:"Similar to `image` property, but will link the specified services to the `image` container. [Learn More](https://docs.gitlab.com/ci/yaml/#services).",items:{oneOf:[{type:"string",minLength:1,description:"Full name of the image that should be used. It should contain the Registry part if needed."},{type:"object",description:"",additionalProperties:!1,properties:{name:{type:"string",description:"Full name of the image that should be used. It should contain the Registry part if needed.",minLength:1},entrypoint:{type:"array",markdownDescription:"Command or script that should be executed as the container's entrypoint. It will be translated to Docker's --entrypoint option while creating the container. The syntax is similar to Dockerfile's ENTRYPOINT directive, where each shell token is a separate string in the array. [Learn More](https://docs.gitlab.com/ci/services/#available-settings-for-services)",minItems:1,items:{type:"string"}},docker:{type:"object",markdownDescription:"Options to pass to Runners Docker Executor. [Learn More](https://docs.gitlab.com/ci/yaml/#servicesdocker)",additionalProperties:!1,properties:{platform:{type:"string",minLength:1,description:"Image architecture to pull."},user:{type:"string",minLength:1,maxLength:255,description:"Username or UID to use for the container."}}},kubernetes:{type:"object",markdownDescription:"Options to pass to Runners Kubernetes Executor. [Learn More](https://docs.gitlab.com/ci/yaml/#imagekubernetes)",additionalProperties:!1,properties:{user:{type:["string","integer"],minLength:1,maxLength:255,description:"Username or UID to use for the container. It also supports the UID:GID format."}}},pull_policy:{markdownDescription:"Specifies how to pull the image in Runner. It can be one of `always`, `never` or `if-not-present`. The default value is `always`. [Learn more](https://docs.gitlab.com/ci/yaml/#servicespull_policy).",default:"always",oneOf:[{type:"string",enum:["always","never","if-not-present"]},{type:"array",items:{type:"string",enum:["always","never","if-not-present"]},minItems:1,uniqueItems:!0}]},command:{markdownDescription:"Command or script that should be used as the container's command. It will be translated to arguments passed to Docker after the image's name. The syntax is similar to Dockerfile's CMD directive, where each shell token is a separate string in the array. [Learn More](https://docs.gitlab.com/ci/services/#available-settings-for-services)",$ref:"#/definitions/script"},alias:{type:"string",markdownDescription:"Additional alias that can be used to access the service from the job's container. Read Accessing the services for more information. [Learn More](https://docs.gitlab.com/ci/services/#available-settings-for-services)",minLength:1},variables:{$ref:"#/definitions/jobVariables",markdownDescription:"Additional environment variables that are passed exclusively to the service. Service variables cannot reference themselves. [Learn More](https://docs.gitlab.com/ci/services/#available-settings-for-services)"}},required:["name"]}]}},id_tokens:{type:"object",markdownDescription:"Defines JWTs to be injected as environment variables.",patternProperties:{".*":{type:"object",properties:{aud:{oneOf:[{type:"string"},{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}]}},required:["aud"],additionalProperties:!1}}},identity:{type:"string",markdownDescription:"Sets a workload identity (experimental), allowing automatic authentication with the external system. [Learn More](https://docs.gitlab.com/ci/yaml/#identity).",enum:["google_cloud"]},secrets:{type:"object",markdownDescription:"Defines secrets to be injected as environment variables. [Learn More](https://docs.gitlab.com/ci/yaml/#secrets).",patternProperties:{".*":{type:"object",properties:{vault:{oneOf:[{type:"string",markdownDescription:"The secret to be fetched from Vault (e.g. 'production/db/password@ops' translates to secret 'ops/data/production/db', field `password`). [Learn More](https://docs.gitlab.com/ci/yaml/#secretsvault)"},{type:"object",properties:{engine:{type:"object",properties:{name:{type:"string"},path:{type:"string"}},required:["name","path"]},path:{type:"string"},field:{type:"string"}},required:["engine","path","field"],additionalProperties:!1}]},gcp_secret_manager:{type:"object",markdownDescription:"Defines the secret version to be fetched from GCP Secret Manager. Name refers to the secret name in GCP secret manager. Version refers to the desired secret version (defaults to 'latest').",properties:{name:{type:"string"},version:{oneOf:[{type:"string"},{type:"integer"}],default:"version"}},required:["name"],additionalProperties:!1},azure_key_vault:{type:"object",properties:{name:{type:"string"},version:{type:"string"}},required:["name"],additionalProperties:!1},aws_secrets_manager:{oneOf:[{type:"string",description:"The ARN or name of the secret to retrieve. To retrieve a secret from another account, you must use an ARN."},{type:"object",markdownDescription:"Defines the secret to be fetched from AWS Secrets Manager. The secret_id refers to the ARN or name of the secret in AWS Secrets Manager. Version_id and version_stage are optional parameters that can be used to specify a specific version of the secret, else AWSCURRENT version will be returned.",properties:{secret_id:{type:"string",description:"The ARN or name of the secret to retrieve. To retrieve a secret from another account, you must use an ARN."},version_id:{type:"string",description:"The unique identifier of the version of the secret to retrieve. If you include both this parameter and VersionStage, the two parameters must refer to the same secret version. If you don't specify either a VersionStage or VersionId, Secrets Manager returns the AWSCURRENT version."},version_stage:{type:"string",description:"The staging label of the version of the secret to retrieve. If you include both this parameter and VersionStage, the two parameters must refer to the same secret version. If you don't specify either a VersionStage or VersionId, Secrets Manager returns the AWSCURRENT version."},region:{type:"string",description:"The AWS region where the secret is stored. Use this to override the region for a specific secret. Defaults to AWS_REGION variable."},role_arn:{type:"string",description:"The ARN of the IAM role to assume before retrieving the secret. Use this to override the ARN. Defaults to AWS_ROLE_ARN variable."},role_session_name:{type:"string",description:"The name of the session to use when assuming the role. Use this to override the session name. Defaults to AWS_ROLE_SESSION_NAME variable."},field:{type:"string",description:"The name of the field to retrieve from the secret. If not specified, the entire secret is retrieved."}},required:["secret_id"],additionalProperties:!1}]},gitlab_secrets_manager:{type:"object",properties:{name:{type:"string"},source:{type:"string",description:"Source of the secret. Defaults to the current project if not given. For fetching a secret from a group, provide group/<full_path_of_the_group>"}},required:["name"],additionalProperties:!1},file:{type:"boolean",default:!0,markdownDescription:"Configures the secret to be stored as either a file or variable type CI/CD variable. [Learn More](https://docs.gitlab.com/ci/yaml/#secretsfile)"},token:{type:"string",description:"Specifies the JWT variable that should be used to authenticate with the secret provider."}},anyOf:[{required:["vault"]},{required:["azure_key_vault"]},{required:["gcp_secret_manager"]},{required:["aws_secrets_manager"]},{required:["gitlab_secrets_manager"]}],dependencies:{gcp_secret_manager:["token"]},additionalProperties:!1}}},script:{oneOf:[{type:"string",minLength:1},{type:"array",items:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},minItems:1}]},steps:{type:"array",items:{$ref:"#/definitions/step"}},optional_script:{oneOf:[{type:"string"},{type:"array",items:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]}}]},before_script:{$ref:"#/definitions/optional_script",markdownDescription:"Defines scripts that should run *before* the job. Can be set globally or per job. [Learn More](https://docs.gitlab.com/ci/yaml/#before_script)."},after_script:{$ref:"#/definitions/optional_script",markdownDescription:"Defines scripts that should run *after* the job. Can be set globally or per job. [Learn More](https://docs.gitlab.com/ci/yaml/#after_script)."},rules:{type:["array","null"],markdownDescription:"Rules allows for an array of individual rule objects to be evaluated in order, until one matches and dynamically provides attributes to the job. [Learn More](https://docs.gitlab.com/ci/yaml/#rules).",items:{anyOf:[{type:"object",additionalProperties:!1,properties:{if:{$ref:"#/definitions/if"},changes:{$ref:"#/definitions/changes"},exists:{$ref:"#/definitions/exists"},variables:{$ref:"#/definitions/rulesVariables"},when:{$ref:"#/definitions/when"},start_in:{$ref:"#/definitions/start_in"},allow_failure:{$ref:"#/definitions/allow_failure"},needs:{$ref:"#/definitions/rulesNeeds"},interruptible:{$ref:"#/definitions/interruptible"}}},{type:"string",minLength:1},{type:"array",minItems:1,items:{type:"string"}}]}},includeRules:{type:["array","null"],markdownDescription:"You can use rules to conditionally include other configuration files. [Learn More](https://docs.gitlab.com/ci/yaml/includes/#use-rules-with-include).",items:{anyOf:[{type:"object",additionalProperties:!1,properties:{if:{$ref:"#/definitions/if"},changes:{$ref:"#/definitions/changes"},exists:{$ref:"#/definitions/exists"},when:{markdownDescription:"Use `when: never` to exclude the configuration file if the condition matches. [Learn More](https://docs.gitlab.com/ci/yaml/includes/#include-with-rulesif).",oneOf:[{type:"string",enum:["never","always"]},{type:"null"}]}}},{type:"string",minLength:1},{type:"array",minItems:1,items:{type:"string"}}]}},workflowName:{type:"string",markdownDescription:"Defines the pipeline name. [Learn More](https://docs.gitlab.com/ci/yaml/#workflowname).",minLength:1,maxLength:255},workflowAutoCancel:{type:"object",description:"Define the rules for when pipeline should be automatically cancelled.",additionalProperties:!1,properties:{on_job_failure:{markdownDescription:"Define which jobs to stop after a job fails.",default:"none",type:"string",enum:["none","all"]},on_new_commit:{markdownDescription:"Configure the behavior of the auto-cancel redundant pipelines feature. [Learn More](https://docs.gitlab.com/ci/yaml/#workflowauto_cancelon_new_commit)",type:"string",enum:["conservative","interruptible","none"]}}},globalVariables:{markdownDescription:"Defines default variables for all jobs. Job level property overrides global variables. [Learn More](https://docs.gitlab.com/ci/yaml/#variables).",type:"object",patternProperties:{".*":{oneOf:[{type:["boolean","number","string"]},{type:"object",properties:{value:{type:"string",markdownDescription:"Default value of the variable. If used with `options`, `value` must be included in the array. [Learn More](https://docs.gitlab.com/ci/yaml/#variablesvalue)"},options:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0,markdownDescription:"A list of predefined values that users can select from in the **Run pipeline** page when running a pipeline manually. [Learn More](https://docs.gitlab.com/ci/yaml/#variablesoptions)"},description:{type:"string",markdownDescription:"Explains what the variable is used for, what the acceptable values are. Variables with `description` are prefilled when running a pipeline manually. [Learn More](https://docs.gitlab.com/ci/yaml/#variablesdescription)."},expand:{type:"boolean",markdownDescription:"If the variable is expandable or not. [Learn More](https://docs.gitlab.com/ci/yaml/#variablesexpand)."}},additionalProperties:!1}]}}},jobVariables:{markdownDescription:"Defines variables for a job. [Learn More](https://docs.gitlab.com/ci/yaml/#variables).",type:"object",patternProperties:{".*":{oneOf:[{type:["boolean","number","string"]},{type:"object",properties:{value:{type:"string"},expand:{type:"boolean",markdownDescription:"Defines if the variable is expandable or not. [Learn More](https://docs.gitlab.com/ci/yaml/#variablesexpand)."}},additionalProperties:!1}]}}},rulesVariables:{markdownDescription:"Defines variables for a rule result. [Learn More](https://docs.gitlab.com/ci/yaml/#rulesvariables).",type:"object",patternProperties:{".*":{type:["boolean","number","string"]}}},if:{type:"string",markdownDescription:"Expression to evaluate whether additional attributes should be provided to the job. [Learn More](https://docs.gitlab.com/ci/yaml/#rulesif)."},changes:{markdownDescription:"Additional attributes will be provided to job if any of the provided paths matches a modified file. [Learn More](https://docs.gitlab.com/ci/yaml/#ruleschanges).",anyOf:[{type:"object",additionalProperties:!1,required:["paths"],properties:{paths:{type:"array",description:"List of file paths.",items:{type:"string"}},compare_to:{type:"string",description:"Ref for comparing changes."}}},{type:"array",items:{type:"string"}}]},exists:{markdownDescription:"Additional attributes will be provided to job if any of the provided paths matches an existing file in the repository. [Learn More](https://docs.gitlab.com/ci/yaml/#rulesexists).",anyOf:[{type:"array",items:{type:"string"}},{type:"object",additionalProperties:!1,required:["paths"],properties:{paths:{type:"array",description:"List of file paths.",items:{type:"string"}},project:{type:"string",description:"Path of the project to search in."}}},{type:"object",additionalProperties:!1,required:["paths","project"],properties:{paths:{type:"array",description:"List of file paths.",items:{type:"string"}},project:{type:"string",description:"Path of the project to search in."},ref:{type:"string",description:"Ref of the project to search in."}}}]},timeout:{type:"string",markdownDescription:"Allows you to configure a timeout for a specific job (e.g. `1 minute`, `1h 30m 12s`). [Learn More](https://docs.gitlab.com/ci/yaml/#timeout).",minLength:1},start_in:{type:"string",markdownDescription:"Used in conjunction with 'when: delayed' to set how long to delay before starting a job. e.g. '5', 5 seconds, 30 minutes, 1 week, etc. [Learn More](https://docs.gitlab.com/ci/jobs/job_control/#run-a-job-after-a-delay).",minLength:1},rulesNeeds:{markdownDescription:"Use needs in rules to update job needs for specific conditions. When a condition matches a rule, the job's needs configuration is completely replaced with the needs in the rule. [Learn More](https://docs.gitlab.com/ci/yaml/#rulesneeds).",type:"array",items:{oneOf:[{type:"string"},{type:"object",additionalProperties:!1,properties:{job:{type:"string",minLength:1,description:"Name of a job that is defined in the pipeline."},artifacts:{type:"boolean",description:"Download artifacts of the job in needs."},optional:{type:"boolean",description:"Whether the job needs to be present in the pipeline to run ahead of the current job."}},required:["job"]}]}},allow_failure:{markdownDescription:"Allow job to fail. A failed job does not cause the pipeline to fail. [Learn More](https://docs.gitlab.com/ci/yaml/#allow_failure).",oneOf:[{description:"Setting this option to true will allow the job to fail while still letting the pipeline pass.",type:"boolean",default:!1},{description:"Exit code that are not considered failure. The job fails for any other exit code.",type:"object",additionalProperties:!1,required:["exit_codes"],properties:{exit_codes:{type:"integer"}}},{description:"You can list which exit codes are not considered failures. The job fails for any other exit code.",type:"object",additionalProperties:!1,required:["exit_codes"],properties:{exit_codes:{type:"array",minItems:1,uniqueItems:!0,items:{type:"integer"}}}}]},parallel:{description:"Splits up a single job into multiple that run in parallel. Provides `CI_NODE_INDEX` and `CI_NODE_TOTAL` environment variables to the jobs.",oneOf:[{type:"integer",description:"Creates N instances of the job that run in parallel.",default:0,minimum:1,maximum:200},{type:"object",properties:{matrix:{type:"array",description:"Defines different variables for jobs that are running in parallel.",items:{type:"object",description:"Defines the variables for a specific job.",additionalProperties:{type:["string","number","array"]}},maxItems:200}},additionalProperties:!1,required:["matrix"]}]},parallel_matrix:{description:"Use the `needs:parallel:matrix` keyword to specify parallelized jobs needed to be completed for the job to run. [Learn More](https://docs.gitlab.com/ci/yaml/#needsparallelmatrix)",oneOf:[{type:"object",properties:{matrix:{type:"array",description:"Defines different variables for jobs that are running in parallel.",items:{type:"object",description:"Defines the variables for a specific job.",additionalProperties:{type:["string","number","array"]}},maxItems:200}},additionalProperties:!1,required:["matrix"]}]},when:{markdownDescription:"Describes the conditions for when to run the job. Defaults to 'on_success'. [Learn More](https://docs.gitlab.com/ci/yaml/#when).",default:"on_success",type:"string",enum:["on_success","on_failure","always","never","manual","delayed"]},cache:{markdownDescription:"Use `cache` to specify a list of files and directories to cache between jobs. You can only use paths that are in the local working copy. [Learn More](https://docs.gitlab.com/ci/yaml/#cache)",oneOf:[{$ref:"#/definitions/cache_item"},{type:"array",items:{$ref:"#/definitions/cache_item"}}]},cache_item:{type:"object",properties:{key:{markdownDescription:"Use the `cache:key` keyword to give each cache a unique identifying key. All jobs that use the same cache key use the same cache, including in different pipelines. Must be used with `cache:path`, or nothing is cached. [Learn More](https://docs.gitlab.com/ci/yaml/#cachekey).",oneOf:[{type:"string",pattern:"^[^/]*[^./][^/]*$"},{type:"object",properties:{files:{markdownDescription:"Use the `cache:key:files` keyword to generate a new cache key when specified file content changes. Cache keys remain stable across branches with identical file content. [Learn More](https://docs.gitlab.com/ci/yaml/#cachekeyfiles)",type:"array",items:{type:"string"},minItems:1,maxItems:2},files_commits:{markdownDescription:"Use the `cache:key:files_commits` keyword to generate a new cache key when the latest commit changes for the specified files. [Learn More](https://docs.gitlab.com/ci/yaml/#cachekeyfiles_commits)",type:"array",items:{type:"string"},minItems:1,maxItems:2},prefix:{markdownDescription:"Use `cache:key:prefix` to combine a prefix with the SHA computed for `cache:key:files` or `cache:key:files_commits`. [Learn More](https://docs.gitlab.com/ci/yaml/#cachekeyprefix)",type:"string"}}}]},paths:{type:"array",markdownDescription:"Use the `cache:paths` keyword to choose which files or directories to cache. [Learn More](https://docs.gitlab.com/ci/yaml/#cachepaths)",items:{type:"string"}},policy:{type:"string",markdownDescription:"Determines the strategy for downloading and updating the cache. [Learn More](https://docs.gitlab.com/ci/yaml/#cachepolicy)",default:"pull-push",pattern:"pull-push|pull|push|\\$\\w{1,255}"},unprotect:{type:"boolean",markdownDescription:"Use `unprotect: true` to set a cache to be shared between protected and unprotected branches.",default:!1},untracked:{type:"boolean",markdownDescription:"Use `untracked: true` to cache all files that are untracked in your Git repository. [Learn More](https://docs.gitlab.com/ci/yaml/#cacheuntracked)",default:!1},when:{type:"string",markdownDescription:"Defines when to save the cache, based on the status of the job. [Learn More](https://docs.gitlab.com/ci/yaml/#cachewhen).",default:"on_success",enum:["on_success","on_failure","always"]},fallback_keys:{type:"array",markdownDescription:"List of keys to download cache from if no cache hit occurred for key",items:{type:"string"},maxItems:5}}},filter_refs:{type:"array",description:"Filter job by different keywords that determine origin or state, or by supplying string/regex to check against branch/tag names.",items:{anyOf:[{oneOf:[{enum:["branches"],description:"When a branch is pushed."},{enum:["tags"],description:"When a tag is pushed."},{enum:["api"],description:"When a pipeline has been triggered by a second pipelines API (not triggers API)."},{enum:["external"],description:"When using CI services other than GitLab"},{enum:["pipelines"],description:"For multi-project triggers, created using the API with 'CI_JOB_TOKEN'."},{enum:["pushes"],description:"Pipeline is triggered by a `git push` by the user"},{enum:["schedules"],description:"For scheduled pipelines."},{enum:["triggers"],description:"For pipelines created using a trigger token."},{enum:["web"],description:"For pipelines created using *Run pipeline* button in GitLab UI (under your project's *Pipelines*)."}]},{type:"string",description:"String or regular expression to match against tag or branch names."}]}},filter:{oneOf:[{type:"null"},{$ref:"#/definitions/filter_refs"},{type:"object",additionalProperties:!1,properties:{refs:{$ref:"#/definitions/filter_refs"},kubernetes:{enum:["active"],description:"Filter job based on if Kubernetes integration is active."},variables:{type:"array",markdownDescription:"Filter job by checking comparing values of CI/CD variables. [Learn More](https://docs.gitlab.com/ci/jobs/job_control/#cicd-variable-expressions).",items:{type:"string"}},changes:{type:"array",description:"Filter job creation based on files that were modified in a git push.",items:{type:"string"}}}}]},retry:{markdownDescription:"Retry a job if it fails. Can be a simple integer or object definition. [Learn More](https://docs.gitlab.com/ci/yaml/#retry).",oneOf:[{$ref:"#/definitions/retry_max"},{type:"object",additionalProperties:!1,properties:{max:{$ref:"#/definitions/retry_max"},when:{markdownDescription:"Either a single or array of error types to trigger job retry. [Learn More](https://docs.gitlab.com/ci/yaml/#retrywhen).",oneOf:[{$ref:"#/definitions/retry_errors"},{type:"array",items:{$ref:"#/definitions/retry_errors"}}]},exit_codes:{markdownDescription:"Either a single or array of exit codes to trigger job retry on. [Learn More](https://docs.gitlab.com/ci/yaml/#retryexit_codes).",oneOf:[{description:"Retry when the job exit code is included in the array's values.",type:"array",minItems:1,uniqueItems:!0,items:{type:"integer"}},{description:"Retry when the job exit code is equal to.",type:"integer"}]}}}]},retry_max:{type:"integer",description:"The number of times the job will be retried if it fails. Defaults to 0 and can max be retried 2 times (3 times total).",default:0,minimum:0,maximum:2},retry_errors:{oneOf:[{const:"always",description:"Retry on any failure (default)."},{const:"unknown_failure",description:"Retry when the failure reason is unknown."},{const:"script_failure",description:"Retry when the script failed."},{const:"api_failure",description:"Retry on API failure."},{const:"stuck_or_timeout_failure",description:"Retry when the job got stuck or timed out."},{const:"runner_system_failure",description:"Retry if there is a runner system failure (for example, job setup failed)."},{const:"runner_unsupported",description:"Retry if the runner is unsupported."},{const:"stale_schedule",description:"Retry if a delayed job could not be executed."},{const:"job_execution_timeout",description:"Retry if the script exceeded the maximum execution time set for the job."},{const:"archived_failure",description:"Retry if the job is archived and can’t be run."},{const:"unmet_prerequisites",description:"Retry if the job failed to complete prerequisite tasks."},{const:"scheduler_failure",description:"Retry if the scheduler failed to assign the job to a runner."},{const:"data_integrity_failure",description:"Retry if there is an unknown job problem."}]},interruptible:{type:"boolean",markdownDescription:"Interruptible is used to indicate that a job should be canceled if made redundant by a newer pipeline run. [Learn More](https://docs.gitlab.com/ci/yaml/#interruptible).",default:!1},inputs:{markdownDescription:"Used to pass input values to included templates, components, downstream pipelines, or child pipelines. [Learn More](https://docs.gitlab.com/ci/inputs/).",type:"object",patternProperties:{"^[a-zA-Z0-9_-]+$":{description:"Input parameter value that matches parameter names defined in spec:inputs of the included configuration.",oneOf:[{type:"string",maxLength:1024},{type:"number"},{type:"boolean"},{type:"array",items:{oneOf:[{type:"string"},{type:"number"},{type:"boolean"},{type:"object",additionalProperties:!0},{type:"array",items:{additionalProperties:!0}}]}},{type:"object",additionalProperties:!0},{type:"null"}]}},additionalProperties:!1},job:{allOf:[{$ref:"#/definitions/job_template"}]},job_template:{type:"object",additionalProperties:!1,properties:{image:{$ref:"#/definitions/image"},services:{$ref:"#/definitions/services"},before_script:{$ref:"#/definitions/before_script"},after_script:{$ref:"#/definitions/after_script"},hooks:{$ref:"#/definitions/hooks"},rules:{$ref:"#/definitions/rules"},variables:{$ref:"#/definitions/jobVariables"},cache:{$ref:"#/definitions/cache"},id_tokens:{$ref:"#/definitions/id_tokens"},identity:{$ref:"#/definitions/identity"},inputs:{$ref:"#/definitions/jobInputs"},secrets:{$ref:"#/definitions/secrets"},script:{$ref:"#/definitions/script",markdownDescription:"Shell scripts executed by the Runner. The only required property of jobs. Be careful with special characters (e.g. `:`, `{`, `}`, `&`) and use single or double quotes to avoid issues. [Learn More](https://docs.gitlab.com/ci/yaml/#script)"},run:{$ref:"#/definitions/steps",markdownDescription:"Specifies a list of steps to execute in the job. The `run` keyword is an alternative to `script` and allows for more advanced job configuration. Each step is an object that defines a single task or command. Use either `run` or `script` in a job, but not both, otherwise the pipeline will error out."},stage:{description:"Define what stage the job will run in.",anyOf:[{type:"string",minLength:1},{type:"array",minItems:1,items:{type:"string"}}]},only:{$ref:"#/definitions/filter",description:"Job will run *only* when these filtering options match."},extends:{description:"The name of one or more jobs to inherit configuration from.",oneOf:[{type:"string"},{type:"array",items:{type:"string"},minItems:1}]},needs:{description:"The list of jobs in previous stages whose sole completion is needed to start the current job.",type:"array",items:{oneOf:[{type:"string"},{type:"object",additionalProperties:!1,properties:{job:{type:"string"},artifacts:{type:"boolean"},optional:{type:"boolean"},parallel:{$ref:"#/definitions/parallel_matrix"}},required:["job"]},{type:"object",additionalProperties:!1,properties:{pipeline:{type:"string"},job:{type:"string"},artifacts:{type:"boolean"},parallel:{$ref:"#/definitions/parallel_matrix"}},required:["job","pipeline"]},{type:"object",additionalProperties:!1,properties:{job:{type:"string"},project:{type:"string"},ref:{type:"string"},artifacts:{type:"boolean"},parallel:{$ref:"#/definitions/parallel_matrix"}},required:["job","project","ref"]},{$ref:"#/definitions/!reference"}]}},except:{$ref:"#/definitions/filter",description:"Job will run *except* for when these filtering options match."},tags:{$ref:"#/definitions/tags"},allow_failure:{$ref:"#/definitions/allow_failure"},timeout:{$ref:"#/definitions/timeout"},when:{$ref:"#/definitions/when"},start_in:{$ref:"#/definitions/start_in"},manual_confirmation:{markdownDescription:"Describes the Custom confirmation message for a manual job [Learn More](https://docs.gitlab.com/ci/yaml/#when).",type:"string"},dependencies:{type:"array",description:"Specify a list of job names from earlier stages from which artifacts should be loaded. By default, all previous artifacts are passed. Use an empty array to skip downloading artifacts.",items:{type:"string"}},artifacts:{$ref:"#/definitions/artifacts"},environment:{description:"Used to associate environment metadata with a deploy. Environment can have a name and URL attached to it, and will be displayed under /environments under the project.",oneOf:[{type:"string"},{type:"object",additionalProperties:!1,properties:{name:{type:"string",description:"The name of the environment, e.g. 'qa', 'staging', 'production'.",minLength:1},url:{type:"string",description:"When set, this will expose buttons in various places for the current environment in GitLab, that will take you to the defined URL.",format:"uri",pattern:"^(https?://.+|\\$[A-Za-z]+)"},on_stop:{type:"string",description:"The name of a job to execute when the environment is about to be stopped."},action:{enum:["start","prepare","stop","verify","access"],description:"Specifies what this job will do. 'start' (default) indicates the job will start the deployment. 'prepare'/'verify'/'access' indicates this will not affect the deployment. 'stop' indicates this will stop the deployment.",default:"start"},auto_stop_in:{type:"string",description:"The amount of time it should take before GitLab will automatically stop the environment. Supports a wide variety of formats, e.g. '1 week', '3 mins 4 sec', '2 hrs 20 min', '2h20min', '6 mos 1 day', '47 yrs 6 mos and 4d', '3 weeks and 2 days'."},kubernetes:{type:"object",description:"Used to configure the kubernetes deployment for this environment. This is currently not supported for kubernetes clusters that are managed by GitLab.",properties:{agent:{type:"string",description:"Specifies the GitLab Agent for Kubernetes. The format is `path/to/agent/project:agent-name`."},namespace:{type:"string",description:"Deprecated. Use `dashboard.namespace` instead. The kubernetes namespace where this environment's dashboard should be deployed to.",minLength:1},flux_resource_path:{type:"string",description:"Deprecated. Use `dashboard.flux_resource_path` instead. The Flux resource path to associate with this environment. This must be the full resource path. For example, 'helm.toolkit.fluxcd.io/v2/namespaces/gitlab-agent/helmreleases/gitlab-agent'."},managed_resources:{type:"object",description:"Used to configure the managed resources for this environment.",properties:{enabled:{type:"boolean",description:"Indicates whether the managed resources are enabled for this environment.",default:!0}}},dashboard:{type:"object",description:"Used to configure the dashboard for this environment.",properties:{namespace:{type:"string",description:"The kubernetes namespace where the dashboard for this environment should be deployed to.",minLength:1},flux_resource_path:{type:"string",description:"The Flux resource path to associate with this environment. This must be the full resource path. For example, 'helm.toolkit.fluxcd.io/v2/namespaces/gitlab-agent/helmreleases/gitlab-agent'."}}}}},deployment_tier:{type:"string",description:"Explicitly specifies the tier of the deployment environment if non-standard environment name is used."}},required:["name"]}]},release:{type:"object",description:"Indicates that the job creates a Release.",additionalProperties:!1,properties:{tag_name:{type:"string",description:"The tag_name must be specified. It can refer to an existing Git tag or can be specified by the user.",minLength:1},tag_message:{type:"string",description:"Message to use if creating a new annotated tag."},description:{type:"string",description:"Specifies the longer description of the Release.",minLength:1},name:{type:"string",description:"The Release name. If omitted, it is populated with the value of release: tag_name."},ref:{type:"string",description:"If the release: tag_name doesn’t exist yet, the release is created from ref. ref can be a commit SHA, another tag name, or a branch name."},milestones:{type:"array",description:"The title of each milestone the release is associated with.",items:{type:"string"}},released_at:{type:"string",description:"The date and time when the release is ready. Defaults to the current date and time if not defined. Should be enclosed in quotes and expressed in ISO 8601 format.",format:"date-time",pattern:"^(?:[1-9]\\d{3}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1\\d|2[0-8])|(?:0[13-9]|1[0-2])-(?:29|30)|(?:0[13578]|1[02])-31)|(?:[1-9]\\d(?:0[48]|[2468][048]|[13579][26])|(?:[2468][048]|[13579][26])00)-02-29)T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:Z|[+-][01]\\d:[0-5]\\d)$"},assets:{type:"object",additionalProperties:!1,properties:{links:{type:"array",description:"Include asset links in the release.",items:{type:"object",additionalProperties:!1,properties:{name:{type:"string",description:"The name of the link.",minLength:1},url:{type:"string",description:"The URL to download a file.",minLength:1},filepath:{type:"string",description:"The redirect link to the url."},link_type:{type:"string",description:"The content kind of what users can download via url.",enum:["runbook","package","image","other"]}},required:["name","url"]},minItems:1}},required:["links"]}},required:["tag_name","description"]},coverage:{type:"string",description:"Must be a regular expression, optionally but recommended to be quoted, and must be surrounded with '/'. Example: '/Code coverage: \\d+\\.\\d+/'",format:"regex",pattern:"^/.+/$"},retry:{$ref:"#/definitions/retry"},parallel:{$ref:"#/definitions/parallel"},interruptible:{$ref:"#/definitions/interruptible"},resource_group:{type:"string",description:"Limit job concurrency. Can be used to ensure that the Runner will not run certain jobs simultaneously."},trigger:{markdownDescription:"Trigger allows you to define downstream pipeline trigger. When a job created from trigger definition is started by GitLab, a downstream pipeline gets created. [Learn More](https://docs.gitlab.com/ci/yaml/#trigger).",oneOf:[{type:"object",markdownDescription:"Trigger a multi-project pipeline. [Learn More](https://docs.gitlab.com/ci/pipelines/downstream_pipelines/#multi-project-pipelines).",additionalProperties:!1,properties:{project:{description:"Path to the project, e.g. `group/project`, or `group/sub-group/project`.",type:"string",pattern:"(?:\\S/\\S|\\$\\S+)"},branch:{description:"The branch name that a downstream pipeline will use",type:"string"},strategy:{description:"You can mirror or depend on the pipeline status from the triggered pipeline to the source bridge job by using strategy: `depend` or `mirror`",type:"string",enum:["depend","mirror"]},inputs:{$ref:"#/definitions/inputs"},forward:{description:"Specify what to forward to the downstream pipeline.",type:"object",additionalProperties:!1,properties:{yaml_variables:{type:"boolean",description:"Variables defined in the trigger job are passed to downstream pipelines.",default:!0},pipeline_variables:{type:"boolean",description:"Variables added for manual pipeline runs and scheduled pipelines are passed to downstream pipelines.",default:!1}}}},required:["project"],dependencies:{branch:["project"]}},{type:"object",description:"Trigger a child pipeline. [Learn More](https://docs.gitlab.com/ci/pipelines/downstream_pipelines/#parent-child-pipelines).",additionalProperties:!1,properties:{include:{oneOf:[{description:"Relative path from local repository root (`/`) to the local YAML file to define the pipeline configuration.",type:"string",format:"uri-reference",pattern:"\\.ya?ml$"},{type:"array",description:"References a local file or an artifact from another job to define the pipeline configuration.",maxItems:3,items:{oneOf:[{type:"object",additionalProperties:!1,properties:{local:{description:"Relative path from local repository root (`/`) to the local YAML file to define the pipeline configuration.",type:"string",format:"uri-reference",pattern:"\\.ya?ml$"},inputs:{$ref:"#/definitions/inputs"}},required:["local"]},{type:"object",additionalProperties:!1,properties:{template:{description:"Name of the template YAML file to use in the pipeline configuration.",type:"string",format:"uri-reference",pattern:"\\.ya?ml$"},inputs:{$ref:"#/definitions/inputs"}},required:["template"]},{type:"object",additionalProperties:!1,properties:{artifact:{description:"Relative path to the generated YAML file which is extracted from the artifacts and used as the configuration for triggering the child pipeline.",type:"string",format:"uri-reference",pattern:"\\.ya?ml$"},job:{description:"Job name which generates the artifact",type:"string"},inputs:{$ref:"#/definitions/inputs"}},required:["artifact","job"]},{type:"object",additionalProperties:!1,properties:{project:{description:"Path to another private project under the same GitLab instance, like `group/project` or `group/sub-group/project`.",type:"string",pattern:"(?:\\S/\\S|\\$\\S+)"},ref:{description:"Branch/Tag/Commit hash for the target project.",minLength:1,type:"string"},file:{description:"Relative path from repository root (`/`) to the pipeline configuration YAML file.",type:"string",format:"uri-reference",pattern:"\\.ya?ml$"},inputs:{$ref:"#/definitions/inputs"}},required:["project","file"]},{type:"object",additionalProperties:!1,properties:{component:{description:"Local path to component directory or full path to external component directory.",type:"string",format:"uri-reference"},inputs:{$ref:"#/definitions/inputs"}},required:["component"]},{type:"object",additionalProperties:!1,properties:{remote:{description:"URL to a `yaml`/`yml` template file using HTTP/HTTPS.",type:"string",format:"uri-reference",pattern:"^https?://.+\\.ya?ml$"},inputs:{$ref:"#/definitions/inputs"}},required:["remote"]}]}}]},strategy:{description:"You can mirror or depend on the pipeline status from the triggered pipeline to the source bridge job by using strategy: `depend` or `mirror`",type:"string",enum:["depend","mirror"]},forward:{description:"Specify what to forward to the downstream pipeline.",type:"object",additionalProperties:!1,properties:{yaml_variables:{type:"boolean",description:"Variables defined in the trigger job are passed to downstream pipelines.",default:!0},pipeline_variables:{type:"boolean",description:"Variables added for manual pipeline runs and scheduled pipelines are passed to downstream pipelines.",default:!1}}}}},{markdownDescription:"Path to the project, e.g. `group/project`, or `group/sub-group/project`. [Learn More](https://docs.gitlab.com/ci/yaml/#trigger).",type:"string",pattern:"(?:\\S/\\S|\\$\\S+)"}]},inherit:{type:"object",markdownDescription:"Controls inheritance of globally-defined defaults and variables. Boolean values control inheritance of all default: or variables: keywords. To inherit only a subset of default: or variables: keywords, specify what you wish to inherit. Anything not listed is not inherited. [Learn More](https://docs.gitlab.com/ci/yaml/#inherit).",properties:{default:{markdownDescription:"Whether to inherit all globally-defined defaults or not. Or subset of inherited defaults. [Learn more](https://docs.gitlab.com/ci/yaml/#inheritdefault).",oneOf:[{type:"boolean"},{type:"array",items:{type:"string",enum:["after_script","artifacts","before_script","cache","image","interruptible","retry","services","tags","timeout"]}}]},variables:{markdownDescription:"Whether to inherit all globally-defined variables or not. Or subset of inherited variables. [Learn More](https://docs.gitlab.com/ci/yaml/#inheritvariables).",oneOf:[{type:"boolean"},{type:"array",items:{type:"string"}}]}},additionalProperties:!1},publish:{description:"Deprecated. Use `pages.publish` instead. A path to a directory that contains the files to be published with Pages.",type:"string"},pages:{oneOf:[{type:"object",additionalProperties:!1,properties:{path_prefix:{type:"string",markdownDescription:"The GitLab Pages URL path prefix used in this version of pages. The given value is converted to lowercase, shortened to 63 bytes, and everything except alphanumeric characters is replaced with a hyphen. Leading and trailing hyphens are not permitted."},expire_in:{type:"string",markdownDescription:"How long the deployment should be active. Deployments that have expired are no longer available on the web. Supports a wide variety of formats, e.g. '1 week', '3 mins 4 sec', '2 hrs 20 min', '2h20min', '6 mos 1 day', '47 yrs 6 mos and 4d', '3 weeks and 2 days'. Set to 'never' to prevent extra deployments from expiring. [Learn More](https://docs.gitlab.com/ci/yaml/#pagesexpire_in)."},publish:{type:"string",markdownDescription:"A path to a directory that contains the files to be published with Pages."}}},{type:"boolean",markdownDescription:"Whether this job should trigger a Pages deploy (Replaces the need to name the job `pages`)",default:!1}]}},oneOf:[{properties:{when:{enum:["delayed"]}},required:["when","start_in"]},{properties:{when:{not:{enum:["delayed"]}}}}]},tags:{type:"array",minItems:1,markdownDescription:"Used to select runners from the list of available runners. A runner must have all tags listed here to run the job. [Learn More](https://docs.gitlab.com/ci/yaml/#tags).",items:{anyOf:[{type:"string",minLength:1},{type:"array",minItems:1,items:{type:"string"}}]}},hooks:{type:"object",markdownDescription:"Specifies lists of commands to execute on the runner at certain stages of job execution. [Learn More](https://docs.gitlab.com/ci/yaml/#hooks).",properties:{pre_get_sources_script:{$ref:"#/definitions/optional_script",markdownDescription:"Specifies a list of commands to execute on the runner before updating the Git repository and any submodules. [Learn More](https://docs.gitlab.com/ci/yaml/#hookspre_get_sources_script)."}},additionalProperties:!1},step:{description:"Any of these step use cases are valid.",oneOf:[{description:"Run a referenced step.",type:"object",additionalProperties:!1,required:["name","step"],properties:{name:{$ref:"#/definitions/stepName"},env:{$ref:"#/definitions/stepNamedStrings"},inputs:{$ref:"#/definitions/stepNamedValues"},step:{oneOf:[{type:"string"},{$ref:"#/definitions/stepGitReference"},{$ref:"#/definitions/stepOciReference"}]}}},{description:"Run a sequence of steps.",oneOf:[{type:"object",additionalProperties:!1,required:["run"],properties:{env:{$ref:"#/definitions/stepNamedStrings"},run:{type:"array",items:{$ref:"#/definitions/step"}},outputs:{$ref:"#/definitions/stepNamedValues"},delegate:{type:"string"}}}]},{description:"Run an action.",type:"object",additionalProperties:!1,required:["name","action"],properties:{name:{$ref:"#/definitions/stepName"},env:{$ref:"#/definitions/stepNamedStrings"},inputs:{$ref:"#/definitions/stepNamedValues"},action:{type:"string",minLength:1}}},{description:"Run a script.",type:"object",additionalProperties:!1,required:["name","script"],properties:{name:{$ref:"#/definitions/stepName"},env:{$ref:"#/definitions/stepNamedStrings"},script:{type:"string",minLength:1}}},{description:"Exec a binary.",type:"object",additionalProperties:!1,required:["exec"],properties:{env:{$ref:"#/definitions/stepNamedStrings"},exec:{description:"Exec is a command to run.",$ref:"#/definitions/stepExec"}}}]},stepName:{type:"string",pattern:"^[a-zA-Z_][a-zA-Z0-9_]*$"},stepNamedStrings:{type:"object",patternProperties:{"^[a-zA-Z_][a-zA-Z0-9_]*$":{type:"string"}},additionalProperties:!1},stepNamedValues:{type:"object",patternProperties:{"^[a-zA-Z_][a-zA-Z0-9_]*$":{type:["string","number","boolean","null","array","object"]}},additionalProperties:!1},stepGitReference:{type:"object",description:"GitReference is a reference to a step in a Git repository.",additionalProperties:!1,required:["git"],properties:{git:{type:"object",additionalProperties:!1,required:["url","rev"],properties:{url:{type:"string"},dir:{type:"string"},rev:{type:"string"},file:{type:"string"}}}}},stepOciReference:{type:"object",description:"OCIReference is a reference to a step hosted in an OCI repository.",additionalProperties:!1,required:["oci"],properties:{oci:{type:"object",additionalProperties:!1,required:["registry","repository","tag"],properties:{registry:{type:"string",description:"The <host>[:<port>] of the container registry server.",examples:["registry.gitlab.com"]},repository:{type:"string",description:"A path within the registry containing related OCI images. Typically the namespace, project, and image name.",examples:["my_group/my_project/image"]},tag:{type:"string",description:"A pointer to the image manifest hosted in the OCI repository.",examples:["latest","1","1.5","1.5.0"]},dir:{type:"string",description:"A directory inside the OCI image where the step can be found.",examples:["/my_steps/hello_world"]},file:{type:"string",description:"The name of the file that defines the step, defaults to step.yml.",examples:["step.yml"]}}}}},stepExec:{type:"object",additionalProperties:!1,required:["command"],properties:{command:{type:"array",description:"Command are the parameters to the system exec API. It does not invoke a shell.",items:{type:"string"},minItems:1},work_dir:{type:"string",description:"WorkDir is the working directly in which `command` will be exec'ed."}}}}};delete FF.definitions.include_item.oneOf[0].pattern;delete FF.definitions.cache_item.properties.key.oneOf[0].pattern;FF.definitions.job_template.properties.gclInjectSSHAgent={type:"boolean"};FF.definitions.job_template.properties.gclInteractive={type:"boolean"};FF.definitions.job_template.properties.gclArtifactsToSource={type:"boolean"};FF.definitions.job_template.properties.gclDescription={type:"string"};var pN=FF;var aN=M0(oN(),1),Su0=/"/g,Tu0=/NOT/g,yu0=/\//g,sN={enum:1,type:0},rN=(u)=>{return u.replace(yu0,".")},bu0=(u)=>{return u.replace(Su0,"'").replace(Tu0,"not")},bz=(u)=>{return u.split("/").pop()},Ru0=({object:u,pnter:D,fallback:F})=>{try{return aN.default.get(u,D)??F}catch{return F}},ku0=(u)=>{let D={};return u.forEach((F)=>{let $=F.instancePath+(F.params?.additionalProperty??F.params?.missingProperty??""),B=D[$];if(!B)return D[$]=F,D;let z=sN[F.keyword]??0,Z=sN[B.keyword]??0;if(z>Z)D[$]=F}),Object.values(D)},tN=({errors:u,data:D,basePath:F=""})=>{if(!Array.isArray(u)||!u?.length)return[];return ku0(u).map((B)=>{let z=F?rN(F+B.instancePath):rN(B.instancePath).substring(1),Z=bz(B.instancePath),q=B.schemaPath,Q=`${Z?`property '${Z}'`:z} ${bu0(B.message)}`,W;switch(B.keyword){case"additionalProperties":{W={message:`'${B.params.additionalProperty}' property is not expected to be here`,path:z,schemaPath:q};break}case"enum":{let J=B.params.allowedValues.map((H)=>H.toString()),G=bz(B.instancePath),K=Ru0({object:D,pnter:B.instancePath,fallback:""});W={message:`'${G}' property must be one of [${J.join(", ")}] (found ${K})`,path:z,schemaPath:q};break}case"type":{let J=bz(B.instancePath),G=B.params.type;W={message:`'${J}' property type must be ${G}`,path:z,schemaPath:q};break}case"required":{W={message:`${z} must have required property '${B.params.missingProperty}'`,path:z,schemaPath:q};break}case"const":return{message:`'${Z}' property must be equal to the allowed value`,path:z,schemaPath:q};default:W={message:Q,path:z,schemaPath:q}}let Y=Object.entries(W);for(let[J,G]of Y)if(G===null||G===void 0||G==="")delete W[J];return W})};var h5={};c3(h5,{synchronizedOutput:()=>KD0,setCwd:()=>LD0,scrollUp:()=>ZD0,scrollDown:()=>qD0,link:()=>fD0,image:()=>VD0,iTerm:()=>zj,exitAlternativeScreen:()=>GD0,eraseUp:()=>zD0,eraseStartLine:()=>$D0,eraseScreen:()=>k5,eraseLines:()=>DD0,eraseLine:()=>Fj,eraseEndLine:()=>FD0,eraseDown:()=>BD0,enterAlternativeScreen:()=>JD0,endSynchronizedOutput:()=>Bj,cursorUp:()=>uj,cursorTo:()=>nu0,cursorShow:()=>uD0,cursorSavePosition:()=>ou0,cursorRestorePosition:()=>su0,cursorPrevLine:()=>tu0,cursorNextLine:()=>au0,cursorMove:()=>pu0,cursorLeft:()=>Dj,cursorHide:()=>eu0,cursorGetPosition:()=>ru0,cursorForward:()=>gu0,cursorDown:()=>lu0,cursorBackward:()=>du0,clearViewport:()=>QD0,clearTerminal:()=>YD0,clearScreen:()=>XD0,beginSynchronizedOutput:()=>$j,beep:()=>HD0,ConEmu:()=>Zj});import s6 from"node:process";import hu0 from"node:os";var o6=globalThis.window?.document!==void 0,MQ0=globalThis.process?.versions?.node!==void 0,xQ0=globalThis.process?.versions?.bun!==void 0,OQ0=globalThis.Deno?.version?.deno!==void 0,AQ0=globalThis.process?.versions?.electron!==void 0,wQ0=globalThis.navigator?.userAgent?.includes("jsdom")===!0,NQ0=typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope,jQ0=typeof DedicatedWorkerGlobalScope<"u"&&globalThis instanceof DedicatedWorkerGlobalScope,IQ0=typeof SharedWorkerGlobalScope<"u"&&globalThis instanceof SharedWorkerGlobalScope,EQ0=typeof ServiceWorkerGlobalScope<"u"&&globalThis instanceof ServiceWorkerGlobalScope,_4=globalThis.navigator?.userAgentData?.platform,PQ0=_4==="macOS"||globalThis.navigator?.platform==="MacIntel"||globalThis.navigator?.userAgent?.includes(" Mac ")===!0||globalThis.process?.platform==="darwin",CQ0=_4==="Windows"||globalThis.navigator?.platform==="Win32"||globalThis.process?.platform==="win32",_Q0=_4==="Linux"||globalThis.navigator?.platform?.startsWith("Linux")===!0||globalThis.navigator?.userAgent?.includes(" Linux ")===!0||globalThis.process?.platform==="linux",UQ0=_4==="iOS"||globalThis.navigator?.platform==="MacIntel"&&globalThis.navigator?.maxTouchPoints>1||/iPad|iPhone|iPod/.test(globalThis.navigator?.platform),iQ0=_4==="Android"||globalThis.navigator?.platform==="Android"||globalThis.navigator?.userAgent?.includes(" Android ")===!0||globalThis.process?.platform==="android";var T0="\x1B[",r6="\x1B]",nF="\x07",U4=";",eN=!o6&&s6.env.TERM_PROGRAM==="Apple_Terminal",cu0=!o6&&s6.platform==="win32",mu0=!o6&&(s6.env.TERM?.startsWith("screen")||s6.env.TERM?.startsWith("tmux")||s6.env.TMUX!==void 0),Rz=o6?()=>{throw Error("`process.cwd()` only works in Node.js, not the browser.")}:s6.cwd,a6=(u)=>{if(mu0)return"\x1BPtmux;"+u.replaceAll("\x1B","\x1B\x1B")+"\x1B\\";return u},nu0=(u,D)=>{if(typeof u!=="number")throw TypeError("The `x` argument is required");if(typeof D!=="number")return T0+(u+1)+"G";return T0+(D+1)+U4+(u+1)+"H"},pu0=(u,D)=>{if(typeof u!=="number")throw TypeError("The `x` argument is required");let F="";if(u<0)F+=T0+-u+"D";else if(u>0)F+=T0+u+"C";if(D<0)F+=T0+-D+"A";else if(D>0)F+=T0+D+"B";return F},uj=(u=1)=>T0+u+"A",lu0=(u=1)=>T0+u+"B",gu0=(u=1)=>T0+u+"C",du0=(u=1)=>T0+u+"D",Dj=T0+"G",ou0=eN?"\x1B7":T0+"s",su0=eN?"\x1B8":T0+"u",ru0=T0+"6n",au0=T0+"E",tu0=T0+"F",eu0=T0+"?25l",uD0=T0+"?25h",DD0=(u)=>{let D="";for(let F=0;F<u;F++)D+=Fj+(F<u-1?uj():"");if(u)D+=Dj;return D},FD0=T0+"K",$D0=T0+"1K",Fj=T0+"2K",BD0=T0+"J",zD0=T0+"1J",k5=T0+"2J",ZD0=T0+"S",qD0=T0+"T",XD0="\x1Bc",QD0=`${k5}${T0}H`,WD0=()=>{if(o6||!cu0)return!1;let u=hu0.release().split("."),D=Number(u[0]),F=Number(u[2]??0);if(D<10)return!0;if(D===10&&F<10586)return!0;return!1},YD0=WD0()?`${k5}${T0}0f`:`${k5}${T0}3J${T0}H`,JD0=T0+"?1049h",GD0=T0+"?1049l",$j=T0+"?2026h",Bj=T0+"?2026l",KD0=(u)=>$j+u+Bj,HD0=nF,fD0=(u,D)=>{let F=a6(`${r6}8${U4}${U4}${D}${nF}`),$=a6(`${r6}8${U4}${U4}${nF}`);return F+u+$},VD0=(u,D={})=>{let F=`${r6}1337;File=inline=1`;if(D.width)F+=`;width=${D.width}`;if(D.height)F+=`;height=${D.height}`;if(D.preserveAspectRatio===!1)F+=";preserveAspectRatio=0";let $=Buffer.from(u);return a6(F+`;size=${$.byteLength}:`+$.toString("base64")+nF)},zj={setCwd:(u=Rz())=>a6(`${r6}50;CurrentDir=${u}${nF}`),annotation(u,D={}){let F=`${r6}1337;`,$=D.x!==void 0,B=D.y!==void 0;if(($||B)&&!($&&B&&D.length!==void 0))throw Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");if(u=u.replaceAll("|",""),F+=D.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",D.length>0)F+=($?[u,D.length,D.x,D.y]:[D.length,u]).join("|");else F+=u;return a6(F+nF)}},Zj={setCwd:(u=Rz())=>a6(`${r6}9;9;${u}${nF}`)},LD0=(u=Rz())=>zj.setCwd(u)+Zj.setCwd(u);hz();import v4 from"node:process";import jD0 from"process";function $F(u,D=jD0.argv){let F=u.startsWith("-")?"":u.length===1?"-":"--",$=D.indexOf(F+u),B=D.indexOf("--");return $!==-1&&(B===-1||$<B)}function Qj(u=""){if(/^\d{3,4}$/.test(u)){let F=/(\d{1,2})(\d{2})/.exec(u)??[];return{major:0,minor:Number.parseInt(F[1],10),patch:Number.parseInt(F[2],10)}}let D=(u??"").split(".").map((F)=>Number.parseInt(F,10));return{major:D[0],minor:D[1],patch:D[2]}}function Wj(u){let{CI:D,CURSOR_TRACE_ID:F,FORCE_HYPERLINK:$,NETLIFY:B,TEAMCITY_VERSION:z,TERM_PROGRAM:Z,TERM_PROGRAM_VERSION:q,VTE_VERSION:X,TERM:Q}=v4.env;if($)return!($.length>0&&Number.parseInt($,10)===0);if($F("no-hyperlink")||$F("no-hyperlinks")||$F("hyperlink=false")||$F("hyperlink=never"))return!1;if($F("hyperlink=true")||$F("hyperlink=always"))return!0;if(B)return!0;if(!i4(u))return!1;if(u&&!u.isTTY)return!1;if("WT_SESSION"in v4.env)return!0;if(v4.platform==="win32")return!1;if(D)return!1;if(z)return!1;if(Z){let W=Qj(q);switch(Z){case"iTerm.app":{if(W.major===3)return W.minor>=1;return W.major>3}case"WezTerm":{if(/^0-unstable-\d{4}-\d{2}-\d{2}$/.test(q))return q.slice(11)>="2020-06-20";return W.major>=20200620}case"vscode":{if(F)return!0;return W.major>1||W.major===1&&W.minor>=72}case"ghostty":return!0;case"zed":return!0}}if(X){if(X==="0.50.0")return!1;let W=Qj(X);return W.major>0||W.minor>=50}switch(Q){case"alacritty":return!0;case"xterm-kitty":return!0}return!1}var ID0={stdout:Wj(v4.stdout),stderr:Wj(v4.stderr)},m5=ID0;function z1(u,D,{target:F="stdout",...$}={}){if(!m5[F]){if($.fallback===!1)return u;if(typeof $.fallback==="function")return $.fallback(u,D);return`${u} ${D}`}return h5.link(u,D)}z1.isSupported=m5.stdout;z1.stderr=(u,D,F={})=>z1(u,D,{target:"stderr",...F});z1.stderr.isSupported=m5.stderr;var Yj=5;class pF{static jsonSchemaValidation({pathToExpandedGitLabCi:u,gitLabCiConfig:D,argv:F}){let B=new Jj.default({verbose:!0,allErrors:!0,allowUnionTypes:!0,validateFormats:!1,strictTypes:!1,keywords:["markdownDescription"]}).compile(pN),z=B(D);if(z)return;let Z=tN({data:D,errors:B.errors}).filter((X)=>!F.ignoreSchemaPaths.includes(X.schemaPath)),q="";for(let X=0,Q=Z.length;X<Q;X++){if(X+1>Yj){q+=` ... and ${Q-Yj} more`;break}q+=S`\t• {redBright ${Z[X].message}} at {blueBright ${Z[X].path}} {grey [${Z[X].schemaPath}]}\n`}lD(z||Z.length==0,S`
|
|
242
|
+
{reset Invalid .gitlab-ci.yml configuration!
|
|
243
|
+
${q.trimEnd()}
|
|
244
|
+
|
|
245
|
+
For further troubleshooting, consider either of the following:
|
|
246
|
+
\t• Copy the content of {blueBright ${z1(".gitlab-ci-local/expanded-gitlab-ci.yml",u)}} to the ${z1("pipeline editor","https://docs.gitlab.com/ee/ci/pipeline_editor/")} to debug it
|
|
247
|
+
\t• Use --ignore-schema-paths "#/definitions/tags/minItems" --ignore-schema-paths "#/additionalProperties" to partially disable certain validation rule
|
|
248
|
+
\t• Use --json-schema-validation=false to disable schema validation (not recommended)}
|
|
249
|
+
`)}static needs(u,D){let F=[];for(let $ of u){if($.needs===null||$.needs.length===0)continue;for(let[B,z]of $.needs.entries()){if(z.pipeline){F.push(`${$.name}.needs[${B}].job:${z.job} ignored, pipeline key not supported`);continue}if(z.project){F.push(`${$.name}.needs[${B}] ignored, project key not supported`);continue}let Z=u.find((Q)=>Q.baseName===z.job);if(z.optional&&!Z)continue;lD(Z!=null,S`needs: [{blueBright ${z.job}}] for {blueBright ${$.baseName}} could not be found`);let q=D.indexOf(Z.stage),X=D.indexOf($.stage);lD(q<=X,S`needs: [{blueBright ${Z.name}}] for {blueBright ${$.name}} is in a future stage`)}}return F}static dependencies(u,D){for(let F of u){if(F.dependencies===null||F.dependencies.length===0)continue;let $=F.dependencies.filter((B)=>!u.some((z)=>z.baseName===B));lD($.length!==F.dependencies.length,S`dependencies: [{blueBright ${$.join(",")}}] for {blueBright ${F.name}} cannot be found`);for(let B of F.dependencies){let z=u.find((X)=>X.baseName===B);lD(z!=null,S`dependencies: [{blueBright ${B}}] for {blueBright ${F.baseName}} could not be found`);let Z=D.indexOf(z.stage),q=D.indexOf(F.stage);lD(Z<=q,S`dependencies: [{blueBright ${z.name}}] for {blueBright ${F.name}} is in a future stage`)}}}static dependenciesContainment(u){for(let D of u){let{needs:F,dependencies:$}=D;if(F&&F.length===0)continue;if(!$||!F)continue;let B=$.every((Z)=>{return F.some((q)=>q.job===Z)}),z=`${D.formattedJobName} needs: '${F.map((Z)=>Z.job).join(",")}' doesn't fully contain dependencies: '${$.join(",")}'`;lD(B,z)}}static potentialIllegalJobName(u){let D=[];for(let F of u)if(new Set(["types","true","false","nil"]).has(F))D.push(`Job name "${F}" is a reserved keyword. (https://docs.gitlab.com/ee/ci/jobs/#job-name-limitations)`);return D}static scriptBlank(u){for(let D of u){if(D.trigger)continue;lD(D.scripts.length>0,S`{blue ${D.name}} has empty script`)}}static arrayOfStrings(u){for(let D of u){if(D.trigger)continue;D.beforeScripts.forEach((F)=>lD(typeof F==="string",S`{blue ${D.name}} before_script contains non string value`)),D.afterScripts.forEach((F)=>lD(typeof F==="string",S`{blue ${D.name}} after_script contains non string value`)),D.scripts.forEach((F)=>lD(typeof F==="string",S`{blue ${D.name}} script contains non string value`))}}static async run(u,D){let F=[];return this.scriptBlank(u),this.arrayOfStrings(u),F.push(...this.needs(u,D)),this.dependencies(u,D),this.dependenciesContainment(u),F.push(...this.potentialIllegalJobName(u.map(($)=>$.baseName))),F.push(...this.artifacts(u)),F}static artifacts(u){let D=[];for(let F of u)if(F.artifacts===null)D.push(`${F.name}.artifacts is null, ignoring.`);return D}}var Gj=M0(Q6(),1);import ED0 from"assert";function S4(u){return Number.isInteger(u.parallel)}function n5(u,D){if(S4(u))return Array(u.parallel).fill(null);if(u?.parallel?.matrix==null)return[null];ED0(Array.isArray(u.parallel.matrix),`${D} parallel.matrix is not an array`);let F=[];for(let B of u.parallel.matrix)for(let[z,Z]of Object.entries(B))B[z]=Array.isArray(Z)?Z:[Z];let $=Gj.default({},u);for(let B of $.parallel.matrix){let z=0,Z=[];while(Object.keys(B).length>0&&z<100){let X=Object.keys(B)[0],Q=B[X];delete B[X];let W=Z.length>0?[...Z]:[{}];Z=[];for(let Y of W)for(let J of Q){let G={...Y};G[X]=J,Z.push(G)}z++}F.push(...Z)}return F}var JD=M0(du(),1);import I1,{AssertionError as Y7}from"assert";function T4(u,D){return function(){return u.apply(D,arguments)}}var{toString:PD0}=Object.prototype,{getPrototypeOf:mz}=Object,{iterator:l5,toStringTag:fj}=Symbol,g5=((u)=>(D)=>{let F=PD0.call(D);return u[F]||(u[F]=F.slice(8,-1).toLowerCase())})(Object.create(null)),gD=(u)=>{return u=u.toLowerCase(),(D)=>g5(D)===u},d5=(u)=>(D)=>typeof D===u,{isArray:e6}=Array,t6=d5("undefined");function y4(u){return u!==null&&!t6(u)&&u.constructor!==null&&!t6(u.constructor)&&FD(u.constructor.isBuffer)&&u.constructor.isBuffer(u)}var Vj=gD("ArrayBuffer");function CD0(u){let D;if(typeof ArrayBuffer<"u"&&ArrayBuffer.isView)D=ArrayBuffer.isView(u);else D=u&&u.buffer&&Vj(u.buffer);return D}var _D0=d5("string"),FD=d5("function"),Lj=d5("number"),b4=(u)=>u!==null&&typeof u==="object",UD0=(u)=>u===!0||u===!1,p5=(u)=>{if(g5(u)!=="object")return!1;let D=mz(u);return(D===null||D===Object.prototype||Object.getPrototypeOf(D)===null)&&!(fj in u)&&!(l5 in u)},iD0=(u)=>{if(!b4(u)||y4(u))return!1;try{return Object.keys(u).length===0&&Object.getPrototypeOf(u)===Object.prototype}catch(D){return!1}},vD0=gD("Date"),SD0=gD("File"),TD0=gD("Blob"),yD0=gD("FileList"),bD0=(u)=>b4(u)&&FD(u.pipe),RD0=(u)=>{let D;return u&&(typeof FormData==="function"&&u instanceof FormData||FD(u.append)&&((D=g5(u))==="formdata"||D==="object"&&FD(u.toString)&&u.toString()==="[object FormData]"))},kD0=gD("URLSearchParams"),[hD0,cD0,mD0,nD0]=["ReadableStream","Request","Response","Headers"].map(gD),pD0=(u)=>u.trim?u.trim():u.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function R4(u,D,{allOwnKeys:F=!1}={}){if(u===null||typeof u>"u")return;let $,B;if(typeof u!=="object")u=[u];if(e6(u))for($=0,B=u.length;$<B;$++)D.call(null,u[$],$,u);else{if(y4(u))return;let z=F?Object.getOwnPropertyNames(u):Object.keys(u),Z=z.length,q;for($=0;$<Z;$++)q=z[$],D.call(null,u[q],q,u)}}function Mj(u,D){if(y4(u))return null;D=D.toLowerCase();let F=Object.keys(u),$=F.length,B;while($-- >0)if(B=F[$],D===B.toLowerCase())return B;return null}var lF=(()=>{if(typeof globalThis<"u")return globalThis;return typeof self<"u"?self:typeof window<"u"?window:global})(),xj=(u)=>!t6(u)&&u!==lF;function cz(){let{caseless:u,skipUndefined:D}=xj(this)&&this||{},F={},$=(B,z)=>{if(z==="__proto__"||z==="constructor"||z==="prototype")return;let Z=u&&Mj(F,z)||z;if(p5(F[Z])&&p5(B))F[Z]=cz(F[Z],B);else if(p5(B))F[Z]=cz({},B);else if(e6(B))F[Z]=B.slice();else if(!D||!t6(B))F[Z]=B};for(let B=0,z=arguments.length;B<z;B++)arguments[B]&&R4(arguments[B],$);return F}var lD0=(u,D,F,{allOwnKeys:$}={})=>{return R4(D,(B,z)=>{if(F&&FD(B))Object.defineProperty(u,z,{value:T4(B,F),writable:!0,enumerable:!0,configurable:!0});else Object.defineProperty(u,z,{value:B,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:$}),u},gD0=(u)=>{if(u.charCodeAt(0)===65279)u=u.slice(1);return u},dD0=(u,D,F,$)=>{u.prototype=Object.create(D.prototype,$),Object.defineProperty(u.prototype,"constructor",{value:u,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(u,"super",{value:D.prototype}),F&&Object.assign(u.prototype,F)},oD0=(u,D,F,$)=>{let B,z,Z,q={};if(D=D||{},u==null)return D;do{B=Object.getOwnPropertyNames(u),z=B.length;while(z-- >0)if(Z=B[z],(!$||$(Z,u,D))&&!q[Z])D[Z]=u[Z],q[Z]=!0;u=F!==!1&&mz(u)}while(u&&(!F||F(u,D))&&u!==Object.prototype);return D},sD0=(u,D,F)=>{if(u=String(u),F===void 0||F>u.length)F=u.length;F-=D.length;let $=u.indexOf(D,F);return $!==-1&&$===F},rD0=(u)=>{if(!u)return null;if(e6(u))return u;let D=u.length;if(!Lj(D))return null;let F=Array(D);while(D-- >0)F[D]=u[D];return F},aD0=((u)=>{return(D)=>{return u&&D instanceof u}})(typeof Uint8Array<"u"&&mz(Uint8Array)),tD0=(u,D)=>{let $=(u&&u[l5]).call(u),B;while((B=$.next())&&!B.done){let z=B.value;D.call(u,z[0],z[1])}},eD0=(u,D)=>{let F,$=[];while((F=u.exec(D))!==null)$.push(F);return $},u10=gD("HTMLFormElement"),D10=(u)=>{return u.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(F,$,B){return $.toUpperCase()+B})},Hj=(({hasOwnProperty:u})=>(D,F)=>u.call(D,F))(Object.prototype),F10=gD("RegExp"),Oj=(u,D)=>{let F=Object.getOwnPropertyDescriptors(u),$={};R4(F,(B,z)=>{let Z;if((Z=D(B,z,u))!==!1)$[z]=Z||B}),Object.defineProperties(u,$)},$10=(u)=>{Oj(u,(D,F)=>{if(FD(u)&&["arguments","caller","callee"].indexOf(F)!==-1)return!1;let $=u[F];if(!FD($))return;if(D.enumerable=!1,"writable"in D){D.writable=!1;return}if(!D.set)D.set=()=>{throw Error("Can not rewrite read-only method '"+F+"'")}})},B10=(u,D)=>{let F={},$=(B)=>{B.forEach((z)=>{F[z]=!0})};return e6(u)?$(u):$(String(u).split(D)),F},z10=()=>{},Z10=(u,D)=>{return u!=null&&Number.isFinite(u=+u)?u:D};function q10(u){return!!(u&&FD(u.append)&&u[fj]==="FormData"&&u[l5])}var X10=(u)=>{let D=[,,,,,,,,,,],F=($,B)=>{if(b4($)){if(D.indexOf($)>=0)return;if(y4($))return $;if(!("toJSON"in $)){D[B]=$;let z=e6($)?[]:{};return R4($,(Z,q)=>{let X=F(Z,B+1);!t6(X)&&(z[q]=X)}),D[B]=void 0,z}}return $};return F(u,0)},Q10=gD("AsyncFunction"),W10=(u)=>u&&(b4(u)||FD(u))&&FD(u.then)&&FD(u.catch),Aj=((u,D)=>{if(u)return setImmediate;return D?((F,$)=>{return lF.addEventListener("message",({source:B,data:z})=>{if(B===lF&&z===F)$.length&&$.shift()()},!1),(B)=>{$.push(B),lF.postMessage(F,"*")}})(`axios@${Math.random()}`,[]):(F)=>setTimeout(F)})(typeof setImmediate==="function",FD(lF.postMessage)),Y10=typeof queueMicrotask<"u"?queueMicrotask.bind(lF):typeof process<"u"&&process.nextTick||Aj,J10=(u)=>u!=null&&FD(u[l5]),E={isArray:e6,isArrayBuffer:Vj,isBuffer:y4,isFormData:RD0,isArrayBufferView:CD0,isString:_D0,isNumber:Lj,isBoolean:UD0,isObject:b4,isPlainObject:p5,isEmptyObject:iD0,isReadableStream:hD0,isRequest:cD0,isResponse:mD0,isHeaders:nD0,isUndefined:t6,isDate:vD0,isFile:SD0,isBlob:TD0,isRegExp:F10,isFunction:FD,isStream:bD0,isURLSearchParams:kD0,isTypedArray:aD0,isFileList:yD0,forEach:R4,merge:cz,extend:lD0,trim:pD0,stripBOM:gD0,inherits:dD0,toFlatObject:oD0,kindOf:g5,kindOfTest:gD,endsWith:sD0,toArray:rD0,forEachEntry:tD0,matchAll:eD0,isHTMLForm:u10,hasOwnProperty:Hj,hasOwnProp:Hj,reduceDescriptors:Oj,freezeMethods:$10,toObjectSet:B10,toCamelCase:D10,noop:z10,toFiniteNumber:Z10,findKey:Mj,global:lF,isContextDefined:xj,isSpecCompliantForm:q10,toJSONObject:X10,isAsyncFn:Q10,isThenable:W10,setImmediate:Aj,asap:Y10,isIterable:J10};class nu extends Error{static from(u,D,F,$,B,z){let Z=new nu(u.message,D||u.code,F,$,B);return Z.cause=u,Z.name=u.name,z&&Object.assign(Z,z),Z}constructor(u,D,F,$,B){super(u);if(this.name="AxiosError",this.isAxiosError=!0,D&&(this.code=D),F&&(this.config=F),$&&(this.request=$),B)this.response=B,this.status=B.status}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:E.toJSONObject(this.config),code:this.code,status:this.status}}}nu.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";nu.ERR_BAD_OPTION="ERR_BAD_OPTION";nu.ECONNABORTED="ECONNABORTED";nu.ETIMEDOUT="ETIMEDOUT";nu.ERR_NETWORK="ERR_NETWORK";nu.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";nu.ERR_DEPRECATED="ERR_DEPRECATED";nu.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";nu.ERR_BAD_REQUEST="ERR_BAD_REQUEST";nu.ERR_CANCELED="ERR_CANCELED";nu.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";nu.ERR_INVALID_URL="ERR_INVALID_URL";var F0=nu;var jE=M0(NE(),1),B3=jE.default;function YZ(u){return E.isPlainObject(u)||E.isArray(u)}function EE(u){return E.endsWith(u,"[]")?u.slice(0,-2):u}function IE(u,D,F){if(!u)return D;return u.concat(D).map(function(B,z){return B=EE(B),!F&&z?"["+B+"]":B}).join(F?".":"")}function D60(u){return E.isArray(u)&&!u.some(YZ)}var F60=E.toFlatObject(E,{},null,function(D){return/^is[A-Z]/.test(D)});function $60(u,D,F){if(!E.isObject(u))throw TypeError("target must be an object");D=D||new(B3||FormData),F=E.toFlatObject(F,{metaTokens:!0,dots:!1,indexes:!1},!1,function(H,f){return!E.isUndefined(f[H])});let $=F.metaTokens,B=F.visitor||W,z=F.dots,Z=F.indexes,X=(F.Blob||typeof Blob<"u"&&Blob)&&E.isSpecCompliantForm(D);if(!E.isFunction(B))throw TypeError("visitor must be a function");function Q(K){if(K===null)return"";if(E.isDate(K))return K.toISOString();if(E.isBoolean(K))return K.toString();if(!X&&E.isBlob(K))throw new F0("Blob is not supported. Use a Buffer instead.");if(E.isArrayBuffer(K)||E.isTypedArray(K))return X&&typeof Blob==="function"?new Blob([K]):Buffer.from(K);return K}function W(K,H,f){let x=K;if(K&&!f&&typeof K==="object"){if(E.endsWith(H,"{}"))H=$?H:H.slice(0,-2),K=JSON.stringify(K);else if(E.isArray(K)&&D60(K)||(E.isFileList(K)||E.endsWith(H,"[]"))&&(x=E.toArray(K)))return H=EE(H),x.forEach(function(A,C){!(E.isUndefined(A)||A===null)&&D.append(Z===!0?IE([H],C,z):Z===null?H:H+"[]",Q(A))}),!1}if(YZ(K))return!0;return D.append(IE(f,H,z),Q(K)),!1}let Y=[],J=Object.assign(F60,{defaultVisitor:W,convertValue:Q,isVisitable:YZ});function G(K,H){if(E.isUndefined(K))return;if(Y.indexOf(K)!==-1)throw Error("Circular reference detected in "+H.join("."));Y.push(K),E.forEach(K,function(x,L){if((!(E.isUndefined(x)||x===null)&&B.call(D,x,E.isString(L)?L.trim():L,H,J))===!0)G(x,H?H.concat(L):[L])}),Y.pop()}if(!E.isObject(u))throw TypeError("data must be an object");return G(u),D}var zF=$60;function PE(u){let D={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\x00"};return encodeURIComponent(u).replace(/[!'()~]|%20|%00/g,function($){return D[$]})}function CE(u,D){this._pairs=[],u&&zF(u,this,D)}var _E=CE.prototype;_E.append=function(D,F){this._pairs.push([D,F])};_E.toString=function(D){let F=D?function($){return D.call(this,$,PE)}:PE;return this._pairs.map(function(B){return F(B[0])+"="+F(B[1])},"").join("&")};var UE=CE;function B60(u){return encodeURIComponent(u).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function dF(u,D,F){if(!D)return u;let $=F&&F.encode||B60,B=E.isFunction(F)?{serialize:F}:F,z=B&&B.serialize,Z;if(z)Z=z(D,B);else Z=E.isURLSearchParams(D)?D.toString():new UE(D,B).toString($);if(Z){let q=u.indexOf("#");if(q!==-1)u=u.slice(0,q);u+=(u.indexOf("?")===-1?"?":"&")+Z}return u}class iE{constructor(){this.handlers=[]}use(u,D,F){return this.handlers.push({fulfilled:u,rejected:D,synchronous:F?F.synchronous:!1,runWhen:F?F.runWhen:null}),this.handlers.length-1}eject(u){if(this.handlers[u])this.handlers[u]=null}clear(){if(this.handlers)this.handlers=[]}forEach(u){E.forEach(this.handlers,function(F){if(F!==null)u(F)})}}var JZ=iE;var ZF={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0};import Z60 from"crypto";import z60 from"url";var vE=z60.URLSearchParams;var GZ="abcdefghijklmnopqrstuvwxyz",SE="0123456789",TE={DIGIT:SE,ALPHA:GZ,ALPHA_DIGIT:GZ+GZ.toUpperCase()+SE},q60=(u=16,D=TE.ALPHA_DIGIT)=>{let F="",{length:$}=D,B=new Uint32Array(u);Z60.randomFillSync(B);for(let z=0;z<u;z++)F+=D[B[z]%$];return F},yE={isNode:!0,classes:{URLSearchParams:vE,FormData:B3,Blob:typeof Blob<"u"&&Blob||null},ALPHABET:TE,generateString:q60,protocols:["http","https","file","data"]};var fZ={};c3(fZ,{origin:()=>W60,navigator:()=>KZ,hasStandardBrowserWebWorkerEnv:()=>Q60,hasStandardBrowserEnv:()=>X60,hasBrowserEnv:()=>HZ});var HZ=typeof window<"u"&&typeof document<"u",KZ=typeof navigator==="object"&&navigator||void 0,X60=HZ&&(!KZ||["ReactNative","NativeScript","NS"].indexOf(KZ.product)<0),Q60=(()=>{return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function"})(),W60=HZ&&window.location.href||"http://localhost";var R0={...fZ,...yE};function VZ(u,D){return zF(u,new R0.classes.URLSearchParams,{visitor:function(F,$,B,z){if(R0.isNode&&E.isBuffer(F))return this.append($,F.toString("base64")),!1;return z.defaultVisitor.apply(this,arguments)},...D})}function Y60(u){return E.matchAll(/\w+|\[(\w*)]/g,u).map((D)=>{return D[0]==="[]"?"":D[1]||D[0]})}function J60(u){let D={},F=Object.keys(u),$,B=F.length,z;for($=0;$<B;$++)z=F[$],D[z]=u[z];return D}function G60(u){function D(F,$,B,z){let Z=F[z++];if(Z==="__proto__")return!0;let q=Number.isFinite(+Z),X=z>=F.length;if(Z=!Z&&E.isArray(B)?B.length:Z,X){if(E.hasOwnProp(B,Z))B[Z]=[B[Z],$];else B[Z]=$;return!q}if(!B[Z]||!E.isObject(B[Z]))B[Z]=[];if(D(F,$,B[Z],z)&&E.isArray(B[Z]))B[Z]=J60(B[Z]);return!q}if(E.isFormData(u)&&E.isFunction(u.entries)){let F={};return E.forEachEntry(u,($,B)=>{D(Y60($),B,F,0)}),F}return null}var z3=G60;function K60(u,D,F){if(E.isString(u))try{return(D||JSON.parse)(u),E.trim(u)}catch($){if($.name!=="SyntaxError")throw $}return(F||JSON.stringify)(u)}var LZ={transitional:ZF,adapter:["xhr","http","fetch"],transformRequest:[function(D,F){let $=F.getContentType()||"",B=$.indexOf("application/json")>-1,z=E.isObject(D);if(z&&E.isHTMLForm(D))D=new FormData(D);if(E.isFormData(D))return B?JSON.stringify(z3(D)):D;if(E.isArrayBuffer(D)||E.isBuffer(D)||E.isStream(D)||E.isFile(D)||E.isBlob(D)||E.isReadableStream(D))return D;if(E.isArrayBufferView(D))return D.buffer;if(E.isURLSearchParams(D))return F.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),D.toString();let q;if(z){if($.indexOf("application/x-www-form-urlencoded")>-1)return VZ(D,this.formSerializer).toString();if((q=E.isFileList(D))||$.indexOf("multipart/form-data")>-1){let X=this.env&&this.env.FormData;return zF(q?{"files[]":D}:D,X&&new X,this.formSerializer)}}if(z||B)return F.setContentType("application/json",!1),K60(D);return D}],transformResponse:[function(D){let F=this.transitional||LZ.transitional,$=F&&F.forcedJSONParsing,B=this.responseType==="json";if(E.isResponse(D)||E.isReadableStream(D))return D;if(D&&E.isString(D)&&($&&!this.responseType||B)){let Z=!(F&&F.silentJSONParsing)&&B;try{return JSON.parse(D,this.parseReviver)}catch(q){if(Z){if(q.name==="SyntaxError")throw F0.from(q,F0.ERR_BAD_RESPONSE,this,null,this.response);throw q}}}return D}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:R0.classes.FormData,Blob:R0.classes.Blob},validateStatus:function(D){return D>=200&&D<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};E.forEach(["delete","get","head","post","put","patch"],(u)=>{LZ.headers[u]={}});var B8=LZ;var H60=E.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),bE=(u)=>{let D={},F,$,B;return u&&u.split(`
|
|
250
|
+
`).forEach(function(Z){if(B=Z.indexOf(":"),F=Z.substring(0,B).trim().toLowerCase(),$=Z.substring(B+1).trim(),!F||D[F]&&H60[F])return;if(F==="set-cookie")if(D[F])D[F].push($);else D[F]=[$];else D[F]=D[F]?D[F]+", "+$:$}),D};var RE=Symbol("internals");function n4(u){return u&&String(u).trim().toLowerCase()}function Z3(u){if(u===!1||u==null)return u;return E.isArray(u)?u.map(Z3):String(u)}function f60(u){let D=Object.create(null),F=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,$;while($=F.exec(u))D[$[1]]=$[2];return D}var V60=(u)=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(u.trim());function MZ(u,D,F,$,B){if(E.isFunction($))return $.call(this,D,F);if(B)D=F;if(!E.isString(D))return;if(E.isString($))return D.indexOf($)!==-1;if(E.isRegExp($))return $.test(D)}function L60(u){return u.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(D,F,$)=>{return F.toUpperCase()+$})}function M60(u,D){let F=E.toCamelCase(" "+D);["get","set","has"].forEach(($)=>{Object.defineProperty(u,$+F,{value:function(B,z,Z){return this[$].call(this,D,B,z,Z)},configurable:!0})})}class p4{constructor(u){u&&this.set(u)}set(u,D,F){let $=this;function B(Z,q,X){let Q=n4(q);if(!Q)throw Error("header name must be a non-empty string");let W=E.findKey($,Q);if(!W||$[W]===void 0||X===!0||X===void 0&&$[W]!==!1)$[W||q]=Z3(Z)}let z=(Z,q)=>E.forEach(Z,(X,Q)=>B(X,Q,q));if(E.isPlainObject(u)||u instanceof this.constructor)z(u,D);else if(E.isString(u)&&(u=u.trim())&&!V60(u))z(bE(u),D);else if(E.isObject(u)&&E.isIterable(u)){let Z={},q,X;for(let Q of u){if(!E.isArray(Q))throw TypeError("Object iterator must return a key-value pair");Z[X=Q[0]]=(q=Z[X])?E.isArray(q)?[...q,Q[1]]:[q,Q[1]]:Q[1]}z(Z,D)}else u!=null&&B(D,u,F);return this}get(u,D){if(u=n4(u),u){let F=E.findKey(this,u);if(F){let $=this[F];if(!D)return $;if(D===!0)return f60($);if(E.isFunction(D))return D.call(this,$,F);if(E.isRegExp(D))return D.exec($);throw TypeError("parser must be boolean|regexp|function")}}}has(u,D){if(u=n4(u),u){let F=E.findKey(this,u);return!!(F&&this[F]!==void 0&&(!D||MZ(this,this[F],F,D)))}return!1}delete(u,D){let F=this,$=!1;function B(z){if(z=n4(z),z){let Z=E.findKey(F,z);if(Z&&(!D||MZ(F,F[Z],Z,D)))delete F[Z],$=!0}}if(E.isArray(u))u.forEach(B);else B(u);return $}clear(u){let D=Object.keys(this),F=D.length,$=!1;while(F--){let B=D[F];if(!u||MZ(this,this[B],B,u,!0))delete this[B],$=!0}return $}normalize(u){let D=this,F={};return E.forEach(this,($,B)=>{let z=E.findKey(F,B);if(z){D[z]=Z3($),delete D[B];return}let Z=u?L60(B):String(B).trim();if(Z!==B)delete D[B];D[Z]=Z3($),F[Z]=!0}),this}concat(...u){return this.constructor.concat(this,...u)}toJSON(u){let D=Object.create(null);return E.forEach(this,(F,$)=>{F!=null&&F!==!1&&(D[$]=u&&E.isArray(F)?F.join(", "):F)}),D}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([u,D])=>u+": "+D).join(`
|
|
251
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(u){return u instanceof this?u:new this(u)}static concat(u,...D){let F=new this(u);return D.forEach(($)=>F.set($)),F}static accessor(u){let F=(this[RE]=this[RE]={accessors:{}}).accessors,$=this.prototype;function B(z){let Z=n4(z);if(!F[Z])M60($,z),F[Z]=!0}return E.isArray(u)?u.forEach(B):B(u),this}}p4.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);E.reduceDescriptors(p4.prototype,({value:u},D)=>{let F=D[0].toUpperCase()+D.slice(1);return{get:()=>u,set($){this[F]=$}}});E.freezeMethods(p4);var Fu=p4;function l4(u,D){let F=this||B8,$=D||F,B=Fu.from($.headers),z=$.data;return E.forEach(u,function(q){z=q.call(F,z,B.normalize(),D?D.status:void 0)}),B.normalize(),z}function g4(u){return!!(u&&u.__CANCEL__)}class kE extends F0{constructor(u,D,F){super(u==null?"canceled":u,F0.ERR_CANCELED,D,F);this.name="CanceledError",this.__CANCEL__=!0}}var YD=kE;function Z1(u,D,F){let $=F.config.validateStatus;if(!F.status||!$||$(F.status))u(F);else D(new F0("Request failed with status code "+F.status,[F0.ERR_BAD_REQUEST,F0.ERR_BAD_RESPONSE][Math.floor(F.status/100)-4],F.config,F.request,F))}function xZ(u){if(typeof u!=="string")return!1;return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(u)}function OZ(u,D){return D?u.replace(/\/?\/$/,"")+"/"+D.replace(/^\/+/,""):u}function oF(u,D,F){let $=!xZ(D);if(u&&($||F==!1))return OZ(u,D);return D}var LP=M0(hE(),1),OP=M0($P(),1);import U80 from"http";import i80 from"https";import MP from"http2";import xP from"util";import XF from"zlib";var eF="1.13.5";function t4(u){let D=/^([-+\w]{1,25})(:?\/\/|:)/.exec(u);return D&&D[1]||""}var L80=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;function yZ(u,D,F){let $=F&&F.Blob||R0.classes.Blob,B=t4(u);if(D===void 0&&$)D=!0;if(B==="data"){u=B.length?u.slice(B.length+1):u;let z=L80.exec(u);if(!z)throw new F0("Invalid URL",F0.ERR_INVALID_URL);let Z=z[1],q=z[2],X=z[3],Q=Buffer.from(decodeURIComponent(X),q?"base64":"utf8");if(D){if(!$)throw new F0("Blob is not supported",F0.ERR_NOT_SUPPORT);return new $([Q],{type:Z})}return Q}throw new F0("Unsupported protocol "+B,F0.ERR_NOT_SUPPORT)}import qF from"stream";import M80 from"stream";var bZ=Symbol("internals");class BP extends M80.Transform{constructor(u){u=E.toFlatObject(u,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(F,$)=>{return!E.isUndefined($[F])});super({readableHighWaterMark:u.chunkSize});let D=this[bZ]={timeWindow:u.timeWindow,chunkSize:u.chunkSize,maxRate:u.maxRate,minChunkSize:u.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",(F)=>{if(F==="progress"){if(!D.isCaptured)D.isCaptured=!0}})}_read(u){let D=this[bZ];if(D.onReadCallback)D.onReadCallback();return super._read(u)}_transform(u,D,F){let $=this[bZ],B=$.maxRate,z=this.readableHighWaterMark,Z=$.timeWindow,q=1000/Z,X=B/q,Q=$.minChunkSize!==!1?Math.max($.minChunkSize,X*0.01):0,W=(J,G)=>{let K=Buffer.byteLength(J);if($.bytesSeen+=K,$.bytes+=K,$.isCaptured&&this.emit("progress",$.bytesSeen),this.push(J))process.nextTick(G);else $.onReadCallback=()=>{$.onReadCallback=null,process.nextTick(G)}},Y=(J,G)=>{let K=Buffer.byteLength(J),H=null,f=z,x,L=0;if(B){let A=Date.now();if(!$.ts||(L=A-$.ts)>=Z)$.ts=A,x=X-$.bytes,$.bytes=x<0?-x:0,L=0;x=X-$.bytes}if(B){if(x<=0)return setTimeout(()=>{G(null,J)},Z-L);if(x<f)f=x}if(f&&K>f&&K-f>Q)H=J.subarray(f),J=J.subarray(0,f);W(J,H?()=>{process.nextTick(G,null,H)}:G)};Y(u,function J(G,K){if(G)return F(G);if(K)Y(K,J);else F(null)})}}var RZ=BP;import{EventEmitter as v80}from"events";import O80 from"util";import{Readable as A80}from"stream";var{asyncIterator:zP}=Symbol,x80=async function*(u){if(u.stream)yield*u.stream();else if(u.arrayBuffer)yield await u.arrayBuffer();else if(u[zP])yield*u[zP]();else yield u},Y3=x80;var w80=R0.ALPHABET.ALPHA_DIGIT+"-_",e4=typeof TextEncoder==="function"?new TextEncoder:new O80.TextEncoder,u6=`\r
|
|
252
|
+
`,N80=e4.encode(u6),j80=2;class ZP{constructor(u,D){let{escapeName:F}=this.constructor,$=E.isString(D),B=`Content-Disposition: form-data; name="${F(u)}"${!$&&D.name?`; filename="${F(D.name)}"`:""}${u6}`;if($)D=e4.encode(String(D).replace(/\r?\n|\r\n?/g,u6));else B+=`Content-Type: ${D.type||"application/octet-stream"}${u6}`;this.headers=e4.encode(B+u6),this.contentLength=$?D.byteLength:D.size,this.size=this.headers.byteLength+this.contentLength+j80,this.name=u,this.value=D}async*encode(){yield this.headers;let{value:u}=this;if(E.isTypedArray(u))yield u;else yield*Y3(u);yield N80}static escapeName(u){return String(u).replace(/[\r\n"]/g,(D)=>({"\r":"%0D","\n":"%0A",'"':"%22"})[D])}}var I80=(u,D,F)=>{let{tag:$="form-data-boundary",size:B=25,boundary:z=$+"-"+R0.generateString(B,w80)}=F||{};if(!E.isFormData(u))throw TypeError("FormData instance required");if(z.length<1||z.length>70)throw Error("boundary must be 10-70 characters long");let Z=e4.encode("--"+z+u6),q=e4.encode("--"+z+"--"+u6),X=q.byteLength,Q=Array.from(u.entries()).map(([Y,J])=>{let G=new ZP(Y,J);return X+=G.size,G});X+=Z.byteLength*Q.length,X=E.toFiniteNumber(X);let W={"Content-Type":`multipart/form-data; boundary=${z}`};if(Number.isFinite(X))W["Content-Length"]=X;return D&&D(W),A80.from(async function*(){for(let Y of Q)yield Z,yield*Y.encode();yield q}())},qP=I80;import E80 from"stream";class XP extends E80.Transform{__transform(u,D,F){this.push(u),F()}_transform(u,D,F){if(u.length!==0){if(this._transform=this.__transform,u[0]!==120){let $=Buffer.alloc(2);$[0]=120,$[1]=156,this.push($,D)}}this.__transform(u,D,F)}}var QP=XP;var P80=(u,D)=>{return E.isAsyncFn(u)?function(...F){let $=F.pop();u.apply(this,F).then((B)=>{try{D?$(null,...D(B)):$(null,B)}catch(z){$(z)}},$)}:u},WP=P80;function C80(u,D){u=u||10;let F=Array(u),$=Array(u),B=0,z=0,Z;return D=D!==void 0?D:1000,function(X){let Q=Date.now(),W=$[z];if(!Z)Z=Q;F[B]=X,$[B]=Q;let Y=z,J=0;while(Y!==B)J+=F[Y++],Y=Y%u;if(B=(B+1)%u,B===z)z=(z+1)%u;if(Q-Z<D)return;let G=W&&Q-W;return G?Math.round(J*1000/G):void 0}}var YP=C80;function _80(u,D){let F=0,$=1000/D,B,z,Z=(Q,W=Date.now())=>{if(F=W,B=null,z)clearTimeout(z),z=null;u(...Q)};return[(...Q)=>{let W=Date.now(),Y=W-F;if(Y>=$)Z(Q,W);else if(B=Q,!z)z=setTimeout(()=>{z=null,Z(B)},$-Y)},()=>B&&Z(B)]}var JP=_80;var j1=(u,D,F=3)=>{let $=0,B=YP(50,250);return JP((z)=>{let Z=z.loaded,q=z.lengthComputable?z.total:void 0,X=Z-$,Q=B(X),W=Z<=q;$=Z;let Y={loaded:Z,total:q,progress:q?Z/q:void 0,bytes:X,rate:Q?Q:void 0,estimated:Q&&q&&W?(q-Z)/Q:void 0,event:z,lengthComputable:q!=null,[D?"download":"upload"]:!0};u(Y)},F)},Q8=(u,D)=>{let F=u!=null;return[($)=>D[0]({lengthComputable:F,total:u,loaded:$}),D[1]]},W8=(u)=>(...D)=>E.asap(()=>u(...D));function kZ(u){if(!u||typeof u!=="string")return 0;if(!u.startsWith("data:"))return 0;let D=u.indexOf(",");if(D<0)return 0;let F=u.slice(5,D),$=u.slice(D+1);if(/;base64/i.test(F)){let{length:z,length:Z}=$;for(let J=0;J<Z;J++)if($.charCodeAt(J)===37&&J+2<Z){let G=$.charCodeAt(J+1),K=$.charCodeAt(J+2);if((G>=48&&G<=57||G>=65&&G<=70||G>=97&&G<=102)&&(K>=48&&K<=57||K>=65&&K<=70||K>=97&&K<=102))z-=2,J+=2}let q=0,X=Z-1,Q=(J)=>J>=2&&$.charCodeAt(J-2)===37&&$.charCodeAt(J-1)===51&&($.charCodeAt(J)===68||$.charCodeAt(J)===100);if(X>=0){if($.charCodeAt(X)===61)q++,X--;else if(Q(X))q++,X-=3}if(q===1&&X>=0){if($.charCodeAt(X)===61)q++;else if(Q(X))q++}let Y=Math.floor(z/4)*3-(q||0);return Y>0?Y:0}return Buffer.byteLength($,"utf8")}var GP={flush:XF.constants.Z_SYNC_FLUSH,finishFlush:XF.constants.Z_SYNC_FLUSH},S80={flush:XF.constants.BROTLI_OPERATION_FLUSH,finishFlush:XF.constants.BROTLI_OPERATION_FLUSH},KP=E.isFunction(XF.createBrotliDecompress),{http:T80,https:y80}=OP.default,b80=/https:?/,HP=R0.protocols.map((u)=>{return u+":"}),fP=(u,[D,F])=>{return u.on("end",F).on("error",F),D};class AP{constructor(){this.sessions=Object.create(null)}getSession(u,D){D=Object.assign({sessionTimeout:1000},D);let F=this.sessions[u];if(F){let Q=F.length;for(let W=0;W<Q;W++){let[Y,J]=F[W];if(!Y.destroyed&&!Y.closed&&xP.isDeepStrictEqual(J,D))return Y}}let $=MP.connect(u,D),B,z=()=>{if(B)return;B=!0;let Q=F,W=Q.length,Y=W;while(Y--)if(Q[Y][0]===$){if(W===1)delete this.sessions[u];else Q.splice(Y,1);return}},Z=$.request,{sessionTimeout:q}=D;if(q!=null){let Q,W=0;$.request=function(){let Y=Z.apply(this,arguments);if(W++,Q)clearTimeout(Q),Q=null;return Y.once("close",()=>{if(!--W)Q=setTimeout(()=>{Q=null,z()},q)}),Y}}$.once("close",z);let X=[$,D];return F?F.push(X):F=this.sessions[u]=[X],$}}var R80=new AP;function k80(u,D){if(u.beforeRedirects.proxy)u.beforeRedirects.proxy(u);if(u.beforeRedirects.config)u.beforeRedirects.config(u,D)}function wP(u,D,F){let $=D;if(!$&&$!==!1){let B=LP.default.getProxyForUrl(F);if(B)$=new URL(B)}if($){if($.username)$.auth=($.username||"")+":"+($.password||"");if($.auth){if(Boolean($.auth.username||$.auth.password))$.auth=($.auth.username||"")+":"+($.auth.password||"");else if(typeof $.auth==="object")throw new F0("Invalid proxy authorization",F0.ERR_BAD_OPTION,{proxy:$});let Z=Buffer.from($.auth,"utf8").toString("base64");u.headers["Proxy-Authorization"]="Basic "+Z}u.headers.host=u.hostname+(u.port?":"+u.port:"");let B=$.hostname||$.host;if(u.hostname=B,u.host=B,u.port=$.port,u.path=F,$.protocol)u.protocol=$.protocol.includes(":")?$.protocol:`${$.protocol}:`}u.beforeRedirects.proxy=function(z){wP(z,D,z.href)}}var h80=typeof process<"u"&&E.kindOf(process)==="process",c80=(u)=>{return new Promise((D,F)=>{let $,B,z=(X,Q)=>{if(B)return;B=!0,$&&$(X,Q)},Z=(X)=>{z(X),D(X)},q=(X)=>{z(X,!0),F(X)};u(Z,q,(X)=>$=X).catch(q)})},m80=({address:u,family:D})=>{if(!E.isString(u))throw TypeError("address must be a string");return{address:u,family:D||(u.indexOf(".")<0?6:4)}},VP=(u,D)=>m80(E.isObject(u)?u:{address:u,family:D}),n80={request(u,D){let F=u.protocol+"//"+u.hostname+":"+(u.port||(u.protocol==="https:"?443:80)),{http2Options:$,headers:B}=u,z=R80.getSession(F,$),{HTTP2_HEADER_SCHEME:Z,HTTP2_HEADER_METHOD:q,HTTP2_HEADER_PATH:X,HTTP2_HEADER_STATUS:Q}=MP.constants,W={[Z]:u.protocol.replace(":",""),[q]:u.method,[X]:u.path};E.forEach(B,(J,G)=>{G.charAt(0)!==":"&&(W[G]=J)});let Y=z.request(W);return Y.once("response",(J)=>{let G=Y;J=Object.assign({},J);let K=J[Q];delete J[Q],G.headers=J,G.statusCode=+K,D(G)}),Y}},NP=h80&&function(D){return c80(async function($,B,z){let{data:Z,lookup:q,family:X,httpVersion:Q=1,http2Options:W}=D,{responseType:Y,responseEncoding:J}=D,G=D.method.toUpperCase(),K,H=!1,f;if(Q=+Q,Number.isNaN(Q))throw TypeError(`Invalid protocol version: '${D.httpVersion}' is not a number`);if(Q!==1&&Q!==2)throw TypeError(`Unsupported protocol version '${Q}'`);let x=Q===2;if(q){let t=WP(q,(u0)=>E.isArray(u0)?u0:[u0]);q=(u0,E0,Z0)=>{t(u0,E0,(b0,$u,g)=>{if(b0)return Z0(b0);let O0=E.isArray($u)?$u.map((n0)=>VP(n0)):[VP($u,g)];E0.all?Z0(b0,O0):Z0(b0,O0[0].address,O0[0].family)})}}let L=new v80;function A(t){try{L.emit("abort",!t||t.type?new YD(null,D,f):t)}catch(u0){console.warn("emit error",u0)}}L.once("abort",B);let C=()=>{if(D.cancelToken)D.cancelToken.unsubscribe(A);if(D.signal)D.signal.removeEventListener("abort",A);L.removeAllListeners()};if(D.cancelToken||D.signal){if(D.cancelToken&&D.cancelToken.subscribe(A),D.signal)D.signal.aborted?A():D.signal.addEventListener("abort",A)}z((t,u0)=>{if(K=!0,u0){H=!0,C();return}let{data:E0}=t;if(E0 instanceof qF.Readable||E0 instanceof qF.Duplex){let Z0=qF.finished(E0,()=>{Z0(),C()})}else C()});let I=oF(D.baseURL,D.url,D.allowAbsoluteUrls),_=new URL(I,R0.hasBrowserEnv?R0.origin:void 0),R=_.protocol||HP[0];if(R==="data:"){if(D.maxContentLength>-1){let u0=String(D.url||I||"");if(kZ(u0)>D.maxContentLength)return B(new F0("maxContentLength size of "+D.maxContentLength+" exceeded",F0.ERR_BAD_RESPONSE,D))}let t;if(G!=="GET")return Z1($,B,{status:405,statusText:"method not allowed",headers:{},config:D});try{t=yZ(D.url,Y==="blob",{Blob:D.env&&D.env.Blob})}catch(u0){throw F0.from(u0,F0.ERR_BAD_REQUEST,D)}if(Y==="text"){if(t=t.toString(J),!J||J==="utf8")t=E.stripBOM(t)}else if(Y==="stream")t=qF.Readable.from(t);return Z1($,B,{data:t,status:200,statusText:"OK",headers:new Fu,config:D})}if(HP.indexOf(R)===-1)return B(new F0("Unsupported protocol "+R,F0.ERR_BAD_REQUEST,D));let k=Fu.from(D.headers).normalize();k.set("User-Agent","axios/"+eF,!1);let{onUploadProgress:c,onDownloadProgress:e}=D,w=D.maxRate,h=void 0,n=void 0;if(E.isSpecCompliantForm(Z)){let t=k.getContentType(/boundary=([-_\w\d]{10,70})/i);Z=qP(Z,(u0)=>{k.set(u0)},{tag:`axios-${eF}-boundary`,boundary:t&&t[1]||void 0})}else if(E.isFormData(Z)&&E.isFunction(Z.getHeaders)){if(k.set(Z.getHeaders()),!k.hasContentLength())try{let t=await xP.promisify(Z.getLength).call(Z);Number.isFinite(t)&&t>=0&&k.setContentLength(t)}catch(t){}}else if(E.isBlob(Z)||E.isFile(Z))Z.size&&k.setContentType(Z.type||"application/octet-stream"),k.setContentLength(Z.size||0),Z=qF.Readable.from(Y3(Z));else if(Z&&!E.isStream(Z)){if(Buffer.isBuffer(Z));else if(E.isArrayBuffer(Z))Z=Buffer.from(new Uint8Array(Z));else if(E.isString(Z))Z=Buffer.from(Z,"utf-8");else return B(new F0("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",F0.ERR_BAD_REQUEST,D));if(k.setContentLength(Z.length,!1),D.maxBodyLength>-1&&Z.length>D.maxBodyLength)return B(new F0("Request body larger than maxBodyLength limit",F0.ERR_BAD_REQUEST,D))}let r=E.toFiniteNumber(k.getContentLength());if(E.isArray(w))h=w[0],n=w[1];else h=n=w;if(Z&&(c||h)){if(!E.isStream(Z))Z=qF.Readable.from(Z,{objectMode:!1});Z=qF.pipeline([Z,new RZ({maxRate:E.toFiniteNumber(h)})],E.noop),c&&Z.on("progress",fP(Z,Q8(r,j1(W8(c),!1,3))))}let i=void 0;if(D.auth){let t=D.auth.username||"",u0=D.auth.password||"";i=t+":"+u0}if(!i&&_.username){let{username:t,password:u0}=_;i=t+":"+u0}i&&k.delete("authorization");let v;try{v=dF(_.pathname+_.search,D.params,D.paramsSerializer).replace(/^\?/,"")}catch(t){let u0=Error(t.message);return u0.config=D,u0.url=D.url,u0.exists=!0,B(u0)}k.set("Accept-Encoding","gzip, compress, deflate"+(KP?", br":""),!1);let d={path:v,method:G,headers:k.toJSON(),agents:{http:D.httpAgent,https:D.httpsAgent},auth:i,protocol:R,family:X,beforeRedirect:k80,beforeRedirects:{},http2Options:W};if(!E.isUndefined(q)&&(d.lookup=q),D.socketPath)d.socketPath=D.socketPath;else d.hostname=_.hostname.startsWith("[")?_.hostname.slice(1,-1):_.hostname,d.port=_.port,wP(d,D.proxy,R+"//"+_.hostname+(_.port?":"+_.port:"")+d.path);let a,L0=b80.test(d.protocol);if(d.agent=L0?D.httpsAgent:D.httpAgent,x)a=n80;else if(D.transport)a=D.transport;else if(D.maxRedirects===0)a=L0?i80:U80;else{if(D.maxRedirects)d.maxRedirects=D.maxRedirects;if(D.beforeRedirect)d.beforeRedirects.config=D.beforeRedirect;a=L0?y80:T80}if(D.maxBodyLength>-1)d.maxBodyLength=D.maxBodyLength;else d.maxBodyLength=1/0;if(D.insecureHTTPParser)d.insecureHTTPParser=D.insecureHTTPParser;if(f=a.request(d,function(u0){if(f.destroyed)return;let E0=[u0],Z0=E.toFiniteNumber(u0.headers["content-length"]);if(e||n){let O0=new RZ({maxRate:E.toFiniteNumber(n)});e&&O0.on("progress",fP(O0,Q8(Z0,j1(W8(e),!0,3)))),E0.push(O0)}let b0=u0,$u=u0.req||f;if(D.decompress!==!1&&u0.headers["content-encoding"]){if(G==="HEAD"||u0.statusCode===204)delete u0.headers["content-encoding"];switch((u0.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":E0.push(XF.createUnzip(GP)),delete u0.headers["content-encoding"];break;case"deflate":E0.push(new QP),E0.push(XF.createUnzip(GP)),delete u0.headers["content-encoding"];break;case"br":if(KP)E0.push(XF.createBrotliDecompress(S80)),delete u0.headers["content-encoding"]}}b0=E0.length>1?qF.pipeline(E0,E.noop):E0[0];let g={status:u0.statusCode,statusText:u0.statusMessage,headers:new Fu(u0.headers),config:D,request:$u};if(Y==="stream")g.data=b0,Z1($,B,g);else{let O0=[],n0=0;b0.on("data",function(W0){if(O0.push(W0),n0+=W0.length,D.maxContentLength>-1&&n0>D.maxContentLength)H=!0,b0.destroy(),A(new F0("maxContentLength size of "+D.maxContentLength+" exceeded",F0.ERR_BAD_RESPONSE,D,$u))}),b0.on("aborted",function(){if(H)return;let W0=new F0("stream has been aborted",F0.ERR_BAD_RESPONSE,D,$u);b0.destroy(W0),B(W0)}),b0.on("error",function(W0){if(f.destroyed)return;B(F0.from(W0,null,D,$u))}),b0.on("end",function(){try{let W0=O0.length===1?O0[0]:Buffer.concat(O0);if(Y!=="arraybuffer"){if(W0=W0.toString(J),!J||J==="utf8")W0=E.stripBOM(W0)}g.data=W0}catch(W0){return B(F0.from(W0,null,D,g.request,g))}Z1($,B,g)})}L.once("abort",(O0)=>{if(!b0.destroyed)b0.emit("error",O0),b0.destroy()})}),L.once("abort",(t)=>{if(f.close)f.close();else f.destroy(t)}),f.on("error",function(u0){B(F0.from(u0,null,D,f))}),f.on("socket",function(u0){u0.setKeepAlive(!0,60000)}),D.timeout){let t=parseInt(D.timeout,10);if(Number.isNaN(t)){A(new F0("error trying to parse `config.timeout` to int",F0.ERR_BAD_OPTION_VALUE,D,f));return}f.setTimeout(t,function(){if(K)return;let E0=D.timeout?"timeout of "+D.timeout+"ms exceeded":"timeout exceeded",Z0=D.transitional||ZF;if(D.timeoutErrorMessage)E0=D.timeoutErrorMessage;A(new F0(E0,Z0.clarifyTimeoutError?F0.ETIMEDOUT:F0.ECONNABORTED,D,f))})}else f.setTimeout(0);if(E.isStream(Z)){let t=!1,u0=!1;Z.on("end",()=>{t=!0}),Z.once("error",(E0)=>{u0=!0,f.destroy(E0)}),Z.on("close",()=>{if(!t&&!u0)A(new YD("Request stream has been aborted",D,f))}),Z.pipe(f)}else Z&&f.write(Z),f.end()})};var jP=R0.hasStandardBrowserEnv?((u,D)=>(F)=>{return F=new URL(F,R0.origin),u.protocol===F.protocol&&u.host===F.host&&(D||u.port===F.port)})(new URL(R0.origin),R0.navigator&&/(msie|trident)/i.test(R0.navigator.userAgent)):()=>!0;var IP=R0.hasStandardBrowserEnv?{write(u,D,F,$,B,z,Z){if(typeof document>"u")return;let q=[`${u}=${encodeURIComponent(D)}`];if(E.isNumber(F))q.push(`expires=${new Date(F).toUTCString()}`);if(E.isString($))q.push(`path=${$}`);if(E.isString(B))q.push(`domain=${B}`);if(z===!0)q.push("secure");if(E.isString(Z))q.push(`SameSite=${Z}`);document.cookie=q.join("; ")},read(u){if(typeof document>"u")return null;let D=document.cookie.match(new RegExp("(?:^|; )"+u+"=([^;]*)"));return D?decodeURIComponent(D[1]):null},remove(u){this.write(u,"",Date.now()-86400000,"/")}}:{write(){},read(){return null},remove(){}};var EP=(u)=>u instanceof Fu?{...u}:u;function oD(u,D){D=D||{};let F={};function $(Q,W,Y,J){if(E.isPlainObject(Q)&&E.isPlainObject(W))return E.merge.call({caseless:J},Q,W);else if(E.isPlainObject(W))return E.merge({},W);else if(E.isArray(W))return W.slice();return W}function B(Q,W,Y,J){if(!E.isUndefined(W))return $(Q,W,Y,J);else if(!E.isUndefined(Q))return $(void 0,Q,Y,J)}function z(Q,W){if(!E.isUndefined(W))return $(void 0,W)}function Z(Q,W){if(!E.isUndefined(W))return $(void 0,W);else if(!E.isUndefined(Q))return $(void 0,Q)}function q(Q,W,Y){if(Y in D)return $(Q,W);else if(Y in u)return $(void 0,Q)}let X={url:z,method:z,data:z,baseURL:Z,transformRequest:Z,transformResponse:Z,paramsSerializer:Z,timeout:Z,timeoutMessage:Z,withCredentials:Z,withXSRFToken:Z,adapter:Z,responseType:Z,xsrfCookieName:Z,xsrfHeaderName:Z,onUploadProgress:Z,onDownloadProgress:Z,decompress:Z,maxContentLength:Z,maxBodyLength:Z,beforeRedirect:Z,transport:Z,httpAgent:Z,httpsAgent:Z,cancelToken:Z,socketPath:Z,responseEncoding:Z,validateStatus:q,headers:(Q,W,Y)=>B(EP(Q),EP(W),Y,!0)};return E.forEach(Object.keys({...u,...D}),function(W){if(W==="__proto__"||W==="constructor"||W==="prototype")return;let Y=E.hasOwnProp(X,W)?X[W]:B,J=Y(u[W],D[W],W);E.isUndefined(J)&&Y!==q||(F[W]=J)}),F}var J3=(u)=>{let D=oD({},u),{data:F,withXSRFToken:$,xsrfHeaderName:B,xsrfCookieName:z,headers:Z,auth:q}=D;if(D.headers=Z=Fu.from(Z),D.url=dF(oF(D.baseURL,D.url,D.allowAbsoluteUrls),u.params,u.paramsSerializer),q)Z.set("Authorization","Basic "+btoa((q.username||"")+":"+(q.password?unescape(encodeURIComponent(q.password)):"")));if(E.isFormData(F)){if(R0.hasStandardBrowserEnv||R0.hasStandardBrowserWebWorkerEnv)Z.setContentType(void 0);else if(E.isFunction(F.getHeaders)){let X=F.getHeaders(),Q=["content-type","content-length"];Object.entries(X).forEach(([W,Y])=>{if(Q.includes(W.toLowerCase()))Z.set(W,Y)})}}if(R0.hasStandardBrowserEnv){if($&&E.isFunction($)&&($=$(D)),$||$!==!1&&jP(D.url)){let X=B&&z&&IP.read(z);if(X)Z.set(B,X)}}return D};var p80=typeof XMLHttpRequest<"u",PP=p80&&function(u){return new Promise(function(F,$){let B=J3(u),z=B.data,Z=Fu.from(B.headers).normalize(),{responseType:q,onUploadProgress:X,onDownloadProgress:Q}=B,W,Y,J,G,K;function H(){G&&G(),K&&K(),B.cancelToken&&B.cancelToken.unsubscribe(W),B.signal&&B.signal.removeEventListener("abort",W)}let f=new XMLHttpRequest;f.open(B.method.toUpperCase(),B.url,!0),f.timeout=B.timeout;function x(){if(!f)return;let A=Fu.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),I={data:!q||q==="text"||q==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:A,config:u,request:f};Z1(function(R){F(R),H()},function(R){$(R),H()},I),f=null}if("onloadend"in f)f.onloadend=x;else f.onreadystatechange=function(){if(!f||f.readyState!==4)return;if(f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0))return;setTimeout(x)};if(f.onabort=function(){if(!f)return;$(new F0("Request aborted",F0.ECONNABORTED,u,f)),f=null},f.onerror=function(C){let I=C&&C.message?C.message:"Network Error",_=new F0(I,F0.ERR_NETWORK,u,f);_.event=C||null,$(_),f=null},f.ontimeout=function(){let C=B.timeout?"timeout of "+B.timeout+"ms exceeded":"timeout exceeded",I=B.transitional||ZF;if(B.timeoutErrorMessage)C=B.timeoutErrorMessage;$(new F0(C,I.clarifyTimeoutError?F0.ETIMEDOUT:F0.ECONNABORTED,u,f)),f=null},z===void 0&&Z.setContentType(null),"setRequestHeader"in f)E.forEach(Z.toJSON(),function(C,I){f.setRequestHeader(I,C)});if(!E.isUndefined(B.withCredentials))f.withCredentials=!!B.withCredentials;if(q&&q!=="json")f.responseType=B.responseType;if(Q)[J,K]=j1(Q,!0),f.addEventListener("progress",J);if(X&&f.upload)[Y,G]=j1(X),f.upload.addEventListener("progress",Y),f.upload.addEventListener("loadend",G);if(B.cancelToken||B.signal){if(W=(A)=>{if(!f)return;$(!A||A.type?new YD(null,u,f):A),f.abort(),f=null},B.cancelToken&&B.cancelToken.subscribe(W),B.signal)B.signal.aborted?W():B.signal.addEventListener("abort",W)}let L=t4(B.url);if(L&&R0.protocols.indexOf(L)===-1){$(new F0("Unsupported protocol "+L+":",F0.ERR_BAD_REQUEST,u));return}f.send(z||null)})};var l80=(u,D)=>{let{length:F}=u=u?u.filter(Boolean):[];if(D||F){let $=new AbortController,B,z=function(Q){if(!B){B=!0,q();let W=Q instanceof Error?Q:this.reason;$.abort(W instanceof F0?W:new YD(W instanceof Error?W.message:W))}},Z=D&&setTimeout(()=>{Z=null,z(new F0(`timeout of ${D}ms exceeded`,F0.ETIMEDOUT))},D),q=()=>{if(u)Z&&clearTimeout(Z),Z=null,u.forEach((Q)=>{Q.unsubscribe?Q.unsubscribe(z):Q.removeEventListener("abort",z)}),u=null};u.forEach((Q)=>Q.addEventListener("abort",z));let{signal:X}=$;return X.unsubscribe=()=>E.asap(q),X}},CP=l80;var g80=function*(u,D){let F=u.byteLength;if(!D||F<D){yield u;return}let $=0,B;while($<F)B=$+D,yield u.slice($,B),$=B},d80=async function*(u,D){for await(let F of o80(u))yield*g80(F,D)},o80=async function*(u){if(u[Symbol.asyncIterator]){yield*u;return}let D=u.getReader();try{for(;;){let{done:F,value:$}=await D.read();if(F)break;yield $}}finally{await D.cancel()}},hZ=(u,D,F,$)=>{let B=d80(u,D),z=0,Z,q=(X)=>{if(!Z)Z=!0,$&&$(X)};return new ReadableStream({async pull(X){try{let{done:Q,value:W}=await B.next();if(Q){q(),X.close();return}let Y=W.byteLength;if(F){let J=z+=Y;F(J)}X.enqueue(new Uint8Array(W))}catch(Q){throw q(Q),Q}},cancel(X){return q(X),B.return()}},{highWaterMark:2})};var _P=65536,{isFunction:G3}=E,s80=(({Request:u,Response:D})=>({Request:u,Response:D}))(E.global),{ReadableStream:UP,TextEncoder:iP}=E.global,vP=(u,...D)=>{try{return!!u(...D)}catch(F){return!1}},r80=(u)=>{u=E.merge.call({skipUndefined:!0},s80,u);let{fetch:D,Request:F,Response:$}=u,B=D?G3(D):typeof fetch==="function",z=G3(F),Z=G3($);if(!B)return!1;let q=B&&G3(UP),X=B&&(typeof iP==="function"?((K)=>(H)=>K.encode(H))(new iP):async(K)=>new Uint8Array(await new F(K).arrayBuffer())),Q=z&&q&&vP(()=>{let K=!1,H=new F(R0.origin,{body:new UP,method:"POST",get duplex(){return K=!0,"half"}}).headers.has("Content-Type");return K&&!H}),W=Z&&q&&vP(()=>E.isReadableStream(new $("").body)),Y={stream:W&&((K)=>K.body)};B&&(()=>{["text","arrayBuffer","blob","formData","stream"].forEach((K)=>{!Y[K]&&(Y[K]=(H,f)=>{let x=H&&H[K];if(x)return x.call(H);throw new F0(`Response type '${K}' is not supported`,F0.ERR_NOT_SUPPORT,f)})})})();let J=async(K)=>{if(K==null)return 0;if(E.isBlob(K))return K.size;if(E.isSpecCompliantForm(K))return(await new F(R0.origin,{method:"POST",body:K}).arrayBuffer()).byteLength;if(E.isArrayBufferView(K)||E.isArrayBuffer(K))return K.byteLength;if(E.isURLSearchParams(K))K=K+"";if(E.isString(K))return(await X(K)).byteLength},G=async(K,H)=>{let f=E.toFiniteNumber(K.getContentLength());return f==null?J(H):f};return async(K)=>{let{url:H,method:f,data:x,signal:L,cancelToken:A,timeout:C,onDownloadProgress:I,onUploadProgress:_,responseType:R,headers:k,withCredentials:c="same-origin",fetchOptions:e}=J3(K),w=D||fetch;R=R?(R+"").toLowerCase():"text";let h=CP([L,A&&A.toAbortSignal()],C),n=null,r=h&&h.unsubscribe&&(()=>{h.unsubscribe()}),i;try{if(_&&Q&&f!=="get"&&f!=="head"&&(i=await G(k,x))!==0){let u0=new F(H,{method:"POST",body:x,duplex:"half"}),E0;if(E.isFormData(x)&&(E0=u0.headers.get("content-type")))k.setContentType(E0);if(u0.body){let[Z0,b0]=Q8(i,j1(W8(_)));x=hZ(u0.body,_P,Z0,b0)}}if(!E.isString(c))c=c?"include":"omit";let v=z&&"credentials"in F.prototype,d={...e,signal:h,method:f.toUpperCase(),headers:k.normalize().toJSON(),body:x,duplex:"half",credentials:v?c:void 0};n=z&&new F(H,d);let a=await(z?w(n,e):w(H,d)),L0=W&&(R==="stream"||R==="response");if(W&&(I||L0&&r)){let u0={};["status","statusText","headers"].forEach(($u)=>{u0[$u]=a[$u]});let E0=E.toFiniteNumber(a.headers.get("content-length")),[Z0,b0]=I&&Q8(E0,j1(W8(I),!0))||[];a=new $(hZ(a.body,_P,Z0,()=>{b0&&b0(),r&&r()}),u0)}R=R||"text";let t=await Y[E.findKey(Y,R)||"text"](a,K);return!L0&&r&&r(),await new Promise((u0,E0)=>{Z1(u0,E0,{data:t,headers:Fu.from(a.headers),status:a.status,statusText:a.statusText,config:K,request:n})})}catch(v){if(r&&r(),v&&v.name==="TypeError"&&/Load failed|fetch/i.test(v.message))throw Object.assign(new F0("Network Error",F0.ERR_NETWORK,K,n,v&&v.response),{cause:v.cause||v});throw F0.from(v,v&&v.code,K,n,v&&v.response)}}},a80=new Map,cZ=(u)=>{let D=u&&u.env||{},{fetch:F,Request:$,Response:B}=D,z=[$,B,F],Z=z.length,q=Z,X,Q,W=a80;while(q--)X=z[q],Q=W.get(X),Q===void 0&&W.set(X,Q=q?new Map:r80(D)),W=Q;return Q},FK0=cZ();var mZ={http:NP,xhr:PP,fetch:{get:cZ}};E.forEach(mZ,(u,D)=>{if(u){try{Object.defineProperty(u,"name",{value:D})}catch(F){}Object.defineProperty(u,"adapterName",{value:D})}});var SP=(u)=>`- ${u}`,e80=(u)=>E.isFunction(u)||u===null||u===!1;function u40(u,D){u=E.isArray(u)?u:[u];let{length:F}=u,$,B,z={};for(let Z=0;Z<F;Z++){$=u[Z];let q;if(B=$,!e80($)){if(B=mZ[(q=String($)).toLowerCase()],B===void 0)throw new F0(`Unknown adapter '${q}'`)}if(B&&(E.isFunction(B)||(B=B.get(D))))break;z[q||"#"+Z]=B}if(!B){let Z=Object.entries(z).map(([X,Q])=>`adapter ${X} `+(Q===!1?"is not supported by the environment":"is not available in the build")),q=F?Z.length>1?`since :
|
|
253
|
+
`+Z.map(SP).join(`
|
|
254
|
+
`):" "+SP(Z[0]):"as no adapter specified";throw new F0("There is no suitable adapter to dispatch the request "+q,"ERR_NOT_SUPPORT")}return B}var K3={getAdapter:u40,adapters:mZ};function nZ(u){if(u.cancelToken)u.cancelToken.throwIfRequested();if(u.signal&&u.signal.aborted)throw new YD(null,u)}function H3(u){if(nZ(u),u.headers=Fu.from(u.headers),u.data=l4.call(u,u.transformRequest),["post","put","patch"].indexOf(u.method)!==-1)u.headers.setContentType("application/x-www-form-urlencoded",!1);return K3.getAdapter(u.adapter||B8.adapter,u)(u).then(function($){return nZ(u),$.data=l4.call(u,u.transformResponse,$),$.headers=Fu.from($.headers),$},function($){if(!g4($)){if(nZ(u),$&&$.response)$.response.data=l4.call(u,u.transformResponse,$.response),$.response.headers=Fu.from($.response.headers)}return Promise.reject($)})}var f3={};["object","boolean","number","function","string","symbol"].forEach((u,D)=>{f3[u]=function($){return typeof $===u||"a"+(D<1?"n ":" ")+u}});var TP={};f3.transitional=function(D,F,$){function B(z,Z){return"[Axios v"+eF+"] Transitional option '"+z+"'"+Z+($?". "+$:"")}return(z,Z,q)=>{if(D===!1)throw new F0(B(Z," has been removed"+(F?" in "+F:"")),F0.ERR_DEPRECATED);if(F&&!TP[Z])TP[Z]=!0,console.warn(B(Z," has been deprecated since v"+F+" and will be removed in the near future"));return D?D(z,Z,q):!0}};f3.spelling=function(D){return(F,$)=>{return console.warn(`${$} is likely a misspelling of ${D}`),!0}};function D40(u,D,F){if(typeof u!=="object")throw new F0("options must be an object",F0.ERR_BAD_OPTION_VALUE);let $=Object.keys(u),B=$.length;while(B-- >0){let z=$[B],Z=D[z];if(Z){let q=u[z],X=q===void 0||Z(q,z,u);if(X!==!0)throw new F0("option "+z+" must be "+X,F0.ERR_BAD_OPTION_VALUE);continue}if(F!==!0)throw new F0("Unknown option "+z,F0.ERR_BAD_OPTION)}}var u7={assertOptions:D40,validators:f3};var ND=u7.validators;class D7{constructor(u){this.defaults=u||{},this.interceptors={request:new JZ,response:new JZ}}async request(u,D){try{return await this._request(u,D)}catch(F){if(F instanceof Error){let $={};Error.captureStackTrace?Error.captureStackTrace($):$=Error();let B=$.stack?$.stack.replace(/^.+\n/,""):"";try{if(!F.stack)F.stack=B;else if(B&&!String(F.stack).endsWith(B.replace(/^.+\n.+\n/,"")))F.stack+=`
|
|
255
|
+
`+B}catch(z){}}throw F}}_request(u,D){if(typeof u==="string")D=D||{},D.url=u;else D=u||{};D=oD(this.defaults,D);let{transitional:F,paramsSerializer:$,headers:B}=D;if(F!==void 0)u7.assertOptions(F,{silentJSONParsing:ND.transitional(ND.boolean),forcedJSONParsing:ND.transitional(ND.boolean),clarifyTimeoutError:ND.transitional(ND.boolean),legacyInterceptorReqResOrdering:ND.transitional(ND.boolean)},!1);if($!=null)if(E.isFunction($))D.paramsSerializer={serialize:$};else u7.assertOptions($,{encode:ND.function,serialize:ND.function},!0);if(D.allowAbsoluteUrls!==void 0);else if(this.defaults.allowAbsoluteUrls!==void 0)D.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls;else D.allowAbsoluteUrls=!0;u7.assertOptions(D,{baseUrl:ND.spelling("baseURL"),withXsrfToken:ND.spelling("withXSRFToken")},!0),D.method=(D.method||this.defaults.method||"get").toLowerCase();let z=B&&E.merge(B.common,B[D.method]);B&&E.forEach(["delete","get","head","post","put","patch","common"],(G)=>{delete B[G]}),D.headers=Fu.concat(z,B);let Z=[],q=!0;this.interceptors.request.forEach(function(K){if(typeof K.runWhen==="function"&&K.runWhen(D)===!1)return;q=q&&K.synchronous;let H=D.transitional||ZF;if(H&&H.legacyInterceptorReqResOrdering)Z.unshift(K.fulfilled,K.rejected);else Z.push(K.fulfilled,K.rejected)});let X=[];this.interceptors.response.forEach(function(K){X.push(K.fulfilled,K.rejected)});let Q,W=0,Y;if(!q){let G=[H3.bind(this),void 0];G.unshift(...Z),G.push(...X),Y=G.length,Q=Promise.resolve(D);while(W<Y)Q=Q.then(G[W++],G[W++]);return Q}Y=Z.length;let J=D;while(W<Y){let G=Z[W++],K=Z[W++];try{J=G(J)}catch(H){K.call(this,H);break}}try{Q=H3.call(this,J)}catch(G){return Promise.reject(G)}W=0,Y=X.length;while(W<Y)Q=Q.then(X[W++],X[W++]);return Q}getUri(u){u=oD(this.defaults,u);let D=oF(u.baseURL,u.url,u.allowAbsoluteUrls);return dF(D,u.params,u.paramsSerializer)}}E.forEach(["delete","get","head","options"],function(D){D7.prototype[D]=function(F,$){return this.request(oD($||{},{method:D,url:F,data:($||{}).data}))}});E.forEach(["post","put","patch"],function(D){function F($){return function(z,Z,q){return this.request(oD(q||{},{method:D,headers:$?{"Content-Type":"multipart/form-data"}:{},url:z,data:Z}))}}D7.prototype[D]=F(),D7.prototype[D+"Form"]=F(!0)});var F7=D7;class pZ{constructor(u){if(typeof u!=="function")throw TypeError("executor must be a function.");let D;this.promise=new Promise(function(B){D=B});let F=this;this.promise.then(($)=>{if(!F._listeners)return;let B=F._listeners.length;while(B-- >0)F._listeners[B]($);F._listeners=null}),this.promise.then=($)=>{let B,z=new Promise((Z)=>{F.subscribe(Z),B=Z}).then($);return z.cancel=function(){F.unsubscribe(B)},z},u(function(B,z,Z){if(F.reason)return;F.reason=new YD(B,z,Z),D(F.reason)})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(u){if(this.reason){u(this.reason);return}if(this._listeners)this._listeners.push(u);else this._listeners=[u]}unsubscribe(u){if(!this._listeners)return;let D=this._listeners.indexOf(u);if(D!==-1)this._listeners.splice(D,1)}toAbortSignal(){let u=new AbortController,D=(F)=>{u.abort(F)};return this.subscribe(D),u.signal.unsubscribe=()=>this.unsubscribe(D),u.signal}static source(){let u;return{token:new pZ(function($){u=$}),cancel:u}}}var yP=pZ;function lZ(u){return function(F){return u.apply(null,F)}}function gZ(u){return E.isObject(u)&&u.isAxiosError===!0}var dZ={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(dZ).forEach(([u,D])=>{dZ[D]=u});var bP=dZ;function RP(u){let D=new F7(u),F=T4(F7.prototype.request,D);return E.extend(F,F7.prototype,D,{allOwnKeys:!0}),E.extend(F,D,null,{allOwnKeys:!0}),F.create=function(B){return RP(oD(u,B))},F}var Ku=RP(B8);Ku.Axios=F7;Ku.CanceledError=YD;Ku.CancelToken=yP;Ku.isCancel=g4;Ku.VERSION=eF;Ku.toFormData=zF;Ku.AxiosError=F0;Ku.Cancel=Ku.CanceledError;Ku.all=function(D){return Promise.all(D)};Ku.spread=lZ;Ku.isAxiosError=gZ;Ku.mergeConfig=oD;Ku.AxiosHeaders=Fu;Ku.formToJSON=(u)=>z3(E.isHTMLForm(u)?new FormData(u):u);Ku.getAdapter=K3.getAdapter;Ku.HttpStatusCode=bP;Ku.default=Ku;var oZ=Ku;var J7=M0(P_(),1);import C_ from"path";class ED{static count=0;static resetCount(){this.count=0}static normalizeTriggerInclude(u,D){let{writeStreams:F}=D;for(let[$,B]of Object.entries(u??{}))if(typeof B.trigger?.include==="string")B.trigger.include=[{local:B.trigger.include}];else if(B.trigger?.project)F.memoStdout(S`{bgYellowBright WARN } The job: \`{blueBright ${$}}\` will be no-op. Multi-project pipeline is not supported by gitlab-ci-local\n`)}static async init(u,D){let{argv:F}=D;this.count++,I1(this.count<=D.maximumIncludes+1,S`This GitLab CI configuration is invalid: Maximum of {blueBright ${D.maximumIncludes}} nested includes are allowed!. This limit can be increased with the --maximum-includes cli flags.`);let $=[],B=[],{stateDir:z,cwd:Z,fetchIncludes:q,gitData:X,expandVariables:Q}=D,W=new Map,Y=this.expandInclude(u?.include,D.variables);this.normalizeTriggerInclude(u,D);for(let[J,G]of Y.entries()){if(G.rules){let K=G.rules;if(P.getRulesResult({argv:F,cwd:Z,rules:K,variables:D.variables},X).when==="never")continue}if(G.file)for(let K of Array.isArray(G.file)?G.file:[G.file])B.push(this.downloadIncludeProjectFile(Z,z,G.project,G.ref||"HEAD",K,X,q));else if(G.template){let{project:K,ref:H,file:f,domain:x}=this.covertTemplateToProjectFile(G.template),L=`https://${x}/${K}/-/raw/${H}/${f}`;B.push(this.downloadIncludeRemote(Z,z,L,q))}else if(G.remote)B.push(this.downloadIncludeRemote(Z,z,G.remote,q));else if(G.component){let K=this.parseIncludeComponent(G.component,X);if(W.set(J,K),!K.isLocal)B.push(this.downloadIncludeComponent(Z,z,K.projectPath,K.ref,K.name,X,q))}}await Promise.all(B);for(let[J,G]of Y.entries()){if(G.rules){let K=G.rules;if(P.getRulesResult({argv:F,cwd:Z,rules:K,variables:D.variables},X).when==="never")continue}if(G.local){_3(G.local);let K=await U3(G.local,Z);if(K.length==0)throw new Y7({message:`Local include file cannot be found ${G.local}`});for(let H of K){let f=await k0.loadYaml(H,{inputs:G.inputs??{}},Q);$=$.concat(await this.init(f,D))}}else if(G.project)for(let K of Array.isArray(G.file)?G.file:[G.file]){let H=await k0.loadYaml(`${Z}/${z}/includes/${X.remote.host}/${G.project}/${G.ref||"HEAD"}/${K}`,{inputs:G.inputs||{}},Q);H.include=this.expandInnerLocalIncludes(H.include,G.project,G.ref,D),$=$.concat(await this.init(H,D))}else if(G.component){let K=W.get(J);I1(K!==void 0,`Internal error, component parse cache missing entry [${J}]`);let H=[`${K.name}.yml`,`${K.name}/template.yml`],f=null;for(let L of H){let A=`${Z}/${L}`;if(!K.isLocal)A=`${Z}/${z}/includes/${X.remote.host}/${K.projectPath}/${K.ref}/${L}`;if(JD.default.existsSync(A))f=A}I1(f!==null,`This GitLab CI configuration is invalid: component: \`${G.component}\`. One of the files [${H}] must exist in \`${K.domain}`+(K.port?`:${K.port}`:"")+`/${K.projectPath}\``);let x=await k0.loadYaml(f,{inputs:G.inputs||{}},Q);x.include=this.expandInnerLocalIncludes(x.include,K.projectPath,K.ref,D),$=$.concat(await this.init(x,D))}else if(G.template){let{project:K,ref:H,file:f,domain:x}=this.covertTemplateToProjectFile(G.template),L=P.fsUrl(`https://${x}/${K}/-/raw/${H}/${f}`),A=await k0.loadYaml(`${Z}/${z}/includes/${L}`,{inputs:G.inputs||{}},Q);$=$.concat(await this.init(A,D))}else if(G.remote){let K=P.fsUrl(G.remote),H=await k0.loadYaml(`${Z}/${z}/includes/${K}`,{inputs:G.inputs||{}},Q);$=$.concat(await this.init(H,D))}else throw new Y7({message:`Didn't understand include ${JSON.stringify(G)}`})}return $.push(u),$}static expandInclude(u,D){let F=u||[];if(F&&F.length==null)F=[u];if(typeof F==="string")F=[F];for(let[$,B]of Object.entries(F))if(typeof B==="string"&&(B.startsWith("https:")||B.startsWith("http:")))F[$]={remote:B};else if(typeof B==="string")F[$]={local:B};else F[$]=B;for(let $ of F)for(let[B,z]of Object.entries($))if(Array.isArray(z))$[B]=z.map((Z)=>P.expandText(Z,D));else $[B]=P.expandText(z,D);return F}static covertTemplateToProjectFile(u){return{domain:"gitlab.com",project:"gitlab-org/gitlab",ref:"HEAD",file:`lib/gitlab/ci/templates/${u}`}}static parseIncludeComponent(u,D){I1(!u.includes("://"),`This GitLab CI configuration is invalid: component: \`${u}\` should not contain protocol`);let $=/(?<domain>[^/:\s]+)(:(?<port>\d+))?\/(?<projectPath>.+)\/(?<componentName>[^@]+)@(?<ref>.+)/.exec(u);if($?.groups==null)throw Error(`This is a bug, please create a github issue if this is something you're expecting to work. input: ${u}`);let{domain:B,projectPath:z,port:Z}=$.groups,q=$.groups.ref,X=z===`${D.remote.group}/${D.remote.project}`&&q===D.commit.SHA;if(!X){let Q=/^\d+(\.\d+)?$/;if(q=="~latest"||Q.test(q)){let W;if(D.remote.schema=="git"||D.remote.schema=="ssh")W=P.syncSpawn(["git","ls-remote","--tags",`git@${B}:${z}`]).stdout;else W=P.syncSpawn(["git","ls-remote","--tags",`${D.remote.schema}://${B}:${Z??443}/${z}.git`]).stdout;I1(W);let Y=W.split(`
|
|
256
|
+
`).map((G)=>{return G.split("\t")[1].split("/")[2]}),J=o90(q,Y);I1(J,`This GitLab CI configuration is invalid: component: \`${u}\` - The ref (${q}) is invalid`),q=J}}return{domain:B,port:Z,projectPath:z,name:`templates/${$.groups.componentName}`,ref:q,isLocal:X}}static expandInnerLocalIncludes(u,D,F,$){let{argv:B}=$,z=this.expandInclude(u,$.variables);return z.forEach((Z,q)=>{if(!Z.local)return;if(Z.rules){if(P.getRulesResult({argv:B,cwd:$.cwd,variables:$.variables,rules:Z.rules},$.gitData).when==="never")return}z[q]={project:D,file:Z.local.replace(/^\//,""),ref:F,inputs:Z.inputs||{}}}),z}static async downloadIncludeRemote(u,D,F,$){let B=P.fsUrl(F);try{let z=`${u}/${D}/includes/${B}`;if(await JD.default.pathExists(z)&&!$)return;let Z=await oZ.get(F,{headers:{"User-Agent":"gitlab-ci-local"},...P.getAxiosProxyConfig()});await JD.default.outputFile(z,Z.data)}catch(z){throw new Y7({message:`Remote include could not be fetched ${F}
|
|
257
|
+
${z}`})}}static async downloadIncludeProjectFile(u,D,F,$,B,z,Z){let q=z.remote,X=B.replace(/^\/+/,""),Q=null;try{let W=`${D}/includes/${q.host}/${F}/${$}`;if(await JD.default.pathExists(`${u}/${W}/${X}`)&&!Z)return;if(q.schema.startsWith("http")){let Y="tmp-"+Math.random();await JD.default.mkdirp(C_.dirname(`${u}/${W}/${X}`)),Q=`${u}/${W}.${Y}`;let J=$==="HEAD"?"":`--branch ${$}`;await P.bashMulti([`cd ${u}/${D}`,`git clone ${J} -n --depth=1 --filter=tree:0 ${q.schema}://${q.host}:${q.port}/${F}.git ${Q}`,`cd ${Q}`,`git sparse-checkout set --no-cone ${X}`,"git checkout",`cd ${u}/${D}`,`cp ${Q}/${X} ${u}/${W}/${X}`],u)}else await JD.default.mkdirp(`${u}/${W}`),await P.bash(`set -eou pipefail; git archive --remote=ssh://git@${q.host}:${q.port}/${F}.git ${$} ${X} | tar -f - -xC ${W}/`,u)}catch(W){throw new Y7({message:`Project include could not be fetched { project: ${F}, ref: ${$}, file: ${X} }
|
|
258
|
+
${W}`})}finally{if(Q!==null)await JD.default.rm(Q,{recursive:!0,force:!0})}}static async downloadIncludeComponent(u,D,F,$,B,z,Z){let q=z.remote,X=[`${B}.yml`,`${B}/template.yml`],Q=null;try{let W=`${D}/includes/${q.host}/${F}/${$}`;if(!Z&&(await JD.default.pathExists(`${u}/${W}/${X[0]}`)||await JD.default.pathExists(`${u}/${W}/${X[1]}`)))return;if(q.schema.startsWith("http")){let Y="tmp-"+Math.random();await JD.default.mkdirp(C_.dirname(`${u}/${W}/templates`)),Q=`${u}/${W}.${Y}`;let J=$==="HEAD"?"":`--branch ${$}`;await P.bashMulti([`cd ${u}/${D}`,`git clone ${J} -n --depth=1 --filter=tree:0 ${q.schema}://${q.host}:${q.port}/${F}.git ${Q}`,`cd ${Q}`,`git sparse-checkout set --no-cone ${X[0]} ${X[1]}`,"git checkout",`cd ${u}/${D}`,`mkdir -p ${Q}/templates`,`cp -r ${Q}/templates ${u}/${W}`],u)}else{let Y=`${B}*.yml`;await JD.default.mkdirp(`${u}/${W}`),await P.bash(`set -eou pipefail; git archive --remote=ssh://git@${q.host}:${q.port}/${F}.git ${$} ${Y} | tar -f - -xC ${W}/`,u)}}catch(W){throw new Y7({message:`Component include could not be fetched { project: ${F}, ref: ${$}, file: ${X} }
|
|
259
|
+
${W}`})}finally{if(Q!==null)await JD.default.rm(Q,{recursive:!0,force:!0})}}static memoLocalRepoFiles=(()=>{let u=new Map;return async(D)=>{let F=u.get(D);if(typeof F<"u")return F;return F=(await P.getTrackedFiles(D)).map(($)=>`${D}/${$}`),u.set(D,F),F}})()}function _3(u){I1(!u.startsWith("./"),`\`${u}\` for include:local is invalid. Gitlab does not support relative path (ie. cannot start with \`./\`).`),I1(!u.includes(".."),`\`${u}\` for include:local is invalid. Gitlab does not support directory traversal.`)}function o90(u,D){return J7.default.rsort(D.filter((B)=>J7.default.valid(B))).find((B)=>{if(u=="~latest"){let z=J7.default.parse(B);return I1(z),z.prerelease.length==0&&z.build.length==0}else return J7.default.satisfies(B,u)})}async function U3(u,D){let F=await ED.memoLocalRepoFiles(D);if(!u.startsWith("/"))u=`/${u}`;u=`${D}${u}`,u=u.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");let $=".*?";u=u.replace(/\\\*\\\*/g,$);let B="([^/])*?";u=u.replace(/\\\*/g,B);let z=Du.compile(`^${u}`);return F.filter((Z)=>z.matches(Z))}class G7{static init(u,D,F){let $=new Set;if(F.needs&&F.needs.length===0)return[];if(!F.needs&&!F.dependencies)for(let z of P.getJobNamesFromPreviousStages(u,D,F))$.add(z);(F.dependencies??[]).forEach((z)=>{if((F.needs??[]).find((q)=>q.job===z))return;$.add(z)}),(F.needs??[]).forEach((z)=>{if(!z.artifacts)return;if(z.pipeline)return;if(z.project)return;$.add(z.job)});let B=[];for(let z of u){if(z.artifacts==null)continue;if(z.when=="never")continue;if(!$.has(z.name)&&!$.has(z.baseName))continue;B.push(z)}return B.map((z)=>{return{name:z.name,dotenv:z?.artifacts?.reports?.dotenv??null}})}}var J8=M0(du(),1);import E1 from"assert";var Wq=M0(A6(),1),__=M0(Q6(),1);class K7{static async init(u,D,F){let{cwd:$,stateDir:B,home:z,remoteVariables:Z,autoCompleting:q}=u,X=`${z}/${B}/variables.yml`,Q={},W={},Y={};if(Z&&!q)for(let f=0;f<Z.length;f++){let x=/(?<url>git@.*?)=(?<file>.*?)=(?<ref>.*)/.exec(Z[f]);E1(x!=null,"--remote-variables is malformed use 'git@gitlab.com:firecow/example.git=gitlab-variables.yml=master' syntax");let L=x.groups?.url,A=x.groups?.file,C=x.groups?.ref,I=await P.bash(`set -eou pipefail; git archive --remote=${L} ${C} ${A} | tar -xO ${A}`,$),_=n1(`${I.stdout}`);if(typeof _==="object"&&_!==null)W=__.default(W,_)}if(await J8.default.pathExists(X))Y=n1(await J8.default.readFile(X,"utf8"),{schema:d$});let J=(f)=>{if(typeof f==="string"){let x={values:{},type:null};return x.values={},x.values["*"]=f,x}else f.type=f.type??"variable";return f},G=async(f,x,L,A=!1)=>{let{type:C,values:I}=J(x);for(let[_,R]of Object.entries(I))if(E1(typeof R=="string",`${f}.${_} content must be text or multiline text`),A||C==="variable"||C===null&&!/^[/~]/.exec(R)){let k=_==="*"?/.*/g:new RegExp(`^${_.replace(/\*/g,".*")}$`,"g");Q[f]=Q[f]??{type:"variable",environments:[]},Q[f].environments.push({content:R,regexp:k,regexpPriority:_.length,scopePriority:L})}else if(C===null&&/^[/~]/.exec(R)){let k=R.replace(/^~\/(.*)/,`${z}/$1`),c=_==="*"?/.*/g:new RegExp(`^${_.replace(/\*/g,".*")}$`,"g");if(Q[f]=Q[f]??{type:"file",environments:[]},J8.default.existsSync(k))Q[f].environments.push({content:R,regexp:c,regexpPriority:_.length,scopePriority:L,fileSource:k});else Q[f].environments.push({content:`warn: ${f} is pointing to invalid path
|
|
260
|
+
`,regexp:c,regexpPriority:_.length,scopePriority:L})}else if(C==="file"){let k=_==="*"?/.*/g:new RegExp(`^${_.replace(/\*/g,".*")}$`,"g");Q[f]=Q[f]??{type:"file",environments:[]},Q[f].environments.push({content:R,regexp:k,regexpPriority:_.length,scopePriority:L})}else E1(!1,`${f} was not handled properly`)},K=async(f,x)=>{for(let[C,I]of Object.entries(f?.global??{}))await G(C,I,1+x);let L=`${F.remote.host}/${F.remote.group}/`;for(let[C,I]of Object.entries(f?.group??{})){if(!L.includes(this.normalizeProjectKey(C,D)))continue;E1(I!=null,"groupEntries cannot be null/undefined"),E1(P.isObject(I),"group entries in variable files must be an object");for(let[_,R]of Object.entries(I))await G(_,R,2+x)}let A=`${F.remote.host}/${F.remote.group}/${F.remote.project}.git`;for(let[C,I]of Object.entries(f?.project??[])){if(!A.includes(this.normalizeProjectKey(C,D)))continue;E1(I!=null,"projectEntries cannot be null/undefined"),E1(P.isObject(I),"project entries in variable files must be an object");for(let[_,R]of Object.entries(I))await G(_,R,3+x)}};await K(W,0),await K(Y,10);let H=`${u.cwd}/${u.variablesFile}`;if(J8.default.existsSync(H)){let f=!1,x=await J8.default.readFile(H,"utf8"),L;try{if(L=n1(x,{schema:d$})??{},typeof L==="string")f=!0,L=Wq.default.parse(x)}catch(A){if(A instanceof x6)f=!0,L=Wq.default.parse(x)}E1(L!=null,"projectEntries cannot be null/undefined"),E1(P.isObject(L),`${u.cwd}/.gitlab-ci-local-variables.yml must contain an object`);for(let[A,C]of Object.entries(L))await G(A,C,24,f)}for(let f of Object.values(Q))f.environments.sort((x,L)=>L.scopePriority-x.scopePriority),f.environments.sort((x,L)=>L.regexpPriority-x.regexpPriority);return Q}static normalizeProjectKey(u,D){if(!u.includes(":"))return u;return D.stderr(S`{yellow WARNING: Interpreting '${u}' as '${u.replace(":","/")}'}\n`),u.replace(":","/")}}var Yq=/[\p{Lu}]/u,s90=/[\p{Ll}]/u,r90=/^[\p{Lu}](?![\p{Lu}])/u,H7=/[_.\- ]+/,U_=/([\p{Alpha}\p{N}_]|$)/u,a90=new RegExp("^"+H7.source),t90=new RegExp(H7.source+U_.source,"gu"),e90=new RegExp(String.raw`\d+`+U_.source,"gu"),u50=(u,D,F,$)=>{let B=!1,z=!1,Z=!1,q=!1;for(let X=0;X<u.length;X++){let Q=u[X];if(q=X>2?u[X-3]==="-":!0,B&&Yq.test(Q))u=u.slice(0,X)+"-"+u.slice(X),B=!1,Z=z,z=!0,X++;else if(z&&Z&&s90.test(Q)&&(!q||$))u=u.slice(0,X-1)+"-"+u.slice(X-1),Z=z,z=!1,B=!0;else B=D(Q)===Q&&F(Q)!==Q,Z=z,z=F(Q)===Q&&D(Q)!==Q}return u},D50=(u,D)=>u.replace(r90,(F)=>D(F)),F50=(u,D,F)=>{let $="",B=!1,z=!1,Z=[...u];for(let q=0;q<Z.length;q++){let X=Z[q],Q=Yq.test(X),W=q+1<Z.length&&Yq.test(Z[q+1]);if(B&&/[\p{Alpha}]/u.test(X))$+=X,B=!1,z=Q;else if(F&&Q&&(z||W))$+=X,z=!0;else if(/\d/.test(X))$+=X,B=!0,z=!1;else if(H7.test(X))$+=X,z=!1;else $+=D(X),B=!1,z=!1}return $},$50=(u,D,{capitalizeAfterNumber:F})=>{let $=F?(B,z,Z,q)=>{let X=q.charAt(Z+B.length);if(H7.test(X))return B;return z?B.slice(0,-z.length)+D(z):B}:(B)=>B;return u.replaceAll(e90,$).replaceAll(t90,(B,z)=>D(z))};function F6(u,D){if(!(typeof u==="string"||Array.isArray(u)))throw TypeError("Expected the input to be `string | string[]`");if(D={pascalCase:!1,preserveConsecutiveUppercase:!1,capitalizeAfterNumber:!0,...D},Array.isArray(u))u=u.map((Z)=>Z.trim()).filter((Z)=>Z.length>0).join("-");else u=u.trim();if(u.length===0)return"";let F=u.match(/^[_$]*/)[0];if(u=u.slice(F.length),u.length===0)return F;let $=D.locale===!1?(Z)=>Z.toLowerCase():(Z)=>Z.toLocaleLowerCase(D.locale),B=D.locale===!1?(Z)=>Z.toUpperCase():(Z)=>Z.toLocaleUpperCase(D.locale);if(u.length===1){if(H7.test(u))return F;return F+(D.pascalCase?B(u):$(u))}if(u!==$(u))u=u50(u,$,B,D.preserveConsecutiveUppercase);if(u=u.replace(a90,""),D.capitalizeAfterNumber)u=D.preserveConsecutiveUppercase?D50(u,$):$(u);else u=F50(u,$,D.preserveConsecutiveUppercase);if(D.pascalCase&&u.length>0)u=B(u[0])+u.slice(1);return F+$50(u,B,D)}function i3({gitData:u,argv:D,envMatchedVariables:F}){let $={...F,...D.variable},B=$.CI_SERVER_PROTOCOL??(u.remote.schema==="http"||u.remote.schema==="https"?u.remote.schema:"https"),z=$.CI_SERVER_PORT??(u.remote.schema==="http"||u.remote.schema==="https"?u.remote.port:"443"),Z=$.CI_SERVER_SHELL_SSH_PORT??(u.remote.schema==="ssh"?u.remote.port:"22"),q=$.CI_SERVER_HOST??`${u.remote.host}`,X=$.CI_SERVER_FQDN??(z=="443"?u.remote.host:`${u.remote.host}:${z}`),Q=$.CI_SERVER_URL??`${B}://${X}`,W=u.remote.group.split("/")[0],Y=u.remote.group,J=X.includes(":")?X:`${q}:${z}`,G={CI:"true",GITLAB_USER_LOGIN:u.user.GITLAB_USER_LOGIN,GITLAB_USER_EMAIL:u.user.GITLAB_USER_EMAIL,GITLAB_USER_NAME:u.user.GITLAB_USER_NAME,GITLAB_USER_ID:u.user.GITLAB_USER_ID,CI_COMMIT_SHORT_SHA:u.commit.SHA.slice(0,8),CI_COMMIT_SHA:u.commit.SHA,CI_PROJECT_NAME:u.remote.project,CI_PROJECT_TITLE:`${F6(u.remote.project)}`,CI_PROJECT_PATH:`${u.remote.group}/${u.remote.project}`,CI_PROJECT_PATH_SLUG:`${u.remote.group.replace(/\//g,"-")}-${u.remote.project}`.toLowerCase(),CI_PROJECT_ROOT_NAMESPACE:W,CI_PROJECT_NAMESPACE:Y,CI_PROJECT_VISIBILITY:"internal",CI_PROJECT_ID:"1217",CI_COMMIT_REF_PROTECTED:"false",CI_COMMIT_BRANCH:u.commit.REF_NAME,CI_COMMIT_REF_NAME:u.commit.REF_NAME,CI_COMMIT_REF_SLUG:u.commit.REF_NAME.replace(/[^a-z\d]+/ig,"-").replace(/^-/,"").slice(0,63).replace(/-$/,"").toLowerCase(),CI_COMMIT_TIMESTAMP:u.commit.TIMESTAMP,CI_PIPELINE_CREATED_AT:new Date().toISOString().split(".")[0]+"Z",CI_COMMIT_TITLE:"Commit Title",CI_COMMIT_MESSAGE:`Commit Title
|
|
261
|
+
More commit text`,CI_COMMIT_DESCRIPTION:"More commit text",CI_DEFAULT_BRANCH:u.branches.default,CI_PIPELINE_SOURCE:"push",CI_SERVER_FQDN:X,CI_SERVER_HOST:q,CI_SERVER_PORT:z,CI_SERVER_SHELL_SSH_PORT:Z,CI_SERVER_URL:Q,CI_SERVER_PROTOCOL:B,CI_API_V4_URL:`${Q}/api/v4`,CI_PROJECT_URL:`${Q}/${u.remote.group}/${u.remote.project}`,CI_TEMPLATE_REGISTRY_HOST:"registry.gitlab.com",GITLAB_CI:"false",FF_DISABLE_UMASK_FOR_DOCKER_EXECUTOR:D.umask?"false":"true",CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX:`${J}/${Y}/dependency_proxy/containers`,CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX:`${J}/${W}/dependency_proxy/containers`,CI_DEPENDENCY_PROXY_SERVER:J,CI_DEPENDENCY_PROXY_USER:"gitlab-ci-token"};for(let K of D.unsetVariables)delete G[K];return G}var B50=3,z50=["string","boolean","number","array"];class k0{_stages=[];_gitlabData;_jobNamePad=null;jobs;argv;writeStreams;pipelineIid;expandVariables;constructor(u,D,F,$,B){this.argv=u,this.writeStreams=D,this.pipelineIid=F,this.jobs=$,this.expandVariables=B}get stages(){return this._stages}get gitlabData(){return this._gitlabData}get jobNamePad(){return this._jobNamePad??0}static async create(u,D,F,$,B=!0){let z=new k0(u,D,F,$,B),Z=process.hrtime();await z.init();let q=await pF.run(z.jobs,z.stages);for(let W of z.jobs)if(W.artifacts===null)W.deleteArtifacts();let X=process.hrtime(Z),Q=Jq.join(u.cwd,u.stateDir,"expanded-gitlab-ci.yml");if(f7.default.mkdirpSync(Jq.join(u.cwd,u.stateDir)),f7.default.writeFileSync(Q,su(z.gitlabData)),u.childPipelineDepth==0)D.stderr(S`{grey parsing and downloads finished in ${Gq.default(X)}.}\n`);for(let W of q)D.stderr(S`{yellow ${W}}\n`);if(z.argv.jsonSchemaValidation){let W=process.hrtime();if(pF.jsonSchemaValidation({pathToExpandedGitLabCi:Q,gitLabCiConfig:z.gitlabData,argv:u}),u.childPipelineDepth==0)D.stderr(S`{grey json schema validated in ${Gq.default(process.hrtime(W))}}\n`)}return z}async init(){let u=this.argv,D=u.cwd,F=u.stateDir,$=this.writeStreams,B=u.file,z=this.pipelineIid,Z=u.fetchIncludes,q=await d1.init(D,$),X=await K7.init(u,$,q),Q=P.findEnvMatchedVariables(X),W=i3({gitData:q,argv:u,envMatchedVariables:Q}),Y={...W,...Q,...u.variable},J=P.expandVariables(Y),G=[{stages:[".pre","build","test","deploy",".post"]}],K=await k0.loadYaml(`${D}/${B}`,{},this.expandVariables);G=G.concat(await ED.init(K,{argv:u,cwd:D,stateDir:F,writeStreams:$,gitData:q,fetchIncludes:Z,variables:J,expandVariables:this.expandVariables,maximumIncludes:u.maximumIncludes})),ED.resetCount();let H=await k0.loadYaml(`${D}/.gitlab-ci-local.yml`,{},this.expandVariables);G=G.concat(await ED.init(H,{argv:u,cwd:D,stateDir:F,writeStreams:$,gitData:q,fetchIncludes:Z,variables:J,expandVariables:this.expandVariables,maximumIncludes:u.maximumIncludes})),ED.resetCount();let f=i_.default({},...G);if(W9(f),n8(f,f),K9(f),Y9(f),G9(f),J9(f),PD(f.stages&&Array.isArray(f.stages),S`{yellow stages:} must be an array`),!f.stages.includes(".pre"))f.stages.unshift(".pre");if(!f.stages.includes(".post"))f.stages.push(".post");if(this._stages=f.stages,P.forEachRealJob(f,(x,L)=>{PD(L.when!=="never",S`This GitLab CI configuration is invalid: jobs:${x} when:never can only be used in a rules section or workflow:rules`);for(let[A,C]of Object.entries(L.variables??{}))L.variables[A]=P.normalizeVariables(C);for(let A=0;A<(L.services??[]).length;A++){let C=L.services[A];for(let[I,_]of Object.entries(C.variables||{}))PD(typeof _==="string"||typeof _==="number"||typeof _==="boolean",S`{blueBright ${x}.services[${A}]} has invalid variables hash of key value pairs. ${I}=${_}`),L.services[A].variables[I]=String(_)}}),this._gitlabData=f,P.forEachRealJob(f,(x,L)=>{PD(q!=null,"gitData must be set"),PD(X!=null,"homeVariables must be set");let A=1,C=n5(L,x);for(let I of C){let _=x;if(I)_=`${x}: [${Object.values(I??[]).join(",")}]`;else if(S4(L))_=`${x}: [${A}/${C.length}]`;let R=new LD({argv:u,writeStreams:$,data:L,name:_,baseName:x,globalVariables:f.variables,pipelineIid:z,predefinedVariables:{...W},gitData:q,variablesFromFiles:X,matrixVariables:I,nodeIndex:L.parallel!=null?A:null,nodesTotal:C.length,expandVariables:this.expandVariables}),k=this.stages.includes(R.stage);PD(k,S`{yellow stage:${R.stage}} not found for {blueBright ${R.name}}`),this.jobs.push(R),A++}}),this.argv.maxJobNamePadding!==null&&this.argv.maxJobNamePadding<=0)this._jobNamePad=0;else if((this.argv.job.length!==0?this.argv.job:this.jobs).forEach((L)=>{let A=[];if(this.argv.needs&&this.argv.job.length>0){let I=this.jobs.find((_)=>_.baseName===L);if(I?.needs)A=I.needs.map((_)=>_.job.length)}let C=typeof L=="string"?L.length:L.name.length;this._jobNamePad=Math.max(C,this._jobNamePad??0,...A)}),this.argv.maxJobNamePadding!==null)this._jobNamePad=Math.min(this.argv.maxJobNamePadding??0,this._jobNamePad??0);this.jobs.forEach((x)=>{x.jobNamePad=this.jobNamePad}),this.jobs.forEach((x)=>{x.producers=G7.init(this.jobs,this.stages,x)})}static async loadYaml(u,D={},F=!0){let $=`${u}`;if(!f7.default.existsSync($))return{};let z=(await f7.default.readFile(`${u}`,"utf8")).split(/\r?\n/g),Z=z.slice(),q=null,X=null,Q=null,W=null,Y=0;if(F)for(let H of z){if(q=q??/#\s?@\s?[Ii]nteractive/.exec(H),Q=Q??/#\s?@\s?[Ii]njectSSHAgent/.exec(H),W=W??/#\s?@\s?NoArtifactsToSource/i.exec(H),X=X??/#\s?@\s?[Dd]escription (?<description>.*)/.exec(H),/\w:/.exec(H)&&(q||X||Q||W)){if(q)Z.splice(Y+1,0," gclInteractive: true"),Y++;if(Q)Z.splice(Y+1,0," gclInjectSSHAgent: true"),Y++;if(W)Z.splice(Y+1,0," gclArtifactsToSource: false"),Y++;if(X)Z.splice(Y+1,0,` gclDescription: ${X?.groups?.description??""}`),Y++;q=null,X=null,Q=null,W=null}Y++}let J=new Z9("!reference",{kind:"sequence",construct:function(H){return{referenceData:H}}}),G=q9.extend([J]),K;try{K=M6(Z.join(`
|
|
262
|
+
`),null,{schema:G})}catch(H){if(H instanceof x6&&H.reason==="duplicated mapping key")console.log(S`{black.bgYellowBright WARN } duplicated mapping key detected! Values will be overwritten!`),K=M6(Z.join(`
|
|
263
|
+
`),null,{schema:G,json:!0});else throw H}if(K.length<=1)return K[0];if(Z50(K[0])){let H=K[0],f=K[1],x=JSON.stringify(f).replace(/(?<firstChar>.)?(?<secondChar>.)?\$\[\[\s*inputs.(?<interpolationKey>[\w-]+)\s*\|?\s*(?<interpolationFunctions>.*?)\s*\]\](?<lastChar>[^$])?/g,(L,A,C,I,_,R)=>{let k=Jq.relative(process.cwd(),u),c={interpolationKey:I,interpolationFunctions:_,inputsSpecification:H,configFilePath:k,...D};A??="",C??="",R??="";let{inputValue:e,inputType:w}=W50(c),h=A+C;switch(w){case"array":if(C=='"'&&R=='"'&&A!="\\")return A+JSON.stringify(e);return h+JSON.stringify(JSON.stringify(e)).slice(1,-1)+R;case"string":return h+JSON.stringify(e).slice(1,-1)+R;case"number":case"boolean":if(C=='"'&&R=='"'&&A!="\\")return A+e;return h+e+R;default:P.switchStatementExhaustiveCheck(w)}});return JSON.parse(x)}return K[0]}}function Z50(u){return"spec"in u}function q50(u){let{configFilePath:D,interpolationKey:F,inputsSpecification:$}=u,B=S`This GitLab CI configuration is invalid: \`{blueBright ${D}}\`: unknown interpolation key: \`${F}\`.`;PD($.spec.inputs?.[F]!==void 0,B)}function X50(u){let{interpolationFunctions:D,configFilePath:F}=u;if(D!="")console.log(S`{black.bgYellowBright WARN } interpolation functions is currently not supported via gitlab-ci-local. Functions will just be a no-op.`);PD(D.split("|").length<=B50,S`This GitLab CI configuration is invalid: \`{blueBright ${F}}\`: too many functions in interpolation block.`)}function Q50(u){let{configFilePath:D,interpolationKey:F,inputsSpecification:$}=u,B=v_(u),z=$.spec.inputs[F]?.options;if(z)PD(z.includes(B),S`This GitLab CI configuration is invalid: \`{blueBright ${D}}\`: \`{blueBright ${F}}\` input: \`{blueBright ${B}}\` cannot be used because it is not in the list of allowed options.`);let Z=S_(u);PD(z50.includes(Z),S`This GitLab CI configuration is invalid: \`{blueBright ${D}}\`: header:spec:inputs:{blueBright ${F}} input type unknown value: {blueBright ${Z}}.`);let q=Array.isArray(B)?"array":typeof B;if(PD(q===Z,S`This GitLab CI configuration is invalid: \`{blueBright ${D}}\`: \`{blueBright ${F}}\` input: provided value is not a {blueBright ${Z}}.`),$.spec.inputs[F]?.regex)console.log(S`{black.bgYellowBright WARN } spec:inputs:regex is currently not supported via gitlab-ci-local. This will just be a no-op.`)}function W50(u){return q50(u),X50(u),Q50(u),{inputValue:v_(u),inputType:S_(u)}}function v_(u){let{inputs:D,interpolationKey:F,configFilePath:$,inputsSpecification:B}=u,z=D?.[F]??B.spec.inputs[F]?.default;return PD(z!==void 0,S`This GitLab CI configuration is invalid: \`{blueBright ${$}}\`: \`{blueBright ${F}}\` input: required value has not been provided.`),z}function S_(u){let{interpolationKey:D,inputsSpecification:F}=u;return F.spec.inputs[D]?.type||"string"}var v3=M0(du(),1);var T_=async(u)=>{if(!v3.default.existsSync(u))return{};let D=await v3.default.readFile(u,"utf8");return n1(D)||{}},wu=async(u,D)=>{let F=`${u}/${D}/state.yml`,$=await T_(F);return $.pipelineIid?$.pipelineIid:0},G8=async(u,D)=>{let F=`${u}/${D}/state.yml`,$=await T_(F);$.pipelineIid=$.pipelineIid!=null?$.pipelineIid+1:0,await v3.default.outputFile(F,`---
|
|
264
|
+
${su($)}`)};var S3=M0(PF(),1);var V7=M0(du(),1),b_=M0(A6(),1);import Kq from"assert";import*as K8 from"path";async function Y50(){try{return await P.spawn(["git","rev-parse","--is-inside-work-tree"]),!0}catch{return!1}}async function J50(){let{stdout:u}=await P.spawn(["git","rev-parse","--show-toplevel"]);return u}class X1{static default={variablesFile:".gitlab-ci-local-variables.yml",evaluateRuleChanges:!0,ignoreSchemaPaths:[],ignorePredefinedVars:""};map=new Map;writeStreams;async fallbackCwd(u){if(u.cwd!==void 0||u.file!==void 0)return;if(V7.default.existsSync(`${process.cwd()}/.gitlab-ci.yml`))return;if(!await Y50())return;this.writeStreams?.stderr(S`{yellow .gitlab-ci.yml not found in cwd, falling back to git root directory}\n`),this.map.set("cwd",K8.relative(process.cwd(),await J50()))}static async build(u,D){let F=new X1(u,D);if(await F.fallbackCwd(u),F.injectDotenv(`${F.home}/.gitlab-ci-local/.env`,u),F.injectDotenv(`${F.cwd}/.gitlab-ci-local-env`,u),!F.shellExecutorNoImage&&F.shellIsolation)D?.stderr(S`{black.bgYellowBright WARN } --shell-isolation does not work with --no-shell-executor-no-image\n`);if(F.defaultImageExplicitlySet&&F.shellIsolation)D?.stderr(S`{black.bgYellowBright WARN } --default-image does not work with --shell-isolation=true\n`);if(F.defaultImageExplicitlySet&&F.shellExecutorNoImage)D?.stderr(S`{black.bgYellowBright WARN } --default-image does not work with --shell-executor-no-image=true\n`);if(F.defaultImageExplicitlySet&&F.forceShellExecutor)D?.stderr(S`{black.bgYellowBright WARN } --default-image does not work with --force-shell-executor=true\n`);return F}constructor(u,D){if(u.noColor)C1.level=0;this.writeStreams=D;for(let[F,$]of Object.entries(u))this.map.set(F,$)}injectDotenv(u,D){if(V7.default.existsSync(u)){let F=b_.parse(V7.default.readFileSync(u));for(let[$,B]of Object.entries(F)){let z=F6($);if(z==="variable"){let Z=D[z];if(Z==null)Z=[],this.map.set(z,Z);if(!Array.isArray(Z))continue;for(let q of B.split(" "))Z.unshift(q)}else if(D[z]==null)if(B==="true")this.map.set(z,!0);else if(B==="false")this.map.set(z,!1);else if(B==="null")this.map.set(z,null);else if(!isNaN(Number(B)))this.map.set(z,Number(B));else this.map.set(z,B)}}}get cwd(){let u=this.map.get("cwd")??".";return Kq(typeof u!="object","--cwd option cannot be an array"),Kq(!K8.isAbsolute(u),"Please use relative path for the --cwd option"),u=K8.normalize(`${process.cwd()}/${u}`),u=u.replace(/\/$/,""),Kq(V7.default.pathExistsSync(u),`${u} is not a directory`),u}get variablesFile(){return this.map.get("variablesFile")??X1.default.variablesFile}get evaluateRuleChanges(){return this.map.get("evaluateRuleChanges")??X1.default.evaluateRuleChanges}get file(){return this.map.get("file")??".gitlab-ci.yml"}get stateDir(){return(this.map.get("stateDir")??".gitlab-ci-local").replace(/\/$/,"")}get home(){return(this.map.get("home")??process.env.HOME??"").replace(/\/$/,"")}get volume(){let u=this.map.get("volume")??[];return typeof u=="string"?u.split(" "):u}get network(){let u=this.map.get("network")??[];return typeof u=="string"?u.split(" "):u}get extraHost(){let u=this.map.get("extraHost")??[];return typeof u=="string"?u.split(" "):u}get caFile(){return this.map.get("caFile")??null}get ignoreSchemaPaths(){return this.map.get("ignoreSchemaPaths")??X1.default.ignoreSchemaPaths}get ignorePredefinedVars(){return this.map.get("ignorePredefinedVars")??X1.default.ignorePredefinedVars}get pullPolicy(){return this.map.get("pullPolicy")??"if-not-present"}get remoteVariables(){let u=this.map.get("remoteVariables")??[];return typeof u=="string"?u.split(" "):u}get variable(){let u=this.map.get("variable"),D={};return((typeof u=="string"?u.split(" "):u)??[]).forEach(($)=>{let B=/(?<key>\w*?)(=)(?<value>(.|\n|\r)*)/.exec($);if(B?.groups?.key)D[B.groups.key]=B?.groups?.value}),D}get unsetVariables(){return this.map.get("unsetVariable")??[]}get manual(){let u=this.map.get("manual")??[];return typeof u=="string"?u.split(" "):u}get job(){return this.map.get("job")??[]}get autoCompleting(){return this.map.get("autoCompleting")??!1}get cleanup(){return this.map.get("cleanup")??!0}get quiet(){return this.map.get("quiet")??!1}get umask(){return this.map.get("umask")??!0}get userns(){return this.map.get("userns")}get privileged(){return this.map.get("privileged")??!1}get device(){let u=this.map.get("device")??[];return typeof u=="string"?u.split(" "):u}get ulimit(){let u=this.map.get("ulimit");if(!u)return null;return u}get shmSize(){return this.map.get("shmSize")}get needs(){return this.map.get("needs")??!1}get onlyNeeds(){return this.map.get("onlyNeeds")??!1}get stage(){return this.map.get("stage")??null}get completion(){return this.map.get("completion")??!1}get list(){return this.map.get("list")??!1}get listAll(){return this.map.get("listAll")??!1}get listJson(){return this.map.get("listJson")??!1}get listCsv(){return this.map.get("listCsv")??!1}get listCsvAll(){return this.map.get("listCsvAll")??!1}get preview(){return this.map.get("preview")??!1}get validateDependencyChain(){return this.map.get("validateDependencyChain")??!1}get shellIsolation(){return this.map.get("shellIsolation")??!1}get fetchIncludes(){return this.map.get("fetchIncludes")??!1}get mountCache(){return this.map.get("mountCache")??!1}get artifactsToSource(){return this.map.get("artifactsToSource")??!0}get showTimestamps(){return this.map.get("timestamps")??!1}get maxJobNamePadding(){return this.map.get("maxJobNamePadding")??null}get containerMacAddress(){return this.map.get("containerMacAddress")??null}get containerEmulate(){return this.map.get("containerEmulate")??null}get concurrency(){let u=this.map.get("concurrency");if(!u)return null;return Number(u)}get containerExecutable(){return this.map.get("containerExecutable")??"docker"}get jsonSchemaValidation(){return this.map.get("jsonSchemaValidation")??!0}get shellExecutorNoImage(){return this.map.get("shellExecutorNoImage")??!0}get forceShellExecutor(){return this.map.get("forceShellExecutor")??!1}get defaultImage(){return this.map.get("defaultImage")??"docker.io/ruby:3.1"}get waitImage(){return this.map.get("waitImage")??"docker.io/sumina46/wait-for-it:latest"}get helperImage(){return this.map.get("helperImage")??"docker.io/firecow/gitlab-ci-local-util:latest"}get defaultImageExplicitlySet(){return this.map.get("defaultImage")??!1}get maximumIncludes(){return this.map.get("maximumIncludes")??150}get childPipelineDepth(){return this.map.get("childPipelineDepth")}get registry(){return this.map.get("registry")??!1}}import Hq from"assert";var fq=(u,D)=>{let F=`${u}/${D}/.gitignore`,$=`*
|
|
265
|
+
!.gitignore
|
|
266
|
+
`;if(!T3.default.existsSync(F))T3.default.outputFileSync(F,`*
|
|
267
|
+
!.gitignore
|
|
268
|
+
`)};async function Vq(u,D,F=[],$=0){Hq($<=2,"Parent and child pipelines have a maximum depth of two levels of child pipelines.");let B=await X1.build({...u,childPipelineDepth:$},D),z=B.cwd,Z=B.stateDir,q=B.file,X;if(B.completion)return F5(process.argv.slice(2)).showCompletionScript(),[];if(Hq(T3.default.existsSync(`${z}/${q}`),`${G50.resolve(z)}/${q} could not be found`),B.preview){let Q=await wu(z,Z);X=await k0.create(B,D,Q,F,!1);let W=X.gitlabData;for(let Y of Object.keys(W)){if(Y==="stages")continue;if(Y.startsWith(".")||["include","after_script","before_script","default"].includes(Y))delete W[Y]}D.stdout(`---
|
|
269
|
+
${su(W,{lineWidth:160})}`)}else if(B.list||B.listAll){let Q=await wu(z,Z);X=await k0.create(B,D,Q,F),Gu.runList(X,D,B.listAll)}else if(B.validateDependencyChain){let Q=await wu(z,Z);X=await k0.create(B,D,Q,F),Gu.validateDependencyChain(X),D.stdout(S`{green ✓ All job dependencies are valid}\n`)}else if(B.listJson){let Q=await wu(z,Z);X=await k0.create(B,D,Q,F),Gu.runJson(X,D)}else if(B.listCsv||B.listCsvAll){let Q=await wu(z,Z);X=await k0.create(B,D,Q,F),Gu.runCsv(X,D,B.listCsvAll)}else if(B.job.length>0){if(Hq(B.stage===null,"You cannot use --stage when starting individual jobs"),B.registry)await P.startDockerRegistry(B);fq(z,Z);let Q=process.hrtime();if(B.needs||B.onlyNeeds)await G8(z,Z);let W=await wu(z,Z);if(X=await k0.create(B,D,W,F),await P.rsyncTrackedFiles(z,Z,".docker"),await Gu.runJobs(B,X,D),B.needs||B.onlyNeeds)D.stderr(S`{grey pipeline finished} in {grey ${S3.default(process.hrtime(Q))}}\n`)}else if(B.stage){if(B.registry)await P.startDockerRegistry(B);fq(z,Z);let Q=process.hrtime(),W=await wu(z,Z);X=await k0.create(B,D,W,F),await P.rsyncTrackedFiles(z,Z,".docker"),await Gu.runJobsInStage(B,X,D),D.stderr(S`{grey pipeline finished} in {grey ${S3.default(process.hrtime(Q))}}\n`)}else{if(B.registry)await P.startDockerRegistry(B);fq(z,Z);let Q=process.hrtime();await G8(z,Z);let W=await wu(z,Z);if(X=await k0.create(B,D,W,F),await P.rsyncTrackedFiles(z,Z,".docker"),await Gu.runPipeline(B,X,D),$==0)D.stderr(S`{grey pipeline finished} in {grey ${S3.default(process.hrtime(Q))}}\n`)}if(D.flush(),B.registry)await P.stopDockerRegistry(B.containerExecutable);return y3(F)}import*as h_ from"crypto";import*as QF from"path";var Lq="<gclShellPromptPlaceholder>",R_=(u)=>/[*?{}(|)[\]]/.test(u),K50=new Intl.DateTimeFormat(void 0,{year:void 0,month:void 0,hour:"numeric",minute:"numeric",second:"numeric",hour12:!1});class LD{generateJobId(){return Math.floor(Math.random()*1e6)}static illegalJobNames=new Set(["include","local_configuration","image","services","stages","before_script","default","after_script","variables","cache","workflow","page:deploy"]);argv;name;baseName;dependencies;environment;jobId;rules;allowFailure;when;exists;pipelineIid;gitData;inherit;_dotenvVariables={};_prescriptsExitCode=null;_afterScriptsExitCode=0;_coveragePercent=null;_running=!1;_containerId=null;_serviceNetworkId=null;_longRunningSilentTimeout=-1;_producers=null;_jobNamePad=null;_ciProjectDir=null;_startTime;_endTime;_filesToRm=[];_globalVariables={};_variables={};_containersToClean=[];_containerVolumeNames=[];jobData;writeStreams;constructor(u){let D=u.data,F=D.variables??{},$=u.variablesFromFiles,B=u.argv,z=B.cwd,Z=B.variable,q=u.expandVariables??!0;this.argv=B,this.writeStreams=u.writeStreams,this.gitData=u.gitData,this.name=u.name,this.baseName=u.baseName,this.jobId=this.generateJobId(),this.jobData=u.data,this.pipelineIid=u.pipelineIid,this._globalVariables=u.globalVariables,this.inherit={},this.inherit.variables=this.jobData.inherit?.variables??!0,this.when=D.when||"on_success",this.exists=D.exists||[],this.allowFailure=D.allow_failure??!1,this.dependencies=D.dependencies||null,this.rules=D.rules||null,this.environment=typeof D.environment==="string"?{name:D.environment}:D.environment?{...D.environment}:D.environment;let X=u.matrixVariables??{},Q=P.findEnvMatchedVariables($,this.fileVariablesDir),W=this._predefinedVariables(u);if(this._variables={...W,...this.globalVariables,...F,...X,...Q,...Z},this.rules&&q){let H=P.expandVariables(this._variables);this.rules.forEach((f,x,L)=>{let A=Array.isArray(f.changes)?f.changes:f.changes?.paths;if(!A)return;A.forEach((C,I,_)=>{_[I]=P.expandText(C,H)}),L[x].changes=A}),this.rules.forEach((f,x,L)=>{let A=Array.isArray(f.exists)?f.exists:null;if(!A)return;A.forEach((C,I,_)=>{_[I]=P.expandText(C,H)}),L[x].exists=A})}let Y;if(this.rules){let H=P.getRulesResult({argv:B,cwd:z,rules:this.rules,variables:this._variables},this.gitData,this.when,D.allow_failure);if(this.when=H.when,this.allowFailure=H.allowFailure,Y=H.variables,H.needs)this.jobData.needs=H.needs;this._variables={...this._variables,...Y,...Z}}if(this.environment&&q){let H=P.expandVariables(this._variables),f=this.environment.name;if(this.environment.name=P.expandText(this.environment.name,H),this.environment.name!==f)W.CI_ENVIRONMENT_SLUG=this._generateEnvironmentSlug(this.environment.name);this.environment.url=P.expandText(this.environment.url,H)}let J=P.findEnvMatchedVariables($,this.fileVariablesDir,this.environment),G={...this.globalVariables,...F,...X,...Y,...J,...Z};this.discourageOverridingOfPredefinedVariables(W,G,B.ignorePredefinedVars),this._variables={...W,...G};for(let H of B.unsetVariables)delete this._variables[H];if(this.imageName(this._variables))this._variables={...this._variables,...{GCL_PROJECT_DIR_ON_HOST:z}};if(Yu(this.scripts||this.trigger,S`{blueBright ${this.name}} must have script specified`),Yu(!(this.interactive&&!this.argv.shellExecutorNoImage),S`${this.formattedJobName} @Interactive decorator cannot be used with --no-shell-executor-no-image`),this.interactive&&(this.when!=="manual"||this.imageName(this._variables)!==null))throw new b3({message:`${this.formattedJobName} @Interactive decorator cannot have image: and must be when:manual`});if(this.injectSSHAgent&&this.imageName(this._variables)===null)throw new b3({message:`${this.formattedJobName} @InjectSSHAgent can only be used with image:`});let K=P.expandVariables(this._variables);for(let[H,f]of Object.entries(this.cache))f.policy=P.expandText(f.policy,K),Yu(["pull","push","pull-push"].includes(f.policy),S`{blue ${this.name}} cache[${H}].policy is not 'pull', 'push' or 'pull-push'`),Yu(["on_success","on_failure","always"].includes(f.when),S`{blue ${this.name}} cache[${H}].when is not 'on_success', 'on_failure' or 'always'`),Yu(Array.isArray(f.paths),S`{blue ${this.name}} cache[${H}].paths must be array`);for(let[H,f]of Object.entries(this.services))Yu(f.name,S`{blue ${this.name}} services[${H}].name is undefined`),Yu(!f.command||Array.isArray(f.command),S`{blue ${this.name}} services[${H}].command must be an array`),Yu(!f.entrypoint||Array.isArray(f.entrypoint),S`{blue ${this.name}} services[${H}].entrypoint must be an array`);if(Yu(!this.artifacts?.paths||Array.isArray(this.artifacts.paths),S`{blue ${this.name}} artifacts.paths must be an array`),this.imageName(this._variables)&&B.mountCache)for(let H of this.cache)H.paths.forEach((f)=>{let x=P.expandText(f,K);Yu(!x.includes("*"),S`{blue ${this.name}} cannot have * in cache paths, when --mount-cache is enabled`)})}discourageOverridingOfPredefinedVariables(u,D,F){let $=Object.keys(u),z=Object.keys(D).filter((q)=>$.includes(q)&&!F.includes(q));if(z.length==0)return;let Z="https://gitlab.com/gitlab-org/gitlab/-/blob/v17.7.1-ee/doc/ci/variables/predefined_variables.md?plain=1&ref_type=tags#L15-16";this.writeStreams.memoStdout(S`
|
|
270
|
+
{bgYellowBright WARN } ${z1("Avoid overriding predefined variables",Z)} [{bold ${z}}] as it can cause the pipeline to behave unexpectedly.
|
|
271
|
+
If you know what you're doing and would like to suppress this warning, use one of the following methods:
|
|
272
|
+
\t• via cli options
|
|
273
|
+
\t\t• --ignore-predefined-vars ${z}
|
|
274
|
+
\t• via environment variable
|
|
275
|
+
\t\t• GCL_IGNORE_PREDEFINED_VARS=${z}
|
|
276
|
+
`)}_predefinedVariables(u){let D=this.argv,F=D.cwd,$=this.argv.stateDir,B=this.gitData,z;if(this.jobData.image)z="/builds",this.ciProjectDir=`${z}/${B.remote.group}/${B.remote.project}`;else if(D.shellIsolation)z=`${F}/${$}/builds/${this.safeJobName}`,this.ciProjectDir=z;else z=F,this.ciProjectDir=z;let Z=u.predefinedVariables;if(Z.CI_JOB_ID=`${this.jobId}`,Z.CI_PIPELINE_ID=`${this.pipelineIid+1000}`,Z.CI_PIPELINE_IID=`${this.pipelineIid}`,Z.CI_JOB_NAME=`${this.name}`,Z.CI_JOB_NAME_SLUG=`${this.name.replace(/[^a-z\d]+/ig,"-").replace(/^-/,"").slice(0,63).replace(/-$/,"").toLowerCase()}`,Z.CI_JOB_STAGE=`${this.stage}`,Z.CI_BUILDS_DIR=z,Z.CI_PROJECT_DIR=this.ciProjectDir,Z.CI_JOB_URL=`${Z.CI_SERVER_URL}/${B.remote.group}/${B.remote.project}/-/jobs/${this.jobId}`,Z.CI_PIPELINE_URL=`${Z.CI_SERVER_URL}/${B.remote.group}/${B.remote.project}/pipelines/${this.pipelineIid}`,Z.CI_ENVIRONMENT_NAME=this.environment?.name??"",Z.CI_ENVIRONMENT_SLUG=this.environment?.name?this._generateEnvironmentSlug(this.environment.name):"",Z.CI_ENVIRONMENT_URL=this.environment?.url??"",Z.CI_ENVIRONMENT_TIER=this.environment?.deployment_tier??"",Z.CI_ENVIRONMENT_ACTION=this.environment?.action??"",u.nodeIndex!==null)Z.CI_NODE_INDEX=`${u.nodeIndex}`;return Z.CI_NODE_TOTAL=`${u.nodesTotal}`,Z.CI_REGISTRY=Z.CI_REGISTRY=this.argv.registry?P.gclRegistryPrefix:`local-registry.${this.gitData.remote.host}`,Z.CI_REGISTRY_IMAGE=`$CI_REGISTRY/${Z.CI_PROJECT_PATH.toLowerCase()}`,Z}_generateEnvironmentSlug(u){let D=u.toLowerCase().replace(/[^a-z0-9]/g,"-").replace(/-+/g,"-");if(!/^[a-z]/.test(D))D=`env-${D}`;if(D.length>24||D!==u){if(D=D.slice(0,17),!D.endsWith("-"))D+="-";let F=h_.createHash("sha256").update(u).digest("hex"),$=BigInt(`0x${F}`).toString(36).slice(-6);return D+$}return D.replace(/-$/,"")}get jobStatus(){if(this.preScriptsExitCode==null)return"pending";if(this.preScriptsExitCode==0)return"success";let u=[0],D=this.allowFailure;switch(typeof D){case"boolean":if(D)u=[this.preScriptsExitCode];break;case"object":if(!Array.isArray(D.exit_codes))u=[D.exit_codes];else u=D.exit_codes;break;default:throw Error(`Unexpected type: ${typeof D}`)}return u.includes(this.preScriptsExitCode)?"warning":"failed"}get artifactsToSource(){if(this.jobData.gclArtifactsToSource!=null)return this.jobData.gclArtifactsToSource;return this.argv.artifactsToSource}get prettyDuration(){if(this._endTime)return CD.default(this._endTime);return this._startTime?CD.default(process.hrtime(this._startTime)):"0 ms"}get formattedJobName(){let u="";if(this.argv.childPipelineDepth>0)u="\t".repeat(this.argv.childPipelineDepth)+`[${this.argv.variable.GCL_TRIGGERER}] -> `;let D=this.argv.showTimestamps?`[${K50.format(new Date)} ${this.prettyDuration.padStart(7)}] `:"";return S`${D}{blueBright ${u}${this.name.padEnd(this.jobNamePad)}}`}get safeJobName(){return P.safeDockerString(this.name)}get needs(){return this.jobData.needs??null}get buildVolumeName(){return`gcl-${this.safeJobName}-${this.jobId}-build`}get tmpVolumeName(){return`gcl-${this.safeJobName}-${this.jobId}-tmp`}get services(){let u=[];if(!this.jobData.services)return[];for(let D of Object.values(this.jobData.services)){let F=P.expandVariables({...this._variables,...this._dotenvVariables,...D.variables}),$=P.expandText(D.name,F);if($=="")continue;$=$.includes(":")?$:`${$}:latest`,u.push({name:$,entrypoint:D.entrypoint??null,command:D.command??null,variables:F,alias:P.expandText(D.alias,F)??null})}return u}set ciProjectDir(u){Yu(this._ciProjectDir==null,"this._ciProjectDir can only be set once"),this._ciProjectDir=u}get ciProjectDir(){return Yu(this._ciProjectDir,"attempted to access this._ciProjectDir before it is initialized"),this._ciProjectDir}set jobNamePad(u){Yu(this._jobNamePad==null,"this._jobNamePad can only be set once"),this._jobNamePad=u}get jobNamePad(){return this._jobNamePad??0}get producers(){return this._producers}set producers(u){Yu(this._producers==null,"this._producers can only be set once"),this._producers=u}get stage(){return this.jobData.stage||"test"}get interactive(){return this.jobData.gclInteractive||!1}get injectSSHAgent(){return this.jobData.gclInjectSSHAgent||!1}get description(){return this.jobData.gclDescription??""}get artifacts(){return this.jobData.artifacts}deleteArtifacts(){delete this.jobData.artifacts}get cache(){return this.jobData.cache||[]}async getUniqueCacheName(u,D,F){let $=(Z)=>{let q=this.jobData.cache[Z].key.prefix;if(q)return`${Z}_${P.expandText(q,D)}-`;let X=this.jobData.cache[Z].key.files.map((Q)=>{return P.expandText(Q,D).split(".")[0]}).join("_");return`${Z}_${X}-`},B=this.jobData.cache[F].key;if(typeof B==="string"||B==null)return P.expandText(B??"default",D);let z=B.files.map((Z)=>{let q=P.expandText(Z,D);if(q.startsWith(`${this.ciProjectDir}/`))q=q.slice(`${this.ciProjectDir}/`.length);return`${u}/${q}`});return $(F)+await P.checksumFiles(u,z)}get beforeScripts(){let u=this.jobData.before_script||[];return typeof u==="string"?[u]:u}get afterScripts(){let u=this.jobData.after_script||[];return typeof u==="string"?[u]:u}get scripts(){let u=this.jobData.script;return typeof u==="string"?[u]:u}get trigger(){return this.jobData.trigger}async startTriggerPipeline(){this.writeStreams.memoStdout(S`{bgYellowBright WARN } downstream pipeline is experimental in gitlab-ci-local\n`),await this.fetchTriggerInclude();let u=Object.entries({...this.globalVariables,...this.jobData.variables}).map(([F,$])=>`${F}=${$}`),D=this.argv.variable.GCL_TRIGGERER?`${this.argv.variable.GCL_TRIGGERER} -> ${this.name}`:this.name;await Vq({...Object.fromEntries(this.argv.map),file:`${this.argv.stateDir}/includes/triggers/${this.name}.yml`,variable:[S`GCL_TRIGGERER=${D}`,"CI_PIPELINE_SOURCE=parent_pipeline"].concat(u)},this.writeStreams,[],this.argv.childPipelineDepth+1)}get preScriptsExitCode(){return this._prescriptsExitCode}get afterScriptsExitCode(){return this._afterScriptsExitCode}get started(){return this._running||this._prescriptsExitCode!==null}get finished(){return!this._running&&this._prescriptsExitCode!==null}get coveragePercent(){return this._coveragePercent}get fileVariablesDir(){return`/tmp/gitlab-ci-local-file-variables-${this._variables.CI_PROJECT_PATH_SLUG}-${this.jobId}`}get globalVariables(){if(this.inherit.variables===!1)return{};else if(Array.isArray(this.inherit.variables)){let u=this.inherit.variables;return Object.fromEntries(Object.entries(this._globalVariables).filter(([D])=>u.includes(D)))}return this._globalVariables}async start(){if(this.trigger){await this.startTriggerPipeline(),this._prescriptsExitCode=0;return}this._running=!0;let u=this.argv;this._startTime=process.hrtime(),this._variables.CI_JOB_STARTED_AT=new Date().toISOString().split(".")[0]+"Z";let D=this.writeStreams;this._dotenvVariables=await this.initProducerReportsDotenvVariables(D,P.expandVariables(this._variables));let F=P.unscape$$Variables(P.expandVariables({...this._variables,...this._dotenvVariables})),$=this.imageName(F),B=u.helperImage,z=this.safeJobName,Z=`${u.cwd}/${u.stateDir}/output/${z}.log`;if(await h0.default.ensureFile(Z),await h0.default.truncate(Z),!this.interactive)D.stdout(S`${this.formattedJobName} {magentaBright starting} ${$??"shell"} ({yellow ${this.stage}})\n`);if($){await this.pullImage(D,$);let q=this.buildVolumeName,X=this.tmpVolumeName,Q=this.fileVariablesDir,W=[];W.push(P.spawn([this.argv.containerExecutable,"volume","create",`${q}`],u.cwd)),W.push(P.spawn([this.argv.containerExecutable,"volume","create",`${X}`],u.cwd)),this._containerVolumeNames.push(q),this._containerVolumeNames.push(X),await Promise.all(W);let Y=process.hrtime();this.refreshLongRunningSilentTimeout(D);let J="0:0",G="a+rw";if(!this.argv.umask){let{stdout:x}=await P.spawn([this.argv.containerExecutable,"run","--rm","--entrypoint","sh",$,"-c",'echo "$(id -u):$(id -g)"']);if(J=x,J=="0:0")G="g-w"}if(B)await this.pullImage(D,B);let K=[this.argv.containerExecutable,"create","--user=0:0",`--volume=${q}:${this.ciProjectDir}`,`--volume=${X}:${this.fileVariablesDir}`];if(this.argv.caFile){let x=QF.isAbsolute(this.argv.caFile)?this.argv.caFile:QF.resolve(this.argv.cwd,this.argv.caFile);if(await h0.default.pathExists(x))K.push(`--volume=${x}:/etc/ssl/certs/ca-certificates.crt:ro`)}K.push(`${B}`,"sh","-c",`chown ${J} -R ${this.ciProjectDir} && chmod ${G} -R ${this.ciProjectDir} && chown ${J} -R /tmp/ && chmod ${G} -R /tmp/`);let{stdout:H}=await P.spawn(K,u.cwd);if(this._containersToClean.push(H),await h0.default.pathExists(Q))await P.spawn([this.argv.containerExecutable,"cp",`${Q}/.`,`${H}:${Q}`],u.cwd),this.refreshLongRunningSilentTimeout(D);await P.spawn([this.argv.containerExecutable,"cp",`${u.stateDir}/builds/.docker/.`,`${H}:${this.ciProjectDir}`],u.cwd),await P.spawn([this.argv.containerExecutable,"start","--attach",H],u.cwd),await P.spawn([this.argv.containerExecutable,"rm","-vf",H],u.cwd);let f=process.hrtime(Y);D.stdout(S`${this.formattedJobName} {magentaBright copied to ${this.argv.containerExecutable} volumes} in {magenta ${CD.default(f)}}\n`)}if(this.services?.length){for(let q of this.argv.network)if(["host","none"].includes(q))throw new b3({message:`Cannot add service network alias with network mode '${q}'`});await this.createDockerNetwork(`gitlab-ci-local-${this.jobId}`),await Promise.all(this.services.map(async(q,X)=>{let Q=q.name;await this.pullImage(D,Q);let W=await this.startService(D,P.expandVariables({...F,...q.variables}),q),Y=`${u.cwd}/${u.stateDir}/services-output/${this.safeJobName}/${Q}-${X}.log`;await this.serviceHealthCheck(D,q,X,Y);let{stdout:J,stderr:G}=await P.spawn([this.argv.containerExecutable,"logs",W]);await h0.default.ensureFile(Y),await h0.default.promises.writeFile(Y,`### stdout ###
|
|
277
|
+
${J}
|
|
278
|
+
### stderr ###
|
|
279
|
+
${G}
|
|
280
|
+
`)}))}if(await this.execPreScripts(F),this._prescriptsExitCode==null)throw Error("this._prescriptsExitCode must be defined!");if(await this.execAfterScripts(F),this._running=!1,this._endTime=this._endTime??process.hrtime(this._startTime),this.printFinishedString(),await this.copyCacheOut(this.writeStreams,F),await this.copyArtifactsOut(this.writeStreams,F),this.jobData.coverage)this._coveragePercent=await P.getCoveragePercent(u.cwd,u.stateDir,this.jobData.coverage,z)}async cleanupResources(){if(clearTimeout(this._longRunningSilentTimeout),!this.argv.cleanup)return;if(this._containersToClean.length>0)try{await P.spawn([this.argv.containerExecutable,"rm","-vf",...this._containersToClean])}catch(F){Yu(F instanceof Error,"e is not instanceof Error")}if(this._serviceNetworkId)try{await P.spawn([this.argv.containerExecutable,"network","rm",`${this._serviceNetworkId}`])}catch(F){Yu(F instanceof Error,"e is not instanceof Error")}if(this._containerVolumeNames.length>0)try{await P.spawn([this.argv.containerExecutable,"volume","rm",...this._containerVolumeNames])}catch(F){Yu(F instanceof Error,"e is not instanceof Error")}let u=[];for(let F of this._filesToRm)u.push(h0.default.rm(F,{recursive:!0,force:!0}));await Promise.all(u);let D=this.fileVariablesDir;try{await h0.default.rm(D,{recursive:!0,force:!0})}catch(F){Yu(F instanceof Error,"e is not instanceof Error")}}generateInjectSSHAgentOptions(){if(!this.injectSSHAgent)return"";if(process.platform==="darwin"||/^darwin/.exec(process.env.OSTYPE??""))return"--env SSH_AUTH_SOCK=/run/host-services/ssh-auth.sock -v /run/host-services/ssh-auth.sock:/run/host-services/ssh-auth.sock";return`--env SSH_AUTH_SOCK=${process.env.SSH_AUTH_SOCK} -v ${process.env.SSH_AUTH_SOCK}:${process.env.SSH_AUTH_SOCK}`}generateScriptCommands(u){let D="";return u.forEach((F)=>{let $=F.split(/\r?\n/),B=$.length>1?" # collapsed multi-line command":"",z=$[0]?.replace(/\\/g,"\\\\").replace(/"/g,"\\\"").replace(/[$]/g,"\\$");if(this.interactive)D+=S`echo "{green $ ${z}${B}}"\n`;else D+=`echo "${Lq} ${z}${B}"
|
|
281
|
+
`;D+=`${F}
|
|
282
|
+
`}),D}async mountCacheCmd(u,D){if(this.imageName(D)&&!this.argv.mountCache)return[];let F=[];for(let[$,B]of this.cache.entries()){let z=await this.getUniqueCacheName(this.argv.cwd,D,$);B.paths.forEach((Z)=>{let q=P.expandText(Z,D);u.stdout(S`${this.formattedJobName} {magentaBright mounting cache} for path ${q}\n`);let X=P.safeDockerString(`gcl-${D.CI_PROJECT_PATH_SLUG}-${z}`);F.push("-v",`${X}:${this.ciProjectDir}/${q}`)})}return F}async execPreScripts(u){let D=this.beforeScripts.concat(this.scripts);u.CI_JOB_STATUS="running",this._prescriptsExitCode=await this.execScripts(D,u,""),u.CI_JOB_STATUS=this._prescriptsExitCode===0?"success":"failed",this.printExitedString(this._prescriptsExitCode)}async execAfterScripts(u){this._afterScriptsExitCode=await this.execScripts(this.afterScripts,u,"Running after script..."),this.printAfterScriptExitedString(this._afterScriptsExitCode)}async execScripts(u,D,F){let $=this.argv.cwd,B=this.argv.stateDir,z=this.safeJobName,Z=`${$}/${B}/output/${z}.log`,q=this.buildVolumeName,X=this.tmpVolumeName,Q=this.imageName(D),W=this.writeStreams;if(u.length===0||u[0]==null)return 0;if(F.length>0)W.stdout(S`${this.formattedJobName} {magentaBright ${F}}\n`);if(await h0.default.remove(`${$}/${B}/artifacts/${z}`),!Q&&this.argv.shellIsolation)await P.rsyncTrackedFiles($,B,`${z}`);if(this.interactive){let L=`set -eo pipefail
|
|
283
|
+
`;L+=this.generateScriptCommands(u);let A=xq.default(L,{cwd:$,shell:"bash",stdio:["inherit","inherit","inherit"],env:{...D,...process.env}});return new Promise((C,I)=>{A.on("exit",(_)=>C(_??0)),A.on("error",(_)=>I(_))})}if(this.argv.registry)D.CI_REGISTRY_USER=D.CI_REGISTRY_USER??`${P.gclRegistryPrefix}.user`,D.CI_REGISTRY_PASSWORD=D.CI_REGISTRY_PASSWORD??`${P.gclRegistryPrefix}.password`;if(this.refreshLongRunningSilentTimeout(W),Q&&!this._containerId){let L=`${this.argv.containerExecutable} create --interactive ${this.generateInjectSSHAgentOptions()} `;if(this.argv.privileged)L+="--privileged ";for(let I of this.argv.device)L+=`--device ${I} `;if(this.argv.ulimit!==null)L+=`--ulimit nofile=${this.argv.ulimit} `;if(this.argv.umask)L+="--user 0:0 ";if(this.argv.userns!=null)L+=`--userns=${this.argv.userns} `;if(this.argv.shmSize!=null)L+=`--shm-size=${this.argv.shmSize} `;if(this.argv.containerMacAddress)L+=`--mac-address "${this.argv.containerMacAddress}" `;let A=this.imageUser(D);if(A)L+=`--user ${A} `;if(this.argv.containerEmulate){let I=this.argv.containerEmulate;if(!RB.includes(I))throw Error("Invalid gitlab runner to emulate.");let _=kB[I],R=hB[I];L+=`--memory=${_}m `,L+=`--kernel-memory=${_}m `,L+=`--cpus=${R} `}for(let I of this.argv.network)if(["host","none"].includes(I))L+=`--network ${I} `;if(this._serviceNetworkId)L+=`--network ${this._serviceNetworkId} --network-alias build `;if(this.argv.registry)L+=`--network ${P.gclRegistryPrefix}.net `,L+=`--volume ${P.gclRegistryPrefix}.certs:/etc/containers/certs.d:ro `,L+=`--volume ${P.gclRegistryPrefix}.certs:/etc/docker/certs.d:ro `;L+=`--volume ${q}:${this.ciProjectDir} `,L+=`--volume ${X}:${this.fileVariablesDir} `,L+=`--workdir ${this.ciProjectDir} `;for(let I of this.argv.volume)L+=`--volume ${I} `;for(let I of this.argv.extraHost)L+=`--add-host=${I} `;if(this.argv.caFile){let I=QF.isAbsolute(this.argv.caFile)?this.argv.caFile:QF.resolve(this.argv.cwd,this.argv.caFile);if(await h0.default.pathExists(I))L+=`--volume ${I}:/etc/ssl/certs/ca-certificates.crt:ro `,D.SSL_CERT_FILE="/etc/ssl/certs/ca-certificates.crt",D.SSL_CERT_DIR="/etc/ssl/certs";else W.stderr(S`{yellow WARNING: CA file not found: ${I}}\n`)}for(let[I,_]of Object.entries(D))L+=` -e '${I}=${_.toString().replace(/'/g,"'\\''")}' \\
|
|
284
|
+
`;if(this.imageEntrypoint)L+=`--entrypoint ${P.safeBashString(this.imageEntrypoint[0])} `;if(L+=`${(await this.mountCacheCmd(W,D)).join(" ")} `,L+=`${Q} `,this.imageEntrypoint?.length??!1)this.imageEntrypoint?.slice(1).forEach((I)=>{L+=`${P.safeBashString(I)} `});L+=`sh -c "
|
|
285
|
+
`,L+=`if [ -x /usr/local/bin/bash ]; then
|
|
286
|
+
`,L+=` exec /usr/local/bin/bash
|
|
287
|
+
`,L+=`elif [ -x /usr/bin/bash ]; then
|
|
288
|
+
`,L+=` exec /usr/bin/bash
|
|
289
|
+
`,L+=`elif [ -x /bin/bash ]; then
|
|
290
|
+
`,L+=` exec /bin/bash
|
|
291
|
+
`,L+=`elif [ -x /usr/local/bin/sh ]; then
|
|
292
|
+
`,L+=` exec /usr/local/bin/sh
|
|
293
|
+
`,L+=`elif [ -x /usr/bin/sh ]; then
|
|
294
|
+
`,L+=` exec /usr/bin/sh
|
|
295
|
+
`,L+=`elif [ -x /bin/sh ]; then
|
|
296
|
+
`,L+=` exec /bin/sh
|
|
297
|
+
`,L+=`elif [ -x /busybox/sh ]; then
|
|
298
|
+
`,L+=` exec /busybox/sh
|
|
299
|
+
`,L+=`else
|
|
300
|
+
`,L+=` echo shell not found
|
|
301
|
+
`,L+=` exit 1
|
|
302
|
+
`,L+=`fi
|
|
303
|
+
"`;let{stdout:C}=await P.bash(L,$);for(let I of this.argv.network){if(["host","none"].includes(I))continue;await P.spawn([this.argv.containerExecutable,"network","connect",I,`${C}`])}this._containerId=C,this._containersToClean.push(this._containerId)}await this.copyCacheIn(W,D),await this.copyArtifactsIn(W);let Y=`set -eo pipefail
|
|
304
|
+
`;if(Y+=`exec 0< /dev/null
|
|
305
|
+
`,!Q&&this.argv.shellIsolation)Y+=`cd ${B}/builds/${z}/
|
|
306
|
+
`;if(Q){if(Y+=`cd ${this.ciProjectDir}
|
|
307
|
+
`,D.CI_JOB_STATUS!="running")Y+=`export CI_JOB_STATUS=${D.CI_JOB_STATUS}
|
|
308
|
+
`}Y+=this.generateScriptCommands(u),Y+=`exit 0
|
|
309
|
+
`;let J=`${$}/${B}/scripts/${z}_${this.jobId}`;if(await h0.default.outputFile(J,Y,"utf-8"),await h0.default.chmod(J,"0755"),this._filesToRm.push(J),Q)await P.spawn([this.argv.containerExecutable,"cp",`${B}/scripts/${z}_${this.jobId}`,`${this._containerId}:/gcl-cmd`],$);let G=xq.default(this._containerId?`${this.argv.containerExecutable} start --attach -i ${this._containerId}`:"bash",{cwd:$,shell:"bash",env:Q?process.env:D}),K=/\x1b\[0Ksection_(start|end):(\d+):([^\s[]+)(?:\[[^\]]*\])?\r\x1b\[0K/,H=new Map,f=(L,A,C)=>{this.refreshLongRunningSilentTimeout(W);let I=K.exec(L),_=!1;if(I)if(_=!0,I[1]==="start")H.set(I[3],Date.now()),L=S`{cyanBright ${I[3]}_started}`;else{let R=Date.now()-(H.get(I[3])??Date.now());L=S`{cyanBright ${I[3]}} took {magenta ${R}ms}`,H.delete(I[3])}if(A(`${this.formattedJobName} `),L.startsWith(Lq))L=L.slice(Lq.length),L=S`{green $${L}}`;else if(!_)A(`${C(">")} `);A(`${L}
|
|
310
|
+
`),h0.default.appendFileSync(Z,`${L}
|
|
311
|
+
`)},x=this.argv.quiet;return await new Promise((L,A)=>{if(!x)G.stdout?.pipe(Mq.default()).on("data",(C)=>f(C,W.stdout.bind(W),(I)=>S`{greenBright ${I}}`)),G.stderr?.pipe(Mq.default()).on("data",(C)=>f(C,W.stderr.bind(W),(I)=>S`{redBright ${I}}`));if(G.on("exit",(C)=>{return clearTimeout(this._longRunningSilentTimeout),L(C??0)}),G.on("error",(C)=>{return clearTimeout(this._longRunningSilentTimeout),A(C)}),Q)G.stdin?.end(". /gcl-cmd");else G.stdin?.end(`./${B}/scripts/${z}_${this.jobId}`)})}imageName(u={}){if(this.argv.forceShellExecutor)return null;let D=this.jobData.image;if(!D)if(this.argv.shellExecutorNoImage)return null;else return this.argv.defaultImage;let F=P.expandVariables(u),$=P.expandText(D.name,F);return $.includes(":")?$:`${$}:latest`}imageUser(u={}){let D=this.jobData.image;if(!D)return null;if(!D.docker)return null;return P.expandText(D.docker.user,u)}get imageEntrypoint(){let u=this.jobData.image;if(!u?.entrypoint)return null;return Yu(Array.isArray(u.entrypoint),"image:entrypoint must be an array"),u.entrypoint}async validateCiDependencyProxyServerAuthentication(u){let D=this._variables.CI_DEPENDENCY_PROXY_SERVER;if(!u.startsWith(D))return;try{await P.spawn([this.argv.containerExecutable,"login",D])}catch(F){let $=`Please authenticate to the Dependency Proxy (${D}) https://docs.gitlab.com/ee/user/packages/dependency_proxy/#authenticate-with-the-dependency-proxy`;if(this.argv.containerExecutable=="docker")Yu(!F.stderr.includes("Cannot perform an interactive login"),$);else if(this.argv.containerExecutable=="podman")Yu(!F.stderr.includes("Username: Error: getting username and password: reading username: EOF"),$);throw F}}async pullImage(u,D){let F=this.argv.pullPolicy,$=async()=>{await this.validateCiDependencyProxyServerAuthentication(D);let B=process.hrtime();await P.spawn([this.argv.containerExecutable,"pull",D]);let z=process.hrtime(B);u.stdout(S`${this.formattedJobName} {magentaBright pulled} ${D} in {magenta ${CD.default(z)}}\n`),this.refreshLongRunningSilentTimeout(u)};if(F==="always"){await $();return}try{await P.spawn([this.argv.containerExecutable,"image","inspect",D])}catch{await $()}}async initProducerReportsDotenvVariables(u,D){let F=this.argv.cwd,$=this.argv.stateDir,B=this.producers,z={};for(let Z of B??[]){if(P.expandText(Z.dotenv,D)===null)continue;let X=P.safeDockerString(Z.name),Q=`${F}/${$}/artifacts/${X}/.gitlab-ci-reports/dotenv/`;if(await h0.default.pathExists(Q)){let W=(await P.spawn(["find",".","-type","f"],Q)).stdout.split(`
|
|
312
|
+
`);for(let Y of W){if(Y=="")continue;let J=k_.parse(await h0.default.readFile(`${Q}/${Y}`));z={...z,...J}}}else u.stderr(S`${this.formattedJobName} {yellow reports.dotenv produced by '${Z.name}' could not be found}\n`)}return z}async copyCacheIn(u,D){if(this.argv.mountCache&&this.imageName(D))return;if(!this.imageName(D)&&!this.argv.shellIsolation||this.cache.length===0)return;let F=this.argv.cwd,$=this.argv.stateDir;for(let[B,z]of this.cache.entries()){if(!["pull","pull-push"].includes(z.policy))return;let Z=process.hrtime(),q=await this.getUniqueCacheName(F,D,B),X=`${F}/${$}/cache/${q}`;if(!await h0.default.pathExists(X))continue;await M1.exclusive(q,async()=>{await this.copyIn(X)});let Q=process.hrtime(Z);u.stdout(S`${this.formattedJobName} {magentaBright imported cache '${q}'} in {magenta ${CD.default(Q)}}\n`)}}async copyArtifactsIn(u){if(!this.imageName(this._variables)&&!this.argv.shellIsolation||(this.producers??[]).length===0)return;let D=this.argv.cwd,F=this.argv.stateDir,$=process.hrtime(),B=[];for(let Z of this.producers??[]){let q=P.safeDockerString(Z.name),X=`${D}/${F}/artifacts/${q}`;if(!await h0.default.pathExists(X))await h0.default.mkdirp(X);if((await h0.default.readdir(X)).length===0)u.stderr(S`${this.formattedJobName} {yellow artifacts from {blueBright ${q}} was empty}\n`);B.push(this.copyIn(X))}await Promise.all(B);let z=process.hrtime($);u.stdout(S`${this.formattedJobName} {magentaBright imported artifacts} in {magenta ${CD.default(z)}}\n`)}copyIn(u){let D=this.safeJobName;if(!this.imageName(this._variables)&&this.argv.shellIsolation)return P.spawn(["rsync","-a",`${u}/.`,`${this.argv.cwd}/${this.argv.stateDir}/builds/${D}`]);return P.spawn([this.argv.containerExecutable,"cp",`${u}/.`,`${this._containerId}:${this.ciProjectDir}`])}async copyCacheOut(u,D){if(this.argv.mountCache&&this.imageName(D))return;if(!this.imageName(D)&&!this.argv.shellIsolation||this.cache.length===0)return;let F=this.argv.cwd,$=this.argv.stateDir,B=this.imageName(D)?"/cache":"../../cache",z,Z;for(let[q,X]of this.cache.entries()){if(!["push","pull-push"].includes(X.policy))return;if(X.when==="on_success"&&this.jobStatus!=="success")return;if(X.when==="on_failure"&&this.jobStatus==="success")return;let Q=await this.getUniqueCacheName(F,D,q),W="";for(let J of X.paths){if(!P.isSubpath(J,this.argv.cwd,this.argv.cwd))continue;W+=" "+P.expandText(J,D).replace(`${D.CI_PROJECT_DIR}/`,"")}z=process.hrtime();let Y=`shopt -s globstar nullglob dotglob
|
|
313
|
+
`;Y+=`mkdir -p ${P.safeBashString(B+"/"+Q)}
|
|
314
|
+
`,Y+=`rsync -Ra ${W} ${P.safeBashString(B+"/"+Q+"/.")} || true
|
|
315
|
+
`,await M1.exclusive(Q,async()=>{await this.copyOut(Y,$,"cache",[])}),Z=process.hrtime(z);for(let J of X.paths){let G=P.expandText(J,D);if(!P.isSubpath(G,this.argv.cwd,this.argv.cwd)){u.stdout(S`{yellow WARNING: processPath: artifact path is not a subpath of project directory: ${G}}\n`);continue}let K=G;if(R_(K)&&!K.endsWith("*"))K=`${K}/**`;let H=D5(K,{dot:!0,onlyFiles:!1,cwd:`${this.argv.cwd}/${$}/cache/${Q}`}).length;if(H==0){u.stdout(S`{yellow WARNING: ${K}: no matching files. Ensure that the artifact path is relative to the working directory}\n`);continue}if(!R_(K))H++;u.stdout(`${G}: found ${H} artifact files and directories
|
|
316
|
+
`)}u.stdout(S`${this.formattedJobName} {magentaBright cache created in '${$}/cache/${Q}'} in {magenta ${CD.default(Z)}}\n`)}}async copyArtifactsOut(u,D){if(this.jobStatus!=="success"&&this.artifacts?.when!=="always")return;if(!this.artifacts)return;if((this.artifacts.paths?.length??0)===0&&this.artifacts.reports?.dotenv==null)return;let F=this.safeJobName,$=this.argv.cwd,B=this.argv.stateDir,z;if(!this.argv.shellIsolation&&!this.imageName(D))z=`${B}/artifacts`;else if(this.imageName(D))z="/artifacts";else z="../../artifacts";let Z,q,X=`shopt -s globstar nullglob dotglob
|
|
317
|
+
`;X+=`mkdir -p ${z}/${F}
|
|
318
|
+
`,X+="rsync --exclude '.gitlab-ci-local/**' -Ra ";for(let G of this.artifacts?.exclude??[]){let K=P.expandText(G,D).replace(`${D.CI_PROJECT_DIR}/`,"");X+=`--exclude '${K}' `}for(let G of this.artifacts?.paths??[]){let K=P.expandText(G,D).replace(`${D.CI_PROJECT_DIR}/`,"");X+=`${K} `}X+=`${z}/${F}/. || true
|
|
319
|
+
`;let Q=P.expandText(this.artifacts.reports?.dotenv??null,D),W=typeof Q==="string"?[Q]:Q;if(W!=null)W.forEach((G)=>{X+=`mkdir -p ${z}/${F}/.gitlab-ci-reports/dotenv
|
|
320
|
+
`,X+=`if [ -f ${G} ]; then
|
|
321
|
+
`,X+=` rsync -Ra ${G} ${z}/${F}/.gitlab-ci-reports/dotenv/.
|
|
322
|
+
`,X+=`fi
|
|
323
|
+
`});Z=process.hrtime();let Y=this.argv.mountCache?await this.mountCacheCmd(u,D):[];await this.copyOut(X,B,"artifacts",Y),q=process.hrtime(Z);for(let G of W??[]){if(await h0.default.pathExists(`${$}/${B}/artifacts/${F}/.gitlab-ci-reports/dotenv/${G}`))continue;u.stderr(S`${this.formattedJobName} {yellow artifact reports dotenv '${G}' could not be found}\n`)}if((await h0.default.readdir(`${$}/${B}/artifacts/${F}`)).length===0)u.stdout(S`${this.formattedJobName} {yellow !! no artifacts was copied !!}\n`);else u.stdout(S`${this.formattedJobName} {magentaBright exported artifacts} in {magenta ${CD.default(q)}}\n`);if(this.artifactsToSource&&(this.argv.shellIsolation||this.imageName(D))){if(Z=process.hrtime(),await P.spawn(["rsync","--exclude=/.gitlab-ci-reports/","-a",`${$}/${B}/artifacts/${F}/.`,$]),Q!=null)await P.spawn(["rsync","-a",`${$}/${B}/artifacts/${F}/.gitlab-ci-reports/dotenv/.`,$]);q=process.hrtime(Z),u.stdout(S`${this.formattedJobName} {magentaBright copied artifacts to cwd} in {magenta ${CD.default(q)}}\n`)}}async copyOut(u,D,F,$){let B=this.safeJobName,z=this.buildVolumeName,Z=this.argv.cwd,q=this.argv.helperImage;if(await h0.default.mkdirp(`${Z}/${D}/${F}`),this.imageName(this._variables)){let{stdout:X}=await P.bash(`${this.argv.containerExecutable} create -i ${$.join(" ")} -v ${z}:${this.ciProjectDir} -w ${this.ciProjectDir} ${q} bash -c "${u.replace(/"/g,"\\\"")}"`,Z);this._containersToClean.push(X),await P.spawn([this.argv.containerExecutable,"start",X,"--attach"]),await P.spawn([this.argv.containerExecutable,"cp",`${X}:/${F}/.`,`${D}/${F}/.`],Z)}else if(this.argv.shellIsolation)await P.bash(`bash -eo pipefail -c "${u}"`,`${Z}/${D}/builds/${B}`);else if(!this.argv.shellIsolation)await P.bash(`bash -eo pipefail -c "${u}"`,`${Z}`)}refreshLongRunningSilentTimeout(u){clearTimeout(this._longRunningSilentTimeout),this._longRunningSilentTimeout=setTimeout(()=>{u.stdout(S`${this.formattedJobName} {grey > still running...}\n`),this.refreshLongRunningSilentTimeout(u)},1e4)}getFinishedString(){return S`${this.formattedJobName} {magentaBright finished} in {magenta ${this.prettyDuration}}`}printFinishedString(){if(this.jobStatus!=="success")return;this.writeStreams.stdout(`${this.getFinishedString()}
|
|
324
|
+
`)}printExitedString(u){let D=this.writeStreams,F=this.getFinishedString();if(this.jobStatus==="warning")D.stderr(S`${F} {black.bgYellowBright WARN ${u.toString()} }\n`);else if(this.jobStatus==="failed")D.stderr(S`${F} {black.bgRed FAIL ${u.toString()} }\n`)}printAfterScriptExitedString(u){let D=this.writeStreams,F=this.getFinishedString();if(u!==0)D.stderr(S`${F} {black.bgYellowBright WARN ${u.toString()} } after_script\n`)}async createDockerNetwork(u){let{stdout:D}=await P.spawn([this.argv.containerExecutable,"network","create",`${u}`]);this._serviceNetworkId=D}async startService(u,D,F){let $=this.argv.cwd,B=`${this.argv.containerExecutable} create --interactive `;if(this.refreshLongRunningSilentTimeout(u),this.argv.umask)B+="--user 0:0 ";if(this.argv.userns!=null)B+=`--userns=${this.argv.userns} `;if(this.argv.privileged)B+="--privileged ";for(let G of this.argv.device)B+=`--device ${G} `;if(this.argv.ulimit!==null)B+=`--ulimit nofile=${this.argv.ulimit} `;if(this.argv.shmSize!=null)B+=`--shm-size=${this.argv.shmSize} `;for(let G of this.argv.volume)B+=`--volume ${G} `;for(let G of this.argv.extraHost)B+=`--add-host=${G} `;if(this.argv.caFile){let G=QF.isAbsolute(this.argv.caFile)?this.argv.caFile:QF.resolve(this.argv.cwd,this.argv.caFile);if(await h0.default.pathExists(G))B+=`--volume ${G}:/etc/ssl/certs/ca-certificates.crt:ro `,D.SSL_CERT_FILE="/etc/ssl/certs/ca-certificates.crt",D.SSL_CERT_DIR="/etc/ssl/certs"}let{alias:z,name:Z}=F,q=Z.replace(/(.*)(:.*)/,"$1"),X=new Set;if(X.add(q.replaceAll("/","-")),X.add(q.replaceAll("/","__")),z)X.add(z);for(let[G,K]of Object.entries(D))B+=` -e '${G}=${K.toString().replace(/'/g,"'\\''")}' \\
|
|
325
|
+
`;let Q=F.entrypoint;if(Q)B+=`--entrypoint ${P.safeBashString(Q[0])} `;B+=`--volume ${this.buildVolumeName}:${this.ciProjectDir} `,B+=`--volume ${this.tmpVolumeName}:${this.fileVariablesDir} `,B+=`--network ${this._serviceNetworkId} `;for(let G of X)B+=`--network-alias ${G} `;if(B+=`${Z} `,Q?.length??!1)Q?.slice(1).forEach((G)=>{B+=`${P.safeBashString(G)} `});(F.command??[]).forEach((G)=>B+=`"${G.replace(/\$/g,"\\$")}" `);let W=process.hrtime(),{stdout:Y}=await P.bash(B,$);this._containersToClean.push(Y);for(let G of this.argv.network)await P.spawn([this.argv.containerExecutable,"network","connect",G,`${Y}`]);await P.spawn([this.argv.containerExecutable,"start",`${Y}`]);let J=process.hrtime(W);return u.stdout(S`${this.formattedJobName} {magentaBright started service image: ${Z} with aliases: ${Array.from(X).join(", ")}} in {magenta ${CD.default(J)}}\n`),Y}async serviceHealthCheck(u,D,F,$){let{alias:B,name:z}=D,Z=this.argv.waitImage,{stdout:q}=await P.spawn([this.argv.containerExecutable,"image","inspect",z]),X=JSON.parse(q),Q=z.replace(/(.*)(:.*)/,"$1"),W=[Q.replaceAll("/","-"),Q.replaceAll("/","__")];if(B)W.push(B);let Y=W[W.length-1];if((X[0]?.Config?.ExposedPorts??null)===null)return u.stderr(S`${this.formattedJobName} {yellow Could not find exposed tcp ports ${z}}\n`);let J=process.hrtime();try{await Promise.any(Object.keys(X[0].Config.ExposedPorts).map((K)=>{if(!K.endsWith("/tcp"))return;let H=parseInt(K.replace("/tcp","")),f=`gcl-wait-for-it-${this.jobId}-${F}-${H}`,x=[this.argv.containerExecutable,"run","--rm",`--name=${f}`,"--network",`${this._serviceNetworkId}`,`${Z}`,`${Y}:${H}`,"-t","30"];return this._containersToClean.push(f),P.spawn(x)}));let G=process.hrtime(J);u.stdout(S`${this.formattedJobName} {greenBright service image: ${z} healthcheck passed in {green ${CD.default(G)}}}\n`)}catch(G){if(!(G instanceof AggregateError))throw G;G.errors.forEach((K)=>{u.stdout(S`${this.formattedJobName} {redBright service image: ${z} healthcheck failed}\n`),K.message.split(/\r?\n/g).forEach((H)=>{u.stdout(S`${this.formattedJobName} {redBright ${H}}\n`)}),u.stdout(S`${this.formattedJobName} {redBright also see (${$})}\n`)})}finally{await Promise.allSettled(Object.keys(X[0].Config.ExposedPorts).map((G)=>{if(!G.endsWith("/tcp"))return;let K=parseInt(G.replace("/tcp",""));return P.spawn([this.argv.containerExecutable,"rm","-vf",`gcl-wait-for-it-${this.jobId}-${F}-${K}`])}))}}async fetchTriggerInclude(){let{cwd:u,stateDir:D}=this.argv;h0.default.mkdirpSync(`${u}/${D}/includes/triggers`);let F={};for(let B of this.jobData.trigger?.include??[])if(B.local){let z=P.expandText(B.local,this._variables);_3(z);let Z=await U3(z,u);if(Z.length==0)throw new b3({message:`Local include file \`${B.local}\` specified in \`.${this.name}\` cannot be found!`});for(let q of Z){let X=await k0.loadYaml(q,{});F={...F,...X}}}else if(B.artifact){let z=await k0.loadYaml(`${u}/${D}/artifacts/${B.job}/${B.artifact}`,{});F={...F,...z}}else if(B.project)this.writeStreams.memoStdout(S`{bgYellowBright WARN } \`{blueBright ${this.name}.trigger.include.*.project}\` will be no-op. It is currently not implemented\n`);else if(B.template)this.writeStreams.memoStdout(S`{bgYellowBright WARN } \`{blueBright ${this.name}.trigger.include.*.template}\` will be no-op. It is currently not implemented\n`);let $=`${u}/${D}/includes/triggers/${this.name}.yml`;h0.default.writeFileSync($,su(F))}}async function y3(u){if(!u)return;let D=[];for(let F of u)D.push(F.cleanupResources());await Promise.all(D)}import _D from"assert";var H50=3,f50=["string","boolean","number","array"];class H8{_stages=[];_gitlabData;_jobNamePad=null;jobs;argv;writeStreams;pipelineIid;expandVariables;constructor(u,D,F,$,B){this.argv=u,this.writeStreams=D,this.pipelineIid=F,this.jobs=$,this.expandVariables=B}get stages(){return this._stages}get gitlabData(){return this._gitlabData}get jobNamePad(){return this._jobNamePad??0}static async create(u,D,F,$,B=!0){let z=new H8(u,D,F,$,B),Z=process.hrtime();await z.init();let q=await pF.run(z.jobs,z.stages);for(let W of z.jobs)if(W.artifacts===null)W.deleteArtifacts();let X=process.hrtime(Z),Q=Oq.join(u.cwd,u.stateDir,"expanded-gitlab-ci.yml");if(L7.default.mkdirpSync(Oq.join(u.cwd,u.stateDir)),L7.default.writeFileSync(Q,su(z.gitlabData)),u.childPipelineDepth==0)D.stderr(S`{grey parsing and downloads finished in ${Aq.default(X)}.}\n`);for(let W of q)D.stderr(S`{yellow ${W}}\n`);if(z.argv.jsonSchemaValidation){let W=process.hrtime();if(pF.jsonSchemaValidation({pathToExpandedGitLabCi:Q,gitLabCiConfig:z.gitlabData,argv:u}),u.childPipelineDepth==0)D.stderr(S`{grey json schema validated in ${Aq.default(process.hrtime(W))}}\n`)}return z}async init(){let u=this.argv,D=u.cwd,F=u.stateDir,$=this.writeStreams,B=u.file,z=this.pipelineIid,Z=u.fetchIncludes,q=await d1.init(D,$),X=await K7.init(u,$,q),Q=P.findEnvMatchedVariables(X),W=i3({gitData:q,argv:u,envMatchedVariables:Q}),Y={...W,...Q,...u.variable},J=P.expandVariables(Y),G=[{stages:[".pre","build","test","deploy",".post"]}],K=await H8.loadYaml(`${D}/${B}`,{},this.expandVariables);G=G.concat(await ED.init(K,{argv:u,cwd:D,stateDir:F,writeStreams:$,gitData:q,fetchIncludes:Z,variables:J,expandVariables:this.expandVariables,maximumIncludes:u.maximumIncludes})),ED.resetCount();let H=await H8.loadYaml(`${D}/.gitlab-ci-local.yml`,{},this.expandVariables);G=G.concat(await ED.init(H,{argv:u,cwd:D,stateDir:F,writeStreams:$,gitData:q,fetchIncludes:Z,variables:J,expandVariables:this.expandVariables,maximumIncludes:u.maximumIncludes})),ED.resetCount();let f=c_.default({},...G);if(W9(f),n8(f,f),K9(f),Y9(f),G9(f),J9(f),_D(f.stages&&Array.isArray(f.stages),S`{yellow stages:} must be an array`),!f.stages.includes(".pre"))f.stages.unshift(".pre");if(!f.stages.includes(".post"))f.stages.push(".post");if(this._stages=f.stages,P.forEachRealJob(f,(x,L)=>{_D(L.when!=="never",S`This GitLab CI configuration is invalid: jobs:${x} when:never can only be used in a rules section or workflow:rules`);for(let[A,C]of Object.entries(L.variables??{}))L.variables[A]=P.normalizeVariables(C);for(let A=0;A<(L.services??[]).length;A++){let C=L.services[A];for(let[I,_]of Object.entries(C.variables||{}))_D(typeof _==="string"||typeof _==="number"||typeof _==="boolean",S`{blueBright ${x}.services[${A}]} has invalid variables hash of key value pairs. ${I}=${_}`),L.services[A].variables[I]=String(_)}}),this._gitlabData=f,P.forEachRealJob(f,(x,L)=>{_D(q!=null,"gitData must be set"),_D(X!=null,"homeVariables must be set");let A=1,C=n5(L,x);for(let I of C){let _=x;if(I)_=`${x}: [${Object.values(I??[]).join(",")}]`;else if(S4(L))_=`${x}: [${A}/${C.length}]`;let R=new LD({argv:u,writeStreams:$,data:L,name:_,baseName:x,globalVariables:f.variables,pipelineIid:z,predefinedVariables:{...W},gitData:q,variablesFromFiles:X,matrixVariables:I,nodeIndex:L.parallel!=null?A:null,nodesTotal:C.length,expandVariables:this.expandVariables}),k=this.stages.includes(R.stage);_D(k,S`{yellow stage:${R.stage}} not found for {blueBright ${R.name}}`),this.jobs.push(R),A++}}),this.argv.maxJobNamePadding!==null&&this.argv.maxJobNamePadding<=0)this._jobNamePad=0;else if((this.argv.job.length!==0?this.argv.job:this.jobs).forEach((L)=>{let A=[];if(this.argv.needs&&this.argv.job.length>0){let I=this.jobs.find((_)=>_.baseName===L);if(I?.needs)A=I.needs.map((_)=>_.job.length)}let C=typeof L=="string"?L.length:L.name.length;this._jobNamePad=Math.max(C,this._jobNamePad??0,...A)}),this.argv.maxJobNamePadding!==null)this._jobNamePad=Math.min(this.argv.maxJobNamePadding??0,this._jobNamePad??0);this.jobs.forEach((x)=>{x.jobNamePad=this.jobNamePad}),this.jobs.forEach((x)=>{x.producers=G7.init(this.jobs,this.stages,x)})}static async loadYaml(u,D={},F=!0){let $=`${u}`;if(!L7.default.existsSync($))return{};let z=(await L7.default.readFile(`${u}`,"utf8")).split(/\r?\n/g),Z=z.slice(),q=null,X=null,Q=null,W=null,Y=0;if(F)for(let H of z){if(q=q??/#\s?@\s?[Ii]nteractive/.exec(H),Q=Q??/#\s?@\s?[Ii]njectSSHAgent/.exec(H),W=W??/#\s?@\s?NoArtifactsToSource/i.exec(H),X=X??/#\s?@\s?[Dd]escription (?<description>.*)/.exec(H),/\w:/.exec(H)&&(q||X||Q||W)){if(q)Z.splice(Y+1,0," gclInteractive: true"),Y++;if(Q)Z.splice(Y+1,0," gclInjectSSHAgent: true"),Y++;if(W)Z.splice(Y+1,0," gclArtifactsToSource: false"),Y++;if(X)Z.splice(Y+1,0,` gclDescription: ${X?.groups?.description??""}`),Y++;q=null,X=null,Q=null,W=null}Y++}let J=new Z9("!reference",{kind:"sequence",construct:function(H){return{referenceData:H}}}),G=q9.extend([J]),K;try{K=M6(Z.join(`
|
|
326
|
+
`),null,{schema:G})}catch(H){if(H instanceof x6&&H.reason==="duplicated mapping key")console.log(S`{black.bgYellowBright WARN } duplicated mapping key detected! Values will be overwritten!`),K=M6(Z.join(`
|
|
327
|
+
`),null,{schema:G,json:!0});else throw H}if(K.length<=1)return K[0];if(V50(K[0])){let H=K[0],f=K[1],x=JSON.stringify(f).replace(/(?<firstChar>.)?(?<secondChar>.)?\$\[\[\s*inputs.(?<interpolationKey>[\w-]+)\s*\|?\s*(?<interpolationFunctions>.*?)\s*\]\](?<lastChar>[^$])?/g,(L,A,C,I,_,R)=>{let k=Oq.relative(process.cwd(),u),c={interpolationKey:I,interpolationFunctions:_,inputsSpecification:H,configFilePath:k,...D};A??="",C??="",R??="";let{inputValue:e,inputType:w}=O50(c),h=A+C;switch(w){case"array":if(C=='"'&&R=='"'&&A!="\\")return A+JSON.stringify(e);return h+JSON.stringify(JSON.stringify(e)).slice(1,-1)+R;case"string":return h+JSON.stringify(e).slice(1,-1)+R;case"number":case"boolean":if(C=='"'&&R=='"'&&A!="\\")return A+e;return h+e+R;default:P.switchStatementExhaustiveCheck(w)}});return JSON.parse(x)}return K[0]}}function V50(u){return"spec"in u}function L50(u){let{configFilePath:D,interpolationKey:F,inputsSpecification:$}=u,B=S`This GitLab CI configuration is invalid: \`{blueBright ${D}}\`: unknown interpolation key: \`${F}\`.`;_D($.spec.inputs?.[F]!==void 0,B)}function M50(u){let{interpolationFunctions:D,configFilePath:F}=u;if(D!="")console.log(S`{black.bgYellowBright WARN } interpolation functions is currently not supported via gitlab-ci-local. Functions will just be a no-op.`);_D(D.split("|").length<=H50,S`This GitLab CI configuration is invalid: \`{blueBright ${F}}\`: too many functions in interpolation block.`)}function x50(u){let{configFilePath:D,interpolationKey:F,inputsSpecification:$}=u,B=m_(u),z=$.spec.inputs[F]?.options;if(z)_D(z.includes(B),S`This GitLab CI configuration is invalid: \`{blueBright ${D}}\`: \`{blueBright ${F}}\` input: \`{blueBright ${B}}\` cannot be used because it is not in the list of allowed options.`);let Z=n_(u);_D(f50.includes(Z),S`This GitLab CI configuration is invalid: \`{blueBright ${D}}\`: header:spec:inputs:{blueBright ${F}} input type unknown value: {blueBright ${Z}}.`);let q=Array.isArray(B)?"array":typeof B;if(_D(q===Z,S`This GitLab CI configuration is invalid: \`{blueBright ${D}}\`: \`{blueBright ${F}}\` input: provided value is not a {blueBright ${Z}}.`),$.spec.inputs[F]?.regex)console.log(S`{black.bgYellowBright WARN } spec:inputs:regex is currently not supported via gitlab-ci-local. This will just be a no-op.`)}function O50(u){return L50(u),M50(u),x50(u),{inputValue:m_(u),inputType:n_(u)}}function m_(u){let{inputs:D,interpolationKey:F,configFilePath:$,inputsSpecification:B}=u,z=D?.[F]??B.spec.inputs[F]?.default;return _D(z!==void 0,S`This GitLab CI configuration is invalid: \`{blueBright ${$}}\`: \`{blueBright ${F}}\` input: required value has not been provided.`),z}function n_(u){let{interpolationKey:D,inputsSpecification:F}=u;return F.spec.inputs[D]?.type||"string"}var wq=M0(du(),1);var A50=async(u)=>{if(!wq.default.existsSync(u))return{};let D=await wq.default.readFile(u,"utf8");return n1(D)||{}},p_=async(u,D)=>{let F=`${u}/${D}/state.yml`,$=await A50(F);return $.pipelineIid?$.pipelineIid:0};class Nq{memoStdout=(()=>{let u=new Map;return(D)=>{if(u.has(D))return;u.set(D,null),this.stdout(D)}})()}class jq extends Nq{stderr(u){process.stderr.write(u)}stdout(u){process.stdout.write(u)}flush(){}}class Iq extends Nq{currentStderr="";currentStdout="";stderrLines=[];stdoutLines=[];stderr(u){if(this.currentStderr+=u,u.endsWith(`
|
|
328
|
+
`))this.stderrLines.push(this.currentStderr.slice(0,-1)),this.currentStderr=""}stdout(u){if(this.currentStdout+=u,u.endsWith(`
|
|
329
|
+
`))this.stdoutLines.push(this.currentStdout.slice(0,-1)),this.currentStdout=""}flush(){if(this.currentStdout.length!=0)this.stdout(`
|
|
330
|
+
`);if(this.currentStderr.length!=0)this.stderr(`
|
|
331
|
+
`)}}var k3=M0(du(),1);import N50 from"path";var R3=M0(PF(),1);import Eq from"assert";var Pq=(u,D)=>{let F=`${u}/${D}/.gitignore`,$=`*
|
|
332
|
+
!.gitignore
|
|
333
|
+
`;if(!k3.default.existsSync(F))k3.default.outputFileSync(F,`*
|
|
334
|
+
!.gitignore
|
|
335
|
+
`)};async function l_(u,D,F=[],$=0){Eq($<=2,"Parent and child pipelines have a maximum depth of two levels of child pipelines.");let B=await X1.build({...u,childPipelineDepth:$},D),z=B.cwd,Z=B.stateDir,q=B.file,X;if(B.completion)return F5(process.argv.slice(2)).showCompletionScript(),[];if(Eq(k3.default.existsSync(`${z}/${q}`),`${N50.resolve(z)}/${q} could not be found`),B.preview){let Q=await wu(z,Z);X=await k0.create(B,D,Q,F,!1);let W=X.gitlabData;for(let Y of Object.keys(W)){if(Y==="stages")continue;if(Y.startsWith(".")||["include","after_script","before_script","default"].includes(Y))delete W[Y]}D.stdout(`---
|
|
336
|
+
${su(W,{lineWidth:160})}`)}else if(B.list||B.listAll){let Q=await wu(z,Z);X=await k0.create(B,D,Q,F),Gu.runList(X,D,B.listAll)}else if(B.validateDependencyChain){let Q=await wu(z,Z);X=await k0.create(B,D,Q,F),Gu.validateDependencyChain(X),D.stdout(S`{green ✓ All job dependencies are valid}\n`)}else if(B.listJson){let Q=await wu(z,Z);X=await k0.create(B,D,Q,F),Gu.runJson(X,D)}else if(B.listCsv||B.listCsvAll){let Q=await wu(z,Z);X=await k0.create(B,D,Q,F),Gu.runCsv(X,D,B.listCsvAll)}else if(B.job.length>0){if(Eq(B.stage===null,"You cannot use --stage when starting individual jobs"),B.registry)await P.startDockerRegistry(B);Pq(z,Z);let Q=process.hrtime();if(B.needs||B.onlyNeeds)await G8(z,Z);let W=await wu(z,Z);if(X=await k0.create(B,D,W,F),await P.rsyncTrackedFiles(z,Z,".docker"),await Gu.runJobs(B,X,D),B.needs||B.onlyNeeds)D.stderr(S`{grey pipeline finished} in {grey ${R3.default(process.hrtime(Q))}}\n`)}else if(B.stage){if(B.registry)await P.startDockerRegistry(B);Pq(z,Z);let Q=process.hrtime(),W=await wu(z,Z);X=await k0.create(B,D,W,F),await P.rsyncTrackedFiles(z,Z,".docker"),await Gu.runJobsInStage(B,X,D),D.stderr(S`{grey pipeline finished} in {grey ${R3.default(process.hrtime(Q))}}\n`)}else{if(B.registry)await P.startDockerRegistry(B);Pq(z,Z);let Q=process.hrtime();await G8(z,Z);let W=await wu(z,Z);if(X=await k0.create(B,D,W,F),await P.rsyncTrackedFiles(z,Z,".docker"),await Gu.runPipeline(B,X,D),$==0)D.stderr(S`{grey pipeline finished} in {grey ${R3.default(process.hrtime(Q))}}\n`)}if(D.flush(),B.registry)await P.stopDockerRegistry(B.containerExecutable);return y3(F)}import Cq,{AssertionError as g_}from"assert";class P1{static async runLoop(u,D,F,$){let B;do if(B=P1.getStartCandidates(D,F,$,u.manual),B.length>0)await q4(B,async(Z)=>Z.start(),{concurrency:u.concurrency??B.length});while(B.length>0)}static getStartCandidates(u,D,F,$){let B=[];for(let z of[...new Set(F)]){if(z.started)continue;let Z=P1.getPastToWaitFor(u,D,z,$);if(P1.isNotFinished(Z))continue;if(z.when==="on_success"&&P1.isPastFailed(Z))continue;if(z.when==="manual"&&P1.isPastFailed(Z))continue;if(z.when==="on_failure"&&!P1.isPastFailed(Z))continue;B.push(z)}return B}static isPastFailed(u){return u.filter((F)=>{if(F.allowFailure)return!1;return(F.preScriptsExitCode?F.preScriptsExitCode:0)>0}).length>0}static isNotFinished(u){return u.filter((F)=>!F.finished).length>0}static getFailed(u){return u.filter((D)=>D.finished&&!D.allowFailure&&(D.preScriptsExitCode??0)>0)}static getPastToWaitFor(u,D,F,$){let B=new Set,z=[F];while(z.length>0){let Z=z.pop();if(Cq(Z!=null,"Job not found in getPastToWaitFor, should be impossible!"),Z.needs){let q=this.getNeededToWaitFor(u,$,Z);z.push(...q)}else{let q=this.getPreviousToWaitFor(u,D,Z);z=z.concat(q),z=z.filter((X)=>X.when!=="never"),z=z.filter((X)=>X.when!=="manual"||$.includes(X.name))}z.forEach((q)=>B.add(q))}return[...B]}static getNeededToWaitFor(u,D,F){let $=[];Cq(F.needs!=null,S`${F.name}.needs cannot be null in getNeededToWaitFor`);for(let B of F.needs){let z=u.filter((Z)=>Z.baseName===B.job);for(let Z of z){if(Z.when==="never"&&!B.optional)throw new g_({message:S`{blueBright ${Z.name}} is when:never, but its needed by {blueBright ${F.name}}`});if(Z.when==="never"&&B.optional)continue;if(Z.when==="manual"&&!D.includes(Z.name))throw new g_({message:S`{blueBright ${Z.name}} is when:manual, its needed by {blueBright ${F.name}}, and not specified in --manual`});Cq(F.name!==Z.name,S`This GitLab CI configuration is invalid: The pipeline has circular dependencies: self-dependency: {blueBright ${B.job}}.`),$.push(Z)}}return $}static getPreviousToWaitFor(u,D,F){let $=[],B=D.indexOf(F.stage);return D.slice(0,B).forEach((Z)=>{$.push(...[...u.values()].filter((q)=>q.stage===Z))}),$}}var M7=M0(du(),1),d_=M0(A6(),1);import _q from"assert";import*as f8 from"path";async function j50(){try{return await P.spawn(["git","rev-parse","--is-inside-work-tree"]),!0}catch{return!1}}async function I50(){let{stdout:u}=await P.spawn(["git","rev-parse","--show-toplevel"]);return u}class UD{static default={variablesFile:".gitlab-ci-local-variables.yml",evaluateRuleChanges:!0,ignoreSchemaPaths:[],ignorePredefinedVars:""};map=new Map;writeStreams;async fallbackCwd(u){if(u.cwd!==void 0||u.file!==void 0)return;if(M7.default.existsSync(`${process.cwd()}/.gitlab-ci.yml`))return;if(!await j50())return;this.writeStreams?.stderr(S`{yellow .gitlab-ci.yml not found in cwd, falling back to git root directory}\n`),this.map.set("cwd",f8.relative(process.cwd(),await I50()))}static async build(u,D){let F=new UD(u,D);if(await F.fallbackCwd(u),F.injectDotenv(`${F.home}/.gitlab-ci-local/.env`,u),F.injectDotenv(`${F.cwd}/.gitlab-ci-local-env`,u),!F.shellExecutorNoImage&&F.shellIsolation)D?.stderr(S`{black.bgYellowBright WARN } --shell-isolation does not work with --no-shell-executor-no-image\n`);if(F.defaultImageExplicitlySet&&F.shellIsolation)D?.stderr(S`{black.bgYellowBright WARN } --default-image does not work with --shell-isolation=true\n`);if(F.defaultImageExplicitlySet&&F.shellExecutorNoImage)D?.stderr(S`{black.bgYellowBright WARN } --default-image does not work with --shell-executor-no-image=true\n`);if(F.defaultImageExplicitlySet&&F.forceShellExecutor)D?.stderr(S`{black.bgYellowBright WARN } --default-image does not work with --force-shell-executor=true\n`);return F}constructor(u,D){if(u.noColor)C1.level=0;this.writeStreams=D;for(let[F,$]of Object.entries(u))this.map.set(F,$)}injectDotenv(u,D){if(M7.default.existsSync(u)){let F=d_.parse(M7.default.readFileSync(u));for(let[$,B]of Object.entries(F)){let z=F6($);if(z==="variable"){let Z=D[z];if(Z==null)Z=[],this.map.set(z,Z);if(!Array.isArray(Z))continue;for(let q of B.split(" "))Z.unshift(q)}else if(D[z]==null)if(B==="true")this.map.set(z,!0);else if(B==="false")this.map.set(z,!1);else if(B==="null")this.map.set(z,null);else if(!isNaN(Number(B)))this.map.set(z,Number(B));else this.map.set(z,B)}}}get cwd(){let u=this.map.get("cwd")??".";return _q(typeof u!="object","--cwd option cannot be an array"),_q(!f8.isAbsolute(u),"Please use relative path for the --cwd option"),u=f8.normalize(`${process.cwd()}/${u}`),u=u.replace(/\/$/,""),_q(M7.default.pathExistsSync(u),`${u} is not a directory`),u}get variablesFile(){return this.map.get("variablesFile")??UD.default.variablesFile}get evaluateRuleChanges(){return this.map.get("evaluateRuleChanges")??UD.default.evaluateRuleChanges}get file(){return this.map.get("file")??".gitlab-ci.yml"}get stateDir(){return(this.map.get("stateDir")??".gitlab-ci-local").replace(/\/$/,"")}get home(){return(this.map.get("home")??process.env.HOME??"").replace(/\/$/,"")}get volume(){let u=this.map.get("volume")??[];return typeof u=="string"?u.split(" "):u}get network(){let u=this.map.get("network")??[];return typeof u=="string"?u.split(" "):u}get extraHost(){let u=this.map.get("extraHost")??[];return typeof u=="string"?u.split(" "):u}get caFile(){return this.map.get("caFile")??null}get ignoreSchemaPaths(){return this.map.get("ignoreSchemaPaths")??UD.default.ignoreSchemaPaths}get ignorePredefinedVars(){return this.map.get("ignorePredefinedVars")??UD.default.ignorePredefinedVars}get pullPolicy(){return this.map.get("pullPolicy")??"if-not-present"}get remoteVariables(){let u=this.map.get("remoteVariables")??[];return typeof u=="string"?u.split(" "):u}get variable(){let u=this.map.get("variable"),D={};return((typeof u=="string"?u.split(" "):u)??[]).forEach(($)=>{let B=/(?<key>\w*?)(=)(?<value>(.|\n|\r)*)/.exec($);if(B?.groups?.key)D[B.groups.key]=B?.groups?.value}),D}get unsetVariables(){return this.map.get("unsetVariable")??[]}get manual(){let u=this.map.get("manual")??[];return typeof u=="string"?u.split(" "):u}get job(){return this.map.get("job")??[]}get autoCompleting(){return this.map.get("autoCompleting")??!1}get cleanup(){return this.map.get("cleanup")??!0}get quiet(){return this.map.get("quiet")??!1}get umask(){return this.map.get("umask")??!0}get userns(){return this.map.get("userns")}get privileged(){return this.map.get("privileged")??!1}get device(){let u=this.map.get("device")??[];return typeof u=="string"?u.split(" "):u}get ulimit(){let u=this.map.get("ulimit");if(!u)return null;return u}get shmSize(){return this.map.get("shmSize")}get needs(){return this.map.get("needs")??!1}get onlyNeeds(){return this.map.get("onlyNeeds")??!1}get stage(){return this.map.get("stage")??null}get completion(){return this.map.get("completion")??!1}get list(){return this.map.get("list")??!1}get listAll(){return this.map.get("listAll")??!1}get listJson(){return this.map.get("listJson")??!1}get listCsv(){return this.map.get("listCsv")??!1}get listCsvAll(){return this.map.get("listCsvAll")??!1}get preview(){return this.map.get("preview")??!1}get validateDependencyChain(){return this.map.get("validateDependencyChain")??!1}get shellIsolation(){return this.map.get("shellIsolation")??!1}get fetchIncludes(){return this.map.get("fetchIncludes")??!1}get mountCache(){return this.map.get("mountCache")??!1}get artifactsToSource(){return this.map.get("artifactsToSource")??!0}get showTimestamps(){return this.map.get("timestamps")??!1}get maxJobNamePadding(){return this.map.get("maxJobNamePadding")??null}get containerMacAddress(){return this.map.get("containerMacAddress")??null}get containerEmulate(){return this.map.get("containerEmulate")??null}get concurrency(){let u=this.map.get("concurrency");if(!u)return null;return Number(u)}get containerExecutable(){return this.map.get("containerExecutable")??"docker"}get jsonSchemaValidation(){return this.map.get("jsonSchemaValidation")??!0}get shellExecutorNoImage(){return this.map.get("shellExecutorNoImage")??!0}get forceShellExecutor(){return this.map.get("forceShellExecutor")??!1}get defaultImage(){return this.map.get("defaultImage")??"docker.io/ruby:3.1"}get waitImage(){return this.map.get("waitImage")??"docker.io/sumina46/wait-for-it:latest"}get helperImage(){return this.map.get("helperImage")??"docker.io/firecow/gitlab-ci-local-util:latest"}get defaultImageExplicitlySet(){return this.map.get("defaultImage")??!1}get maximumIncludes(){return this.map.get("maximumIncludes")??150}get childPipelineDepth(){return this.map.get("childPipelineDepth")}get registry(){return this.map.get("registry")??!1}}import{AssertionError as i50}from"assert";var E50=M0(A6(),1);var P50=M0(PF(),1),C50=M0(r$(),1);var _50=M0(j9(),1);var SV0=new Intl.DateTimeFormat(void 0,{year:void 0,month:void 0,hour:"numeric",minute:"numeric",second:"numeric",hour12:!1});async function h3(u){if(!u)return;let D=[];for(let F of u)D.push(F.cleanupResources());await Promise.all(D)}var o_;((z)=>{z.SMALL="saas-linux-small";z.MEDIUM="saas-linux-medium";z.LARGE="saas-linux-large";z.XLARGE="saas-linux-xlarge";z.TWO_XLARGE="saas-linux-2xlarge"})(o_||={});var s_=Object.values(o_),yV0={["saas-linux-small"]:8192,["saas-linux-medium"]:16384,["saas-linux-large"]:32768,["saas-linux-xlarge"]:65536,["saas-linux-2xlarge"]:131072},bV0={["saas-linux-small"]:2,["saas-linux-medium"]:4,["saas-linux-large"]:8,["saas-linux-xlarge"]:16,["saas-linux-2xlarge"]:32};var r_={type:"module",name:"gitlab-ci-local",description:"Tired of pushing to test your .gitlab-ci.yml?",main:"dist/index.js",bin:"dist/index.js",version:"4.66.0",scripts:{build:"bun build --compile --minify --sourcemap src/index.ts --outfile bin/gitlab-ci-local","build:linux-amd64":"bun build --compile --minify --sourcemap --target=bun-linux-x64 src/index.ts --outfile bin/linux-amd64/gitlab-ci-local","build:linux-arm64":"bun build --compile --minify --sourcemap --target=bun-linux-arm64 src/index.ts --outfile bin/linux-arm64/gitlab-ci-local","build:macos-x64":"bun build --compile --minify --sourcemap --target=bun-darwin-x64 src/index.ts --outfile bin/macos-x64/gitlab-ci-local","build:macos-arm64":"bun build --compile --minify --sourcemap --target=bun-darwin-arm64 src/index.ts --outfile bin/macos-arm64/gitlab-ci-local","build:win":"bun build --compile --minify --sourcemap --target=bun-windows-x64 src/index.ts --outfile bin/win/gitlab-ci-local.exe","build:node":"bun build --minify --sourcemap=linked src/index.ts --outdir dist --target=node","build-all":"bun run build:linux-amd64 && bun run build:linux-arm64 && bun run build:win && bun run build:macos-x64 && bun run build:macos-arm64","check-all":"bun run lint && bun run coverage",lint:"eslint .",test:"FORCE_COLOR=1 bun test --timeout 60000","test-except-dind":"bun test --timeout 60000 --filter '(?!.*dind)'",coverage:"FORCE_COLOR=1 bun test --timeout 60000 --coverage --coverage-reporter=text --coverage-reporter=lcov --verbose",start:"bun src/index.ts --cwd examples/docker-compose-nodejs",typecheck:"tsc --noEmit","fetch-schema":"curl https://gitlab.com/gitlab-org/gitlab/-/raw/master/app/assets/javascripts/editor/schema/ci.json -sf > src/schema.json"},dependencies:{ajv:"8.x.x",axios:"1.x.x",base64url:"3.x.x",camelcase:"9.x.x",chalk:"5.x.x","chalk-template":"1.x.x",checksum:"1.x.x","deep-extend":"0.6.x",dotenv:"17.x",execa:"5.x.x","fs-extra":"11.x.x",globby:"16.x.x","js-yaml":"4.x.x",jsonpointer:"5.x.x",micromatch:"4.x.x","object-traversal":"1.x.x","p-map":"7.x.x","pretty-hrtime":"1.x.x",re2js:"1.x.x",semver:"7.x.x",split2:"4.x.x","terminal-link":"5.x.x",yargs:"18.x"},devDependencies:{"@eslint/js":"10.x","@stylistic/eslint-plugin":"5.x","@types/base64url":"2.x.x","@types/bun":"1.x.x","@types/checksum":"0.1.x","@types/deep-extend":"0.6.x","@types/fs-extra":"11.x.x","@types/js-yaml":"4.x.x","@types/micromatch":"4.x.x","@types/pretty-hrtime":"1.x.x","@types/semver":"7.x.x","@types/split2":"4.x.x","@types/yargs":"17.x.x","axios-mock-adapter":"2.x",depcheck:"1.x.x",eslint:"10.x",typescript:"5.x.x","typescript-eslint":"8.x.x"},repository:{type:"git",url:"https://github.com/firecow/gitlab-ci-local.git"},author:"Mads Jon Nielsen <madsjon@gmail.com>",license:"MIT",bugs:{url:"https://github.com/firecow/gitlab-ci-local/issues"},homepage:"https://github.com/firecow/gitlab-ci-local#readme",keywords:["git","gitlab","pipeline","local","ci","cd","push","untracked","uncomitted","gitlab-ci"],files:["dist/index.js","dist/index.js.map"]};var x7=[];process.on("SIGINT",async(u,D)=>{await h3(x7),process.exit(D)});process.on("SIGUSR2",async()=>await h3(x7));(()=>{let u=VQ(process.argv.slice(2));u.parserConfiguration({"greedy-arrays":!1}).showHelpOnFail(!1).version(r_.version).wrap(u.terminalWidth?.()).command({handler:async(D)=>{try{await l_(D,new jq,x7);let F=P1.getFailed(x7);process.exit(F.length>0?1:0)}catch(F){if(F instanceof i50)process.stderr.write(N7`{red ${F.message.trim()}}\n`);else if(F instanceof AggregateError)F.errors.forEach(($)=>process.stderr.write(N7`{red ${$.stack??$}}\n`));else process.stderr.write(N7`{red ${F.stack??F}}\n`);await h3(x7),process.exit(1)}},builder:(D)=>{return D.positional("job",{describe:"Jobname's to execute",type:"string"}).coerce("job",(F)=>{if(!Array.isArray(F))return[F];return F})},command:"$0 [job..]",describe:"Runs the entire pipeline or job's"}).usage(`Find more information at https://github.com/firecow/gitlab-ci-local.
|
|
337
|
+
Note: To negate an option use '--no-(option)'.`).strictOptions().env("GCL").option("manual",{type:"array",description:"One or more manual jobs to run during a pipeline",requiresArg:!0}).option("list",{type:"boolean",description:"List job information, when:never excluded",requiresArg:!1}).option("list-all",{type:"boolean",description:"List job information, when:never included",requiresArg:!1}).option("list-json",{type:"boolean",description:"List job information in json format, when:never included",requiresArg:!1}).option("list-csv",{type:"boolean",description:"List job information in csv format, when:never excluded",requiresArg:!1}).option("list-csv-all",{type:"boolean",description:"List job information in csv format, when:never included",requiresArg:!1}).option("validate-dependency-chain",{type:"boolean",description:"Validate that jobs needed or dependent by active jobs under specified conditions are also active without actually running the jobs. Uses fail-fast approach - stops at first validation error for both 'needs' and 'dependencies' keywords. If validation fails, use --list flag to see which jobs will run under specified conditions",requiresArg:!1}).option("preview",{type:"boolean",description:"Print YML with defaults, includes, extends and reference's expanded",requiresArg:!1}).option("cwd",{type:"string",description:"Path to a current working directory",requiresArg:!0}).option("variables-file",{type:"string",description:"Path to the project file variables",requiresArg:!0,default:UD.default.variablesFile}).option("completion",{type:"boolean",description:"Generate tab completion script",requiresArg:!1}).option("evaluate-rule-changes",{type:"boolean",description:"Whether to evaluate rule:changes. If set to false, rules:changes will always evaluate to true",requiresArg:!1,default:UD.default.evaluateRuleChanges}).option("needs",{type:"boolean",description:"Run needed jobs, when executing specific jobs",requiresArg:!1}).option("only-needs",{type:"boolean",description:"Run needed jobs, except the specified jobs themselves",requiresArg:!1}).option("stage",{type:"string",description:"Run all jobs in a specific stage",requiresArg:!1}).option("variable",{type:"array",description:"Add variable to all executed jobs (--variable HELLO=world)",requiresArg:!1}).option("unset-variable",{type:"array",description:"Unsets a variable (--unset-variable HELLO)",requiresArg:!1}).option("remote-variables",{type:"array",description:"Fetch variables file from remote location",requiresArg:!1}).option("state-dir",{type:"string",description:"Location of the .gitlab-ci-local state dir, relative to cwd, eg. (symfony/.gitlab-ci-local/)",requiresArg:!1}).option("file",{type:"string",description:"Location of the .gitlab-ci.yml, relative to cwd, eg. (gitlab/.gitlab-ci.yml)",requiresArg:!1}).option("home",{type:"string",description:"Location of the HOME .gitlab-ci-local folder ($HOME/.gitlab-ci-local/variables.yml)",requiresArg:!1}).option("shell-isolation",{type:"boolean",description:"Enable artifact isolation for shell-executor jobs",requiresArg:!1}).option("force-shell-executor",{type:"boolean",description:"Forces all jobs to be executed using the shell executor. (Only use this option for trusted job)",requiresArg:!1}).option("shell-executor-no-image",{type:"boolean",description:"Whether to use shell executor when no image is specified.",requiresArg:!1}).option("default-image",{type:"string",description:"When using --shell-executor-no-image=false which image to be used for the container. Defaults to docker.io/ruby:3.1 if not set.",requiresArg:!1}).option("wait-image",{type:"string",description:"Which image to be used for the wait container. Defaults to docker.io/sumina46/wait-for-it:latest if not set.",requiresArg:!1}).option("helper-image",{type:"string",description:"When using --shell-executor-no-image=false which image to be used for the utils container. Defaults to docker.io/firecow/gitlab-ci-local-util:latest if not set.",requiresArg:!1}).option("mount-cache",{type:"boolean",description:"Enable docker mount based caching",requiresArg:!1}).option("umask",{type:"boolean",description:"Sets docker user to 0:0",requiresArg:!1}).option("userns",{type:"string",description:"Set docker executor userns option",requiresArg:!1}).option("privileged",{type:"boolean",description:"Set docker executor to privileged mode",requiresArg:!1}).option("device",{type:"array",description:"Add devices to docker executor",requiresArg:!1}).option("ulimit",{type:"number",description:"Set docker executor ulimit",requiresArg:!1}).option("shm-size",{type:"string",description:"Set docker executor shared memory size, docker default is 64m (e.g., '256m', '1g')",requiresArg:!1}).option("network",{type:"array",description:"Add networks to docker executor",requiresArg:!1}).option("volume",{type:"array",description:"Add volumes to docker executor",requiresArg:!1}).option("extra-host",{type:"array",description:"Add extra docker host entries",requiresArg:!1}).option("ca-file",{type:"string",description:"Path to custom CA certificate file to mount in containers",requiresArg:!1}).option("pull-policy",{type:"string",description:"Set image pull-policy (always or if-not-present)",requiresArg:!1}).option("fetch-includes",{type:"boolean",description:"Fetch all external includes one more time",requiresArg:!1}).option("maximum-includes",{type:"number",description:"The maximum number of includes",requiresArg:!1}).option("artifacts-to-source",{type:"boolean",description:"Copy the generated artifacts into cwd",requiresArg:!1}).option("cleanup",{type:"boolean",description:"Remove docker resources after they've been used",requiresArg:!1}).option("quiet",{type:"boolean",description:"Suppress all job output",requiresArg:!1}).option("timestamps",{type:"boolean",description:"Show timestamps and job duration in the logs",requiresArg:!1}).option("max-job-name-padding",{type:"number",description:"Maximum padding for job name (use <= 0 for no padding)",requiresArg:!1}).option("json-schema-validation",{type:"boolean",description:"Whether to enable json schema validation",requiresArg:!1}).option("ignore-schema-paths",{type:"array",requiresArg:!1,default:UD.default.ignoreSchemaPaths,description:"The json schema paths that will be ignored"}).option("ignore-predefined-vars",{type:"string",coerce:(D)=>D.split(","),requiresArg:!1,default:UD.default.ignorePredefinedVars,describe:"Comma-seperated list of predefined pipeline variables for which warnings should be suppressed"}).option("concurrency",{type:"number",description:"Limit the number of jobs that run simultaneously",requiresArg:!1}).option("container-executable",{type:"string",description:"Command to start the container engine (docker or podman)",requiresArg:!1}).option("container-mac-address",{type:"string",description:"Container MAC address (e.g., aa:bb:cc:dd:ee:ff)",requiresArg:!1}).option("container-emulate",{type:"string",description:"The name, without the architecture, of a gitlab hosted runner to emulate. See here: https://docs.gitlab.com/ee/ci/runners/hosted_runners/linux.html#machine-types-available-for-linux---x86-64",choices:s_}).option("color",{requiresArg:!1,default:!0,description:"Enables color"}).option("registry",{type:"boolean",requiresArg:!1,description:"Start a local docker registry and configure gitlab-ci-local containers to use that by default"}).completion("completion",!1,(D,F,$,B)=>{try{if(D.startsWith("-"))$();else UD.build({...F,autoCompleting:!0}).then((z)=>p_(z.cwd,z.stateDir).then((Z)=>({argv:z,pipelineIid:Z}))).then(({argv:z,pipelineIid:Z})=>H8.create(z,new Iq,Z,[])).then((z)=>{let Z=[...z.jobs.values()].filter((q)=>q.when!="never").map((q)=>q.name);B(Z)})}catch{return["Parser-Failed!"]}}).parse()})();
|
|
338
|
+
|
|
339
|
+
//# debugId=2A36D156C2EC304964756E2164756E21
|
|
340
|
+
//# sourceMappingURL=index.js.map
|