@maincode-ai/matilda-code 0.22.2 → 0.22.3-nightly.20261109.f08200276
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 +1 -1
- package/chunks/agent-B3ZDDRG6.js +3 -0
- package/chunks/agent-headless-SGYTO6WW.js +3 -0
- package/chunks/{askUserQuestion-DHYKAZWH.js → askUserQuestion-Y66GA5LV.js} +1 -1
- package/chunks/ca-KKKDEIJT.js +23 -0
- package/chunks/chunk-6SPPO7RK.js +62 -0
- package/chunks/chunk-6X3HPMAU.js +56 -0
- package/chunks/{chunk-FY3LL4OC.js → chunk-7SPPCSW2.js} +1 -1
- package/chunks/{chunk-BQDEPKIG.js → chunk-ADMI5U2X.js} +2 -2
- package/chunks/chunk-AXPU2T2O.js +10 -0
- package/chunks/{chunk-DZKI2CAC.js → chunk-C2AKSF3S.js} +1 -1
- package/chunks/{chunk-HRD7WD3P.js → chunk-GFKFHWDN.js} +1 -1
- package/chunks/chunk-HAM3C2JN.js +2586 -0
- package/chunks/{chunk-OF7ORAN6.js → chunk-HSSKS2BO.js} +30 -30
- package/chunks/{chunk-VWM3GUBH.js → chunk-I4KER2VG.js} +1 -1
- package/chunks/{chunk-PFXCFIHY.js → chunk-JRGQUM3K.js} +1 -1
- package/chunks/chunk-PZF4OFAZ.js +12 -0
- package/chunks/{chunk-MZ73LBEY.js → chunk-RDTF45AP.js} +1 -1
- package/chunks/{chunk-HJK3NKAR.js → chunk-SHISTILE.js} +1 -1
- package/chunks/{chunk-OWEBLTAN.js → chunk-TGRZ364D.js} +1 -1
- package/chunks/chunk-TVTJEK4V.js +12 -0
- package/chunks/{chunk-BS7Q7KA6.js → chunk-U6ATDQUV.js} +1 -1
- package/chunks/{chunk-E2KMVG7F.js → chunk-UJWYKBZM.js} +1 -1
- package/chunks/{chunk-REUZDMLM.js → chunk-W3ZB63AP.js} +25 -25
- package/chunks/chunk-YTKDUEUJ.js +8 -0
- package/chunks/{chunk-ZUQRP3N6.js → chunk-YZ33K24S.js} +1 -1
- package/chunks/chunk-ZRUOQBYQ.js +207 -0
- package/chunks/{computer-use-5T3ZH24D.js → computer-use-ZUTEIFET.js} +5 -17
- package/chunks/{cron-create-5RRFCP36.js → cron-create-4AQ43RPW.js} +1 -1
- package/chunks/cron-delete-HB7V5CZ5.js +3 -0
- package/chunks/cron-list-DIZZQW44.js +5 -0
- package/chunks/{de-MJBGC47E.js → de-2Z3VYN7K.js} +1 -1
- package/chunks/{edit-Y7YSDGLT.js → edit-ESBQCHHP.js} +1 -1
- package/chunks/en-WPNO63RZ.js +23 -0
- package/chunks/{enter-worktree-5ZGIYDUE.js → enter-worktree-3DNEZJHH.js} +1 -1
- package/chunks/{enterPlanMode-TWD4MXCW.js → enterPlanMode-AVYWCGBL.js} +1 -1
- package/chunks/{exit-worktree-3F5UY76U.js → exit-worktree-JRQ6Z7AB.js} +1 -1
- package/chunks/{exitPlanMode-HWK5EUVS.js → exitPlanMode-DRWHFT3R.js} +10 -10
- package/chunks/fr-S2YBRXGB.js +23 -0
- package/chunks/{glob-H7DNNPJ4.js → glob-ZJ2IBSBL.js} +1 -1
- package/chunks/{goal-tools-CJINJJ3Y.js → goal-tools-APHZOFAF.js} +1 -1
- package/chunks/{grep-5MCMGW6A.js → grep-7SKE6UM4.js} +1 -1
- package/chunks/{ja-OEXP6Z3S.js → ja-NOFHSWYP.js} +1 -1
- package/chunks/ls-I6JUFOTE.js +15 -0
- package/chunks/{lsp-Y46R5DO5.js → lsp-JMVZE3IL.js} +1 -1
- package/chunks/mcp-client-WGLA6WFP.js +3 -0
- package/chunks/monitor-24WFRG6D.js +32 -0
- package/chunks/notebook-edit-75IBMHFG.js +17 -0
- package/chunks/openaiContentGenerator-SK6CIVEM.js +52 -0
- package/chunks/{pt-PCVIFK7H.js → pt-PF7EEIOB.js} +1 -1
- package/chunks/read-file-PLW5HG6G.js +3 -0
- package/chunks/ripGrep-5I2QHVHA.js +3 -0
- package/chunks/{ru-CB5SIZZM.js → ru-X7QWJTM4.js} +1 -1
- package/chunks/scheduler-V6VOAQ5Q.js +8 -0
- package/chunks/send-message-F2OT25N7.js +8 -0
- package/chunks/shell-3HCOYZFM.js +3 -0
- package/chunks/{skill-5EMGSWRM.js → skill-WUXCNHR2.js} +1 -1
- package/chunks/symbol-search-R7VDY7D2.js +19 -0
- package/chunks/syntheticOutput-ULZO4GEC.js +3 -0
- package/chunks/task-create-ARA6A3IM.js +3 -0
- package/chunks/task-detach-4JGQ6IFW.js +9 -0
- package/chunks/task-list-MUF5W3YQ.js +9 -0
- package/chunks/{task-stop-OEAEE5R7.js → task-stop-JDLVQ7YB.js} +1 -1
- package/chunks/{task-update-4ANRU74G.js → task-update-Z6PWEP2K.js} +1 -1
- package/chunks/{team-create-G4N2NCFN.js → team-create-MERVIMYO.js} +1 -1
- package/chunks/team-delete-7YXVWNUC.js +8 -0
- package/chunks/todoWrite-RJABGUPD.js +3 -0
- package/chunks/tool-call-O4FMFOGR.js +3 -0
- package/chunks/tool-search-UQPAGXZY.js +26 -0
- package/chunks/{web-fetch-VA2BZ4VR.js → web-fetch-3LOJYO2U.js} +1 -1
- package/chunks/{web-search-OVFXJQDS.js → web-search-MPPPKAJ7.js} +1 -1
- package/chunks/{workflow-6VMVM5BG.js → workflow-JA2PZCN3.js} +2 -2
- package/chunks/write-file-R7UW3VKA.js +15 -0
- package/cli.js +449 -465
- package/locales/ca.js +2 -3
- package/locales/de.js +2 -3
- package/locales/en.js +11 -22
- package/locales/fr.js +2 -3
- package/locales/ja.js +2 -3
- package/locales/pt.js +2 -3
- package/locales/ru.js +2 -3
- package/npm-postinstall.js +2 -2
- package/package.json +2 -2
- package/chunks/agent-IJOGVY62.js +0 -3
- package/chunks/agent-headless-FZGKJCVK.js +0 -3
- package/chunks/ca-HHQCT6S2.js +0 -23
- package/chunks/chunk-225CZWD7.js +0 -89
- package/chunks/chunk-3BT7ZYAM.js +0 -121
- package/chunks/chunk-3IG6LNQ3.js +0 -2581
- package/chunks/chunk-46FFWNRO.js +0 -12
- package/chunks/chunk-55YW6EUC.js +0 -8
- package/chunks/chunk-FPGKJJJY.js +0 -13
- package/chunks/chunk-L2FKLLEC.js +0 -12
- package/chunks/chunk-N2BE647T.js +0 -10
- package/chunks/chunk-P24OL22U.js +0 -31
- package/chunks/chunk-VWE5BSHV.js +0 -56
- package/chunks/chunk-WL27X35X.js +0 -44
- package/chunks/cron-delete-7DTRWCSV.js +0 -3
- package/chunks/cron-list-HY6XJD7D.js +0 -5
- package/chunks/en-JITX7JKV.js +0 -23
- package/chunks/fr-WT3R2JCR.js +0 -23
- package/chunks/keychain-token-storage-BCODB632.js +0 -3
- package/chunks/ls-JORGCXES.js +0 -15
- package/chunks/mcp-client-54J5M542.js +0 -3
- package/chunks/monitor-BRJR6PR3.js +0 -32
- package/chunks/notebook-edit-UCCVQ4JP.js +0 -17
- package/chunks/openaiContentGenerator-H6JOS3XU.js +0 -52
- package/chunks/read-file-LVMBCRCT.js +0 -3
- package/chunks/ripGrep-F6AJSDKU.js +0 -3
- package/chunks/scheduler-XAOD6LG6.js +0 -8
- package/chunks/send-message-VY4DP63A.js +0 -8
- package/chunks/shell-QUDC6MJK.js +0 -3
- package/chunks/symbol-search-YNGX4Z5T.js +0 -19
- package/chunks/syntheticOutput-4JANVS4D.js +0 -3
- package/chunks/task-create-NRBVXURQ.js +0 -3
- package/chunks/task-detach-VHDDAO2K.js +0 -9
- package/chunks/task-list-T2IET466.js +0 -9
- package/chunks/team-delete-M4ORNSTT.js +0 -8
- package/chunks/todoWrite-RN2OP46T.js +0 -3
- package/chunks/tool-search-WEUURHFZ.js +0 -28
- package/chunks/write-file-5ZAZVXBB.js +0 -15
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
|
-
import{Q as bc,R as xc,S as yc,T as ki}from"./chunk-WL27X35X.js";import{b as u}from"./chunk-GZPNIYVZ.js";import{a as ge,d as L,e as it,f as qr}from"./chunk-OWGSC52X.js";var Gd=L((ew,qd)=>{u();qd.exports=Vd;Vd.sync=G_;var Fd=ge("fs");function q_(e,r){var n=r.pathExt!==void 0?r.pathExt:process.env.PATHEXT;if(!n||(n=n.split(";"),n.indexOf("")!==-1))return!0;for(var o=0;o<n.length;o++){var t=n[o].toLowerCase();if(t&&e.substr(-t.length).toLowerCase()===t)return!0}return!1}function Md(e,r,n){return!e.isSymbolicLink()&&!e.isFile()?!1:q_(r,n)}function Vd(e,r,n){Fd.stat(e,function(o,t){n(o,o?!1:Md(t,e,r))})}function G_(e,r){return Md(Fd.statSync(e),e,r)}});var Kd=L((rw,Jd)=>{u();Jd.exports=Wd;Wd.sync=H_;var Hd=ge("fs");function Wd(e,r,n){Hd.stat(e,function(o,t){n(o,o?!1:Bd(t,r))})}function H_(e,r){return Bd(Hd.statSync(e),r)}function Bd(e,r){return e.isFile()&&W_(e,r)}function W_(e,r){var n=e.mode,o=e.uid,t=e.gid,i=r.uid!==void 0?r.uid:process.getuid&&process.getuid(),a=r.gid!==void 0?r.gid:process.getgid&&process.getgid(),s=parseInt("100",8),c=parseInt("010",8),p=parseInt("001",8),g=s|c,m=n&p||n&c&&t===a||n&s&&o===i||n&g&&i===0;return m}});var Yd=L((ow,Xd)=>{u();var iw=ge("fs"),Jn;process.platform==="win32"||globalThis.TESTING_WINDOWS?Jn=Gd():Jn=Kd();Xd.exports=ku;ku.sync=B_;function ku(e,r,n){if(typeof r=="function"&&(n=r,r={}),!n){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(o,t){ku(e,r||{},function(i,a){i?t(i):o(a)})})}Jn(e,r||{},function(o,t){o&&(o.code==="EACCES"||r&&r.ignoreErrors)&&(o=null,t=!1),n(o,t)})}function B_(e,r){try{return Jn.sync(e,r||{})}catch(n){if(r&&r.ignoreErrors||n.code==="EACCES")return!1;throw n}}});var op=L((sw,ip)=>{u();var Et=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Qd=ge("path"),J_=Et?";":":",ep=Yd(),tp=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),rp=(e,r)=>{let n=r.colon||J_,o=e.match(/\//)||Et&&e.match(/\\/)?[""]:[...Et?[process.cwd()]:[],...(r.path||process.env.PATH||"").split(n)],t=Et?r.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",i=Et?t.split(n):[""];return Et&&e.indexOf(".")!==-1&&i[0]!==""&&i.unshift(""),{pathEnv:o,pathExt:i,pathExtExe:t}},np=(e,r,n)=>{typeof r=="function"&&(n=r,r={}),r||(r={});let{pathEnv:o,pathExt:t,pathExtExe:i}=rp(e,r),a=[],s=p=>new Promise((g,m)=>{if(p===o.length)return r.all&&a.length?g(a):m(tp(e));let x=o[p],y=/^".*"$/.test(x)?x.slice(1,-1):x,l=Qd.join(y,e),_=!y&&/^\.[\\\/]/.test(e)?e.slice(0,2)+l:l;g(c(_,p,0))}),c=(p,g,m)=>new Promise((x,y)=>{if(m===t.length)return x(s(g+1));let l=t[m];ep(p+l,{pathExt:i},(_,z)=>{if(!_&&z)if(r.all)a.push(p+l);else return x(p+l);return x(c(p,g,m+1))})});return n?s(0).then(p=>n(null,p),n):s(0)},K_=(e,r)=>{r=r||{};let{pathEnv:n,pathExt:o,pathExtExe:t}=rp(e,r),i=[];for(let a=0;a<n.length;a++){let s=n[a],c=/^".*"$/.test(s)?s.slice(1,-1):s,p=Qd.join(c,e),g=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+p:p;for(let m=0;m<o.length;m++){let x=g+o[m];try{if(ep.sync(x,{pathExt:t}))if(r.all)i.push(x);else return x}catch{}}}if(r.all&&i.length)return i;if(r.nothrow)return null;throw tp(e)};ip.exports=np;np.sync=K_});var sp=L((cw,wu)=>{"use strict";u();var ap=(e={})=>{let r=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(r).reverse().find(o=>o.toUpperCase()==="PATH")||"Path"};wu.exports=ap;wu.exports.default=ap});var dp=L((dw,lp)=>{"use strict";u();var up=ge("path"),X_=op(),Y_=sp();function cp(e,r){let n=e.options.env||process.env,o=process.cwd(),t=e.options.cwd!=null,i=t&&process.chdir!==void 0&&!process.chdir.disabled;if(i)try{process.chdir(e.options.cwd)}catch{}let a;try{a=X_.sync(e.command,{path:n[Y_({env:n})],pathExt:r?up.delimiter:void 0})}catch{}finally{i&&process.chdir(o)}return a&&(a=up.resolve(t?e.options.cwd:"",a)),a}function Q_(e){return cp(e)||cp(e,!0)}lp.exports=Q_});var pp=L((mw,Pu)=>{"use strict";u();var Iu=/([()\][%!^"`<>&|;, *?])/g;function e$(e){return e=e.replace(Iu,"^$1"),e}function t$(e,r){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),e=e.replace(/(?=(\\+?)?)\1$/,"$1$1"),e=`"${e}"`,e=e.replace(Iu,"^$1"),r&&(e=e.replace(Iu,"^$1")),e}Pu.exports.command=e$;Pu.exports.argument=t$});var fp=L((gw,mp)=>{"use strict";u();mp.exports=/^#!(.*)/});var hp=L((vw,gp)=>{"use strict";u();var r$=fp();gp.exports=(e="")=>{let r=e.match(r$);if(!r)return null;let[n,o]=r[0].replace(/#! ?/,"").split(" "),t=n.split("/").pop();return t==="env"?o:o?`${t} ${o}`:t}});var _p=L(($w,vp)=>{"use strict";u();var ju=ge("fs"),n$=hp();function i$(e){let n=Buffer.alloc(150),o;try{o=ju.openSync(e,"r"),ju.readSync(o,n,0,150,0),ju.closeSync(o)}catch{}return n$(n.toString())}vp.exports=i$});var yp=L((xw,xp)=>{"use strict";u();var o$=ge("path"),$p=dp(),bp=pp(),a$=_p(),s$=process.platform==="win32",u$=/\.(?:com|exe)$/i,c$=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function l$(e){e.file=$p(e);let r=e.file&&a$(e.file);return r?(e.args.unshift(e.file),e.command=r,$p(e)):e.file}function d$(e){if(!s$)return e;let r=l$(e),n=!u$.test(r);if(e.options.forceShell||n){let o=c$.test(r);e.command=o$.normalize(e.command),e.command=bp.command(e.command),e.args=e.args.map(i=>bp.argument(i,o));let t=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${t}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function p$(e,r,n){r&&!Array.isArray(r)&&(n=r,r=null),r=r?r.slice(0):[],n=Object.assign({},n);let o={command:e,args:r,options:n,file:void 0,original:{command:e,args:r}};return n.shell?o:d$(o)}xp.exports=p$});var kp=L((zw,Sp)=>{"use strict";u();var Eu=process.platform==="win32";function Ou(e,r){return Object.assign(new Error(`${r} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${r} ${e.command}`,path:e.command,spawnargs:e.args})}function m$(e,r){if(!Eu)return;let n=e.emit;e.emit=function(o,t){if(o==="exit"){let i=zp(t,r);if(i)return n.call(e,"error",i)}return n.apply(e,arguments)}}function zp(e,r){return Eu&&e===1&&!r.file?Ou(r.original,"spawn"):null}function f$(e,r){return Eu&&e===1&&!r.file?Ou(r.original,"spawnSync"):null}Sp.exports={hookChildProcess:m$,verifyENOENT:zp,verifyENOENTSync:f$,notFoundError:Ou}});var Pp=L((kw,Ot)=>{"use strict";u();var wp=ge("child_process"),Ru=yp(),Nu=kp();function Ip(e,r,n){let o=Ru(e,r,n),t=wp.spawn(o.command,o.args,o.options);return Nu.hookChildProcess(t,o),t}function g$(e,r,n){let o=Ru(e,r,n),t=wp.spawnSync(o.command,o.args,o.options);return t.error=t.error||Nu.verifyENOENTSync(t.status,o),t}Ot.exports=Ip;Ot.exports.spawn=Ip;Ot.exports.sync=g$;Ot.exports._parse=Ru;Ot.exports._enoent=Nu});var Lu=L(Ae=>{"use strict";u();Object.defineProperty(Ae,"__esModule",{value:!0});Ae.normalizePath=Ae.isRootDirectory=Ae.convertSlashes=Ae.cleanPath=void 0;var Zu=ge("path");function Cp(e){let r=(0,Zu.normalize)(e);return r.length>1&&r[r.length-1]===Zu.sep&&(r=r.substring(0,r.length-1)),r}Ae.cleanPath=Cp;var w$=/[\\/]/g;function Zp(e,r){return e.replace(w$,r)}Ae.convertSlashes=Zp;var I$=/^[a-z]:[\\/]$/i;function P$(e){return e==="/"||I$.test(e)}Ae.isRootDirectory=P$;function j$(e,r){let{resolvePaths:n,normalizePath:o,pathSeparator:t}=r,i=process.platform==="win32"&&e.includes("/")||e.startsWith(".");if(n&&(e=(0,Zu.resolve)(e)),(o||i)&&(e=Cp(e)),e===".")return"";let a=e[e.length-1]!==t;return Zp(a?e+t:e,t)}Ae.normalizePath=j$});var Fp=L(et=>{"use strict";u();Object.defineProperty(et,"__esModule",{value:!0});et.build=et.joinDirectoryPath=et.joinPathWithBasePath=void 0;var E$=ge("path"),O$=Lu();function Lp(e,r){return r+e}et.joinPathWithBasePath=Lp;function R$(e,r){return function(n,o){return o.startsWith(e)?o.replace(e,"")+n:(0,O$.convertSlashes)((0,E$.relative)(e,o),r.pathSeparator)+r.pathSeparator+n}}function N$(e){return e}function T$(e,r,n){return r+e+n}et.joinDirectoryPath=T$;function A$(e,r){let{relativePaths:n,includeBasePath:o}=r;return n&&e?R$(e,r):o?Lp:N$}et.build=A$});var Mp=L(Yn=>{"use strict";u();Object.defineProperty(Yn,"__esModule",{value:!0});Yn.build=void 0;function U$(e){return function(r,n){n.push(r.substring(e.length)||".")}}function D$(e){return function(r,n,o){let t=r.substring(e.length)||".";o.every(i=>i(t,!0))&&n.push(t)}}var C$=(e,r)=>{r.push(e||".")},Z$=(e,r,n)=>{let o=e||".";n.every(t=>t(o,!0))&&r.push(o)},L$=()=>{};function F$(e,r){let{includeDirs:n,filters:o,relativePaths:t}=r;return n?t?o&&o.length?D$(e):U$(e):o&&o.length?Z$:C$:L$}Yn.build=F$});var Vp=L(Qn=>{"use strict";u();Object.defineProperty(Qn,"__esModule",{value:!0});Qn.build=void 0;var M$=(e,r,n,o)=>{o.every(t=>t(e,!1))&&n.files++},V$=(e,r,n,o)=>{o.every(t=>t(e,!1))&&r.push(e)},q$=(e,r,n,o)=>{n.files++},G$=(e,r)=>{r.push(e)},H$=()=>{};function W$(e){let{excludeFiles:r,filters:n,onlyCounts:o}=e;return r?H$:n&&n.length?o?M$:V$:o?q$:G$}Qn.build=W$});var qp=L(ei=>{"use strict";u();Object.defineProperty(ei,"__esModule",{value:!0});ei.build=void 0;var B$=e=>e,J$=()=>[""].slice(0,0);function K$(e){return e.group?J$:B$}ei.build=K$});var Gp=L(ti=>{"use strict";u();Object.defineProperty(ti,"__esModule",{value:!0});ti.build=void 0;var X$=(e,r,n)=>{e.push({directory:r,files:n,dir:r})},Y$=()=>{};function Q$(e){return e.group?X$:Y$}ti.build=Q$});var Bp=L(Nt=>{"use strict";u();var eb=Nt&&Nt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Nt,"__esModule",{value:!0});Nt.build=void 0;var ri=eb(ge("fs")),Hp=ge("path"),tb=function(e,r,n){let{queue:o,options:{suppressErrors:t}}=r;o.enqueue(),ri.default.realpath(e,(i,a)=>{if(i)return o.dequeue(t?null:i,r);ri.default.stat(a,(s,c)=>{if(s)return o.dequeue(t?null:s,r);if(c.isDirectory()&&Wp(e,a,r))return o.dequeue(null,r);n(c,a),o.dequeue(null,r)})})},rb=function(e,r,n){let{queue:o,options:{suppressErrors:t}}=r;o.enqueue();try{let i=ri.default.realpathSync(e),a=ri.default.statSync(i);if(a.isDirectory()&&Wp(e,i,r))return;n(a,i)}catch(i){if(!t)throw i}};function nb(e,r){return!e.resolveSymlinks||e.excludeSymlinks?null:r?rb:tb}Nt.build=nb;function Wp(e,r,n){if(n.options.useRealPaths)return ib(r,n);let o=(0,Hp.dirname)(e),t=1;for(;o!==n.root&&t<2;){let i=n.symlinks.get(o);!!i&&(i===r||i.startsWith(r)||r.startsWith(i))?t++:o=(0,Hp.dirname)(o)}return n.symlinks.set(e,r),t>1}function ib(e,r){return r.visited.includes(e+r.options.pathSeparator)}});var Jp=L(ii=>{"use strict";u();Object.defineProperty(ii,"__esModule",{value:!0});ii.build=void 0;var ob=e=>e.counts,ab=e=>e.groups,sb=e=>e.paths,ub=e=>e.paths.slice(0,e.options.maxFiles),cb=(e,r,n)=>(ni(r,n,e.counts,e.options.suppressErrors),null),lb=(e,r,n)=>(ni(r,n,e.paths,e.options.suppressErrors),null),db=(e,r,n)=>(ni(r,n,e.paths.slice(0,e.options.maxFiles),e.options.suppressErrors),null),pb=(e,r,n)=>(ni(r,n,e.groups,e.options.suppressErrors),null);function ni(e,r,n,o){r(e&&!o?e:null,n)}function mb(e,r){let{onlyCounts:n,group:o,maxFiles:t}=e;return n?r?ob:cb:o?r?ab:pb:t?r?ub:db:r?sb:lb}ii.build=mb});var Yp=L(Tt=>{"use strict";u();var fb=Tt&&Tt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Tt,"__esModule",{value:!0});Tt.build=void 0;var Kp=fb(ge("fs")),Xp={withFileTypes:!0},gb=(e,r,n,o,t)=>{if(e.queue.enqueue(),o<0)return e.queue.dequeue(null,e);e.visited.push(r),e.counts.directories++,Kp.default.readdir(r||".",Xp,(i,a=[])=>{t(a,n,o),e.queue.dequeue(e.options.suppressErrors?null:i,e)})},hb=(e,r,n,o,t)=>{if(o<0)return;e.visited.push(r),e.counts.directories++;let i=[];try{i=Kp.default.readdirSync(r||".",Xp)}catch(a){if(!e.options.suppressErrors)throw a}t(i,n,o)};function vb(e){return e?hb:gb}Tt.build=vb});var Qp=L(oi=>{"use strict";u();Object.defineProperty(oi,"__esModule",{value:!0});oi.Queue=void 0;var Fu=class{onQueueEmpty;count=0;constructor(r){this.onQueueEmpty=r}enqueue(){return this.count++,this.count}dequeue(r,n){this.onQueueEmpty&&(--this.count<=0||r)&&(this.onQueueEmpty(r,n),r&&(n.controller.abort(),this.onQueueEmpty=void 0))}};oi.Queue=Fu});var em=L(ai=>{"use strict";u();Object.defineProperty(ai,"__esModule",{value:!0});ai.Counter=void 0;var Mu=class{_files=0;_directories=0;set files(r){this._files=r}get files(){return this._files}set directories(r){this._directories=r}get directories(){return this._directories}get dirs(){return this._directories}};ai.Counter=Mu});var Gu=L(Ue=>{"use strict";u();var _b=Ue&&Ue.__createBinding||(Object.create?function(e,r,n,o){o===void 0&&(o=n);var t=Object.getOwnPropertyDescriptor(r,n);(!t||("get"in t?!r.__esModule:t.writable||t.configurable))&&(t={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(e,o,t)}:function(e,r,n,o){o===void 0&&(o=n),e[o]=r[n]}),$b=Ue&&Ue.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),tt=Ue&&Ue.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&_b(r,e,n);return $b(r,e),r};Object.defineProperty(Ue,"__esModule",{value:!0});Ue.Walker=void 0;var tm=ge("path"),si=Lu(),Vu=tt(Fp()),bb=tt(Mp()),xb=tt(Vp()),yb=tt(qp()),zb=tt(Gp()),Sb=tt(Bp()),kb=tt(Jp()),wb=tt(Yp()),Ib=Qp(),Pb=em(),qu=class{root;isSynchronous;state;joinPath;pushDirectory;pushFile;getArray;groupFiles;resolveSymlink;walkDirectory;callbackInvoker;constructor(r,n,o){this.isSynchronous=!o,this.callbackInvoker=kb.build(n,this.isSynchronous),this.root=(0,si.normalizePath)(r,n),this.state={root:(0,si.isRootDirectory)(this.root)?this.root:this.root.slice(0,-1),paths:[""].slice(0,0),groups:[],counts:new Pb.Counter,options:n,queue:new Ib.Queue((t,i)=>this.callbackInvoker(i,t,o)),symlinks:new Map,visited:[""].slice(0,0),controller:new AbortController},this.joinPath=Vu.build(this.root,n),this.pushDirectory=bb.build(this.root,n),this.pushFile=xb.build(n),this.getArray=yb.build(n),this.groupFiles=zb.build(n),this.resolveSymlink=Sb.build(n,this.isSynchronous),this.walkDirectory=wb.build(this.isSynchronous)}start(){return this.pushDirectory(this.root,this.state.paths,this.state.options.filters),this.walkDirectory(this.state,this.root,this.root,this.state.options.maxDepth,this.walk),this.isSynchronous?this.callbackInvoker(this.state,null):null}walk=(r,n,o)=>{let{paths:t,options:{filters:i,resolveSymlinks:a,excludeSymlinks:s,exclude:c,maxFiles:p,signal:g,useRealPaths:m,pathSeparator:x},controller:y}=this.state;if(y.signal.aborted||g&&g.aborted||p&&t.length>p)return;let l=this.getArray(this.state.paths);for(let _=0;_<r.length;++_){let z=r[_];if(z.isFile()||z.isSymbolicLink()&&!a&&!s){let R=this.joinPath(z.name,n);this.pushFile(R,l,this.state.counts,i)}else if(z.isDirectory()){let R=Vu.joinDirectoryPath(z.name,n,this.state.options.pathSeparator);if(c&&c(z.name,R))continue;this.pushDirectory(R,t,i),this.walkDirectory(this.state,R,R,o-1,this.walk)}else if(this.resolveSymlink&&z.isSymbolicLink()){let R=Vu.joinPathWithBasePath(z.name,n);this.resolveSymlink(R,this.state,(I,E)=>{if(I.isDirectory()){if(E=(0,si.normalizePath)(E,this.state.options),c&&c(z.name,m?E:R+x))return;this.walkDirectory(this.state,E,m?E:R+x,o-1,this.walk)}else{E=m?E:R;let D=(0,tm.basename)(E),A=(0,si.normalizePath)((0,tm.dirname)(E),this.state.options);E=this.joinPath(D,A),this.pushFile(E,l,this.state.counts,i)}})}}this.groupFiles(this.state.groups,n,l)}};Ue.Walker=qu});var nm=L(At=>{"use strict";u();Object.defineProperty(At,"__esModule",{value:!0});At.callback=At.promise=void 0;var jb=Gu();function Eb(e,r){return new Promise((n,o)=>{rm(e,r,(t,i)=>{if(t)return o(t);n(i)})})}At.promise=Eb;function rm(e,r,n){new jb.Walker(e,r,n).start()}At.callback=rm});var im=L(ui=>{"use strict";u();Object.defineProperty(ui,"__esModule",{value:!0});ui.sync=void 0;var Ob=Gu();function Rb(e,r){return new Ob.Walker(e,r).start()}ui.sync=Rb});var am=L(ci=>{"use strict";u();Object.defineProperty(ci,"__esModule",{value:!0});ci.APIBuilder=void 0;var om=nm(),Nb=im(),Hu=class{root;options;constructor(r,n){this.root=r,this.options=n}withPromise(){return(0,om.promise)(this.root,this.options)}withCallback(r){(0,om.callback)(this.root,this.options,r)}sync(){return(0,Nb.sync)(this.root,this.options)}};ci.APIBuilder=Hu});var Or=L((SI,dm)=>{"use strict";u();var De="\\\\/",sm=`[^${De}]`,We="\\.",Tb="\\+",Ab="\\?",li="\\/",Ub="(?=.)",um="[^/]",Wu=`(?:${li}|$)`,cm=`(?:^|${li})`,Bu=`${We}{1,2}${Wu}`,Db=`(?!${We})`,Cb=`(?!${cm}${Bu})`,Zb=`(?!${We}{0,1}${Wu})`,Lb=`(?!${Bu})`,Fb=`[^.${li}]`,Mb=`${um}*?`,Vb="/",lm={DOT_LITERAL:We,PLUS_LITERAL:Tb,QMARK_LITERAL:Ab,SLASH_LITERAL:li,ONE_CHAR:Ub,QMARK:um,END_ANCHOR:Wu,DOTS_SLASH:Bu,NO_DOT:Db,NO_DOTS:Cb,NO_DOT_SLASH:Zb,NO_DOTS_SLASH:Lb,QMARK_NO_DOT:Fb,STAR:Mb,START_ANCHOR:cm,SEP:Vb},qb={...lm,SLASH_LITERAL:`[${De}]`,QMARK:sm,STAR:`${sm}*?`,DOTS_SLASH:`${We}{1,2}(?:[${De}]|$)`,NO_DOT:`(?!${We})`,NO_DOTS:`(?!(?:^|[${De}])${We}{1,2}(?:[${De}]|$))`,NO_DOT_SLASH:`(?!${We}{0,1}(?:[${De}]|$))`,NO_DOTS_SLASH:`(?!${We}{1,2}(?:[${De}]|$))`,QMARK_NO_DOT:`[^.${De}]`,START_ANCHOR:`(?:^|[${De}])`,END_ANCHOR:`(?:[${De}]|$)`,SEP:"\\"},Gb={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"};dm.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Gb,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:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},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,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?qb:lm}}});var Rr=L(Se=>{"use strict";u();var{REGEX_BACKSLASH:Hb,REGEX_REMOVE_BACKSLASH:Wb,REGEX_SPECIAL_CHARS:Bb,REGEX_SPECIAL_CHARS_GLOBAL:Jb}=Or();Se.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);Se.hasRegexChars=e=>Bb.test(e);Se.isRegexChar=e=>e.length===1&&Se.hasRegexChars(e);Se.escapeRegex=e=>e.replace(Jb,"\\$1");Se.toPosixSlashes=e=>e.replace(Hb,"/");Se.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){let e=navigator.platform.toLowerCase();return e==="win32"||e==="windows"}return typeof process<"u"&&process.platform?process.platform==="win32":!1};Se.removeBackslashes=e=>e.replace(Wb,r=>r==="\\"?"":r);Se.escapeLast=(e,r,n)=>{let o=e.lastIndexOf(r,n);return o===-1?e:e[o-1]==="\\"?Se.escapeLast(e,r,o-1):`${e.slice(0,o)}\\${e.slice(o)}`};Se.removePrefix=(e,r={})=>{let n=e;return n.startsWith("./")&&(n=n.slice(2),r.prefix="./"),n};Se.wrapOutput=(e,r={},n={})=>{let o=n.contains?"":"^",t=n.contains?"":"$",i=`${o}(?:${e})${t}`;return r.negated===!0&&(i=`(?:^(?!${i}).*$)`),i};Se.basename=(e,{windows:r}={})=>{let n=e.split(r?/[\\/]/:"/"),o=n[n.length-1];return o===""?n[n.length-2]:o}});var $m=L((PI,_m)=>{"use strict";u();var pm=Rr(),{CHAR_ASTERISK:Ju,CHAR_AT:Kb,CHAR_BACKWARD_SLASH:Nr,CHAR_COMMA:Xb,CHAR_DOT:Ku,CHAR_EXCLAMATION_MARK:Xu,CHAR_FORWARD_SLASH:vm,CHAR_LEFT_CURLY_BRACE:Yu,CHAR_LEFT_PARENTHESES:Qu,CHAR_LEFT_SQUARE_BRACKET:Yb,CHAR_PLUS:Qb,CHAR_QUESTION_MARK:mm,CHAR_RIGHT_CURLY_BRACE:ex,CHAR_RIGHT_PARENTHESES:fm,CHAR_RIGHT_SQUARE_BRACKET:tx}=Or(),gm=e=>e===vm||e===Nr,hm=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},rx=(e,r)=>{let n=r||{},o=e.length-1,t=n.parts===!0||n.scanToEnd===!0,i=[],a=[],s=[],c=e,p=-1,g=0,m=0,x=!1,y=!1,l=!1,_=!1,z=!1,R=!1,I=!1,E=!1,D=!1,A=!1,q=0,W,U,T={value:"",depth:0,isGlob:!1},h=()=>p>=o,de=()=>c.charCodeAt(p+1),ie=()=>(W=U,c.charCodeAt(++p));for(;p<o;){U=ie();let B;if(U===Nr){I=T.backslashes=!0,U=ie(),U===Yu&&(R=!0);continue}if(R===!0||U===Yu){for(q++;h()!==!0&&(U=ie());){if(U===Nr){I=T.backslashes=!0,ie();continue}if(U===Yu){q++;continue}if(R!==!0&&U===Ku&&(U=ie())===Ku){if(x=T.isBrace=!0,l=T.isGlob=!0,A=!0,t===!0)continue;break}if(R!==!0&&U===Xb){if(x=T.isBrace=!0,l=T.isGlob=!0,A=!0,t===!0)continue;break}if(U===ex&&(q--,q===0)){R=!1,x=T.isBrace=!0,A=!0;break}}if(t===!0)continue;break}if(U===vm){if(i.push(p),a.push(T),T={value:"",depth:0,isGlob:!1},A===!0)continue;if(W===Ku&&p===g+1){g+=2;continue}m=p+1;continue}if(n.noext!==!0&&(U===Qb||U===Kb||U===Ju||U===mm||U===Xu)===!0&&de()===Qu){if(l=T.isGlob=!0,_=T.isExtglob=!0,A=!0,U===Xu&&p===g&&(D=!0),t===!0){for(;h()!==!0&&(U=ie());){if(U===Nr){I=T.backslashes=!0,U=ie();continue}if(U===fm){l=T.isGlob=!0,A=!0;break}}continue}break}if(U===Ju){if(W===Ju&&(z=T.isGlobstar=!0),l=T.isGlob=!0,A=!0,t===!0)continue;break}if(U===mm){if(l=T.isGlob=!0,A=!0,t===!0)continue;break}if(U===Yb){for(;h()!==!0&&(B=ie());){if(B===Nr){I=T.backslashes=!0,ie();continue}if(B===tx){y=T.isBracket=!0,l=T.isGlob=!0,A=!0;break}}if(t===!0)continue;break}if(n.nonegate!==!0&&U===Xu&&p===g){E=T.negated=!0,g++;continue}if(n.noparen!==!0&&U===Qu){if(l=T.isGlob=!0,t===!0){for(;h()!==!0&&(U=ie());){if(U===Qu){I=T.backslashes=!0,U=ie();continue}if(U===fm){A=!0;break}}continue}break}if(l===!0){if(A=!0,t===!0)continue;break}}n.noext===!0&&(_=!1,l=!1);let te=c,$="",b="";g>0&&($=c.slice(0,g),c=c.slice(g),m-=g),te&&l===!0&&m>0?(te=c.slice(0,m),b=c.slice(m)):l===!0?(te="",b=c):te=c,te&&te!==""&&te!=="/"&&te!==c&&gm(te.charCodeAt(te.length-1))&&(te=te.slice(0,-1)),n.unescape===!0&&(b&&(b=pm.removeBackslashes(b)),te&&I===!0&&(te=pm.removeBackslashes(te)));let Pe={prefix:$,input:e,start:g,base:te,glob:b,isBrace:x,isBracket:y,isGlob:l,isExtglob:_,isGlobstar:z,negated:E,negatedExtglob:D};if(n.tokens===!0&&(Pe.maxDepth=0,gm(U)||a.push(T),Pe.tokens=a),n.parts===!0||n.tokens===!0){let B;for(let oe=0;oe<i.length;oe++){let Le=B?B+1:g,je=i[oe],Xe=e.slice(Le,je);n.tokens&&(oe===0&&g!==0?(a[oe].isPrefix=!0,a[oe].value=$):a[oe].value=Xe,hm(a[oe]),Pe.maxDepth+=a[oe].depth),(oe!==0||Xe!=="")&&s.push(Xe),B=je}if(B&&B+1<e.length){let oe=e.slice(B+1);s.push(oe),n.tokens&&(a[a.length-1].value=oe,hm(a[a.length-1]),Pe.maxDepth+=a[a.length-1].depth)}Pe.slashes=i,Pe.parts=s}return Pe};_m.exports=rx});var ym=L((EI,xm)=>{"use strict";u();var di=Or(),Ce=Rr(),{MAX_LENGTH:pi,POSIX_REGEX_SOURCE:nx,REGEX_NON_SPECIAL_CHARS:ix,REGEX_SPECIAL_CHARS_BACKREF:ox,REPLACEMENTS:bm}=di,ax=(e,r)=>{if(typeof r.expandRange=="function")return r.expandRange(...e,r);e.sort();let n=`[${e.join("-")}]`;try{new RegExp(n)}catch{return e.map(t=>Ce.escapeRegex(t)).join("..")}return n},Ut=(e,r)=>`Missing ${e}: "${r}" - use "\\\\${r}" to match literal characters`,ec=(e,r)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=bm[e]||e;let n={...r},o=typeof n.maxLength=="number"?Math.min(pi,n.maxLength):pi,t=e.length;if(t>o)throw new SyntaxError(`Input length: ${t}, exceeds maximum allowed length: ${o}`);let i={type:"bos",value:"",output:n.prepend||""},a=[i],s=n.capture?"":"?:",c=di.globChars(n.windows),p=di.extglobChars(c),{DOT_LITERAL:g,PLUS_LITERAL:m,SLASH_LITERAL:x,ONE_CHAR:y,DOTS_SLASH:l,NO_DOT:_,NO_DOT_SLASH:z,NO_DOTS_SLASH:R,QMARK:I,QMARK_NO_DOT:E,STAR:D,START_ANCHOR:A}=c,q=O=>`(${s}(?:(?!${A}${O.dot?l:g}).)*?)`,W=n.dot?"":_,U=n.dot?I:E,T=n.bash===!0?q(n):D;n.capture&&(T=`(${T})`),typeof n.noext=="boolean"&&(n.noextglob=n.noext);let h={input:e,index:-1,start:0,dot:n.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:a};e=Ce.removePrefix(e,h),t=e.length;let de=[],ie=[],te=[],$=i,b,Pe=()=>h.index===t-1,B=h.peek=(O=1)=>e[h.index+O],oe=h.advance=()=>e[++h.index]||"",Le=()=>e.slice(h.index+1),je=(O="",re=0)=>{h.consumed+=O,h.index+=re},Xe=O=>{h.output+=O.output!=null?O.output:O.value,je(O.value)},uf=()=>{let O=1;for(;B()==="!"&&(B(2)!=="("||B(3)==="?");)oe(),h.start++,O++;return O%2===0?!1:(h.negated=!0,h.start++,!0)},Fr=O=>{h[O]++,te.push(O)},nt=O=>{h[O]--,te.pop()},V=O=>{if($.type==="globstar"){let re=h.braces>0&&(O.type==="comma"||O.type==="brace"),P=O.extglob===!0||de.length&&(O.type==="pipe"||O.type==="paren");O.type!=="slash"&&O.type!=="paren"&&!re&&!P&&(h.output=h.output.slice(0,-$.output.length),$.type="star",$.value="*",$.output=T,h.output+=$.output)}if(de.length&&O.type!=="paren"&&(de[de.length-1].inner+=O.value),(O.value||O.output)&&Xe(O),$&&$.type==="text"&&O.type==="text"){$.output=($.output||$.value)+O.value,$.value+=O.value;return}O.prev=$,a.push(O),$=O},Mr=(O,re)=>{let P={...p[re],conditions:1,inner:""};P.prev=$,P.parens=h.parens,P.output=h.output;let F=(n.capture?"(":"")+P.open;Fr("parens"),V({type:O,value:re,output:h.output?"":y}),V({type:"paren",extglob:!0,value:oe(),output:F}),de.push(P)},cf=O=>{let re=O.close+(n.capture?")":""),P;if(O.type==="negate"){let F=T;if(O.inner&&O.inner.length>1&&O.inner.includes("/")&&(F=q(n)),(F!==T||Pe()||/^\)+$/.test(Le()))&&(re=O.close=`)$))${F}`),O.inner.includes("*")&&(P=Le())&&/^\.[^\\/.]+$/.test(P)){let ae=ec(P,{...r,fastpaths:!1}).output;re=O.close=`)${ae})${F})`}O.prev.type==="bos"&&(h.negatedExtglob=!0)}V({type:"paren",extglob:!0,value:b,output:re}),nt("parens")};if(n.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let O=!1,re=e.replace(ox,(P,F,ae,be,pe,Si)=>be==="\\"?(O=!0,P):be==="?"?F?F+be+(pe?I.repeat(pe.length):""):Si===0?U+(pe?I.repeat(pe.length):""):I.repeat(ae.length):be==="."?g.repeat(ae.length):be==="*"?F?F+be+(pe?T:""):T:F?P:`\\${P}`);return O===!0&&(n.unescape===!0?re=re.replace(/\\/g,""):re=re.replace(/\\+/g,P=>P.length%2===0?"\\\\":P?"\\":"")),re===e&&n.contains===!0?(h.output=e,h):(h.output=Ce.wrapOutput(re,h,r),h)}for(;!Pe();){if(b=oe(),b==="\0")continue;if(b==="\\"){let P=B();if(P==="/"&&n.bash!==!0||P==="."||P===";")continue;if(!P){b+="\\",V({type:"text",value:b});continue}let F=/^\\+/.exec(Le()),ae=0;if(F&&F[0].length>2&&(ae=F[0].length,h.index+=ae,ae%2!==0&&(b+="\\")),n.unescape===!0?b=oe():b+=oe(),h.brackets===0){V({type:"text",value:b});continue}}if(h.brackets>0&&(b!=="]"||$.value==="["||$.value==="[^")){if(n.posix!==!1&&b===":"){let P=$.value.slice(1);if(P.includes("[")&&($.posix=!0,P.includes(":"))){let F=$.value.lastIndexOf("["),ae=$.value.slice(0,F),be=$.value.slice(F+2),pe=nx[be];if(pe){$.value=ae+pe,h.backtrack=!0,oe(),!i.output&&a.indexOf($)===1&&(i.output=y);continue}}}(b==="["&&B()!==":"||b==="-"&&B()==="]")&&(b=`\\${b}`),b==="]"&&($.value==="["||$.value==="[^")&&(b=`\\${b}`),n.posix===!0&&b==="!"&&$.value==="["&&(b="^"),$.value+=b,Xe({value:b});continue}if(h.quotes===1&&b!=='"'){b=Ce.escapeRegex(b),$.value+=b,Xe({value:b});continue}if(b==='"'){h.quotes=h.quotes===1?0:1,n.keepQuotes===!0&&V({type:"text",value:b});continue}if(b==="("){Fr("parens"),V({type:"paren",value:b});continue}if(b===")"){if(h.parens===0&&n.strictBrackets===!0)throw new SyntaxError(Ut("opening","("));let P=de[de.length-1];if(P&&h.parens===P.parens+1){cf(de.pop());continue}V({type:"paren",value:b,output:h.parens?")":"\\)"}),nt("parens");continue}if(b==="["){if(n.nobracket===!0||!Le().includes("]")){if(n.nobracket!==!0&&n.strictBrackets===!0)throw new SyntaxError(Ut("closing","]"));b=`\\${b}`}else Fr("brackets");V({type:"bracket",value:b});continue}if(b==="]"){if(n.nobracket===!0||$&&$.type==="bracket"&&$.value.length===1){V({type:"text",value:b,output:`\\${b}`});continue}if(h.brackets===0){if(n.strictBrackets===!0)throw new SyntaxError(Ut("opening","["));V({type:"text",value:b,output:`\\${b}`});continue}nt("brackets");let P=$.value.slice(1);if($.posix!==!0&&P[0]==="^"&&!P.includes("/")&&(b=`/${b}`),$.value+=b,Xe({value:b}),n.literalBrackets===!1||Ce.hasRegexChars(P))continue;let F=Ce.escapeRegex($.value);if(h.output=h.output.slice(0,-$.value.length),n.literalBrackets===!0){h.output+=F,$.value=F;continue}$.value=`(${s}${F}|${$.value})`,h.output+=$.value;continue}if(b==="{"&&n.nobrace!==!0){Fr("braces");let P={type:"brace",value:b,output:"(",outputIndex:h.output.length,tokensIndex:h.tokens.length};ie.push(P),V(P);continue}if(b==="}"){let P=ie[ie.length-1];if(n.nobrace===!0||!P){V({type:"text",value:b,output:b});continue}let F=")";if(P.dots===!0){let ae=a.slice(),be=[];for(let pe=ae.length-1;pe>=0&&(a.pop(),ae[pe].type!=="brace");pe--)ae[pe].type!=="dots"&&be.unshift(ae[pe].value);F=ax(be,n),h.backtrack=!0}if(P.comma!==!0&&P.dots!==!0){let ae=h.output.slice(0,P.outputIndex),be=h.tokens.slice(P.tokensIndex);P.value=P.output="\\{",b=F="\\}",h.output=ae;for(let pe of be)h.output+=pe.output||pe.value}V({type:"brace",value:b,output:F}),nt("braces"),ie.pop();continue}if(b==="|"){de.length>0&&de[de.length-1].conditions++,V({type:"text",value:b});continue}if(b===","){let P=b,F=ie[ie.length-1];F&&te[te.length-1]==="braces"&&(F.comma=!0,P="|"),V({type:"comma",value:b,output:P});continue}if(b==="/"){if($.type==="dot"&&h.index===h.start+1){h.start=h.index+1,h.consumed="",h.output="",a.pop(),$=i;continue}V({type:"slash",value:b,output:x});continue}if(b==="."){if(h.braces>0&&$.type==="dot"){$.value==="."&&($.output=g);let P=ie[ie.length-1];$.type="dots",$.output+=b,$.value+=b,P.dots=!0;continue}if(h.braces+h.parens===0&&$.type!=="bos"&&$.type!=="slash"){V({type:"text",value:b,output:g});continue}V({type:"dot",value:b,output:g});continue}if(b==="?"){if(!($&&$.value==="(")&&n.noextglob!==!0&&B()==="("&&B(2)!=="?"){Mr("qmark",b);continue}if($&&$.type==="paren"){let F=B(),ae=b;($.value==="("&&!/[!=<:]/.test(F)||F==="<"&&!/<([!=]|\w+>)/.test(Le()))&&(ae=`\\${b}`),V({type:"text",value:b,output:ae});continue}if(n.dot!==!0&&($.type==="slash"||$.type==="bos")){V({type:"qmark",value:b,output:E});continue}V({type:"qmark",value:b,output:I});continue}if(b==="!"){if(n.noextglob!==!0&&B()==="("&&(B(2)!=="?"||!/[!=<:]/.test(B(3)))){Mr("negate",b);continue}if(n.nonegate!==!0&&h.index===0){uf();continue}}if(b==="+"){if(n.noextglob!==!0&&B()==="("&&B(2)!=="?"){Mr("plus",b);continue}if($&&$.value==="("||n.regex===!1){V({type:"plus",value:b,output:m});continue}if($&&($.type==="bracket"||$.type==="paren"||$.type==="brace")||h.parens>0){V({type:"plus",value:b});continue}V({type:"plus",value:m});continue}if(b==="@"){if(n.noextglob!==!0&&B()==="("&&B(2)!=="?"){V({type:"at",extglob:!0,value:b,output:""});continue}V({type:"text",value:b});continue}if(b!=="*"){(b==="$"||b==="^")&&(b=`\\${b}`);let P=ix.exec(Le());P&&(b+=P[0],h.index+=P[0].length),V({type:"text",value:b});continue}if($&&($.type==="globstar"||$.star===!0)){$.type="star",$.star=!0,$.value+=b,$.output=T,h.backtrack=!0,h.globstar=!0,je(b);continue}let O=Le();if(n.noextglob!==!0&&/^\([^?]/.test(O)){Mr("star",b);continue}if($.type==="star"){if(n.noglobstar===!0){je(b);continue}let P=$.prev,F=P.prev,ae=P.type==="slash"||P.type==="bos",be=F&&(F.type==="star"||F.type==="globstar");if(n.bash===!0&&(!ae||O[0]&&O[0]!=="/")){V({type:"star",value:b,output:""});continue}let pe=h.braces>0&&(P.type==="comma"||P.type==="brace"),Si=de.length&&(P.type==="pipe"||P.type==="paren");if(!ae&&P.type!=="paren"&&!pe&&!Si){V({type:"star",value:b,output:""});continue}for(;O.slice(0,3)==="/**";){let Vr=e[h.index+4];if(Vr&&Vr!=="/")break;O=O.slice(3),je("/**",3)}if(P.type==="bos"&&Pe()){$.type="globstar",$.value+=b,$.output=q(n),h.output=$.output,h.globstar=!0,je(b);continue}if(P.type==="slash"&&P.prev.type!=="bos"&&!be&&Pe()){h.output=h.output.slice(0,-(P.output+$.output).length),P.output=`(?:${P.output}`,$.type="globstar",$.output=q(n)+(n.strictSlashes?")":"|$)"),$.value+=b,h.globstar=!0,h.output+=P.output+$.output,je(b);continue}if(P.type==="slash"&&P.prev.type!=="bos"&&O[0]==="/"){let Vr=O[1]!==void 0?"|$":"";h.output=h.output.slice(0,-(P.output+$.output).length),P.output=`(?:${P.output}`,$.type="globstar",$.output=`${q(n)}${x}|${x}${Vr})`,$.value+=b,h.output+=P.output+$.output,h.globstar=!0,je(b+oe()),V({type:"slash",value:"/",output:""});continue}if(P.type==="bos"&&O[0]==="/"){$.type="globstar",$.value+=b,$.output=`(?:^|${x}|${q(n)}${x})`,h.output=$.output,h.globstar=!0,je(b+oe()),V({type:"slash",value:"/",output:""});continue}h.output=h.output.slice(0,-$.output.length),$.type="globstar",$.output=q(n),$.value+=b,h.output+=$.output,h.globstar=!0,je(b);continue}let re={type:"star",value:b,output:T};if(n.bash===!0){re.output=".*?",($.type==="bos"||$.type==="slash")&&(re.output=W+re.output),V(re);continue}if($&&($.type==="bracket"||$.type==="paren")&&n.regex===!0){re.output=b,V(re);continue}(h.index===h.start||$.type==="slash"||$.type==="dot")&&($.type==="dot"?(h.output+=z,$.output+=z):n.dot===!0?(h.output+=R,$.output+=R):(h.output+=W,$.output+=W),B()!=="*"&&(h.output+=y,$.output+=y)),V(re)}for(;h.brackets>0;){if(n.strictBrackets===!0)throw new SyntaxError(Ut("closing","]"));h.output=Ce.escapeLast(h.output,"["),nt("brackets")}for(;h.parens>0;){if(n.strictBrackets===!0)throw new SyntaxError(Ut("closing",")"));h.output=Ce.escapeLast(h.output,"("),nt("parens")}for(;h.braces>0;){if(n.strictBrackets===!0)throw new SyntaxError(Ut("closing","}"));h.output=Ce.escapeLast(h.output,"{"),nt("braces")}if(n.strictSlashes!==!0&&($.type==="star"||$.type==="bracket")&&V({type:"maybe_slash",value:"",output:`${x}?`}),h.backtrack===!0){h.output="";for(let O of h.tokens)h.output+=O.output!=null?O.output:O.value,O.suffix&&(h.output+=O.suffix)}return h};ec.fastpaths=(e,r)=>{let n={...r},o=typeof n.maxLength=="number"?Math.min(pi,n.maxLength):pi,t=e.length;if(t>o)throw new SyntaxError(`Input length: ${t}, exceeds maximum allowed length: ${o}`);e=bm[e]||e;let{DOT_LITERAL:i,SLASH_LITERAL:a,ONE_CHAR:s,DOTS_SLASH:c,NO_DOT:p,NO_DOTS:g,NO_DOTS_SLASH:m,STAR:x,START_ANCHOR:y}=di.globChars(n.windows),l=n.dot?g:p,_=n.dot?m:p,z=n.capture?"":"?:",R={negated:!1,prefix:""},I=n.bash===!0?".*?":x;n.capture&&(I=`(${I})`);let E=W=>W.noglobstar===!0?I:`(${z}(?:(?!${y}${W.dot?c:i}).)*?)`,D=W=>{switch(W){case"*":return`${l}${s}${I}`;case".*":return`${i}${s}${I}`;case"*.*":return`${l}${I}${i}${s}${I}`;case"*/*":return`${l}${I}${a}${s}${_}${I}`;case"**":return l+E(n);case"**/*":return`(?:${l}${E(n)}${a})?${_}${s}${I}`;case"**/*.*":return`(?:${l}${E(n)}${a})?${_}${I}${i}${s}${I}`;case"**/.*":return`(?:${l}${E(n)}${a})?${i}${s}${I}`;default:{let U=/^(.*?)\.(\w+)$/.exec(W);if(!U)return;let T=D(U[1]);return T?T+i+U[2]:void 0}}},A=Ce.removePrefix(e,R),q=D(A);return q&&n.strictSlashes!==!0&&(q+=`${a}?`),q};xm.exports=ec});var km=L((RI,Sm)=>{"use strict";u();var sx=$m(),tc=ym(),zm=Rr(),ux=Or(),cx=e=>e&&typeof e=="object"&&!Array.isArray(e),ue=(e,r,n=!1)=>{if(Array.isArray(e)){let g=e.map(x=>ue(x,r,n));return x=>{for(let y of g){let l=y(x);if(l)return l}return!1}}let o=cx(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!o)throw new TypeError("Expected pattern to be a non-empty string");let t=r||{},i=t.windows,a=o?ue.compileRe(e,r):ue.makeRe(e,r,!1,!0),s=a.state;delete a.state;let c=()=>!1;if(t.ignore){let g={...r,ignore:null,onMatch:null,onResult:null};c=ue(t.ignore,g,n)}let p=(g,m=!1)=>{let{isMatch:x,match:y,output:l}=ue.test(g,a,r,{glob:e,posix:i}),_={glob:e,state:s,regex:a,posix:i,input:g,output:l,match:y,isMatch:x};return typeof t.onResult=="function"&&t.onResult(_),x===!1?(_.isMatch=!1,m?_:!1):c(g)?(typeof t.onIgnore=="function"&&t.onIgnore(_),_.isMatch=!1,m?_:!1):(typeof t.onMatch=="function"&&t.onMatch(_),m?_:!0)};return n&&(p.state=s),p};ue.test=(e,r,n,{glob:o,posix:t}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let i=n||{},a=i.format||(t?zm.toPosixSlashes:null),s=e===o,c=s&&a?a(e):e;return s===!1&&(c=a?a(e):e,s=c===o),(s===!1||i.capture===!0)&&(i.matchBase===!0||i.basename===!0?s=ue.matchBase(e,r,n,t):s=r.exec(c)),{isMatch:!!s,match:s,output:c}};ue.matchBase=(e,r,n)=>(r instanceof RegExp?r:ue.makeRe(r,n)).test(zm.basename(e));ue.isMatch=(e,r,n)=>ue(r,n)(e);ue.parse=(e,r)=>Array.isArray(e)?e.map(n=>ue.parse(n,r)):tc(e,{...r,fastpaths:!1});ue.scan=(e,r)=>sx(e,r);ue.compileRe=(e,r,n=!1,o=!1)=>{if(n===!0)return e.output;let t=r||{},i=t.contains?"":"^",a=t.contains?"":"$",s=`${i}(?:${e.output})${a}`;e&&e.negated===!0&&(s=`^(?!${s}).*$`);let c=ue.toRegex(s,r);return o===!0&&(c.state=e),c};ue.makeRe=(e,r={},n=!1,o=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let t={negated:!1,fastpaths:!0};return r.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(t.output=tc.fastpaths(e,r)),t.output||(t=tc(e,r)),ue.compileRe(t,r,n,o)};ue.toRegex=(e,r)=>{try{let n=r||{};return new RegExp(e,n.flags||(n.nocase?"i":""))}catch(n){if(r&&r.debug===!0)throw n;return/$^/}};ue.constants=ux;Sm.exports=ue});var rc=L((TI,Pm)=>{"use strict";u();var wm=km(),lx=Rr();function Im(e,r,n=!1){return r&&(r.windows===null||r.windows===void 0)&&(r={...r,windows:lx.isWindows()}),wm(e,r,n)}Object.assign(Im,wm);Pm.exports=Im});var Om=L(mi=>{"use strict";u();Object.defineProperty(mi,"__esModule",{value:!0});mi.Builder=void 0;var dx=ge("path"),jm=am(),Em=null;try{ge.resolve("picomatch"),Em=rc()}catch{}var nc=class{globCache={};options={maxDepth:1/0,suppressErrors:!0,pathSeparator:dx.sep,filters:[]};globFunction;constructor(r){this.options={...this.options,...r},this.globFunction=this.options.globFunction}group(){return this.options.group=!0,this}withPathSeparator(r){return this.options.pathSeparator=r,this}withBasePath(){return this.options.includeBasePath=!0,this}withRelativePaths(){return this.options.relativePaths=!0,this}withDirs(){return this.options.includeDirs=!0,this}withMaxDepth(r){return this.options.maxDepth=r,this}withMaxFiles(r){return this.options.maxFiles=r,this}withFullPaths(){return this.options.resolvePaths=!0,this.options.includeBasePath=!0,this}withErrors(){return this.options.suppressErrors=!1,this}withSymlinks({resolvePaths:r=!0}={}){return this.options.resolveSymlinks=!0,this.options.useRealPaths=r,this.withFullPaths()}withAbortSignal(r){return this.options.signal=r,this}normalize(){return this.options.normalizePath=!0,this}filter(r){return this.options.filters.push(r),this}onlyDirs(){return this.options.excludeFiles=!0,this.options.includeDirs=!0,this}exclude(r){return this.options.exclude=r,this}onlyCounts(){return this.options.onlyCounts=!0,this}crawl(r){return new jm.APIBuilder(r||".",this.options)}withGlobFunction(r){return this.globFunction=r,this}crawlWithOptions(r,n){return this.options={...this.options,...n},new jm.APIBuilder(r||".",this.options)}glob(...r){return this.globFunction?this.globWithOptions(r):this.globWithOptions(r,{dot:!0})}globWithOptions(r,...n){let o=this.globFunction||Em;if(!o)throw new Error("Please specify a glob function to use glob matching.");var t=this.globCache[r.join("\0")];return t||(t=o(r,...n),this.globCache[r.join("\0")]=t),this.options.filters.push(i=>t(i)),this}};mi.Builder=nc});var Nm=L(Rm=>{"use strict";u();Object.defineProperty(Rm,"__esModule",{value:!0})});var Tm=L(Be=>{"use strict";u();var px=Be&&Be.__createBinding||(Object.create?function(e,r,n,o){o===void 0&&(o=n);var t=Object.getOwnPropertyDescriptor(r,n);(!t||("get"in t?!r.__esModule:t.writable||t.configurable))&&(t={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(e,o,t)}:function(e,r,n,o){o===void 0&&(o=n),e[o]=r[n]}),mx=Be&&Be.__exportStar||function(e,r){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(r,n)&&px(r,e,n)};Object.defineProperty(Be,"__esModule",{value:!0});Be.fdir=void 0;var fx=Om();Object.defineProperty(Be,"fdir",{enumerable:!0,get:function(){return fx.Builder}});mx(Nm(),Be)});var of=L((YI,yi)=>{u();function Ym(e){return Array.isArray(e)?e:[e]}var Mx=void 0,mc="",Km=" ",pc="\\",Vx=/^\s+$/,qx=/(?:[^\\]|^)\\$/,Gx=/^\\!/,Hx=/^\\#/,Wx=/\r?\n/g,Bx=/^\.{0,2}\/|^\.{1,2}$/,Jx=/\/$/,Ct="/",Qm="node-ignore";typeof Symbol<"u"&&(Qm=Symbol.for("node-ignore"));var ef=Qm,Zt=(e,r,n)=>(Object.defineProperty(e,r,{value:n}),n),Kx=/([0-z])-([0-z])/g,tf=()=>!1,Xx=e=>e.replace(Kx,(r,n,o)=>n.charCodeAt(0)<=o.charCodeAt(0)?r:mc),Yx=e=>{let{length:r}=e;return e.slice(0,r-r%2)},Qx=[[/^\uFEFF/,()=>mc],[/((?:\\\\)*?)(\\?\s+)$/,(e,r,n)=>r+(n.indexOf("\\")===0?Km:mc)],[/(\\+?)\s/g,(e,r)=>{let{length:n}=r;return r.slice(0,n-n%2)+Km}],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,r,n)=>r+6<n.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(e,r,n)=>{let o=n.replace(/\\\*/g,"[^\\/]*");return r+o}],[/\\\\\\(?=[$.|*+(){^])/g,()=>pc],[/\\\\/g,()=>pc],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,r,n,o,t)=>r===pc?`\\[${n}${Yx(o)}${t}`:t==="]"&&o.length%2===0?`[${Xx(n)}${o}]`:"[]"],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`]],ey=/(^|\\\/)?\\\*$/,Lr="regex",bi="checkRegex",Xm="_",ty={[Lr](e,r){return`${r?`${r}[^/]+`:"[^/]*"}(?=$|\\/$)`},[bi](e,r){return`${r?`${r}[^/]*`:"[^/]*"}(?=$|\\/$)`}},ry=e=>Qx.reduce((r,[n,o])=>r.replace(n,o.bind(e)),e),xi=e=>typeof e=="string",ny=e=>e&&xi(e)&&!Vx.test(e)&&!qx.test(e)&&e.indexOf("#")!==0,iy=e=>e.split(Wx).filter(Boolean),fc=class{constructor(r,n,o,t,i,a){this.pattern=r,this.mark=n,this.negative=i,Zt(this,"body",o),Zt(this,"ignoreCase",t),Zt(this,"regexPrefix",a)}get regex(){let r=Xm+Lr;return this[r]?this[r]:this._make(Lr,r)}get checkRegex(){let r=Xm+bi;return this[r]?this[r]:this._make(bi,r)}_make(r,n){let o=this.regexPrefix.replace(ey,ty[r]),t=this.ignoreCase?new RegExp(o,"i"):new RegExp(o);return Zt(this,n,t)}},oy=({pattern:e,mark:r},n)=>{let o=!1,t=e;t.indexOf("!")===0&&(o=!0,t=t.substr(1)),t=t.replace(Gx,"!").replace(Hx,"#");let i=ry(t);return new fc(e,r,t,n,o,i)},gc=class{constructor(r){this._ignoreCase=r,this._rules=[]}_add(r){if(r&&r[ef]){this._rules=this._rules.concat(r._rules._rules),this._added=!0;return}if(xi(r)&&(r={pattern:r}),ny(r.pattern)){let n=oy(r,this._ignoreCase);this._added=!0,this._rules.push(n)}}add(r){return this._added=!1,Ym(xi(r)?iy(r):r).forEach(this._add,this),this._added}test(r,n,o){let t=!1,i=!1,a;this._rules.forEach(c=>{let{negative:p}=c;i===p&&t!==i||p&&!t&&!i&&!n||!c[o].test(r)||(t=!p,i=p,a=p?Mx:c)});let s={ignored:t,unignored:i};return a&&(s.rule=a),s}},ay=(e,r)=>{throw new r(e)},Ke=(e,r,n)=>xi(e)?e?Ke.isNotRelative(e)?n(`path should be a \`path.relative()\`d string, but got "${r}"`,RangeError):!0:n("path must not be empty",TypeError):n(`path must be a string, but got \`${r}\``,TypeError),rf=e=>Bx.test(e);Ke.isNotRelative=rf;Ke.convert=e=>e;var hc=class{constructor({ignorecase:r=!0,ignoreCase:n=r,allowRelativePaths:o=!1}={}){Zt(this,ef,!0),this._rules=new gc(n),this._strictPathCheck=!o,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}add(r){return this._rules.add(r)&&this._initCache(),this}addPattern(r){return this.add(r)}_test(r,n,o,t){let i=r&&Ke.convert(r);return Ke(i,r,this._strictPathCheck?ay:tf),this._t(i,n,o,t)}checkIgnore(r){if(!Jx.test(r))return this.test(r);let n=r.split(Ct).filter(Boolean);if(n.pop(),n.length){let o=this._t(n.join(Ct)+Ct,this._testCache,!0,n);if(o.ignored)return o}return this._rules.test(r,!1,bi)}_t(r,n,o,t){if(r in n)return n[r];if(t||(t=r.split(Ct).filter(Boolean)),t.pop(),!t.length)return n[r]=this._rules.test(r,o,Lr);let i=this._t(t.join(Ct)+Ct,n,o,t);return n[r]=i.ignored?i:this._rules.test(r,o,Lr)}ignores(r){return this._test(r,this._ignoreCache,!1).ignored}createFilter(){return r=>!this.ignores(r)}filter(r){return Ym(r).filter(this.createFilter())}test(r){return this._test(r,this._testCache,!0)}},vc=e=>new hc(e),sy=e=>Ke(e&&Ke.convert(e),e,tf),nf=()=>{let e=n=>/^\\\\\?\\/.test(n)||/["<>|\u0000-\u001F]+/u.test(n)?n:n.replace(/\\/g,"/");Ke.convert=e;let r=/^[a-z]:\//i;Ke.isNotRelative=n=>r.test(n)||rf(n)};typeof process<"u"&&process.platform==="win32"&&nf();yi.exports=vc;vc.default=vc;yi.exports.isPathValid=sy;Zt(yi.exports,Symbol.for("setupWindows"),nf)});u();var tv={};it(tv,{$brand:()=>Ii,$input:()=>Ma,$output:()=>Fa,NEVER:()=>wi,TimePrecision:()=>Ga,ZodAny:()=>Cl,ZodArray:()=>Ml,ZodBase64:()=>eu,ZodBase64URL:()=>tu,ZodBigInt:()=>yr,ZodBigIntFormat:()=>iu,ZodBoolean:()=>xr,ZodCIDRv4:()=>Ys,ZodCIDRv6:()=>Qs,ZodCUID:()=>Gs,ZodCUID2:()=>Hs,ZodCatch:()=>nd,ZodCustom:()=>Vn,ZodCustomStringFormat:()=>Tl,ZodDate:()=>Ln,ZodDefault:()=>Xl,ZodDiscriminatedUnion:()=>Vl,ZodE164:()=>ru,ZodEmail:()=>Fs,ZodEmoji:()=>Vs,ZodEnum:()=>_r,ZodError:()=>Bg,ZodFile:()=>Jl,ZodGUID:()=>An,ZodIPv4:()=>Ks,ZodIPv6:()=>Xs,ZodISODate:()=>Rn,ZodISODateTime:()=>On,ZodISODuration:()=>Tn,ZodISOTime:()=>Nn,ZodIntersection:()=>ql,ZodIssueCode:()=>Wh,ZodJWT:()=>nu,ZodKSUID:()=>Js,ZodLazy:()=>cd,ZodLiteral:()=>Bl,ZodMap:()=>Hl,ZodNaN:()=>od,ZodNanoID:()=>qs,ZodNever:()=>Ll,ZodNonOptional:()=>lu,ZodNull:()=>Dl,ZodNullable:()=>Kl,ZodNumber:()=>br,ZodNumberFormat:()=>It,ZodObject:()=>Fn,ZodOptional:()=>cu,ZodPipe:()=>du,ZodPrefault:()=>Ql,ZodPromise:()=>dd,ZodReadonly:()=>ad,ZodRealError:()=>wt,ZodRecord:()=>au,ZodSet:()=>Wl,ZodString:()=>$r,ZodStringFormat:()=>Q,ZodSuccess:()=>rd,ZodSymbol:()=>Al,ZodTemplateLiteral:()=>ud,ZodTransform:()=>su,ZodTuple:()=>Gl,ZodType:()=>Z,ZodULID:()=>Ws,ZodURL:()=>Ms,ZodUUID:()=>He,ZodUndefined:()=>Ul,ZodUnion:()=>ou,ZodUnknown:()=>Zl,ZodVoid:()=>Fl,ZodXID:()=>Bs,_ZodString:()=>Ls,_default:()=>Yl,any:()=>Ph,array:()=>M,base64:()=>fh,base64url:()=>gh,bigint:()=>zh,boolean:()=>le,catch:()=>id,check:()=>pd,cidrv4:()=>ph,cidrv6:()=>mh,clone:()=>ke,coerce:()=>mu,config:()=>ce,core:()=>Ge,cuid:()=>oh,cuid2:()=>ah,custom:()=>pu,date:()=>Eh,discriminatedUnion:()=>Mn,e164:()=>hh,email:()=>Kg,emoji:()=>nh,endsWith:()=>lr,enum:()=>xe,file:()=>Ch,flattenError:()=>Jt,float32:()=>$h,float64:()=>bh,formatError:()=>Kt,function:()=>js,getErrorMap:()=>Jh,globalRegistry:()=>Te,gt:()=>Ve,gte:()=>ze,guid:()=>Xg,includes:()=>ur,instanceof:()=>qh,int:()=>Zs,int32:()=>xh,int64:()=>Sh,intersection:()=>zr,ipv4:()=>lh,ipv6:()=>dh,iso:()=>kt,json:()=>Hh,jwt:()=>vh,keyof:()=>Oh,ksuid:()=>ch,lazy:()=>ld,length:()=>St,literal:()=>N,locales:()=>rr,looseObject:()=>_e,lowercase:()=>ar,lt:()=>Me,lte:()=>Ee,map:()=>Ah,maxLength:()=>zt,maxSize:()=>yt,mime:()=>dr,minLength:()=>Qe,minSize:()=>pt,multipleOf:()=>dt,nan:()=>Fh,nanoid:()=>ih,nativeEnum:()=>Dh,negative:()=>$s,never:()=>Zn,nonnegative:()=>xs,nonoptional:()=>td,nonpositive:()=>bs,normalize:()=>pr,null:()=>Cn,nullable:()=>Un,nullish:()=>Zh,number:()=>G,object:()=>j,optional:()=>ee,overwrite:()=>qe,parse:()=>As,parseAsync:()=>Us,partialRecord:()=>Th,pipe:()=>Dn,positive:()=>_s,prefault:()=>ed,preprocess:()=>qn,prettifyError:()=>Li,promise:()=>Vh,property:()=>ys,readonly:()=>sd,record:()=>K,refine:()=>md,regex:()=>or,regexes:()=>ut,registry:()=>un,safeParse:()=>Ds,safeParseAsync:()=>Cs,set:()=>Uh,setErrorMap:()=>Bh,size:()=>ir,startsWith:()=>cr,strictObject:()=>Rh,string:()=>f,stringFormat:()=>_h,stringbool:()=>Gh,success:()=>Lh,superRefine:()=>fd,symbol:()=>wh,templateLiteral:()=>Mh,toJSONSchema:()=>Es,toLowerCase:()=>fr,toUpperCase:()=>gr,transform:()=>uu,treeifyError:()=>Zi,trim:()=>mr,tuple:()=>Nh,uint32:()=>yh,uint64:()=>kh,ulid:()=>sh,undefined:()=>Ih,union:()=>J,unknown:()=>ne,uppercase:()=>sr,url:()=>rh,uuid:()=>Yg,uuidv4:()=>Qg,uuidv6:()=>eh,uuidv7:()=>th,void:()=>jh,xid:()=>uh});u();var Ge={};it(Ge,{$ZodAny:()=>ga,$ZodArray:()=>Qt,$ZodAsyncError:()=>Ne,$ZodBase64:()=>oa,$ZodBase64URL:()=>aa,$ZodBigInt:()=>on,$ZodBigIntFormat:()=>da,$ZodBoolean:()=>Yt,$ZodCIDRv4:()=>ra,$ZodCIDRv6:()=>na,$ZodCUID:()=>Go,$ZodCUID2:()=>Ho,$ZodCatch:()=>Ta,$ZodCheck:()=>se,$ZodCheckBigIntFormat:()=>xo,$ZodCheckEndsWith:()=>No,$ZodCheckGreaterThan:()=>en,$ZodCheckIncludes:()=>Oo,$ZodCheckLengthEquals:()=>Io,$ZodCheckLessThan:()=>Qr,$ZodCheckLowerCase:()=>jo,$ZodCheckMaxLength:()=>ko,$ZodCheckMaxSize:()=>yo,$ZodCheckMimeType:()=>Ao,$ZodCheckMinLength:()=>wo,$ZodCheckMinSize:()=>zo,$ZodCheckMultipleOf:()=>$o,$ZodCheckNumberFormat:()=>bo,$ZodCheckOverwrite:()=>Uo,$ZodCheckProperty:()=>To,$ZodCheckRegex:()=>Po,$ZodCheckSizeEquals:()=>So,$ZodCheckStartsWith:()=>Ro,$ZodCheckStringFormat:()=>_t,$ZodCheckUpperCase:()=>Eo,$ZodCustom:()=>La,$ZodCustomStringFormat:()=>ca,$ZodDate:()=>_a,$ZodDefault:()=>Ea,$ZodDiscriminatedUnion:()=>ba,$ZodE164:()=>sa,$ZodEmail:()=>Fo,$ZodEmoji:()=>Vo,$ZodEnum:()=>ka,$ZodError:()=>Bt,$ZodFile:()=>Ia,$ZodFunction:()=>En,$ZodGUID:()=>Zo,$ZodIPv4:()=>ea,$ZodIPv6:()=>ta,$ZodISODate:()=>Xo,$ZodISODateTime:()=>Ko,$ZodISODuration:()=>Qo,$ZodISOTime:()=>Yo,$ZodIntersection:()=>xa,$ZodJWT:()=>ua,$ZodKSUID:()=>Jo,$ZodLazy:()=>Za,$ZodLiteral:()=>wa,$ZodMap:()=>za,$ZodNaN:()=>Aa,$ZodNanoID:()=>qo,$ZodNever:()=>ha,$ZodNonOptional:()=>Ra,$ZodNull:()=>fa,$ZodNullable:()=>ja,$ZodNumber:()=>nn,$ZodNumberFormat:()=>la,$ZodObject:()=>$a,$ZodOptional:()=>Pa,$ZodPipe:()=>tr,$ZodPrefault:()=>Oa,$ZodPromise:()=>Ca,$ZodReadonly:()=>Ua,$ZodRealError:()=>vt,$ZodRecord:()=>ya,$ZodRegistry:()=>bt,$ZodSet:()=>Sa,$ZodString:()=>ct,$ZodStringFormat:()=>Y,$ZodSuccess:()=>Na,$ZodSymbol:()=>pa,$ZodTemplateLiteral:()=>Da,$ZodTransform:()=>er,$ZodTuple:()=>lt,$ZodType:()=>C,$ZodULID:()=>Wo,$ZodURL:()=>Mo,$ZodUUID:()=>Lo,$ZodUndefined:()=>ma,$ZodUnion:()=>an,$ZodUnknown:()=>$t,$ZodVoid:()=>va,$ZodXID:()=>Bo,$brand:()=>Ii,$constructor:()=>d,$input:()=>Ma,$output:()=>Fa,Doc:()=>Xt,JSONSchema:()=>Ol,JSONSchemaGenerator:()=>vr,NEVER:()=>wi,TimePrecision:()=>Ga,_any:()=>ps,_array:()=>hr,_base64:()=>wn,_base64url:()=>In,_bigint:()=>os,_boolean:()=>ns,_catch:()=>Fg,_cidrv4:()=>Sn,_cidrv6:()=>kn,_coercedBigint:()=>as,_coercedBoolean:()=>is,_coercedDate:()=>hs,_coercedNumber:()=>Xa,_coercedString:()=>qa,_cuid:()=>vn,_cuid2:()=>_n,_custom:()=>ks,_date:()=>gs,_default:()=>Cg,_discriminatedUnion:()=>Ig,_e164:()=>Pn,_email:()=>cn,_emoji:()=>gn,_endsWith:()=>lr,_enum:()=>Rg,_file:()=>Ss,_float32:()=>Qa,_float64:()=>es,_gt:()=>Ve,_gte:()=>ze,_guid:()=>nr,_includes:()=>ur,_int:()=>Ya,_int32:()=>ts,_int64:()=>ss,_intersection:()=>Pg,_ipv4:()=>yn,_ipv6:()=>zn,_isoDate:()=>Wa,_isoDateTime:()=>Ha,_isoDuration:()=>Ja,_isoTime:()=>Ba,_jwt:()=>jn,_ksuid:()=>xn,_lazy:()=>Gg,_length:()=>St,_literal:()=>Tg,_lowercase:()=>ar,_lt:()=>Me,_lte:()=>Ee,_map:()=>Eg,_max:()=>Ee,_maxLength:()=>zt,_maxSize:()=>yt,_mime:()=>dr,_min:()=>ze,_minLength:()=>Qe,_minSize:()=>pt,_multipleOf:()=>dt,_nan:()=>vs,_nanoid:()=>hn,_nativeEnum:()=>Ng,_negative:()=>$s,_never:()=>ms,_nonnegative:()=>xs,_nonoptional:()=>Zg,_nonpositive:()=>bs,_normalize:()=>pr,_null:()=>ds,_nullable:()=>Dg,_number:()=>Ka,_optional:()=>Ug,_overwrite:()=>qe,_parse:()=>Hr,_parseAsync:()=>Br,_pipe:()=>Mg,_positive:()=>_s,_promise:()=>Hg,_property:()=>ys,_readonly:()=>Vg,_record:()=>jg,_refine:()=>ws,_regex:()=>or,_safeParse:()=>Kr,_safeParseAsync:()=>Xr,_set:()=>Og,_size:()=>ir,_startsWith:()=>cr,_string:()=>Va,_stringFormat:()=>Ps,_stringbool:()=>Is,_success:()=>Lg,_symbol:()=>cs,_templateLiteral:()=>qg,_toLowerCase:()=>fr,_toUpperCase:()=>gr,_transform:()=>Ag,_trim:()=>mr,_tuple:()=>zs,_uint32:()=>rs,_uint64:()=>us,_ulid:()=>$n,_undefined:()=>ls,_union:()=>wg,_unknown:()=>xt,_uppercase:()=>sr,_url:()=>fn,_uuid:()=>ln,_uuidv4:()=>dn,_uuidv6:()=>pn,_uuidv7:()=>mn,_void:()=>fs,_xid:()=>bn,clone:()=>ke,config:()=>ce,flattenError:()=>Jt,formatError:()=>Kt,function:()=>js,globalConfig:()=>Lt,globalRegistry:()=>Te,isValidBase64:()=>ia,isValidBase64URL:()=>Mc,isValidJWT:()=>Vc,locales:()=>rr,parse:()=>Wr,parseAsync:()=>Jr,prettifyError:()=>Li,regexes:()=>ut,registry:()=>un,safeParse:()=>Fi,safeParseAsync:()=>Mi,toDotPath:()=>Sc,toJSONSchema:()=>Es,treeifyError:()=>Zi,util:()=>w,version:()=>Do});u();u();var wi=Object.freeze({status:"aborted"});function d(e,r,n){function o(s,c){var p;Object.defineProperty(s,"_zod",{value:s._zod??{},enumerable:!1}),(p=s._zod).traits??(p.traits=new Set),s._zod.traits.add(e),r(s,c);for(let g in a.prototype)g in s||Object.defineProperty(s,g,{value:a.prototype[g].bind(s)});s._zod.constr=a,s._zod.def=c}let t=n?.Parent??Object;class i extends t{}Object.defineProperty(i,"name",{value:e});function a(s){var c;let p=n?.Parent?new i:this;o(p,s),(c=p._zod).deferred??(c.deferred=[]);for(let g of p._zod.deferred)g();return p}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>n?.Parent&&s instanceof n.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var Ii=Symbol("zod_brand"),Ne=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Lt={};function ce(e){return e&&Object.assign(Lt,e),Lt}u();u();var w={};it(w,{BIGINT_FORMAT_RANGES:()=>Di,Class:()=>ji,NUMBER_FORMAT_RANGES:()=>Ui,aborted:()=>at,allowsEval:()=>Ni,assert:()=>ff,assertEqual:()=>lf,assertIs:()=>pf,assertNever:()=>mf,assertNotEqual:()=>df,assignProp:()=>Ri,cached:()=>Vt,captureStackTrace:()=>Gr,cleanEnum:()=>If,cleanRegex:()=>qt,clone:()=>ke,createTransparentProxy:()=>bf,defineLazy:()=>H,esc:()=>ot,escapeRegex:()=>Fe,extend:()=>zf,finalizeIssue:()=>we,floatSafeRemainder:()=>Oi,getElementAtPath:()=>gf,getEnumValues:()=>Mt,getLengthableOrigin:()=>Wt,getParsedType:()=>$f,getSizableOrigin:()=>Ht,isObject:()=>gt,isPlainObject:()=>ht,issue:()=>Ci,joinValues:()=>v,jsonStringifyReplacer:()=>Ei,merge:()=>Sf,normalizeParams:()=>S,nullish:()=>Ye,numKeys:()=>_f,omit:()=>yf,optionalKeys:()=>Ai,partial:()=>kf,pick:()=>xf,prefixIssues:()=>ye,primitiveTypes:()=>Ti,promiseAllObject:()=>hf,propertyKeyTypes:()=>Gt,randomString:()=>vf,required:()=>wf,stringifyPrimitive:()=>k,unwrapMessage:()=>Ft});u();function lf(e){return e}function df(e){return e}function pf(e){}function mf(e){throw new Error}function ff(e){}function Mt(e){let r=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,t])=>r.indexOf(+o)===-1).map(([o,t])=>t)}function v(e,r="|"){return e.map(n=>k(n)).join(r)}function Ei(e,r){return typeof r=="bigint"?r.toString():r}function Vt(e){return{get value(){{let n=e();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}function Ye(e){return e==null}function qt(e){let r=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(r,n)}function Oi(e,r){let n=(e.toString().split(".")[1]||"").length,o=(r.toString().split(".")[1]||"").length,t=n>o?n:o,i=Number.parseInt(e.toFixed(t).replace(".","")),a=Number.parseInt(r.toFixed(t).replace(".",""));return i%a/10**t}function H(e,r,n){Object.defineProperty(e,r,{get(){{let t=n();return e[r]=t,t}throw new Error("cached value already set")},set(t){Object.defineProperty(e,r,{value:t})},configurable:!0})}function Ri(e,r,n){Object.defineProperty(e,r,{value:n,writable:!0,enumerable:!0,configurable:!0})}function gf(e,r){return r?r.reduce((n,o)=>n?.[o],e):e}function hf(e){let r=Object.keys(e),n=r.map(o=>e[o]);return Promise.all(n).then(o=>{let t={};for(let i=0;i<r.length;i++)t[r[i]]=o[i];return t})}function vf(e=10){let r="abcdefghijklmnopqrstuvwxyz",n="";for(let o=0;o<e;o++)n+=r[Math.floor(Math.random()*r.length)];return n}function ot(e){return JSON.stringify(e)}var Gr=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function gt(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Ni=Vt(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function ht(e){if(gt(e)===!1)return!1;let r=e.constructor;if(r===void 0)return!0;let n=r.prototype;return!(gt(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function _f(e){let r=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&r++;return r}var $f=e=>{let r=typeof e;switch(r){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${r}`)}},Gt=new Set(["string","number","symbol"]),Ti=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Fe(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ke(e,r,n){let o=new e._zod.constr(r??e._zod.def);return(!r||n?.parent)&&(o._zod.parent=e),o}function S(e){let r=e;if(!r)return{};if(typeof r=="string")return{error:()=>r};if(r?.message!==void 0){if(r?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");r.error=r.message}return delete r.message,typeof r.error=="string"?{...r,error:()=>r.error}:r}function bf(e){let r;return new Proxy({},{get(n,o,t){return r??(r=e()),Reflect.get(r,o,t)},set(n,o,t,i){return r??(r=e()),Reflect.set(r,o,t,i)},has(n,o){return r??(r=e()),Reflect.has(r,o)},deleteProperty(n,o){return r??(r=e()),Reflect.deleteProperty(r,o)},ownKeys(n){return r??(r=e()),Reflect.ownKeys(r)},getOwnPropertyDescriptor(n,o){return r??(r=e()),Reflect.getOwnPropertyDescriptor(r,o)},defineProperty(n,o,t){return r??(r=e()),Reflect.defineProperty(r,o,t)}})}function k(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Ai(e){return Object.keys(e).filter(r=>e[r]._zod.optin==="optional"&&e[r]._zod.optout==="optional")}var Ui={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Di={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function xf(e,r){let n={},o=e._zod.def;for(let t in r){if(!(t in o.shape))throw new Error(`Unrecognized key: "${t}"`);r[t]&&(n[t]=o.shape[t])}return ke(e,{...e._zod.def,shape:n,checks:[]})}function yf(e,r){let n={...e._zod.def.shape},o=e._zod.def;for(let t in r){if(!(t in o.shape))throw new Error(`Unrecognized key: "${t}"`);r[t]&&delete n[t]}return ke(e,{...e._zod.def,shape:n,checks:[]})}function zf(e,r){if(!ht(r))throw new Error("Invalid input to extend: expected a plain object");let n={...e._zod.def,get shape(){let o={...e._zod.def.shape,...r};return Ri(this,"shape",o),o},checks:[]};return ke(e,n)}function Sf(e,r){return ke(e,{...e._zod.def,get shape(){let n={...e._zod.def.shape,...r._zod.def.shape};return Ri(this,"shape",n),n},catchall:r._zod.def.catchall,checks:[]})}function kf(e,r,n){let o=r._zod.def.shape,t={...o};if(n)for(let i in n){if(!(i in o))throw new Error(`Unrecognized key: "${i}"`);n[i]&&(t[i]=e?new e({type:"optional",innerType:o[i]}):o[i])}else for(let i in o)t[i]=e?new e({type:"optional",innerType:o[i]}):o[i];return ke(r,{...r._zod.def,shape:t,checks:[]})}function wf(e,r,n){let o=r._zod.def.shape,t={...o};if(n)for(let i in n){if(!(i in t))throw new Error(`Unrecognized key: "${i}"`);n[i]&&(t[i]=new e({type:"nonoptional",innerType:o[i]}))}else for(let i in o)t[i]=new e({type:"nonoptional",innerType:o[i]});return ke(r,{...r._zod.def,shape:t,checks:[]})}function at(e,r=0){for(let n=r;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function ye(e,r){return r.map(n=>{var o;return(o=n).path??(o.path=[]),n.path.unshift(e),n})}function Ft(e){return typeof e=="string"?e:e?.message}function we(e,r,n){let o={...e,path:e.path??[]};if(!e.message){let t=Ft(e.inst?._zod.def?.error?.(e))??Ft(r?.error?.(e))??Ft(n.customError?.(e))??Ft(n.localeError?.(e))??"Invalid input";o.message=t}return delete o.inst,delete o.continue,r?.reportInput||delete o.input,o}function Ht(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Wt(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Ci(...e){let[r,n,o]=e;return typeof r=="string"?{message:r,code:"custom",input:n,inst:o}:{...r}}function If(e){return Object.entries(e).filter(([r,n])=>Number.isNaN(Number.parseInt(r,10))).map(r=>r[1])}var ji=class{constructor(...r){}};var zc=(e,r)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:r,enumerable:!1}),Object.defineProperty(e,"message",{get(){return JSON.stringify(r,Ei,2)},enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Bt=d("$ZodError",zc),vt=d("$ZodError",zc,{Parent:Error});function Jt(e,r=n=>n.message){let n={},o=[];for(let t of e.issues)t.path.length>0?(n[t.path[0]]=n[t.path[0]]||[],n[t.path[0]].push(r(t))):o.push(r(t));return{formErrors:o,fieldErrors:n}}function Kt(e,r){let n=r||function(i){return i.message},o={_errors:[]},t=i=>{for(let a of i.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(s=>t({issues:s}));else if(a.code==="invalid_key")t({issues:a.issues});else if(a.code==="invalid_element")t({issues:a.issues});else if(a.path.length===0)o._errors.push(n(a));else{let s=o,c=0;for(;c<a.path.length;){let p=a.path[c];c===a.path.length-1?(s[p]=s[p]||{_errors:[]},s[p]._errors.push(n(a))):s[p]=s[p]||{_errors:[]},s=s[p],c++}}};return t(e),o}function Zi(e,r){let n=r||function(i){return i.message},o={errors:[]},t=(i,a=[])=>{var s,c;for(let p of i.issues)if(p.code==="invalid_union"&&p.errors.length)p.errors.map(g=>t({issues:g},p.path));else if(p.code==="invalid_key")t({issues:p.issues},p.path);else if(p.code==="invalid_element")t({issues:p.issues},p.path);else{let g=[...a,...p.path];if(g.length===0){o.errors.push(n(p));continue}let m=o,x=0;for(;x<g.length;){let y=g[x],l=x===g.length-1;typeof y=="string"?(m.properties??(m.properties={}),(s=m.properties)[y]??(s[y]={errors:[]}),m=m.properties[y]):(m.items??(m.items=[]),(c=m.items)[y]??(c[y]={errors:[]}),m=m.items[y]),l&&m.errors.push(n(p)),x++}}};return t(e),o}function Sc(e){let r=[];for(let n of e)typeof n=="number"?r.push(`[${n}]`):typeof n=="symbol"?r.push(`[${JSON.stringify(String(n))}]`):/[^\w$]/.test(n)?r.push(`[${JSON.stringify(n)}]`):(r.length&&r.push("."),r.push(n));return r.join("")}function Li(e){let r=[],n=[...e.issues].sort((o,t)=>o.path.length-t.path.length);for(let o of n)r.push(`\u2716 ${o.message}`),o.path?.length&&r.push(` \u2192 at ${Sc(o.path)}`);return r.join(`
|
|
3
|
+
import{Q as bc,R as xc,S as yc,T as ki}from"./chunk-6SPPO7RK.js";import{b as u}from"./chunk-GZPNIYVZ.js";import{a as ge,d as L,e as it,f as qr}from"./chunk-OWGSC52X.js";var Gd=L((ew,qd)=>{u();qd.exports=Vd;Vd.sync=G_;var Fd=ge("fs");function q_(e,r){var n=r.pathExt!==void 0?r.pathExt:process.env.PATHEXT;if(!n||(n=n.split(";"),n.indexOf("")!==-1))return!0;for(var o=0;o<n.length;o++){var t=n[o].toLowerCase();if(t&&e.substr(-t.length).toLowerCase()===t)return!0}return!1}function Md(e,r,n){return!e.isSymbolicLink()&&!e.isFile()?!1:q_(r,n)}function Vd(e,r,n){Fd.stat(e,function(o,t){n(o,o?!1:Md(t,e,r))})}function G_(e,r){return Md(Fd.statSync(e),e,r)}});var Kd=L((rw,Jd)=>{u();Jd.exports=Wd;Wd.sync=H_;var Hd=ge("fs");function Wd(e,r,n){Hd.stat(e,function(o,t){n(o,o?!1:Bd(t,r))})}function H_(e,r){return Bd(Hd.statSync(e),r)}function Bd(e,r){return e.isFile()&&W_(e,r)}function W_(e,r){var n=e.mode,o=e.uid,t=e.gid,i=r.uid!==void 0?r.uid:process.getuid&&process.getuid(),a=r.gid!==void 0?r.gid:process.getgid&&process.getgid(),s=parseInt("100",8),c=parseInt("010",8),p=parseInt("001",8),g=s|c,m=n&p||n&c&&t===a||n&s&&o===i||n&g&&i===0;return m}});var Yd=L((ow,Xd)=>{u();var iw=ge("fs"),Jn;process.platform==="win32"||globalThis.TESTING_WINDOWS?Jn=Gd():Jn=Kd();Xd.exports=ku;ku.sync=B_;function ku(e,r,n){if(typeof r=="function"&&(n=r,r={}),!n){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(o,t){ku(e,r||{},function(i,a){i?t(i):o(a)})})}Jn(e,r||{},function(o,t){o&&(o.code==="EACCES"||r&&r.ignoreErrors)&&(o=null,t=!1),n(o,t)})}function B_(e,r){try{return Jn.sync(e,r||{})}catch(n){if(r&&r.ignoreErrors||n.code==="EACCES")return!1;throw n}}});var op=L((sw,ip)=>{u();var Et=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Qd=ge("path"),J_=Et?";":":",ep=Yd(),tp=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),rp=(e,r)=>{let n=r.colon||J_,o=e.match(/\//)||Et&&e.match(/\\/)?[""]:[...Et?[process.cwd()]:[],...(r.path||process.env.PATH||"").split(n)],t=Et?r.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",i=Et?t.split(n):[""];return Et&&e.indexOf(".")!==-1&&i[0]!==""&&i.unshift(""),{pathEnv:o,pathExt:i,pathExtExe:t}},np=(e,r,n)=>{typeof r=="function"&&(n=r,r={}),r||(r={});let{pathEnv:o,pathExt:t,pathExtExe:i}=rp(e,r),a=[],s=p=>new Promise((g,m)=>{if(p===o.length)return r.all&&a.length?g(a):m(tp(e));let x=o[p],y=/^".*"$/.test(x)?x.slice(1,-1):x,l=Qd.join(y,e),_=!y&&/^\.[\\\/]/.test(e)?e.slice(0,2)+l:l;g(c(_,p,0))}),c=(p,g,m)=>new Promise((x,y)=>{if(m===t.length)return x(s(g+1));let l=t[m];ep(p+l,{pathExt:i},(_,z)=>{if(!_&&z)if(r.all)a.push(p+l);else return x(p+l);return x(c(p,g,m+1))})});return n?s(0).then(p=>n(null,p),n):s(0)},K_=(e,r)=>{r=r||{};let{pathEnv:n,pathExt:o,pathExtExe:t}=rp(e,r),i=[];for(let a=0;a<n.length;a++){let s=n[a],c=/^".*"$/.test(s)?s.slice(1,-1):s,p=Qd.join(c,e),g=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+p:p;for(let m=0;m<o.length;m++){let x=g+o[m];try{if(ep.sync(x,{pathExt:t}))if(r.all)i.push(x);else return x}catch{}}}if(r.all&&i.length)return i;if(r.nothrow)return null;throw tp(e)};ip.exports=np;np.sync=K_});var sp=L((cw,wu)=>{"use strict";u();var ap=(e={})=>{let r=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(r).reverse().find(o=>o.toUpperCase()==="PATH")||"Path"};wu.exports=ap;wu.exports.default=ap});var dp=L((dw,lp)=>{"use strict";u();var up=ge("path"),X_=op(),Y_=sp();function cp(e,r){let n=e.options.env||process.env,o=process.cwd(),t=e.options.cwd!=null,i=t&&process.chdir!==void 0&&!process.chdir.disabled;if(i)try{process.chdir(e.options.cwd)}catch{}let a;try{a=X_.sync(e.command,{path:n[Y_({env:n})],pathExt:r?up.delimiter:void 0})}catch{}finally{i&&process.chdir(o)}return a&&(a=up.resolve(t?e.options.cwd:"",a)),a}function Q_(e){return cp(e)||cp(e,!0)}lp.exports=Q_});var pp=L((mw,Pu)=>{"use strict";u();var Iu=/([()\][%!^"`<>&|;, *?])/g;function e$(e){return e=e.replace(Iu,"^$1"),e}function t$(e,r){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),e=e.replace(/(?=(\\+?)?)\1$/,"$1$1"),e=`"${e}"`,e=e.replace(Iu,"^$1"),r&&(e=e.replace(Iu,"^$1")),e}Pu.exports.command=e$;Pu.exports.argument=t$});var fp=L((gw,mp)=>{"use strict";u();mp.exports=/^#!(.*)/});var hp=L((vw,gp)=>{"use strict";u();var r$=fp();gp.exports=(e="")=>{let r=e.match(r$);if(!r)return null;let[n,o]=r[0].replace(/#! ?/,"").split(" "),t=n.split("/").pop();return t==="env"?o:o?`${t} ${o}`:t}});var _p=L(($w,vp)=>{"use strict";u();var ju=ge("fs"),n$=hp();function i$(e){let n=Buffer.alloc(150),o;try{o=ju.openSync(e,"r"),ju.readSync(o,n,0,150,0),ju.closeSync(o)}catch{}return n$(n.toString())}vp.exports=i$});var yp=L((xw,xp)=>{"use strict";u();var o$=ge("path"),$p=dp(),bp=pp(),a$=_p(),s$=process.platform==="win32",u$=/\.(?:com|exe)$/i,c$=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function l$(e){e.file=$p(e);let r=e.file&&a$(e.file);return r?(e.args.unshift(e.file),e.command=r,$p(e)):e.file}function d$(e){if(!s$)return e;let r=l$(e),n=!u$.test(r);if(e.options.forceShell||n){let o=c$.test(r);e.command=o$.normalize(e.command),e.command=bp.command(e.command),e.args=e.args.map(i=>bp.argument(i,o));let t=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${t}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function p$(e,r,n){r&&!Array.isArray(r)&&(n=r,r=null),r=r?r.slice(0):[],n=Object.assign({},n);let o={command:e,args:r,options:n,file:void 0,original:{command:e,args:r}};return n.shell?o:d$(o)}xp.exports=p$});var kp=L((zw,Sp)=>{"use strict";u();var Eu=process.platform==="win32";function Ou(e,r){return Object.assign(new Error(`${r} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${r} ${e.command}`,path:e.command,spawnargs:e.args})}function m$(e,r){if(!Eu)return;let n=e.emit;e.emit=function(o,t){if(o==="exit"){let i=zp(t,r);if(i)return n.call(e,"error",i)}return n.apply(e,arguments)}}function zp(e,r){return Eu&&e===1&&!r.file?Ou(r.original,"spawn"):null}function f$(e,r){return Eu&&e===1&&!r.file?Ou(r.original,"spawnSync"):null}Sp.exports={hookChildProcess:m$,verifyENOENT:zp,verifyENOENTSync:f$,notFoundError:Ou}});var Pp=L((kw,Ot)=>{"use strict";u();var wp=ge("child_process"),Ru=yp(),Nu=kp();function Ip(e,r,n){let o=Ru(e,r,n),t=wp.spawn(o.command,o.args,o.options);return Nu.hookChildProcess(t,o),t}function g$(e,r,n){let o=Ru(e,r,n),t=wp.spawnSync(o.command,o.args,o.options);return t.error=t.error||Nu.verifyENOENTSync(t.status,o),t}Ot.exports=Ip;Ot.exports.spawn=Ip;Ot.exports.sync=g$;Ot.exports._parse=Ru;Ot.exports._enoent=Nu});var Lu=L(Ae=>{"use strict";u();Object.defineProperty(Ae,"__esModule",{value:!0});Ae.normalizePath=Ae.isRootDirectory=Ae.convertSlashes=Ae.cleanPath=void 0;var Zu=ge("path");function Cp(e){let r=(0,Zu.normalize)(e);return r.length>1&&r[r.length-1]===Zu.sep&&(r=r.substring(0,r.length-1)),r}Ae.cleanPath=Cp;var w$=/[\\/]/g;function Zp(e,r){return e.replace(w$,r)}Ae.convertSlashes=Zp;var I$=/^[a-z]:[\\/]$/i;function P$(e){return e==="/"||I$.test(e)}Ae.isRootDirectory=P$;function j$(e,r){let{resolvePaths:n,normalizePath:o,pathSeparator:t}=r,i=process.platform==="win32"&&e.includes("/")||e.startsWith(".");if(n&&(e=(0,Zu.resolve)(e)),(o||i)&&(e=Cp(e)),e===".")return"";let a=e[e.length-1]!==t;return Zp(a?e+t:e,t)}Ae.normalizePath=j$});var Fp=L(et=>{"use strict";u();Object.defineProperty(et,"__esModule",{value:!0});et.build=et.joinDirectoryPath=et.joinPathWithBasePath=void 0;var E$=ge("path"),O$=Lu();function Lp(e,r){return r+e}et.joinPathWithBasePath=Lp;function R$(e,r){return function(n,o){return o.startsWith(e)?o.replace(e,"")+n:(0,O$.convertSlashes)((0,E$.relative)(e,o),r.pathSeparator)+r.pathSeparator+n}}function N$(e){return e}function T$(e,r,n){return r+e+n}et.joinDirectoryPath=T$;function A$(e,r){let{relativePaths:n,includeBasePath:o}=r;return n&&e?R$(e,r):o?Lp:N$}et.build=A$});var Mp=L(Yn=>{"use strict";u();Object.defineProperty(Yn,"__esModule",{value:!0});Yn.build=void 0;function U$(e){return function(r,n){n.push(r.substring(e.length)||".")}}function D$(e){return function(r,n,o){let t=r.substring(e.length)||".";o.every(i=>i(t,!0))&&n.push(t)}}var C$=(e,r)=>{r.push(e||".")},Z$=(e,r,n)=>{let o=e||".";n.every(t=>t(o,!0))&&r.push(o)},L$=()=>{};function F$(e,r){let{includeDirs:n,filters:o,relativePaths:t}=r;return n?t?o&&o.length?D$(e):U$(e):o&&o.length?Z$:C$:L$}Yn.build=F$});var Vp=L(Qn=>{"use strict";u();Object.defineProperty(Qn,"__esModule",{value:!0});Qn.build=void 0;var M$=(e,r,n,o)=>{o.every(t=>t(e,!1))&&n.files++},V$=(e,r,n,o)=>{o.every(t=>t(e,!1))&&r.push(e)},q$=(e,r,n,o)=>{n.files++},G$=(e,r)=>{r.push(e)},H$=()=>{};function W$(e){let{excludeFiles:r,filters:n,onlyCounts:o}=e;return r?H$:n&&n.length?o?M$:V$:o?q$:G$}Qn.build=W$});var qp=L(ei=>{"use strict";u();Object.defineProperty(ei,"__esModule",{value:!0});ei.build=void 0;var B$=e=>e,J$=()=>[""].slice(0,0);function K$(e){return e.group?J$:B$}ei.build=K$});var Gp=L(ti=>{"use strict";u();Object.defineProperty(ti,"__esModule",{value:!0});ti.build=void 0;var X$=(e,r,n)=>{e.push({directory:r,files:n,dir:r})},Y$=()=>{};function Q$(e){return e.group?X$:Y$}ti.build=Q$});var Bp=L(Nt=>{"use strict";u();var eb=Nt&&Nt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Nt,"__esModule",{value:!0});Nt.build=void 0;var ri=eb(ge("fs")),Hp=ge("path"),tb=function(e,r,n){let{queue:o,options:{suppressErrors:t}}=r;o.enqueue(),ri.default.realpath(e,(i,a)=>{if(i)return o.dequeue(t?null:i,r);ri.default.stat(a,(s,c)=>{if(s)return o.dequeue(t?null:s,r);if(c.isDirectory()&&Wp(e,a,r))return o.dequeue(null,r);n(c,a),o.dequeue(null,r)})})},rb=function(e,r,n){let{queue:o,options:{suppressErrors:t}}=r;o.enqueue();try{let i=ri.default.realpathSync(e),a=ri.default.statSync(i);if(a.isDirectory()&&Wp(e,i,r))return;n(a,i)}catch(i){if(!t)throw i}};function nb(e,r){return!e.resolveSymlinks||e.excludeSymlinks?null:r?rb:tb}Nt.build=nb;function Wp(e,r,n){if(n.options.useRealPaths)return ib(r,n);let o=(0,Hp.dirname)(e),t=1;for(;o!==n.root&&t<2;){let i=n.symlinks.get(o);!!i&&(i===r||i.startsWith(r)||r.startsWith(i))?t++:o=(0,Hp.dirname)(o)}return n.symlinks.set(e,r),t>1}function ib(e,r){return r.visited.includes(e+r.options.pathSeparator)}});var Jp=L(ii=>{"use strict";u();Object.defineProperty(ii,"__esModule",{value:!0});ii.build=void 0;var ob=e=>e.counts,ab=e=>e.groups,sb=e=>e.paths,ub=e=>e.paths.slice(0,e.options.maxFiles),cb=(e,r,n)=>(ni(r,n,e.counts,e.options.suppressErrors),null),lb=(e,r,n)=>(ni(r,n,e.paths,e.options.suppressErrors),null),db=(e,r,n)=>(ni(r,n,e.paths.slice(0,e.options.maxFiles),e.options.suppressErrors),null),pb=(e,r,n)=>(ni(r,n,e.groups,e.options.suppressErrors),null);function ni(e,r,n,o){r(e&&!o?e:null,n)}function mb(e,r){let{onlyCounts:n,group:o,maxFiles:t}=e;return n?r?ob:cb:o?r?ab:pb:t?r?ub:db:r?sb:lb}ii.build=mb});var Yp=L(Tt=>{"use strict";u();var fb=Tt&&Tt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Tt,"__esModule",{value:!0});Tt.build=void 0;var Kp=fb(ge("fs")),Xp={withFileTypes:!0},gb=(e,r,n,o,t)=>{if(e.queue.enqueue(),o<0)return e.queue.dequeue(null,e);e.visited.push(r),e.counts.directories++,Kp.default.readdir(r||".",Xp,(i,a=[])=>{t(a,n,o),e.queue.dequeue(e.options.suppressErrors?null:i,e)})},hb=(e,r,n,o,t)=>{if(o<0)return;e.visited.push(r),e.counts.directories++;let i=[];try{i=Kp.default.readdirSync(r||".",Xp)}catch(a){if(!e.options.suppressErrors)throw a}t(i,n,o)};function vb(e){return e?hb:gb}Tt.build=vb});var Qp=L(oi=>{"use strict";u();Object.defineProperty(oi,"__esModule",{value:!0});oi.Queue=void 0;var Fu=class{onQueueEmpty;count=0;constructor(r){this.onQueueEmpty=r}enqueue(){return this.count++,this.count}dequeue(r,n){this.onQueueEmpty&&(--this.count<=0||r)&&(this.onQueueEmpty(r,n),r&&(n.controller.abort(),this.onQueueEmpty=void 0))}};oi.Queue=Fu});var em=L(ai=>{"use strict";u();Object.defineProperty(ai,"__esModule",{value:!0});ai.Counter=void 0;var Mu=class{_files=0;_directories=0;set files(r){this._files=r}get files(){return this._files}set directories(r){this._directories=r}get directories(){return this._directories}get dirs(){return this._directories}};ai.Counter=Mu});var Gu=L(Ue=>{"use strict";u();var _b=Ue&&Ue.__createBinding||(Object.create?function(e,r,n,o){o===void 0&&(o=n);var t=Object.getOwnPropertyDescriptor(r,n);(!t||("get"in t?!r.__esModule:t.writable||t.configurable))&&(t={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(e,o,t)}:function(e,r,n,o){o===void 0&&(o=n),e[o]=r[n]}),$b=Ue&&Ue.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),tt=Ue&&Ue.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&_b(r,e,n);return $b(r,e),r};Object.defineProperty(Ue,"__esModule",{value:!0});Ue.Walker=void 0;var tm=ge("path"),si=Lu(),Vu=tt(Fp()),bb=tt(Mp()),xb=tt(Vp()),yb=tt(qp()),zb=tt(Gp()),Sb=tt(Bp()),kb=tt(Jp()),wb=tt(Yp()),Ib=Qp(),Pb=em(),qu=class{root;isSynchronous;state;joinPath;pushDirectory;pushFile;getArray;groupFiles;resolveSymlink;walkDirectory;callbackInvoker;constructor(r,n,o){this.isSynchronous=!o,this.callbackInvoker=kb.build(n,this.isSynchronous),this.root=(0,si.normalizePath)(r,n),this.state={root:(0,si.isRootDirectory)(this.root)?this.root:this.root.slice(0,-1),paths:[""].slice(0,0),groups:[],counts:new Pb.Counter,options:n,queue:new Ib.Queue((t,i)=>this.callbackInvoker(i,t,o)),symlinks:new Map,visited:[""].slice(0,0),controller:new AbortController},this.joinPath=Vu.build(this.root,n),this.pushDirectory=bb.build(this.root,n),this.pushFile=xb.build(n),this.getArray=yb.build(n),this.groupFiles=zb.build(n),this.resolveSymlink=Sb.build(n,this.isSynchronous),this.walkDirectory=wb.build(this.isSynchronous)}start(){return this.pushDirectory(this.root,this.state.paths,this.state.options.filters),this.walkDirectory(this.state,this.root,this.root,this.state.options.maxDepth,this.walk),this.isSynchronous?this.callbackInvoker(this.state,null):null}walk=(r,n,o)=>{let{paths:t,options:{filters:i,resolveSymlinks:a,excludeSymlinks:s,exclude:c,maxFiles:p,signal:g,useRealPaths:m,pathSeparator:x},controller:y}=this.state;if(y.signal.aborted||g&&g.aborted||p&&t.length>p)return;let l=this.getArray(this.state.paths);for(let _=0;_<r.length;++_){let z=r[_];if(z.isFile()||z.isSymbolicLink()&&!a&&!s){let R=this.joinPath(z.name,n);this.pushFile(R,l,this.state.counts,i)}else if(z.isDirectory()){let R=Vu.joinDirectoryPath(z.name,n,this.state.options.pathSeparator);if(c&&c(z.name,R))continue;this.pushDirectory(R,t,i),this.walkDirectory(this.state,R,R,o-1,this.walk)}else if(this.resolveSymlink&&z.isSymbolicLink()){let R=Vu.joinPathWithBasePath(z.name,n);this.resolveSymlink(R,this.state,(I,E)=>{if(I.isDirectory()){if(E=(0,si.normalizePath)(E,this.state.options),c&&c(z.name,m?E:R+x))return;this.walkDirectory(this.state,E,m?E:R+x,o-1,this.walk)}else{E=m?E:R;let D=(0,tm.basename)(E),A=(0,si.normalizePath)((0,tm.dirname)(E),this.state.options);E=this.joinPath(D,A),this.pushFile(E,l,this.state.counts,i)}})}}this.groupFiles(this.state.groups,n,l)}};Ue.Walker=qu});var nm=L(At=>{"use strict";u();Object.defineProperty(At,"__esModule",{value:!0});At.callback=At.promise=void 0;var jb=Gu();function Eb(e,r){return new Promise((n,o)=>{rm(e,r,(t,i)=>{if(t)return o(t);n(i)})})}At.promise=Eb;function rm(e,r,n){new jb.Walker(e,r,n).start()}At.callback=rm});var im=L(ui=>{"use strict";u();Object.defineProperty(ui,"__esModule",{value:!0});ui.sync=void 0;var Ob=Gu();function Rb(e,r){return new Ob.Walker(e,r).start()}ui.sync=Rb});var am=L(ci=>{"use strict";u();Object.defineProperty(ci,"__esModule",{value:!0});ci.APIBuilder=void 0;var om=nm(),Nb=im(),Hu=class{root;options;constructor(r,n){this.root=r,this.options=n}withPromise(){return(0,om.promise)(this.root,this.options)}withCallback(r){(0,om.callback)(this.root,this.options,r)}sync(){return(0,Nb.sync)(this.root,this.options)}};ci.APIBuilder=Hu});var Or=L((SI,dm)=>{"use strict";u();var De="\\\\/",sm=`[^${De}]`,We="\\.",Tb="\\+",Ab="\\?",li="\\/",Ub="(?=.)",um="[^/]",Wu=`(?:${li}|$)`,cm=`(?:^|${li})`,Bu=`${We}{1,2}${Wu}`,Db=`(?!${We})`,Cb=`(?!${cm}${Bu})`,Zb=`(?!${We}{0,1}${Wu})`,Lb=`(?!${Bu})`,Fb=`[^.${li}]`,Mb=`${um}*?`,Vb="/",lm={DOT_LITERAL:We,PLUS_LITERAL:Tb,QMARK_LITERAL:Ab,SLASH_LITERAL:li,ONE_CHAR:Ub,QMARK:um,END_ANCHOR:Wu,DOTS_SLASH:Bu,NO_DOT:Db,NO_DOTS:Cb,NO_DOT_SLASH:Zb,NO_DOTS_SLASH:Lb,QMARK_NO_DOT:Fb,STAR:Mb,START_ANCHOR:cm,SEP:Vb},qb={...lm,SLASH_LITERAL:`[${De}]`,QMARK:sm,STAR:`${sm}*?`,DOTS_SLASH:`${We}{1,2}(?:[${De}]|$)`,NO_DOT:`(?!${We})`,NO_DOTS:`(?!(?:^|[${De}])${We}{1,2}(?:[${De}]|$))`,NO_DOT_SLASH:`(?!${We}{0,1}(?:[${De}]|$))`,NO_DOTS_SLASH:`(?!${We}{1,2}(?:[${De}]|$))`,QMARK_NO_DOT:`[^.${De}]`,START_ANCHOR:`(?:^|[${De}])`,END_ANCHOR:`(?:[${De}]|$)`,SEP:"\\"},Gb={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"};dm.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Gb,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:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},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,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?qb:lm}}});var Rr=L(Se=>{"use strict";u();var{REGEX_BACKSLASH:Hb,REGEX_REMOVE_BACKSLASH:Wb,REGEX_SPECIAL_CHARS:Bb,REGEX_SPECIAL_CHARS_GLOBAL:Jb}=Or();Se.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);Se.hasRegexChars=e=>Bb.test(e);Se.isRegexChar=e=>e.length===1&&Se.hasRegexChars(e);Se.escapeRegex=e=>e.replace(Jb,"\\$1");Se.toPosixSlashes=e=>e.replace(Hb,"/");Se.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){let e=navigator.platform.toLowerCase();return e==="win32"||e==="windows"}return typeof process<"u"&&process.platform?process.platform==="win32":!1};Se.removeBackslashes=e=>e.replace(Wb,r=>r==="\\"?"":r);Se.escapeLast=(e,r,n)=>{let o=e.lastIndexOf(r,n);return o===-1?e:e[o-1]==="\\"?Se.escapeLast(e,r,o-1):`${e.slice(0,o)}\\${e.slice(o)}`};Se.removePrefix=(e,r={})=>{let n=e;return n.startsWith("./")&&(n=n.slice(2),r.prefix="./"),n};Se.wrapOutput=(e,r={},n={})=>{let o=n.contains?"":"^",t=n.contains?"":"$",i=`${o}(?:${e})${t}`;return r.negated===!0&&(i=`(?:^(?!${i}).*$)`),i};Se.basename=(e,{windows:r}={})=>{let n=e.split(r?/[\\/]/:"/"),o=n[n.length-1];return o===""?n[n.length-2]:o}});var $m=L((PI,_m)=>{"use strict";u();var pm=Rr(),{CHAR_ASTERISK:Ju,CHAR_AT:Kb,CHAR_BACKWARD_SLASH:Nr,CHAR_COMMA:Xb,CHAR_DOT:Ku,CHAR_EXCLAMATION_MARK:Xu,CHAR_FORWARD_SLASH:vm,CHAR_LEFT_CURLY_BRACE:Yu,CHAR_LEFT_PARENTHESES:Qu,CHAR_LEFT_SQUARE_BRACKET:Yb,CHAR_PLUS:Qb,CHAR_QUESTION_MARK:mm,CHAR_RIGHT_CURLY_BRACE:ex,CHAR_RIGHT_PARENTHESES:fm,CHAR_RIGHT_SQUARE_BRACKET:tx}=Or(),gm=e=>e===vm||e===Nr,hm=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},rx=(e,r)=>{let n=r||{},o=e.length-1,t=n.parts===!0||n.scanToEnd===!0,i=[],a=[],s=[],c=e,p=-1,g=0,m=0,x=!1,y=!1,l=!1,_=!1,z=!1,R=!1,I=!1,E=!1,D=!1,A=!1,q=0,W,U,T={value:"",depth:0,isGlob:!1},h=()=>p>=o,de=()=>c.charCodeAt(p+1),ie=()=>(W=U,c.charCodeAt(++p));for(;p<o;){U=ie();let B;if(U===Nr){I=T.backslashes=!0,U=ie(),U===Yu&&(R=!0);continue}if(R===!0||U===Yu){for(q++;h()!==!0&&(U=ie());){if(U===Nr){I=T.backslashes=!0,ie();continue}if(U===Yu){q++;continue}if(R!==!0&&U===Ku&&(U=ie())===Ku){if(x=T.isBrace=!0,l=T.isGlob=!0,A=!0,t===!0)continue;break}if(R!==!0&&U===Xb){if(x=T.isBrace=!0,l=T.isGlob=!0,A=!0,t===!0)continue;break}if(U===ex&&(q--,q===0)){R=!1,x=T.isBrace=!0,A=!0;break}}if(t===!0)continue;break}if(U===vm){if(i.push(p),a.push(T),T={value:"",depth:0,isGlob:!1},A===!0)continue;if(W===Ku&&p===g+1){g+=2;continue}m=p+1;continue}if(n.noext!==!0&&(U===Qb||U===Kb||U===Ju||U===mm||U===Xu)===!0&&de()===Qu){if(l=T.isGlob=!0,_=T.isExtglob=!0,A=!0,U===Xu&&p===g&&(D=!0),t===!0){for(;h()!==!0&&(U=ie());){if(U===Nr){I=T.backslashes=!0,U=ie();continue}if(U===fm){l=T.isGlob=!0,A=!0;break}}continue}break}if(U===Ju){if(W===Ju&&(z=T.isGlobstar=!0),l=T.isGlob=!0,A=!0,t===!0)continue;break}if(U===mm){if(l=T.isGlob=!0,A=!0,t===!0)continue;break}if(U===Yb){for(;h()!==!0&&(B=ie());){if(B===Nr){I=T.backslashes=!0,ie();continue}if(B===tx){y=T.isBracket=!0,l=T.isGlob=!0,A=!0;break}}if(t===!0)continue;break}if(n.nonegate!==!0&&U===Xu&&p===g){E=T.negated=!0,g++;continue}if(n.noparen!==!0&&U===Qu){if(l=T.isGlob=!0,t===!0){for(;h()!==!0&&(U=ie());){if(U===Qu){I=T.backslashes=!0,U=ie();continue}if(U===fm){A=!0;break}}continue}break}if(l===!0){if(A=!0,t===!0)continue;break}}n.noext===!0&&(_=!1,l=!1);let te=c,$="",b="";g>0&&($=c.slice(0,g),c=c.slice(g),m-=g),te&&l===!0&&m>0?(te=c.slice(0,m),b=c.slice(m)):l===!0?(te="",b=c):te=c,te&&te!==""&&te!=="/"&&te!==c&&gm(te.charCodeAt(te.length-1))&&(te=te.slice(0,-1)),n.unescape===!0&&(b&&(b=pm.removeBackslashes(b)),te&&I===!0&&(te=pm.removeBackslashes(te)));let Pe={prefix:$,input:e,start:g,base:te,glob:b,isBrace:x,isBracket:y,isGlob:l,isExtglob:_,isGlobstar:z,negated:E,negatedExtglob:D};if(n.tokens===!0&&(Pe.maxDepth=0,gm(U)||a.push(T),Pe.tokens=a),n.parts===!0||n.tokens===!0){let B;for(let oe=0;oe<i.length;oe++){let Le=B?B+1:g,je=i[oe],Xe=e.slice(Le,je);n.tokens&&(oe===0&&g!==0?(a[oe].isPrefix=!0,a[oe].value=$):a[oe].value=Xe,hm(a[oe]),Pe.maxDepth+=a[oe].depth),(oe!==0||Xe!=="")&&s.push(Xe),B=je}if(B&&B+1<e.length){let oe=e.slice(B+1);s.push(oe),n.tokens&&(a[a.length-1].value=oe,hm(a[a.length-1]),Pe.maxDepth+=a[a.length-1].depth)}Pe.slashes=i,Pe.parts=s}return Pe};_m.exports=rx});var ym=L((EI,xm)=>{"use strict";u();var di=Or(),Ce=Rr(),{MAX_LENGTH:pi,POSIX_REGEX_SOURCE:nx,REGEX_NON_SPECIAL_CHARS:ix,REGEX_SPECIAL_CHARS_BACKREF:ox,REPLACEMENTS:bm}=di,ax=(e,r)=>{if(typeof r.expandRange=="function")return r.expandRange(...e,r);e.sort();let n=`[${e.join("-")}]`;try{new RegExp(n)}catch{return e.map(t=>Ce.escapeRegex(t)).join("..")}return n},Ut=(e,r)=>`Missing ${e}: "${r}" - use "\\\\${r}" to match literal characters`,ec=(e,r)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=bm[e]||e;let n={...r},o=typeof n.maxLength=="number"?Math.min(pi,n.maxLength):pi,t=e.length;if(t>o)throw new SyntaxError(`Input length: ${t}, exceeds maximum allowed length: ${o}`);let i={type:"bos",value:"",output:n.prepend||""},a=[i],s=n.capture?"":"?:",c=di.globChars(n.windows),p=di.extglobChars(c),{DOT_LITERAL:g,PLUS_LITERAL:m,SLASH_LITERAL:x,ONE_CHAR:y,DOTS_SLASH:l,NO_DOT:_,NO_DOT_SLASH:z,NO_DOTS_SLASH:R,QMARK:I,QMARK_NO_DOT:E,STAR:D,START_ANCHOR:A}=c,q=O=>`(${s}(?:(?!${A}${O.dot?l:g}).)*?)`,W=n.dot?"":_,U=n.dot?I:E,T=n.bash===!0?q(n):D;n.capture&&(T=`(${T})`),typeof n.noext=="boolean"&&(n.noextglob=n.noext);let h={input:e,index:-1,start:0,dot:n.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:a};e=Ce.removePrefix(e,h),t=e.length;let de=[],ie=[],te=[],$=i,b,Pe=()=>h.index===t-1,B=h.peek=(O=1)=>e[h.index+O],oe=h.advance=()=>e[++h.index]||"",Le=()=>e.slice(h.index+1),je=(O="",re=0)=>{h.consumed+=O,h.index+=re},Xe=O=>{h.output+=O.output!=null?O.output:O.value,je(O.value)},uf=()=>{let O=1;for(;B()==="!"&&(B(2)!=="("||B(3)==="?");)oe(),h.start++,O++;return O%2===0?!1:(h.negated=!0,h.start++,!0)},Fr=O=>{h[O]++,te.push(O)},nt=O=>{h[O]--,te.pop()},V=O=>{if($.type==="globstar"){let re=h.braces>0&&(O.type==="comma"||O.type==="brace"),P=O.extglob===!0||de.length&&(O.type==="pipe"||O.type==="paren");O.type!=="slash"&&O.type!=="paren"&&!re&&!P&&(h.output=h.output.slice(0,-$.output.length),$.type="star",$.value="*",$.output=T,h.output+=$.output)}if(de.length&&O.type!=="paren"&&(de[de.length-1].inner+=O.value),(O.value||O.output)&&Xe(O),$&&$.type==="text"&&O.type==="text"){$.output=($.output||$.value)+O.value,$.value+=O.value;return}O.prev=$,a.push(O),$=O},Mr=(O,re)=>{let P={...p[re],conditions:1,inner:""};P.prev=$,P.parens=h.parens,P.output=h.output;let F=(n.capture?"(":"")+P.open;Fr("parens"),V({type:O,value:re,output:h.output?"":y}),V({type:"paren",extglob:!0,value:oe(),output:F}),de.push(P)},cf=O=>{let re=O.close+(n.capture?")":""),P;if(O.type==="negate"){let F=T;if(O.inner&&O.inner.length>1&&O.inner.includes("/")&&(F=q(n)),(F!==T||Pe()||/^\)+$/.test(Le()))&&(re=O.close=`)$))${F}`),O.inner.includes("*")&&(P=Le())&&/^\.[^\\/.]+$/.test(P)){let ae=ec(P,{...r,fastpaths:!1}).output;re=O.close=`)${ae})${F})`}O.prev.type==="bos"&&(h.negatedExtglob=!0)}V({type:"paren",extglob:!0,value:b,output:re}),nt("parens")};if(n.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let O=!1,re=e.replace(ox,(P,F,ae,be,pe,Si)=>be==="\\"?(O=!0,P):be==="?"?F?F+be+(pe?I.repeat(pe.length):""):Si===0?U+(pe?I.repeat(pe.length):""):I.repeat(ae.length):be==="."?g.repeat(ae.length):be==="*"?F?F+be+(pe?T:""):T:F?P:`\\${P}`);return O===!0&&(n.unescape===!0?re=re.replace(/\\/g,""):re=re.replace(/\\+/g,P=>P.length%2===0?"\\\\":P?"\\":"")),re===e&&n.contains===!0?(h.output=e,h):(h.output=Ce.wrapOutput(re,h,r),h)}for(;!Pe();){if(b=oe(),b==="\0")continue;if(b==="\\"){let P=B();if(P==="/"&&n.bash!==!0||P==="."||P===";")continue;if(!P){b+="\\",V({type:"text",value:b});continue}let F=/^\\+/.exec(Le()),ae=0;if(F&&F[0].length>2&&(ae=F[0].length,h.index+=ae,ae%2!==0&&(b+="\\")),n.unescape===!0?b=oe():b+=oe(),h.brackets===0){V({type:"text",value:b});continue}}if(h.brackets>0&&(b!=="]"||$.value==="["||$.value==="[^")){if(n.posix!==!1&&b===":"){let P=$.value.slice(1);if(P.includes("[")&&($.posix=!0,P.includes(":"))){let F=$.value.lastIndexOf("["),ae=$.value.slice(0,F),be=$.value.slice(F+2),pe=nx[be];if(pe){$.value=ae+pe,h.backtrack=!0,oe(),!i.output&&a.indexOf($)===1&&(i.output=y);continue}}}(b==="["&&B()!==":"||b==="-"&&B()==="]")&&(b=`\\${b}`),b==="]"&&($.value==="["||$.value==="[^")&&(b=`\\${b}`),n.posix===!0&&b==="!"&&$.value==="["&&(b="^"),$.value+=b,Xe({value:b});continue}if(h.quotes===1&&b!=='"'){b=Ce.escapeRegex(b),$.value+=b,Xe({value:b});continue}if(b==='"'){h.quotes=h.quotes===1?0:1,n.keepQuotes===!0&&V({type:"text",value:b});continue}if(b==="("){Fr("parens"),V({type:"paren",value:b});continue}if(b===")"){if(h.parens===0&&n.strictBrackets===!0)throw new SyntaxError(Ut("opening","("));let P=de[de.length-1];if(P&&h.parens===P.parens+1){cf(de.pop());continue}V({type:"paren",value:b,output:h.parens?")":"\\)"}),nt("parens");continue}if(b==="["){if(n.nobracket===!0||!Le().includes("]")){if(n.nobracket!==!0&&n.strictBrackets===!0)throw new SyntaxError(Ut("closing","]"));b=`\\${b}`}else Fr("brackets");V({type:"bracket",value:b});continue}if(b==="]"){if(n.nobracket===!0||$&&$.type==="bracket"&&$.value.length===1){V({type:"text",value:b,output:`\\${b}`});continue}if(h.brackets===0){if(n.strictBrackets===!0)throw new SyntaxError(Ut("opening","["));V({type:"text",value:b,output:`\\${b}`});continue}nt("brackets");let P=$.value.slice(1);if($.posix!==!0&&P[0]==="^"&&!P.includes("/")&&(b=`/${b}`),$.value+=b,Xe({value:b}),n.literalBrackets===!1||Ce.hasRegexChars(P))continue;let F=Ce.escapeRegex($.value);if(h.output=h.output.slice(0,-$.value.length),n.literalBrackets===!0){h.output+=F,$.value=F;continue}$.value=`(${s}${F}|${$.value})`,h.output+=$.value;continue}if(b==="{"&&n.nobrace!==!0){Fr("braces");let P={type:"brace",value:b,output:"(",outputIndex:h.output.length,tokensIndex:h.tokens.length};ie.push(P),V(P);continue}if(b==="}"){let P=ie[ie.length-1];if(n.nobrace===!0||!P){V({type:"text",value:b,output:b});continue}let F=")";if(P.dots===!0){let ae=a.slice(),be=[];for(let pe=ae.length-1;pe>=0&&(a.pop(),ae[pe].type!=="brace");pe--)ae[pe].type!=="dots"&&be.unshift(ae[pe].value);F=ax(be,n),h.backtrack=!0}if(P.comma!==!0&&P.dots!==!0){let ae=h.output.slice(0,P.outputIndex),be=h.tokens.slice(P.tokensIndex);P.value=P.output="\\{",b=F="\\}",h.output=ae;for(let pe of be)h.output+=pe.output||pe.value}V({type:"brace",value:b,output:F}),nt("braces"),ie.pop();continue}if(b==="|"){de.length>0&&de[de.length-1].conditions++,V({type:"text",value:b});continue}if(b===","){let P=b,F=ie[ie.length-1];F&&te[te.length-1]==="braces"&&(F.comma=!0,P="|"),V({type:"comma",value:b,output:P});continue}if(b==="/"){if($.type==="dot"&&h.index===h.start+1){h.start=h.index+1,h.consumed="",h.output="",a.pop(),$=i;continue}V({type:"slash",value:b,output:x});continue}if(b==="."){if(h.braces>0&&$.type==="dot"){$.value==="."&&($.output=g);let P=ie[ie.length-1];$.type="dots",$.output+=b,$.value+=b,P.dots=!0;continue}if(h.braces+h.parens===0&&$.type!=="bos"&&$.type!=="slash"){V({type:"text",value:b,output:g});continue}V({type:"dot",value:b,output:g});continue}if(b==="?"){if(!($&&$.value==="(")&&n.noextglob!==!0&&B()==="("&&B(2)!=="?"){Mr("qmark",b);continue}if($&&$.type==="paren"){let F=B(),ae=b;($.value==="("&&!/[!=<:]/.test(F)||F==="<"&&!/<([!=]|\w+>)/.test(Le()))&&(ae=`\\${b}`),V({type:"text",value:b,output:ae});continue}if(n.dot!==!0&&($.type==="slash"||$.type==="bos")){V({type:"qmark",value:b,output:E});continue}V({type:"qmark",value:b,output:I});continue}if(b==="!"){if(n.noextglob!==!0&&B()==="("&&(B(2)!=="?"||!/[!=<:]/.test(B(3)))){Mr("negate",b);continue}if(n.nonegate!==!0&&h.index===0){uf();continue}}if(b==="+"){if(n.noextglob!==!0&&B()==="("&&B(2)!=="?"){Mr("plus",b);continue}if($&&$.value==="("||n.regex===!1){V({type:"plus",value:b,output:m});continue}if($&&($.type==="bracket"||$.type==="paren"||$.type==="brace")||h.parens>0){V({type:"plus",value:b});continue}V({type:"plus",value:m});continue}if(b==="@"){if(n.noextglob!==!0&&B()==="("&&B(2)!=="?"){V({type:"at",extglob:!0,value:b,output:""});continue}V({type:"text",value:b});continue}if(b!=="*"){(b==="$"||b==="^")&&(b=`\\${b}`);let P=ix.exec(Le());P&&(b+=P[0],h.index+=P[0].length),V({type:"text",value:b});continue}if($&&($.type==="globstar"||$.star===!0)){$.type="star",$.star=!0,$.value+=b,$.output=T,h.backtrack=!0,h.globstar=!0,je(b);continue}let O=Le();if(n.noextglob!==!0&&/^\([^?]/.test(O)){Mr("star",b);continue}if($.type==="star"){if(n.noglobstar===!0){je(b);continue}let P=$.prev,F=P.prev,ae=P.type==="slash"||P.type==="bos",be=F&&(F.type==="star"||F.type==="globstar");if(n.bash===!0&&(!ae||O[0]&&O[0]!=="/")){V({type:"star",value:b,output:""});continue}let pe=h.braces>0&&(P.type==="comma"||P.type==="brace"),Si=de.length&&(P.type==="pipe"||P.type==="paren");if(!ae&&P.type!=="paren"&&!pe&&!Si){V({type:"star",value:b,output:""});continue}for(;O.slice(0,3)==="/**";){let Vr=e[h.index+4];if(Vr&&Vr!=="/")break;O=O.slice(3),je("/**",3)}if(P.type==="bos"&&Pe()){$.type="globstar",$.value+=b,$.output=q(n),h.output=$.output,h.globstar=!0,je(b);continue}if(P.type==="slash"&&P.prev.type!=="bos"&&!be&&Pe()){h.output=h.output.slice(0,-(P.output+$.output).length),P.output=`(?:${P.output}`,$.type="globstar",$.output=q(n)+(n.strictSlashes?")":"|$)"),$.value+=b,h.globstar=!0,h.output+=P.output+$.output,je(b);continue}if(P.type==="slash"&&P.prev.type!=="bos"&&O[0]==="/"){let Vr=O[1]!==void 0?"|$":"";h.output=h.output.slice(0,-(P.output+$.output).length),P.output=`(?:${P.output}`,$.type="globstar",$.output=`${q(n)}${x}|${x}${Vr})`,$.value+=b,h.output+=P.output+$.output,h.globstar=!0,je(b+oe()),V({type:"slash",value:"/",output:""});continue}if(P.type==="bos"&&O[0]==="/"){$.type="globstar",$.value+=b,$.output=`(?:^|${x}|${q(n)}${x})`,h.output=$.output,h.globstar=!0,je(b+oe()),V({type:"slash",value:"/",output:""});continue}h.output=h.output.slice(0,-$.output.length),$.type="globstar",$.output=q(n),$.value+=b,h.output+=$.output,h.globstar=!0,je(b);continue}let re={type:"star",value:b,output:T};if(n.bash===!0){re.output=".*?",($.type==="bos"||$.type==="slash")&&(re.output=W+re.output),V(re);continue}if($&&($.type==="bracket"||$.type==="paren")&&n.regex===!0){re.output=b,V(re);continue}(h.index===h.start||$.type==="slash"||$.type==="dot")&&($.type==="dot"?(h.output+=z,$.output+=z):n.dot===!0?(h.output+=R,$.output+=R):(h.output+=W,$.output+=W),B()!=="*"&&(h.output+=y,$.output+=y)),V(re)}for(;h.brackets>0;){if(n.strictBrackets===!0)throw new SyntaxError(Ut("closing","]"));h.output=Ce.escapeLast(h.output,"["),nt("brackets")}for(;h.parens>0;){if(n.strictBrackets===!0)throw new SyntaxError(Ut("closing",")"));h.output=Ce.escapeLast(h.output,"("),nt("parens")}for(;h.braces>0;){if(n.strictBrackets===!0)throw new SyntaxError(Ut("closing","}"));h.output=Ce.escapeLast(h.output,"{"),nt("braces")}if(n.strictSlashes!==!0&&($.type==="star"||$.type==="bracket")&&V({type:"maybe_slash",value:"",output:`${x}?`}),h.backtrack===!0){h.output="";for(let O of h.tokens)h.output+=O.output!=null?O.output:O.value,O.suffix&&(h.output+=O.suffix)}return h};ec.fastpaths=(e,r)=>{let n={...r},o=typeof n.maxLength=="number"?Math.min(pi,n.maxLength):pi,t=e.length;if(t>o)throw new SyntaxError(`Input length: ${t}, exceeds maximum allowed length: ${o}`);e=bm[e]||e;let{DOT_LITERAL:i,SLASH_LITERAL:a,ONE_CHAR:s,DOTS_SLASH:c,NO_DOT:p,NO_DOTS:g,NO_DOTS_SLASH:m,STAR:x,START_ANCHOR:y}=di.globChars(n.windows),l=n.dot?g:p,_=n.dot?m:p,z=n.capture?"":"?:",R={negated:!1,prefix:""},I=n.bash===!0?".*?":x;n.capture&&(I=`(${I})`);let E=W=>W.noglobstar===!0?I:`(${z}(?:(?!${y}${W.dot?c:i}).)*?)`,D=W=>{switch(W){case"*":return`${l}${s}${I}`;case".*":return`${i}${s}${I}`;case"*.*":return`${l}${I}${i}${s}${I}`;case"*/*":return`${l}${I}${a}${s}${_}${I}`;case"**":return l+E(n);case"**/*":return`(?:${l}${E(n)}${a})?${_}${s}${I}`;case"**/*.*":return`(?:${l}${E(n)}${a})?${_}${I}${i}${s}${I}`;case"**/.*":return`(?:${l}${E(n)}${a})?${i}${s}${I}`;default:{let U=/^(.*?)\.(\w+)$/.exec(W);if(!U)return;let T=D(U[1]);return T?T+i+U[2]:void 0}}},A=Ce.removePrefix(e,R),q=D(A);return q&&n.strictSlashes!==!0&&(q+=`${a}?`),q};xm.exports=ec});var km=L((RI,Sm)=>{"use strict";u();var sx=$m(),tc=ym(),zm=Rr(),ux=Or(),cx=e=>e&&typeof e=="object"&&!Array.isArray(e),ue=(e,r,n=!1)=>{if(Array.isArray(e)){let g=e.map(x=>ue(x,r,n));return x=>{for(let y of g){let l=y(x);if(l)return l}return!1}}let o=cx(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!o)throw new TypeError("Expected pattern to be a non-empty string");let t=r||{},i=t.windows,a=o?ue.compileRe(e,r):ue.makeRe(e,r,!1,!0),s=a.state;delete a.state;let c=()=>!1;if(t.ignore){let g={...r,ignore:null,onMatch:null,onResult:null};c=ue(t.ignore,g,n)}let p=(g,m=!1)=>{let{isMatch:x,match:y,output:l}=ue.test(g,a,r,{glob:e,posix:i}),_={glob:e,state:s,regex:a,posix:i,input:g,output:l,match:y,isMatch:x};return typeof t.onResult=="function"&&t.onResult(_),x===!1?(_.isMatch=!1,m?_:!1):c(g)?(typeof t.onIgnore=="function"&&t.onIgnore(_),_.isMatch=!1,m?_:!1):(typeof t.onMatch=="function"&&t.onMatch(_),m?_:!0)};return n&&(p.state=s),p};ue.test=(e,r,n,{glob:o,posix:t}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let i=n||{},a=i.format||(t?zm.toPosixSlashes:null),s=e===o,c=s&&a?a(e):e;return s===!1&&(c=a?a(e):e,s=c===o),(s===!1||i.capture===!0)&&(i.matchBase===!0||i.basename===!0?s=ue.matchBase(e,r,n,t):s=r.exec(c)),{isMatch:!!s,match:s,output:c}};ue.matchBase=(e,r,n)=>(r instanceof RegExp?r:ue.makeRe(r,n)).test(zm.basename(e));ue.isMatch=(e,r,n)=>ue(r,n)(e);ue.parse=(e,r)=>Array.isArray(e)?e.map(n=>ue.parse(n,r)):tc(e,{...r,fastpaths:!1});ue.scan=(e,r)=>sx(e,r);ue.compileRe=(e,r,n=!1,o=!1)=>{if(n===!0)return e.output;let t=r||{},i=t.contains?"":"^",a=t.contains?"":"$",s=`${i}(?:${e.output})${a}`;e&&e.negated===!0&&(s=`^(?!${s}).*$`);let c=ue.toRegex(s,r);return o===!0&&(c.state=e),c};ue.makeRe=(e,r={},n=!1,o=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let t={negated:!1,fastpaths:!0};return r.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(t.output=tc.fastpaths(e,r)),t.output||(t=tc(e,r)),ue.compileRe(t,r,n,o)};ue.toRegex=(e,r)=>{try{let n=r||{};return new RegExp(e,n.flags||(n.nocase?"i":""))}catch(n){if(r&&r.debug===!0)throw n;return/$^/}};ue.constants=ux;Sm.exports=ue});var rc=L((TI,Pm)=>{"use strict";u();var wm=km(),lx=Rr();function Im(e,r,n=!1){return r&&(r.windows===null||r.windows===void 0)&&(r={...r,windows:lx.isWindows()}),wm(e,r,n)}Object.assign(Im,wm);Pm.exports=Im});var Om=L(mi=>{"use strict";u();Object.defineProperty(mi,"__esModule",{value:!0});mi.Builder=void 0;var dx=ge("path"),jm=am(),Em=null;try{ge.resolve("picomatch"),Em=rc()}catch{}var nc=class{globCache={};options={maxDepth:1/0,suppressErrors:!0,pathSeparator:dx.sep,filters:[]};globFunction;constructor(r){this.options={...this.options,...r},this.globFunction=this.options.globFunction}group(){return this.options.group=!0,this}withPathSeparator(r){return this.options.pathSeparator=r,this}withBasePath(){return this.options.includeBasePath=!0,this}withRelativePaths(){return this.options.relativePaths=!0,this}withDirs(){return this.options.includeDirs=!0,this}withMaxDepth(r){return this.options.maxDepth=r,this}withMaxFiles(r){return this.options.maxFiles=r,this}withFullPaths(){return this.options.resolvePaths=!0,this.options.includeBasePath=!0,this}withErrors(){return this.options.suppressErrors=!1,this}withSymlinks({resolvePaths:r=!0}={}){return this.options.resolveSymlinks=!0,this.options.useRealPaths=r,this.withFullPaths()}withAbortSignal(r){return this.options.signal=r,this}normalize(){return this.options.normalizePath=!0,this}filter(r){return this.options.filters.push(r),this}onlyDirs(){return this.options.excludeFiles=!0,this.options.includeDirs=!0,this}exclude(r){return this.options.exclude=r,this}onlyCounts(){return this.options.onlyCounts=!0,this}crawl(r){return new jm.APIBuilder(r||".",this.options)}withGlobFunction(r){return this.globFunction=r,this}crawlWithOptions(r,n){return this.options={...this.options,...n},new jm.APIBuilder(r||".",this.options)}glob(...r){return this.globFunction?this.globWithOptions(r):this.globWithOptions(r,{dot:!0})}globWithOptions(r,...n){let o=this.globFunction||Em;if(!o)throw new Error("Please specify a glob function to use glob matching.");var t=this.globCache[r.join("\0")];return t||(t=o(r,...n),this.globCache[r.join("\0")]=t),this.options.filters.push(i=>t(i)),this}};mi.Builder=nc});var Nm=L(Rm=>{"use strict";u();Object.defineProperty(Rm,"__esModule",{value:!0})});var Tm=L(Be=>{"use strict";u();var px=Be&&Be.__createBinding||(Object.create?function(e,r,n,o){o===void 0&&(o=n);var t=Object.getOwnPropertyDescriptor(r,n);(!t||("get"in t?!r.__esModule:t.writable||t.configurable))&&(t={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(e,o,t)}:function(e,r,n,o){o===void 0&&(o=n),e[o]=r[n]}),mx=Be&&Be.__exportStar||function(e,r){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(r,n)&&px(r,e,n)};Object.defineProperty(Be,"__esModule",{value:!0});Be.fdir=void 0;var fx=Om();Object.defineProperty(Be,"fdir",{enumerable:!0,get:function(){return fx.Builder}});mx(Nm(),Be)});var of=L((YI,yi)=>{u();function Ym(e){return Array.isArray(e)?e:[e]}var Mx=void 0,mc="",Km=" ",pc="\\",Vx=/^\s+$/,qx=/(?:[^\\]|^)\\$/,Gx=/^\\!/,Hx=/^\\#/,Wx=/\r?\n/g,Bx=/^\.{0,2}\/|^\.{1,2}$/,Jx=/\/$/,Ct="/",Qm="node-ignore";typeof Symbol<"u"&&(Qm=Symbol.for("node-ignore"));var ef=Qm,Zt=(e,r,n)=>(Object.defineProperty(e,r,{value:n}),n),Kx=/([0-z])-([0-z])/g,tf=()=>!1,Xx=e=>e.replace(Kx,(r,n,o)=>n.charCodeAt(0)<=o.charCodeAt(0)?r:mc),Yx=e=>{let{length:r}=e;return e.slice(0,r-r%2)},Qx=[[/^\uFEFF/,()=>mc],[/((?:\\\\)*?)(\\?\s+)$/,(e,r,n)=>r+(n.indexOf("\\")===0?Km:mc)],[/(\\+?)\s/g,(e,r)=>{let{length:n}=r;return r.slice(0,n-n%2)+Km}],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,r,n)=>r+6<n.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(e,r,n)=>{let o=n.replace(/\\\*/g,"[^\\/]*");return r+o}],[/\\\\\\(?=[$.|*+(){^])/g,()=>pc],[/\\\\/g,()=>pc],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,r,n,o,t)=>r===pc?`\\[${n}${Yx(o)}${t}`:t==="]"&&o.length%2===0?`[${Xx(n)}${o}]`:"[]"],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`]],ey=/(^|\\\/)?\\\*$/,Lr="regex",bi="checkRegex",Xm="_",ty={[Lr](e,r){return`${r?`${r}[^/]+`:"[^/]*"}(?=$|\\/$)`},[bi](e,r){return`${r?`${r}[^/]*`:"[^/]*"}(?=$|\\/$)`}},ry=e=>Qx.reduce((r,[n,o])=>r.replace(n,o.bind(e)),e),xi=e=>typeof e=="string",ny=e=>e&&xi(e)&&!Vx.test(e)&&!qx.test(e)&&e.indexOf("#")!==0,iy=e=>e.split(Wx).filter(Boolean),fc=class{constructor(r,n,o,t,i,a){this.pattern=r,this.mark=n,this.negative=i,Zt(this,"body",o),Zt(this,"ignoreCase",t),Zt(this,"regexPrefix",a)}get regex(){let r=Xm+Lr;return this[r]?this[r]:this._make(Lr,r)}get checkRegex(){let r=Xm+bi;return this[r]?this[r]:this._make(bi,r)}_make(r,n){let o=this.regexPrefix.replace(ey,ty[r]),t=this.ignoreCase?new RegExp(o,"i"):new RegExp(o);return Zt(this,n,t)}},oy=({pattern:e,mark:r},n)=>{let o=!1,t=e;t.indexOf("!")===0&&(o=!0,t=t.substr(1)),t=t.replace(Gx,"!").replace(Hx,"#");let i=ry(t);return new fc(e,r,t,n,o,i)},gc=class{constructor(r){this._ignoreCase=r,this._rules=[]}_add(r){if(r&&r[ef]){this._rules=this._rules.concat(r._rules._rules),this._added=!0;return}if(xi(r)&&(r={pattern:r}),ny(r.pattern)){let n=oy(r,this._ignoreCase);this._added=!0,this._rules.push(n)}}add(r){return this._added=!1,Ym(xi(r)?iy(r):r).forEach(this._add,this),this._added}test(r,n,o){let t=!1,i=!1,a;this._rules.forEach(c=>{let{negative:p}=c;i===p&&t!==i||p&&!t&&!i&&!n||!c[o].test(r)||(t=!p,i=p,a=p?Mx:c)});let s={ignored:t,unignored:i};return a&&(s.rule=a),s}},ay=(e,r)=>{throw new r(e)},Ke=(e,r,n)=>xi(e)?e?Ke.isNotRelative(e)?n(`path should be a \`path.relative()\`d string, but got "${r}"`,RangeError):!0:n("path must not be empty",TypeError):n(`path must be a string, but got \`${r}\``,TypeError),rf=e=>Bx.test(e);Ke.isNotRelative=rf;Ke.convert=e=>e;var hc=class{constructor({ignorecase:r=!0,ignoreCase:n=r,allowRelativePaths:o=!1}={}){Zt(this,ef,!0),this._rules=new gc(n),this._strictPathCheck=!o,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}add(r){return this._rules.add(r)&&this._initCache(),this}addPattern(r){return this.add(r)}_test(r,n,o,t){let i=r&&Ke.convert(r);return Ke(i,r,this._strictPathCheck?ay:tf),this._t(i,n,o,t)}checkIgnore(r){if(!Jx.test(r))return this.test(r);let n=r.split(Ct).filter(Boolean);if(n.pop(),n.length){let o=this._t(n.join(Ct)+Ct,this._testCache,!0,n);if(o.ignored)return o}return this._rules.test(r,!1,bi)}_t(r,n,o,t){if(r in n)return n[r];if(t||(t=r.split(Ct).filter(Boolean)),t.pop(),!t.length)return n[r]=this._rules.test(r,o,Lr);let i=this._t(t.join(Ct)+Ct,n,o,t);return n[r]=i.ignored?i:this._rules.test(r,o,Lr)}ignores(r){return this._test(r,this._ignoreCache,!1).ignored}createFilter(){return r=>!this.ignores(r)}filter(r){return Ym(r).filter(this.createFilter())}test(r){return this._test(r,this._testCache,!0)}},vc=e=>new hc(e),sy=e=>Ke(e&&Ke.convert(e),e,tf),nf=()=>{let e=n=>/^\\\\\?\\/.test(n)||/["<>|\u0000-\u001F]+/u.test(n)?n:n.replace(/\\/g,"/");Ke.convert=e;let r=/^[a-z]:\//i;Ke.isNotRelative=n=>r.test(n)||rf(n)};typeof process<"u"&&process.platform==="win32"&&nf();yi.exports=vc;vc.default=vc;yi.exports.isPathValid=sy;Zt(yi.exports,Symbol.for("setupWindows"),nf)});u();var tv={};it(tv,{$brand:()=>Ii,$input:()=>Ma,$output:()=>Fa,NEVER:()=>wi,TimePrecision:()=>Ga,ZodAny:()=>Cl,ZodArray:()=>Ml,ZodBase64:()=>eu,ZodBase64URL:()=>tu,ZodBigInt:()=>yr,ZodBigIntFormat:()=>iu,ZodBoolean:()=>xr,ZodCIDRv4:()=>Ys,ZodCIDRv6:()=>Qs,ZodCUID:()=>Gs,ZodCUID2:()=>Hs,ZodCatch:()=>nd,ZodCustom:()=>Vn,ZodCustomStringFormat:()=>Tl,ZodDate:()=>Ln,ZodDefault:()=>Xl,ZodDiscriminatedUnion:()=>Vl,ZodE164:()=>ru,ZodEmail:()=>Fs,ZodEmoji:()=>Vs,ZodEnum:()=>_r,ZodError:()=>Bg,ZodFile:()=>Jl,ZodGUID:()=>An,ZodIPv4:()=>Ks,ZodIPv6:()=>Xs,ZodISODate:()=>Rn,ZodISODateTime:()=>On,ZodISODuration:()=>Tn,ZodISOTime:()=>Nn,ZodIntersection:()=>ql,ZodIssueCode:()=>Wh,ZodJWT:()=>nu,ZodKSUID:()=>Js,ZodLazy:()=>cd,ZodLiteral:()=>Bl,ZodMap:()=>Hl,ZodNaN:()=>od,ZodNanoID:()=>qs,ZodNever:()=>Ll,ZodNonOptional:()=>lu,ZodNull:()=>Dl,ZodNullable:()=>Kl,ZodNumber:()=>br,ZodNumberFormat:()=>It,ZodObject:()=>Fn,ZodOptional:()=>cu,ZodPipe:()=>du,ZodPrefault:()=>Ql,ZodPromise:()=>dd,ZodReadonly:()=>ad,ZodRealError:()=>wt,ZodRecord:()=>au,ZodSet:()=>Wl,ZodString:()=>$r,ZodStringFormat:()=>Q,ZodSuccess:()=>rd,ZodSymbol:()=>Al,ZodTemplateLiteral:()=>ud,ZodTransform:()=>su,ZodTuple:()=>Gl,ZodType:()=>Z,ZodULID:()=>Ws,ZodURL:()=>Ms,ZodUUID:()=>He,ZodUndefined:()=>Ul,ZodUnion:()=>ou,ZodUnknown:()=>Zl,ZodVoid:()=>Fl,ZodXID:()=>Bs,_ZodString:()=>Ls,_default:()=>Yl,any:()=>Ph,array:()=>M,base64:()=>fh,base64url:()=>gh,bigint:()=>zh,boolean:()=>le,catch:()=>id,check:()=>pd,cidrv4:()=>ph,cidrv6:()=>mh,clone:()=>ke,coerce:()=>mu,config:()=>ce,core:()=>Ge,cuid:()=>oh,cuid2:()=>ah,custom:()=>pu,date:()=>Eh,discriminatedUnion:()=>Mn,e164:()=>hh,email:()=>Kg,emoji:()=>nh,endsWith:()=>lr,enum:()=>xe,file:()=>Ch,flattenError:()=>Jt,float32:()=>$h,float64:()=>bh,formatError:()=>Kt,function:()=>js,getErrorMap:()=>Jh,globalRegistry:()=>Te,gt:()=>Ve,gte:()=>ze,guid:()=>Xg,includes:()=>ur,instanceof:()=>qh,int:()=>Zs,int32:()=>xh,int64:()=>Sh,intersection:()=>zr,ipv4:()=>lh,ipv6:()=>dh,iso:()=>kt,json:()=>Hh,jwt:()=>vh,keyof:()=>Oh,ksuid:()=>ch,lazy:()=>ld,length:()=>St,literal:()=>N,locales:()=>rr,looseObject:()=>_e,lowercase:()=>ar,lt:()=>Me,lte:()=>Ee,map:()=>Ah,maxLength:()=>zt,maxSize:()=>yt,mime:()=>dr,minLength:()=>Qe,minSize:()=>pt,multipleOf:()=>dt,nan:()=>Fh,nanoid:()=>ih,nativeEnum:()=>Dh,negative:()=>$s,never:()=>Zn,nonnegative:()=>xs,nonoptional:()=>td,nonpositive:()=>bs,normalize:()=>pr,null:()=>Cn,nullable:()=>Un,nullish:()=>Zh,number:()=>G,object:()=>j,optional:()=>ee,overwrite:()=>qe,parse:()=>As,parseAsync:()=>Us,partialRecord:()=>Th,pipe:()=>Dn,positive:()=>_s,prefault:()=>ed,preprocess:()=>qn,prettifyError:()=>Li,promise:()=>Vh,property:()=>ys,readonly:()=>sd,record:()=>K,refine:()=>md,regex:()=>or,regexes:()=>ut,registry:()=>un,safeParse:()=>Ds,safeParseAsync:()=>Cs,set:()=>Uh,setErrorMap:()=>Bh,size:()=>ir,startsWith:()=>cr,strictObject:()=>Rh,string:()=>f,stringFormat:()=>_h,stringbool:()=>Gh,success:()=>Lh,superRefine:()=>fd,symbol:()=>wh,templateLiteral:()=>Mh,toJSONSchema:()=>Es,toLowerCase:()=>fr,toUpperCase:()=>gr,transform:()=>uu,treeifyError:()=>Zi,trim:()=>mr,tuple:()=>Nh,uint32:()=>yh,uint64:()=>kh,ulid:()=>sh,undefined:()=>Ih,union:()=>J,unknown:()=>ne,uppercase:()=>sr,url:()=>rh,uuid:()=>Yg,uuidv4:()=>Qg,uuidv6:()=>eh,uuidv7:()=>th,void:()=>jh,xid:()=>uh});u();var Ge={};it(Ge,{$ZodAny:()=>ga,$ZodArray:()=>Qt,$ZodAsyncError:()=>Ne,$ZodBase64:()=>oa,$ZodBase64URL:()=>aa,$ZodBigInt:()=>on,$ZodBigIntFormat:()=>da,$ZodBoolean:()=>Yt,$ZodCIDRv4:()=>ra,$ZodCIDRv6:()=>na,$ZodCUID:()=>Go,$ZodCUID2:()=>Ho,$ZodCatch:()=>Ta,$ZodCheck:()=>se,$ZodCheckBigIntFormat:()=>xo,$ZodCheckEndsWith:()=>No,$ZodCheckGreaterThan:()=>en,$ZodCheckIncludes:()=>Oo,$ZodCheckLengthEquals:()=>Io,$ZodCheckLessThan:()=>Qr,$ZodCheckLowerCase:()=>jo,$ZodCheckMaxLength:()=>ko,$ZodCheckMaxSize:()=>yo,$ZodCheckMimeType:()=>Ao,$ZodCheckMinLength:()=>wo,$ZodCheckMinSize:()=>zo,$ZodCheckMultipleOf:()=>$o,$ZodCheckNumberFormat:()=>bo,$ZodCheckOverwrite:()=>Uo,$ZodCheckProperty:()=>To,$ZodCheckRegex:()=>Po,$ZodCheckSizeEquals:()=>So,$ZodCheckStartsWith:()=>Ro,$ZodCheckStringFormat:()=>_t,$ZodCheckUpperCase:()=>Eo,$ZodCustom:()=>La,$ZodCustomStringFormat:()=>ca,$ZodDate:()=>_a,$ZodDefault:()=>Ea,$ZodDiscriminatedUnion:()=>ba,$ZodE164:()=>sa,$ZodEmail:()=>Fo,$ZodEmoji:()=>Vo,$ZodEnum:()=>ka,$ZodError:()=>Bt,$ZodFile:()=>Ia,$ZodFunction:()=>En,$ZodGUID:()=>Zo,$ZodIPv4:()=>ea,$ZodIPv6:()=>ta,$ZodISODate:()=>Xo,$ZodISODateTime:()=>Ko,$ZodISODuration:()=>Qo,$ZodISOTime:()=>Yo,$ZodIntersection:()=>xa,$ZodJWT:()=>ua,$ZodKSUID:()=>Jo,$ZodLazy:()=>Za,$ZodLiteral:()=>wa,$ZodMap:()=>za,$ZodNaN:()=>Aa,$ZodNanoID:()=>qo,$ZodNever:()=>ha,$ZodNonOptional:()=>Ra,$ZodNull:()=>fa,$ZodNullable:()=>ja,$ZodNumber:()=>nn,$ZodNumberFormat:()=>la,$ZodObject:()=>$a,$ZodOptional:()=>Pa,$ZodPipe:()=>tr,$ZodPrefault:()=>Oa,$ZodPromise:()=>Ca,$ZodReadonly:()=>Ua,$ZodRealError:()=>vt,$ZodRecord:()=>ya,$ZodRegistry:()=>bt,$ZodSet:()=>Sa,$ZodString:()=>ct,$ZodStringFormat:()=>Y,$ZodSuccess:()=>Na,$ZodSymbol:()=>pa,$ZodTemplateLiteral:()=>Da,$ZodTransform:()=>er,$ZodTuple:()=>lt,$ZodType:()=>C,$ZodULID:()=>Wo,$ZodURL:()=>Mo,$ZodUUID:()=>Lo,$ZodUndefined:()=>ma,$ZodUnion:()=>an,$ZodUnknown:()=>$t,$ZodVoid:()=>va,$ZodXID:()=>Bo,$brand:()=>Ii,$constructor:()=>d,$input:()=>Ma,$output:()=>Fa,Doc:()=>Xt,JSONSchema:()=>Ol,JSONSchemaGenerator:()=>vr,NEVER:()=>wi,TimePrecision:()=>Ga,_any:()=>ps,_array:()=>hr,_base64:()=>wn,_base64url:()=>In,_bigint:()=>os,_boolean:()=>ns,_catch:()=>Fg,_cidrv4:()=>Sn,_cidrv6:()=>kn,_coercedBigint:()=>as,_coercedBoolean:()=>is,_coercedDate:()=>hs,_coercedNumber:()=>Xa,_coercedString:()=>qa,_cuid:()=>vn,_cuid2:()=>_n,_custom:()=>ks,_date:()=>gs,_default:()=>Cg,_discriminatedUnion:()=>Ig,_e164:()=>Pn,_email:()=>cn,_emoji:()=>gn,_endsWith:()=>lr,_enum:()=>Rg,_file:()=>Ss,_float32:()=>Qa,_float64:()=>es,_gt:()=>Ve,_gte:()=>ze,_guid:()=>nr,_includes:()=>ur,_int:()=>Ya,_int32:()=>ts,_int64:()=>ss,_intersection:()=>Pg,_ipv4:()=>yn,_ipv6:()=>zn,_isoDate:()=>Wa,_isoDateTime:()=>Ha,_isoDuration:()=>Ja,_isoTime:()=>Ba,_jwt:()=>jn,_ksuid:()=>xn,_lazy:()=>Gg,_length:()=>St,_literal:()=>Tg,_lowercase:()=>ar,_lt:()=>Me,_lte:()=>Ee,_map:()=>Eg,_max:()=>Ee,_maxLength:()=>zt,_maxSize:()=>yt,_mime:()=>dr,_min:()=>ze,_minLength:()=>Qe,_minSize:()=>pt,_multipleOf:()=>dt,_nan:()=>vs,_nanoid:()=>hn,_nativeEnum:()=>Ng,_negative:()=>$s,_never:()=>ms,_nonnegative:()=>xs,_nonoptional:()=>Zg,_nonpositive:()=>bs,_normalize:()=>pr,_null:()=>ds,_nullable:()=>Dg,_number:()=>Ka,_optional:()=>Ug,_overwrite:()=>qe,_parse:()=>Hr,_parseAsync:()=>Br,_pipe:()=>Mg,_positive:()=>_s,_promise:()=>Hg,_property:()=>ys,_readonly:()=>Vg,_record:()=>jg,_refine:()=>ws,_regex:()=>or,_safeParse:()=>Kr,_safeParseAsync:()=>Xr,_set:()=>Og,_size:()=>ir,_startsWith:()=>cr,_string:()=>Va,_stringFormat:()=>Ps,_stringbool:()=>Is,_success:()=>Lg,_symbol:()=>cs,_templateLiteral:()=>qg,_toLowerCase:()=>fr,_toUpperCase:()=>gr,_transform:()=>Ag,_trim:()=>mr,_tuple:()=>zs,_uint32:()=>rs,_uint64:()=>us,_ulid:()=>$n,_undefined:()=>ls,_union:()=>wg,_unknown:()=>xt,_uppercase:()=>sr,_url:()=>fn,_uuid:()=>ln,_uuidv4:()=>dn,_uuidv6:()=>pn,_uuidv7:()=>mn,_void:()=>fs,_xid:()=>bn,clone:()=>ke,config:()=>ce,flattenError:()=>Jt,formatError:()=>Kt,function:()=>js,globalConfig:()=>Lt,globalRegistry:()=>Te,isValidBase64:()=>ia,isValidBase64URL:()=>Mc,isValidJWT:()=>Vc,locales:()=>rr,parse:()=>Wr,parseAsync:()=>Jr,prettifyError:()=>Li,regexes:()=>ut,registry:()=>un,safeParse:()=>Fi,safeParseAsync:()=>Mi,toDotPath:()=>Sc,toJSONSchema:()=>Es,treeifyError:()=>Zi,util:()=>w,version:()=>Do});u();u();var wi=Object.freeze({status:"aborted"});function d(e,r,n){function o(s,c){var p;Object.defineProperty(s,"_zod",{value:s._zod??{},enumerable:!1}),(p=s._zod).traits??(p.traits=new Set),s._zod.traits.add(e),r(s,c);for(let g in a.prototype)g in s||Object.defineProperty(s,g,{value:a.prototype[g].bind(s)});s._zod.constr=a,s._zod.def=c}let t=n?.Parent??Object;class i extends t{}Object.defineProperty(i,"name",{value:e});function a(s){var c;let p=n?.Parent?new i:this;o(p,s),(c=p._zod).deferred??(c.deferred=[]);for(let g of p._zod.deferred)g();return p}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>n?.Parent&&s instanceof n.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var Ii=Symbol("zod_brand"),Ne=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Lt={};function ce(e){return e&&Object.assign(Lt,e),Lt}u();u();var w={};it(w,{BIGINT_FORMAT_RANGES:()=>Di,Class:()=>ji,NUMBER_FORMAT_RANGES:()=>Ui,aborted:()=>at,allowsEval:()=>Ni,assert:()=>ff,assertEqual:()=>lf,assertIs:()=>pf,assertNever:()=>mf,assertNotEqual:()=>df,assignProp:()=>Ri,cached:()=>Vt,captureStackTrace:()=>Gr,cleanEnum:()=>If,cleanRegex:()=>qt,clone:()=>ke,createTransparentProxy:()=>bf,defineLazy:()=>H,esc:()=>ot,escapeRegex:()=>Fe,extend:()=>zf,finalizeIssue:()=>we,floatSafeRemainder:()=>Oi,getElementAtPath:()=>gf,getEnumValues:()=>Mt,getLengthableOrigin:()=>Wt,getParsedType:()=>$f,getSizableOrigin:()=>Ht,isObject:()=>gt,isPlainObject:()=>ht,issue:()=>Ci,joinValues:()=>v,jsonStringifyReplacer:()=>Ei,merge:()=>Sf,normalizeParams:()=>S,nullish:()=>Ye,numKeys:()=>_f,omit:()=>yf,optionalKeys:()=>Ai,partial:()=>kf,pick:()=>xf,prefixIssues:()=>ye,primitiveTypes:()=>Ti,promiseAllObject:()=>hf,propertyKeyTypes:()=>Gt,randomString:()=>vf,required:()=>wf,stringifyPrimitive:()=>k,unwrapMessage:()=>Ft});u();function lf(e){return e}function df(e){return e}function pf(e){}function mf(e){throw new Error}function ff(e){}function Mt(e){let r=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,t])=>r.indexOf(+o)===-1).map(([o,t])=>t)}function v(e,r="|"){return e.map(n=>k(n)).join(r)}function Ei(e,r){return typeof r=="bigint"?r.toString():r}function Vt(e){return{get value(){{let n=e();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}function Ye(e){return e==null}function qt(e){let r=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(r,n)}function Oi(e,r){let n=(e.toString().split(".")[1]||"").length,o=(r.toString().split(".")[1]||"").length,t=n>o?n:o,i=Number.parseInt(e.toFixed(t).replace(".","")),a=Number.parseInt(r.toFixed(t).replace(".",""));return i%a/10**t}function H(e,r,n){Object.defineProperty(e,r,{get(){{let t=n();return e[r]=t,t}throw new Error("cached value already set")},set(t){Object.defineProperty(e,r,{value:t})},configurable:!0})}function Ri(e,r,n){Object.defineProperty(e,r,{value:n,writable:!0,enumerable:!0,configurable:!0})}function gf(e,r){return r?r.reduce((n,o)=>n?.[o],e):e}function hf(e){let r=Object.keys(e),n=r.map(o=>e[o]);return Promise.all(n).then(o=>{let t={};for(let i=0;i<r.length;i++)t[r[i]]=o[i];return t})}function vf(e=10){let r="abcdefghijklmnopqrstuvwxyz",n="";for(let o=0;o<e;o++)n+=r[Math.floor(Math.random()*r.length)];return n}function ot(e){return JSON.stringify(e)}var Gr=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function gt(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Ni=Vt(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function ht(e){if(gt(e)===!1)return!1;let r=e.constructor;if(r===void 0)return!0;let n=r.prototype;return!(gt(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function _f(e){let r=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&r++;return r}var $f=e=>{let r=typeof e;switch(r){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${r}`)}},Gt=new Set(["string","number","symbol"]),Ti=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Fe(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ke(e,r,n){let o=new e._zod.constr(r??e._zod.def);return(!r||n?.parent)&&(o._zod.parent=e),o}function S(e){let r=e;if(!r)return{};if(typeof r=="string")return{error:()=>r};if(r?.message!==void 0){if(r?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");r.error=r.message}return delete r.message,typeof r.error=="string"?{...r,error:()=>r.error}:r}function bf(e){let r;return new Proxy({},{get(n,o,t){return r??(r=e()),Reflect.get(r,o,t)},set(n,o,t,i){return r??(r=e()),Reflect.set(r,o,t,i)},has(n,o){return r??(r=e()),Reflect.has(r,o)},deleteProperty(n,o){return r??(r=e()),Reflect.deleteProperty(r,o)},ownKeys(n){return r??(r=e()),Reflect.ownKeys(r)},getOwnPropertyDescriptor(n,o){return r??(r=e()),Reflect.getOwnPropertyDescriptor(r,o)},defineProperty(n,o,t){return r??(r=e()),Reflect.defineProperty(r,o,t)}})}function k(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Ai(e){return Object.keys(e).filter(r=>e[r]._zod.optin==="optional"&&e[r]._zod.optout==="optional")}var Ui={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Di={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function xf(e,r){let n={},o=e._zod.def;for(let t in r){if(!(t in o.shape))throw new Error(`Unrecognized key: "${t}"`);r[t]&&(n[t]=o.shape[t])}return ke(e,{...e._zod.def,shape:n,checks:[]})}function yf(e,r){let n={...e._zod.def.shape},o=e._zod.def;for(let t in r){if(!(t in o.shape))throw new Error(`Unrecognized key: "${t}"`);r[t]&&delete n[t]}return ke(e,{...e._zod.def,shape:n,checks:[]})}function zf(e,r){if(!ht(r))throw new Error("Invalid input to extend: expected a plain object");let n={...e._zod.def,get shape(){let o={...e._zod.def.shape,...r};return Ri(this,"shape",o),o},checks:[]};return ke(e,n)}function Sf(e,r){return ke(e,{...e._zod.def,get shape(){let n={...e._zod.def.shape,...r._zod.def.shape};return Ri(this,"shape",n),n},catchall:r._zod.def.catchall,checks:[]})}function kf(e,r,n){let o=r._zod.def.shape,t={...o};if(n)for(let i in n){if(!(i in o))throw new Error(`Unrecognized key: "${i}"`);n[i]&&(t[i]=e?new e({type:"optional",innerType:o[i]}):o[i])}else for(let i in o)t[i]=e?new e({type:"optional",innerType:o[i]}):o[i];return ke(r,{...r._zod.def,shape:t,checks:[]})}function wf(e,r,n){let o=r._zod.def.shape,t={...o};if(n)for(let i in n){if(!(i in t))throw new Error(`Unrecognized key: "${i}"`);n[i]&&(t[i]=new e({type:"nonoptional",innerType:o[i]}))}else for(let i in o)t[i]=new e({type:"nonoptional",innerType:o[i]});return ke(r,{...r._zod.def,shape:t,checks:[]})}function at(e,r=0){for(let n=r;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function ye(e,r){return r.map(n=>{var o;return(o=n).path??(o.path=[]),n.path.unshift(e),n})}function Ft(e){return typeof e=="string"?e:e?.message}function we(e,r,n){let o={...e,path:e.path??[]};if(!e.message){let t=Ft(e.inst?._zod.def?.error?.(e))??Ft(r?.error?.(e))??Ft(n.customError?.(e))??Ft(n.localeError?.(e))??"Invalid input";o.message=t}return delete o.inst,delete o.continue,r?.reportInput||delete o.input,o}function Ht(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Wt(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Ci(...e){let[r,n,o]=e;return typeof r=="string"?{message:r,code:"custom",input:n,inst:o}:{...r}}function If(e){return Object.entries(e).filter(([r,n])=>Number.isNaN(Number.parseInt(r,10))).map(r=>r[1])}var ji=class{constructor(...r){}};var zc=(e,r)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:r,enumerable:!1}),Object.defineProperty(e,"message",{get(){return JSON.stringify(r,Ei,2)},enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Bt=d("$ZodError",zc),vt=d("$ZodError",zc,{Parent:Error});function Jt(e,r=n=>n.message){let n={},o=[];for(let t of e.issues)t.path.length>0?(n[t.path[0]]=n[t.path[0]]||[],n[t.path[0]].push(r(t))):o.push(r(t));return{formErrors:o,fieldErrors:n}}function Kt(e,r){let n=r||function(i){return i.message},o={_errors:[]},t=i=>{for(let a of i.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(s=>t({issues:s}));else if(a.code==="invalid_key")t({issues:a.issues});else if(a.code==="invalid_element")t({issues:a.issues});else if(a.path.length===0)o._errors.push(n(a));else{let s=o,c=0;for(;c<a.path.length;){let p=a.path[c];c===a.path.length-1?(s[p]=s[p]||{_errors:[]},s[p]._errors.push(n(a))):s[p]=s[p]||{_errors:[]},s=s[p],c++}}};return t(e),o}function Zi(e,r){let n=r||function(i){return i.message},o={errors:[]},t=(i,a=[])=>{var s,c;for(let p of i.issues)if(p.code==="invalid_union"&&p.errors.length)p.errors.map(g=>t({issues:g},p.path));else if(p.code==="invalid_key")t({issues:p.issues},p.path);else if(p.code==="invalid_element")t({issues:p.issues},p.path);else{let g=[...a,...p.path];if(g.length===0){o.errors.push(n(p));continue}let m=o,x=0;for(;x<g.length;){let y=g[x],l=x===g.length-1;typeof y=="string"?(m.properties??(m.properties={}),(s=m.properties)[y]??(s[y]={errors:[]}),m=m.properties[y]):(m.items??(m.items=[]),(c=m.items)[y]??(c[y]={errors:[]}),m=m.items[y]),l&&m.errors.push(n(p)),x++}}};return t(e),o}function Sc(e){let r=[];for(let n of e)typeof n=="number"?r.push(`[${n}]`):typeof n=="symbol"?r.push(`[${JSON.stringify(String(n))}]`):/[^\w$]/.test(n)?r.push(`[${JSON.stringify(n)}]`):(r.length&&r.push("."),r.push(n));return r.join("")}function Li(e){let r=[],n=[...e.issues].sort((o,t)=>o.path.length-t.path.length);for(let o of n)r.push(`\u2716 ${o.message}`),o.path?.length&&r.push(` \u2192 at ${Sc(o.path)}`);return r.join(`
|
|
4
4
|
`)}var Hr=e=>(r,n,o,t)=>{let i=o?Object.assign(o,{async:!1}):{async:!1},a=r._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new Ne;if(a.issues.length){let s=new(t?.Err??e)(a.issues.map(c=>we(c,i,ce())));throw Gr(s,t?.callee),s}return a.value},Wr=Hr(vt),Br=e=>async(r,n,o,t)=>{let i=o?Object.assign(o,{async:!0}):{async:!0},a=r._zod.run({value:n,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){let s=new(t?.Err??e)(a.issues.map(c=>we(c,i,ce())));throw Gr(s,t?.callee),s}return a.value},Jr=Br(vt),Kr=e=>(r,n,o)=>{let t=o?{...o,async:!1}:{async:!1},i=r._zod.run({value:n,issues:[]},t);if(i instanceof Promise)throw new Ne;return i.issues.length?{success:!1,error:new(e??Bt)(i.issues.map(a=>we(a,t,ce())))}:{success:!0,data:i.value}},Fi=Kr(vt),Xr=e=>async(r,n,o)=>{let t=o?Object.assign(o,{async:!0}):{async:!0},i=r._zod.run({value:n,issues:[]},t);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>we(a,t,ce())))}:{success:!0,data:i.value}},Mi=Xr(vt);u();u();var ut={};it(ut,{_emoji:()=>kc,base64:()=>no,base64url:()=>Yr,bigint:()=>lo,boolean:()=>fo,browserEmail:()=>Uf,cidrv4:()=>to,cidrv6:()=>ro,cuid:()=>Vi,cuid2:()=>qi,date:()=>ao,datetime:()=>uo,domain:()=>Df,duration:()=>Ji,e164:()=>oo,email:()=>Xi,emoji:()=>Yi,extendedDuration:()=>jf,guid:()=>Ki,hostname:()=>io,html5Email:()=>Nf,integer:()=>po,ipv4:()=>Qi,ipv6:()=>eo,ksuid:()=>Wi,lowercase:()=>vo,nanoid:()=>Bi,null:()=>go,number:()=>mo,rfc5322Email:()=>Tf,string:()=>co,time:()=>so,ulid:()=>Gi,undefined:()=>ho,unicodeEmail:()=>Af,uppercase:()=>_o,uuid:()=>st,uuid4:()=>Ef,uuid6:()=>Of,uuid7:()=>Rf,xid:()=>Hi});u();var Vi=/^[cC][^\s-]{8,}$/,qi=/^[0-9a-z]+$/,Gi=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Hi=/^[0-9a-vA-V]{20}$/,Wi=/^[A-Za-z0-9]{27}$/,Bi=/^[a-zA-Z0-9_-]{21}$/,Ji=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,jf=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Ki=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,st=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/,Ef=st(4),Of=st(6),Rf=st(7),Xi=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Nf=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Tf=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Af=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Uf=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,kc="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Yi(){return new RegExp(kc,"u")}var Qi=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,eo=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,to=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,ro=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,no=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Yr=/^[A-Za-z0-9_-]*$/,io=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,Df=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,oo=/^\+(?:[0-9]){6,14}[0-9]$/,wc="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",ao=new RegExp(`^${wc}$`);function Ic(e){let r="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${r}`:e.precision===0?`${r}:[0-5]\\d`:`${r}:[0-5]\\d\\.\\d{${e.precision}}`:`${r}(?::[0-5]\\d(?:\\.\\d+)?)?`}function so(e){return new RegExp(`^${Ic(e)}$`)}function uo(e){let r=Ic({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-]\\d{2}:\\d{2})");let o=`${r}(?:${n.join("|")})`;return new RegExp(`^${wc}T(?:${o})$`)}var co=e=>{let r=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)},lo=/^\d+n?$/,po=/^\d+$/,mo=/^-?\d+(?:\.\d+)?/i,fo=/true|false/i,go=/null/i;var ho=/undefined/i;var vo=/^[^A-Z]*$/,_o=/^[^a-z]*$/;var se=d("$ZodCheck",(e,r)=>{var n;e._zod??(e._zod={}),e._zod.def=r,(n=e._zod).onattach??(n.onattach=[])}),jc={number:"number",bigint:"bigint",object:"date"},Qr=d("$ZodCheckLessThan",(e,r)=>{se.init(e,r);let n=jc[typeof r.value];e._zod.onattach.push(o=>{let t=o._zod.bag,i=(r.inclusive?t.maximum:t.exclusiveMaximum)??Number.POSITIVE_INFINITY;r.value<i&&(r.inclusive?t.maximum=r.value:t.exclusiveMaximum=r.value)}),e._zod.check=o=>{(r.inclusive?o.value<=r.value:o.value<r.value)||o.issues.push({origin:n,code:"too_big",maximum:r.value,input:o.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),en=d("$ZodCheckGreaterThan",(e,r)=>{se.init(e,r);let n=jc[typeof r.value];e._zod.onattach.push(o=>{let t=o._zod.bag,i=(r.inclusive?t.minimum:t.exclusiveMinimum)??Number.NEGATIVE_INFINITY;r.value>i&&(r.inclusive?t.minimum=r.value:t.exclusiveMinimum=r.value)}),e._zod.check=o=>{(r.inclusive?o.value>=r.value:o.value>r.value)||o.issues.push({origin:n,code:"too_small",minimum:r.value,input:o.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),$o=d("$ZodCheckMultipleOf",(e,r)=>{se.init(e,r),e._zod.onattach.push(n=>{var o;(o=n._zod.bag).multipleOf??(o.multipleOf=r.value)}),e._zod.check=n=>{if(typeof n.value!=typeof r.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%r.value===BigInt(0):Oi(n.value,r.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:r.value,input:n.value,inst:e,continue:!r.abort})}}),bo=d("$ZodCheckNumberFormat",(e,r)=>{se.init(e,r),r.format=r.format||"float64";let n=r.format?.includes("int"),o=n?"int":"number",[t,i]=Ui[r.format];e._zod.onattach.push(a=>{let s=a._zod.bag;s.format=r.format,s.minimum=t,s.maximum=i,n&&(s.pattern=po)}),e._zod.check=a=>{let s=a.value;if(n){if(!Number.isInteger(s)){a.issues.push({expected:o,format:r.format,code:"invalid_type",input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,continue:!r.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,continue:!r.abort});return}}s<t&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:t,inclusive:!0,inst:e,continue:!r.abort}),s>i&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:i,inst:e})}}),xo=d("$ZodCheckBigIntFormat",(e,r)=>{se.init(e,r);let[n,o]=Di[r.format];e._zod.onattach.push(t=>{let i=t._zod.bag;i.format=r.format,i.minimum=n,i.maximum=o}),e._zod.check=t=>{let i=t.value;i<n&&t.issues.push({origin:"bigint",input:i,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!r.abort}),i>o&&t.issues.push({origin:"bigint",input:i,code:"too_big",maximum:o,inst:e})}}),yo=d("$ZodCheckMaxSize",(e,r)=>{var n;se.init(e,r),(n=e._zod.def).when??(n.when=o=>{let t=o.value;return!Ye(t)&&t.size!==void 0}),e._zod.onattach.push(o=>{let t=o._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<t&&(o._zod.bag.maximum=r.maximum)}),e._zod.check=o=>{let t=o.value;t.size<=r.maximum||o.issues.push({origin:Ht(t),code:"too_big",maximum:r.maximum,input:t,inst:e,continue:!r.abort})}}),zo=d("$ZodCheckMinSize",(e,r)=>{var n;se.init(e,r),(n=e._zod.def).when??(n.when=o=>{let t=o.value;return!Ye(t)&&t.size!==void 0}),e._zod.onattach.push(o=>{let t=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>t&&(o._zod.bag.minimum=r.minimum)}),e._zod.check=o=>{let t=o.value;t.size>=r.minimum||o.issues.push({origin:Ht(t),code:"too_small",minimum:r.minimum,input:t,inst:e,continue:!r.abort})}}),So=d("$ZodCheckSizeEquals",(e,r)=>{var n;se.init(e,r),(n=e._zod.def).when??(n.when=o=>{let t=o.value;return!Ye(t)&&t.size!==void 0}),e._zod.onattach.push(o=>{let t=o._zod.bag;t.minimum=r.size,t.maximum=r.size,t.size=r.size}),e._zod.check=o=>{let t=o.value,i=t.size;if(i===r.size)return;let a=i>r.size;o.issues.push({origin:Ht(t),...a?{code:"too_big",maximum:r.size}:{code:"too_small",minimum:r.size},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!r.abort})}}),ko=d("$ZodCheckMaxLength",(e,r)=>{var n;se.init(e,r),(n=e._zod.def).when??(n.when=o=>{let t=o.value;return!Ye(t)&&t.length!==void 0}),e._zod.onattach.push(o=>{let t=o._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<t&&(o._zod.bag.maximum=r.maximum)}),e._zod.check=o=>{let t=o.value;if(t.length<=r.maximum)return;let a=Wt(t);o.issues.push({origin:a,code:"too_big",maximum:r.maximum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),wo=d("$ZodCheckMinLength",(e,r)=>{var n;se.init(e,r),(n=e._zod.def).when??(n.when=o=>{let t=o.value;return!Ye(t)&&t.length!==void 0}),e._zod.onattach.push(o=>{let t=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>t&&(o._zod.bag.minimum=r.minimum)}),e._zod.check=o=>{let t=o.value;if(t.length>=r.minimum)return;let a=Wt(t);o.issues.push({origin:a,code:"too_small",minimum:r.minimum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),Io=d("$ZodCheckLengthEquals",(e,r)=>{var n;se.init(e,r),(n=e._zod.def).when??(n.when=o=>{let t=o.value;return!Ye(t)&&t.length!==void 0}),e._zod.onattach.push(o=>{let t=o._zod.bag;t.minimum=r.length,t.maximum=r.length,t.length=r.length}),e._zod.check=o=>{let t=o.value,i=t.length;if(i===r.length)return;let a=Wt(t),s=i>r.length;o.issues.push({origin:a,...s?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!r.abort})}}),_t=d("$ZodCheckStringFormat",(e,r)=>{var n,o;se.init(e,r),e._zod.onattach.push(t=>{let i=t._zod.bag;i.format=r.format,r.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(r.pattern))}),r.pattern?(n=e._zod).check??(n.check=t=>{r.pattern.lastIndex=0,!r.pattern.test(t.value)&&t.issues.push({origin:"string",code:"invalid_format",format:r.format,input:t.value,...r.pattern?{pattern:r.pattern.toString()}:{},inst:e,continue:!r.abort})}):(o=e._zod).check??(o.check=()=>{})}),Po=d("$ZodCheckRegex",(e,r)=>{_t.init(e,r),e._zod.check=n=>{r.pattern.lastIndex=0,!r.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:r.pattern.toString(),inst:e,continue:!r.abort})}}),jo=d("$ZodCheckLowerCase",(e,r)=>{r.pattern??(r.pattern=vo),_t.init(e,r)}),Eo=d("$ZodCheckUpperCase",(e,r)=>{r.pattern??(r.pattern=_o),_t.init(e,r)}),Oo=d("$ZodCheckIncludes",(e,r)=>{se.init(e,r);let n=Fe(r.includes),o=new RegExp(typeof r.position=="number"?`^.{${r.position}}${n}`:n);r.pattern=o,e._zod.onattach.push(t=>{let i=t._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=t=>{t.value.includes(r.includes,r.position)||t.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:r.includes,input:t.value,inst:e,continue:!r.abort})}}),Ro=d("$ZodCheckStartsWith",(e,r)=>{se.init(e,r);let n=new RegExp(`^${Fe(r.prefix)}.*`);r.pattern??(r.pattern=n),e._zod.onattach.push(o=>{let t=o._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=o=>{o.value.startsWith(r.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:r.prefix,input:o.value,inst:e,continue:!r.abort})}}),No=d("$ZodCheckEndsWith",(e,r)=>{se.init(e,r);let n=new RegExp(`.*${Fe(r.suffix)}$`);r.pattern??(r.pattern=n),e._zod.onattach.push(o=>{let t=o._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=o=>{o.value.endsWith(r.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:r.suffix,input:o.value,inst:e,continue:!r.abort})}});function Pc(e,r,n){e.issues.length&&r.issues.push(...ye(n,e.issues))}var To=d("$ZodCheckProperty",(e,r)=>{se.init(e,r),e._zod.check=n=>{let o=r.schema._zod.run({value:n.value[r.property],issues:[]},{});if(o instanceof Promise)return o.then(t=>Pc(t,n,r.property));Pc(o,n,r.property)}}),Ao=d("$ZodCheckMimeType",(e,r)=>{se.init(e,r);let n=new Set(r.mime);e._zod.onattach.push(o=>{o._zod.bag.mime=r.mime}),e._zod.check=o=>{n.has(o.value.type)||o.issues.push({code:"invalid_value",values:r.mime,input:o.value.type,inst:e})}}),Uo=d("$ZodCheckOverwrite",(e,r)=>{se.init(e,r),e._zod.check=n=>{n.value=r.tx(n.value)}});u();var Xt=class{constructor(r=[]){this.content=[],this.indent=0,this&&(this.args=r)}indented(r){this.indent+=1,r(this),this.indent-=1}write(r){if(typeof r=="function"){r(this,{execution:"sync"}),r(this,{execution:"async"});return}let o=r.split(`
|
|
5
5
|
`).filter(a=>a),t=Math.min(...o.map(a=>a.length-a.trimStart().length)),i=o.map(a=>a.slice(t)).map(a=>" ".repeat(this.indent*2)+a);for(let a of i)this.content.push(a)}compile(){let r=Function,n=this?.args,t=[...(this?.content??[""]).map(i=>` ${i}`)];return new r(...n,t.join(`
|
|
6
6
|
`))}};u();var Do={major:4,minor:0,patch:0};var C=d("$ZodType",(e,r)=>{var n;e??(e={}),e._zod.def=r,e._zod.bag=e._zod.bag||{},e._zod.version=Do;let o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(let t of o)for(let i of t._zod.onattach)i(e);if(o.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(i,a,s)=>{let c=at(i),p;for(let g of a){if(g._zod.def.when){if(!g._zod.def.when(i))continue}else if(c)continue;let m=i.issues.length,x=g._zod.check(i);if(x instanceof Promise&&s?.async===!1)throw new Ne;if(p||x instanceof Promise)p=(p??Promise.resolve()).then(async()=>{await x,i.issues.length!==m&&(c||(c=at(i,m)))});else{if(i.issues.length===m)continue;c||(c=at(i,m))}}return p?p.then(()=>i):i};e._zod.run=(i,a)=>{let s=e._zod.parse(i,a);if(s instanceof Promise){if(a.async===!1)throw new Ne;return s.then(c=>t(c,o,a))}return t(s,o,a)}}e["~standard"]={validate:t=>{try{let i=Fi(e,t);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return Mi(e,t).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}}),ct=d("$ZodString",(e,r)=>{C.init(e,r),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??co(e._zod.bag),e._zod.parse=(n,o)=>{if(r.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),Y=d("$ZodStringFormat",(e,r)=>{_t.init(e,r),ct.init(e,r)}),Zo=d("$ZodGUID",(e,r)=>{r.pattern??(r.pattern=Ki),Y.init(e,r)}),Lo=d("$ZodUUID",(e,r)=>{if(r.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[r.version];if(o===void 0)throw new Error(`Invalid UUID version: "${r.version}"`);r.pattern??(r.pattern=st(o))}else r.pattern??(r.pattern=st());Y.init(e,r)}),Fo=d("$ZodEmail",(e,r)=>{r.pattern??(r.pattern=Xi),Y.init(e,r)}),Mo=d("$ZodURL",(e,r)=>{Y.init(e,r),e._zod.check=n=>{try{let o=n.value,t=new URL(o),i=t.href;r.hostname&&(r.hostname.lastIndex=0,r.hostname.test(t.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:io.source,input:n.value,inst:e,continue:!r.abort})),r.protocol&&(r.protocol.lastIndex=0,r.protocol.test(t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:r.protocol.source,input:n.value,inst:e,continue:!r.abort})),!o.endsWith("/")&&i.endsWith("/")?n.value=i.slice(0,-1):n.value=i;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!r.abort})}}}),Vo=d("$ZodEmoji",(e,r)=>{r.pattern??(r.pattern=Yi()),Y.init(e,r)}),qo=d("$ZodNanoID",(e,r)=>{r.pattern??(r.pattern=Bi),Y.init(e,r)}),Go=d("$ZodCUID",(e,r)=>{r.pattern??(r.pattern=Vi),Y.init(e,r)}),Ho=d("$ZodCUID2",(e,r)=>{r.pattern??(r.pattern=qi),Y.init(e,r)}),Wo=d("$ZodULID",(e,r)=>{r.pattern??(r.pattern=Gi),Y.init(e,r)}),Bo=d("$ZodXID",(e,r)=>{r.pattern??(r.pattern=Hi),Y.init(e,r)}),Jo=d("$ZodKSUID",(e,r)=>{r.pattern??(r.pattern=Wi),Y.init(e,r)}),Ko=d("$ZodISODateTime",(e,r)=>{r.pattern??(r.pattern=uo(r)),Y.init(e,r)}),Xo=d("$ZodISODate",(e,r)=>{r.pattern??(r.pattern=ao),Y.init(e,r)}),Yo=d("$ZodISOTime",(e,r)=>{r.pattern??(r.pattern=so(r)),Y.init(e,r)}),Qo=d("$ZodISODuration",(e,r)=>{r.pattern??(r.pattern=Ji),Y.init(e,r)}),ea=d("$ZodIPv4",(e,r)=>{r.pattern??(r.pattern=Qi),Y.init(e,r),e._zod.onattach.push(n=>{let o=n._zod.bag;o.format="ipv4"})}),ta=d("$ZodIPv6",(e,r)=>{r.pattern??(r.pattern=eo),Y.init(e,r),e._zod.onattach.push(n=>{let o=n._zod.bag;o.format="ipv6"}),e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!r.abort})}}}),ra=d("$ZodCIDRv4",(e,r)=>{r.pattern??(r.pattern=to),Y.init(e,r)}),na=d("$ZodCIDRv6",(e,r)=>{r.pattern??(r.pattern=ro),Y.init(e,r),e._zod.check=n=>{let[o,t]=n.value.split("/");try{if(!t)throw new Error;let i=Number(t);if(`${i}`!==t)throw new Error;if(i<0||i>128)throw new Error;new URL(`http://[${o}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!r.abort})}}});function ia(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var oa=d("$ZodBase64",(e,r)=>{r.pattern??(r.pattern=no),Y.init(e,r),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64"}),e._zod.check=n=>{ia(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!r.abort})}});function Mc(e){if(!Yr.test(e))return!1;let r=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),n=r.padEnd(Math.ceil(r.length/4)*4,"=");return ia(n)}var aa=d("$ZodBase64URL",(e,r)=>{r.pattern??(r.pattern=Yr),Y.init(e,r),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64url"}),e._zod.check=n=>{Mc(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!r.abort})}}),sa=d("$ZodE164",(e,r)=>{r.pattern??(r.pattern=oo),Y.init(e,r)});function Vc(e,r=null){try{let n=e.split(".");if(n.length!==3)return!1;let[o]=n;if(!o)return!1;let t=JSON.parse(atob(o));return!("typ"in t&&t?.typ!=="JWT"||!t.alg||r&&(!("alg"in t)||t.alg!==r))}catch{return!1}}var ua=d("$ZodJWT",(e,r)=>{Y.init(e,r),e._zod.check=n=>{Vc(n.value,r.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!r.abort})}}),ca=d("$ZodCustomStringFormat",(e,r)=>{Y.init(e,r),e._zod.check=n=>{r.fn(n.value)||n.issues.push({code:"invalid_format",format:r.format,input:n.value,inst:e,continue:!r.abort})}}),nn=d("$ZodNumber",(e,r)=>{C.init(e,r),e._zod.pattern=e._zod.bag.pattern??mo,e._zod.parse=(n,o)=>{if(r.coerce)try{n.value=Number(n.value)}catch{}let t=n.value;if(typeof t=="number"&&!Number.isNaN(t)&&Number.isFinite(t))return n;let i=typeof t=="number"?Number.isNaN(t)?"NaN":Number.isFinite(t)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:t,inst:e,...i?{received:i}:{}}),n}}),la=d("$ZodNumber",(e,r)=>{bo.init(e,r),nn.init(e,r)}),Yt=d("$ZodBoolean",(e,r)=>{C.init(e,r),e._zod.pattern=fo,e._zod.parse=(n,o)=>{if(r.coerce)try{n.value=!!n.value}catch{}let t=n.value;return typeof t=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:t,inst:e}),n}}),on=d("$ZodBigInt",(e,r)=>{C.init(e,r),e._zod.pattern=lo,e._zod.parse=(n,o)=>{if(r.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),da=d("$ZodBigInt",(e,r)=>{xo.init(e,r),on.init(e,r)}),pa=d("$ZodSymbol",(e,r)=>{C.init(e,r),e._zod.parse=(n,o)=>{let t=n.value;return typeof t=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:t,inst:e}),n}}),ma=d("$ZodUndefined",(e,r)=>{C.init(e,r),e._zod.pattern=ho,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(n,o)=>{let t=n.value;return typeof t>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:t,inst:e}),n}}),fa=d("$ZodNull",(e,r)=>{C.init(e,r),e._zod.pattern=go,e._zod.values=new Set([null]),e._zod.parse=(n,o)=>{let t=n.value;return t===null||n.issues.push({expected:"null",code:"invalid_type",input:t,inst:e}),n}}),ga=d("$ZodAny",(e,r)=>{C.init(e,r),e._zod.parse=n=>n}),$t=d("$ZodUnknown",(e,r)=>{C.init(e,r),e._zod.parse=n=>n}),ha=d("$ZodNever",(e,r)=>{C.init(e,r),e._zod.parse=(n,o)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),va=d("$ZodVoid",(e,r)=>{C.init(e,r),e._zod.parse=(n,o)=>{let t=n.value;return typeof t>"u"||n.issues.push({expected:"void",code:"invalid_type",input:t,inst:e}),n}}),_a=d("$ZodDate",(e,r)=>{C.init(e,r),e._zod.parse=(n,o)=>{if(r.coerce)try{n.value=new Date(n.value)}catch{}let t=n.value,i=t instanceof Date;return i&&!Number.isNaN(t.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:t,...i?{received:"Invalid Date"}:{},inst:e}),n}});function Oc(e,r,n){e.issues.length&&r.issues.push(...ye(n,e.issues)),r.value[n]=e.value}var Qt=d("$ZodArray",(e,r)=>{C.init(e,r),e._zod.parse=(n,o)=>{let t=n.value;if(!Array.isArray(t))return n.issues.push({expected:"array",code:"invalid_type",input:t,inst:e}),n;n.value=Array(t.length);let i=[];for(let a=0;a<t.length;a++){let s=t[a],c=r.element._zod.run({value:s,issues:[]},o);c instanceof Promise?i.push(c.then(p=>Oc(p,n,a))):Oc(c,n,a)}return i.length?Promise.all(i).then(()=>n):n}});function tn(e,r,n){e.issues.length&&r.issues.push(...ye(n,e.issues)),r.value[n]=e.value}function Rc(e,r,n,o){e.issues.length?o[n]===void 0?n in o?r.value[n]=void 0:r.value[n]=e.value:r.issues.push(...ye(n,e.issues)):e.value===void 0?n in o&&(r.value[n]=void 0):r.value[n]=e.value}var $a=d("$ZodObject",(e,r)=>{C.init(e,r);let n=Vt(()=>{let m=Object.keys(r.shape);for(let y of m)if(!(r.shape[y]instanceof C))throw new Error(`Invalid element at key "${y}": expected a Zod schema`);let x=Ai(r.shape);return{shape:r.shape,keys:m,keySet:new Set(m),numKeys:m.length,optionalKeys:new Set(x)}});H(e._zod,"propValues",()=>{let m=r.shape,x={};for(let y in m){let l=m[y]._zod;if(l.values){x[y]??(x[y]=new Set);for(let _ of l.values)x[y].add(_)}}return x});let o=m=>{let x=new Xt(["shape","payload","ctx"]),y=n.value,l=I=>{let E=ot(I);return`shape[${E}]._zod.run({ value: input[${E}], issues: [] }, ctx)`};x.write("const input = payload.value;");let _=Object.create(null),z=0;for(let I of y.keys)_[I]=`key_${z++}`;x.write("const newResult = {}");for(let I of y.keys)if(y.optionalKeys.has(I)){let E=_[I];x.write(`const ${E} = ${l(I)};`);let D=ot(I);x.write(`
|
|
@@ -33,7 +33,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
33
33
|
`}var Xn=Tu.platform==="win32"?["APPDATA","HOMEDRIVE","HOMEPATH","LOCALAPPDATA","PATH","PROCESSOR_ARCHITECTURE","SYSTEMDRIVE","SYSTEMROOT","TEMP","USERNAME","USERPROFILE","PROGRAMFILES"]:["HOME","LOGNAME","PATH","SHELL","TERM","USER"];function Au(){let e={};for(let r of Xn){let n=Tu.env[r];n!==void 0&&(n.startsWith("()")||(e[r]=n))}return e}var Ep=class{constructor(r){this._readBuffer=new Kn,this._stderrStream=null,this._serverParams=r,(r.stderr==="pipe"||r.stderr==="overlapped")&&(this._stderrStream=new v$)}async start(){if(this._process)throw new Error("StdioClientTransport already started! If using Client class, note that connect() calls start() automatically.");return new Promise((r,n)=>{this._process=(0,Op.default)(this._serverParams.command,this._serverParams.args??[],{env:{...Au(),...this._serverParams.env},stdio:["pipe","pipe",this._serverParams.stderr??"inherit"],shell:!1,windowsHide:Tu.platform==="win32",cwd:this._serverParams.cwd}),this._process.on("error",o=>{n(o),this.onerror?.(o)}),this._process.on("spawn",()=>{r()}),this._process.on("close",o=>{this._process=void 0,this.onclose?.()}),this._process.stdin?.on("error",o=>{this.onerror?.(o)}),this._process.stdout?.on("data",o=>{this._readBuffer.append(o),this.processReadBuffer()}),this._process.stdout?.on("error",o=>{this.onerror?.(o)}),this._stderrStream&&this._process.stderr&&this._process.stderr.pipe(this._stderrStream)})}get stderr(){return this._stderrStream?this._stderrStream:this._process?.stderr??null}get pid(){return this._process?.pid??null}processReadBuffer(){for(;;)try{let r=this._readBuffer.readMessage();if(r===null)break;this.onmessage?.(r)}catch(r){this.onerror?.(r)}}async close(){if(this._process){let r=this._process;this._process=void 0;let n=new Promise(o=>{r.once("close",()=>{o()})});try{r.stdin?.end()}catch{}if(await Promise.race([n,new Promise(o=>setTimeout(o,2e3).unref())]),r.exitCode===null){try{r.kill("SIGTERM")}catch{}await Promise.race([n,new Promise(o=>setTimeout(o,2e3).unref())])}if(r.exitCode===null)try{r.kill("SIGKILL")}catch{}}this._readBuffer.clear()}send(r){return new Promise(n=>{if(!this._process?.stdin)throw new Error("Not connected");let o=jp(r);this._process.stdin.write(o)?n():this._process.stdin.once("drain",n)})}};u();u();function _$(e,r,n){let o=/\$(?:(\w+)|{([^}]+)})/g;return e.replace(o,(t,i,a)=>{let s=i||a,c=r&&typeof r[s]=="string"?r[s]:process?.env?.[s];return typeof c!="string"||n?.(s,c)?t:c})}function Rp(e,r,n){return Uu(e,new WeakSet,r,n)}function Uu(e,r,n,o){if(e==null||typeof e=="boolean"||typeof e=="number")return e;if(typeof e=="string")return _$(e,n,o);if(Array.isArray(e)){if(r.has(e))return[...e];r.add(e);let t=e.map(i=>Uu(i,r,n,o));return r.delete(e),t}if(typeof e=="object"){if(r.has(e))return{...e};r.add(e);let t={...e};for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&(t[i]=Uu(t[i],r,n,o));return r.delete(e),t}return e}u();var Np=";",Du,Tp;function $$(e,r){let n=[],o=new Set;for(let t of r){let i=e[t];if(i!==void 0)for(let a of i.split(Np))o.has(a)||(o.add(a),n.push(a))}return n.length>0?n.join(Np):void 0}function b$(e,r){return r.map(n=>`${n}=${e[n]??""}`).join("\0")}function x$(e){return[...e].sort((r,n)=>r==="PATH"?-1:n==="PATH"?1:r.localeCompare(n))}function Ap(e){if(process.platform!=="win32")return e;let r={...e},n=Object.keys(r).filter(a=>a.toLowerCase()==="path");if(n.length===0)return r;let o=x$(n),t=b$(r,o),i=t===Du?Tp:$$(r,o);t!==Du&&(Du=t,Tp=i);for(let a of n)a!=="PATH"&&delete r[a];return i!==void 0&&(r.PATH=i),r}var y$=new Set(["MATILDA_API_KEY","LLM_API_KEY"]),Cu=new Set(["OPENAI_API_KEY"]);function Rt(e,r){return r==="win32"?e.toUpperCase():e}function Dp(e,r=process.platform){return y$.has(Rt(e,r))}function Vw(e,r=process.platform){for(let n of Object.values(e??{}))if(Array.isArray(n))for(let o of n)typeof o?.envKey=="string"&&(Cu.add(Rt(o.envKey,r)),bc(process.env[o.envKey]))}function Up(e,r=process.platform){return Dp(e,r)||Cu.has(Rt(e,r))}function z$(e,r,n=process.platform){return ki(r)||Cu.has(Rt(e,n))&&yc(r)}function S$(e,r,n=process.env,o=process.platform){return Up(e,o)||ki(r)?!0:Object.entries(n).some(([t,i])=>!!i&&Up(t,o)&&xc(r,i))}function k$(e=process.env,r=process.platform){let n={...e};for(let o of Object.keys(n))Dp(o,r)&&delete n[o];return n}function Er(e=process.env,r=process.platform){let n=k$(e,r);for(let[o,t]of Object.entries(n))z$(o,t,r)&&delete n[o];return n}function qw(e={}){let r=Ap(Er());return{...r,...Rp(e,r,(n,o)=>!S$(n,o)||!(n in r))}}function Gw(e=Er(Au()),r=process.platform){let n=new Map(Xn.map(t=>[Rt(t,r),t])),o=Object.fromEntries(Xn.map(t=>[t,void 0]));for(let[t,i]of Object.entries(e))o[n.get(Rt(t,r))??t]=i;return o}u();import X from"node:path";import Je from"node:fs";import{spawn as $x}from"node:child_process";var Lm=qr(Tm(),1);u();import gx from"node:crypto";var $e=new Map,Ze=new Map,hx=256,vx=5e4,Am=(e,r,n,o,t=!0)=>{let i=gx.createHash("sha256");return i.update(e),i.update(r),i.update(t?"gitignore":"no-gitignore"),n!==void 0&&i.update(String(n)),o!==void 0&&i.update(`maxFiles:${o}`),i.digest("hex")},Um=e=>{let r=$e.get(e);return r!==void 0&&($e.delete(e),$e.set(e,r)),r},fi=(e,r,n)=>{for(Ze.has(e)&&clearTimeout(Ze.get(e));$e.size>=hx&&!$e.has(e);){let i=$e.keys().next().value;i&&($e.delete(i),Ze.has(i)&&(clearTimeout(Ze.get(i)),Ze.delete(i)))}let o=0;for(let[i,a]of $e)i!==e&&(o+=a.length);for(;o+r.length>vx&&$e.size>0;){let i,a=0;for(let[s,c]of $e)s!==e&&c.length>a&&(a=c.length,i=s);if(i)o-=$e.get(i).length,$e.delete(i),Ze.has(i)&&(clearTimeout(Ze.get(i)),Ze.delete(i));else break}$e.has(e)&&$e.delete(e),$e.set(e,r);let t=setTimeout(()=>{$e.delete(e),Ze.delete(e)},n);Ze.set(e,t)};function Dr(e){return e.split(X.sep).join(X.posix.sep)}function ic(e,r=!1){let n=Dr(e);for(;n.startsWith("./");)n=n.slice(2);return r?n.replace(/\/+$/,""):n}function Fm(){return process.platform==="win32"||process.platform==="darwin"}function bx(e,r){let n=e.replace(/\/+$/,""),o=r.replace(/\/+$/,"");return n===o?!0:Fm()?n.toLowerCase()===o.toLowerCase():!1}function xx(e,r){let n=`${r}/`;if(e.startsWith(n)){let o=e.slice(n.length);return o===""?null:o}if(Fm()){let o=`${r.toLowerCase()}/`;if(e.toLowerCase().startsWith(o)){let i=e.slice(o.length);return i===""?null:i}}return null}var yx=5e3,zx=3e4,Sx=200,kx=50,Tr=4096,sc=new Map;function wx(e){for(;e.size>Sx;){let r=e.keys().next().value;if(r===void 0)break;e.delete(r)}}function Ix(e,r){let n=e.get(r);if(n){if(Date.now()-n.cachedAt>zx){e.delete(r);return}return n.value}}function Dt(e,r,n){e.set(r,{value:n,cachedAt:Date.now()}),wx(e)}function Px(e){let r=e.trim();return r.length<=Tr?r:`${r.slice(0,Tr)}\u2026`}function jx(e){return e.map(r=>/^[A-Za-z]:[\\/]/.test(r)||r.startsWith("/")&&r.length>1?"<abs-path>":r.includes(X.sep)&&r.length>32?"<path>":r).join(" ")}function gi(e,r,n,o){let t=[`[crawler] ${e}:`,r,jx(n)];o.code!==void 0&&o.code!==null&&t.push(`exit=${String(o.code)}`),o.stderr&&o.stderr.length>0&&t.push(Px(o.stderr)),console.warn(t.join(" "))}function _i(e){return["-c","core.fsmonitor=false","-c","core.untrackedCache=false","-c","core.quotePath=false",...e]}function hi(e){return Dr(X.resolve(e))}function Ex(e){return[hi(e.crawlDirectory),hi(e.cwd),e.ignore.getFingerprint(),e.useGitignore===!1?"no-gitignore":"gitignore",e.maxDepth===void 0?"undefined":String(e.maxDepth),e.maxFiles===void 0?"undefined":String(e.maxFiles)].join("|")}function Dm(e){let r=sc.get(e);return r===void 0?!1:Date.now()-r<yx}function uc(e){sc.set(e,Date.now())}var rt=new Map,mt=new Map;function Ox(){for(;rt.size>=kx;){let e=rt.keys().next().value;if(e===void 0)break;rt.delete(e),sc.delete(e)}}function Rx(e){let r=hi(e),n=Ix(mt,r);if(n!==void 0)return n;let o=e;for(;o;){let t=X.join(o,".git");try{let a=Je.statSync(t);if(a.isDirectory())return Dt(mt,r,t),t;if(a.isFile()){let c=Je.readFileSync(t,"utf8").trim().match(/^gitdir:\s*(.+)$/i);if(!c)return Dt(mt,r,null),null;let p=c[1].trim(),g=X.isAbsolute(p)?X.resolve(p):X.resolve(o,p);try{g=Je.realpathSync(g);try{Je.statSync(X.join(g,"HEAD"))}catch{Je.statSync(X.join(g,"index"))}}catch{return Dt(mt,r,null),null}return Dt(mt,r,g),g}}catch(a){if(a.code!=="ENOENT")return Dt(mt,r,null),null}let i=X.dirname(o);if(i===o)break;o=i}return Dt(mt,r,null),null}function $i(e){try{let r=Rx(e);if(!r)return null;let n=X.join(r,"index");return Je.statSync(n).mtimeMs}catch{}return null}function Nx(e,r){let n=$i(r),o=rt.get(e);return o?n!==null&&o.gitRootMtimeMs!==null?n<o.gitRootMtimeMs||!Dm(e):n===null&&o.gitRootMtimeMs===null?!Dm(e):!0:!0}function Tx(e,r){let n=rt.get(e);if(!n)return;let o=$i(r);rt.set(e,{...n,gitRootMtimeMs:o})}function cc(e,r,n,o,t){Ox();let i=$i(r);rt.set(e,{gitRootMtimeMs:i,untrackedFingerprint:o===void 0?null:vi(o),deletedFingerprint:t===void 0?null:vi(t),fileList:n})}function vi(e){let r=5381;for(let n of e){for(let o=0;o<n.length;o++)r=(r<<5)+r+n.charCodeAt(o)>>>0;r=(r<<5)+r+10>>>0}return`${e.length}:${r}`}function Ax(e,r=[0]){return e!==null&&r.includes(e)}function Ux(e,r,n,o=2e4,t){let i=t?.collectLines!==!1;return new Promise(a=>{let s=[],c=!1,p=!1,g=!1,m="",x=0,y=(A,q)=>{c||(c=!0,a({success:A,lines:q}))},l="",_;try{_=$x(e,r,{cwd:n,windowsHide:!0,stdio:["ignore","pipe","pipe"],env:e==="git"?{...Er(),GIT_DIR:void 0,GIT_WORK_TREE:void 0,GIT_INDEX_FILE:void 0}:Er()})}catch(A){t?.silentOnFailure||gi("command spawn threw",e,r,{stderr:A instanceof Error?A.message:String(A)}),y(!1,[]);return}_.stderr&&(_.stderr.setEncoding("utf8"),_.stderr.on("data",A=>{l.length<Tr&&(l+=A,l.length>Tr&&(l=l.slice(0,Tr)))}));let z=()=>{if(!_.killed)try{_.kill()}catch{}},R=A=>{let q=A.endsWith("\r")?A.slice(0,-1):A;if(q.length===0)return!0;if(t?.onLine&&!t.onLine(q))return g=!0,z(),!1;i&&s.push(q),x++;let W=t?.yieldEveryLines;return W!==void 0&&W>0&&x%W===0&&_.stdout&&typeof _.stdout.pause=="function"&&(_.stdout.pause(),setImmediate(()=>{try{_.stdout?.resume()}catch{}})),!0},I=A=>{if(m+=A,(t?.recordDelimiter??`
|
|
34
34
|
`)==="\0"){for(;;){let W=m.indexOf("\0");if(W===-1)break;let U=m.slice(0,W);if(m=m.slice(W+1),!R(U))break}return}for(;;){let W=m.indexOf(`
|
|
35
35
|
`);if(W===-1)break;let U=m.slice(0,W);if(m=m.slice(W+1),!R(U))break}},E=()=>{m.length!==0&&(R(m),m="")},D;o>0&&(D=setTimeout(()=>{p=!0,z()},o)),_.stdout.setEncoding("utf8"),_.stdout.on("data",A=>{I(A)}),_.on("error",A=>{D&&clearTimeout(D),t?.silentOnFailure||gi("command spawn failed",e,r,{stderr:`${String(A.code??"")} ${String(A)}`.trim()}),y(!1,[])}),_.on("close",A=>{if(D&&clearTimeout(D),g){y(!0,s);return}if(p){t?.silentOnFailure||gi("command timed out",e,r,{code:A,stderr:l}),y(!1,[]);return}E();let q=Ax(A,t?.successExitCodes);!q&&!t?.silentOnFailure&&gi("command failed",e,r,{code:A,stderr:l}),y(q,q?s:[])})})}var Cr=Ux;function Zr(e){return Dr(e)}function ft(e,r){let n=X.resolve(e),o=X.resolve(r),t=n,i=o;try{t=Je.realpathSync(n)}catch{}try{i=Je.realpathSync(o)}catch{}let a=X.relative(t,i),s=Dr(a);return s===""?".":s}function Ur(e){return!e||e==="."||X.posix.isAbsolute(e)?!1:e!==".."&&!e.startsWith("../")&&!e.includes("/../")}function Dx(e,r){let n=X.resolve(e),o=X.isAbsolute(r)?r:X.join(n,r),t=X.relative(n,o);return t=Dr(t),!t||t.startsWith("..")||X.posix.isAbsolute(t)?null:Ur(t)?t:null}function Mm(e){if(e===".")return-1;let r=e.endsWith("/")?e.slice(0,-1):e;return r.length===0?-1:r.split("/").length-1}function Vm(e,r){if(e==="."||r===""||r===".")return e;let n=r.endsWith("/")?r:`${r}/`;return e===r?".":e.startsWith(n)?e.slice(n.length)||".":e}function lc(e,r,n,o){let t=r.maxDepth,i=r.ignore.getDirectoryFilter(),a=r.ignore.getFileFilter();return e.filter(s=>{if(t!==void 0&&s!=="."){let c=n?Vm(s,n):s;if(Mm(c)>t)return!1}return s==="."?!0:s.endsWith("/")?Ur(s.slice(0,-1))?!i(s):!1:o?.has(s)?!0:!Ur(s)||qm(s,i)?!1:!a(s)})}function qm(e,r){let n=e.split("/"),o="";for(let t=0;t<n.length-1;t++)if(o=o?`${o}/${n[t]}`:n[t],r(`${o}/`))return!0;return!1}var Gm=1e3;async function Cx(e){e>0&&e%Gm===0&&await new Promise(r=>setImmediate(r))}async function Hm(e){let r=await Cr("git",_i(["rev-parse","--show-toplevel"]),e,5e3,{silentOnFailure:!0});return!r.success||r.lines.length===0?null:Zr(r.lines[0])}function oc(e,r,n){return!(!Ur(e)||qm(e,r)||n(e))}function Ar(e,r){return r!==void 0&&e>=r}function ac(e,r,n){if(n===void 0)return!0;let o=Vm(e,r);return Mm(o)<=n}async function Wm(e,r,n){let o=["--literal-pathspecs","ls-files","-z","--others"];n&&o.push("--exclude-standard"),r&&r!=="."&&o.push(r);let t=await Cr("git",_i(o),e,1e4,{silentOnFailure:!0,recordDelimiter:"\0"});return t.success?t.lines.map(i=>Zr(i)):null}async function Bm(e,r){let n=["--literal-pathspecs","ls-files","-z","--deleted"];r&&r!=="."&&n.push(r);let o=await Cr("git",_i(n),e,1e4,{silentOnFailure:!0,recordDelimiter:"\0"});return o.success?o.lines.map(t=>Zr(t)):null}async function Cm(e,r,n){if(e.gitRootMtimeMs===null&&e.untrackedFingerprint===null&&e.deletedFingerprint===null)return{changed:!1};let o=await Hm(r);if(e.untrackedFingerprint===null&&e.deletedFingerprint===null)return o?{changed:!0}:{changed:!1};if(!o)return{changed:!0};let t=ft(o,r),[i,a]=await Promise.all([Wm(o,t,n),Bm(o,t)]);return i===null||a===null?{changed:!0}:vi(i)!==e.untrackedFingerprint||vi(a)!==e.deletedFingerprint?{changed:!0,prefetch:{gitRoot:o,untrackedFiles:i,deletedFiles:a}}:{changed:!1}}function Zm(e,r,n,o,t){let i=ic(e,!1);if(r&&r!=="."){let a=xx(i,o);if(a!==null)return X.posix.join(t,a);if(bx(i,o))return`${i.replace(/\/+$/,"")}/`;let s=i.replace(/\/+$/,"");return X.posix.join(t,s)}return X.posix.join(t,i.replace(/\/+$/,""))}async function Zx(e,r,n,o,t){let i,a,s;if(t)i=t.gitRoot,a=t.untrackedFiles,s=t.deletedFiles;else{if(i=await Hm(r),!i)return{success:!1,files:[],gitRepoListingFailed:!1};let T=ft(i,r),h=await Promise.all([Wm(i,T,o.useGitignore!==!1),Bm(i,T)]);a=h[0],s=h[1]}if(!i)return{success:!1,files:[],gitRepoListingFailed:!1};if(!t&&(a===null||s===null))return{success:!1,files:[],gitRepoListingFailed:!0};let c=ft(n,r),p=ft(i,r),g=ic(p,!0),m=ic(c,!0),x=o.ignore.getDirectoryFilter(),y=o.ignore.getFileFilter(),l=["--literal-pathspecs","ls-files","--cached","--recurse-submodules"];l.push("-t"),p&&p!=="."&&l.push(p);let _=new Set(s),z=new Set,R=0,I=T=>T.length===0?null:T.length>=3&&/\s/.test(T[1])&&/[A-Za-z]/.test(T[0])?{status:T[0].toUpperCase(),filePath:T.slice(2)}:{status:null,filePath:T},E=T=>{if(Ar(R,o.maxFiles))return!1;let h=I(T);if(!h||h.status==="S")return!0;let de=Zr(h.filePath);if(_.has(de))return!0;let ie;try{ie=Je.lstatSync(X.join(i,...de.split("/")))}catch{return!0}if(ie.isDirectory()||p&&p!=="."&&de===p)return!0;let te=Zm(de,p,c,g,m);if(!oc(te,x,y))return!0;let $=z.size;return z.add(te),z.size>$&&ac(te,c,o.maxDepth)&&R++,!Ar(R,o.maxFiles)},D=await Cr("git",_i(l),i,2e4,{collectLines:!1,onLine:E,yieldEveryLines:Gm});if(!D.success)return{success:!1,files:[],gitRepoListingFailed:!0};for(let T of D.lines)if(!E(T))break;let A=0;if(a!==null)for(let T of a){if(Ar(R,o.maxFiles))break;await Cx(A++);let h=Zm(T,p,c,g,m);oc(h,x,y)&&(z.has(h)||(z.add(h),ac(h,c,o.maxDepth)&&R++))}let q=Jm(z),W=lc(q,o,c,z),U=dc(W,o.maxFiles);return cc(e,r,U,a===null?void 0:a,s===null?void 0:s),uc(e),{success:!0,files:U}}function Jm(e){let r=new Set;for(let n of e){let o=n.split("/"),t="";for(let i=0;i<o.length-1;i++)t=t?t+"/"+o[i]:o[i],r.add(t+"/")}return[".",...Array.from(r),...Array.from(e)]}async function Lx(e,r,n,o){let t=["--files","--no-require-git","--hidden"];o.useGitignore===!1&&t.push("--no-ignore");let i=ft(n,r),a=o.ignore.getDirectoryFilter(),s=o.ignore.getFileFilter(),c=new Set,p=0,g=_=>{if(Ar(p,o.maxFiles))return!1;let z=Zr(_),R=X.posix.join(i,z);if(!oc(R,a,s))return!0;let I=c.size;return c.add(R),c.size>I&&ac(R,i,o.maxDepth)&&p++,!Ar(p,o.maxFiles)},m=await Cr("rg",t,r,2e4,{collectLines:!1,onLine:g,successExitCodes:[0,1]});if(!m.success)return{success:!1,files:[]};for(let _ of m.lines)if(!g(_))break;let x=Jm(c),y=lc(x,o,i,c),l=dc(y,o.maxFiles);return cc(e,r,l),uc(e),{success:!0,files:l}}async function Fx(e){let r=ft(e.cwd,e.crawlDirectory),n;try{let t=e.ignore.getDirectoryFilter(),i=e.ignore.getFileFilter(),a=new Lm.fdir().withRelativePaths().withDirs().withPathSeparator("/").exclude((s,c)=>{let p=Dx(e.crawlDirectory,c);return p?t(`${p}/`):!1}).filter((s,c)=>{if(c)return!0;let p=X.posix.join(r,s);return Ur(p)?!i(p):!1});e.maxDepth!==void 0&&a.withMaxDepth(e.maxDepth),n=await a.crawl(e.crawlDirectory).withPromise()}catch{return[]}let o=n.filter(t=>t.length>0&&t!==".").map(t=>X.posix.join(r,t));if(r!=="."){let t=r.endsWith("/")?r:`${r}/`;if(!o.includes(t))return[t,...o]}return o}async function JI(e){let r=Ex(e),n=e.cache?Am(hi(e.crawlDirectory),e.ignore.getFingerprint(),e.maxDepth,e.maxFiles,e.useGitignore!==!1):void 0;if(e.cache){let p=Um(n);if(p)return p}let o;if(!e.cache){let p=rt.get(r);if(p){let g=$i(e.crawlDirectory);if(g!==null&&p.gitRootMtimeMs!==null&&g>p.gitRootMtimeMs){let x=await Cm(p,e.crawlDirectory,e.useGitignore!==!1);if(!x.changed)return Tx(r,e.crawlDirectory),p.fileList;o=x.prefetch}else if(!Nx(r,e.crawlDirectory)){let x=await Cm(p,e.crawlDirectory,e.useGitignore!==!1);if(!x.changed)return p.fileList;o=x.prefetch}}}let t=await Zx(r,e.crawlDirectory,e.cwd,e,o);if(t.success){let p=t.files;return e.cache&&fi(n,p,e.cacheTtl*1e3),p}t.gitRepoListingFailed&&console.warn("[crawler] falling back to ripgrep (git ls-files unavailable)");let i=await Lx(r,e.crawlDirectory,e.cwd,e);if(i.success){let p=i.files;return e.cache&&fi(n,p,e.cacheTtl*1e3),p}console.warn("[crawler] falling back to fdir (ripgrep unavailable)");let a=ft(e.cwd,e.crawlDirectory),s=await Fx(e);s=lc(s,e,a),s.length===0?s=["."]:s[0]!=="."&&(s=[".",...s]);let c=dc(s,e.maxFiles);return cc(r,e.crawlDirectory,c),uc(r),e.cache&&fi(n,c,e.cacheTtl*1e3),c}function dc(e,r){if(r===void 0||e.length<=r)return e;let n=e.slice(0,r),o=i=>i!=="."&&!i.endsWith("/");if(n.some(o))return n;let t=e.findIndex(o);return t===-1?n:e.slice(0,t+1)}u();var _c=qr(of(),1),sf=qr(rc(),1);import zi from"node:fs";import af from"node:path";var uy=(0,sf.default)("**/*[*.]*"),cy=[".git","node_modules",".venv","venv","__pycache__",".mypy_cache",".pytest_cache",".ruff_cache",".next",".nuxt",".turbo",".cache","target",".gradle",".terraform"];function rP(e){let r=new $c,n=new Set([...cy,...e.ignoreDirs]);if(r.add([...n].map(o=>o.endsWith("/")?o:`${o}/`)),e.useGitignore){let o=af.join(e.projectRoot,".gitignore");zi.existsSync(o)&&r.add(zi.readFileSync(o,"utf8"))}if(e.useMatildaignore){let o=af.join(e.projectRoot,".matildaignore");zi.existsSync(o)&&r.add(zi.readFileSync(o,"utf8"))}return r}var $c=class{allPatterns=[];dirIgnorer=(0,_c.default)();fileIgnorer=(0,_c.default)();add(r){typeof r=="string"&&(r=r.split(/\r?\n/));for(let n of r){let o=n.trim();if(o===""||o.startsWith("#"))continue;this.allPatterns.push(o),o.endsWith("/")&&!o.startsWith("!")?this.dirIgnorer.add(o):(this.fileIgnorer.add(o),uy(o)||this.dirIgnorer.add(o))}return this}getDirectoryFilter(){return r=>this.dirIgnorer.ignores(r)}getFileFilter(){return r=>this.fileIgnorer.ignores(r)}getFingerprint(){return this.allPatterns.join(`
|
|
36
|
-
`)}};export{wi as a,Fi as b,f as c,rh as d,G as e,Zs as f,le as g,Cn as h,Ph as i,ne as j,M as k,j as l,_e as m,J as n,zr as o,K as p,N as q,Wh as r,mu as s,tv as t,rv as u,Nk as v,nv as w,Ak as x,Uk as y,Dk as z,Ck as A,Gn as B,Zk as C,$d as D,bd as E,xd as F,hv as G,Fk as H,Sd as I,kd as J,wd as K,Id as L,Pd as M,jd as N,Ed as O,Od as P,Rd as Q,Nd as R,Vk as S,Sv as T,wv as U,jv as V,Ev as W,Lv as X,Wv as Y,Bv as Z,Yv as _,Zd as $,t_ as aa,Gk as ba,m_ as ca,f_ as da,g_ as ea,O_ as fa,T_ as ga,Z_ as ha,F_ as ia,fu as ja,
|
|
36
|
+
`)}};export{wi as a,Fi as b,f as c,rh as d,G as e,Zs as f,le as g,Cn as h,Ph as i,ne as j,M as k,j as l,_e as m,J as n,zr as o,K as p,N as q,Wh as r,mu as s,tv as t,rv as u,Nk as v,nv as w,Ak as x,Uk as y,Dk as z,Ck as A,Gn as B,Zk as C,$d as D,bd as E,xd as F,hv as G,Fk as H,Sd as I,kd as J,wd as K,Id as L,Pd as M,jd as N,Ed as O,Od as P,Rd as Q,Nd as R,Vk as S,Sv as T,wv as U,jv as V,Ev as W,Lv as X,Wv as Y,Bv as Z,Yv as _,Zd as $,t_ as aa,Gk as ba,m_ as ca,f_ as da,g_ as ea,O_ as fa,T_ as ga,Z_ as ha,F_ as ia,fu as ja,Pp as ka,Au as la,Ep as ma,Rp as na,Ap as oa,Dp as pa,Vw as qa,Up as ra,z$ as sa,S$ as ta,k$ as ua,Er as va,qw as wa,Gw as xa,rc as ya,of as za,JI as Aa,rP as Ba};
|
|
37
37
|
/**
|
|
38
38
|
* @license
|
|
39
39
|
* Copyright 2025 Google LLC
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// Force strict mode and setup for ESM
|
|
2
|
+
"use strict";
|
|
3
|
+
import{a as c}from"./chunk-V6UPUMP3.js";import{ra as u}from"./chunk-6SPPO7RK.js";import{b as m}from"./chunk-GZPNIYVZ.js";m();import{AsyncLocalStorage as k}from"node:async_hooks";var a=new k,r=new WeakMap,p={turns:"max_turn_requests",session_turns:"max_turn_requests",loop_detected:"max_turn_requests",continuations:"max_turn_requests",session_tokens:"max_tokens"},h=class{jobs=new Map;joinsJobs;wake;closed=!1;keepsFinished=!1;revision=0;task;lastResponse;stop;ended;finished;constructor(e={}){this.joinsJobs=e.joinsJobs??!0}begin(e,t,s=e){this.task||(this.task={startUuid:e,rootUuid:s,recorder:t},this.ended&&this.finish(this.ended).catch(()=>{}))}get taskStartUuid(){return this.task?.startUuid}get taskRef(){return this.task?{startUuid:this.task.startUuid,rootUuid:this.task.rootUuid}:void 0}noteResponse(e){this.lastResponse=e}noteStop(e){this.stop=e}finish(e){let t=this.task;return t?(this.finished??=this.recordOutcome(t,e),this.finished):(this.ended??=e,Promise.resolve(void 0))}async recordOutcome(e,t){let s=this.stop&&(t.outcome==="completed"||t.outcome==="error")?p[this.stop]:t.outcome,i=s==="completed"&&this.lastResponse?.finalAnswer?this.lastResponse:void 0,n=t.limitKind??(s==="max_tokens"||s==="max_turn_requests"?this.stop:void 0);return await e.recorder.recordTaskOutcome({taskStartUuid:e.startUuid,outcome:s,...n?{limitKind:n}:{},...s==="completed"?{finalAnswerUuid:i?i.recordId??i.id:null}:{}}),{outcome:s,...i&&{finalAnswerId:i.id}}}static get current(){return a.getStore()}run(e){return a.run(this,e)}static detached(e){return a.run(void 0,e)}static register(e,t,s){let i=a.getStore();e.originTask??=s?.originTask??i?.taskRef;let n=s?.status==="running"?r.get(s):void 0,o=n??(i?.joinsJobs?i:void 0);if(o){if(n&&s&&n.consume(s),e.completion==="detached"||!n&&e.status!=="running"){o.changed();return}if(r.set(e,o),o.closed){t();return}o.jobs.set(e,t),o.changed()}}static changed(e){e&&r.get(e)?.changed()}static abandoned(e){return r.get(e)?.closed===!0}static detach(e){let t=r.get(e);return!t||t.closed||!t.owns(e)||e.status!=="running"?!1:(e.completion="detached",t.consume(e),t.changed(),!0)}owns(e){return this.jobs.has(e)}consume(e){r.delete(e),this.jobs.delete(e)}get pending(){return this.jobs.size>0}get position(){return this.revision}get paused(){return[...this.jobs.keys()].some(e=>e.status==="paused")}get running(){return[...this.jobs.keys()].filter(e=>e.status==="running")}changed(){this.revision++,this.wake?.()}async wait(e,t,s){this.closed||t.aborted||e!==this.revision||await new Promise(i=>{let n,o=()=>{clearTimeout(n),t.removeEventListener("abort",o),this.wake=void 0,i()};this.wake=o,t.addEventListener("abort",o,{once:!0}),s!==void 0&&(n=setTimeout(o,s))})}keepFinishedJobs(){this.keepsFinished=!0}close(){this.closed=!0;for(let[e,t]of this.jobs)e.status==="running"?t():this.keepsFinished&&e.status!=="paused"&&this.consume(e);this.changed()}};function g(d,e){let t=s=>{let i=s.description.replace(/[\p{Cc}\s]+/gu," ").trim(),n=Math.max(1,Math.round((e-s.startTime)/6e4));return`background ${s.kind} "${i.length>80?`${i.slice(0,77)}...`:i}" (running ${n} min)`};return{displayText:`Still waiting on ${d.map(t).join(", ")}.`,modelText:d.map(s=>["<task-notification>",`<task-id>${c(s.id)}</task-id>`,`<kind>${s.kind}</kind>`,"<status>running</status>",`<summary>${c(`The ${t(s)} is still running, and this request cannot finish until it does. If the request needs its result, keep waiting. If it should keep running after the request, such as a server or watcher, call ${u.TASK_DETACH}; it then runs until Matilda Code exits. If it is no longer needed, call ${u.TASK_STOP}.`)}</summary>`,"</task-notification>"].join(`
|
|
4
|
+
`)).join(`
|
|
5
|
+
`)}}export{h as a,g as b};
|
|
6
|
+
/**
|
|
7
|
+
* @license
|
|
8
|
+
* Copyright 2026 Matilda
|
|
9
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
10
|
+
*/
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
|
-
import{a as f}from"./chunk-GT6MSEK4.js";import{b as g}from"./chunk-
|
|
3
|
+
import{a as f}from"./chunk-GT6MSEK4.js";import{b as g}from"./chunk-JRGQUM3K.js";import{H as d,P as m,ea as p}from"./chunk-6SPPO7RK.js";import{b as u}from"./chunk-GZPNIYVZ.js";u();import*as a from"node:fs/promises";import*as s from"node:path";var x=p("CRON_TASKS_FILE"),T="scheduled_tasks.json",L=`~/.matilda/tmp/<project-hash>/${T}`,E=15,w=2e3,b=3e3,P=0,h=new Map;function C(e){let t=h.get(e);return t||(t=new f,h.set(e,t)),t}function c(e){return s.join(m.getGlobalTempDir(),d(e),T)}async function k(e){let t=c(e),i;try{i=await a.readFile(t,"utf-8")}catch(o){if(o.code==="ENOENT")return[];throw o}let r;try{r=JSON.parse(i)}catch{throw new Error(`Malformed JSON in ${t} \u2014 fix or delete the file; refusing to treat it as an empty schedule.`)}if(!Array.isArray(r))throw new Error(`Expected a JSON array in ${t} \u2014 fix or delete the file; refusing to treat it as an empty schedule.`);let n=r.filter(A);return n.length!==r.length&&x.warn(`Dropped ${r.length-n.length} invalid task entr${r.length-n.length===1?"y":"ies"} from ${t}; a later write will persist without ${r.length-n.length===1?"it":"them"}.`),n}async function D(e,t){let i=c(e);await a.mkdir(s.dirname(i),{recursive:!0}),await g(i,t,{noFollow:!0})}async function _(e){let t=`${e}.lock`;await a.mkdir(s.dirname(t),{recursive:!0});let i=Date.now()+b;for(;;){if(Date.now()>i)throw new Error(`Timed out waiting for scheduled-tasks lock (${t})`);try{return await a.writeFile(t,String(process.pid),{flag:"wx"}),async()=>{await a.unlink(t).catch(()=>{})}}catch(r){if(r.code!=="EEXIST")throw r}try{let r=await a.stat(t);if(Date.now()-r.mtimeMs>w){let n=`${t}.stale.${process.pid}.${P++}`;try{await a.rename(t,n)}catch{continue}let o=await a.stat(n).catch(()=>null);o&&Date.now()-o.mtimeMs<=w&&await a.link(n,t).catch(()=>{}),await a.unlink(n).catch(()=>{});continue}}catch{continue}await new Promise(r=>setTimeout(r,E))}}async function y(e,t){let i=c(e);return C(i).runExclusive(async()=>{let r=await _(i);try{let n=await k(e),o=t(n);o!==n&&await D(e,o)}finally{await r()}})}async function F(e,t){await y(e,i=>[...i,t])}async function J(e,t){let i=new Set(t);if(!(await k(e)).some(o=>i.has(o.id)))return 0;let n=0;return await y(e,o=>{let l=o.filter(S=>!i.has(S.id));return n=o.length-l.length,n===0?o:l}),n}function A(e){if(typeof e!="object"||e===null)return!1;let t=e;return typeof t.id=="string"&&typeof t.cron=="string"&&typeof t.prompt=="string"&&typeof t.recurring=="boolean"&&typeof t.createdAt=="number"&&(t.lastFiredAt===null||typeof t.lastFiredAt=="number")}export{L as a,c as b,k as c,y as d,F as e,J as f};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
|
-
import{a as r}from"./chunk-V6UPUMP3.js";import{ea as g}from"./chunk-
|
|
3
|
+
import{a as r}from"./chunk-V6UPUMP3.js";import{ea as g}from"./chunk-6SPPO7RK.js";import{b as f}from"./chunk-GZPNIYVZ.js";f();function C(n,o){return`Base directory for this skill: ${n}
|
|
4
4
|
Important: ALWAYS resolve absolute paths from this base directory when working with skills.
|
|
5
5
|
|
|
6
6
|
${o}
|