git-publish 0.0.1 → 1.0.1
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/LICENSE +21 -0
- package/README.md +117 -0
- package/dist/index.js +109 -0
- package/package.json +20 -17
- package/git-publish.js +0 -13
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Hiroki Osame <hiroki.osame@gmail.com>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
# git-publish
|
|
2
|
+
|
|
3
|
+
Publish your npm package to a Git branch.
|
|
4
|
+
|
|
5
|
+
<sub>Support this project by ⭐️ starring and sharing it. [Follow me](https://github.com/privatenumber) to see what other cool projects I'm working on! ❤️</sub>
|
|
6
|
+
|
|
7
|
+
## Why?
|
|
8
|
+
|
|
9
|
+
For testing published packages without publishing to npm.
|
|
10
|
+
|
|
11
|
+
Making a prerelease to npm using `npm publish` has the following drawbacks:
|
|
12
|
+
|
|
13
|
+
- Needs a unique version for every release.
|
|
14
|
+
|
|
15
|
+
- Hard to remove due to npm's [strict unpublish policy](https://docs.npmjs.com/policies/unpublish).
|
|
16
|
+
|
|
17
|
+
- Cumbersome to verify the contents of the published package.
|
|
18
|
+
|
|
19
|
+
- Production environment—risky if you make a mistake (eg. accidentally publish as stable).
|
|
20
|
+
|
|
21
|
+
Using `npm link` has the drawback of not running [npm life cycle scripts](https://docs.npmjs.com/cli/v8/using-npm/scripts#life-cycle-scripts) and including non-publishable assets.
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
In contrast, `git-publish` has the following benefits:
|
|
25
|
+
|
|
26
|
+
- **Unversioned** Instead of versions, branch names are used. Branches can be updated to reflect latest change.
|
|
27
|
+
|
|
28
|
+
- **Deletable** Simply delete the branch when you're done with it.
|
|
29
|
+
|
|
30
|
+
- **Browsable** Use GitHub to verify the contents of the branch. You can even share a link for others to see.
|
|
31
|
+
|
|
32
|
+
- **Dev environment** Low risk of mistakes.
|
|
33
|
+
|
|
34
|
+
- **Simulates `npm publish`** Runs npm life cycle scripts and only includes publishable assets.
|
|
35
|
+
|
|
36
|
+
## Usage
|
|
37
|
+
|
|
38
|
+
Publish your npm package to a branch on the Git repository:
|
|
39
|
+
|
|
40
|
+
```sh
|
|
41
|
+
npx git-publish
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
> **⚠️ Warning:** This command will force-push to the remote branch `npm/<current branch>`. Make sure there are no unsaved changes there.
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
### Global install
|
|
48
|
+
Keep the command handy by installing it globally:
|
|
49
|
+
|
|
50
|
+
```sh
|
|
51
|
+
npm install -g git-publish
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
When globally installed, you can use it without `npx`:
|
|
55
|
+
```sh
|
|
56
|
+
git-publish
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### Flags
|
|
60
|
+
| Flag | Description |
|
|
61
|
+
| - | - |
|
|
62
|
+
| `-b, --branch <branch name>` | The branch to publish the package to. Defaults to prefixing "npm/" to the current branch or tag name. |
|
|
63
|
+
| `-r, --remote <remote>` | The remote to push to. (default: `origin`) |
|
|
64
|
+
| `-d, --dry` | Dry run mode. Will not commit or push to the remote. |
|
|
65
|
+
| `-h, --help` | Show help |
|
|
66
|
+
| `--version` | Show version |
|
|
67
|
+
|
|
68
|
+
## FAQ
|
|
69
|
+
|
|
70
|
+
### What are some use-cases where this is useful?
|
|
71
|
+
- When you want to test a new package that isn't ready to be published on npm.
|
|
72
|
+
|
|
73
|
+
- When you're contributing to an open source project so you don't have publish access, but want to test the changes in a production-like environment.
|
|
74
|
+
|
|
75
|
+
- When you want to test in a remote environment so you can't use `npm link`.
|
|
76
|
+
|
|
77
|
+
- When you want to avoid using `npm link` because of symlink complexities.
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
### How can I include a build step?
|
|
81
|
+
|
|
82
|
+
Call the build command it in the [`prepack` script](https://docs.npmjs.com/cli/v8/using-npm/scripts#:~:text=on%20npm%20publish.-,prepack,-Runs%20BEFORE%20a).
|
|
83
|
+
|
|
84
|
+
### What does this script do?
|
|
85
|
+
|
|
86
|
+
1. Run [npm hooks](https://docs.npmjs.com/cli/v8/using-npm/scripts) `prepare` & `prepack`
|
|
87
|
+
2. Create a temporary branch by prefixing the current branch with the `npm/` namespace
|
|
88
|
+
3. Detect and commit the [npm publish files](https://github.com/npm/npm-packlist)
|
|
89
|
+
4. Force push the branch to remote
|
|
90
|
+
5. Delete local branch from Step 2
|
|
91
|
+
6. Print the installation command for the branch
|
|
92
|
+
|
|
93
|
+
### How is this different from simply committing the files to a branch?
|
|
94
|
+
|
|
95
|
+
- There can be missing distribution files (eg. files outside of `dist`). _git-publish_ uses [npm-packlist](https://github.com/npm/npm-packlist) —the same library `npm publish` uses—to detect publish files declared via `package.json#files` and `.npmignore`.
|
|
96
|
+
- Irrelevant files are committed (eg. source files). This can slow down installation or even interfere with the library behavior. For example, if your project has development configuration files, they can accidentally be read by the dependent tooling.
|
|
97
|
+
|
|
98
|
+
- npm hooks are not executed. _git-publish_ simulates package packing and runs hooks `prepare` and `prepack`.
|
|
99
|
+
|
|
100
|
+
### Can I publish to and install from a private repository?
|
|
101
|
+
|
|
102
|
+
Yes, if using a Git client authorized to access the private repository.
|
|
103
|
+
|
|
104
|
+
If it must be publicly accessible, you can set the `--remote <remote>` flag to push the publish assets to a public repository. It's recommended to compile and minify the code if doing this with private code.
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
#### User story
|
|
108
|
+
You want to test a branch on a private repository _Repo A_, but GitHub Actions on the consuming project _Repo B_ doesn't have access to the private repository so `npm install` fails.
|
|
109
|
+
|
|
110
|
+
To work around this, you can publish the branch to _Repo B_ to install it from there:
|
|
111
|
+
|
|
112
|
+
```sh
|
|
113
|
+
$ npx git-publish --remote git@github.com:repo-b.git --branch test-pkg
|
|
114
|
+
|
|
115
|
+
✔ Successfully published branch! Install with command:
|
|
116
|
+
→ npm i 'repo-b#test-pkg'
|
|
117
|
+
```
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";var Zl=require("fs"),ec=require("buffer"),Dp=require("path"),fp=require("child_process"),dp=require("process"),hp=require("url"),Ta=require("os"),pp=require("assert"),gp=require("events"),tc=require("stream"),mp=require("util"),Ep=require("module"),Cp=require("yoga-layout-prebuilt"),bp=require("tty");function qe(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}function yp(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(u){if(u!=="default"){var i=Object.getOwnPropertyDescriptor(e,u);Object.defineProperty(t,u,i.get?i:{enumerable:!0,get:function(){return e[u]}})}}),t.default=e,Object.freeze(t)}var rt=qe(Zl),nc=yp(Zl),Fp=qe(ec),Oe=qe(Dp),$a=qe(fp),Ie=qe(dp),vp=qe(hp),$u=qe(Ta),Lu=qe(pp),wr=qe(gp),ju=qe(tc),wp=qe(mp),Sp=qe(Ep),Z=qe(Cp),rc=qe(bp),Jt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Pn={exports:{}},La,uc;function Bp(){if(uc)return La;uc=1,La=i,i.sync=o;var e=rt.default;function t(s,l){var c=l.pathExt!==void 0?l.pathExt:process.env.PATHEXT;if(!c||(c=c.split(";"),c.indexOf("")!==-1))return!0;for(var d=0;d<c.length;d++){var h=c[d].toLowerCase();if(h&&s.substr(-h.length).toLowerCase()===h)return!0}return!1}function u(s,l,c){return!s.isSymbolicLink()&&!s.isFile()?!1:t(l,c)}function i(s,l,c){e.stat(s,function(d,h){c(d,d?!1:u(h,s,l))})}function o(s,l){return u(e.statSync(s),s,l)}return La}var ja,ic;function Ap(){if(ic)return ja;ic=1,ja=t,t.sync=u;var e=rt.default;function t(s,l,c){e.stat(s,function(d,h){c(d,d?!1:i(h,l))})}function u(s,l){return i(e.statSync(s),l)}function i(s,l){return s.isFile()&&o(s,l)}function o(s,l){var c=s.mode,d=s.uid,h=s.gid,m=l.uid!==void 0?l.uid:process.getuid&&process.getuid(),E=l.gid!==void 0?l.gid:process.getgid&&process.getgid(),g=parseInt("100",8),C=parseInt("010",8),y=parseInt("001",8),v=g|C,k=c&y||c&C&&h===E||c&g&&d===m||c&v&&m===0;return k}return ja}var Mu;process.platform==="win32"||Jt.TESTING_WINDOWS?Mu=Bp():Mu=Ap();var xp=Ma;Ma.sync=kp;function Ma(e,t,u){if(typeof t=="function"&&(u=t,t={}),!u){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(i,o){Ma(e,t||{},function(s,l){s?o(s):i(l)})})}Mu(e,t||{},function(i,o){i&&(i.code==="EACCES"||t&&t.ignoreErrors)&&(i=null,o=!1),u(i,o)})}function kp(e,t){try{return Mu.sync(e,t||{})}catch(u){if(t&&t.ignoreErrors||u.code==="EACCES")return!1;throw u}}const Nn=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",ac=Oe.default,_p=Nn?";":":",oc=xp,sc=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),lc=(e,t)=>{const u=t.colon||_p,i=e.match(/\//)||Nn&&e.match(/\\/)?[""]:[...Nn?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(u)],o=Nn?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=Nn?o.split(u):[""];return Nn&&e.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:i,pathExt:s,pathExtExe:o}},cc=(e,t,u)=>{typeof t=="function"&&(u=t,t={}),t||(t={});const{pathEnv:i,pathExt:o,pathExtExe:s}=lc(e,t),l=[],c=h=>new Promise((m,E)=>{if(h===i.length)return t.all&&l.length?m(l):E(sc(e));const g=i[h],C=/^".*"$/.test(g)?g.slice(1,-1):g,y=ac.join(C,e),v=!C&&/^\.[\\\/]/.test(e)?e.slice(0,2)+y:y;m(d(v,h,0))}),d=(h,m,E)=>new Promise((g,C)=>{if(E===o.length)return g(c(m+1));const y=o[E];oc(h+y,{pathExt:s},(v,k)=>{if(!v&&k)if(t.all)l.push(h+y);else return g(h+y);return g(d(h,m,E+1))})});return u?c(0).then(h=>u(null,h),u):c(0)},Op=(e,t)=>{t=t||{};const{pathEnv:u,pathExt:i,pathExtExe:o}=lc(e,t),s=[];for(let l=0;l<u.length;l++){const c=u[l],d=/^".*"$/.test(c)?c.slice(1,-1):c,h=ac.join(d,e),m=!d&&/^\.[\\\/]/.test(e)?e.slice(0,2)+h:h;for(let E=0;E<i.length;E++){const g=m+i[E];try{if(oc.sync(g,{pathExt:o}))if(t.all)s.push(g);else return g}catch{}}}if(t.all&&s.length)return s;if(t.nothrow)return null;throw sc(e)};var Ip=cc;cc.sync=Op;var za={exports:{}};const Dc=(e={})=>{const t=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"};za.exports=Dc,za.exports.default=Dc;const fc=Oe.default,Rp=Ip,Pp=za.exports;function dc(e,t){const u=e.options.env||process.env,i=process.cwd(),o=e.options.cwd!=null,s=o&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(e.options.cwd)}catch{}let l;try{l=Rp.sync(e.command,{path:u[Pp({env:u})],pathExt:t?fc.delimiter:void 0})}catch{}finally{s&&process.chdir(i)}return l&&(l=fc.resolve(o?e.options.cwd:"",l)),l}function Np(e){return dc(e)||dc(e,!0)}var Tp=Np,Ua={};const Ga=/([()\][%!^"`<>&|;, *?])/g;function $p(e){return e=e.replace(Ga,"^$1"),e}function Lp(e,t){return e=`${e}`,e=e.replace(/(\\*)"/g,'$1$1\\"'),e=e.replace(/(\\*)$/,"$1$1"),e=`"${e}"`,e=e.replace(Ga,"^$1"),t&&(e=e.replace(Ga,"^$1")),e}Ua.command=$p,Ua.argument=Lp;var jp=/^#!(.*)/;const Mp=jp;var zp=(e="")=>{const t=e.match(Mp);if(!t)return null;const[u,i]=t[0].replace(/#! ?/,"").split(" "),o=u.split("/").pop();return o==="env"?i:i?`${o} ${i}`:o};const Ha=rt.default,Up=zp;function Gp(e){const u=Buffer.alloc(150);let i;try{i=Ha.openSync(e,"r"),Ha.readSync(i,u,0,150,0),Ha.closeSync(i)}catch{}return Up(u.toString())}var Hp=Gp;const Wp=Oe.default,hc=Tp,pc=Ua,qp=Hp,Qp=process.platform==="win32",Jp=/\.(?:com|exe)$/i,Vp=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Kp(e){e.file=hc(e);const t=e.file&&qp(e.file);return t?(e.args.unshift(e.file),e.command=t,hc(e)):e.file}function Yp(e){if(!Qp)return e;const t=Kp(e),u=!Jp.test(t);if(e.options.forceShell||u){const i=Vp.test(t);e.command=Wp.normalize(e.command),e.command=pc.command(e.command),e.args=e.args.map(s=>pc.argument(s,i));const o=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${o}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function Xp(e,t,u){t&&!Array.isArray(t)&&(u=t,t=null),t=t?t.slice(0):[],u=Object.assign({},u);const i={command:e,args:t,options:u,file:void 0,original:{command:e,args:t}};return u.shell?i:Yp(i)}var Zp=Xp;const Wa=process.platform==="win32";function qa(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function e0(e,t){if(!Wa)return;const u=e.emit;e.emit=function(i,o){if(i==="exit"){const s=gc(o,t);if(s)return u.call(e,"error",s)}return u.apply(e,arguments)}}function gc(e,t){return Wa&&e===1&&!t.file?qa(t.original,"spawn"):null}function t0(e,t){return Wa&&e===1&&!t.file?qa(t.original,"spawnSync"):null}var n0={hookChildProcess:e0,verifyENOENT:gc,verifyENOENTSync:t0,notFoundError:qa};const mc=$a.default,Qa=Zp,Ja=n0;function Ec(e,t,u){const i=Qa(e,t,u),o=mc.spawn(i.command,i.args,i.options);return Ja.hookChildProcess(o,i),o}function r0(e,t,u){const i=Qa(e,t,u),o=mc.spawnSync(i.command,i.args,i.options);return o.error=o.error||Ja.verifyENOENTSync(o.status,i),o}Pn.exports=Ec,Pn.exports.spawn=Ec,Pn.exports.sync=r0,Pn.exports._parse=Qa,Pn.exports._enoent=Ja;function u0(e){const t=typeof e=="string"?`
|
|
3
|
+
`:`
|
|
4
|
+
`.charCodeAt(),u=typeof e=="string"?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,-1)),e[e.length-1]===u&&(e=e.slice(0,-1)),e}function Cc(e={}){const{env:t=process.env,platform:u=process.platform}=e;return u!=="win32"?"PATH":Object.keys(t).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"}function i0(e={}){const{cwd:t=Ie.default.cwd(),path:u=Ie.default.env[Cc()],execPath:i=Ie.default.execPath}=e;let o;const s=t instanceof URL?vp.default.fileURLToPath(t):t;let l=Oe.default.resolve(s);const c=[];for(;o!==l;)c.push(Oe.default.join(l,"node_modules/.bin")),o=l,l=Oe.default.resolve(l,"..");return c.push(Oe.default.resolve(s,i,"..")),[...c,u].join(Oe.default.delimiter)}function a0({env:e=Ie.default.env,...t}={}){e={...e};const u=Cc({env:e});return t.path=e[u],e[u]=i0(t),e}const o0=(e,t,u,i)=>{if(u==="length"||u==="prototype"||u==="arguments"||u==="caller")return;const o=Object.getOwnPropertyDescriptor(e,u),s=Object.getOwnPropertyDescriptor(t,u);!s0(o,s)&&i||Object.defineProperty(e,u,s)},s0=function(e,t){return e===void 0||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},l0=(e,t)=>{const u=Object.getPrototypeOf(t);u!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,u)},c0=(e,t)=>`/* Wrapped ${e}*/
|
|
5
|
+
${t}`,D0=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),f0=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),d0=(e,t,u)=>{const i=u===""?"":`with ${u.trim()}() `,o=c0.bind(null,i,t.toString());Object.defineProperty(o,"name",f0),Object.defineProperty(e,"toString",{...D0,value:o})};function h0(e,t,{ignoreNonConfigurable:u=!1}={}){const{name:i}=e;for(const o of Reflect.ownKeys(t))o0(e,t,o,u);return l0(e,t),d0(e,t,i),e}const zu=new WeakMap,bc=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let u,i=0;const o=e.displayName||e.name||"<anonymous>",s=function(...l){if(zu.set(s,++i),i===1)u=e.apply(this,l),e=null;else if(t.throw===!0)throw new Error(`Function \`${o}\` can only be called once`);return u};return h0(s,e),zu.set(s,i),s};bc.callCount=e=>{if(!zu.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return zu.get(e)};const p0=function(){const e=Fc-yc+1;return Array.from({length:e},g0)},g0=function(e,t){return{name:`SIGRT${t+1}`,number:yc+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},yc=34,Fc=64,m0=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}],vc=function(){const e=p0();return[...m0,...e].map(E0)},E0=function({name:e,number:t,description:u,action:i,forced:o=!1,standard:s}){const{signals:{[e]:l}}=Ta.constants,c=l!==void 0;return{name:e,number:c?l:t,description:u,supported:c,action:i,forced:o,standard:s}},C0=function(){return vc().reduce(b0,{})},b0=function(e,{name:t,number:u,description:i,supported:o,action:s,forced:l,standard:c}){return{...e,[t]:{name:t,number:u,description:i,supported:o,action:s,forced:l,standard:c}}},y0=C0(),F0=function(){const e=vc(),t=Fc+1,u=Array.from({length:t},(i,o)=>v0(o,e));return Object.assign({},...u)},v0=function(e,t){const u=w0(e,t);if(u===void 0)return{};const{name:i,description:o,supported:s,action:l,forced:c,standard:d}=u;return{[e]:{name:i,number:e,description:o,supported:s,action:l,forced:c,standard:d}}},w0=function(e,t){const u=t.find(({name:i})=>Ta.constants.signals[i]===e);return u!==void 0?u:t.find(i=>i.number===e)};F0();const S0=({timedOut:e,timeout:t,errorCode:u,signal:i,signalDescription:o,exitCode:s,isCanceled:l})=>e?`timed out after ${t} milliseconds`:l?"was canceled":u!==void 0?`failed with ${u}`:i!==void 0?`was killed with ${i} (${o})`:s!==void 0?`failed with exit code ${s}`:"failed",wc=({stdout:e,stderr:t,all:u,error:i,signal:o,exitCode:s,command:l,escapedCommand:c,timedOut:d,isCanceled:h,killed:m,parsed:{options:{timeout:E}}})=>{s=s===null?void 0:s,o=o===null?void 0:o;const g=o===void 0?void 0:y0[o].description,C=i&&i.code,v=`Command ${S0({timedOut:d,timeout:E,errorCode:C,signal:o,signalDescription:g,exitCode:s,isCanceled:h})}: ${l}`,k=Object.prototype.toString.call(i)==="[object Error]",R=k?`${v}
|
|
6
|
+
${i.message}`:v,N=[R,t,e].filter(Boolean).join(`
|
|
7
|
+
`);return k?(i.originalMessage=i.message,i.message=N):i=new Error(N),i.shortMessage=R,i.command=l,i.escapedCommand=c,i.exitCode=s,i.signal=o,i.signalDescription=g,i.stdout=e,i.stderr=t,u!==void 0&&(i.all=u),"bufferedData"in i&&delete i.bufferedData,i.failed=!0,i.timedOut=Boolean(d),i.isCanceled=h,i.killed=m&&!d,i},Uu=["stdin","stdout","stderr"],B0=e=>Uu.some(t=>e[t]!==void 0),A0=e=>{if(!e)return;const{stdio:t}=e;if(t===void 0)return Uu.map(i=>e[i]);if(B0(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Uu.map(i=>`\`${i}\``).join(", ")}`);if(typeof t=="string")return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);const u=Math.max(t.length,Uu.length);return Array.from({length:u},(i,o)=>t[o])};var Tn={exports:{}},Va={exports:{}},Sc;function x0(){return Sc||(Sc=1,function(e){e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],process.platform!=="win32"&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),process.platform==="linux"&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}(Va)),Va.exports}var he=Jt.process;const hn=function(e){return e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function"};if(!hn(he))Tn.exports=function(){return function(){}};else{var k0=Lu.default,Sr=x0(),_0=/^win/i.test(he.platform),Gu=wr.default;typeof Gu!="function"&&(Gu=Gu.EventEmitter);var Re;he.__signal_exit_emitter__?Re=he.__signal_exit_emitter__:(Re=he.__signal_exit_emitter__=new Gu,Re.count=0,Re.emitted={}),Re.infinite||(Re.setMaxListeners(1/0),Re.infinite=!0),Tn.exports=function(e,t){if(!hn(Jt.process))return function(){};k0.equal(typeof e,"function","a callback must be provided for exit handler"),Br===!1&&Bc();var u="exit";t&&t.alwaysLast&&(u="afterexit");var i=function(){Re.removeListener(u,e),Re.listeners("exit").length===0&&Re.listeners("afterexit").length===0&&Ka()};return Re.on(u,e),i};var Ka=function(){!Br||!hn(Jt.process)||(Br=!1,Sr.forEach(function(t){try{he.removeListener(t,Ya[t])}catch{}}),he.emit=Xa,he.reallyExit=Ac,Re.count-=1)};Tn.exports.unload=Ka;var $n=function(t,u,i){Re.emitted[t]||(Re.emitted[t]=!0,Re.emit(t,u,i))},Ya={};Sr.forEach(function(e){Ya[e]=function(){if(!!hn(Jt.process)){var u=he.listeners(e);u.length===Re.count&&(Ka(),$n("exit",null,e),$n("afterexit",null,e),_0&&e==="SIGHUP"&&(e="SIGINT"),he.kill(he.pid,e))}}}),Tn.exports.signals=function(){return Sr};var Br=!1,Bc=function(){Br||!hn(Jt.process)||(Br=!0,Re.count+=1,Sr=Sr.filter(function(t){try{return he.on(t,Ya[t]),!0}catch{return!1}}),he.emit=I0,he.reallyExit=O0)};Tn.exports.load=Bc;var Ac=he.reallyExit,O0=function(t){!hn(Jt.process)||(he.exitCode=t||0,$n("exit",he.exitCode,null),$n("afterexit",he.exitCode,null),Ac.call(he,he.exitCode))},Xa=he.emit,I0=function(t,u){if(t==="exit"&&hn(Jt.process)){u!==void 0&&(he.exitCode=u);var i=Xa.apply(this,arguments);return $n("exit",he.exitCode,null),$n("afterexit",he.exitCode,null),i}else return Xa.apply(this,arguments)}}const R0=1e3*5,P0=(e,t="SIGTERM",u={})=>{const i=e(t);return N0(e,t,u,i),i},N0=(e,t,u,i)=>{if(!T0(t,u,i))return;const o=L0(u),s=setTimeout(()=>{e("SIGKILL")},o);s.unref&&s.unref()},T0=(e,{forceKillAfterTimeout:t},u)=>$0(e)&&t!==!1&&u,$0=e=>e===$u.default.constants.signals.SIGTERM||typeof e=="string"&&e.toUpperCase()==="SIGTERM",L0=({forceKillAfterTimeout:e=!0})=>{if(e===!0)return R0;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},j0=(e,t)=>{e.kill()&&(t.isCanceled=!0)},M0=(e,t,u)=>{e.kill(t),u(Object.assign(new Error("Timed out"),{timedOut:!0,signal:t}))},z0=(e,{timeout:t,killSignal:u="SIGTERM"},i)=>{if(t===0||t===void 0)return i;let o;const s=new Promise((c,d)=>{o=setTimeout(()=>{M0(e,u,d)},t)}),l=i.finally(()=>{clearTimeout(o)});return Promise.race([s,l])},U0=({timeout:e})=>{if(e!==void 0&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},G0=async(e,{cleanup:t,detached:u},i)=>{if(!t||u)return i;const o=Tn.exports(()=>{e.kill()});return i.finally(()=>{o()})};function H0(e){return e!==null&&typeof e=="object"&&typeof e.pipe=="function"}var Ln={exports:{}};const{PassThrough:W0}=ju.default;var q0=e=>{e={...e};const{array:t}=e;let{encoding:u}=e;const i=u==="buffer";let o=!1;t?o=!(u||i):u=u||"utf8",i&&(u=null);const s=new W0({objectMode:o});u&&s.setEncoding(u);let l=0;const c=[];return s.on("data",d=>{c.push(d),o?l=c.length:l+=d.length}),s.getBufferedValue=()=>t?c:i?Buffer.concat(c,l):c.join(""),s.getBufferedLength=()=>l,s};const{constants:Q0}=Fp.default,J0=ju.default,{promisify:V0}=wp.default,K0=q0,Y0=V0(J0.pipeline);class xc extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}async function Za(e,t){if(!e)throw new Error("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:u}=t,i=K0(t);return await new Promise((o,s)=>{const l=c=>{c&&i.getBufferedLength()<=Q0.MAX_LENGTH&&(c.bufferedData=i.getBufferedValue()),s(c)};(async()=>{try{await Y0(e,i),o()}catch(c){l(c)}})(),i.on("data",()=>{i.getBufferedLength()>u&&l(new xc)})}),i.getBufferedValue()}Ln.exports=Za,Ln.exports.buffer=(e,t)=>Za(e,{...t,encoding:"buffer"}),Ln.exports.array=(e,t)=>Za(e,{...t,array:!0}),Ln.exports.MaxBufferError=xc;const{PassThrough:X0}=ju.default;var Z0=function(){var e=[],t=new X0({objectMode:!0});return t.setMaxListeners(0),t.add=u,t.isEmpty=i,t.on("unpipe",o),Array.prototype.slice.call(arguments).forEach(u),t;function u(s){return Array.isArray(s)?(s.forEach(u),this):(e.push(s),s.once("end",o.bind(null,s)),s.once("error",t.emit.bind(t,"error")),s.pipe(t,{end:!1}),this)}function i(){return e.length==0}function o(s){e=e.filter(function(l){return l!==s}),!e.length&&t.readable&&t.end()}};const eg=(e,t)=>{t===void 0||e.stdin===void 0||(H0(t)?t.pipe(e.stdin):e.stdin.end(t))},tg=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;const u=Z0();return e.stdout&&u.add(e.stdout),e.stderr&&u.add(e.stderr),u},eo=async(e,t)=>{if(!!e){e.destroy();try{return await t}catch(u){return u.bufferedData}}},to=(e,{encoding:t,buffer:u,maxBuffer:i})=>{if(!(!e||!u))return t?Ln.exports(e,{encoding:t,maxBuffer:i}):Ln.exports.buffer(e,{maxBuffer:i})},ng=async({stdout:e,stderr:t,all:u},{encoding:i,buffer:o,maxBuffer:s},l)=>{const c=to(e,{encoding:i,buffer:o,maxBuffer:s}),d=to(t,{encoding:i,buffer:o,maxBuffer:s}),h=to(u,{encoding:i,buffer:o,maxBuffer:s*2});try{return await Promise.all([l,c,d,h])}catch(m){return Promise.all([{error:m,signal:m.signal,timedOut:m.timedOut},eo(e,c),eo(t,d),eo(u,h)])}},rg=(async()=>{})().constructor.prototype,ug=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(rg,e)]),kc=(e,t)=>{for(const[u,i]of ug){const o=typeof t=="function"?(...s)=>Reflect.apply(i.value,t(),s):i.value.bind(t);Reflect.defineProperty(e,u,{...i,value:o})}return e},ig=e=>new Promise((t,u)=>{e.on("exit",(i,o)=>{t({exitCode:i,signal:o})}),e.on("error",i=>{u(i)}),e.stdin&&e.stdin.on("error",i=>{u(i)})}),_c=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],ag=/^[\w.-]+$/,og=/"/g,sg=e=>typeof e!="string"||ag.test(e)?e:`"${e.replace(og,'\\"')}"`,lg=(e,t)=>_c(e,t).join(" "),cg=(e,t)=>_c(e,t).map(u=>sg(u)).join(" "),Dg=1e3*1e3*100,fg=({env:e,extendEnv:t,preferLocal:u,localDir:i,execPath:o})=>{const s=t?{...Ie.default.env,...e}:e;return u?a0({env:s,cwd:i,execPath:o}):s},dg=(e,t,u={})=>{const i=Pn.exports._parse(e,t,u);return e=i.command,t=i.args,u=i.options,u={maxBuffer:Dg,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:u.cwd||Ie.default.cwd(),execPath:Ie.default.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...u},u.env=fg(u),u.stdio=A0(u),Ie.default.platform==="win32"&&Oe.default.basename(e,".exe")==="cmd"&&t.unshift("/q"),{file:e,args:t,options:u,parsed:i}},no=(e,t,u)=>typeof t!="string"&&!ec.Buffer.isBuffer(t)?u===void 0?void 0:"":e.stripFinalNewline?u0(t):t;function Qe(e,t,u){const i=dg(e,t,u),o=lg(e,t),s=cg(e,t);U0(i.options);let l;try{l=$a.default.spawn(i.file,i.args,i.options)}catch(C){const y=new $a.default.ChildProcess,v=Promise.reject(wc({error:C,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return kc(y,v)}const c=ig(l),d=z0(l,i.options,c),h=G0(l,i.options,d),m={isCanceled:!1};l.kill=P0.bind(null,l.kill.bind(l)),l.cancel=j0.bind(null,l,m);const g=bc(async()=>{const[{error:C,exitCode:y,signal:v,timedOut:k},R,N,z]=await ng(l,i.options,h),w=no(i.options,R),B=no(i.options,N),x=no(i.options,z);if(C||y!==0||v!==null){const P=wc({error:C,exitCode:y,signal:v,stdout:w,stderr:B,all:x,command:o,escapedCommand:s,parsed:i,timedOut:k,isCanceled:m.isCanceled||(i.options.signal?i.options.signal.aborted:!1),killed:l.killed});if(!i.options.reject)return P;throw P}return{command:o,escapedCommand:s,exitCode:0,stdout:w,stderr:B,all:x,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return eg(l,i.options.input),l.all=tg(l,i.options),kc(l,g)}var hg=Object.defineProperty,pg=Object.defineProperties,gg=Object.getOwnPropertyDescriptors,Oc=Object.getOwnPropertySymbols,mg=Object.prototype.hasOwnProperty,Eg=Object.prototype.propertyIsEnumerable,ro=(e,t,u)=>t in e?hg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:u}):e[t]=u,Ar=(e,t)=>{for(var u in t||(t={}))mg.call(t,u)&&ro(e,u,t[u]);if(Oc)for(var u of Oc(t))Eg.call(t,u)&&ro(e,u,t[u]);return e},Cg=(e,t)=>pg(e,gg(t)),bg=(e,t,u)=>(ro(e,typeof t!="symbol"?t+"":t,u),u),Ic=(e,t,u)=>{if(!t.has(e))throw TypeError("Cannot "+u)},yg=(e,t,u)=>(Ic(e,t,"read from private field"),u?u.call(e):t.get(e)),Fg=(e,t,u)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,u)},vg=(e,t,u,i)=>(Ic(e,t,"write to private field"),i?i.call(e,u):t.set(e,u),u),Hu,Dt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fe={exports:{}},re={};/*
|
|
8
|
+
object-assign
|
|
9
|
+
(c) Sindre Sorhus
|
|
10
|
+
@license MIT
|
|
11
|
+
*/var Pc=Object.getOwnPropertySymbols,wg=Object.prototype.hasOwnProperty,Sg=Object.prototype.propertyIsEnumerable;function Bg(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Ag(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},u=0;u<10;u++)t["_"+String.fromCharCode(u)]=u;var i=Object.getOwnPropertyNames(t).map(function(s){return t[s]});if(i.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(s){o[s]=s}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var Nc=Ag()?Object.assign:function(e,t){for(var u,i=Bg(e),o,s=1;s<arguments.length;s++){u=Object(arguments[s]);for(var l in u)wg.call(u,l)&&(i[l]=u[l]);if(Pc){o=Pc(u);for(var c=0;c<o.length;c++)Sg.call(u,o[c])&&(i[o[c]]=u[o[c]])}}return i};/** @license React v17.0.2
|
|
12
|
+
* react.production.min.js
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the MIT license found in the
|
|
17
|
+
* LICENSE file in the root directory of this source tree.
|
|
18
|
+
*/var uo=Nc,jn=60103,Tc=60106;re.Fragment=60107,re.StrictMode=60108,re.Profiler=60114;var $c=60109,Lc=60110,jc=60112;re.Suspense=60113;var Mc=60115,zc=60116;if(typeof Symbol=="function"&&Symbol.for){var ft=Symbol.for;jn=ft("react.element"),Tc=ft("react.portal"),re.Fragment=ft("react.fragment"),re.StrictMode=ft("react.strict_mode"),re.Profiler=ft("react.profiler"),$c=ft("react.provider"),Lc=ft("react.context"),jc=ft("react.forward_ref"),re.Suspense=ft("react.suspense"),Mc=ft("react.memo"),zc=ft("react.lazy")}var Uc=typeof Symbol=="function"&&Symbol.iterator;function xg(e){return e===null||typeof e!="object"?null:(e=Uc&&e[Uc]||e["@@iterator"],typeof e=="function"?e:null)}function xr(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,u=1;u<arguments.length;u++)t+="&args[]="+encodeURIComponent(arguments[u]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Gc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Hc={};function Mn(e,t,u){this.props=e,this.context=t,this.refs=Hc,this.updater=u||Gc}Mn.prototype.isReactComponent={},Mn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(xr(85));this.updater.enqueueSetState(this,e,t,"setState")},Mn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Wc(){}Wc.prototype=Mn.prototype;function io(e,t,u){this.props=e,this.context=t,this.refs=Hc,this.updater=u||Gc}var ao=io.prototype=new Wc;ao.constructor=io,uo(ao,Mn.prototype),ao.isPureReactComponent=!0;var oo={current:null},qc=Object.prototype.hasOwnProperty,Qc={key:!0,ref:!0,__self:!0,__source:!0};function Jc(e,t,u){var i,o={},s=null,l=null;if(t!=null)for(i in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(s=""+t.key),t)qc.call(t,i)&&!Qc.hasOwnProperty(i)&&(o[i]=t[i]);var c=arguments.length-2;if(c===1)o.children=u;else if(1<c){for(var d=Array(c),h=0;h<c;h++)d[h]=arguments[h+2];o.children=d}if(e&&e.defaultProps)for(i in c=e.defaultProps,c)o[i]===void 0&&(o[i]=c[i]);return{$$typeof:jn,type:e,key:s,ref:l,props:o,_owner:oo.current}}function kg(e,t){return{$$typeof:jn,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function so(e){return typeof e=="object"&&e!==null&&e.$$typeof===jn}function _g(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(u){return t[u]})}var Vc=/\/+/g;function lo(e,t){return typeof e=="object"&&e!==null&&e.key!=null?_g(""+e.key):t.toString(36)}function Wu(e,t,u,i,o){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case jn:case Tc:l=!0}}if(l)return l=e,o=o(l),e=i===""?"."+lo(l,0):i,Array.isArray(o)?(u="",e!=null&&(u=e.replace(Vc,"$&/")+"/"),Wu(o,t,u,"",function(h){return h})):o!=null&&(so(o)&&(o=kg(o,u+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(Vc,"$&/")+"/")+e)),t.push(o)),1;if(l=0,i=i===""?".":i+":",Array.isArray(e))for(var c=0;c<e.length;c++){s=e[c];var d=i+lo(s,c);l+=Wu(s,t,u,d,o)}else if(d=xg(e),typeof d=="function")for(e=d.call(e),c=0;!(s=e.next()).done;)s=s.value,d=i+lo(s,c++),l+=Wu(s,t,u,d,o);else if(s==="object")throw t=""+e,Error(xr(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function qu(e,t,u){if(e==null)return e;var i=[],o=0;return Wu(e,i,"","",function(s){return t.call(u,s,o++)}),i}function Og(e){if(e._status===-1){var t=e._result;t=t(),e._status=0,e._result=t,t.then(function(u){e._status===0&&(u=u.default,e._status=1,e._result=u)},function(u){e._status===0&&(e._status=2,e._result=u)})}if(e._status===1)return e._result;throw e._result}var Kc={current:null};function It(){var e=Kc.current;if(e===null)throw Error(xr(321));return e}var Ig={ReactCurrentDispatcher:Kc,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:oo,IsSomeRendererActing:{current:!1},assign:uo};re.Children={map:qu,forEach:function(e,t,u){qu(e,function(){t.apply(this,arguments)},u)},count:function(e){var t=0;return qu(e,function(){t++}),t},toArray:function(e){return qu(e,function(t){return t})||[]},only:function(e){if(!so(e))throw Error(xr(143));return e}},re.Component=Mn,re.PureComponent=io,re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ig,re.cloneElement=function(e,t,u){if(e==null)throw Error(xr(267,e));var i=uo({},e.props),o=e.key,s=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,l=oo.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(d in t)qc.call(t,d)&&!Qc.hasOwnProperty(d)&&(i[d]=t[d]===void 0&&c!==void 0?c[d]:t[d])}var d=arguments.length-2;if(d===1)i.children=u;else if(1<d){c=Array(d);for(var h=0;h<d;h++)c[h]=arguments[h+2];i.children=c}return{$$typeof:jn,type:e.type,key:o,ref:s,props:i,_owner:l}},re.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:Lc,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:$c,_context:e},e.Consumer=e},re.createElement=Jc,re.createFactory=function(e){var t=Jc.bind(null,e);return t.type=e,t},re.createRef=function(){return{current:null}},re.forwardRef=function(e){return{$$typeof:jc,render:e}},re.isValidElement=so,re.lazy=function(e){return{$$typeof:zc,_payload:{_status:-1,_result:e},_init:Og}},re.memo=function(e,t){return{$$typeof:Mc,type:e,compare:t===void 0?null:t}},re.useCallback=function(e,t){return It().useCallback(e,t)},re.useContext=function(e,t){return It().useContext(e,t)},re.useDebugValue=function(){},re.useEffect=function(e,t){return It().useEffect(e,t)},re.useImperativeHandle=function(e,t,u){return It().useImperativeHandle(e,t,u)},re.useLayoutEffect=function(e,t){return It().useLayoutEffect(e,t)},re.useMemo=function(e,t){return It().useMemo(e,t)},re.useReducer=function(e,t,u){return It().useReducer(e,t,u)},re.useRef=function(e){return It().useRef(e)},re.useState=function(e){return It().useState(e)},re.version="17.0.2",function(e){e.exports=re}(fe);var Q=Rc(fe.exports);const Yc=Symbol(),Rg=Symbol(),co=Symbol(),Do=Object.getPrototypeOf,fo=new WeakMap,Xc=e=>e&&(fo.has(e)?fo.get(e):Do(e)===Object.prototype||Do(e)===Array.prototype),Zc=e=>typeof e=="object"&&e!==null,Pg=(e,t)=>{let u=!1;const i=(s,l)=>{if(!u){let c=s.a.get(e);c||(c=new Set,s.a.set(e,c)),c.add(l)}},o={f:t,get(s,l){return l===co?e:(i(this,l),eD(s[l],this.a,this.c))},has(s,l){return l===Rg?(u=!0,this.a.delete(e),!0):(i(this,l),l in s)},ownKeys(s){return i(this,Yc),Reflect.ownKeys(s)}};return t&&(o.set=o.deleteProperty=()=>!1),o},eD=(e,t,u)=>{if(!Xc(e))return e;const i=e[co]||e,o=(l=>Object.isFrozen(l)||Object.values(Object.getOwnPropertyDescriptors(l)).some(c=>!c.writable))(i);let s=u&&u.get(i);return s&&s.f===o||(s=Pg(i,o),s.p=new Proxy(o?(l=>{if(Array.isArray(l))return Array.from(l);const c=Object.getOwnPropertyDescriptors(l);return Object.values(c).forEach(d=>{d.configurable=!0}),Object.create(Do(l),c)})(i):i,s),u&&u.set(i,s)),s.a=t,s.c=u,s.p},Ng=(e,t)=>{const u=Reflect.ownKeys(e),i=Reflect.ownKeys(t);return u.length!==i.length||u.some((o,s)=>o!==i[s])},ho=(e,t,u,i)=>{if(Object.is(e,t))return!1;if(!Zc(e)||!Zc(t))return!0;const o=u.get(e);if(!o)return!0;if(i){const l=i.get(e);if(l&&l.n===t)return l.g;i.set(e,{n:t,g:!1})}let s=null;for(const l of o){const c=l===Yc?Ng(e,t):ho(e[l],t[l],u,i);if(c!==!0&&c!==!1||(s=c),s)break}return s===null&&(s=!0),i&&i.set(e,{n:t,g:s}),s},Tg=e=>Xc(e)&&e[co]||null,tD=(e,t=!0)=>{fo.set(e,t)},nD=Symbol(),Rt=Symbol(),po=Symbol(),$g=Symbol(),kr=Symbol(),rD=Symbol(),uD=new WeakSet,Qu=e=>typeof e=="object"&&e!==null,Lg=e=>Qu(e)&&!uD.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer),iD=new WeakMap;let aD=1;const oD=new WeakMap,sD=(e={})=>{if(!Qu(e))throw new Error("object required");const t=iD.get(e);if(t)return t;let u=aD;const i=new Set,o=(g,C)=>{C||(C=++aD),u!==C&&(u=C,i.forEach(y=>y(g,C)))},s=new Map,l=g=>{let C=s.get(g);return C||(C=(y,v)=>{const k=[...y];k[1]=[g,...k[1]],o(k,v)},s.set(g,C)),C},c=g=>{const C=s.get(g);return s.delete(g),C},d=(g,C)=>{const y=oD.get(C);if((y==null?void 0:y[0])===u)return y[1];const v=Array.isArray(g)?[]:Object.create(Object.getPrototypeOf(g));return tD(v,!0),oD.set(C,[u,v]),Reflect.ownKeys(g).forEach(k=>{const R=Reflect.get(g,k,C);if(uD.has(R))tD(R,!1),v[k]=R;else if(R instanceof Promise)if(kr in R)v[k]=R[kr];else{const N=R[rD]||R;Object.defineProperty(v,k,{get(){if(kr in R)return R[kr];throw N}})}else R!=null&&R[Rt]?v[k]=R[po]:v[k]=R}),Object.freeze(v),v},h=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e)),m={get(g,C,y){return C===nD?u:C===Rt?i:C===po?d(g,y):C===$g?m:Reflect.get(g,C,y)},deleteProperty(g,C){const y=Reflect.get(g,C),v=y==null?void 0:y[Rt];v&&v.delete(c(C));const k=Reflect.deleteProperty(g,C);return k&&o(["delete",[C],y]),k},is:Object.is,canProxy:Lg,set(g,C,y,v){var k;const R=Reflect.get(g,C,v);if(this.is(R,y))return!0;const N=R==null?void 0:R[Rt];N&&N.delete(c(C)),Qu(y)&&(y=Tg(y)||y);let z;return(k=Object.getOwnPropertyDescriptor(g,C))!=null&&k.set?z=y:y instanceof Promise?z=y.then(w=>(z[kr]=w,o(["resolve",[C],w]),w)).catch(w=>{z[rD]=w,o(["reject",[C],w])}):y!=null&&y[Rt]?(z=y,z[Rt].add(l(C))):this.canProxy(y)?(z=sD(y),z[Rt].add(l(C))):z=y,Reflect.set(g,C,z,v),o(["set",[C],y,R]),!0}},E=new Proxy(h,m);return iD.set(e,E),Reflect.ownKeys(e).forEach(g=>{const C=Object.getOwnPropertyDescriptor(e,g);C.get||C.set?Object.defineProperty(h,g,C):E[g]=e[g]}),E},jg=e=>Qu(e)?e[nD]:void 0,Mg=(e,t,u)=>{let i;const o=[],s=l=>{if(o.push(l),u){t(o.splice(0));return}i||(i=Promise.resolve().then(()=>{i=void 0,t(o.splice(0))}))};return e[Rt].add(s),()=>{e[Rt].delete(s)}},go=e=>e[po],Vt="_uMS_T",mo="_uMS_V",zg=(e,t)=>({[Vt]:e,[mo]:t}),Ug=(e,t,u)=>{const i=fe.exports.useRef(),o=e[mo](e[Vt]),[s,l]=fe.exports.useState(()=>[e,t,u,o,t(e[Vt])]);let c=s[4];return s[0]!==e||s[1]!==t||s[2]!==u?(c=t(e[Vt]),l([e,t,u,o,c])):o!==s[3]&&o!==i.current&&(c=t(e[Vt]),Object.is(c,s[4])||l([e,t,u,o,c])),fe.exports.useEffect(()=>{let d=!1;const h=()=>{if(!d)try{const E=t(e[Vt]),g=e[mo](e[Vt]);i.current=g,l(C=>C[0]!==e||C[1]!==t||C[2]!==u||Object.is(C[4],E)?C:[C[0],C[1],C[2],g,E])}catch{l(E=>[...E])}},m=u(e[Vt],h);return h(),()=>{d=!0,m()}},[e,t,u]),c},Gg=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),lD=Gg?fe.exports.useEffect:fe.exports.useLayoutEffect,Eo=new WeakMap,Hg=e=>(Eo.has(e)||Eo.set(e,zg(e,jg)),Eo.get(e)),Wg=(e,t)=>{const u=fe.exports.useReducer(E=>E+1,0)[1],i=new WeakMap,o=fe.exports.useRef(),s=fe.exports.useRef(),l=fe.exports.useRef();lD(()=>{l.current=s.current=go(e)},[e]),lD(()=>{o.current=i,s.current!==l.current&&ho(s.current,l.current,i,new WeakMap)&&(s.current=l.current,u())});const c=t==null?void 0:t.sync,d=fe.exports.useCallback((E,g)=>Mg(E,()=>{const C=go(E);l.current=C;try{if(o.current&&!ho(s.current,C,o.current,new WeakMap))return}catch{}s.current=C,g()},c),[c]),h=Ug(Hg(e),go,d),m=fe.exports.useMemo(()=>new WeakMap,[]);return eD(h,i,m)};function qg(e,t=1,u={}){const{indent:i=" ",includeEmptyLines:o=!1}=u;if(typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(t<0)throw new RangeError(`Expected \`count\` to be at least 0, got \`${t}\``);if(typeof i!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof i}\``);if(t===0)return e;const s=o?/^/gm:/^(?!\s*$)/gm;return e.replace(s,i.repeat(t))}function Qg(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const cD=/\s+at.*[(\s](.*)\)?/,Jg=/^(?:(?:(?:node|node:[\w/]+|(?:(?:node:)?internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)(?:\.js)?:\d+:\d+)|native)/,Vg=typeof $u.default.homedir>"u"?"":$u.default.homedir().replace(/\\/g,"/");function Kg(e,{pretty:t=!1,basePath:u}={}){const i=u&&new RegExp(`(at | \\()${Qg(u.replace(/\\/g,"/"))}`,"g");if(typeof e=="string")return e.replace(/\\/g,"/").split(`
|
|
19
|
+
`).filter(o=>{const s=o.match(cD);if(s===null||!s[1])return!0;const l=s[1];return l.includes(".app/Contents/Resources/electron.asar")||l.includes(".app/Contents/Resources/default_app.asar")?!1:!Jg.test(l)}).filter(o=>o.trim()!=="").map(o=>(i&&(o=o.replace(i,"$1")),t&&(o=o.replace(cD,(s,l)=>s.replace(l,l.replace(Vg,"~")))),o)).join(`
|
|
20
|
+
`)}const Yg=e=>e.replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g,"");class Xg extends Error{constructor(t){if(!Array.isArray(t))throw new TypeError(`Expected input to be an Array, got ${typeof t}`);t=t.map(i=>i instanceof Error?i:i!==null&&typeof i=="object"?Object.assign(new Error(i.message),i):new Error(i));let u=t.map(i=>typeof i.stack=="string"?Yg(Kg(i.stack)):String(i)).join(`
|
|
21
|
+
`);u=`
|
|
22
|
+
`+qg(u,4),super(u),Fg(this,Hu,void 0),bg(this,"name","AggregateError"),vg(this,Hu,t)}get errors(){return yg(this,Hu).slice()}}Hu=new WeakMap;async function Zg(e,t,{concurrency:u=Number.POSITIVE_INFINITY,stopOnError:i=!0}={}){return new Promise((o,s)=>{if(e[Symbol.iterator]===void 0&&e[Symbol.asyncIterator]===void 0)throw new TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof e})`);if(typeof t!="function")throw new TypeError("Mapper function is required");if(!((Number.isSafeInteger(u)||u===Number.POSITIVE_INFINITY)&&u>=1))throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${u}\` (${typeof u})`);const l=[],c=[],d=new Map;let h=!1,m=!1,E=!1,g=0,C=0;const y=e[Symbol.iterator]===void 0?e[Symbol.asyncIterator]():e[Symbol.iterator](),v=R=>{h=!0,m=!0,s(R)},k=async()=>{if(m)return;const R=await y.next(),N=C;if(C++,R.done){if(E=!0,g===0&&!m){if(!i&&c.length>0){v(new Xg(c));return}if(m=!0,!d.size){o(l);return}const z=[];for(const[w,B]of l.entries())d.get(w)!==DD&&z.push(B);o(z)}return}g++,(async()=>{try{const z=await R.value;if(m)return;const w=await t(z,N);w===DD&&d.set(N,w),l[N]=w,g--,await k()}catch(z){if(i)v(z);else{c.push(z),g--;try{await k()}catch(w){v(w)}}}})()};(async()=>{for(let R=0;R<u;R++){try{await k()}catch(N){v(N);break}if(E||h)break}})()})}const DD=Symbol("skip");function em(e,t){const u=e.push(t)-1;return e[u]}function tm(e,t){const u=e.indexOf(t);u>-1&&e.splice(u,1)}var fD="Expected a function",dD=0/0,nm="[object Symbol]",rm=/^\s+|\s+$/g,um=/^[-+]0x[0-9a-f]+$/i,im=/^0b[01]+$/i,am=/^0o[0-7]+$/i,om=parseInt,sm=typeof Dt=="object"&&Dt&&Dt.Object===Object&&Dt,lm=typeof self=="object"&&self&&self.Object===Object&&self,cm=sm||lm||Function("return this")(),Dm=Object.prototype,fm=Dm.toString,dm=Math.max,hm=Math.min,Co=function(){return cm.Date.now()};function pm(e,t,u){var i,o,s,l,c,d,h=0,m=!1,E=!1,g=!0;if(typeof e!="function")throw new TypeError(fD);t=hD(t)||0,Ju(u)&&(m=!!u.leading,E="maxWait"in u,s=E?dm(hD(u.maxWait)||0,t):s,g="trailing"in u?!!u.trailing:g);function C(x){var P=i,_=o;return i=o=void 0,h=x,l=e.apply(_,P),l}function y(x){return h=x,c=setTimeout(R,t),m?C(x):l}function v(x){var P=x-d,_=x-h,T=t-P;return E?hm(T,s-_):T}function k(x){var P=x-d,_=x-h;return d===void 0||P>=t||P<0||E&&_>=s}function R(){var x=Co();if(k(x))return N(x);c=setTimeout(R,v(x))}function N(x){return c=void 0,g&&i?C(x):(i=o=void 0,l)}function z(){c!==void 0&&clearTimeout(c),h=0,i=d=o=c=void 0}function w(){return c===void 0?l:N(Co())}function B(){var x=Co(),P=k(x);if(i=arguments,o=this,d=x,P){if(c===void 0)return y(d);if(E)return c=setTimeout(R,t),C(d)}return c===void 0&&(c=setTimeout(R,t)),l}return B.cancel=z,B.flush=w,B}function gm(e,t,u){var i=!0,o=!0;if(typeof e!="function")throw new TypeError(fD);return Ju(u)&&(i="leading"in u?!!u.leading:i,o="trailing"in u?!!u.trailing:o),pm(e,t,{leading:i,maxWait:t,trailing:o})}function Ju(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function mm(e){return!!e&&typeof e=="object"}function Em(e){return typeof e=="symbol"||mm(e)&&fm.call(e)==nm}function hD(e){if(typeof e=="number")return e;if(Em(e))return dD;if(Ju(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ju(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(rm,"");var u=im.test(e);return u||am.test(e)?om(e.slice(2),u?2:8):um.test(e)?dD:+e}var pD=gm,gD={exports:{}};(function(e){const t=e.exports;e.exports.default=t;const u="\x1B[",i="\x1B]",o="\x07",s=";",l=process.env.TERM_PROGRAM==="Apple_Terminal";t.cursorTo=(c,d)=>{if(typeof c!="number")throw new TypeError("The `x` argument is required");return typeof d!="number"?u+(c+1)+"G":u+(d+1)+";"+(c+1)+"H"},t.cursorMove=(c,d)=>{if(typeof c!="number")throw new TypeError("The `x` argument is required");let h="";return c<0?h+=u+-c+"D":c>0&&(h+=u+c+"C"),d<0?h+=u+-d+"A":d>0&&(h+=u+d+"B"),h},t.cursorUp=(c=1)=>u+c+"A",t.cursorDown=(c=1)=>u+c+"B",t.cursorForward=(c=1)=>u+c+"C",t.cursorBackward=(c=1)=>u+c+"D",t.cursorLeft=u+"G",t.cursorSavePosition=l?"\x1B7":u+"s",t.cursorRestorePosition=l?"\x1B8":u+"u",t.cursorGetPosition=u+"6n",t.cursorNextLine=u+"E",t.cursorPrevLine=u+"F",t.cursorHide=u+"?25l",t.cursorShow=u+"?25h",t.eraseLines=c=>{let d="";for(let h=0;h<c;h++)d+=t.eraseLine+(h<c-1?t.cursorUp():"");return c&&(d+=t.cursorLeft),d},t.eraseEndLine=u+"K",t.eraseStartLine=u+"1K",t.eraseLine=u+"2K",t.eraseDown=u+"J",t.eraseUp=u+"1J",t.eraseScreen=u+"2J",t.scrollUp=u+"S",t.scrollDown=u+"T",t.clearScreen="\x1Bc",t.clearTerminal=process.platform==="win32"?`${t.eraseScreen}${u}0f`:`${t.eraseScreen}${u}3J${u}H`,t.beep=o,t.link=(c,d)=>[i,"8",s,s,d,o,c,i,"8",s,s,o].join(""),t.image=(c,d={})=>{let h=`${i}1337;File=inline=1`;return d.width&&(h+=`;width=${d.width}`),d.height&&(h+=`;height=${d.height}`),d.preserveAspectRatio===!1&&(h+=";preserveAspectRatio=0"),h+":"+c.toString("base64")+o},t.iTerm={setCwd:(c=process.cwd())=>`${i}50;CurrentDir=${c}${o}`,annotation:(c,d={})=>{let h=`${i}1337;`;const m=typeof d.x<"u",E=typeof d.y<"u";if((m||E)&&!(m&&E&&typeof d.length<"u"))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return c=c.replace(/\|/g,""),h+=d.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",d.length>0?h+=(m?[c,d.length,d.x,d.y]:[d.length,c]).join("|"):h+=c,h+o}}})(gD);var bo=gD.exports,_r={},Vu={exports:{}},yo={exports:{}};const mD=(e,t)=>{for(const u of Reflect.ownKeys(t))Object.defineProperty(e,u,Object.getOwnPropertyDescriptor(t,u));return e};yo.exports=mD,yo.exports.default=mD;const Cm=yo.exports,Ku=new WeakMap,ED=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let u,i=0;const o=e.displayName||e.name||"<anonymous>",s=function(...l){if(Ku.set(s,++i),i===1)u=e.apply(this,l),e=null;else if(t.throw===!0)throw new Error(`Function \`${o}\` can only be called once`);return u};return Cm(s,e),Ku.set(s,i),s};Vu.exports=ED,Vu.exports.default=ED,Vu.exports.callCount=e=>{if(!Ku.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Ku.get(e)};var pn={exports:{}},CD={exports:{}},bD;function bm(){return bD||(bD=1,function(e){e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],process.platform!=="win32"&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),process.platform==="linux"&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}(CD)),CD.exports}var pe=Dt.process;const gn=function(e){return e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function"};if(!gn(pe))pn.exports=function(){return function(){}};else{var ym=Lu.default,Or=bm(),Fm=/^win/i.test(pe.platform),Yu=wr.default;typeof Yu!="function"&&(Yu=Yu.EventEmitter);var Pe;pe.__signal_exit_emitter__?Pe=pe.__signal_exit_emitter__:(Pe=pe.__signal_exit_emitter__=new Yu,Pe.count=0,Pe.emitted={}),Pe.infinite||(Pe.setMaxListeners(1/0),Pe.infinite=!0),pn.exports=function(e,t){if(!gn(Dt.process))return function(){};ym.equal(typeof e,"function","a callback must be provided for exit handler"),Ir===!1&&yD();var u="exit";t&&t.alwaysLast&&(u="afterexit");var i=function(){Pe.removeListener(u,e),Pe.listeners("exit").length===0&&Pe.listeners("afterexit").length===0&&Fo()};return Pe.on(u,e),i};var Fo=function(){!Ir||!gn(Dt.process)||(Ir=!1,Or.forEach(function(e){try{pe.removeListener(e,vo[e])}catch{}}),pe.emit=wo,pe.reallyExit=FD,Pe.count-=1)};pn.exports.unload=Fo;var zn=function(e,t,u){Pe.emitted[e]||(Pe.emitted[e]=!0,Pe.emit(e,t,u))},vo={};Or.forEach(function(e){vo[e]=function(){if(gn(Dt.process)){var t=pe.listeners(e);t.length===Pe.count&&(Fo(),zn("exit",null,e),zn("afterexit",null,e),Fm&&e==="SIGHUP"&&(e="SIGINT"),pe.kill(pe.pid,e))}}}),pn.exports.signals=function(){return Or};var Ir=!1,yD=function(){Ir||!gn(Dt.process)||(Ir=!0,Pe.count+=1,Or=Or.filter(function(e){try{return pe.on(e,vo[e]),!0}catch{return!1}}),pe.emit=wm,pe.reallyExit=vm)};pn.exports.load=yD;var FD=pe.reallyExit,vm=function(e){!gn(Dt.process)||(pe.exitCode=e||0,zn("exit",pe.exitCode,null),zn("afterexit",pe.exitCode,null),FD.call(pe,pe.exitCode))},wo=pe.emit,wm=function(e,t){if(e==="exit"&&gn(Dt.process)){t!==void 0&&(pe.exitCode=t);var u=wo.apply(this,arguments);return zn("exit",pe.exitCode,null),zn("afterexit",pe.exitCode,null),u}else return wo.apply(this,arguments)}}const Sm=Vu.exports,Bm=pn.exports;var Am=Sm(()=>{Bm(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})});(function(e){const t=Am;let u=!1;e.show=(i=process.stderr)=>{!i.isTTY||(u=!1,i.write("\x1B[?25h"))},e.hide=(i=process.stderr)=>{!i.isTTY||(t(),u=!0,i.write("\x1B[?25l"))},e.toggle=(i,o)=>{i!==void 0&&(u=i),u?e.show(o):e.hide(o)}})(_r);var vD={},xm=[{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"SYSTEM_TEAMFOUNDATIONCOLLECTIONURI",pr:"SYSTEM_PULLREQUEST_PULLREQUESTID"},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY_BUILD_BASE",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Shippable",constant:"SHIPPABLE",env:"SHIPPABLE",pr:{IS_PULL_REQUEST:"true"}},{name:"Solano CI",constant:"SOLANO",env:"TDDIUM",pr:"TDDIUM_PR_ID"},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}}];(function(e){var t=xm,u=process.env;Object.defineProperty(e,"_vendors",{value:t.map(function(o){return o.constant})}),e.name=null,e.isPR=null,t.forEach(function(o){var s=Array.isArray(o.env)?o.env:[o.env],l=s.every(function(c){return i(c)});if(e[o.constant]=l,l)switch(e.name=o.name,typeof o.pr){case"string":e.isPR=!!u[o.pr];break;case"object":"env"in o.pr?e.isPR=o.pr.env in u&&u[o.pr.env]!==o.pr.ne:"any"in o.pr?e.isPR=o.pr.any.some(function(c){return!!u[c]}):e.isPR=i(o.pr);break;default:e.isPR=null}}),e.isCI=!!(u.CI||u.CONTINUOUS_INTEGRATION||u.BUILD_NUMBER||u.RUN_ID||e.name);function i(o){return typeof o=="string"?!!u[o]:Object.keys(o).every(function(s){return u[s]===o[s]})}})(vD);var km=vD.isCI;const _m=e=>{const t=new Set;do for(const u of Reflect.ownKeys(e))t.add([e,u]);while((e=Reflect.getPrototypeOf(e))&&e!==Object.prototype);return t};var Om=(e,{include:t,exclude:u}={})=>{const i=o=>{const s=l=>typeof l=="string"?o===l:l.test(o);return t?t.some(s):u?!u.some(s):!0};for(const[o,s]of _m(e.constructor.prototype)){if(s==="constructor"||!i(s))continue;const l=Reflect.getOwnPropertyDescriptor(o,s);l&&typeof l.value=="function"&&(e[s]=e[s].bind(e))}return e},Xu={exports:{}},wD={};/** @license React v0.20.2
|
|
23
|
+
* scheduler.production.min.js
|
|
24
|
+
*
|
|
25
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
26
|
+
*
|
|
27
|
+
* This source code is licensed under the MIT license found in the
|
|
28
|
+
* LICENSE file in the root directory of this source tree.
|
|
29
|
+
*/(function(e){var t,u,i,o;if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}if(typeof window>"u"||typeof MessageChannel!="function"){var d=null,h=null,m=function(){if(d!==null)try{var L=e.unstable_now();d(!0,L),d=null}catch(V){throw setTimeout(m,0),V}};t=function(L){d!==null?setTimeout(t,0,L):(d=L,setTimeout(m,0))},u=function(L,V){h=setTimeout(L,V)},i=function(){clearTimeout(h)},e.unstable_shouldYield=function(){return!1},o=e.unstable_forceFrameRate=function(){}}else{var E=window.setTimeout,g=window.clearTimeout;if(typeof console<"u"){var C=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof C!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var y=!1,v=null,k=-1,R=5,N=0;e.unstable_shouldYield=function(){return e.unstable_now()>=N},o=function(){},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<L?Math.floor(1e3/L):5};var z=new MessageChannel,w=z.port2;z.port1.onmessage=function(){if(v!==null){var L=e.unstable_now();N=L+R;try{v(!0,L)?w.postMessage(null):(y=!1,v=null)}catch(V){throw w.postMessage(null),V}}else y=!1},t=function(L){v=L,y||(y=!0,w.postMessage(null))},u=function(L,V){k=E(function(){L(e.unstable_now())},V)},i=function(){g(k),k=-1}}function B(L,V){var te=L.length;L.push(V);e:for(;;){var ce=te-1>>>1,be=L[ce];if(be!==void 0&&0<_(be,V))L[ce]=V,L[te]=be,te=ce;else break e}}function x(L){return L=L[0],L===void 0?null:L}function P(L){var V=L[0];if(V!==void 0){var te=L.pop();if(te!==V){L[0]=te;e:for(var ce=0,be=L.length;ce<be;){var pt=2*(ce+1)-1,at=L[pt],Nt=pt+1,vt=L[Nt];if(at!==void 0&&0>_(at,te))vt!==void 0&&0>_(vt,at)?(L[ce]=vt,L[Nt]=te,ce=Nt):(L[ce]=at,L[pt]=te,ce=pt);else if(vt!==void 0&&0>_(vt,te))L[ce]=vt,L[Nt]=te,ce=Nt;else break e}}return V}return null}function _(L,V){var te=L.sortIndex-V.sortIndex;return te!==0?te:L.id-V.id}var T=[],H=[],G=1,X=null,ee=3,we=!1,Fe=!1,Ae=!1;function oe(L){for(var V=x(H);V!==null;){if(V.callback===null)P(H);else if(V.startTime<=L)P(H),V.sortIndex=V.expirationTime,B(T,V);else break;V=x(H)}}function ie(L){if(Ae=!1,oe(L),!Fe)if(x(T)!==null)Fe=!0,t(it);else{var V=x(H);V!==null&&u(ie,V.startTime-L)}}function it(L,V){Fe=!1,Ae&&(Ae=!1,i()),we=!0;var te=ee;try{for(oe(V),X=x(T);X!==null&&(!(X.expirationTime>V)||L&&!e.unstable_shouldYield());){var ce=X.callback;if(typeof ce=="function"){X.callback=null,ee=X.priorityLevel;var be=ce(X.expirationTime<=V);V=e.unstable_now(),typeof be=="function"?X.callback=be:X===x(T)&&P(T),oe(V)}else P(T);X=x(T)}if(X!==null)var pt=!0;else{var at=x(H);at!==null&&u(ie,at.startTime-V),pt=!1}return pt}finally{X=null,ee=te,we=!1}}var Ft=o;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_continueExecution=function(){Fe||we||(Fe=!0,t(it))},e.unstable_getCurrentPriorityLevel=function(){return ee},e.unstable_getFirstCallbackNode=function(){return x(T)},e.unstable_next=function(L){switch(ee){case 1:case 2:case 3:var V=3;break;default:V=ee}var te=ee;ee=V;try{return L()}finally{ee=te}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=Ft,e.unstable_runWithPriority=function(L,V){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var te=ee;ee=L;try{return V()}finally{ee=te}},e.unstable_scheduleCallback=function(L,V,te){var ce=e.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?ce+te:ce):te=ce,L){case 1:var be=-1;break;case 2:be=250;break;case 5:be=1073741823;break;case 4:be=1e4;break;default:be=5e3}return be=te+be,L={id:G++,callback:V,priorityLevel:L,startTime:te,expirationTime:be,sortIndex:-1},te>ce?(L.sortIndex=te,B(H,L),x(T)===null&&L===x(H)&&(Ae?i():Ae=!0,u(ie,te-ce))):(L.sortIndex=be,B(T,L),Fe||we||(Fe=!0,t(it))),L},e.unstable_wrapCallback=function(L){var V=ee;return function(){var te=ee;ee=V;try{return L.apply(this,arguments)}finally{ee=te}}}})(wD),function(e){e.exports=wD}(Xu);var SD={exports:{}},BD={exports:{}};/** @license React v0.26.2
|
|
30
|
+
* react-reconciler.production.min.js
|
|
31
|
+
*
|
|
32
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
33
|
+
*
|
|
34
|
+
* This source code is licensed under the MIT license found in the
|
|
35
|
+
* LICENSE file in the root directory of this source tree.
|
|
36
|
+
*/(function(e){e.exports=function(t){var u={},i=Nc,o=fe.exports,s=Xu.exports;function l(n){for(var r="https://reactjs.org/docs/error-decoder.html?invariant="+n,a=1;a<arguments.length;a++)r+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+n+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var c=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,d=60103,h=60106,m=60107,E=60108,g=60114,C=60109,y=60110,v=60112,k=60113,R=60120,N=60115,z=60116,w=60121,B=60129,x=60130,P=60131;if(typeof Symbol=="function"&&Symbol.for){var _=Symbol.for;d=_("react.element"),h=_("react.portal"),m=_("react.fragment"),E=_("react.strict_mode"),g=_("react.profiler"),C=_("react.provider"),y=_("react.context"),v=_("react.forward_ref"),k=_("react.suspense"),R=_("react.suspense_list"),N=_("react.memo"),z=_("react.lazy"),w=_("react.block"),_("react.scope"),B=_("react.debug_trace_mode"),x=_("react.offscreen"),P=_("react.legacy_hidden")}var T=typeof Symbol=="function"&&Symbol.iterator;function H(n){return n===null||typeof n!="object"?null:(n=T&&n[T]||n["@@iterator"],typeof n=="function"?n:null)}function G(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case m:return"Fragment";case h:return"Portal";case g:return"Profiler";case E:return"StrictMode";case k:return"Suspense";case R:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case y:return(n.displayName||"Context")+".Consumer";case C:return(n._context.displayName||"Context")+".Provider";case v:var r=n.render;return r=r.displayName||r.name||"",n.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case N:return G(n.type);case w:return G(n._render);case z:r=n._payload,n=n._init;try{return G(n(r))}catch{}}return null}function X(n){var r=n,a=n;if(n.alternate)for(;r.return;)r=r.return;else{n=r;do r=n,(r.flags&1026)!==0&&(a=r.return),n=r.return;while(n)}return r.tag===3?a:null}function ee(n){if(X(n)!==n)throw Error(l(188))}function we(n){var r=n.alternate;if(!r){if(r=X(n),r===null)throw Error(l(188));return r!==n?null:n}for(var a=n,D=r;;){var f=a.return;if(f===null)break;var p=f.alternate;if(p===null){if(D=f.return,D!==null){a=D;continue}break}if(f.child===p.child){for(p=f.child;p;){if(p===a)return ee(f),n;if(p===D)return ee(f),r;p=p.sibling}throw Error(l(188))}if(a.return!==D.return)a=f,D=p;else{for(var b=!1,F=f.child;F;){if(F===a){b=!0,a=f,D=p;break}if(F===D){b=!0,D=f,a=p;break}F=F.sibling}if(!b){for(F=p.child;F;){if(F===a){b=!0,a=p,D=f;break}if(F===D){b=!0,D=p,a=f;break}F=F.sibling}if(!b)throw Error(l(189))}}if(a.alternate!==D)throw Error(l(190))}if(a.tag!==3)throw Error(l(188));return a.stateNode.current===a?n:r}function Fe(n){if(n=we(n),!n)return null;for(var r=n;;){if(r.tag===5||r.tag===6)return r;if(r.child)r.child.return=r,r=r.child;else{if(r===n)break;for(;!r.sibling;){if(!r.return||r.return===n)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}}return null}function Ae(n){if(n=we(n),!n)return null;for(var r=n;;){if(r.tag===5||r.tag===6)return r;if(r.child&&r.tag!==4)r.child.return=r,r=r.child;else{if(r===n)break;for(;!r.sibling;){if(!r.return||r.return===n)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}}return null}function oe(n,r){for(var a=n.alternate;r!==null;){if(r===n||r===a)return!0;r=r.return}return!1}var ie=t.getPublicInstance,it=t.getRootHostContext,Ft=t.getChildHostContext,L=t.prepareForCommit,V=t.resetAfterCommit,te=t.createInstance,ce=t.appendInitialChild,be=t.finalizeInitialChildren,pt=t.prepareUpdate,at=t.shouldSetTextContent,Nt=t.createTextInstance,vt=t.scheduleTimeout,Ud=t.cancelTimeout,ki=t.noTimeout,un=t.isPrimaryRenderer,ot=t.supportsMutation,Yn=t.supportsPersistence,st=t.supportsHydration,Gd=t.getInstanceFromNode,Hd=t.makeOpaqueHydratingObject,_i=t.makeClientId,bs=t.beforeActiveInstanceBlur,Wd=t.afterActiveInstanceBlur,qd=t.preparePortalMount,Xn=t.supportsTestSelectors,Qd=t.findFiberRoot,Jd=t.getBoundingRect,Vd=t.getTextContent,Zn=t.isHiddenSubtree,Kd=t.matchAccessibilityRole,Yd=t.setFocusIfFocusable,Xd=t.setupIntersectionObserver,Zd=t.appendChild,eh=t.appendChildToContainer,th=t.commitTextUpdate,nh=t.commitMount,rh=t.commitUpdate,uh=t.insertBefore,ih=t.insertInContainerBefore,ah=t.removeChild,oh=t.removeChildFromContainer,ys=t.resetTextContent,sh=t.hideInstance,lh=t.hideTextInstance,ch=t.unhideInstance,Dh=t.unhideTextInstance,Oi=t.clearContainer,fh=t.cloneInstance,Fs=t.createContainerChildSet,vs=t.appendChildToContainerChildSet,dh=t.finalizeContainerChildren,ws=t.replaceContainerChildren,Ss=t.cloneHiddenInstance,Bs=t.cloneHiddenTextInstance,hh=t.canHydrateInstance,ph=t.canHydrateTextInstance,gh=t.isSuspenseInstancePending,mh=t.isSuspenseInstanceFallback,Ii=t.getNextHydratableSibling,As=t.getFirstHydratableChild,Eh=t.hydrateInstance,Ch=t.hydrateTextInstance,bh=t.getNextHydratableInstanceAfterSuspenseInstance,xs=t.commitHydratedContainer,yh=t.commitHydratedSuspenseInstance,Ri;function er(n){if(Ri===void 0)try{throw Error()}catch(a){var r=a.stack.trim().match(/\n( *(at )?)/);Ri=r&&r[1]||""}return`
|
|
37
|
+
`+Ri+n}var Pi=!1;function qr(n,r){if(!n||Pi)return"";Pi=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(r)if(r=function(){throw Error()},Object.defineProperty(r.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(r,[])}catch(O){var D=O}Reflect.construct(n,[],r)}else{try{r.call()}catch(O){D=O}n.call(r.prototype)}else{try{throw Error()}catch(O){D=O}n()}}catch(O){if(O&&D&&typeof O.stack=="string"){for(var f=O.stack.split(`
|
|
38
|
+
`),p=D.stack.split(`
|
|
39
|
+
`),b=f.length-1,F=p.length-1;1<=b&&0<=F&&f[b]!==p[F];)F--;for(;1<=b&&0<=F;b--,F--)if(f[b]!==p[F]){if(b!==1||F!==1)do if(b--,F--,0>F||f[b]!==p[F])return`
|
|
40
|
+
`+f[b].replace(" at new "," at ");while(1<=b&&0<=F);break}}}finally{Pi=!1,Error.prepareStackTrace=a}return(n=n?n.displayName||n.name:"")?er(n):""}var Ni=[],bn=-1;function Tt(n){return{current:n}}function De(n){0>bn||(n.current=Ni[bn],Ni[bn]=null,bn--)}function me(n,r){bn++,Ni[bn]=n.current,n.current=r}var $t={},Ne=Tt($t),ze=Tt(!1),an=$t;function yn(n,r){var a=n.type.contextTypes;if(!a)return $t;var D=n.stateNode;if(D&&D.__reactInternalMemoizedUnmaskedChildContext===r)return D.__reactInternalMemoizedMaskedChildContext;var f={},p;for(p in a)f[p]=r[p];return D&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=r,n.__reactInternalMemoizedMaskedChildContext=f),f}function Ue(n){return n=n.childContextTypes,n!=null}function Qr(){De(ze),De(Ne)}function ks(n,r,a){if(Ne.current!==$t)throw Error(l(168));me(Ne,r),me(ze,a)}function _s(n,r,a){var D=n.stateNode;if(n=r.childContextTypes,typeof D.getChildContext!="function")return a;D=D.getChildContext();for(var f in D)if(!(f in n))throw Error(l(108,G(r)||"Unknown",f));return i({},a,D)}function Jr(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||$t,an=Ne.current,me(Ne,n),me(ze,ze.current),!0}function Os(n,r,a){var D=n.stateNode;if(!D)throw Error(l(169));a?(n=_s(n,r,an),D.__reactInternalMemoizedMergedChildContext=n,De(ze),De(Ne),me(Ne,n)):De(ze),me(ze,a)}var Ti=null,on=null,Fh=s.unstable_now;Fh();var Vr=0,se=8;function sn(n){if((1&n)!==0)return se=15,1;if((2&n)!==0)return se=14,2;if((4&n)!==0)return se=13,4;var r=24&n;return r!==0?(se=12,r):(n&32)!==0?(se=11,32):(r=192&n,r!==0?(se=10,r):(n&256)!==0?(se=9,256):(r=3584&n,r!==0?(se=8,r):(n&4096)!==0?(se=7,4096):(r=4186112&n,r!==0?(se=6,r):(r=62914560&n,r!==0?(se=5,r):n&67108864?(se=4,67108864):(n&134217728)!==0?(se=3,134217728):(r=805306368&n,r!==0?(se=2,r):(1073741824&n)!==0?(se=1,1073741824):(se=8,n))))))}function vh(n){switch(n){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function wh(n){switch(n){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(l(358,n))}}function tr(n,r){var a=n.pendingLanes;if(a===0)return se=0;var D=0,f=0,p=n.expiredLanes,b=n.suspendedLanes,F=n.pingedLanes;if(p!==0)D=p,f=se=15;else if(p=a&134217727,p!==0){var O=p&~b;O!==0?(D=sn(O),f=se):(F&=p,F!==0&&(D=sn(F),f=se))}else p=a&~b,p!==0?(D=sn(p),f=se):F!==0&&(D=sn(F),f=se);if(D===0)return 0;if(D=31-Lt(D),D=a&((0>D?0:1<<D)<<1)-1,r!==0&&r!==D&&(r&b)===0){if(sn(r),f<=se)return r;se=f}if(r=n.entangledLanes,r!==0)for(n=n.entanglements,r&=D;0<r;)a=31-Lt(r),f=1<<a,D|=n[a],r&=~f;return D}function Is(n){return n=n.pendingLanes&-1073741825,n!==0?n:n&1073741824?1073741824:0}function Kr(n,r){switch(n){case 15:return 1;case 14:return 2;case 12:return n=Fn(24&~r),n===0?Kr(10,r):n;case 10:return n=Fn(192&~r),n===0?Kr(8,r):n;case 8:return n=Fn(3584&~r),n===0&&(n=Fn(4186112&~r),n===0&&(n=512)),n;case 2:return r=Fn(805306368&~r),r===0&&(r=268435456),r}throw Error(l(358,n))}function Fn(n){return n&-n}function $i(n){for(var r=[],a=0;31>a;a++)r.push(n);return r}function Yr(n,r,a){n.pendingLanes|=r;var D=r-1;n.suspendedLanes&=D,n.pingedLanes&=D,n=n.eventTimes,r=31-Lt(r),n[r]=a}var Lt=Math.clz32?Math.clz32:Ah,Sh=Math.log,Bh=Math.LN2;function Ah(n){return n===0?32:31-(Sh(n)/Bh|0)|0}var xh=s.unstable_runWithPriority,Li=s.unstable_scheduleCallback,ji=s.unstable_cancelCallback,kh=s.unstable_shouldYield,Rs=s.unstable_requestPaint,Mi=s.unstable_now,_h=s.unstable_getCurrentPriorityLevel,Xr=s.unstable_ImmediatePriority,Ps=s.unstable_UserBlockingPriority,Ns=s.unstable_NormalPriority,Ts=s.unstable_LowPriority,$s=s.unstable_IdlePriority,zi={},Oh=Rs!==void 0?Rs:function(){},wt=null,Zr=null,Ui=!1,Ls=Mi(),xe=1e4>Ls?Mi:function(){return Mi()-Ls};function vn(){switch(_h()){case Xr:return 99;case Ps:return 98;case Ns:return 97;case Ts:return 96;case $s:return 95;default:throw Error(l(332))}}function js(n){switch(n){case 99:return Xr;case 98:return Ps;case 97:return Ns;case 96:return Ts;case 95:return $s;default:throw Error(l(332))}}function St(n,r){return n=js(n),xh(n,r)}function nr(n,r,a){return n=js(n),Li(n,r,a)}function Ke(){if(Zr!==null){var n=Zr;Zr=null,ji(n)}Ms()}function Ms(){if(!Ui&&wt!==null){Ui=!0;var n=0;try{var r=wt;St(99,function(){for(;n<r.length;n++){var a=r[n];do a=a(!0);while(a!==null)}}),wt=null}catch(a){throw wt!==null&&(wt=wt.slice(n+1)),Li(Xr,Ke),a}finally{Ui=!1}}}var Ih=c.ReactCurrentBatchConfig;function Rh(n,r){return n===r&&(n!==0||1/n===1/r)||n!==n&&r!==r}var Ye=typeof Object.is=="function"?Object.is:Rh,Ph=Object.prototype.hasOwnProperty;function eu(n,r){if(Ye(n,r))return!0;if(typeof n!="object"||n===null||typeof r!="object"||r===null)return!1;var a=Object.keys(n),D=Object.keys(r);if(a.length!==D.length)return!1;for(D=0;D<a.length;D++)if(!Ph.call(r,a[D])||!Ye(n[a[D]],r[a[D]]))return!1;return!0}function Nh(n){switch(n.tag){case 5:return er(n.type);case 16:return er("Lazy");case 13:return er("Suspense");case 19:return er("SuspenseList");case 0:case 2:case 15:return n=qr(n.type,!1),n;case 11:return n=qr(n.type.render,!1),n;case 22:return n=qr(n.type._render,!1),n;case 1:return n=qr(n.type,!0),n;default:return""}}function lt(n,r){if(n&&n.defaultProps){r=i({},r),n=n.defaultProps;for(var a in n)r[a]===void 0&&(r[a]=n[a]);return r}return r}var tu=Tt(null),nu=null,wn=null,ru=null;function Gi(){ru=wn=nu=null}function zs(n,r){n=n.type._context,un?(me(tu,n._currentValue),n._currentValue=r):(me(tu,n._currentValue2),n._currentValue2=r)}function Hi(n){var r=tu.current;De(tu),n=n.type._context,un?n._currentValue=r:n._currentValue2=r}function Us(n,r){for(;n!==null;){var a=n.alternate;if((n.childLanes&r)===r){if(a===null||(a.childLanes&r)===r)break;a.childLanes|=r}else n.childLanes|=r,a!==null&&(a.childLanes|=r);n=n.return}}function Sn(n,r){nu=n,ru=wn=null,n=n.dependencies,n!==null&&n.firstContext!==null&&((n.lanes&r)!==0&&(ct=!0),n.firstContext=null)}function Xe(n,r){if(ru!==n&&r!==!1&&r!==0)if((typeof r!="number"||r===1073741823)&&(ru=n,r=1073741823),r={context:n,observedBits:r,next:null},wn===null){if(nu===null)throw Error(l(308));wn=r,nu.dependencies={lanes:0,firstContext:r,responders:null}}else wn=wn.next=r;return un?n._currentValue:n._currentValue2}var jt=!1;function Wi(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function Gs(n,r){n=n.updateQueue,r.updateQueue===n&&(r.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,effects:n.effects})}function Mt(n,r){return{eventTime:n,lane:r,tag:0,payload:null,callback:null,next:null}}function zt(n,r){if(n=n.updateQueue,n!==null){n=n.shared;var a=n.pending;a===null?r.next=r:(r.next=a.next,a.next=r),n.pending=r}}function Hs(n,r){var a=n.updateQueue,D=n.alternate;if(D!==null&&(D=D.updateQueue,a===D)){var f=null,p=null;if(a=a.firstBaseUpdate,a!==null){do{var b={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};p===null?f=p=b:p=p.next=b,a=a.next}while(a!==null);p===null?f=p=r:p=p.next=r}else f=p=r;a={baseState:D.baseState,firstBaseUpdate:f,lastBaseUpdate:p,shared:D.shared,effects:D.effects},n.updateQueue=a;return}n=a.lastBaseUpdate,n===null?a.firstBaseUpdate=r:n.next=r,a.lastBaseUpdate=r}function rr(n,r,a,D){var f=n.updateQueue;jt=!1;var p=f.firstBaseUpdate,b=f.lastBaseUpdate,F=f.shared.pending;if(F!==null){f.shared.pending=null;var O=F,$=O.next;O.next=null,b===null?p=$:b.next=$,b=O;var W=n.alternate;if(W!==null){W=W.updateQueue;var K=W.lastBaseUpdate;K!==b&&(K===null?W.firstBaseUpdate=$:K.next=$,W.lastBaseUpdate=O)}}if(p!==null){K=f.baseState,b=0,W=$=O=null;do{F=p.lane;var M=p.eventTime;if((D&F)===F){W!==null&&(W=W.next={eventTime:M,lane:0,tag:p.tag,payload:p.payload,callback:p.callback,next:null});e:{var ae=n,de=p;switch(F=r,M=a,de.tag){case 1:if(ae=de.payload,typeof ae=="function"){K=ae.call(M,K,F);break e}K=ae;break e;case 3:ae.flags=ae.flags&-4097|64;case 0:if(ae=de.payload,F=typeof ae=="function"?ae.call(M,K,F):ae,F==null)break e;K=i({},K,F);break e;case 2:jt=!0}}p.callback!==null&&(n.flags|=32,F=f.effects,F===null?f.effects=[p]:F.push(p))}else M={eventTime:M,lane:F,tag:p.tag,payload:p.payload,callback:p.callback,next:null},W===null?($=W=M,O=K):W=W.next=M,b|=F;if(p=p.next,p===null){if(F=f.shared.pending,F===null)break;p=F.next,F.next=null,f.lastBaseUpdate=F,f.shared.pending=null}}while(1);W===null&&(O=K),f.baseState=O,f.firstBaseUpdate=$,f.lastBaseUpdate=W,mr|=b,n.lanes=b,n.memoizedState=K}}function Ws(n,r,a){if(n=r.effects,r.effects=null,n!==null)for(r=0;r<n.length;r++){var D=n[r],f=D.callback;if(f!==null){if(D.callback=null,D=a,typeof f!="function")throw Error(l(191,f));f.call(D)}}}var qs=new o.Component().refs;function uu(n,r,a,D){r=n.memoizedState,a=a(D,r),a=a==null?r:i({},r,a),n.memoizedState=a,n.lanes===0&&(n.updateQueue.baseState=a)}var iu={isMounted:function(n){return(n=n._reactInternals)?X(n)===n:!1},enqueueSetState:function(n,r,a){n=n._reactInternals;var D=We(),f=Ht(n),p=Mt(D,f);p.payload=r,a!=null&&(p.callback=a),zt(n,p),_t(n,f,D)},enqueueReplaceState:function(n,r,a){n=n._reactInternals;var D=We(),f=Ht(n),p=Mt(D,f);p.tag=1,p.payload=r,a!=null&&(p.callback=a),zt(n,p),_t(n,f,D)},enqueueForceUpdate:function(n,r){n=n._reactInternals;var a=We(),D=Ht(n),f=Mt(a,D);f.tag=2,r!=null&&(f.callback=r),zt(n,f),_t(n,D,a)}};function Qs(n,r,a,D,f,p,b){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(D,p,b):r.prototype&&r.prototype.isPureReactComponent?!eu(a,D)||!eu(f,p):!0}function Js(n,r,a){var D=!1,f=$t,p=r.contextType;return typeof p=="object"&&p!==null?p=Xe(p):(f=Ue(r)?an:Ne.current,D=r.contextTypes,p=(D=D!=null)?yn(n,f):$t),r=new r(a,p),n.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=iu,n.stateNode=r,r._reactInternals=n,D&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=f,n.__reactInternalMemoizedMaskedChildContext=p),r}function Vs(n,r,a,D){n=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(a,D),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(a,D),r.state!==n&&iu.enqueueReplaceState(r,r.state,null)}function qi(n,r,a,D){var f=n.stateNode;f.props=a,f.state=n.memoizedState,f.refs=qs,Wi(n);var p=r.contextType;typeof p=="object"&&p!==null?f.context=Xe(p):(p=Ue(r)?an:Ne.current,f.context=yn(n,p)),rr(n,a,f,D),f.state=n.memoizedState,p=r.getDerivedStateFromProps,typeof p=="function"&&(uu(n,r,p,a),f.state=n.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(r=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),r!==f.state&&iu.enqueueReplaceState(f,f.state,null),rr(n,a,f,D),f.state=n.memoizedState),typeof f.componentDidMount=="function"&&(n.flags|=4)}var au=Array.isArray;function ur(n,r,a){if(n=a.ref,n!==null&&typeof n!="function"&&typeof n!="object"){if(a._owner){if(a=a._owner,a){if(a.tag!==1)throw Error(l(309));var D=a.stateNode}if(!D)throw Error(l(147,n));var f=""+n;return r!==null&&r.ref!==null&&typeof r.ref=="function"&&r.ref._stringRef===f?r.ref:(r=function(p){var b=D.refs;b===qs&&(b=D.refs={}),p===null?delete b[f]:b[f]=p},r._stringRef=f,r)}if(typeof n!="string")throw Error(l(284));if(!a._owner)throw Error(l(290,n))}return n}function ou(n,r){if(n.type!=="textarea")throw Error(l(31,Object.prototype.toString.call(r)==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":r))}function Ks(n){function r(A,S){if(n){var I=A.lastEffect;I!==null?(I.nextEffect=S,A.lastEffect=S):A.firstEffect=A.lastEffect=S,S.nextEffect=null,S.flags=8}}function a(A,S){if(!n)return null;for(;S!==null;)r(A,S),S=S.sibling;return null}function D(A,S){for(A=new Map;S!==null;)S.key!==null?A.set(S.key,S):A.set(S.index,S),S=S.sibling;return A}function f(A,S){return A=qt(A,S),A.index=0,A.sibling=null,A}function p(A,S,I){return A.index=I,n?(I=A.alternate,I!==null?(I=I.index,I<S?(A.flags=2,S):I):(A.flags=2,S)):S}function b(A){return n&&A.alternate===null&&(A.flags=2),A}function F(A,S,I,j){return S===null||S.tag!==6?(S=Pa(I,A.mode,j),S.return=A,S):(S=f(S,I),S.return=A,S)}function O(A,S,I,j){return S!==null&&S.elementType===I.type?(j=f(S,I.props),j.ref=ur(A,S,I),j.return=A,j):(j=Nu(I.type,I.key,I.props,null,A.mode,j),j.ref=ur(A,S,I),j.return=A,j)}function $(A,S,I,j){return S===null||S.tag!==4||S.stateNode.containerInfo!==I.containerInfo||S.stateNode.implementation!==I.implementation?(S=Na(I,A.mode,j),S.return=A,S):(S=f(S,I.children||[]),S.return=A,S)}function W(A,S,I,j,q){return S===null||S.tag!==7?(S=Rn(I,A.mode,j,q),S.return=A,S):(S=f(S,I),S.return=A,S)}function K(A,S,I){if(typeof S=="string"||typeof S=="number")return S=Pa(""+S,A.mode,I),S.return=A,S;if(typeof S=="object"&&S!==null){switch(S.$$typeof){case d:return I=Nu(S.type,S.key,S.props,null,A.mode,I),I.ref=ur(A,null,S),I.return=A,I;case h:return S=Na(S,A.mode,I),S.return=A,S}if(au(S)||H(S))return S=Rn(S,A.mode,I,null),S.return=A,S;ou(A,S)}return null}function M(A,S,I,j){var q=S!==null?S.key:null;if(typeof I=="string"||typeof I=="number")return q!==null?null:F(A,S,""+I,j);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case d:return I.key===q?I.type===m?W(A,S,I.props.children,j,q):O(A,S,I,j):null;case h:return I.key===q?$(A,S,I,j):null}if(au(I)||H(I))return q!==null?null:W(A,S,I,j,null);ou(A,I)}return null}function ae(A,S,I,j,q){if(typeof j=="string"||typeof j=="number")return A=A.get(I)||null,F(S,A,""+j,q);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case d:return A=A.get(j.key===null?I:j.key)||null,j.type===m?W(S,A,j.props.children,q,j.key):O(S,A,j,q);case h:return A=A.get(j.key===null?I:j.key)||null,$(S,A,j,q)}if(au(j)||H(j))return A=A.get(I)||null,W(S,A,j,q,null);ou(S,j)}return null}function de(A,S,I,j){for(var q=null,le=null,Y=S,ue=S=0,ye=null;Y!==null&&ue<I.length;ue++){Y.index>ue?(ye=Y,Y=null):ye=Y.sibling;var ne=M(A,Y,I[ue],j);if(ne===null){Y===null&&(Y=ye);break}n&&Y&&ne.alternate===null&&r(A,Y),S=p(ne,S,ue),le===null?q=ne:le.sibling=ne,le=ne,Y=ye}if(ue===I.length)return a(A,Y),q;if(Y===null){for(;ue<I.length;ue++)Y=K(A,I[ue],j),Y!==null&&(S=p(Y,S,ue),le===null?q=Y:le.sibling=Y,le=Y);return q}for(Y=D(A,Y);ue<I.length;ue++)ye=ae(Y,A,ue,I[ue],j),ye!==null&&(n&&ye.alternate!==null&&Y.delete(ye.key===null?ue:ye.key),S=p(ye,S,ue),le===null?q=ye:le.sibling=ye,le=ye);return n&&Y.forEach(function(Qt){return r(A,Qt)}),q}function nt(A,S,I,j){var q=H(I);if(typeof q!="function")throw Error(l(150));if(I=q.call(I),I==null)throw Error(l(151));for(var le=q=null,Y=S,ue=S=0,ye=null,ne=I.next();Y!==null&&!ne.done;ue++,ne=I.next()){Y.index>ue?(ye=Y,Y=null):ye=Y.sibling;var Qt=M(A,Y,ne.value,j);if(Qt===null){Y===null&&(Y=ye);break}n&&Y&&Qt.alternate===null&&r(A,Y),S=p(Qt,S,ue),le===null?q=Qt:le.sibling=Qt,le=Qt,Y=ye}if(ne.done)return a(A,Y),q;if(Y===null){for(;!ne.done;ue++,ne=I.next())ne=K(A,ne.value,j),ne!==null&&(S=p(ne,S,ue),le===null?q=ne:le.sibling=ne,le=ne);return q}for(Y=D(A,Y);!ne.done;ue++,ne=I.next())ne=ae(Y,A,ue,ne.value,j),ne!==null&&(n&&ne.alternate!==null&&Y.delete(ne.key===null?ue:ne.key),S=p(ne,S,ue),le===null?q=ne:le.sibling=ne,le=ne);return n&&Y.forEach(function(cp){return r(A,cp)}),q}return function(A,S,I,j){var q=typeof I=="object"&&I!==null&&I.type===m&&I.key===null;q&&(I=I.props.children);var le=typeof I=="object"&&I!==null;if(le)switch(I.$$typeof){case d:e:{for(le=I.key,q=S;q!==null;){if(q.key===le){switch(q.tag){case 7:if(I.type===m){a(A,q.sibling),S=f(q,I.props.children),S.return=A,A=S;break e}break;default:if(q.elementType===I.type){a(A,q.sibling),S=f(q,I.props),S.ref=ur(A,q,I),S.return=A,A=S;break e}}a(A,q);break}else r(A,q);q=q.sibling}I.type===m?(S=Rn(I.props.children,A.mode,j,I.key),S.return=A,A=S):(j=Nu(I.type,I.key,I.props,null,A.mode,j),j.ref=ur(A,S,I),j.return=A,A=j)}return b(A);case h:e:{for(q=I.key;S!==null;){if(S.key===q)if(S.tag===4&&S.stateNode.containerInfo===I.containerInfo&&S.stateNode.implementation===I.implementation){a(A,S.sibling),S=f(S,I.children||[]),S.return=A,A=S;break e}else{a(A,S);break}else r(A,S);S=S.sibling}S=Na(I,A.mode,j),S.return=A,A=S}return b(A)}if(typeof I=="string"||typeof I=="number")return I=""+I,S!==null&&S.tag===6?(a(A,S.sibling),S=f(S,I),S.return=A,A=S):(a(A,S),S=Pa(I,A.mode,j),S.return=A,A=S),b(A);if(au(I))return de(A,S,I,j);if(H(I))return nt(A,S,I,j);if(le&&ou(A,I),typeof I>"u"&&!q)switch(A.tag){case 1:case 22:case 0:case 11:case 15:throw Error(l(152,G(A.type)||"Component"))}return a(A,S)}}var su=Ks(!0),Ys=Ks(!1),ir={},Ze=Tt(ir),ar=Tt(ir),Bn=Tt(ir);function gt(n){if(n===ir)throw Error(l(174));return n}function Qi(n,r){me(Bn,r),me(ar,n),me(Ze,ir),n=it(r),De(Ze),me(Ze,n)}function An(){De(Ze),De(ar),De(Bn)}function Xs(n){var r=gt(Bn.current),a=gt(Ze.current);r=Ft(a,n.type,r),a!==r&&(me(ar,n),me(Ze,r))}function Ji(n){ar.current===n&&(De(Ze),De(ar))}var Ee=Tt(0);function lu(n){for(var r=n;r!==null;){if(r.tag===13){var a=r.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||gh(a)||mh(a)))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if((r.flags&64)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===n)break;for(;r.sibling===null;){if(r.return===null||r.return===n)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var Bt=null,ln=null,mt=!1;function Zs(n,r){var a=tt(5,null,null,0);a.elementType="DELETED",a.type="DELETED",a.stateNode=r,a.return=n,a.flags=8,n.lastEffect!==null?(n.lastEffect.nextEffect=a,n.lastEffect=a):n.firstEffect=n.lastEffect=a}function el(n,r){switch(n.tag){case 5:return r=hh(r,n.type,n.pendingProps),r!==null?(n.stateNode=r,!0):!1;case 6:return r=ph(r,n.pendingProps),r!==null?(n.stateNode=r,!0):!1;case 13:return!1;default:return!1}}function Vi(n){if(mt){var r=ln;if(r){var a=r;if(!el(n,r)){if(r=Ii(a),!r||!el(n,r)){n.flags=n.flags&-1025|2,mt=!1,Bt=n;return}Zs(Bt,a)}Bt=n,ln=As(r)}else n.flags=n.flags&-1025|2,mt=!1,Bt=n}}function tl(n){for(n=n.return;n!==null&&n.tag!==5&&n.tag!==3&&n.tag!==13;)n=n.return;Bt=n}function cu(n){if(!st||n!==Bt)return!1;if(!mt)return tl(n),mt=!0,!1;var r=n.type;if(n.tag!==5||r!=="head"&&r!=="body"&&!at(r,n.memoizedProps))for(r=ln;r;)Zs(n,r),r=Ii(r);if(tl(n),n.tag===13){if(!st)throw Error(l(316));if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(l(317));ln=bh(n)}else ln=Bt?Ii(n.stateNode):null;return!0}function Ki(){st&&(ln=Bt=null,mt=!1)}var xn=[];function Yi(){for(var n=0;n<xn.length;n++){var r=xn[n];un?r._workInProgressVersionPrimary=null:r._workInProgressVersionSecondary=null}xn.length=0}var or=c.ReactCurrentDispatcher,et=c.ReactCurrentBatchConfig,sr=0,Ce=null,Te=null,ke=null,Du=!1,lr=!1;function Ge(){throw Error(l(321))}function Xi(n,r){if(r===null)return!1;for(var a=0;a<r.length&&a<n.length;a++)if(!Ye(n[a],r[a]))return!1;return!0}function Zi(n,r,a,D,f,p){if(sr=p,Ce=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,or.current=n===null||n.memoizedState===null?$h:Lh,n=a(D,f),lr){p=0;do{if(lr=!1,!(25>p))throw Error(l(301));p+=1,ke=Te=null,r.updateQueue=null,or.current=jh,n=a(D,f)}while(lr)}if(or.current=pu,r=Te!==null&&Te.next!==null,sr=0,ke=Te=Ce=null,Du=!1,r)throw Error(l(300));return n}function cn(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ke===null?Ce.memoizedState=ke=n:ke=ke.next=n,ke}function Dn(){if(Te===null){var n=Ce.alternate;n=n!==null?n.memoizedState:null}else n=Te.next;var r=ke===null?Ce.memoizedState:ke.next;if(r!==null)ke=r,Te=n;else{if(n===null)throw Error(l(310));Te=n,n={memoizedState:Te.memoizedState,baseState:Te.baseState,baseQueue:Te.baseQueue,queue:Te.queue,next:null},ke===null?Ce.memoizedState=ke=n:ke=ke.next=n}return ke}function Et(n,r){return typeof r=="function"?r(n):r}function cr(n){var r=Dn(),a=r.queue;if(a===null)throw Error(l(311));a.lastRenderedReducer=n;var D=Te,f=D.baseQueue,p=a.pending;if(p!==null){if(f!==null){var b=f.next;f.next=p.next,p.next=b}D.baseQueue=f=p,a.pending=null}if(f!==null){f=f.next,D=D.baseState;var F=b=p=null,O=f;do{var $=O.lane;if((sr&$)===$)F!==null&&(F=F.next={lane:0,action:O.action,eagerReducer:O.eagerReducer,eagerState:O.eagerState,next:null}),D=O.eagerReducer===n?O.eagerState:n(D,O.action);else{var W={lane:$,action:O.action,eagerReducer:O.eagerReducer,eagerState:O.eagerState,next:null};F===null?(b=F=W,p=D):F=F.next=W,Ce.lanes|=$,mr|=$}O=O.next}while(O!==null&&O!==f);F===null?p=D:F.next=b,Ye(D,r.memoizedState)||(ct=!0),r.memoizedState=D,r.baseState=p,r.baseQueue=F,a.lastRenderedState=D}return[r.memoizedState,a.dispatch]}function Dr(n){var r=Dn(),a=r.queue;if(a===null)throw Error(l(311));a.lastRenderedReducer=n;var D=a.dispatch,f=a.pending,p=r.memoizedState;if(f!==null){a.pending=null;var b=f=f.next;do p=n(p,b.action),b=b.next;while(b!==f);Ye(p,r.memoizedState)||(ct=!0),r.memoizedState=p,r.baseQueue===null&&(r.baseState=p),a.lastRenderedState=p}return[p,D]}function nl(n,r,a){var D=r._getVersion;D=D(r._source);var f=un?r._workInProgressVersionPrimary:r._workInProgressVersionSecondary;if(f!==null?n=f===D:(n=n.mutableReadLanes,(n=(sr&n)===n)&&(un?r._workInProgressVersionPrimary=D:r._workInProgressVersionSecondary=D,xn.push(r))),n)return a(r._source);throw xn.push(r),Error(l(350))}function rl(n,r,a,D){var f=je;if(f===null)throw Error(l(349));var p=r._getVersion,b=p(r._source),F=or.current,O=F.useState(function(){return nl(f,r,a)}),$=O[1],W=O[0];O=ke;var K=n.memoizedState,M=K.refs,ae=M.getSnapshot,de=K.source;K=K.subscribe;var nt=Ce;return n.memoizedState={refs:M,source:r,subscribe:D},F.useEffect(function(){M.getSnapshot=a,M.setSnapshot=$;var A=p(r._source);if(!Ye(b,A)){A=a(r._source),Ye(W,A)||($(A),A=Ht(nt),f.mutableReadLanes|=A&f.pendingLanes),A=f.mutableReadLanes,f.entangledLanes|=A;for(var S=f.entanglements,I=A;0<I;){var j=31-Lt(I),q=1<<j;S[j]|=A,I&=~q}}},[a,r,D]),F.useEffect(function(){return D(r._source,function(){var A=M.getSnapshot,S=M.setSnapshot;try{S(A(r._source));var I=Ht(nt);f.mutableReadLanes|=I&f.pendingLanes}catch(j){S(function(){throw j})}})},[r,D]),Ye(ae,a)&&Ye(de,r)&&Ye(K,D)||(n={pending:null,dispatch:null,lastRenderedReducer:Et,lastRenderedState:W},n.dispatch=$=ra.bind(null,Ce,n),O.queue=n,O.baseQueue=null,W=nl(f,r,a),O.memoizedState=O.baseState=W),W}function ul(n,r,a){var D=Dn();return rl(D,n,r,a)}function fr(n){var r=cn();return typeof n=="function"&&(n=n()),r.memoizedState=r.baseState=n,n=r.queue={pending:null,dispatch:null,lastRenderedReducer:Et,lastRenderedState:n},n=n.dispatch=ra.bind(null,Ce,n),[r.memoizedState,n]}function fu(n,r,a,D){return n={tag:n,create:r,destroy:a,deps:D,next:null},r=Ce.updateQueue,r===null?(r={lastEffect:null},Ce.updateQueue=r,r.lastEffect=n.next=n):(a=r.lastEffect,a===null?r.lastEffect=n.next=n:(D=a.next,a.next=n,n.next=D,r.lastEffect=n)),n}function il(n){var r=cn();return n={current:n},r.memoizedState=n}function du(){return Dn().memoizedState}function ea(n,r,a,D){var f=cn();Ce.flags|=n,f.memoizedState=fu(1|r,a,void 0,D===void 0?null:D)}function ta(n,r,a,D){var f=Dn();D=D===void 0?null:D;var p=void 0;if(Te!==null){var b=Te.memoizedState;if(p=b.destroy,D!==null&&Xi(D,b.deps)){fu(r,a,p,D);return}}Ce.flags|=n,f.memoizedState=fu(1|r,a,p,D)}function al(n,r){return ea(516,4,n,r)}function hu(n,r){return ta(516,4,n,r)}function ol(n,r){return ta(4,2,n,r)}function sl(n,r){if(typeof r=="function")return n=n(),r(n),function(){r(null)};if(r!=null)return n=n(),r.current=n,function(){r.current=null}}function ll(n,r,a){return a=a!=null?a.concat([n]):null,ta(4,2,sl.bind(null,r,n),a)}function na(){}function cl(n,r){var a=Dn();r=r===void 0?null:r;var D=a.memoizedState;return D!==null&&r!==null&&Xi(r,D[1])?D[0]:(a.memoizedState=[n,r],n)}function Dl(n,r){var a=Dn();r=r===void 0?null:r;var D=a.memoizedState;return D!==null&&r!==null&&Xi(r,D[1])?D[0]:(n=n(),a.memoizedState=[n,r],n)}function Th(n,r){var a=vn();St(98>a?98:a,function(){n(!0)}),St(97<a?97:a,function(){var D=et.transition;et.transition=1;try{n(!1),r()}finally{et.transition=D}})}function ra(n,r,a){var D=We(),f=Ht(n),p={lane:f,action:a,eagerReducer:null,eagerState:null,next:null},b=r.pending;if(b===null?p.next=p:(p.next=b.next,b.next=p),r.pending=p,b=n.alternate,n===Ce||b!==null&&b===Ce)lr=Du=!0;else{if(n.lanes===0&&(b===null||b.lanes===0)&&(b=r.lastRenderedReducer,b!==null))try{var F=r.lastRenderedState,O=b(F,a);if(p.eagerReducer=b,p.eagerState=O,Ye(O,F))return}catch{}finally{}_t(n,f,D)}}var pu={readContext:Xe,useCallback:Ge,useContext:Ge,useEffect:Ge,useImperativeHandle:Ge,useLayoutEffect:Ge,useMemo:Ge,useReducer:Ge,useRef:Ge,useState:Ge,useDebugValue:Ge,useDeferredValue:Ge,useTransition:Ge,useMutableSource:Ge,useOpaqueIdentifier:Ge,unstable_isNewReconciler:!1},$h={readContext:Xe,useCallback:function(n,r){return cn().memoizedState=[n,r===void 0?null:r],n},useContext:Xe,useEffect:al,useImperativeHandle:function(n,r,a){return a=a!=null?a.concat([n]):null,ea(4,2,sl.bind(null,r,n),a)},useLayoutEffect:function(n,r){return ea(4,2,n,r)},useMemo:function(n,r){var a=cn();return r=r===void 0?null:r,n=n(),a.memoizedState=[n,r],n},useReducer:function(n,r,a){var D=cn();return r=a!==void 0?a(r):r,D.memoizedState=D.baseState=r,n=D.queue={pending:null,dispatch:null,lastRenderedReducer:n,lastRenderedState:r},n=n.dispatch=ra.bind(null,Ce,n),[D.memoizedState,n]},useRef:il,useState:fr,useDebugValue:na,useDeferredValue:function(n){var r=fr(n),a=r[0],D=r[1];return al(function(){var f=et.transition;et.transition=1;try{D(n)}finally{et.transition=f}},[n]),a},useTransition:function(){var n=fr(!1),r=n[0];return n=Th.bind(null,n[1]),il(n),[n,r]},useMutableSource:function(n,r,a){var D=cn();return D.memoizedState={refs:{getSnapshot:r,setSnapshot:null},source:n,subscribe:a},rl(D,n,r,a)},useOpaqueIdentifier:function(){if(mt){var n=!1,r=Hd(function(){throw n||(n=!0,a(_i())),Error(l(355))}),a=fr(r)[1];return(Ce.mode&2)===0&&(Ce.flags|=516,fu(5,function(){a(_i())},void 0,null)),r}return r=_i(),fr(r),r},unstable_isNewReconciler:!1},Lh={readContext:Xe,useCallback:cl,useContext:Xe,useEffect:hu,useImperativeHandle:ll,useLayoutEffect:ol,useMemo:Dl,useReducer:cr,useRef:du,useState:function(){return cr(Et)},useDebugValue:na,useDeferredValue:function(n){var r=cr(Et),a=r[0],D=r[1];return hu(function(){var f=et.transition;et.transition=1;try{D(n)}finally{et.transition=f}},[n]),a},useTransition:function(){var n=cr(Et)[0];return[du().current,n]},useMutableSource:ul,useOpaqueIdentifier:function(){return cr(Et)[0]},unstable_isNewReconciler:!1},jh={readContext:Xe,useCallback:cl,useContext:Xe,useEffect:hu,useImperativeHandle:ll,useLayoutEffect:ol,useMemo:Dl,useReducer:Dr,useRef:du,useState:function(){return Dr(Et)},useDebugValue:na,useDeferredValue:function(n){var r=Dr(Et),a=r[0],D=r[1];return hu(function(){var f=et.transition;et.transition=1;try{D(n)}finally{et.transition=f}},[n]),a},useTransition:function(){var n=Dr(Et)[0];return[du().current,n]},useMutableSource:ul,useOpaqueIdentifier:function(){return Dr(Et)[0]},unstable_isNewReconciler:!1},Mh=c.ReactCurrentOwner,ct=!1;function He(n,r,a,D){r.child=n===null?Ys(r,null,a,D):su(r,n.child,a,D)}function fl(n,r,a,D,f){a=a.render;var p=r.ref;return Sn(r,f),D=Zi(n,r,a,D,p,f),n!==null&&!ct?(r.updateQueue=n.updateQueue,r.flags&=-517,n.lanes&=~f,At(n,r,f)):(r.flags|=1,He(n,r,D,f),r.child)}function dl(n,r,a,D,f,p){if(n===null){var b=a.type;return typeof b=="function"&&!Ia(b)&&b.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(r.tag=15,r.type=b,hl(n,r,b,D,f,p)):(n=Nu(a.type,null,D,r,r.mode,p),n.ref=r.ref,n.return=r,r.child=n)}return b=n.child,(f&p)===0&&(f=b.memoizedProps,a=a.compare,a=a!==null?a:eu,a(f,D)&&n.ref===r.ref)?At(n,r,p):(r.flags|=1,n=qt(b,D),n.ref=r.ref,n.return=r,r.child=n)}function hl(n,r,a,D,f,p){if(n!==null&&eu(n.memoizedProps,D)&&n.ref===r.ref)if(ct=!1,(p&f)!==0)(n.flags&16384)!==0&&(ct=!0);else return r.lanes=n.lanes,At(n,r,p);return ia(n,r,a,D,p)}function ua(n,r,a){var D=r.pendingProps,f=D.children,p=n!==null?n.memoizedState:null;if(D.mode==="hidden"||D.mode==="unstable-defer-without-hiding")if((r.mode&4)===0)r.memoizedState={baseLanes:0},Iu(r,a);else if((a&1073741824)!==0)r.memoizedState={baseLanes:0},Iu(r,p!==null?p.baseLanes:a);else return n=p!==null?p.baseLanes|a:a,r.lanes=r.childLanes=1073741824,r.memoizedState={baseLanes:n},Iu(r,n),null;else p!==null?(D=p.baseLanes|a,r.memoizedState=null):D=a,Iu(r,D);return He(n,r,f,a),r.child}function pl(n,r){var a=r.ref;(n===null&&a!==null||n!==null&&n.ref!==a)&&(r.flags|=128)}function ia(n,r,a,D,f){var p=Ue(a)?an:Ne.current;return p=yn(r,p),Sn(r,f),a=Zi(n,r,a,D,p,f),n!==null&&!ct?(r.updateQueue=n.updateQueue,r.flags&=-517,n.lanes&=~f,At(n,r,f)):(r.flags|=1,He(n,r,a,f),r.child)}function gl(n,r,a,D,f){if(Ue(a)){var p=!0;Jr(r)}else p=!1;if(Sn(r,f),r.stateNode===null)n!==null&&(n.alternate=null,r.alternate=null,r.flags|=2),Js(r,a,D),qi(r,a,D,f),D=!0;else if(n===null){var b=r.stateNode,F=r.memoizedProps;b.props=F;var O=b.context,$=a.contextType;typeof $=="object"&&$!==null?$=Xe($):($=Ue(a)?an:Ne.current,$=yn(r,$));var W=a.getDerivedStateFromProps,K=typeof W=="function"||typeof b.getSnapshotBeforeUpdate=="function";K||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(F!==D||O!==$)&&Vs(r,b,D,$),jt=!1;var M=r.memoizedState;b.state=M,rr(r,D,b,f),O=r.memoizedState,F!==D||M!==O||ze.current||jt?(typeof W=="function"&&(uu(r,a,W,D),O=r.memoizedState),(F=jt||Qs(r,a,F,D,M,O,$))?(K||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(r.flags|=4)):(typeof b.componentDidMount=="function"&&(r.flags|=4),r.memoizedProps=D,r.memoizedState=O),b.props=D,b.state=O,b.context=$,D=F):(typeof b.componentDidMount=="function"&&(r.flags|=4),D=!1)}else{b=r.stateNode,Gs(n,r),F=r.memoizedProps,$=r.type===r.elementType?F:lt(r.type,F),b.props=$,K=r.pendingProps,M=b.context,O=a.contextType,typeof O=="object"&&O!==null?O=Xe(O):(O=Ue(a)?an:Ne.current,O=yn(r,O));var ae=a.getDerivedStateFromProps;(W=typeof ae=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(F!==K||M!==O)&&Vs(r,b,D,O),jt=!1,M=r.memoizedState,b.state=M,rr(r,D,b,f);var de=r.memoizedState;F!==K||M!==de||ze.current||jt?(typeof ae=="function"&&(uu(r,a,ae,D),de=r.memoizedState),($=jt||Qs(r,a,$,D,M,de,O))?(W||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(D,de,O),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(D,de,O)),typeof b.componentDidUpdate=="function"&&(r.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(r.flags|=256)):(typeof b.componentDidUpdate!="function"||F===n.memoizedProps&&M===n.memoizedState||(r.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||F===n.memoizedProps&&M===n.memoizedState||(r.flags|=256),r.memoizedProps=D,r.memoizedState=de),b.props=D,b.state=de,b.context=O,D=$):(typeof b.componentDidUpdate!="function"||F===n.memoizedProps&&M===n.memoizedState||(r.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||F===n.memoizedProps&&M===n.memoizedState||(r.flags|=256),D=!1)}return aa(n,r,a,D,p,f)}function aa(n,r,a,D,f,p){pl(n,r);var b=(r.flags&64)!==0;if(!D&&!b)return f&&Os(r,a,!1),At(n,r,p);D=r.stateNode,Mh.current=r;var F=b&&typeof a.getDerivedStateFromError!="function"?null:D.render();return r.flags|=1,n!==null&&b?(r.child=su(r,n.child,null,p),r.child=su(r,null,F,p)):He(n,r,F,p),r.memoizedState=D.state,f&&Os(r,a,!0),r.child}function ml(n){var r=n.stateNode;r.pendingContext?ks(n,r.pendingContext,r.pendingContext!==r.context):r.context&&ks(n,r.context,!1),Qi(n,r.containerInfo)}var gu={dehydrated:null,retryLane:0};function El(n,r,a){var D=r.pendingProps,f=Ee.current,p=!1,b;return(b=(r.flags&64)!==0)||(b=n!==null&&n.memoizedState===null?!1:(f&2)!==0),b?(p=!0,r.flags&=-65):n!==null&&n.memoizedState===null||D.fallback===void 0||D.unstable_avoidThisFallback===!0||(f|=1),me(Ee,f&1),n===null?(D.fallback!==void 0&&Vi(r),n=D.children,f=D.fallback,p?(n=Cl(r,n,f,a),r.child.memoizedState={baseLanes:a},r.memoizedState=gu,n):typeof D.unstable_expectedLoadTime=="number"?(n=Cl(r,n,f,a),r.child.memoizedState={baseLanes:a},r.memoizedState=gu,r.lanes=33554432,n):(a=Ra({mode:"visible",children:n},r.mode,a,null),a.return=r,r.child=a)):n.memoizedState!==null?p?(D=yl(n,r,D.children,D.fallback,a),p=r.child,f=n.child.memoizedState,p.memoizedState=f===null?{baseLanes:a}:{baseLanes:f.baseLanes|a},p.childLanes=n.childLanes&~a,r.memoizedState=gu,D):(a=bl(n,r,D.children,a),r.memoizedState=null,a):p?(D=yl(n,r,D.children,D.fallback,a),p=r.child,f=n.child.memoizedState,p.memoizedState=f===null?{baseLanes:a}:{baseLanes:f.baseLanes|a},p.childLanes=n.childLanes&~a,r.memoizedState=gu,D):(a=bl(n,r,D.children,a),r.memoizedState=null,a)}function Cl(n,r,a,D){var f=n.mode,p=n.child;return r={mode:"hidden",children:r},(f&2)===0&&p!==null?(p.childLanes=0,p.pendingProps=r):p=Ra(r,f,0,null),a=Rn(a,f,D,null),p.return=n,a.return=n,p.sibling=a,n.child=p,a}function bl(n,r,a,D){var f=n.child;return n=f.sibling,a=qt(f,{mode:"visible",children:a}),(r.mode&2)===0&&(a.lanes=D),a.return=r,a.sibling=null,n!==null&&(n.nextEffect=null,n.flags=8,r.firstEffect=r.lastEffect=n),r.child=a}function yl(n,r,a,D,f){var p=r.mode,b=n.child;n=b.sibling;var F={mode:"hidden",children:a};return(p&2)===0&&r.child!==b?(a=r.child,a.childLanes=0,a.pendingProps=F,b=a.lastEffect,b!==null?(r.firstEffect=a.firstEffect,r.lastEffect=b,b.nextEffect=null):r.firstEffect=r.lastEffect=null):a=qt(b,F),n!==null?D=qt(n,D):(D=Rn(D,p,f,null),D.flags|=2),D.return=r,a.return=r,a.sibling=D,r.child=a,D}function Fl(n,r){n.lanes|=r;var a=n.alternate;a!==null&&(a.lanes|=r),Us(n.return,r)}function oa(n,r,a,D,f,p){var b=n.memoizedState;b===null?n.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:D,tail:a,tailMode:f,lastEffect:p}:(b.isBackwards=r,b.rendering=null,b.renderingStartTime=0,b.last=D,b.tail=a,b.tailMode=f,b.lastEffect=p)}function vl(n,r,a){var D=r.pendingProps,f=D.revealOrder,p=D.tail;if(He(n,r,D.children,a),D=Ee.current,(D&2)!==0)D=D&1|2,r.flags|=64;else{if(n!==null&&(n.flags&64)!==0)e:for(n=r.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&Fl(n,a);else if(n.tag===19)Fl(n,a);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===r)break e;for(;n.sibling===null;){if(n.return===null||n.return===r)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}D&=1}if(me(Ee,D),(r.mode&2)===0)r.memoizedState=null;else switch(f){case"forwards":for(a=r.child,f=null;a!==null;)n=a.alternate,n!==null&&lu(n)===null&&(f=a),a=a.sibling;a=f,a===null?(f=r.child,r.child=null):(f=a.sibling,a.sibling=null),oa(r,!1,f,a,p,r.lastEffect);break;case"backwards":for(a=null,f=r.child,r.child=null;f!==null;){if(n=f.alternate,n!==null&&lu(n)===null){r.child=f;break}n=f.sibling,f.sibling=a,a=f,f=n}oa(r,!0,a,null,p,r.lastEffect);break;case"together":oa(r,!1,null,null,void 0,r.lastEffect);break;default:r.memoizedState=null}return r.child}function At(n,r,a){if(n!==null&&(r.dependencies=n.dependencies),mr|=r.lanes,(a&r.childLanes)!==0){if(n!==null&&r.child!==n.child)throw Error(l(153));if(r.child!==null){for(n=r.child,a=qt(n,n.pendingProps),r.child=a,a.return=r;n.sibling!==null;)n=n.sibling,a=a.sibling=qt(n,n.pendingProps),a.return=r;a.sibling=null}return r.child}return null}function Ct(n){n.flags|=4}var dr,hr,mu,Eu;if(ot)dr=function(n,r){for(var a=r.child;a!==null;){if(a.tag===5||a.tag===6)ce(n,a.stateNode);else if(a.tag!==4&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return;a=a.return}a.sibling.return=a.return,a=a.sibling}},hr=function(){},mu=function(n,r,a,D,f){if(n=n.memoizedProps,n!==D){var p=r.stateNode,b=gt(Ze.current);a=pt(p,a,n,D,f,b),(r.updateQueue=a)&&Ct(r)}},Eu=function(n,r,a,D){a!==D&&Ct(r)};else if(Yn){dr=function(n,r,a,D){for(var f=r.child;f!==null;){if(f.tag===5){var p=f.stateNode;a&&D&&(p=Ss(p,f.type,f.memoizedProps,f)),ce(n,p)}else if(f.tag===6)p=f.stateNode,a&&D&&(p=Bs(p,f.memoizedProps,f)),ce(n,p);else if(f.tag!==4){if(f.tag===13&&(f.flags&4)!==0&&(p=f.memoizedState!==null)){var b=f.child;if(b!==null&&(b.child!==null&&(b.child.return=b,dr(n,b,!0,p)),p=b.sibling,p!==null)){p.return=f,f=p;continue}}if(f.child!==null){f.child.return=f,f=f.child;continue}}if(f===r)break;for(;f.sibling===null;){if(f.return===null||f.return===r)return;f=f.return}f.sibling.return=f.return,f=f.sibling}};var wl=function(n,r,a,D){for(var f=r.child;f!==null;){if(f.tag===5){var p=f.stateNode;a&&D&&(p=Ss(p,f.type,f.memoizedProps,f)),vs(n,p)}else if(f.tag===6)p=f.stateNode,a&&D&&(p=Bs(p,f.memoizedProps,f)),vs(n,p);else if(f.tag!==4){if(f.tag===13&&(f.flags&4)!==0&&(p=f.memoizedState!==null)){var b=f.child;if(b!==null&&(b.child!==null&&(b.child.return=b,wl(n,b,!0,p)),p=b.sibling,p!==null)){p.return=f,f=p;continue}}if(f.child!==null){f.child.return=f,f=f.child;continue}}if(f===r)break;for(;f.sibling===null;){if(f.return===null||f.return===r)return;f=f.return}f.sibling.return=f.return,f=f.sibling}};hr=function(n){var r=n.stateNode;if(n.firstEffect!==null){var a=r.containerInfo,D=Fs(a);wl(D,n,!1,!1),r.pendingChildren=D,Ct(n),dh(a,D)}},mu=function(n,r,a,D,f){var p=n.stateNode,b=n.memoizedProps;if((n=r.firstEffect===null)&&b===D)r.stateNode=p;else{var F=r.stateNode,O=gt(Ze.current),$=null;b!==D&&($=pt(F,a,b,D,f,O)),n&&$===null?r.stateNode=p:(p=fh(p,$,a,b,D,r,n,F),be(p,a,D,f,O)&&Ct(r),r.stateNode=p,n?Ct(r):dr(p,r,!1,!1))}},Eu=function(n,r,a,D){a!==D?(n=gt(Bn.current),a=gt(Ze.current),r.stateNode=Nt(D,n,a,r),Ct(r)):r.stateNode=n.stateNode}}else hr=function(){},mu=function(){},Eu=function(){};function pr(n,r){if(!mt)switch(n.tailMode){case"hidden":r=n.tail;for(var a=null;r!==null;)r.alternate!==null&&(a=r),r=r.sibling;a===null?n.tail=null:a.sibling=null;break;case"collapsed":a=n.tail;for(var D=null;a!==null;)a.alternate!==null&&(D=a),a=a.sibling;D===null?r||n.tail===null?n.tail=null:n.tail.sibling=null:D.sibling=null}}function zh(n,r,a){var D=r.pendingProps;switch(r.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return Ue(r.type)&&Qr(),null;case 3:return An(),De(ze),De(Ne),Yi(),D=r.stateNode,D.pendingContext&&(D.context=D.pendingContext,D.pendingContext=null),(n===null||n.child===null)&&(cu(r)?Ct(r):D.hydrate||(r.flags|=256)),hr(r),null;case 5:Ji(r);var f=gt(Bn.current);if(a=r.type,n!==null&&r.stateNode!=null)mu(n,r,a,D,f),n.ref!==r.ref&&(r.flags|=128);else{if(!D){if(r.stateNode===null)throw Error(l(166));return null}if(n=gt(Ze.current),cu(r)){if(!st)throw Error(l(175));n=Eh(r.stateNode,r.type,r.memoizedProps,f,n,r),r.updateQueue=n,n!==null&&Ct(r)}else{var p=te(a,D,f,n,r);dr(p,r,!1,!1),r.stateNode=p,be(p,a,D,f,n)&&Ct(r)}r.ref!==null&&(r.flags|=128)}return null;case 6:if(n&&r.stateNode!=null)Eu(n,r,n.memoizedProps,D);else{if(typeof D!="string"&&r.stateNode===null)throw Error(l(166));if(n=gt(Bn.current),f=gt(Ze.current),cu(r)){if(!st)throw Error(l(176));Ch(r.stateNode,r.memoizedProps,r)&&Ct(r)}else r.stateNode=Nt(D,n,f,r)}return null;case 13:return De(Ee),D=r.memoizedState,(r.flags&64)!==0?(r.lanes=a,r):(D=D!==null,f=!1,n===null?r.memoizedProps.fallback!==void 0&&cu(r):f=n.memoizedState!==null,D&&!f&&(r.mode&2)!==0&&(n===null&&r.memoizedProps.unstable_avoidThisFallback!==!0||(Ee.current&1)!==0?_e===0&&(_e=3):((_e===0||_e===3)&&(_e=4),je===null||(mr&134217727)===0&&(_n&134217727)===0||On(je,$e))),Yn&&D&&(r.flags|=4),ot&&(D||f)&&(r.flags|=4),null);case 4:return An(),hr(r),n===null&&qd(r.stateNode.containerInfo),null;case 10:return Hi(r),null;case 17:return Ue(r.type)&&Qr(),null;case 19:if(De(Ee),D=r.memoizedState,D===null)return null;if(f=(r.flags&64)!==0,p=D.rendering,p===null)if(f)pr(D,!1);else{if(_e!==0||n!==null&&(n.flags&64)!==0)for(n=r.child;n!==null;){if(p=lu(n),p!==null){for(r.flags|=64,pr(D,!1),n=p.updateQueue,n!==null&&(r.updateQueue=n,r.flags|=4),D.lastEffect===null&&(r.firstEffect=null),r.lastEffect=D.lastEffect,n=a,D=r.child;D!==null;)f=D,a=n,f.flags&=2,f.nextEffect=null,f.firstEffect=null,f.lastEffect=null,p=f.alternate,p===null?(f.childLanes=0,f.lanes=a,f.child=null,f.memoizedProps=null,f.memoizedState=null,f.updateQueue=null,f.dependencies=null,f.stateNode=null):(f.childLanes=p.childLanes,f.lanes=p.lanes,f.child=p.child,f.memoizedProps=p.memoizedProps,f.memoizedState=p.memoizedState,f.updateQueue=p.updateQueue,f.type=p.type,a=p.dependencies,f.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),D=D.sibling;return me(Ee,Ee.current&1|2),r.child}n=n.sibling}D.tail!==null&&xe()>va&&(r.flags|=64,f=!0,pr(D,!1),r.lanes=33554432)}else{if(!f)if(n=lu(p),n!==null){if(r.flags|=64,f=!0,n=n.updateQueue,n!==null&&(r.updateQueue=n,r.flags|=4),pr(D,!0),D.tail===null&&D.tailMode==="hidden"&&!p.alternate&&!mt)return r=r.lastEffect=D.lastEffect,r!==null&&(r.nextEffect=null),null}else 2*xe()-D.renderingStartTime>va&&a!==1073741824&&(r.flags|=64,f=!0,pr(D,!1),r.lanes=33554432);D.isBackwards?(p.sibling=r.child,r.child=p):(n=D.last,n!==null?n.sibling=p:r.child=p,D.last=p)}return D.tail!==null?(n=D.tail,D.rendering=n,D.tail=n.sibling,D.lastEffect=r.lastEffect,D.renderingStartTime=xe(),n.sibling=null,r=Ee.current,me(Ee,f?r&1|2:r&1),n):null;case 23:case 24:return ka(),n!==null&&n.memoizedState!==null!=(r.memoizedState!==null)&&D.mode!=="unstable-defer-without-hiding"&&(r.flags|=4),null}throw Error(l(156,r.tag))}function Uh(n){switch(n.tag){case 1:Ue(n.type)&&Qr();var r=n.flags;return r&4096?(n.flags=r&-4097|64,n):null;case 3:if(An(),De(ze),De(Ne),Yi(),r=n.flags,(r&64)!==0)throw Error(l(285));return n.flags=r&-4097|64,n;case 5:return Ji(n),null;case 13:return De(Ee),r=n.flags,r&4096?(n.flags=r&-4097|64,n):null;case 19:return De(Ee),null;case 4:return An(),null;case 10:return Hi(n),null;case 23:case 24:return ka(),null;default:return null}}function sa(n,r){try{var a="",D=r;do a+=Nh(D),D=D.return;while(D);var f=a}catch(p){f=`
|
|
41
|
+
Error generating stack: `+p.message+`
|
|
42
|
+
`+p.stack}return{value:n,source:r,stack:f}}function la(n,r){try{console.error(r.value)}catch(a){setTimeout(function(){throw a})}}var Gh=typeof WeakMap=="function"?WeakMap:Map;function Sl(n,r,a){a=Mt(-1,a),a.tag=3,a.payload={element:null};var D=r.value;return a.callback=function(){xu||(xu=!0,wa=D),la(n,r)},a}function Bl(n,r,a){a=Mt(-1,a),a.tag=3;var D=n.type.getDerivedStateFromError;if(typeof D=="function"){var f=r.value;a.payload=function(){return la(n,r),D(f)}}var p=n.stateNode;return p!==null&&typeof p.componentDidCatch=="function"&&(a.callback=function(){typeof D!="function"&&(bt===null?bt=new Set([this]):bt.add(this),la(n,r));var b=r.stack;this.componentDidCatch(r.value,{componentStack:b!==null?b:""})}),a}var Hh=typeof WeakSet=="function"?WeakSet:Set;function Al(n){var r=n.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(a){Wt(n,a)}else r.current=null}function Wh(n,r){switch(r.tag){case 0:case 11:case 15:case 22:return;case 1:if(r.flags&256&&n!==null){var a=n.memoizedProps,D=n.memoizedState;n=r.stateNode,r=n.getSnapshotBeforeUpdate(r.elementType===r.type?a:lt(r.type,a),D),n.__reactInternalSnapshotBeforeUpdate=r}return;case 3:ot&&r.flags&256&&Oi(r.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(l(163))}function xl(n,r){if(r=r.updateQueue,r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&n)===n){var D=a.destroy;a.destroy=void 0,D!==void 0&&D()}a=a.next}while(a!==r)}}function qh(n,r,a){switch(a.tag){case 0:case 11:case 15:case 22:if(r=a.updateQueue,r=r!==null?r.lastEffect:null,r!==null){n=r=r.next;do{if((n.tag&3)===3){var D=n.create;n.destroy=D()}n=n.next}while(n!==r)}if(r=a.updateQueue,r=r!==null?r.lastEffect:null,r!==null){n=r=r.next;do{var f=n;D=f.next,f=f.tag,(f&4)!==0&&(f&1)!==0&&(Wl(a,n),tp(a,n)),n=D}while(n!==r)}return;case 1:n=a.stateNode,a.flags&4&&(r===null?n.componentDidMount():(D=a.elementType===a.type?r.memoizedProps:lt(a.type,r.memoizedProps),n.componentDidUpdate(D,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate))),r=a.updateQueue,r!==null&&Ws(a,r,n);return;case 3:if(r=a.updateQueue,r!==null){if(n=null,a.child!==null)switch(a.child.tag){case 5:n=ie(a.child.stateNode);break;case 1:n=a.child.stateNode}Ws(a,r,n)}return;case 5:n=a.stateNode,r===null&&a.flags&4&&nh(n,a.type,a.memoizedProps,a);return;case 6:return;case 4:return;case 12:return;case 13:st&&a.memoizedState===null&&(a=a.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&yh(a))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(l(163))}function kl(n,r){if(ot)for(var a=n;;){if(a.tag===5){var D=a.stateNode;r?sh(D):ch(a.stateNode,a.memoizedProps)}else if(a.tag===6)D=a.stateNode,r?lh(D):Dh(D,a.memoizedProps);else if((a.tag!==23&&a.tag!==24||a.memoizedState===null||a===n)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return;a=a.return}a.sibling.return=a.return,a=a.sibling}}function _l(n,r){if(on&&typeof on.onCommitFiberUnmount=="function")try{on.onCommitFiberUnmount(Ti,r)}catch{}switch(r.tag){case 0:case 11:case 14:case 15:case 22:if(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null)){var a=n=n.next;do{var D=a,f=D.destroy;if(D=D.tag,f!==void 0)if((D&4)!==0)Wl(r,a);else{D=r;try{f()}catch(p){Wt(D,p)}}a=a.next}while(a!==n)}break;case 1:if(Al(r),n=r.stateNode,typeof n.componentWillUnmount=="function")try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(p){Wt(r,p)}break;case 5:Al(r);break;case 4:ot?Nl(n,r):Yn&&Yn&&(r=r.stateNode.containerInfo,n=Fs(r),ws(r,n))}}function Ol(n,r){for(var a=r;;)if(_l(n,a),a.child===null||ot&&a.tag===4){if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return;a=a.return}a.sibling.return=a.return,a=a.sibling}else a.child.return=a,a=a.child}function Il(n){n.alternate=null,n.child=null,n.dependencies=null,n.firstEffect=null,n.lastEffect=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.return=null,n.updateQueue=null}function Rl(n){return n.tag===5||n.tag===3||n.tag===4}function Pl(n){if(ot){e:{for(var r=n.return;r!==null;){if(Rl(r))break e;r=r.return}throw Error(l(160))}var a=r;switch(r=a.stateNode,a.tag){case 5:var D=!1;break;case 3:r=r.containerInfo,D=!0;break;case 4:r=r.containerInfo,D=!0;break;default:throw Error(l(161))}a.flags&16&&(ys(r),a.flags&=-17);e:t:for(a=n;;){for(;a.sibling===null;){if(a.return===null||Rl(a.return)){a=null;break e}a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.flags&2||a.child===null||a.tag===4)continue t;a.child.return=a,a=a.child}if(!(a.flags&2)){a=a.stateNode;break e}}D?ca(n,a,r):Da(n,a,r)}}function ca(n,r,a){var D=n.tag,f=D===5||D===6;if(f)n=f?n.stateNode:n.stateNode.instance,r?ih(a,n,r):eh(a,n);else if(D!==4&&(n=n.child,n!==null))for(ca(n,r,a),n=n.sibling;n!==null;)ca(n,r,a),n=n.sibling}function Da(n,r,a){var D=n.tag,f=D===5||D===6;if(f)n=f?n.stateNode:n.stateNode.instance,r?uh(a,n,r):Zd(a,n);else if(D!==4&&(n=n.child,n!==null))for(Da(n,r,a),n=n.sibling;n!==null;)Da(n,r,a),n=n.sibling}function Nl(n,r){for(var a=r,D=!1,f,p;;){if(!D){D=a.return;e:for(;;){if(D===null)throw Error(l(160));switch(f=D.stateNode,D.tag){case 5:p=!1;break e;case 3:f=f.containerInfo,p=!0;break e;case 4:f=f.containerInfo,p=!0;break e}D=D.return}D=!0}if(a.tag===5||a.tag===6)Ol(n,a),p?oh(f,a.stateNode):ah(f,a.stateNode);else if(a.tag===4){if(a.child!==null){f=a.stateNode.containerInfo,p=!0,a.child.return=a,a=a.child;continue}}else if(_l(n,a),a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return;a=a.return,a.tag===4&&(D=!1)}a.sibling.return=a.return,a=a.sibling}}function fa(n,r){if(ot){switch(r.tag){case 0:case 11:case 14:case 15:case 22:xl(3,r);return;case 1:return;case 5:var a=r.stateNode;if(a!=null){var D=r.memoizedProps;n=n!==null?n.memoizedProps:D;var f=r.type,p=r.updateQueue;r.updateQueue=null,p!==null&&rh(a,p,f,n,D,r)}return;case 6:if(r.stateNode===null)throw Error(l(162));a=r.memoizedProps,th(r.stateNode,n!==null?n.memoizedProps:a,a);return;case 3:st&&(r=r.stateNode,r.hydrate&&(r.hydrate=!1,xs(r.containerInfo)));return;case 12:return;case 13:Tl(r),Cu(r);return;case 19:Cu(r);return;case 17:return;case 23:case 24:kl(r,r.memoizedState!==null);return}throw Error(l(163))}switch(r.tag){case 0:case 11:case 14:case 15:case 22:xl(3,r);return;case 12:return;case 13:Tl(r),Cu(r);return;case 19:Cu(r);return;case 3:st&&(a=r.stateNode,a.hydrate&&(a.hydrate=!1,xs(a.containerInfo)));break;case 23:case 24:return}e:if(Yn){switch(r.tag){case 1:case 5:case 6:case 20:break e;case 3:case 4:r=r.stateNode,ws(r.containerInfo,r.pendingChildren);break e}throw Error(l(163))}}function Tl(n){n.memoizedState!==null&&(Fa=xe(),ot&&kl(n.child,!0))}function Cu(n){var r=n.updateQueue;if(r!==null){n.updateQueue=null;var a=n.stateNode;a===null&&(a=n.stateNode=new Hh),r.forEach(function(D){var f=up.bind(null,n,D);a.has(D)||(a.add(D),D.then(f,f))})}}function Qh(n,r){return n!==null&&(n=n.memoizedState,n===null||n.dehydrated!==null)?(r=r.memoizedState,r!==null&&r.dehydrated===null):!1}var bu=0,yu=1,Fu=2,vu=3,wu=4;if(typeof Symbol=="function"&&Symbol.for){var gr=Symbol.for;bu=gr("selector.component"),yu=gr("selector.has_pseudo_class"),Fu=gr("selector.role"),vu=gr("selector.test_id"),wu=gr("selector.text")}function da(n){var r=Gd(n);if(r!=null){if(typeof r.memoizedProps["data-testname"]!="string")throw Error(l(364));return r}if(n=Qd(n),n===null)throw Error(l(362));return n.stateNode.current}function ha(n,r){switch(r.$$typeof){case bu:if(n.type===r.value)return!0;break;case yu:e:{r=r.value,n=[n,0];for(var a=0;a<n.length;){var D=n[a++],f=n[a++],p=r[f];if(D.tag!==5||!Zn(D)){for(;p!=null&&ha(D,p);)f++,p=r[f];if(f===r.length){r=!0;break e}else for(D=D.child;D!==null;)n.push(D,f),D=D.sibling}}r=!1}return r;case Fu:if(n.tag===5&&Kd(n.stateNode,r.value))return!0;break;case wu:if((n.tag===5||n.tag===6)&&(n=Vd(n),n!==null&&0<=n.indexOf(r.value)))return!0;break;case vu:if(n.tag===5&&(n=n.memoizedProps["data-testname"],typeof n=="string"&&n.toLowerCase()===r.value.toLowerCase()))return!0;break;default:throw Error(l(365,r))}return!1}function pa(n){switch(n.$$typeof){case bu:return"<"+(G(n.value)||"Unknown")+">";case yu:return":has("+(pa(n)||"")+")";case Fu:return'[role="'+n.value+'"]';case wu:return'"'+n.value+'"';case vu:return'[data-testname="'+n.value+'"]';default:throw Error(l(365,n))}}function $l(n,r){var a=[];n=[n,0];for(var D=0;D<n.length;){var f=n[D++],p=n[D++],b=r[p];if(f.tag!==5||!Zn(f)){for(;b!=null&&ha(f,b);)p++,b=r[p];if(p===r.length)a.push(f);else for(f=f.child;f!==null;)n.push(f,p),f=f.sibling}}return a}function ga(n,r){if(!Xn)throw Error(l(363));n=da(n),n=$l(n,r),r=[],n=Array.from(n);for(var a=0;a<n.length;){var D=n[a++];if(D.tag===5)Zn(D)||r.push(D.stateNode);else for(D=D.child;D!==null;)n.push(D),D=D.sibling}return r}var Su=null;function Jh(n){if(Su===null)try{var r=("require"+Math.random()).slice(0,7);Su=(e&&e[r]).call(e,"timers").setImmediate}catch{Su=function(a){var D=new MessageChannel;D.port1.onmessage=a,D.port2.postMessage(void 0)}}return Su(n)}var Vh=Math.ceil,Bu=c.ReactCurrentDispatcher,ma=c.ReactCurrentOwner,Ea=c.IsSomeRendererActing,J=0,je=null,ve=null,$e=0,fn=0,Ca=Tt(0),_e=0,Au=null,kn=0,mr=0,_n=0,ba=0,ya=null,Fa=0,va=1/0;function Ut(){va=xe()+500}var U=null,xu=!1,wa=null,bt=null,Gt=!1,Er=null,Cr=90,Sa=[],Ba=[],xt=null,br=0,Aa=null,ku=-1,kt=0,_u=0,yr=null,Fr=!1;function We(){return(J&48)!==0?xe():ku!==-1?ku:ku=xe()}function Ht(n){if(n=n.mode,(n&2)===0)return 1;if((n&4)===0)return vn()===99?1:2;if(kt===0&&(kt=kn),Ih.transition!==0){_u!==0&&(_u=ya!==null?ya.pendingLanes:0),n=kt;var r=4186112&~_u;return r&=-r,r===0&&(n=4186112&~n,r=n&-n,r===0&&(r=8192)),r}return n=vn(),(J&4)!==0&&n===98?n=Kr(12,kt):(n=vh(n),n=Kr(n,kt)),n}function _t(n,r,a){if(50<br)throw br=0,Aa=null,Error(l(185));if(n=Ou(n,r),n===null)return null;Yr(n,r,a),n===je&&(_n|=r,_e===4&&On(n,$e));var D=vn();r===1?(J&8)!==0&&(J&48)===0?xa(n):(Je(n,a),J===0&&(Ut(),Ke())):((J&4)===0||D!==98&&D!==99||(xt===null?xt=new Set([n]):xt.add(n)),Je(n,a)),ya=n}function Ou(n,r){n.lanes|=r;var a=n.alternate;for(a!==null&&(a.lanes|=r),a=n,n=n.return;n!==null;)n.childLanes|=r,a=n.alternate,a!==null&&(a.childLanes|=r),a=n,n=n.return;return a.tag===3?a.stateNode:null}function Je(n,r){for(var a=n.callbackNode,D=n.suspendedLanes,f=n.pingedLanes,p=n.expirationTimes,b=n.pendingLanes;0<b;){var F=31-Lt(b),O=1<<F,$=p[F];if($===-1){if((O&D)===0||(O&f)!==0){$=r,sn(O);var W=se;p[F]=10<=W?$+250:6<=W?$+5e3:-1}}else $<=r&&(n.expiredLanes|=O);b&=~O}if(D=tr(n,n===je?$e:0),r=se,D===0)a!==null&&(a!==zi&&ji(a),n.callbackNode=null,n.callbackPriority=0);else{if(a!==null){if(n.callbackPriority===r)return;a!==zi&&ji(a)}r===15?(a=xa.bind(null,n),wt===null?(wt=[a],Zr=Li(Xr,Ms)):wt.push(a),a=zi):r===14?a=nr(99,xa.bind(null,n)):(a=wh(r),a=nr(a,Ll.bind(null,n))),n.callbackPriority=r,n.callbackNode=a}}function Ll(n){if(ku=-1,_u=kt=0,(J&48)!==0)throw Error(l(327));var r=n.callbackNode;if(Ot()&&n.callbackNode!==r)return null;var a=tr(n,n===je?$e:0);if(a===0)return null;var D=a,f=J;J|=16;var p=Ul();(je!==n||$e!==D)&&(Ut(),In(n,D));do try{Xh();break}catch(F){zl(n,F)}while(1);if(Gi(),Bu.current=p,J=f,ve!==null?D=0:(je=null,$e=0,D=_e),(kn&_n)!==0)In(n,0);else if(D!==0){if(D===2&&(J|=64,n.hydrate&&(n.hydrate=!1,Oi(n.containerInfo)),a=Is(n),a!==0&&(D=vr(n,a))),D===1)throw r=Au,In(n,0),On(n,a),Je(n,xe()),r;switch(n.finishedWork=n.current.alternate,n.finishedLanes=a,D){case 0:case 1:throw Error(l(345));case 2:dn(n);break;case 3:if(On(n,a),(a&62914560)===a&&(D=Fa+500-xe(),10<D)){if(tr(n,0)!==0)break;if(f=n.suspendedLanes,(f&a)!==a){We(),n.pingedLanes|=n.suspendedLanes&f;break}n.timeoutHandle=vt(dn.bind(null,n),D);break}dn(n);break;case 4:if(On(n,a),(a&4186112)===a)break;for(D=n.eventTimes,f=-1;0<a;){var b=31-Lt(a);p=1<<b,b=D[b],b>f&&(f=b),a&=~p}if(a=f,a=xe()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*Vh(a/1960))-a,10<a){n.timeoutHandle=vt(dn.bind(null,n),a);break}dn(n);break;case 5:dn(n);break;default:throw Error(l(329))}}return Je(n,xe()),n.callbackNode===r?Ll.bind(null,n):null}function On(n,r){for(r&=~ba,r&=~_n,n.suspendedLanes|=r,n.pingedLanes&=~r,n=n.expirationTimes;0<r;){var a=31-Lt(r),D=1<<a;n[a]=-1,r&=~D}}function xa(n){if((J&48)!==0)throw Error(l(327));if(Ot(),n===je&&(n.expiredLanes&$e)!==0){var r=$e,a=vr(n,r);(kn&_n)!==0&&(r=tr(n,r),a=vr(n,r))}else r=tr(n,0),a=vr(n,r);if(n.tag!==0&&a===2&&(J|=64,n.hydrate&&(n.hydrate=!1,Oi(n.containerInfo)),r=Is(n),r!==0&&(a=vr(n,r))),a===1)throw a=Au,In(n,0),On(n,r),Je(n,xe()),a;return n.finishedWork=n.current.alternate,n.finishedLanes=r,dn(n),Je(n,xe()),null}function Kh(){if(xt!==null){var n=xt;xt=null,n.forEach(function(r){r.expiredLanes|=24&r.pendingLanes,Je(r,xe())})}Ke()}function jl(n,r){var a=J;J|=1;try{return n(r)}finally{J=a,J===0&&(Ut(),Ke())}}function Ml(n,r){var a=J;if((a&48)!==0)return n(r);J|=1;try{if(n)return St(99,n.bind(null,r))}finally{J=a,Ke()}}function Iu(n,r){me(Ca,fn),fn|=r,kn|=r}function ka(){fn=Ca.current,De(Ca)}function In(n,r){n.finishedWork=null,n.finishedLanes=0;var a=n.timeoutHandle;if(a!==ki&&(n.timeoutHandle=ki,Ud(a)),ve!==null)for(a=ve.return;a!==null;){var D=a;switch(D.tag){case 1:D=D.type.childContextTypes,D!=null&&Qr();break;case 3:An(),De(ze),De(Ne),Yi();break;case 5:Ji(D);break;case 4:An();break;case 13:De(Ee);break;case 19:De(Ee);break;case 10:Hi(D);break;case 23:case 24:ka()}a=a.return}je=n,ve=qt(n.current,null),$e=fn=kn=r,_e=0,Au=null,ba=_n=mr=0}function zl(n,r){do{var a=ve;try{if(Gi(),or.current=pu,Du){for(var D=Ce.memoizedState;D!==null;){var f=D.queue;f!==null&&(f.pending=null),D=D.next}Du=!1}if(sr=0,ke=Te=Ce=null,lr=!1,ma.current=null,a===null||a.return===null){_e=1,Au=r,ve=null;break}e:{var p=n,b=a.return,F=a,O=r;if(r=$e,F.flags|=2048,F.firstEffect=F.lastEffect=null,O!==null&&typeof O=="object"&&typeof O.then=="function"){var $=O;if((F.mode&2)===0){var W=F.alternate;W?(F.updateQueue=W.updateQueue,F.memoizedState=W.memoizedState,F.lanes=W.lanes):(F.updateQueue=null,F.memoizedState=null)}var K=(Ee.current&1)!==0,M=b;do{var ae;if(ae=M.tag===13){var de=M.memoizedState;if(de!==null)ae=de.dehydrated!==null;else{var nt=M.memoizedProps;ae=nt.fallback===void 0?!1:nt.unstable_avoidThisFallback!==!0?!0:!K}}if(ae){var A=M.updateQueue;if(A===null){var S=new Set;S.add($),M.updateQueue=S}else A.add($);if((M.mode&2)===0){if(M.flags|=64,F.flags|=16384,F.flags&=-2981,F.tag===1)if(F.alternate===null)F.tag=17;else{var I=Mt(-1,1);I.tag=2,zt(F,I)}F.lanes|=1;break e}O=void 0,F=r;var j=p.pingCache;if(j===null?(j=p.pingCache=new Gh,O=new Set,j.set($,O)):(O=j.get($),O===void 0&&(O=new Set,j.set($,O))),!O.has(F)){O.add(F);var q=rp.bind(null,p,$,F);$.then(q,q)}M.flags|=4096,M.lanes=r;break e}M=M.return}while(M!==null);O=Error((G(F.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
|
|
43
|
+
|
|
44
|
+
Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}_e!==5&&(_e=2),O=sa(O,F),M=b;do{switch(M.tag){case 3:p=O,M.flags|=4096,r&=-r,M.lanes|=r;var le=Sl(M,p,r);Hs(M,le);break e;case 1:p=O;var Y=M.type,ue=M.stateNode;if((M.flags&64)===0&&(typeof Y.getDerivedStateFromError=="function"||ue!==null&&typeof ue.componentDidCatch=="function"&&(bt===null||!bt.has(ue)))){M.flags|=4096,r&=-r,M.lanes|=r;var ye=Bl(M,p,r);Hs(M,ye);break e}}M=M.return}while(M!==null)}Hl(a)}catch(ne){r=ne,ve===a&&a!==null&&(ve=a=a.return);continue}break}while(1)}function Ul(){var n=Bu.current;return Bu.current=pu,n===null?pu:n}function vr(n,r){var a=J;J|=16;var D=Ul();je===n&&$e===r||In(n,r);do try{Yh();break}catch(f){zl(n,f)}while(1);if(Gi(),J=a,Bu.current=D,ve!==null)throw Error(l(261));return je=null,$e=0,_e}function Yh(){for(;ve!==null;)Gl(ve)}function Xh(){for(;ve!==null&&!kh();)Gl(ve)}function Gl(n){var r=Ql(n.alternate,n,fn);n.memoizedProps=n.pendingProps,r===null?Hl(n):ve=r,ma.current=null}function Hl(n){var r=n;do{var a=r.alternate;if(n=r.return,(r.flags&2048)===0){if(a=zh(a,r,fn),a!==null){ve=a;return}if(a=r,a.tag!==24&&a.tag!==23||a.memoizedState===null||(fn&1073741824)!==0||(a.mode&4)===0){for(var D=0,f=a.child;f!==null;)D|=f.lanes|f.childLanes,f=f.sibling;a.childLanes=D}n!==null&&(n.flags&2048)===0&&(n.firstEffect===null&&(n.firstEffect=r.firstEffect),r.lastEffect!==null&&(n.lastEffect!==null&&(n.lastEffect.nextEffect=r.firstEffect),n.lastEffect=r.lastEffect),1<r.flags&&(n.lastEffect!==null?n.lastEffect.nextEffect=r:n.firstEffect=r,n.lastEffect=r))}else{if(a=Uh(r),a!==null){a.flags&=2047,ve=a;return}n!==null&&(n.firstEffect=n.lastEffect=null,n.flags|=2048)}if(r=r.sibling,r!==null){ve=r;return}ve=r=n}while(r!==null);_e===0&&(_e=5)}function dn(n){var r=vn();return St(99,Zh.bind(null,n,r)),null}function Zh(n,r){do Ot();while(Er!==null);if((J&48)!==0)throw Error(l(327));var a=n.finishedWork;if(a===null)return null;if(n.finishedWork=null,n.finishedLanes=0,a===n.current)throw Error(l(177));n.callbackNode=null;var D=a.lanes|a.childLanes,f=D,p=n.pendingLanes&~f;n.pendingLanes=f,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=f,n.mutableReadLanes&=f,n.entangledLanes&=f,f=n.entanglements;for(var b=n.eventTimes,F=n.expirationTimes;0<p;){var O=31-Lt(p),$=1<<O;f[O]=0,b[O]=-1,F[O]=-1,p&=~$}if(xt!==null&&(D&24)===0&&xt.has(n)&&xt.delete(n),n===je&&(ve=je=null,$e=0),1<a.flags?a.lastEffect!==null?(a.lastEffect.nextEffect=a,D=a.firstEffect):D=a:D=a.firstEffect,D!==null){f=J,J|=32,ma.current=null,yr=L(n.containerInfo),Fr=!1,U=D;do try{ep()}catch(S){if(U===null)throw Error(l(330));Wt(U,S),U=U.nextEffect}while(U!==null);yr=null,U=D;do try{for(b=n;U!==null;){var W=U.flags;if(W&16&&ot&&ys(U.stateNode),W&128){var K=U.alternate;if(K!==null){var M=K.ref;M!==null&&(typeof M=="function"?M(null):M.current=null)}}switch(W&1038){case 2:Pl(U),U.flags&=-3;break;case 6:Pl(U),U.flags&=-3,fa(U.alternate,U);break;case 1024:U.flags&=-1025;break;case 1028:U.flags&=-1025,fa(U.alternate,U);break;case 4:fa(U.alternate,U);break;case 8:F=b,p=U,ot?Nl(F,p):Ol(F,p);var ae=p.alternate;Il(p),ae!==null&&Il(ae)}U=U.nextEffect}}catch(S){if(U===null)throw Error(l(330));Wt(U,S),U=U.nextEffect}while(U!==null);Fr&&Wd(),V(n.containerInfo),n.current=a,U=D;do try{for(W=n;U!==null;){var de=U.flags;if(de&36&&qh(W,U.alternate,U),de&128){K=void 0;var nt=U.ref;if(nt!==null){var A=U.stateNode;switch(U.tag){case 5:K=ie(A);break;default:K=A}typeof nt=="function"?nt(K):nt.current=K}}U=U.nextEffect}}catch(S){if(U===null)throw Error(l(330));Wt(U,S),U=U.nextEffect}while(U!==null);U=null,Oh(),J=f}else n.current=a;if(Gt)Gt=!1,Er=n,Cr=r;else for(U=D;U!==null;)r=U.nextEffect,U.nextEffect=null,U.flags&8&&(de=U,de.sibling=null,de.stateNode=null),U=r;if(D=n.pendingLanes,D===0&&(bt=null),D===1?n===Aa?br++:(br=0,Aa=n):br=0,a=a.stateNode,on&&typeof on.onCommitFiberRoot=="function")try{on.onCommitFiberRoot(Ti,a,void 0,(a.current.flags&64)===64)}catch{}if(Je(n,xe()),xu)throw xu=!1,n=wa,wa=null,n;return(J&8)!==0||Ke(),null}function ep(){for(;U!==null;){var n=U.alternate;Fr||yr===null||((U.flags&8)!==0?oe(U,yr)&&(Fr=!0,bs()):U.tag===13&&Qh(n,U)&&oe(U,yr)&&(Fr=!0,bs()));var r=U.flags;(r&256)!==0&&Wh(n,U),(r&512)===0||Gt||(Gt=!0,nr(97,function(){return Ot(),null})),U=U.nextEffect}}function Ot(){if(Cr!==90){var n=97<Cr?97:Cr;return Cr=90,St(n,np)}return!1}function tp(n,r){Sa.push(r,n),Gt||(Gt=!0,nr(97,function(){return Ot(),null}))}function Wl(n,r){Ba.push(r,n),Gt||(Gt=!0,nr(97,function(){return Ot(),null}))}function np(){if(Er===null)return!1;var n=Er;if(Er=null,(J&48)!==0)throw Error(l(331));var r=J;J|=32;var a=Ba;Ba=[];for(var D=0;D<a.length;D+=2){var f=a[D],p=a[D+1],b=f.destroy;if(f.destroy=void 0,typeof b=="function")try{b()}catch(O){if(p===null)throw Error(l(330));Wt(p,O)}}for(a=Sa,Sa=[],D=0;D<a.length;D+=2){f=a[D],p=a[D+1];try{var F=f.create;f.destroy=F()}catch(O){if(p===null)throw Error(l(330));Wt(p,O)}}for(F=n.current.firstEffect;F!==null;)n=F.nextEffect,F.nextEffect=null,F.flags&8&&(F.sibling=null,F.stateNode=null),F=n;return J=r,Ke(),!0}function ql(n,r,a){r=sa(a,r),r=Sl(n,r,1),zt(n,r),r=We(),n=Ou(n,1),n!==null&&(Yr(n,1,r),Je(n,r))}function Wt(n,r){if(n.tag===3)ql(n,n,r);else for(var a=n.return;a!==null;){if(a.tag===3){ql(a,n,r);break}else if(a.tag===1){var D=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof D.componentDidCatch=="function"&&(bt===null||!bt.has(D))){n=sa(r,n);var f=Bl(a,n,1);if(zt(a,f),f=We(),a=Ou(a,1),a!==null)Yr(a,1,f),Je(a,f);else if(typeof D.componentDidCatch=="function"&&(bt===null||!bt.has(D)))try{D.componentDidCatch(r,n)}catch{}break}}a=a.return}}function rp(n,r,a){var D=n.pingCache;D!==null&&D.delete(r),r=We(),n.pingedLanes|=n.suspendedLanes&a,je===n&&($e&a)===a&&(_e===4||_e===3&&($e&62914560)===$e&&500>xe()-Fa?In(n,0):ba|=a),Je(n,r)}function up(n,r){var a=n.stateNode;a!==null&&a.delete(r),r=0,r===0&&(r=n.mode,(r&2)===0?r=1:(r&4)===0?r=vn()===99?1:2:(kt===0&&(kt=kn),r=Fn(62914560&~kt),r===0&&(r=4194304))),a=We(),n=Ou(n,r),n!==null&&(Yr(n,r,a),Je(n,a))}var Ql;Ql=function(n,r,a){var D=r.lanes;if(n!==null)if(n.memoizedProps!==r.pendingProps||ze.current)ct=!0;else if((a&D)!==0)ct=(n.flags&16384)!==0;else{switch(ct=!1,r.tag){case 3:ml(r),Ki();break;case 5:Xs(r);break;case 1:Ue(r.type)&&Jr(r);break;case 4:Qi(r,r.stateNode.containerInfo);break;case 10:zs(r,r.memoizedProps.value);break;case 13:if(r.memoizedState!==null)return(a&r.child.childLanes)!==0?El(n,r,a):(me(Ee,Ee.current&1),r=At(n,r,a),r!==null?r.sibling:null);me(Ee,Ee.current&1);break;case 19:if(D=(a&r.childLanes)!==0,(n.flags&64)!==0){if(D)return vl(n,r,a);r.flags|=64}var f=r.memoizedState;if(f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),me(Ee,Ee.current),D)break;return null;case 23:case 24:return r.lanes=0,ua(n,r,a)}return At(n,r,a)}else ct=!1;switch(r.lanes=0,r.tag){case 2:if(D=r.type,n!==null&&(n.alternate=null,r.alternate=null,r.flags|=2),n=r.pendingProps,f=yn(r,Ne.current),Sn(r,a),f=Zi(null,r,D,n,f,a),r.flags|=1,typeof f=="object"&&f!==null&&typeof f.render=="function"&&f.$$typeof===void 0){if(r.tag=1,r.memoizedState=null,r.updateQueue=null,Ue(D)){var p=!0;Jr(r)}else p=!1;r.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,Wi(r);var b=D.getDerivedStateFromProps;typeof b=="function"&&uu(r,D,b,n),f.updater=iu,r.stateNode=f,f._reactInternals=r,qi(r,D,n,a),r=aa(null,r,D,!0,p,a)}else r.tag=0,He(null,r,f,a),r=r.child;return r;case 16:f=r.elementType;e:{switch(n!==null&&(n.alternate=null,r.alternate=null,r.flags|=2),n=r.pendingProps,p=f._init,f=p(f._payload),r.type=f,p=r.tag=ap(f),n=lt(f,n),p){case 0:r=ia(null,r,f,n,a);break e;case 1:r=gl(null,r,f,n,a);break e;case 11:r=fl(null,r,f,n,a);break e;case 14:r=dl(null,r,f,lt(f.type,n),D,a);break e}throw Error(l(306,f,""))}return r;case 0:return D=r.type,f=r.pendingProps,f=r.elementType===D?f:lt(D,f),ia(n,r,D,f,a);case 1:return D=r.type,f=r.pendingProps,f=r.elementType===D?f:lt(D,f),gl(n,r,D,f,a);case 3:if(ml(r),D=r.updateQueue,n===null||D===null)throw Error(l(282));if(D=r.pendingProps,f=r.memoizedState,f=f!==null?f.element:null,Gs(n,r),rr(r,D,null,a),D=r.memoizedState.element,D===f)Ki(),r=At(n,r,a);else{if(f=r.stateNode,(p=f.hydrate)&&(st?(ln=As(r.stateNode.containerInfo),Bt=r,p=mt=!0):p=!1),p){if(st&&(n=f.mutableSourceEagerHydrationData,n!=null))for(f=0;f<n.length;f+=2)p=n[f],b=n[f+1],un?p._workInProgressVersionPrimary=b:p._workInProgressVersionSecondary=b,xn.push(p);for(a=Ys(r,null,D,a),r.child=a;a;)a.flags=a.flags&-3|1024,a=a.sibling}else He(n,r,D,a),Ki();r=r.child}return r;case 5:return Xs(r),n===null&&Vi(r),D=r.type,f=r.pendingProps,p=n!==null?n.memoizedProps:null,b=f.children,at(D,f)?b=null:p!==null&&at(D,p)&&(r.flags|=16),pl(n,r),He(n,r,b,a),r.child;case 6:return n===null&&Vi(r),null;case 13:return El(n,r,a);case 4:return Qi(r,r.stateNode.containerInfo),D=r.pendingProps,n===null?r.child=su(r,null,D,a):He(n,r,D,a),r.child;case 11:return D=r.type,f=r.pendingProps,f=r.elementType===D?f:lt(D,f),fl(n,r,D,f,a);case 7:return He(n,r,r.pendingProps,a),r.child;case 8:return He(n,r,r.pendingProps.children,a),r.child;case 12:return He(n,r,r.pendingProps.children,a),r.child;case 10:e:{if(D=r.type._context,f=r.pendingProps,b=r.memoizedProps,p=f.value,zs(r,p),b!==null){var F=b.value;if(p=Ye(F,p)?0:(typeof D._calculateChangedBits=="function"?D._calculateChangedBits(F,p):1073741823)|0,p===0){if(b.children===f.children&&!ze.current){r=At(n,r,a);break e}}else for(F=r.child,F!==null&&(F.return=r);F!==null;){var O=F.dependencies;if(O!==null){b=F.child;for(var $=O.firstContext;$!==null;){if($.context===D&&($.observedBits&p)!==0){F.tag===1&&($=Mt(-1,a&-a),$.tag=2,zt(F,$)),F.lanes|=a,$=F.alternate,$!==null&&($.lanes|=a),Us(F.return,a),O.lanes|=a;break}$=$.next}}else b=F.tag===10&&F.type===r.type?null:F.child;if(b!==null)b.return=F;else for(b=F;b!==null;){if(b===r){b=null;break}if(F=b.sibling,F!==null){F.return=b.return,b=F;break}b=b.return}F=b}}He(n,r,f.children,a),r=r.child}return r;case 9:return f=r.type,p=r.pendingProps,D=p.children,Sn(r,a),f=Xe(f,p.unstable_observedBits),D=D(f),r.flags|=1,He(n,r,D,a),r.child;case 14:return f=r.type,p=lt(f,r.pendingProps),p=lt(f.type,p),dl(n,r,f,p,D,a);case 15:return hl(n,r,r.type,r.pendingProps,D,a);case 17:return D=r.type,f=r.pendingProps,f=r.elementType===D?f:lt(D,f),n!==null&&(n.alternate=null,r.alternate=null,r.flags|=2),r.tag=1,Ue(D)?(n=!0,Jr(r)):n=!1,Sn(r,a),Js(r,D,f),qi(r,D,f,a),aa(null,r,D,!0,n,a);case 19:return vl(n,r,a);case 23:return ua(n,r,a);case 24:return ua(n,r,a)}throw Error(l(156,r.tag))};var Ru={current:!1},_a=s.unstable_flushAllWithoutAsserting,Jl=typeof _a=="function";function Oa(){if(_a!==void 0)return _a();for(var n=!1;Ot();)n=!0;return n}function Vl(n){try{Oa(),Jh(function(){Oa()?Vl(n):n()})}catch(r){n(r)}}var Pu=0,Kl=!1;function ip(n,r,a,D){this.tag=n,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=D,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function tt(n,r,a,D){return new ip(n,r,a,D)}function Ia(n){return n=n.prototype,!(!n||!n.isReactComponent)}function ap(n){if(typeof n=="function")return Ia(n)?1:0;if(n!=null){if(n=n.$$typeof,n===v)return 11;if(n===N)return 14}return 2}function qt(n,r){var a=n.alternate;return a===null?(a=tt(n.tag,r,n.key,n.mode),a.elementType=n.elementType,a.type=n.type,a.stateNode=n.stateNode,a.alternate=n,n.alternate=a):(a.pendingProps=r,a.type=n.type,a.flags=0,a.nextEffect=null,a.firstEffect=null,a.lastEffect=null),a.childLanes=n.childLanes,a.lanes=n.lanes,a.child=n.child,a.memoizedProps=n.memoizedProps,a.memoizedState=n.memoizedState,a.updateQueue=n.updateQueue,r=n.dependencies,a.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},a.sibling=n.sibling,a.index=n.index,a.ref=n.ref,a}function Nu(n,r,a,D,f,p){var b=2;if(D=n,typeof n=="function")Ia(n)&&(b=1);else if(typeof n=="string")b=5;else e:switch(n){case m:return Rn(a.children,f,p,r);case B:b=8,f|=16;break;case E:b=8,f|=1;break;case g:return n=tt(12,a,r,f|8),n.elementType=g,n.type=g,n.lanes=p,n;case k:return n=tt(13,a,r,f),n.type=k,n.elementType=k,n.lanes=p,n;case R:return n=tt(19,a,r,f),n.elementType=R,n.lanes=p,n;case x:return Ra(a,f,p,r);case P:return n=tt(24,a,r,f),n.elementType=P,n.lanes=p,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case C:b=10;break e;case y:b=9;break e;case v:b=11;break e;case N:b=14;break e;case z:b=16,D=null;break e;case w:b=22;break e}throw Error(l(130,n==null?n:typeof n,""))}return r=tt(b,a,r,f),r.elementType=n,r.type=D,r.lanes=p,r}function Rn(n,r,a,D){return n=tt(7,n,D,r),n.lanes=a,n}function Ra(n,r,a,D){return n=tt(23,n,D,r),n.elementType=x,n.lanes=a,n}function Pa(n,r,a){return n=tt(6,n,null,r),n.lanes=a,n}function Na(n,r,a){return r=tt(4,n.children!==null?n.children:[],n.key,r),r.lanes=a,r.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},r}function op(n,r,a){this.tag=r,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=ki,this.pendingContext=this.context=null,this.hydrate=a,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=$i(0),this.expirationTimes=$i(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$i(0),st&&(this.mutableSourceEagerHydrationData=null)}function Yl(n){var r=n._reactInternals;if(r===void 0)throw typeof n.render=="function"?Error(l(188)):Error(l(268,Object.keys(n)));return n=Fe(r),n===null?null:n.stateNode}function Xl(n,r){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var a=n.retryLane;n.retryLane=a!==0&&a<r?a:r}}function Tu(n,r){Xl(n,r),(n=n.alternate)&&Xl(n,r)}function sp(n){return n=Fe(n),n===null?null:n.stateNode}function lp(){return null}return u.IsThisRendererActing=Ru,u.act=function(n){function r(){Pu--,Ea.current=a,Ru.current=D}Kl===!1&&(Kl=!0,console.error("act(...) is not supported in production builds of React, and might not behave as expected.")),Pu++;var a=Ea.current,D=Ru.current;Ea.current=!0,Ru.current=!0;try{var f=jl(n)}catch(p){throw r(),p}if(f!==null&&typeof f=="object"&&typeof f.then=="function")return{then:function(p,b){f.then(function(){1<Pu||Jl===!0&&a===!0?(r(),p()):Vl(function(F){r(),F?b(F):p()})},function(F){r(),b(F)})}};try{Pu!==1||Jl!==!1&&a!==!1||Oa(),r()}catch(p){throw r(),p}return{then:function(p){p()}}},u.attemptContinuousHydration=function(n){if(n.tag===13){var r=We();_t(n,67108864,r),Tu(n,67108864)}},u.attemptHydrationAtCurrentPriority=function(n){if(n.tag===13){var r=We(),a=Ht(n);_t(n,a,r),Tu(n,a)}},u.attemptSynchronousHydration=function(n){switch(n.tag){case 3:var r=n.stateNode;if(r.hydrate){var a=sn(r.pendingLanes);r.expiredLanes|=a&r.pendingLanes,Je(r,xe()),(J&48)===0&&(Ut(),Ke())}break;case 13:var D=We();Ml(function(){return _t(n,1,D)}),Tu(n,4)}},u.attemptUserBlockingHydration=function(n){if(n.tag===13){var r=We();_t(n,4,r),Tu(n,4)}},u.batchedEventUpdates=function(n,r){var a=J;J|=2;try{return n(r)}finally{J=a,J===0&&(Ut(),Ke())}},u.batchedUpdates=jl,u.createComponentSelector=function(n){return{$$typeof:bu,value:n}},u.createContainer=function(n,r,a){return n=new op(n,r,a),r=tt(3,null,null,r===2?7:r===1?3:0),n.current=r,r.stateNode=n,Wi(r),n},u.createHasPsuedoClassSelector=function(n){return{$$typeof:yu,value:n}},u.createPortal=function(n,r,a){var D=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:D==null?null:""+D,children:n,containerInfo:r,implementation:a}},u.createRoleSelector=function(n){return{$$typeof:Fu,value:n}},u.createTestNameSelector=function(n){return{$$typeof:vu,value:n}},u.createTextSelector=function(n){return{$$typeof:wu,value:n}},u.deferredUpdates=function(n){return St(97,n)},u.discreteUpdates=function(n,r,a,D,f){var p=J;J|=4;try{return St(98,n.bind(null,r,a,D,f))}finally{J=p,J===0&&(Ut(),Ke())}},u.findAllNodes=ga,u.findBoundingRects=function(n,r){if(!Xn)throw Error(l(363));r=ga(n,r),n=[];for(var a=0;a<r.length;a++)n.push(Jd(r[a]));for(r=n.length-1;0<r;r--){a=n[r];for(var D=a.x,f=D+a.width,p=a.y,b=p+a.height,F=r-1;0<=F;F--)if(r!==F){var O=n[F],$=O.x,W=$+O.width,K=O.y,M=K+O.height;if(D>=$&&p>=K&&f<=W&&b<=M){n.splice(r,1);break}else if(D!==$||a.width!==O.width||M<p||K>b){if(!(p!==K||a.height!==O.height||W<D||$>f)){$>D&&(O.width+=$-D,O.x=D),W<f&&(O.width=f-$),n.splice(r,1);break}}else{K>p&&(O.height+=K-p,O.y=p),M<b&&(O.height=b-K),n.splice(r,1);break}}}return n},u.findHostInstance=Yl,u.findHostInstanceWithNoPortals=function(n){return n=Ae(n),n===null?null:n.tag===20?n.stateNode.instance:n.stateNode},u.findHostInstanceWithWarning=function(n){return Yl(n)},u.flushControlled=function(n){var r=J;J|=1;try{St(99,n)}finally{J=r,J===0&&(Ut(),Ke())}},u.flushDiscreteUpdates=function(){(J&49)===0&&(Kh(),Ot())},u.flushPassiveEffects=Ot,u.flushSync=Ml,u.focusWithin=function(n,r){if(!Xn)throw Error(l(363));for(n=da(n),r=$l(n,r),r=Array.from(r),n=0;n<r.length;){var a=r[n++];if(!Zn(a)){if(a.tag===5&&Yd(a.stateNode))return!0;for(a=a.child;a!==null;)r.push(a),a=a.sibling}}return!1},u.getCurrentUpdateLanePriority=function(){return Vr},u.getFindAllNodesFailureDescription=function(n,r){if(!Xn)throw Error(l(363));var a=0,D=[];n=[da(n),0];for(var f=0;f<n.length;){var p=n[f++],b=n[f++],F=r[b];if((p.tag!==5||!Zn(p))&&(ha(p,F)&&(D.push(pa(F)),b++,b>a&&(a=b)),b<r.length))for(p=p.child;p!==null;)n.push(p,b),p=p.sibling}if(a<r.length){for(n=[];a<r.length;a++)n.push(pa(r[a]));return`findAllNodes was able to match part of the selector:
|
|
45
|
+
`+(D.join(" > ")+`
|
|
46
|
+
|
|
47
|
+
No matching component was found for:
|
|
48
|
+
`)+n.join(" > ")}return null},u.getPublicRootInstance=function(n){if(n=n.current,!n.child)return null;switch(n.child.tag){case 5:return ie(n.child.stateNode);default:return n.child.stateNode}},u.injectIntoDevTools=function(n){if(n={bundleType:n.bundleType,version:n.version,rendererPackageName:n.rendererPackageName,rendererConfig:n.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:c.ReactCurrentDispatcher,findHostInstanceByFiber:sp,findFiberByHostInstance:n.findFiberByHostInstance||lp,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")n=!1;else{var r=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!r.isDisabled&&r.supportsFiber)try{Ti=r.inject(n),on=r}catch{}n=!0}return n},u.observeVisibleRects=function(n,r,a,D){if(!Xn)throw Error(l(363));n=ga(n,r);var f=Xd(n,a,D).disconnect;return{disconnect:function(){f()}}},u.registerMutableSourceForHydration=function(n,r){var a=r._getVersion;a=a(r._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[r,a]:n.mutableSourceEagerHydrationData.push(r,a)},u.runWithPriority=function(n,r){var a=Vr;try{return Vr=n,r()}finally{Vr=a}},u.shouldSuspend=function(){return!1},u.unbatchedUpdates=function(n,r){var a=J;J&=-2,J|=8;try{return n(r)}finally{J=a,J===0&&(Ut(),Ke())}},u.updateContainer=function(n,r,a,D){var f=r.current,p=We(),b=Ht(f);e:if(a){a=a._reactInternals;t:{if(X(a)!==a||a.tag!==1)throw Error(l(170));var F=a;do{switch(F.tag){case 3:F=F.stateNode.context;break t;case 1:if(Ue(F.type)){F=F.stateNode.__reactInternalMemoizedMergedChildContext;break t}}F=F.return}while(F!==null);throw Error(l(171))}if(a.tag===1){var O=a.type;if(Ue(O)){a=_s(a,O,F);break e}}a=F}else a=$t;return r.context===null?r.context=a:r.pendingContext=a,r=Mt(p,b),r.payload={element:n},D=D===void 0?null:D,D!==null&&(r.callback=D),zt(f,r),_t(f,b,p),b},u}})(BD),function(e){e.exports=BD.exports}(SD);var Im=Rc(SD.exports),Zu={exports:{}},Un={exports:{}},Rm=({onlyFirst:e=!1}={})=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")};const Pm=Rm;var AD=e=>typeof e=="string"?e.replace(Pm(),""):e,ei={exports:{}};const xD=e=>Number.isNaN(e)?!1:e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141);ei.exports=xD,ei.exports.default=xD;var Nm=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g};const Tm=AD,$m=ei.exports,Lm=Nm,kD=e=>{if(typeof e!="string"||e.length===0||(e=Tm(e),e.length===0))return 0;e=e.replace(Lm()," ");let t=0;for(let u=0;u<e.length;u++){const i=e.codePointAt(u);i<=31||i>=127&&i<=159||i>=768&&i<=879||(i>65535&&u++,t+=$m(i)?2:1)}return t};Un.exports=kD,Un.exports.default=kD;const jm=Un.exports,_D=e=>{let t=0;for(const u of e.split(`
|
|
49
|
+
`))t=Math.max(t,jm(u));return t};Zu.exports=_D,Zu.exports.default=_D;var ti={exports:{}},OD,ID;function Mm(){return ID||(ID=1,OD={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}),OD}var So,RD;function PD(){if(RD)return So;RD=1;const e=Mm(),t={};for(const o of Object.keys(e))t[e[o]]=o;const u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};So=u;for(const o of Object.keys(u)){if(!("channels"in u[o]))throw new Error("missing channels property: "+o);if(!("labels"in u[o]))throw new Error("missing channel labels property: "+o);if(u[o].labels.length!==u[o].channels)throw new Error("channel and label counts mismatch: "+o);const{channels:s,labels:l}=u[o];delete u[o].channels,delete u[o].labels,Object.defineProperty(u[o],"channels",{value:s}),Object.defineProperty(u[o],"labels",{value:l})}u.rgb.hsl=function(o){const s=o[0]/255,l=o[1]/255,c=o[2]/255,d=Math.min(s,l,c),h=Math.max(s,l,c),m=h-d;let E,g;h===d?E=0:s===h?E=(l-c)/m:l===h?E=2+(c-s)/m:c===h&&(E=4+(s-l)/m),E=Math.min(E*60,360),E<0&&(E+=360);const C=(d+h)/2;return h===d?g=0:C<=.5?g=m/(h+d):g=m/(2-h-d),[E,g*100,C*100]},u.rgb.hsv=function(o){let s,l,c,d,h;const m=o[0]/255,E=o[1]/255,g=o[2]/255,C=Math.max(m,E,g),y=C-Math.min(m,E,g),v=function(k){return(C-k)/6/y+1/2};return y===0?(d=0,h=0):(h=y/C,s=v(m),l=v(E),c=v(g),m===C?d=c-l:E===C?d=1/3+s-c:g===C&&(d=2/3+l-s),d<0?d+=1:d>1&&(d-=1)),[d*360,h*100,C*100]},u.rgb.hwb=function(o){const s=o[0],l=o[1];let c=o[2];const d=u.rgb.hsl(o)[0],h=1/255*Math.min(s,Math.min(l,c));return c=1-1/255*Math.max(s,Math.max(l,c)),[d,h*100,c*100]},u.rgb.cmyk=function(o){const s=o[0]/255,l=o[1]/255,c=o[2]/255,d=Math.min(1-s,1-l,1-c),h=(1-s-d)/(1-d)||0,m=(1-l-d)/(1-d)||0,E=(1-c-d)/(1-d)||0;return[h*100,m*100,E*100,d*100]};function i(o,s){return(o[0]-s[0])**2+(o[1]-s[1])**2+(o[2]-s[2])**2}return u.rgb.keyword=function(o){const s=t[o];if(s)return s;let l=1/0,c;for(const d of Object.keys(e)){const h=e[d],m=i(o,h);m<l&&(l=m,c=d)}return c},u.keyword.rgb=function(o){return e[o]},u.rgb.xyz=function(o){let s=o[0]/255,l=o[1]/255,c=o[2]/255;s=s>.04045?((s+.055)/1.055)**2.4:s/12.92,l=l>.04045?((l+.055)/1.055)**2.4:l/12.92,c=c>.04045?((c+.055)/1.055)**2.4:c/12.92;const d=s*.4124+l*.3576+c*.1805,h=s*.2126+l*.7152+c*.0722,m=s*.0193+l*.1192+c*.9505;return[d*100,h*100,m*100]},u.rgb.lab=function(o){const s=u.rgb.xyz(o);let l=s[0],c=s[1],d=s[2];l/=95.047,c/=100,d/=108.883,l=l>.008856?l**(1/3):7.787*l+16/116,c=c>.008856?c**(1/3):7.787*c+16/116,d=d>.008856?d**(1/3):7.787*d+16/116;const h=116*c-16,m=500*(l-c),E=200*(c-d);return[h,m,E]},u.hsl.rgb=function(o){const s=o[0]/360,l=o[1]/100,c=o[2]/100;let d,h,m;if(l===0)return m=c*255,[m,m,m];c<.5?d=c*(1+l):d=c+l-c*l;const E=2*c-d,g=[0,0,0];for(let C=0;C<3;C++)h=s+1/3*-(C-1),h<0&&h++,h>1&&h--,6*h<1?m=E+(d-E)*6*h:2*h<1?m=d:3*h<2?m=E+(d-E)*(2/3-h)*6:m=E,g[C]=m*255;return g},u.hsl.hsv=function(o){const s=o[0];let l=o[1]/100,c=o[2]/100,d=l;const h=Math.max(c,.01);c*=2,l*=c<=1?c:2-c,d*=h<=1?h:2-h;const m=(c+l)/2,E=c===0?2*d/(h+d):2*l/(c+l);return[s,E*100,m*100]},u.hsv.rgb=function(o){const s=o[0]/60,l=o[1]/100;let c=o[2]/100;const d=Math.floor(s)%6,h=s-Math.floor(s),m=255*c*(1-l),E=255*c*(1-l*h),g=255*c*(1-l*(1-h));switch(c*=255,d){case 0:return[c,g,m];case 1:return[E,c,m];case 2:return[m,c,g];case 3:return[m,E,c];case 4:return[g,m,c];case 5:return[c,m,E]}},u.hsv.hsl=function(o){const s=o[0],l=o[1]/100,c=o[2]/100,d=Math.max(c,.01);let h,m;m=(2-l)*c;const E=(2-l)*d;return h=l*d,h/=E<=1?E:2-E,h=h||0,m/=2,[s,h*100,m*100]},u.hwb.rgb=function(o){const s=o[0]/360;let l=o[1]/100,c=o[2]/100;const d=l+c;let h;d>1&&(l/=d,c/=d);const m=Math.floor(6*s),E=1-c;h=6*s-m,(m&1)!==0&&(h=1-h);const g=l+h*(E-l);let C,y,v;switch(m){default:case 6:case 0:C=E,y=g,v=l;break;case 1:C=g,y=E,v=l;break;case 2:C=l,y=E,v=g;break;case 3:C=l,y=g,v=E;break;case 4:C=g,y=l,v=E;break;case 5:C=E,y=l,v=g;break}return[C*255,y*255,v*255]},u.cmyk.rgb=function(o){const s=o[0]/100,l=o[1]/100,c=o[2]/100,d=o[3]/100,h=1-Math.min(1,s*(1-d)+d),m=1-Math.min(1,l*(1-d)+d),E=1-Math.min(1,c*(1-d)+d);return[h*255,m*255,E*255]},u.xyz.rgb=function(o){const s=o[0]/100,l=o[1]/100,c=o[2]/100;let d,h,m;return d=s*3.2406+l*-1.5372+c*-.4986,h=s*-.9689+l*1.8758+c*.0415,m=s*.0557+l*-.204+c*1.057,d=d>.0031308?1.055*d**(1/2.4)-.055:d*12.92,h=h>.0031308?1.055*h**(1/2.4)-.055:h*12.92,m=m>.0031308?1.055*m**(1/2.4)-.055:m*12.92,d=Math.min(Math.max(0,d),1),h=Math.min(Math.max(0,h),1),m=Math.min(Math.max(0,m),1),[d*255,h*255,m*255]},u.xyz.lab=function(o){let s=o[0],l=o[1],c=o[2];s/=95.047,l/=100,c/=108.883,s=s>.008856?s**(1/3):7.787*s+16/116,l=l>.008856?l**(1/3):7.787*l+16/116,c=c>.008856?c**(1/3):7.787*c+16/116;const d=116*l-16,h=500*(s-l),m=200*(l-c);return[d,h,m]},u.lab.xyz=function(o){const s=o[0],l=o[1],c=o[2];let d,h,m;h=(s+16)/116,d=l/500+h,m=h-c/200;const E=h**3,g=d**3,C=m**3;return h=E>.008856?E:(h-16/116)/7.787,d=g>.008856?g:(d-16/116)/7.787,m=C>.008856?C:(m-16/116)/7.787,d*=95.047,h*=100,m*=108.883,[d,h,m]},u.lab.lch=function(o){const s=o[0],l=o[1],c=o[2];let d;d=Math.atan2(c,l)*360/2/Math.PI,d<0&&(d+=360);const h=Math.sqrt(l*l+c*c);return[s,h,d]},u.lch.lab=function(o){const s=o[0],l=o[1],c=o[2]/360*2*Math.PI,d=l*Math.cos(c),h=l*Math.sin(c);return[s,d,h]},u.rgb.ansi16=function(o,s=null){const[l,c,d]=o;let h=s===null?u.rgb.hsv(o)[2]:s;if(h=Math.round(h/50),h===0)return 30;let m=30+(Math.round(d/255)<<2|Math.round(c/255)<<1|Math.round(l/255));return h===2&&(m+=60),m},u.hsv.ansi16=function(o){return u.rgb.ansi16(u.hsv.rgb(o),o[2])},u.rgb.ansi256=function(o){const s=o[0],l=o[1],c=o[2];return s===l&&l===c?s<8?16:s>248?231:Math.round((s-8)/247*24)+232:16+36*Math.round(s/255*5)+6*Math.round(l/255*5)+Math.round(c/255*5)},u.ansi16.rgb=function(o){let s=o%10;if(s===0||s===7)return o>50&&(s+=3.5),s=s/10.5*255,[s,s,s];const l=(~~(o>50)+1)*.5,c=(s&1)*l*255,d=(s>>1&1)*l*255,h=(s>>2&1)*l*255;return[c,d,h]},u.ansi256.rgb=function(o){if(o>=232){const h=(o-232)*10+8;return[h,h,h]}o-=16;let s;const l=Math.floor(o/36)/5*255,c=Math.floor((s=o%36)/6)/5*255,d=s%6/5*255;return[l,c,d]},u.rgb.hex=function(o){const s=(((Math.round(o[0])&255)<<16)+((Math.round(o[1])&255)<<8)+(Math.round(o[2])&255)).toString(16).toUpperCase();return"000000".substring(s.length)+s},u.hex.rgb=function(o){const s=o.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!s)return[0,0,0];let l=s[0];s[0].length===3&&(l=l.split("").map(E=>E+E).join(""));const c=parseInt(l,16),d=c>>16&255,h=c>>8&255,m=c&255;return[d,h,m]},u.rgb.hcg=function(o){const s=o[0]/255,l=o[1]/255,c=o[2]/255,d=Math.max(Math.max(s,l),c),h=Math.min(Math.min(s,l),c),m=d-h;let E,g;return m<1?E=h/(1-m):E=0,m<=0?g=0:d===s?g=(l-c)/m%6:d===l?g=2+(c-s)/m:g=4+(s-l)/m,g/=6,g%=1,[g*360,m*100,E*100]},u.hsl.hcg=function(o){const s=o[1]/100,l=o[2]/100,c=l<.5?2*s*l:2*s*(1-l);let d=0;return c<1&&(d=(l-.5*c)/(1-c)),[o[0],c*100,d*100]},u.hsv.hcg=function(o){const s=o[1]/100,l=o[2]/100,c=s*l;let d=0;return c<1&&(d=(l-c)/(1-c)),[o[0],c*100,d*100]},u.hcg.rgb=function(o){const s=o[0]/360,l=o[1]/100,c=o[2]/100;if(l===0)return[c*255,c*255,c*255];const d=[0,0,0],h=s%1*6,m=h%1,E=1-m;let g=0;switch(Math.floor(h)){case 0:d[0]=1,d[1]=m,d[2]=0;break;case 1:d[0]=E,d[1]=1,d[2]=0;break;case 2:d[0]=0,d[1]=1,d[2]=m;break;case 3:d[0]=0,d[1]=E,d[2]=1;break;case 4:d[0]=m,d[1]=0,d[2]=1;break;default:d[0]=1,d[1]=0,d[2]=E}return g=(1-l)*c,[(l*d[0]+g)*255,(l*d[1]+g)*255,(l*d[2]+g)*255]},u.hcg.hsv=function(o){const s=o[1]/100,l=o[2]/100,c=s+l*(1-s);let d=0;return c>0&&(d=s/c),[o[0],d*100,c*100]},u.hcg.hsl=function(o){const s=o[1]/100,l=o[2]/100*(1-s)+.5*s;let c=0;return l>0&&l<.5?c=s/(2*l):l>=.5&&l<1&&(c=s/(2*(1-l))),[o[0],c*100,l*100]},u.hcg.hwb=function(o){const s=o[1]/100,l=o[2]/100,c=s+l*(1-s);return[o[0],(c-s)*100,(1-c)*100]},u.hwb.hcg=function(o){const s=o[1]/100,l=o[2]/100,c=1-l,d=c-s;let h=0;return d<1&&(h=(c-d)/(1-d)),[o[0],d*100,h*100]},u.apple.rgb=function(o){return[o[0]/65535*255,o[1]/65535*255,o[2]/65535*255]},u.rgb.apple=function(o){return[o[0]/255*65535,o[1]/255*65535,o[2]/255*65535]},u.gray.rgb=function(o){return[o[0]/100*255,o[0]/100*255,o[0]/100*255]},u.gray.hsl=function(o){return[0,0,o[0]]},u.gray.hsv=u.gray.hsl,u.gray.hwb=function(o){return[0,100,o[0]]},u.gray.cmyk=function(o){return[0,0,0,o[0]]},u.gray.lab=function(o){return[o[0],0,0]},u.gray.hex=function(o){const s=Math.round(o[0]/100*255)&255,l=((s<<16)+(s<<8)+s).toString(16).toUpperCase();return"000000".substring(l.length)+l},u.rgb.gray=function(o){return[(o[0]+o[1]+o[2])/3/255*100]},So}var Bo,ND;function zm(){if(ND)return Bo;ND=1;const e=PD();function t(){const s={},l=Object.keys(e);for(let c=l.length,d=0;d<c;d++)s[l[d]]={distance:-1,parent:null};return s}function u(s){const l=t(),c=[s];for(l[s].distance=0;c.length;){const d=c.pop(),h=Object.keys(e[d]);for(let m=h.length,E=0;E<m;E++){const g=h[E],C=l[g];C.distance===-1&&(C.distance=l[d].distance+1,C.parent=d,c.unshift(g))}}return l}function i(s,l){return function(c){return l(s(c))}}function o(s,l){const c=[l[s].parent,s];let d=e[l[s].parent][s],h=l[s].parent;for(;l[h].parent;)c.unshift(l[h].parent),d=i(e[l[h].parent][h],d),h=l[h].parent;return d.conversion=c,d}return Bo=function(s){const l=u(s),c={},d=Object.keys(l);for(let h=d.length,m=0;m<h;m++){const E=d[m];l[E].parent!==null&&(c[E]=o(E,l))}return c},Bo}var Ao,TD;function Um(){if(TD)return Ao;TD=1;const e=PD(),t=zm(),u={},i=Object.keys(e);function o(l){const c=function(...d){const h=d[0];return h==null?h:(h.length>1&&(d=h),l(d))};return"conversion"in l&&(c.conversion=l.conversion),c}function s(l){const c=function(...d){const h=d[0];if(h==null)return h;h.length>1&&(d=h);const m=l(d);if(typeof m=="object")for(let E=m.length,g=0;g<E;g++)m[g]=Math.round(m[g]);return m};return"conversion"in l&&(c.conversion=l.conversion),c}return i.forEach(l=>{u[l]={},Object.defineProperty(u[l],"channels",{value:e[l].channels}),Object.defineProperty(u[l],"labels",{value:e[l].labels});const c=t(l);Object.keys(c).forEach(d=>{const h=c[d];u[l][d]=s(h),u[l][d].raw=o(h)})}),Ao=u,Ao}(function(e){const t=(m,E)=>(...g)=>`\x1B[${m(...g)+E}m`,u=(m,E)=>(...g)=>{const C=m(...g);return`\x1B[${38+E};5;${C}m`},i=(m,E)=>(...g)=>{const C=m(...g);return`\x1B[${38+E};2;${C[0]};${C[1]};${C[2]}m`},o=m=>m,s=(m,E,g)=>[m,E,g],l=(m,E,g)=>{Object.defineProperty(m,E,{get:()=>{const C=g();return Object.defineProperty(m,E,{value:C,enumerable:!0,configurable:!0}),C},enumerable:!0,configurable:!0})};let c;const d=(m,E,g,C)=>{c===void 0&&(c=Um());const y=C?10:0,v={};for(const[k,R]of Object.entries(c)){const N=k==="ansi16"?"ansi":k;k===E?v[N]=m(g,y):typeof R=="object"&&(v[N]=m(R[E],y))}return v};function h(){const m=new Map,E={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};E.color.gray=E.color.blackBright,E.bgColor.bgGray=E.bgColor.bgBlackBright,E.color.grey=E.color.blackBright,E.bgColor.bgGrey=E.bgColor.bgBlackBright;for(const[g,C]of Object.entries(E)){for(const[y,v]of Object.entries(C))E[y]={open:`\x1B[${v[0]}m`,close:`\x1B[${v[1]}m`},C[y]=E[y],m.set(v[0],v[1]);Object.defineProperty(E,g,{value:C,enumerable:!1})}return Object.defineProperty(E,"codes",{value:m,enumerable:!1}),E.color.close="\x1B[39m",E.bgColor.close="\x1B[49m",l(E.color,"ansi",()=>d(t,"ansi16",o,!1)),l(E.color,"ansi256",()=>d(u,"ansi256",o,!1)),l(E.color,"ansi16m",()=>d(i,"rgb",s,!1)),l(E.bgColor,"ansi",()=>d(t,"ansi16",o,!0)),l(E.bgColor,"ansi256",()=>d(u,"ansi256",o,!0)),l(E.bgColor,"ansi16m",()=>d(i,"rgb",s,!0)),E}Object.defineProperty(e,"exports",{enumerable:!0,get:h})})(ti);const Rr=Un.exports,Gm=AD,Hm=ti.exports,xo=new Set(["\x1B","\x9B"]),Wm=39,$D=e=>`${xo.values().next().value}[${e}m`,qm=e=>e.split(" ").map(t=>Rr(t)),ko=(e,t,u)=>{const i=[...t];let o=!1,s=Rr(Gm(e[e.length-1]));for(const[l,c]of i.entries()){const d=Rr(c);if(s+d<=u?e[e.length-1]+=c:(e.push(c),s=0),xo.has(c))o=!0;else if(o&&c==="m"){o=!1;continue}o||(s+=d,s===u&&l<i.length-1&&(e.push(""),s=0))}!s&&e[e.length-1].length>0&&e.length>1&&(e[e.length-2]+=e.pop())},Qm=e=>{const t=e.split(" ");let u=t.length;for(;u>0&&!(Rr(t[u-1])>0);)u--;return u===t.length?e:t.slice(0,u).join(" ")+t.slice(u).join("")},Jm=(e,t,u={})=>{if(u.trim!==!1&&e.trim()==="")return"";let i="",o="",s;const l=qm(e);let c=[""];for(const[d,h]of e.split(" ").entries()){u.trim!==!1&&(c[c.length-1]=c[c.length-1].trimLeft());let m=Rr(c[c.length-1]);if(d!==0&&(m>=t&&(u.wordWrap===!1||u.trim===!1)&&(c.push(""),m=0),(m>0||u.trim===!1)&&(c[c.length-1]+=" ",m++)),u.hard&&l[d]>t){const E=t-m,g=1+Math.floor((l[d]-E-1)/t);Math.floor((l[d]-1)/t)<g&&c.push(""),ko(c,h,t);continue}if(m+l[d]>t&&m>0&&l[d]>0){if(u.wordWrap===!1&&m<t){ko(c,h,t);continue}c.push("")}if(m+l[d]>t&&u.wordWrap===!1){ko(c,h,t);continue}c[c.length-1]+=h}u.trim!==!1&&(c=c.map(Qm)),i=c.join(`
|
|
50
|
+
`);for(const[d,h]of[...i].entries()){if(o+=h,xo.has(h)){const E=parseFloat(/\d[^m]*/.exec(i.slice(d,d+4)));s=E===Wm?null:E}const m=Hm.codes.get(Number(s));s&&m&&(i[d+1]===`
|
|
51
|
+
`?o+=$D(m):h===`
|
|
52
|
+
`&&(o+=$D(s)))}return o};var Vm=(e,t,u)=>String(e).normalize().replace(/\r\n/g,`
|
|
53
|
+
`).split(`
|
|
54
|
+
`).map(i=>Jm(i,t,u)).join(`
|
|
55
|
+
`);const LD="[\uD800-\uDBFF][\uDC00-\uDFFF]",Km=e=>e&&e.exact?new RegExp(`^${LD}$`):new RegExp(LD,"g");var Ym=Km;const Xm=ei.exports,Zm=Ym,jD=ti.exports,MD=["\x1B","\x9B"],ni=e=>`${MD[0]}[${e}m`,zD=(e,t,u)=>{let i=[];e=[...e];for(let o of e){const s=o;o.match(";")&&(o=o.split(";")[0][0]+"0");const l=jD.codes.get(parseInt(o,10));if(l){const c=e.indexOf(l.toString());c>=0?e.splice(c,1):i.push(ni(t?l:s))}else if(t){i.push(ni(0));break}else i.push(ni(s))}if(t&&(i=i.filter((o,s)=>i.indexOf(o)===s),u!==void 0)){const o=ni(jD.codes.get(parseInt(u,10)));i=i.reduce((s,l)=>l===o?[l,...s]:[...s,l],[])}return i.join("")};var _o=(e,t,u)=>{const i=[...e.normalize()],o=[];u=typeof u=="number"?u:i.length;let s=!1,l,c=0,d="";for(const[h,m]of i.entries()){let E=!1;if(MD.includes(m)){const g=/\d[^m]*/.exec(e.slice(h,h+18));l=g&&g.length>0?g[0]:void 0,c<u&&(s=!0,l!==void 0&&o.push(l))}else s&&m==="m"&&(s=!1,E=!0);if(!s&&!E&&++c,!Zm({exact:!0}).test(m)&&Xm(m.codePointAt())&&++c,c>t&&c<=u)d+=m;else if(c===t&&!s&&l!==void 0)d=zD(o);else if(c>=u){d+=zD(o,!0,l);break}}return d};const Kt=_o,e1=Un.exports;function ri(e,t,u){if(e.charAt(t)===" ")return t;for(let i=1;i<=3;i++)if(u){if(e.charAt(t+i)===" ")return t+i}else if(e.charAt(t-i)===" ")return t-i;return t}var t1=(e,t,u)=>{u=Ar({position:"end",preferTruncationOnSpace:!1},u);const{position:i,space:o,preferTruncationOnSpace:s}=u;let l="\u2026",c=1;if(typeof e!="string")throw new TypeError(`Expected \`input\` to be a string, got ${typeof e}`);if(typeof t!="number")throw new TypeError(`Expected \`columns\` to be a number, got ${typeof t}`);if(t<1)return"";if(t===1)return l;const d=e1(e);if(d<=t)return e;if(i==="start"){if(s){const h=ri(e,d-t+1,!0);return l+Kt(e,h,d).trim()}return o===!0&&(l+=" ",c=2),l+Kt(e,d-t+c,d)}if(i==="middle"){o===!0&&(l=" "+l+" ",c=3);const h=Math.floor(t/2);if(s){const m=ri(e,h),E=ri(e,d-(t-h)+1,!0);return Kt(e,0,m)+l+Kt(e,E,d).trim()}return Kt(e,0,h)+l+Kt(e,d-(t-h)+c,d)}if(i==="end"){if(s){const h=ri(e,t-1);return Kt(e,0,h)+l}return o===!0&&(l=" "+l,c=2),Kt(e,0,t-c)+l}throw new Error(`Expected \`options.position\` to be either \`start\`, \`middle\` or \`end\`, got ${i}`)},n1=(e,t=1,u)=>{if(u=Ar({indent:" ",includeEmptyLines:!1},u),typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(typeof u.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof u.indent}\``);if(t===0)return e;const i=u.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(i,u.indent.repeat(t))},Oo={exports:{}},r1={topLeft:"\u250C",topRight:"\u2510",bottomRight:"\u2518",bottomLeft:"\u2514",vertical:"\u2502",horizontal:"\u2500"},u1={topLeft:"\u2554",topRight:"\u2557",bottomRight:"\u255D",bottomLeft:"\u255A",vertical:"\u2551",horizontal:"\u2550"},i1={topLeft:"\u256D",topRight:"\u256E",bottomRight:"\u256F",bottomLeft:"\u2570",vertical:"\u2502",horizontal:"\u2500"},a1={topLeft:"\u250F",topRight:"\u2513",bottomRight:"\u251B",bottomLeft:"\u2517",vertical:"\u2503",horizontal:"\u2501"},o1={topLeft:"\u2553",topRight:"\u2556",bottomRight:"\u255C",bottomLeft:"\u2559",vertical:"\u2551",horizontal:"\u2500"},s1={topLeft:"\u2552",topRight:"\u2555",bottomRight:"\u255B",bottomLeft:"\u2558",vertical:"\u2502",horizontal:"\u2550"},l1={topLeft:"+",topRight:"+",bottomRight:"+",bottomLeft:"+",vertical:"|",horizontal:"-"},c1={single:r1,double:u1,round:i1,bold:a1,singleDouble:o1,doubleSingle:s1,classic:l1};const UD=c1;Oo.exports=UD,Oo.exports.default=UD;var D1=(e,t=process.argv)=>{const u=e.startsWith("-")?"":e.length===1?"-":"--",i=t.indexOf(u+e),o=t.indexOf("--");return i!==-1&&(o===-1||i<o)};const f1=$u.default,GD=rc.default,ut=D1,{env:Se}=process;let Yt;ut("no-color")||ut("no-colors")||ut("color=false")||ut("color=never")?Yt=0:(ut("color")||ut("colors")||ut("color=true")||ut("color=always"))&&(Yt=1),"FORCE_COLOR"in Se&&(Se.FORCE_COLOR==="true"?Yt=1:Se.FORCE_COLOR==="false"?Yt=0:Yt=Se.FORCE_COLOR.length===0?1:Math.min(parseInt(Se.FORCE_COLOR,10),3));function Io(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Ro(e,t){if(Yt===0)return 0;if(ut("color=16m")||ut("color=full")||ut("color=truecolor"))return 3;if(ut("color=256"))return 2;if(e&&!t&&Yt===void 0)return 0;const u=Yt||0;if(Se.TERM==="dumb")return u;if(process.platform==="win32"){const i=f1.release().split(".");return Number(i[0])>=10&&Number(i[2])>=10586?Number(i[2])>=14931?3:2:1}if("CI"in Se)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(i=>i in Se)||Se.CI_NAME==="codeship"?1:u;if("TEAMCITY_VERSION"in Se)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Se.TEAMCITY_VERSION)?1:0;if(Se.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Se){const i=parseInt((Se.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Se.TERM_PROGRAM){case"iTerm.app":return i>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Se.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Se.TERM)||"COLORTERM"in Se?1:u}function d1(e){const t=Ro(e,e&&e.isTTY);return Io(t)}var h1={supportsColor:d1,stdout:Io(Ro(!0,GD.isatty(1))),stderr:Io(Ro(!0,GD.isatty(2)))};const p1=(e,t,u)=>{let i=e.indexOf(t);if(i===-1)return e;const o=t.length;let s=0,l="";do l+=e.substr(s,i-s)+t+u,s=i+o,i=e.indexOf(t,s);while(i!==-1);return l+=e.substr(s),l},g1=(e,t,u,i)=>{let o=0,s="";do{const l=e[i-1]==="\r";s+=e.substr(o,(l?i-1:i)-o)+t+(l?`\r
|
|
56
|
+
`:`
|
|
57
|
+
`)+u,o=i+1,i=e.indexOf(`
|
|
58
|
+
`,o)}while(i!==-1);return s+=e.substr(o),s};var m1={stringReplaceAll:p1,stringEncaseCRLFWithFirstIndex:g1},Po,HD;function E1(){if(HD)return Po;HD=1;const e=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,t=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,u=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,i=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,o=new Map([["n",`
|
|
59
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function s(h){const m=h[0]==="u",E=h[1]==="{";return m&&!E&&h.length===5||h[0]==="x"&&h.length===3?String.fromCharCode(parseInt(h.slice(1),16)):m&&E?String.fromCodePoint(parseInt(h.slice(2,-1),16)):o.get(h)||h}function l(h,m){const E=[],g=m.trim().split(/\s*,\s*/g);let C;for(const y of g){const v=Number(y);if(!Number.isNaN(v))E.push(v);else if(C=y.match(u))E.push(C[2].replace(i,(k,R,N)=>R?s(R):N));else throw new Error(`Invalid Chalk template style argument: ${y} (in style '${h}')`)}return E}function c(h){t.lastIndex=0;const m=[];let E;for(;(E=t.exec(h))!==null;){const g=E[1];if(E[2]){const C=l(g,E[2]);m.push([g].concat(C))}else m.push([g])}return m}function d(h,m){const E={};for(const C of m)for(const y of C.styles)E[y[0]]=C.inverse?null:y.slice(1);let g=h;for(const[C,y]of Object.entries(E))if(Array.isArray(y)){if(!(C in g))throw new Error(`Unknown Chalk style: ${C}`);g=y.length>0?g[C](...y):g[C]}return g}return Po=(h,m)=>{const E=[],g=[];let C=[];if(m.replace(e,(y,v,k,R,N,z)=>{if(v)C.push(s(v));else if(R){const w=C.join("");C=[],g.push(E.length===0?w:d(h,E)(w)),E.push({inverse:k,styles:c(R)})}else if(N){if(E.length===0)throw new Error("Found extraneous } in Chalk template literal");g.push(d(h,E)(C.join(""))),C=[],E.pop()}else C.push(z)}),g.push(C.join("")),E.length>0){const y=`Chalk template literal is missing ${E.length} closing bracket${E.length===1?"":"s"} (\`}\`)`;throw new Error(y)}return g.join("")},Po}const Pr=ti.exports,{stdout:No,stderr:To}=h1,{stringReplaceAll:C1,stringEncaseCRLFWithFirstIndex:b1}=m1,{isArray:ui}=Array,WD=["ansi","ansi","ansi256","ansi16m"],Gn=Object.create(null),y1=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const u=No?No.level:0;e.level=t.level===void 0?u:t.level};class F1{constructor(t){return qD(t)}}const qD=e=>{const t={};return y1(t,e),t.template=(...u)=>VD(t.template,...u),Object.setPrototypeOf(t,ii.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=F1,t.template};function ii(e){return qD(e)}for(const[e,t]of Object.entries(Pr))Gn[e]={get(){const u=ai(this,$o(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:u}),u}};Gn.visible={get(){const e=ai(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};const QD=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const e of QD)Gn[e]={get(){const{level:t}=this;return function(...u){const i=$o(Pr.color[WD[t]][e](...u),Pr.color.close,this._styler);return ai(this,i,this._isEmpty)}}};for(const e of QD){const t="bg"+e[0].toUpperCase()+e.slice(1);Gn[t]={get(){const{level:u}=this;return function(...i){const o=$o(Pr.bgColor[WD[u]][e](...i),Pr.bgColor.close,this._styler);return ai(this,o,this._isEmpty)}}}}const v1=Object.defineProperties(()=>{},Cg(Ar({},Gn),{level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}})),$o=(e,t,u)=>{let i,o;return u===void 0?(i=e,o=t):(i=u.openAll+e,o=t+u.closeAll),{open:e,close:t,openAll:i,closeAll:o,parent:u}},ai=(e,t,u)=>{const i=(...o)=>ui(o[0])&&ui(o[0].raw)?JD(i,VD(i,...o)):JD(i,o.length===1?""+o[0]:o.join(" "));return Object.setPrototypeOf(i,v1),i._generator=e,i._styler=t,i._isEmpty=u,i},JD=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let u=e._styler;if(u===void 0)return t;const{openAll:i,closeAll:o}=u;if(t.indexOf("\x1B")!==-1)for(;u!==void 0;)t=C1(t,u.close,u.open),u=u.parent;const s=t.indexOf(`
|
|
60
|
+
`);return s!==-1&&(t=b1(t,o,i,s)),i+t+o};let Lo;const VD=(e,...t)=>{const[u]=t;if(!ui(u)||!ui(u.raw))return t.join(" ");const i=t.slice(1),o=[u.raw[0]];for(let s=1;s<u.length;s++)o.push(String(i[s-1]).replace(/[{}\\]/g,"\\$&"),String(u.raw[s]));return Lo===void 0&&(Lo=E1()),Lo(e,o.join(""))};Object.defineProperties(ii.prototype,Gn);const oi=ii();oi.supportsColor=No,oi.stderr=ii({level:To?To.level:0}),oi.stderr.supportsColor=To;var dt=oi;const KD=ju.default,YD=["assert","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"];let jo={};const w1=e=>{const t=new KD.PassThrough,u=new KD.PassThrough;t.write=o=>e("stdout",o),u.write=o=>e("stderr",o);const i=new console.Console(t,u);for(const o of YD)jo[o]=console[o],console[o]=i[o];return()=>{for(const o of YD)console[o]=jo[o];jo={}}};var S1=w1;const B1=/[|\\{}()[\]^$+*?.-]/g;var A1=e=>{if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(B1,"\\$&")};const x1=A1,k1=typeof process=="object"&&process&&typeof process.cwd=="function"?process.cwd():".",XD=[].concat(Sp.default.builtinModules,"bootstrap_node","node").map(e=>new RegExp(`(?:\\((?:node:)?${e}(?:\\.js)?:\\d+:\\d+\\)$|^\\s*at (?:node:)?${e}(?:\\.js)?:\\d+:\\d+$)`));XD.push(/\((?:node:)?internal\/[^:]+:\d+:\d+\)$/,/\s*at (?:node:)?internal\/[^:]+:\d+:\d+$/,/\/\.node-spawn-wrap-\w+-\w+\/node:\d+:\d+\)?$/);class Cs{constructor(t){t=Ar({ignoredPackages:[]},t),"internals"in t||(t.internals=Cs.nodeInternals()),"cwd"in t||(t.cwd=k1),this._cwd=t.cwd.replace(/\\/g,"/"),this._internals=[].concat(t.internals,_1(t.ignoredPackages)),this._wrapCallSite=t.wrapCallSite||!1}static nodeInternals(){return[...XD]}clean(t,u=0){u=" ".repeat(u),Array.isArray(t)||(t=t.split(`
|
|
61
|
+
`)),!/^\s*at /.test(t[0])&&/^\s*at /.test(t[1])&&(t=t.slice(1));let i=!1,o=null;const s=[];return t.forEach(l=>{if(l=l.replace(/\\/g,"/"),this._internals.some(d=>d.test(l)))return;const c=/^\s*at /.test(l);i?l=l.trimEnd().replace(/^(\s+)at /,"$1"):(l=l.trim(),c&&(l=l.slice(3))),l=l.replace(`${this._cwd}/`,""),l&&(c?(o&&(s.push(o),o=null),s.push(l)):(i=!0,o=l))}),s.map(l=>`${u}${l}
|
|
62
|
+
`).join("")}captureString(t,u=this.captureString){typeof t=="function"&&(u=t,t=1/0);const{stackTraceLimit:i}=Error;t&&(Error.stackTraceLimit=t);const o={};Error.captureStackTrace(o,u);const{stack:s}=o;return Error.stackTraceLimit=i,this.clean(s)}capture(t,u=this.capture){typeof t=="function"&&(u=t,t=1/0);const{prepareStackTrace:i,stackTraceLimit:o}=Error;Error.prepareStackTrace=(c,d)=>this._wrapCallSite?d.map(this._wrapCallSite):d,t&&(Error.stackTraceLimit=t);const s={};Error.captureStackTrace(s,u);const{stack:l}=s;return Object.assign(Error,{prepareStackTrace:i,stackTraceLimit:o}),l}at(t=this.at){const[u]=this.capture(1,t);if(!u)return{};const i={line:u.getLineNumber(),column:u.getColumnNumber()};ZD(i,u.getFileName(),this._cwd),u.isConstructor()&&(i.constructor=!0),u.isEval()&&(i.evalOrigin=u.getEvalOrigin()),u.isNative()&&(i.native=!0);let o;try{o=u.getTypeName()}catch{}o&&o!=="Object"&&o!=="[object Object]"&&(i.type=o);const s=u.getFunctionName();s&&(i.function=s);const l=u.getMethodName();return l&&s!==l&&(i.method=l),i}parseLine(t){const u=t&&t.match(O1);if(!u)return null;const i=u[1]==="new";let o=u[2];const s=u[3],l=u[4],c=Number(u[5]),d=Number(u[6]);let h=u[7];const m=u[8],E=u[9],g=u[10]==="native",C=u[11]===")";let y;const v={};if(m&&(v.line=Number(m)),E&&(v.column=Number(E)),C&&h){let k=0;for(let R=h.length-1;R>0;R--)if(h.charAt(R)===")")k++;else if(h.charAt(R)==="("&&h.charAt(R-1)===" "&&(k--,k===-1&&h.charAt(R-1)===" ")){const N=h.slice(0,R-1);h=h.slice(R+1),o+=` (${N}`;break}}if(o){const k=o.match(I1);k&&(o=k[1],y=k[2])}return ZD(v,h,this._cwd),i&&(v.constructor=!0),s&&(v.evalOrigin=s,v.evalLine=c,v.evalColumn=d,v.evalFile=l&&l.replace(/\\/g,"/")),g&&(v.native=!0),o&&(v.function=o),y&&o!==y&&(v.method=y),v}}function ZD(e,t,u){t&&(t=t.replace(/\\/g,"/"),t.startsWith(`${u}/`)&&(t=t.slice(u.length+1)),e.file=t)}function _1(e){if(e.length===0)return[];const t=e.map(u=>x1(u));return new RegExp(`[/\\\\]node_modules[/\\\\](?:${t.join("|")})[/\\\\][^:]+:\\d+:\\d+`)}const O1=new RegExp("^(?:\\s*at )?(?:(new) )?(?:(.*?) \\()?(?:eval at ([^ ]+) \\((.+?):(\\d+):(\\d+)\\), )?(?:(.+?):(\\d+):(\\d+)|(native))(\\)?)$"),I1=/^(.*?) \[as (.*?)\]$/;var ef=Cs,R1=(e,t)=>e.replace(/^\t+/gm,u=>" ".repeat(u.length*(t||2)));const P1=R1,N1=(e,t)=>{const u=[],i=e-t,o=e+t;for(let s=i;s<=o;s++)u.push(s);return u};var T1=(e,t,u)=>{if(typeof e!="string")throw new TypeError("Source code is missing.");if(!t||t<1)throw new TypeError("Line number must start from `1`.");if(e=P1(e).split(/\r?\n/),!(t>e.length))return u=Ar({around:3},u),N1(t,u.around).filter(i=>e[i-1]!==void 0).map(i=>({line:i,value:e[i-1]}))};const $1=(e,{showCursor:t=!1}={})=>{let u=0,i="",o=!1;const s=l=>{!t&&!o&&(_r.hide(),o=!0);const c=l+`
|
|
63
|
+
`;c!==i&&(i=c,e.write(bo.eraseLines(u)+c),u=c.split(`
|
|
64
|
+
`).length)};return s.clear=()=>{e.write(bo.eraseLines(u)),i="",u=0},s.done=()=>{i="",u=0,t||(_r.show(),o=!1)},s};var L1={create:$1};const Mo={};var tf=e=>{if(e.length===0)return{width:0,height:0};if(Mo[e])return Mo[e];const t=Zu.exports(e),u=e.split(`
|
|
65
|
+
`).length;return Mo[e]={width:t,height:u},{width:t,height:u}};const j1=(e,t)=>{"position"in t&&e.setPositionType(t.position==="absolute"?Z.default.POSITION_TYPE_ABSOLUTE:Z.default.POSITION_TYPE_RELATIVE)},M1=(e,t)=>{"marginLeft"in t&&e.setMargin(Z.default.EDGE_START,t.marginLeft||0),"marginRight"in t&&e.setMargin(Z.default.EDGE_END,t.marginRight||0),"marginTop"in t&&e.setMargin(Z.default.EDGE_TOP,t.marginTop||0),"marginBottom"in t&&e.setMargin(Z.default.EDGE_BOTTOM,t.marginBottom||0)},z1=(e,t)=>{"paddingLeft"in t&&e.setPadding(Z.default.EDGE_LEFT,t.paddingLeft||0),"paddingRight"in t&&e.setPadding(Z.default.EDGE_RIGHT,t.paddingRight||0),"paddingTop"in t&&e.setPadding(Z.default.EDGE_TOP,t.paddingTop||0),"paddingBottom"in t&&e.setPadding(Z.default.EDGE_BOTTOM,t.paddingBottom||0)},U1=(e,t)=>{var u;"flexGrow"in t&&e.setFlexGrow((u=t.flexGrow)!=null?u:0),"flexShrink"in t&&e.setFlexShrink(typeof t.flexShrink=="number"?t.flexShrink:1),"flexDirection"in t&&(t.flexDirection==="row"&&e.setFlexDirection(Z.default.FLEX_DIRECTION_ROW),t.flexDirection==="row-reverse"&&e.setFlexDirection(Z.default.FLEX_DIRECTION_ROW_REVERSE),t.flexDirection==="column"&&e.setFlexDirection(Z.default.FLEX_DIRECTION_COLUMN),t.flexDirection==="column-reverse"&&e.setFlexDirection(Z.default.FLEX_DIRECTION_COLUMN_REVERSE)),"flexBasis"in t&&(typeof t.flexBasis=="number"?e.setFlexBasis(t.flexBasis):typeof t.flexBasis=="string"?e.setFlexBasisPercent(Number.parseInt(t.flexBasis,10)):e.setFlexBasis(NaN)),"alignItems"in t&&((t.alignItems==="stretch"||!t.alignItems)&&e.setAlignItems(Z.default.ALIGN_STRETCH),t.alignItems==="flex-start"&&e.setAlignItems(Z.default.ALIGN_FLEX_START),t.alignItems==="center"&&e.setAlignItems(Z.default.ALIGN_CENTER),t.alignItems==="flex-end"&&e.setAlignItems(Z.default.ALIGN_FLEX_END)),"alignSelf"in t&&((t.alignSelf==="auto"||!t.alignSelf)&&e.setAlignSelf(Z.default.ALIGN_AUTO),t.alignSelf==="flex-start"&&e.setAlignSelf(Z.default.ALIGN_FLEX_START),t.alignSelf==="center"&&e.setAlignSelf(Z.default.ALIGN_CENTER),t.alignSelf==="flex-end"&&e.setAlignSelf(Z.default.ALIGN_FLEX_END)),"justifyContent"in t&&((t.justifyContent==="flex-start"||!t.justifyContent)&&e.setJustifyContent(Z.default.JUSTIFY_FLEX_START),t.justifyContent==="center"&&e.setJustifyContent(Z.default.JUSTIFY_CENTER),t.justifyContent==="flex-end"&&e.setJustifyContent(Z.default.JUSTIFY_FLEX_END),t.justifyContent==="space-between"&&e.setJustifyContent(Z.default.JUSTIFY_SPACE_BETWEEN),t.justifyContent==="space-around"&&e.setJustifyContent(Z.default.JUSTIFY_SPACE_AROUND))},G1=(e,t)=>{var u,i;"width"in t&&(typeof t.width=="number"?e.setWidth(t.width):typeof t.width=="string"?e.setWidthPercent(Number.parseInt(t.width,10)):e.setWidthAuto()),"height"in t&&(typeof t.height=="number"?e.setHeight(t.height):typeof t.height=="string"?e.setHeightPercent(Number.parseInt(t.height,10)):e.setHeightAuto()),"minWidth"in t&&(typeof t.minWidth=="string"?e.setMinWidthPercent(Number.parseInt(t.minWidth,10)):e.setMinWidth((u=t.minWidth)!=null?u:0)),"minHeight"in t&&(typeof t.minHeight=="string"?e.setMinHeightPercent(Number.parseInt(t.minHeight,10)):e.setMinHeight((i=t.minHeight)!=null?i:0))},H1=(e,t)=>{"display"in t&&e.setDisplay(t.display==="flex"?Z.default.DISPLAY_FLEX:Z.default.DISPLAY_NONE)},W1=(e,t)=>{if("borderStyle"in t){const u=typeof t.borderStyle=="string"?1:0;e.setBorder(Z.default.EDGE_TOP,u),e.setBorder(Z.default.EDGE_BOTTOM,u),e.setBorder(Z.default.EDGE_LEFT,u),e.setBorder(Z.default.EDGE_RIGHT,u)}};var q1=(e,t={})=>{j1(e,t),M1(e,t),z1(e,t),U1(e,t),G1(e,t),H1(e,t),W1(e,t)};const zo={};var nf=(e,t,u)=>{const i=e+String(t)+String(u);if(zo[i])return zo[i];let o=e;if(u==="wrap"&&(o=Vm(e,t,{trim:!1,hard:!0})),u.startsWith("truncate")){let s="end";u==="truncate-middle"&&(s="middle"),u==="truncate-start"&&(s="start"),o=t1(e,t,{position:s})}return zo[i]=o,o};const Uo=e=>{let t="";if(e.childNodes.length>0)for(const u of e.childNodes){let i="";u.nodeName==="#text"?i=u.nodeValue:((u.nodeName==="ink-text"||u.nodeName==="ink-virtual-text")&&(i=Uo(u)),i.length>0&&typeof u.internal_transform=="function"&&(i=u.internal_transform(i))),t+=i}return t},rf=e=>{var t;const u={nodeName:e,style:{},attributes:{},childNodes:[],parentNode:null,yogaNode:e==="ink-virtual-text"?void 0:Z.default.Node.create()};return e==="ink-text"&&((t=u.yogaNode)==null||t.setMeasureFunc(J1.bind(null,u))),u},Go=(e,t)=>{var u;t.parentNode&&si(t.parentNode,t),t.parentNode=e,e.childNodes.push(t),t.yogaNode&&((u=e.yogaNode)==null||u.insertChild(t.yogaNode,e.yogaNode.getChildCount())),(e.nodeName==="ink-text"||e.nodeName==="ink-virtual-text")&&li(e)},uf=(e,t,u)=>{var i,o;t.parentNode&&si(t.parentNode,t),t.parentNode=e;const s=e.childNodes.indexOf(u);if(s>=0){e.childNodes.splice(s,0,t),t.yogaNode&&((i=e.yogaNode)==null||i.insertChild(t.yogaNode,s));return}e.childNodes.push(t),t.yogaNode&&((o=e.yogaNode)==null||o.insertChild(t.yogaNode,e.yogaNode.getChildCount())),(e.nodeName==="ink-text"||e.nodeName==="ink-virtual-text")&&li(e)},si=(e,t)=>{var u,i;t.yogaNode&&((i=(u=t.parentNode)==null?void 0:u.yogaNode)==null||i.removeChild(t.yogaNode)),t.parentNode=null;const o=e.childNodes.indexOf(t);o>=0&&e.childNodes.splice(o,1),(e.nodeName==="ink-text"||e.nodeName==="ink-virtual-text")&&li(e)},af=(e,t,u)=>{e.attributes[t]=u},of=(e,t)=>{e.style=t,e.yogaNode&&q1(e.yogaNode,t)},Q1=e=>{const t={nodeName:"#text",nodeValue:e,yogaNode:void 0,parentNode:null,style:{}};return ci(t,e),t},J1=function(e,t){var u,i;const o=e.nodeName==="#text"?e.nodeValue:Uo(e),s=tf(o);if(s.width<=t||s.width>=1&&t>0&&t<1)return s;const l=(i=(u=e.style)==null?void 0:u.textWrap)!=null?i:"wrap",c=nf(o,t,l);return tf(c)},sf=e=>{var t;if(!(!e||!e.parentNode))return(t=e.yogaNode)!=null?t:sf(e.parentNode)},li=e=>{const t=sf(e);t==null||t.markDirty()},ci=(e,t)=>{typeof t!="string"&&(t=String(t)),e.nodeValue=t,li(e)},lf=e=>{e==null||e.unsetMeasureFunc(),e==null||e.freeRecursive()};var Ho=Im({schedulePassiveEffects:Xu.exports.unstable_scheduleCallback,cancelPassiveEffects:Xu.exports.unstable_cancelCallback,now:Date.now,getRootHostContext:()=>({isInsideText:!1}),prepareForCommit:()=>null,preparePortalMount:()=>null,clearContainer:()=>!1,shouldDeprioritizeSubtree:()=>!1,resetAfterCommit:e=>{if(e.isStaticDirty){e.isStaticDirty=!1,typeof e.onImmediateRender=="function"&&e.onImmediateRender();return}typeof e.onRender=="function"&&e.onRender()},getChildHostContext:(e,t)=>{const u=e.isInsideText,i=t==="ink-text"||t==="ink-virtual-text";return u===i?e:{isInsideText:i}},shouldSetTextContent:()=>!1,createInstance:(e,t,u,i)=>{if(i.isInsideText&&e==="ink-box")throw new Error("<Box> can\u2019t be nested inside <Text> component");const o=e==="ink-text"&&i.isInsideText?"ink-virtual-text":e,s=rf(o);for(const[l,c]of Object.entries(t))l!=="children"&&(l==="style"?of(s,c):l==="internal_transform"?s.internal_transform=c:l==="internal_static"?s.internal_static=!0:af(s,l,c));return s},createTextInstance:(e,t,u)=>{if(!u.isInsideText)throw new Error(`Text string "${e}" must be rendered inside <Text> component`);return Q1(e)},resetTextContent:()=>{},hideTextInstance:e=>{ci(e,"")},unhideTextInstance:(e,t)=>{ci(e,t)},getPublicInstance:e=>e,hideInstance:e=>{var t;(t=e.yogaNode)==null||t.setDisplay(Z.default.DISPLAY_NONE)},unhideInstance:e=>{var t;(t=e.yogaNode)==null||t.setDisplay(Z.default.DISPLAY_FLEX)},appendInitialChild:Go,appendChild:Go,insertBefore:uf,finalizeInitialChildren:(e,t,u,i)=>(e.internal_static&&(i.isStaticDirty=!0,i.staticNode=e),!1),supportsMutation:!0,appendChildToContainer:Go,insertInContainerBefore:uf,removeChildFromContainer:(e,t)=>{si(e,t),lf(t.yogaNode)},prepareUpdate:(e,t,u,i,o)=>{e.internal_static&&(o.isStaticDirty=!0);const s={},l=Object.keys(i);for(const c of l)if(i[c]!==u[c]){if(c==="style"&&typeof i.style=="object"&&typeof u.style=="object"){const d=i.style,h=u.style,m=Object.keys(d);for(const E of m){if(E==="borderStyle"||E==="borderColor"){if(typeof s.style!="object"){const g={};s.style=g}s.style.borderStyle=d.borderStyle,s.style.borderColor=d.borderColor}if(d[E]!==h[E]){if(typeof s.style!="object"){const g={};s.style=g}s.style[E]=d[E]}}continue}s[c]=i[c]}return s},commitUpdate:(e,t)=>{for(const[u,i]of Object.entries(t))u!=="children"&&(u==="style"?of(e,i):u==="internal_transform"?e.internal_transform=i:u==="internal_static"?e.internal_static=!0:af(e,u,i))},commitTextUpdate:(e,t,u)=>{ci(e,u)},removeChild:(e,t)=>{si(e,t),lf(t.yogaNode)}}),V1=e=>e.getComputedWidth()-e.getComputedPadding(Z.default.EDGE_LEFT)-e.getComputedPadding(Z.default.EDGE_RIGHT)-e.getComputedBorder(Z.default.EDGE_LEFT)-e.getComputedBorder(Z.default.EDGE_RIGHT);const K1=/^(rgb|hsl|hsv|hwb)\(\s?(\d+),\s?(\d+),\s?(\d+)\s?\)$/,Y1=/^(ansi|ansi256)\(\s?(\d+)\s?\)$/,Di=(e,t)=>t==="foreground"?e:"bg"+e[0].toUpperCase()+e.slice(1);var Nr=(e,t,u)=>{if(!t)return e;if(t in dt){const i=Di(t,u);return dt[i](e)}if(t.startsWith("#")){const i=Di("hex",u);return dt[i](t)(e)}if(t.startsWith("ansi")){const i=Y1.exec(t);if(!i)return e;const o=Di(i[1],u),s=Number(i[2]);return dt[o](s)(e)}if(t.startsWith("rgb")||t.startsWith("hsl")||t.startsWith("hsv")||t.startsWith("hwb")){const i=K1.exec(t);if(!i)return e;const o=Di(i[1],u),s=Number(i[2]),l=Number(i[3]),c=Number(i[4]);return dt[o](s,l,c)(e)}return e},X1=(e,t,u,i)=>{if(typeof u.style.borderStyle=="string"){const o=u.yogaNode.getComputedWidth(),s=u.yogaNode.getComputedHeight(),l=u.style.borderColor,c=Oo.exports[u.style.borderStyle],d=Nr(c.topLeft+c.horizontal.repeat(o-2)+c.topRight,l,"foreground"),h=(Nr(c.vertical,l,"foreground")+`
|
|
66
|
+
`).repeat(s-2),m=Nr(c.bottomLeft+c.horizontal.repeat(o-2)+c.bottomRight,l,"foreground");i.write(e,t,d,{transformers:[]}),i.write(e,t+1,h,{transformers:[]}),i.write(e+o-1,t+1,h,{transformers:[]}),i.write(e,t+s-1,m,{transformers:[]})}};const Z1=(e,t)=>{var u;const i=(u=e.childNodes[0])==null?void 0:u.yogaNode;if(i){const o=i.getComputedLeft(),s=i.getComputedTop();t=`
|
|
67
|
+
`.repeat(s)+n1(t,o)}return t},Wo=(e,t,u)=>{var i;const{offsetX:o=0,offsetY:s=0,transformers:l=[],skipStaticElements:c}=u;if(c&&e.internal_static)return;const{yogaNode:d}=e;if(d){if(d.getDisplay()===Z.default.DISPLAY_NONE)return;const h=o+d.getComputedLeft(),m=s+d.getComputedTop();let E=l;if(typeof e.internal_transform=="function"&&(E=[e.internal_transform,...l]),e.nodeName==="ink-text"){let g=Uo(e);if(g.length>0){const C=Zu.exports(g),y=V1(d);if(C>y){const v=(i=e.style.textWrap)!=null?i:"wrap";g=nf(g,y,v)}g=Z1(e,g),t.write(h,m,g,{transformers:E})}return}if(e.nodeName==="ink-box"&&X1(h,m,e,t),e.nodeName==="ink-root"||e.nodeName==="ink-box")for(const g of e.childNodes)Wo(g,t,{offsetX:h,offsetY:m,transformers:E,skipStaticElements:c})}};class cf{constructor(t){this.writes=[];const{width:u,height:i}=t;this.width=u,this.height=i}write(t,u,i,o){const{transformers:s}=o;!i||this.writes.push({x:t,y:u,text:i,transformers:s})}get(){const t=[];for(let u=0;u<this.height;u++)t.push(" ".repeat(this.width));for(const u of this.writes){const{x:i,y:o,text:s,transformers:l}=u,c=s.split(`
|
|
68
|
+
`);let d=0;for(let h of c){const m=t[o+d];if(!m)continue;const E=Un.exports(h);for(const g of l)h=g(h);t[o+d]=_o(m,0,i)+h+_o(m,i+E),d++}}return{output:t.map(u=>u.trimRight()).join(`
|
|
69
|
+
`),height:t.length}}}var e2=(e,t)=>{var u;if(e.yogaNode.setWidth(t),e.yogaNode){e.yogaNode.calculateLayout(void 0,void 0,Z.default.DIRECTION_LTR);const i=new cf({width:e.yogaNode.getComputedWidth(),height:e.yogaNode.getComputedHeight()});Wo(e,i,{skipStaticElements:!0});let o;(u=e.staticNode)!=null&&u.yogaNode&&(o=new cf({width:e.staticNode.yogaNode.getComputedWidth(),height:e.staticNode.yogaNode.getComputedHeight()}),Wo(e.staticNode,o,{skipStaticElements:!1}));const{output:s,height:l}=i.get();return{output:s,outputHeight:l,staticOutput:o?`${o.get().output}
|
|
70
|
+
`:""}}return{output:"",outputHeight:0,staticOutput:""}},Tr=new WeakMap;const Df=fe.exports.createContext({exit:()=>{}});Df.displayName="InternalAppContext";const ff=fe.exports.createContext({stdin:void 0,setRawMode:()=>{},isRawModeSupported:!1,internal_exitOnCtrlC:!0});ff.displayName="InternalStdinContext";const df=fe.exports.createContext({stdout:void 0,write:()=>{}});df.displayName="InternalStdoutContext";const hf=fe.exports.createContext({stderr:void 0,write:()=>{}});hf.displayName="InternalStderrContext";const pf=fe.exports.createContext({activeId:void 0,add:()=>{},remove:()=>{},activate:()=>{},deactivate:()=>{},enableFocus:()=>{},disableFocus:()=>{},focusNext:()=>{},focusPrevious:()=>{},focus:()=>{}});pf.displayName="InternalFocusContext";var t2=Object.defineProperty,n2=Object.defineProperties,r2=Object.getOwnPropertyDescriptors,fi=Object.getOwnPropertySymbols,gf=Object.prototype.hasOwnProperty,mf=Object.prototype.propertyIsEnumerable,Ef=(e,t,u)=>t in e?t2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:u}):e[t]=u,u2=(e,t)=>{for(var u in t||(t={}))gf.call(t,u)&&Ef(e,u,t[u]);if(fi)for(var u of fi(t))mf.call(t,u)&&Ef(e,u,t[u]);return e},i2=(e,t)=>n2(e,r2(t)),a2=(e,t)=>{var u={};for(var i in e)gf.call(e,i)&&t.indexOf(i)<0&&(u[i]=e[i]);if(e!=null&&fi)for(var i of fi(e))t.indexOf(i)<0&&mf.call(e,i)&&(u[i]=e[i]);return u};const Be=fe.exports.forwardRef((e,t)=>{var u=e,{children:i}=u,o=a2(u,["children"]);const s=i2(u2({},o),{marginLeft:o.marginLeft||o.marginX||o.margin||0,marginRight:o.marginRight||o.marginX||o.margin||0,marginTop:o.marginTop||o.marginY||o.margin||0,marginBottom:o.marginBottom||o.marginY||o.margin||0,paddingLeft:o.paddingLeft||o.paddingX||o.padding||0,paddingRight:o.paddingRight||o.paddingX||o.padding||0,paddingTop:o.paddingTop||o.paddingY||o.padding||0,paddingBottom:o.paddingBottom||o.paddingY||o.padding||0});return Q.createElement("ink-box",{ref:t,style:s},i)});Be.displayName="Box",Be.defaultProps={flexDirection:"row",flexGrow:0,flexShrink:1};const ge=({color:e,backgroundColor:t,dimColor:u,bold:i,italic:o,underline:s,strikethrough:l,inverse:c,wrap:d,children:h})=>{if(h==null)return null;const m=E=>(u&&(E=dt.dim(E)),e&&(E=Nr(E,e,"foreground")),t&&(E=Nr(E,t,"background")),i&&(E=dt.bold(E)),o&&(E=dt.italic(E)),s&&(E=dt.underline(E)),l&&(E=dt.strikethrough(E)),c&&(E=dt.inverse(E)),E);return Q.createElement("ink-text",{style:{flexGrow:0,flexShrink:1,flexDirection:"row",textWrap:d},internal_transform:m},h)};ge.displayName="Text",ge.defaultProps={dimColor:!1,bold:!1,italic:!1,underline:!1,strikethrough:!1,wrap:"wrap"};const Cf=new ef({cwd:process.cwd(),internals:ef.nodeInternals()}),o2=({error:e})=>{const t=e.stack?e.stack.split(`
|
|
71
|
+
`).slice(1):void 0,u=t?Cf.parseLine(t[0]):void 0;let i,o=0;if((u==null?void 0:u.file)&&(u==null?void 0:u.line)&&nc.existsSync(u.file)){const s=nc.readFileSync(u.file,"utf8");if(i=T1(s,u.line),i)for(const{line:l}of i)o=Math.max(o,String(l).length)}return Q.createElement(Be,{flexDirection:"column",padding:1},Q.createElement(Be,null,Q.createElement(ge,{backgroundColor:"red",color:"white"}," ","ERROR"," "),Q.createElement(ge,null," ",e.message)),u&&Q.createElement(Be,{marginTop:1},Q.createElement(ge,{dimColor:!0},u.file,":",u.line,":",u.column)),u&&i&&Q.createElement(Be,{marginTop:1,flexDirection:"column"},i.map(({line:s,value:l})=>Q.createElement(Be,{key:s},Q.createElement(Be,{width:o+1},Q.createElement(ge,{dimColor:s!==u.line,backgroundColor:s===u.line?"red":void 0,color:s===u.line?"white":void 0},String(s).padStart(o," "),":")),Q.createElement(ge,{key:s,backgroundColor:s===u.line?"red":void 0,color:s===u.line?"white":void 0}," "+l)))),e.stack&&Q.createElement(Be,{marginTop:1,flexDirection:"column"},e.stack.split(`
|
|
72
|
+
`).slice(1).map(s=>{const l=Cf.parseLine(s);return l?Q.createElement(Be,{key:s},Q.createElement(ge,{dimColor:!0},"- "),Q.createElement(ge,{dimColor:!0,bold:!0},l.function),Q.createElement(ge,{dimColor:!0,color:"gray"}," ","(",l.file,":",l.line,":",l.column,")")):Q.createElement(Be,{key:s},Q.createElement(ge,{dimColor:!0},"- "),Q.createElement(ge,{dimColor:!0,bold:!0},s))})))},s2=" ",l2="\x1B[Z",c2="\x1B";class bf extends fe.exports.PureComponent{constructor(){super(...arguments),this.state={isFocusEnabled:!0,activeFocusId:void 0,focusables:[],error:void 0},this.rawModeEnabledCount=0,this.handleSetRawMode=t=>{const{stdin:u}=this.props;if(!this.isRawModeSupported())throw u===process.stdin?new Error(`Raw mode is not supported on the current process.stdin, which Ink uses as input stream by default.
|
|
73
|
+
Read about how to prevent this error on https://github.com/vadimdemedes/ink/#israwmodesupported`):new Error(`Raw mode is not supported on the stdin provided to Ink.
|
|
74
|
+
Read about how to prevent this error on https://github.com/vadimdemedes/ink/#israwmodesupported`);if(u.setEncoding("utf8"),t){this.rawModeEnabledCount===0&&(u.addListener("data",this.handleInput),u.resume(),u.setRawMode(!0)),this.rawModeEnabledCount++;return}--this.rawModeEnabledCount===0&&(u.setRawMode(!1),u.removeListener("data",this.handleInput),u.pause())},this.handleInput=t=>{t===""&&this.props.exitOnCtrlC&&this.handleExit(),t===c2&&this.state.activeFocusId&&this.setState({activeFocusId:void 0}),this.state.isFocusEnabled&&this.state.focusables.length>0&&(t===s2&&this.focusNext(),t===l2&&this.focusPrevious())},this.handleExit=t=>{this.isRawModeSupported()&&this.handleSetRawMode(!1),this.props.onExit(t)},this.enableFocus=()=>{this.setState({isFocusEnabled:!0})},this.disableFocus=()=>{this.setState({isFocusEnabled:!1})},this.focus=t=>{this.setState(u=>u.focusables.some(i=>(i==null?void 0:i.id)===t)?{activeFocusId:t}:u)},this.focusNext=()=>{this.setState(t=>{var u;const i=(u=t.focusables[0])==null?void 0:u.id;return{activeFocusId:this.findNextFocusable(t)||i}})},this.focusPrevious=()=>{this.setState(t=>{var u;const i=(u=t.focusables[t.focusables.length-1])==null?void 0:u.id;return{activeFocusId:this.findPreviousFocusable(t)||i}})},this.addFocusable=(t,{autoFocus:u})=>{this.setState(i=>{let o=i.activeFocusId;return!o&&u&&(o=t),{activeFocusId:o,focusables:[...i.focusables,{id:t,isActive:!0}]}})},this.removeFocusable=t=>{this.setState(u=>({activeFocusId:u.activeFocusId===t?void 0:u.activeFocusId,focusables:u.focusables.filter(i=>i.id!==t)}))},this.activateFocusable=t=>{this.setState(u=>({focusables:u.focusables.map(i=>i.id!==t?i:{id:t,isActive:!0})}))},this.deactivateFocusable=t=>{this.setState(u=>({activeFocusId:u.activeFocusId===t?void 0:u.activeFocusId,focusables:u.focusables.map(i=>i.id!==t?i:{id:t,isActive:!1})}))},this.findNextFocusable=t=>{var u;const i=t.focusables.findIndex(o=>o.id===t.activeFocusId);for(let o=i+1;o<t.focusables.length;o++)if((u=t.focusables[o])!=null&&u.isActive)return t.focusables[o].id},this.findPreviousFocusable=t=>{var u;const i=t.focusables.findIndex(o=>o.id===t.activeFocusId);for(let o=i-1;o>=0;o--)if((u=t.focusables[o])!=null&&u.isActive)return t.focusables[o].id}}static getDerivedStateFromError(t){return{error:t}}isRawModeSupported(){return this.props.stdin.isTTY}render(){return Q.createElement(Df.Provider,{value:{exit:this.handleExit}},Q.createElement(ff.Provider,{value:{stdin:this.props.stdin,setRawMode:this.handleSetRawMode,isRawModeSupported:this.isRawModeSupported(),internal_exitOnCtrlC:this.props.exitOnCtrlC}},Q.createElement(df.Provider,{value:{stdout:this.props.stdout,write:this.props.writeToStdout}},Q.createElement(hf.Provider,{value:{stderr:this.props.stderr,write:this.props.writeToStderr}},Q.createElement(pf.Provider,{value:{activeId:this.state.activeFocusId,add:this.addFocusable,remove:this.removeFocusable,activate:this.activateFocusable,deactivate:this.deactivateFocusable,enableFocus:this.enableFocus,disableFocus:this.disableFocus,focusNext:this.focusNext,focusPrevious:this.focusPrevious,focus:this.focus}},this.state.error?Q.createElement(o2,{error:this.state.error}):this.props.children)))))}componentDidMount(){_r.hide(this.props.stdout)}componentWillUnmount(){_r.show(this.props.stdout),this.isRawModeSupported()&&this.handleSetRawMode(!1)}componentDidCatch(t){this.handleExit(t)}}bf.displayName="InternalApp";const Hn=process.env.CI==="false"?!1:km,yf=()=>{};class D2{constructor(t){this.resolveExitPromise=()=>{},this.rejectExitPromise=()=>{},this.unsubscribeExit=()=>{},this.onRender=()=>{if(this.isUnmounted)return;const{output:u,outputHeight:i,staticOutput:o}=e2(this.rootNode,this.options.stdout.columns||80),s=o&&o!==`
|
|
75
|
+
`;if(this.options.debug){s&&(this.fullStaticOutput+=o),this.options.stdout.write(this.fullStaticOutput+u);return}if(Hn){s&&this.options.stdout.write(o),this.lastOutput=u;return}if(s&&(this.fullStaticOutput+=o),i>=this.options.stdout.rows){this.options.stdout.write(bo.clearTerminal+this.fullStaticOutput+u),this.lastOutput=u;return}s&&(this.log.clear(),this.options.stdout.write(o),this.log(u)),!s&&u!==this.lastOutput&&this.throttledLog(u),this.lastOutput=u},Om(this),this.options=t,this.rootNode=rf("ink-root"),this.rootNode.onRender=t.debug?this.onRender:pD(this.onRender,32,{leading:!0,trailing:!0}),this.rootNode.onImmediateRender=this.onRender,this.log=L1.create(t.stdout),this.throttledLog=t.debug?this.log:pD(this.log,0,{leading:!0,trailing:!0}),this.isUnmounted=!1,this.lastOutput="",this.fullStaticOutput="",this.container=Ho.createContainer(this.rootNode,0,!1,null),this.unsubscribeExit=pn.exports(this.unmount,{alwaysLast:!1}),t.patchConsole&&this.patchConsole(),Hn||(t.stdout.on("resize",this.onRender),this.unsubscribeResize=()=>{t.stdout.off("resize",this.onRender)})}render(t){const u=Q.createElement(bf,{stdin:this.options.stdin,stdout:this.options.stdout,stderr:this.options.stderr,writeToStdout:this.writeToStdout,writeToStderr:this.writeToStderr,exitOnCtrlC:this.options.exitOnCtrlC,onExit:this.unmount},t);Ho.updateContainer(u,this.container,null,yf)}writeToStdout(t){if(!this.isUnmounted){if(this.options.debug){this.options.stdout.write(t+this.fullStaticOutput+this.lastOutput);return}if(Hn){this.options.stdout.write(t);return}this.log.clear(),this.options.stdout.write(t),this.log(this.lastOutput)}}writeToStderr(t){if(!this.isUnmounted){if(this.options.debug){this.options.stderr.write(t),this.options.stdout.write(this.fullStaticOutput+this.lastOutput);return}if(Hn){this.options.stderr.write(t);return}this.log.clear(),this.options.stderr.write(t),this.log(this.lastOutput)}}unmount(t){this.isUnmounted||(this.onRender(),this.unsubscribeExit(),typeof this.restoreConsole=="function"&&this.restoreConsole(),typeof this.unsubscribeResize=="function"&&this.unsubscribeResize(),Hn?this.options.stdout.write(this.lastOutput+`
|
|
76
|
+
`):this.options.debug||this.log.done(),this.isUnmounted=!0,Ho.updateContainer(null,this.container,null,yf),Tr.delete(this.options.stdout),t instanceof Error?this.rejectExitPromise(t):this.resolveExitPromise())}waitUntilExit(){return this.exitPromise||(this.exitPromise=new Promise((t,u)=>{this.resolveExitPromise=t,this.rejectExitPromise=u})),this.exitPromise}clear(){!Hn&&!this.options.debug&&this.log.clear()}patchConsole(){this.options.debug||(this.restoreConsole=S1((t,u)=>{t==="stdout"&&this.writeToStdout(u),t==="stderr"&&(u.startsWith("The above error occurred")||this.writeToStderr(u))}))}}var f2=Object.defineProperty,Ff=Object.getOwnPropertySymbols,d2=Object.prototype.hasOwnProperty,h2=Object.prototype.propertyIsEnumerable,vf=(e,t,u)=>t in e?f2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:u}):e[t]=u,p2=(e,t)=>{for(var u in t||(t={}))d2.call(t,u)&&vf(e,u,t[u]);if(Ff)for(var u of Ff(t))h2.call(t,u)&&vf(e,u,t[u]);return e};const g2=(e,t)=>{const u=p2({stdout:process.stdout,stdin:process.stdin,stderr:process.stderr,debug:!1,exitOnCtrlC:!0,patchConsole:!0},m2(t)),i=E2(u.stdout,()=>new D2(u));return i.render(e),{rerender:i.render,unmount:()=>i.unmount(),waitUntilExit:i.waitUntilExit,cleanup:()=>Tr.delete(u.stdout),clear:i.clear}},m2=(e={})=>e instanceof tc.Stream?{stdout:e,stdin:process.stdin}:e,E2=(e,t)=>{let u;return Tr.has(e)?u=Tr.get(e):(u=t(),Tr.set(e,u)),u},C2=({children:e})=>Q.createElement(Be,{flexDirection:"column"},e);function b2(){return Ie.default.platform!=="win32"?Ie.default.env.TERM!=="linux":Boolean(Ie.default.env.CI)||Boolean(Ie.default.env.WT_SESSION)||Ie.default.env.ConEmuTask==="{cmd::Cmder}"||Ie.default.env.TERM_PROGRAM==="vscode"||Ie.default.env.TERM==="xterm-256color"||Ie.default.env.TERM==="alacritty"||Ie.default.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}const y2={arrowRight:"\u2192",tick:"\u2714",info:"\u2139",warning:"\u26A0",cross:"\u2716",squareSmallFilled:"\u25FC",pointer:"\u276F"},F2={arrowRight:"\u2192",tick:"\u221A",info:"i",warning:"\u203C",cross:"\xD7",squareSmallFilled:"\u25A0",pointer:">"};var Wn=b2()?y2:F2;const v2=({spinner:e})=>{const[t,u]=fe.exports.useState(0);return fe.exports.useEffect(()=>{const i=setInterval(()=>{u(o=>o===e.frames.length-1?0:o+1)},e.interval);return()=>{clearInterval(i)}},[e]),Q.createElement(ge,null,e.frames[t])},w2=e=>e==="warning"?Q.createElement(ge,{color:"yellow"},Wn.warning):e==="error"?Q.createElement(ge,{color:"red"},Wn.cross):e==="success"?Q.createElement(ge,{color:"green"},Wn.tick):e==="pending"?Q.createElement(ge,{color:"gray"},Wn.squareSmallFilled):" ",S2=e=>Q.createElement(ge,{color:e==="error"?"red":"yellow"},Wn.pointer),B2=({label:e,state:t="pending",status:u,output:i,spinner:o,isExpanded:s,children:l})=>{const c=fe.exports.Children.toArray(l).filter(h=>fe.exports.isValidElement(h));let d=t==="loading"?Q.createElement(ge,{color:"yellow"},Q.createElement(v2,{spinner:o})):w2(t);return s&&(d=S2(t)),Q.createElement(Be,{flexDirection:"column"},Q.createElement(Be,null,Q.createElement(Be,{marginRight:1},Q.createElement(ge,null,d)),Q.createElement(ge,null,e),u?Q.createElement(Be,{marginLeft:1},Q.createElement(ge,{dimColor:!0},"[",u,"]")):void 0),i?Q.createElement(Be,{marginLeft:2},Q.createElement(ge,{color:"gray"},`${Wn.arrowRight} ${i}`)):void 0,s&&c.length>0&&Q.createElement(Be,{flexDirection:"column",marginLeft:2},c))},A2={interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},wf=({task:e})=>{const t=e.children.length>0?e.children.map((u,i)=>Q.createElement(wf,{key:i,task:u})):[];return Q.createElement(B2,{state:e.state,label:e.title,status:e.status,spinner:A2,output:e.output,isExpanded:t.length>0},t)},x2=({taskList:e})=>{const t=Wg(e);return Q.createElement(C2,null,t.map((u,i)=>Q.createElement(wf,{key:i,task:u})))};function k2(e){const t=g2(Q.createElement(x2,{taskList:e}));return{remove(){t.rerender(null),t.unmount(),t.clear(),t.cleanup()}}}const qo=Symbol("run");var _2=Object.defineProperty,Sf=Object.getOwnPropertySymbols,O2=Object.prototype.hasOwnProperty,I2=Object.prototype.propertyIsEnumerable,Bf=(e,t,u)=>t in e?_2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:u}):e[t]=u,R2=(e,t)=>{for(var u in t||(t={}))O2.call(t,u)&&Bf(e,u,t[u]);if(Sf)for(var u of Sf(t))I2.call(t,u)&&Bf(e,u,t[u]);return e};const P2=e=>{const t={task:xf(e.children),setTitle(u){e.title=u},setStatus(u){e.status=u},setOutput(u){e.output=typeof u=="string"?u:"message"in u?u.message:""},setWarning(u){e.state="warning",u!==void 0&&t.setOutput(u)},setError(u){e.state="error",u!==void 0&&t.setOutput(u)}};return t};let di;function Af(e,t,u){di||(di=k2(e),e.isRoot=!0);const i=em(e,{title:t,state:"pending",children:[]});return{task:i,async[qo](){const o=P2(i);i.state="loading";let s;try{s=await u(o)}catch(l){throw o.setError(l),l}return i.state==="loading"&&(i.state="success"),s},clear(){tm(e,i),e.isRoot&&e.length===0&&(di.remove(),di=void 0)}}}function xf(e){const t=async(u,i)=>{const o=Af(e,u,i);return{result:await o[qo](),get state(){return o.task.state},clear:o.clear}};return t.group=async(u,i)=>{const o=u((l,c)=>Af(e,l,c)),s=await Zg(o,async l=>({result:await l[qo](),get state(){return l.task.state},clear:l.clear}),R2({concurrency:1},i));return Object.assign(s,{clear(){for(const l of o)l.clear()}})},t}const N2=sD([]);var T2=xf(N2),kf=/-(\w)/g,_f=e=>e.replace(kf,(t,u)=>u.toUpperCase()),Of=/\B([A-Z])/g,$2=e=>e.replace(Of,"-$1").toLowerCase(),{stringify:$r}=JSON,{hasOwnProperty:L2}=Object.prototype,hi=(e,t)=>L2.call(e,t),j2=/^--?/,M2=/[.:=]/,z2=e=>{let t=e.replace(j2,""),u,i=t.match(M2);if(i!=null&&i.index){let o=i.index;u=t.slice(o+1),t=t.slice(0,o)}return{flagName:t,flagValue:u}},U2=/[\s.:=]/,G2=(e,t)=>{let u=`Invalid flag name ${$r(t)}:`;if(t.length===0)throw new Error(`${u} flag name cannot be empty}`);if(t.length===1)throw new Error(`${u} single characters are reserved for aliases`);let i=t.match(U2);if(i)throw new Error(`${u} flag name cannot contain the character ${$r(i==null?void 0:i[0])}`);let o;if(kf.test(t)?o=_f(t):Of.test(t)&&(o=$2(t)),o&&hi(e,o))throw new Error(`${u} collides with flag ${$r(o)}`)};function H2(e){let t=new Map;for(let u in e){if(!hi(e,u))continue;G2(e,u);let i=e[u];if(i&&typeof i=="object"){let{alias:o}=i;if(typeof o=="string"){if(o.length===0)throw new Error(`Invalid flag alias ${$r(u)}: flag alias cannot be empty`);if(o.length>1)throw new Error(`Invalid flag alias ${$r(u)}: flag aliases can only be a single-character`);if(t.has(o))throw new Error(`Flag collision: Alias "${o}" is already used`);t.set(o,{name:u,schema:i})}}}return t}var W2=e=>!e||typeof e=="function"?!1:Array.isArray(e)||Array.isArray(e.type),q2=e=>{let t={};for(let u in e)hi(e,u)&&(t[u]=W2(e[u])?[]:void 0);return t},Qo=(e,t)=>e===Number&&t===""?Number.NaN:e===Boolean?t!=="false":t,Q2=(e,t)=>{for(let u in e){if(!hi(e,u))continue;let i=e[u];if(!i)continue;let o=t[u];if(!(o!==void 0&&!(Array.isArray(o)&&o.length===0))&&"default"in i){let s=i.default;typeof s=="function"&&(s=s()),t[u]=s}}},If=(e,t)=>{if(!t)throw new Error(`Missing type on flag "${e}"`);return typeof t=="function"?t:Array.isArray(t)?t[0]:If(e,t.type)},J2=/^-[\da-z]+/i,V2=/^--[\w-]{2,}/,Jo="--";function K2(e,t=process.argv.slice(2)){let u=H2(e),i={flags:q2(e),unknownFlags:{},_:Object.assign([],{[Jo]:[]})},o,s=(c,d,h)=>{let m=If(c,d);h=Qo(m,h),h!==void 0&&!Number.isNaN(h)?Array.isArray(i.flags[c])?i.flags[c].push(m(h)):i.flags[c]=m(h):o=E=>{Array.isArray(i.flags[c])?i.flags[c].push(m(Qo(m,E||""))):i.flags[c]=m(Qo(m,E||"")),o=void 0}},l=(c,d)=>{c in i.unknownFlags||(i.unknownFlags[c]=[]),d!==void 0?i.unknownFlags[c].push(d):o=(h=!0)=>{i.unknownFlags[c].push(h),o=void 0}};for(let c=0;c<t.length;c+=1){let d=t[c];if(d===Jo){let m=t.slice(c+1);i._[Jo]=m,i._.push(...m);break}let h=J2.test(d);if(V2.test(d)||h){o&&o();let m=z2(d),{flagValue:E}=m,{flagName:g}=m;if(h){for(let y=0;y<g.length;y+=1){let v=g[y],k=u.get(v),R=y===g.length-1;k?s(k.name,k.schema,R?E:!0):l(v,R?E:!0)}continue}let C=e[g];if(!C){let y=_f(g);C=e[y],C&&(g=y)}if(!C){l(g,E);continue}s(g,C,E)}else o?o(d):i._.push(d)}return o&&o(),Q2(e,i.flags),i}var Y2=Object.create,pi=Object.defineProperty,X2=Object.defineProperties,Z2=Object.getOwnPropertyDescriptor,eE=Object.getOwnPropertyDescriptors,tE=Object.getOwnPropertyNames,Rf=Object.getOwnPropertySymbols,nE=Object.getPrototypeOf,Pf=Object.prototype.hasOwnProperty,rE=Object.prototype.propertyIsEnumerable,Nf=(e,t,u)=>t in e?pi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:u}):e[t]=u,gi=(e,t)=>{for(var u in t||(t={}))Pf.call(t,u)&&Nf(e,u,t[u]);if(Rf)for(var u of Rf(t))rE.call(t,u)&&Nf(e,u,t[u]);return e},Vo=(e,t)=>X2(e,eE(t)),uE=e=>pi(e,"__esModule",{value:!0}),iE=(e,t)=>()=>(e&&(t=e(e=0)),t),aE=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),oE=(e,t,u,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of tE(t))!Pf.call(e,o)&&(u||o!=="default")&&pi(e,o,{get:()=>t[o],enumerable:!(i=Z2(t,o))||i.enumerable});return e},sE=(e,t)=>oE(uE(pi(e!=null?Y2(nE(e)):{},"default",!t&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),Me=iE(()=>{}),lE=aE((e,t)=>{Me(),t.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});Me(),Me(),Me();var cE=e=>{var t,u,i;let o=(t=process.stdout.columns)!=null?t:Number.POSITIVE_INFINITY;return typeof e=="function"&&(e=e(o)),e||(e={}),Array.isArray(e)?{columns:e,stdoutColumns:o}:{columns:(u=e.columns)!=null?u:[],stdoutColumns:(i=e.stdoutColumns)!=null?i:o}};Me(),Me(),Me(),Me(),Me();function DE({onlyFirst:e=!1}={}){let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}function Tf(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(DE(),"")}Me();function fE(e){return Number.isInteger(e)?e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141):!1}var dE=sE(lE(),1);function mn(e){if(typeof e!="string"||e.length===0||(e=Tf(e),e.length===0))return 0;e=e.replace((0,dE.default)()," ");let t=0;for(let u=0;u<e.length;u++){let i=e.codePointAt(u);i<=31||i>=127&&i<=159||i>=768&&i<=879||(i>65535&&u++,t+=fE(i)?2:1)}return t}var $f=e=>Math.max(...e.split(`
|
|
77
|
+
`).map(mn)),hE=e=>{let t=[];for(let u of e){let{length:i}=u,o=i-t.length;for(let s=0;s<o;s+=1)t.push(0);for(let s=0;s<i;s+=1){let l=$f(u[s]);l>t[s]&&(t[s]=l)}}return t};Me();var Lf=/^\d+%$/,jf={width:"auto",align:"left",contentWidth:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,horizontalPadding:0,paddingLeftString:"",paddingRightString:""},pE=(e,t)=>{var u;let i=[];for(let o=0;o<e.length;o+=1){let s=(u=t[o])!=null?u:"auto";if(typeof s=="number"||s==="auto"||s==="content-width"||typeof s=="string"&&Lf.test(s)){i.push(Vo(gi({},jf),{width:s,contentWidth:e[o]}));continue}if(s&&typeof s=="object"){let l=Vo(gi(gi({},jf),s),{contentWidth:e[o]});l.horizontalPadding=l.paddingLeft+l.paddingRight,i.push(l);continue}throw new Error(`Invalid column width: ${JSON.stringify(s)}`)}return i};function gE(e,t){for(let u of e){let{width:i}=u;if(i==="content-width"&&(u.width=u.contentWidth),i==="auto"){let d=Math.min(20,u.contentWidth);u.width=d,u.autoOverflow=u.contentWidth-d}if(typeof i=="string"&&Lf.test(i)){let d=Number.parseFloat(i.slice(0,-1))/100;u.width=Math.floor(t*d)-(u.paddingLeft+u.paddingRight)}let{horizontalPadding:o}=u,s=1,l=s+o;if(l>=t){let d=l-t,h=Math.ceil(u.paddingLeft/o*d),m=d-h;u.paddingLeft-=h,u.paddingRight-=m,u.horizontalPadding=u.paddingLeft+u.paddingRight}u.paddingLeftString=u.paddingLeft?" ".repeat(u.paddingLeft):"",u.paddingRightString=u.paddingRight?" ".repeat(u.paddingRight):"";let c=t-u.horizontalPadding;u.width=Math.max(Math.min(u.width,c),s)}}var Mf=()=>Object.assign([],{columns:0});function mE(e,t){let u=[Mf()],[i]=u;for(let o of e){let s=o.width+o.horizontalPadding;i.columns+s>t&&(i=Mf(),u.push(i)),i.push(o),i.columns+=s}for(let o of u){let s=o.reduce((g,C)=>g+C.width+C.horizontalPadding,0),l=t-s;if(l===0)continue;let c=o.filter(g=>"autoOverflow"in g),d=c.filter(g=>g.autoOverflow>0),h=d.reduce((g,C)=>g+C.autoOverflow,0),m=Math.min(h,l);for(let g of d){let C=Math.floor(g.autoOverflow/h*m);g.width+=C,l-=C}let E=Math.floor(l/c.length);for(let g=0;g<c.length;g+=1){let C=c[g];g===c.length-1?C.width+=l:C.width+=E,l-=E}}return u}function EE(e,t,u){let i=pE(u,t);return gE(i,e),mE(i,e)}Me(),Me(),Me();var Ko=10,zf=(e=0)=>t=>`\x1B[${t+e}m`,Uf=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,Gf=(e=0)=>(t,u,i)=>`\x1B[${38+e};2;${t};${u};${i}m`;function CE(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(let[u,i]of Object.entries(t)){for(let[o,s]of Object.entries(i))t[o]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},i[o]=t[o],e.set(s[0],s[1]);Object.defineProperty(t,u,{value:i,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",t.color.ansi=zf(),t.color.ansi256=Uf(),t.color.ansi16m=Gf(),t.bgColor.ansi=zf(Ko),t.bgColor.ansi256=Uf(Ko),t.bgColor.ansi16m=Gf(Ko),Object.defineProperties(t,{rgbToAnsi256:{value:(u,i,o)=>u===i&&i===o?u<8?16:u>248?231:Math.round((u-8)/247*24)+232:16+36*Math.round(u/255*5)+6*Math.round(i/255*5)+Math.round(o/255*5),enumerable:!1},hexToRgb:{value:u=>{let i=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(u.toString(16));if(!i)return[0,0,0];let{colorString:o}=i.groups;o.length===3&&(o=o.split("").map(l=>l+l).join(""));let s=Number.parseInt(o,16);return[s>>16&255,s>>8&255,s&255]},enumerable:!1},hexToAnsi256:{value:u=>t.rgbToAnsi256(...t.hexToRgb(u)),enumerable:!1},ansi256ToAnsi:{value:u=>{if(u<8)return 30+u;if(u<16)return 90+(u-8);let i,o,s;if(u>=232)i=((u-232)*10+8)/255,o=i,s=i;else{u-=16;let d=u%36;i=Math.floor(u/36)/5,o=Math.floor(d/6)/5,s=d%6/5}let l=Math.max(i,o,s)*2;if(l===0)return 30;let c=30+(Math.round(s)<<2|Math.round(o)<<1|Math.round(i));return l===2&&(c+=60),c},enumerable:!1},rgbToAnsi:{value:(u,i,o)=>t.ansi256ToAnsi(t.rgbToAnsi256(u,i,o)),enumerable:!1},hexToAnsi:{value:u=>t.ansi256ToAnsi(t.hexToAnsi256(u)),enumerable:!1}}),t}var bE=CE(),yE=bE,mi=new Set(["\x1B","\x9B"]),FE=39,Yo="\x07",Hf="[",vE="]",Wf="m",Xo=`${vE}8;;`,qf=e=>`${mi.values().next().value}${Hf}${e}${Wf}`,Qf=e=>`${mi.values().next().value}${Xo}${e}${Yo}`,wE=e=>e.split(" ").map(t=>mn(t)),Zo=(e,t,u)=>{let i=[...t],o=!1,s=!1,l=mn(Tf(e[e.length-1]));for(let[c,d]of i.entries()){let h=mn(d);if(l+h<=u?e[e.length-1]+=d:(e.push(d),l=0),mi.has(d)&&(o=!0,s=i.slice(c+1).join("").startsWith(Xo)),o){s?d===Yo&&(o=!1,s=!1):d===Wf&&(o=!1);continue}l+=h,l===u&&c<i.length-1&&(e.push(""),l=0)}!l&&e[e.length-1].length>0&&e.length>1&&(e[e.length-2]+=e.pop())},SE=e=>{let t=e.split(" "),u=t.length;for(;u>0&&!(mn(t[u-1])>0);)u--;return u===t.length?e:t.slice(0,u).join(" ")+t.slice(u).join("")},BE=(e,t,u={})=>{if(u.trim!==!1&&e.trim()==="")return"";let i="",o,s,l=wE(e),c=[""];for(let[h,m]of e.split(" ").entries()){u.trim!==!1&&(c[c.length-1]=c[c.length-1].trimStart());let E=mn(c[c.length-1]);if(h!==0&&(E>=t&&(u.wordWrap===!1||u.trim===!1)&&(c.push(""),E=0),(E>0||u.trim===!1)&&(c[c.length-1]+=" ",E++)),u.hard&&l[h]>t){let g=t-E,C=1+Math.floor((l[h]-g-1)/t);Math.floor((l[h]-1)/t)<C&&c.push(""),Zo(c,m,t);continue}if(E+l[h]>t&&E>0&&l[h]>0){if(u.wordWrap===!1&&E<t){Zo(c,m,t);continue}c.push("")}if(E+l[h]>t&&u.wordWrap===!1){Zo(c,m,t);continue}c[c.length-1]+=m}u.trim!==!1&&(c=c.map(h=>SE(h)));let d=[...c.join(`
|
|
78
|
+
`)];for(let[h,m]of d.entries()){if(i+=m,mi.has(m)){let{groups:g}=new RegExp(`(?:\\${Hf}(?<code>\\d+)m|\\${Xo}(?<uri>.*)${Yo})`).exec(d.slice(h).join(""))||{groups:{}};if(g.code!==void 0){let C=Number.parseFloat(g.code);o=C===FE?void 0:C}else g.uri!==void 0&&(s=g.uri.length===0?void 0:g.uri)}let E=yE.codes.get(Number(o));d[h+1]===`
|
|
79
|
+
`?(s&&(i+=Qf("")),o&&E&&(i+=qf(E))):m===`
|
|
80
|
+
`&&(o&&E&&(i+=qf(o)),s&&(i+=Qf(s)))}return i};function AE(e,t,u){return String(e).normalize().replace(/\r\n/g,`
|
|
81
|
+
`).split(`
|
|
82
|
+
`).map(i=>BE(i,t,u)).join(`
|
|
83
|
+
`)}var Jf=e=>Array.from({length:e}).fill("");function xE(e,t){let u=[],i=0;for(let o of e){let s=0,l=o.map(d=>{var h;let m=(h=t[i])!=null?h:"";i+=1,d.preprocess&&(m=d.preprocess(m)),$f(m)>d.width&&(m=AE(m,d.width,{hard:!0}));let E=m.split(`
|
|
84
|
+
`);if(d.postprocess){let{postprocess:g}=d;E=E.map((C,y)=>g.call(d,C,y))}return d.paddingTop&&E.unshift(...Jf(d.paddingTop)),d.paddingBottom&&E.push(...Jf(d.paddingBottom)),E.length>s&&(s=E.length),Vo(gi({},d),{lines:E})}),c=[];for(let d=0;d<s;d+=1){let h=l.map(m=>{var E;let g=(E=m.lines[d])!=null?E:"",C=Number.isFinite(m.width)?" ".repeat(m.width-mn(g)):"",y=m.paddingLeftString;return m.align==="right"&&(y+=C),y+=g,m.align==="left"&&(y+=C),y+m.paddingRightString}).join("");c.push(h)}u.push(c.join(`
|
|
85
|
+
`))}return u.join(`
|
|
86
|
+
`)}function kE(e,t){if(!e||e.length===0)return"";let u=hE(e),i=u.length;if(i===0)return"";let{stdoutColumns:o,columns:s}=cE(t);if(s.length>i)throw new Error(`${s.length} columns defined, but only ${i} columns found`);let l=EE(o,s,u);return e.map(c=>xE(l,c)).join(`
|
|
87
|
+
`)}Me();var _E=["<",">","=",">=","<="];function OE(e){if(!_E.includes(e))throw new TypeError(`Invalid breakpoint operator: ${e}`)}function IE(e){let t=Object.keys(e).map(u=>{let[i,o]=u.split(" ");OE(i);let s=Number.parseInt(o,10);if(Number.isNaN(s))throw new TypeError(`Invalid breakpoint value: ${o}`);let l=e[u];return{operator:i,breakpoint:s,value:l}}).sort((u,i)=>i.breakpoint-u.breakpoint);return u=>{var i;return(i=t.find(({operator:o,breakpoint:s})=>o==="="&&u===s||o===">"&&u>s||o==="<"&&u<s||o===">="&&u>=s||o==="<="&&u<=s))==null?void 0:i.value}}const RE=e=>e.replace(/[-_ ](\w)/g,(t,u)=>u.toUpperCase()),PE=e=>e.replace(/\B([A-Z])/g,"-$1").toLowerCase(),NE={"> 80":[{width:"content-width",paddingLeft:2,paddingRight:8},{width:"auto"}],"> 40":[{width:"auto",paddingLeft:2,paddingRight:8,preprocess:e=>e.trim()},{width:"100%",paddingLeft:2,paddingBottom:1}],"> 0":{stdoutColumns:1e3,columns:[{width:"content-width",paddingLeft:2,paddingRight:8},{width:"content-width"}]}};function TE(e){let t=!1;const u=Object.keys(e).sort((i,o)=>i.localeCompare(o)).map(i=>{const o=e[i],s="alias"in o;return s&&(t=!0),{name:i,flag:o,flagFormatted:`--${PE(i)}`,aliasesEnabled:t,aliasFormatted:s?`-${o.alias}`:void 0}}).map(i=>(i.aliasesEnabled=t,[{type:"flagName",data:i},{type:"flagDescription",data:i}]));return{type:"table",data:{tableData:u,tableBreakpoints:NE}}}const Vf=e=>{var t;return!e||((t=e.version)!=null?t:e.help?e.help.version:void 0)},Kf=e=>{var t;const u="parent"in e&&((t=e.parent)==null?void 0:t.name);return(u?`${u} `:"")+e.name};function $E(e){var t;const u=[];e.name&&u.push(Kf(e));const i=(t=Vf(e))!=null?t:"parent"in e&&Vf(e.parent);if(i&&u.push(`v${i}`),u.length!==0)return{id:"name",type:"text",data:`${u.join(" ")}
|
|
88
|
+
`}}function LE(e){const{help:t}=e;if(!(!t||!t.description))return{id:"description",type:"text",data:`${t.description}
|
|
89
|
+
`}}function jE(e){var t;const u=e.help||{};if("usage"in u)return u.usage?{id:"usage",type:"section",data:{title:"Usage:",body:Array.isArray(u.usage)?u.usage.join(`
|
|
90
|
+
`):u.usage}}:void 0;if(e.name){const i=[],o=[Kf(e)];if(e.flags&&Object.keys(e.flags).length>0&&o.push("[flags...]"),e.parameters&&e.parameters.length>0){const{parameters:s}=e,l=s.indexOf("--"),c=l>-1&&s.slice(l+1).some(d=>d.startsWith("<"));o.push(s.map(d=>d!=="--"?d:c?"--":"[--]").join(" "))}if(o.length>1&&i.push(o.join(" ")),"commands"in e&&((t=e.commands)==null?void 0:t.length)&&i.push(`${e.name} <command>`),i.length>0)return{id:"usage",type:"section",data:{title:"Usage:",body:i.join(`
|
|
91
|
+
`)}}}}function ME(e){var t;if(!("commands"in e)||!((t=e.commands)!=null&&t.length))return;const u=e.commands.map(i=>[i.options.name,i.options.help?i.options.help.description:""]);return{id:"commands",type:"section",data:{title:"Commands:",body:{type:"table",data:{tableData:u,tableOptions:[{width:"content-width",paddingLeft:2,paddingRight:8}]}},indentBody:0}}}function zE(e){if(!(!e.flags||Object.keys(e.flags).length===0))return{id:"flags",type:"section",data:{title:"Flags:",body:TE(e.flags),indentBody:0}}}function UE(e){const{help:t}=e;if(!t||!t.examples||t.examples.length===0)return;let{examples:u}=t;if(Array.isArray(u)&&(u=u.join(`
|
|
92
|
+
`)),u)return{id:"examples",type:"section",data:{title:"Examples:",body:u}}}function GE(e){if(!("alias"in e)||!e.alias)return;const{alias:t}=e,u=Array.isArray(t)?t.join(", "):t;return{id:"aliases",type:"section",data:{title:"Aliases:",body:u}}}const HE=e=>[$E,LE,jE,ME,zE,UE,GE].map(t=>t(e)).filter(t=>Boolean(t)),WE=rc.default.WriteStream.prototype.hasColors();class qE{text(t){return t}bold(t){return WE?`\x1B[1m${t}\x1B[22m`:t.toLocaleUpperCase()}indentText({text:t,spaces:u}){return t.replace(/^/gm," ".repeat(u))}heading(t){return this.bold(t)}section({title:t,body:u,indentBody:i=2}){return`${(t?`${this.heading(t)}
|
|
93
|
+
`:"")+(u?this.indentText({text:this.render(u),spaces:i}):"")}
|
|
94
|
+
`}table({tableData:t,tableOptions:u,tableBreakpoints:i}){return kE(t.map(o=>o.map(s=>this.render(s))),i?IE(i):u)}flagParameter(t){return t===Boolean?"":t===String?"<string>":t===Number?"<number>":Array.isArray(t)?this.flagParameter(t[0]):"<value>"}flagOperator(t){return" "}flagName(t){const{flag:u,flagFormatted:i,aliasesEnabled:o,aliasFormatted:s}=t;let l="";if(s?l+=`${s}, `:o&&(l+=" "),l+=i,"placeholder"in u&&typeof u.placeholder=="string")l+=`${this.flagOperator(t)}${u.placeholder}`;else{const c=this.flagParameter("type"in u?u.type:u);c&&(l+=`${this.flagOperator(t)}${c}`)}return l}flagDefault(t){return JSON.stringify(t)}flagDescription({flag:t}){var u;let i="description"in t&&(u=t.description)!=null?u:"";if("default"in t){let{default:o}=t;typeof o=="function"&&(o=o()),o&&(i+=` (default: ${this.flagDefault(o)})`)}return i}render(t){if(typeof t=="string")return t;if(Array.isArray(t))return t.map(u=>this.render(u)).join(`
|
|
95
|
+
`);if("type"in t&&this[t.type]){const u=this[t.type];if(typeof u=="function")return u.call(this,t.data)}throw new Error(`Invalid node type: ${JSON.stringify(t)}`)}}const Yf=/^[\w.-]+$/;var QE=Object.defineProperty,JE=Object.defineProperties,VE=Object.getOwnPropertyDescriptors,Xf=Object.getOwnPropertySymbols,KE=Object.prototype.hasOwnProperty,YE=Object.prototype.propertyIsEnumerable,Zf=(e,t,u)=>t in e?QE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:u}):e[t]=u,qn=(e,t)=>{for(var u in t||(t={}))KE.call(t,u)&&Zf(e,u,t[u]);if(Xf)for(var u of Xf(t))YE.call(t,u)&&Zf(e,u,t[u]);return e},es=(e,t)=>JE(e,VE(t));const{stringify:yt}=JSON,XE=/[|\\{}()[\]^$+*?.]/;function ts(e){const t=[];let u,i;for(const o of e){if(i)throw new Error(`Invalid parameter: Spread parameter ${yt(i)} must be last`);const s=o[0],l=o[o.length-1];let c;if(s==="<"&&l===">"&&(c=!0,u))throw new Error(`Invalid parameter: Required parameter ${yt(o)} cannot come after optional parameter ${yt(u)}`);if(s==="["&&l==="]"&&(c=!1,u=o),c===void 0)throw new Error(`Invalid parameter: ${yt(o)}. Must be wrapped in <> (required parameter) or [] (optional parameter)`);let d=o.slice(1,-1);const h=d.slice(-3)==="...";h&&(i=o,d=d.slice(0,-3));const m=d.match(XE);if(m)throw new Error(`Invalid parameter: ${yt(o)}. Invalid character found ${yt(m[0])}`);t.push({name:d,required:c,spread:h})}return t}function ns(e,t,u,i){for(let o=0;o<t.length;o+=1){const{name:s,required:l,spread:c}=t[o],d=RE(s);if(d in e)throw new Error(`Invalid parameter: ${yt(s)} is used more than once.`);const h=c?u.slice(o):u[o];if(c&&(o=t.length),l&&(!h||c&&h.length===0))return console.error(`Error: Missing required parameter ${yt(s)}
|
|
96
|
+
`),i(),process.exit(1);e[d]=h}}function ZE(e){return e===void 0||e!==!1}function ed(e,t,u,i){const o=qn({},t.flags),s=t.version;s&&(o.version={type:Boolean,description:"Show version"});const{help:l}=t,c=ZE(l);c&&!("help"in o)&&(o.help={type:Boolean,alias:"h",description:"Show help"});const d=K2(o,i),h=()=>{console.log(t.version)};if(s&&d.flags.version===!0)return h(),process.exit(0);const m=new qE,E=c&&(l==null?void 0:l.render)?l.render:y=>m.render(y),g=y=>{const v=HE(es(qn(qn({},t),y?{help:y}:{}),{flags:o}));console.log(E(v,m))};if(c&&d.flags.help===!0)return g(),process.exit(0);if(t.parameters){let{parameters:y}=t,v=d._;const k=y.indexOf("--"),R=y.slice(k+1),N=Object.create(null);if(k>-1&&R.length>0){y=y.slice(0,k);const z=d._["--"];v=v.slice(0,-z.length||void 0),ns(N,ts(y),v,g),ns(N,ts(R),z,g)}else ns(N,ts(y),v,g);Object.assign(d._,N)}const C=es(qn({},d),{showVersion:h,showHelp:g});return typeof u=="function"&&u(C),qn({command:e},C)}function eC(e,t){const u=new Map;for(const i of t){const o=[i.options.name],{alias:s}=i.options;s&&(Array.isArray(s)?o.push(...s):o.push(s));for(const l of o){if(u.has(l))throw new Error(`Duplicate command name found: ${yt(l)}`);u.set(l,i)}}return u.get(e)}function tC(e,t,u=process.argv.slice(2)){if(!e)throw new Error("Options is required");if("name"in e&&(!e.name||!Yf.test(e.name)))throw new Error(`Invalid script name: ${yt(e.name)}`);const i=u[0];if(e.commands&&Yf.test(i)){const o=eC(i,e.commands);if(o)return ed(o.options.name,es(qn({},o.options),{parent:e}),o.callback,u.slice(1))}return ed(void 0,e,t,u)}const{join:td,basename:nd}=Oe.default,nC=e=>e.bin?typeof e.bin=="string"?rC(e):Array.isArray(e.bin)?uC(e):typeof e.bin=="object"?us(e):rs(e):rs(e),rC=e=>e.name?(e.bin={[e.name]:e.bin},us(e)):rs(e),uC=e=>(e.bin=e.bin.reduce((t,u)=>(t[nd(u)]=u,t),{}),us(e)),rs=e=>(delete e.bin,e),us=e=>{const t=e.bin,u={};let i=!1;return Object.keys(t).forEach(o=>{const s=td("/",nd(o.replace(/\\|:/g,"/"))).substr(1);if(typeof t[o]!="string"||!s)return;const l=td("/",t[o]).replace(/\\/g,"/").substr(1);!l||(u[s]=l,i=!0)}),i?e.bin=u:delete e.bin,e};var rd=nC;const Qn=rt.default,Lr=Oe.default,iC=wr.default.EventEmitter,aC=rd;class Hr extends iC{constructor(t){if(t=t||{},super(t),this.path=Lr.resolve(t.path||process.cwd()),this.parent=t.parent||null,this.parent){if(this.result=this.parent.result,!this.parent.parent){const u=Lr.basename(this.path),i=Lr.basename(Lr.dirname(this.path));this.result.add(/^@/.test(i)?i+"/"+u:u)}this.root=this.parent.root,this.packageJsonCache=this.parent.packageJsonCache}else this.result=new Set,this.root=this.path,this.packageJsonCache=t.packageJsonCache||new Map;this.seen=new Set,this.didDone=!1,this.children=0,this.node_modules=[],this.package=null,this.bundle=null}addListener(t,u){return this.on(t,u)}on(t,u){const i=super.on(t,u);return t==="done"&&this.didDone&&this.emit("done",this.result),i}done(){if(!this.didDone)if(this.didDone=!0,this.parent)this.emit("done");else{const t=Array.from(this.result);this.result=t,this.emit("done",t)}}start(){const t=Lr.resolve(this.path,"package.json");return this.packageJsonCache.has(t)?this.onPackage(this.packageJsonCache.get(t)):this.readPackageJson(t),this}readPackageJson(t){Qn.readFile(t,(u,i)=>u?this.done():this.onPackageJson(t,i))}onPackageJson(t,u){try{this.package=aC(JSON.parse(u+""))}catch{return this.done()}this.packageJsonCache.set(t,this.package),this.onPackage(this.package)}allDepsBundled(t){return Object.keys(t.dependencies||{}).concat(Object.keys(t.optionalDependencies||{}))}onPackage(t){const u=this.parent?this.allDepsBundled(t):t.bundleDependencies||t.bundledDependencies||[],i=Array.from(new Set(Array.isArray(u)?u:u===!0?this.allDepsBundled(t):Object.keys(u)));if(!i.length)return this.done();this.bundle=i,this.path+"",this.readModules()}readModules(){oC(this.path+"/node_modules",(t,u)=>t?this.onReaddir([]):this.onReaddir(u))}onReaddir(t){this.node_modules=t,this.bundle.forEach(u=>this.childDep(u)),this.children===0&&this.done()}childDep(t){this.node_modules.indexOf(t)!==-1?this.seen.has(t)||(this.seen.add(t),this.child(t)):this.parent&&this.parent.childDep(t)}child(t){const u=this.path+"/node_modules/"+t;this.children+=1;const i=new Hr({path:u,parent:this});i.on("done",o=>{--this.children===0&&this.done()}),i.start()}}class Bi extends Hr{constructor(t){super(t)}start(){return super.start(),this.done(),this}readPackageJson(t){try{this.onPackageJson(t,Qn.readFileSync(t))}catch{}return this}readModules(){try{this.onReaddir(sC(this.path+"/node_modules"))}catch{this.onReaddir([])}}child(t){new Bi({path:this.path+"/node_modules/"+t,parent:this}).start()}}const oC=(e,t)=>{Qn.readdir(e,(u,i)=>{if(u)t(u);else{const o=i.filter(s=>/^@/.test(s));if(!o.length)t(null,i);else{const s=i.filter(c=>!/^@/.test(c));let l=o.length;o.forEach(c=>{Qn.readdir(e+"/"+c,(d,h)=>{d||!h.length?s.push(c):s.push.apply(s,h.map(m=>c+"/"+m)),--l===0&&t(null,s)})})}}})},sC=e=>{const t=Qn.readdirSync(e),u=t.filter(o=>!/^@/.test(o)),i=t.filter(o=>/^@/.test(o)).map(o=>{try{const s=Qn.readdirSync(e+"/"+o);return s.length?s.map(l=>o+"/"+l):[o]}catch{return[o]}}).reduce((o,s)=>o.concat(s),[]);return u.concat(i)},Ei=(e,t)=>{const u=new Promise((i,o)=>{new Hr(e).on("done",i).on("error",o).start()});return t?u.then(i=>t(null,i),t):u},lC=e=>new Bi(e).start().result;var cC=Ei;Ei.sync=lC,Ei.BundleWalker=Hr,Ei.BundleWalkerSync=Bi;const DC=typeof process=="object"&&process&&process.platform==="win32";var fC=DC?{sep:"\\"}:{sep:"/"},dC=ud;function ud(e,t,u){e instanceof RegExp&&(e=id(e,u)),t instanceof RegExp&&(t=id(t,u));var i=ad(e,t,u);return i&&{start:i[0],end:i[1],pre:u.slice(0,i[0]),body:u.slice(i[0]+e.length,i[1]),post:u.slice(i[1]+t.length)}}function id(e,t){var u=t.match(e);return u?u[0]:null}ud.range=ad;function ad(e,t,u){var i,o,s,l,c,d=u.indexOf(e),h=u.indexOf(t,d+1),m=d;if(d>=0&&h>0){if(e===t)return[d,h];for(i=[],s=u.length;m>=0&&!c;)m==d?(i.push(m),d=u.indexOf(e,m+1)):i.length==1?c=[i.pop(),h]:(o=i.pop(),o<s&&(s=o,l=h),h=u.indexOf(t,m+1)),m=d<h&&d>=0?d:h;i.length&&(c=[s,l])}return c}var od=dC,hC=mC,sd="\0SLASH"+Math.random()+"\0",ld="\0OPEN"+Math.random()+"\0",is="\0CLOSE"+Math.random()+"\0",cd="\0COMMA"+Math.random()+"\0",Dd="\0PERIOD"+Math.random()+"\0";function as(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function pC(e){return e.split("\\\\").join(sd).split("\\{").join(ld).split("\\}").join(is).split("\\,").join(cd).split("\\.").join(Dd)}function gC(e){return e.split(sd).join("\\").split(ld).join("{").split(is).join("}").split(cd).join(",").split(Dd).join(".")}function fd(e){if(!e)return[""];var t=[],u=od("{","}",e);if(!u)return e.split(",");var i=u.pre,o=u.body,s=u.post,l=i.split(",");l[l.length-1]+="{"+o+"}";var c=fd(s);return s.length&&(l[l.length-1]+=c.shift(),l.push.apply(l,c)),t.push.apply(t,l),t}function mC(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),jr(pC(e),!0).map(gC)):[]}function EC(e){return"{"+e+"}"}function CC(e){return/^-?0\d/.test(e)}function bC(e,t){return e<=t}function yC(e,t){return e>=t}function jr(e,t){var u=[],i=od("{","}",e);if(!i)return[e];var o=i.pre,s=i.post.length?jr(i.post,!1):[""];if(/\$$/.test(i.pre))for(var l=0;l<s.length;l++){var c=o+"{"+i.body+"}"+s[l];u.push(c)}else{var d=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),h=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),m=d||h,E=i.body.indexOf(",")>=0;if(!m&&!E)return i.post.match(/,.*\}/)?(e=i.pre+"{"+i.body+is+i.post,jr(e)):[e];var g;if(m)g=i.body.split(/\.\./);else if(g=fd(i.body),g.length===1&&(g=jr(g[0],!1).map(EC),g.length===1))return s.map(function(H){return i.pre+g[0]+H});var C;if(m){var y=as(g[0]),v=as(g[1]),k=Math.max(g[0].length,g[1].length),R=g.length==3?Math.abs(as(g[2])):1,N=bC,z=v<y;z&&(R*=-1,N=yC);var w=g.some(CC);C=[];for(var B=y;N(B,v);B+=R){var x;if(h)x=String.fromCharCode(B),x==="\\"&&(x="");else if(x=String(B),w){var P=k-x.length;if(P>0){var _=new Array(P+1).join("0");B<0?x="-"+_+x.slice(1):x=_+x}}C.push(x)}}else{C=[];for(var T=0;T<g.length;T++)C.push.apply(C,jr(g[T],!1))}for(var T=0;T<C.length;T++)for(var l=0;l<s.length;l++){var c=o+C[T]+s[l];(!t||m||c)&&u.push(c)}}return u}const Ve=Mr=(e,t,u={})=>(Ci(t),!u.nocomment&&t.charAt(0)==="#"?!1:new yi(t,u).match(e));var Mr=Ve;const os=fC;Ve.sep=os.sep;const ht=Symbol("globstar **");Ve.GLOBSTAR=ht;const FC=hC,dd={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},ss="[^/]",ls=ss+"*?",vC="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",wC="(?:(?!(?:\\/|^)\\.).)*?",hd=e=>e.split("").reduce((t,u)=>(t[u]=!0,t),{}),pd=hd("().*{}+?[]^$\\!"),SC=hd("[.("),gd=/\/+/;Ve.filter=(e,t={})=>(u,i,o)=>Ve(u,e,t);const Xt=(e,t={})=>{const u={};return Object.keys(e).forEach(i=>u[i]=e[i]),Object.keys(t).forEach(i=>u[i]=t[i]),u};Ve.defaults=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Ve;const t=Ve,u=(i,o,s)=>t(i,o,Xt(e,s));return u.Minimatch=class extends t.Minimatch{constructor(o,s){super(o,Xt(e,s))}},u.Minimatch.defaults=i=>t.defaults(Xt(e,i)).Minimatch,u.filter=(i,o)=>t.filter(i,Xt(e,o)),u.defaults=i=>t.defaults(Xt(e,i)),u.makeRe=(i,o)=>t.makeRe(i,Xt(e,o)),u.braceExpand=(i,o)=>t.braceExpand(i,Xt(e,o)),u.match=(i,o,s)=>t.match(i,o,Xt(e,s)),u},Ve.braceExpand=(e,t)=>md(e,t);const md=(e,t={})=>(Ci(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:FC(e)),BC=1024*64,Ci=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>BC)throw new TypeError("pattern is too long")},bi=Symbol("subparse");Ve.makeRe=(e,t)=>new yi(e,t||{}).makeRe(),Ve.match=(e,t,u={})=>{const i=new yi(t,u);return e=e.filter(o=>i.match(o)),i.options.nonull&&!e.length&&e.push(t),e};const AC=e=>e.replace(/\\(.)/g,"$1"),xC=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class yi{constructor(t,u){Ci(t),u||(u={}),this.options=u,this.set=[],this.pattern=t,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!u.partial,this.make()}debug(){}make(){const t=this.pattern,u=this.options;if(!u.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate();let i=this.globSet=this.braceExpand();u.debug&&(this.debug=(...o)=>console.error(...o)),this.debug(this.pattern,i),i=this.globParts=i.map(o=>o.split(gd)),this.debug(this.pattern,i),i=i.map((o,s,l)=>o.map(this.parse,this)),this.debug(this.pattern,i),i=i.filter(o=>o.indexOf(!1)===-1),this.debug(this.pattern,i),this.set=i}parseNegate(){if(this.options.nonegate)return;const t=this.pattern;let u=!1,i=0;for(let o=0;o<t.length&&t.charAt(o)==="!";o++)u=!u,i++;i&&(this.pattern=t.substr(i)),this.negate=u}matchOne(t,u,i){var o=this.options;this.debug("matchOne",{this:this,file:t,pattern:u}),this.debug("matchOne",t.length,u.length);for(var s=0,l=0,c=t.length,d=u.length;s<c&&l<d;s++,l++){this.debug("matchOne loop");var h=u[l],m=t[s];if(this.debug(u,h,m),h===!1)return!1;if(h===ht){this.debug("GLOBSTAR",[u,h,m]);var E=s,g=l+1;if(g===d){for(this.debug("** at the end");s<c;s++)if(t[s]==="."||t[s]===".."||!o.dot&&t[s].charAt(0)===".")return!1;return!0}for(;E<c;){var C=t[E];if(this.debug(`
|
|
97
|
+
globstar while`,t,E,u,g,C),this.matchOne(t.slice(E),u.slice(g),i))return this.debug("globstar found match!",E,c,C),!0;if(C==="."||C===".."||!o.dot&&C.charAt(0)==="."){this.debug("dot detected!",t,E,u,g);break}this.debug("globstar swallow a segment, and continue"),E++}return!!(i&&(this.debug(`
|
|
98
|
+
>>> no match, partial?`,t,E,u,g),E===c))}var y;if(typeof h=="string"?(y=m===h,this.debug("string match",h,m,y)):(y=m.match(h),this.debug("pattern match",h,m,y)),!y)return!1}if(s===c&&l===d)return!0;if(s===c)return i;if(l===d)return s===c-1&&t[s]==="";throw new Error("wtf?")}braceExpand(){return md(this.pattern,this.options)}parse(t,u){Ci(t);const i=this.options;if(t==="**")if(i.noglobstar)t="*";else return ht;if(t==="")return"";let o="",s=!!i.nocase,l=!1;const c=[],d=[];let h,m=!1,E=-1,g=-1,C,y,v;const k=t.charAt(0)==="."?"":i.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",R=()=>{if(h){switch(h){case"*":o+=ls,s=!0;break;case"?":o+=ss,s=!0;break;default:o+="\\"+h;break}this.debug("clearStateChar %j %j",h,o),h=!1}};for(let w=0,B;w<t.length&&(B=t.charAt(w));w++){if(this.debug("%s %s %s %j",t,w,o,B),l){if(B==="/")return!1;pd[B]&&(o+="\\"),o+=B,l=!1;continue}switch(B){case"/":return!1;case"\\":R(),l=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",t,w,o,B),m){this.debug(" in class"),B==="!"&&w===g+1&&(B="^"),o+=B;continue}this.debug("call clearStateChar %j",h),R(),h=B,i.noext&&R();continue;case"(":if(m){o+="(";continue}if(!h){o+="\\(";continue}c.push({type:h,start:w-1,reStart:o.length,open:dd[h].open,close:dd[h].close}),o+=h==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",h,o),h=!1;continue;case")":if(m||!c.length){o+="\\)";continue}R(),s=!0,y=c.pop(),o+=y.close,y.type==="!"&&d.push(y),y.reEnd=o.length;continue;case"|":if(m||!c.length){o+="\\|";continue}R(),o+="|";continue;case"[":if(R(),m){o+="\\"+B;continue}m=!0,g=w,E=o.length,o+=B;continue;case"]":if(w===g+1||!m){o+="\\"+B;continue}C=t.substring(g+1,w);try{RegExp("["+C+"]")}catch{v=this.parse(C,bi),o=o.substr(0,E)+"\\["+v[0]+"\\]",s=s||v[1],m=!1;continue}s=!0,m=!1,o+=B;continue;default:R(),pd[B]&&!(B==="^"&&m)&&(o+="\\"),o+=B;break}}for(m&&(C=t.substr(g+1),v=this.parse(C,bi),o=o.substr(0,E)+"\\["+v[0],s=s||v[1]),y=c.pop();y;y=c.pop()){let w;w=o.slice(y.reStart+y.open.length),this.debug("setting tail",o,y),w=w.replace(/((?:\\{2}){0,64})(\\?)\|/g,(x,P,_)=>(_||(_="\\"),P+P+_+"|")),this.debug(`tail=%j
|
|
99
|
+
%s`,w,w,y,o);const B=y.type==="*"?ls:y.type==="?"?ss:"\\"+y.type;s=!0,o=o.slice(0,y.reStart)+B+"\\("+w}R(),l&&(o+="\\\\");const N=SC[o.charAt(0)];for(let w=d.length-1;w>-1;w--){const B=d[w],x=o.slice(0,B.reStart),P=o.slice(B.reStart,B.reEnd-8);let _=o.slice(B.reEnd);const T=o.slice(B.reEnd-8,B.reEnd)+_,H=x.split("(").length-1;let G=_;for(let ee=0;ee<H;ee++)G=G.replace(/\)[+*?]?/,"");_=G;const X=_===""&&u!==bi?"$":"";o=x+P+_+X+T}if(o!==""&&s&&(o="(?=.)"+o),N&&(o=k+o),u===bi)return[o,s];if(!s)return AC(t);const z=i.nocase?"i":"";try{return Object.assign(new RegExp("^"+o+"$",z),{_glob:t,_src:o})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const u=this.options,i=u.noglobstar?ls:u.dot?vC:wC,o=u.nocase?"i":"";let s=t.map(l=>(l=l.map(c=>typeof c=="string"?xC(c):c===ht?ht:c._src).reduce((c,d)=>(c[c.length-1]===ht&&d===ht||c.push(d),c),[]),l.forEach((c,d)=>{c!==ht||l[d-1]===ht||(d===0?l.length>1?l[d+1]="(?:\\/|"+i+"\\/)?"+l[d+1]:l[d]=i:d===l.length-1?l[d-1]+="(?:\\/|"+i+")?":(l[d-1]+="(?:\\/|\\/"+i+"\\/)"+l[d+1],l[d+1]=ht))}),l.filter(c=>c!==ht).join("/"))).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,o)}catch{this.regexp=!1}return this.regexp}match(t,u=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&u)return!0;const i=this.options;os.sep!=="/"&&(t=t.split(os.sep).join("/")),t=t.split(gd),this.debug(this.pattern,"split",t);const o=this.set;this.debug(this.pattern,"set",o);let s;for(let l=t.length-1;l>=0&&(s=t[l],!s);l--);for(let l=0;l<o.length;l++){const c=o[l];let d=t;if(i.matchBase&&c.length===1&&(d=[s]),this.matchOne(d,c,u))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(t){return Ve.defaults(t).Minimatch}}Ve.Minimatch=yi;const Zt=rt.default,cs=Oe.default,kC=wr.default.EventEmitter,_C=Mr.Minimatch;class Wr extends kC{constructor(t){t=t||{},super(t),this.isSymbolicLink=t.isSymbolicLink,this.path=t.path||process.cwd(),this.basename=cs.basename(this.path),this.ignoreFiles=t.ignoreFiles||[".ignore"],this.ignoreRules={},this.parent=t.parent||null,this.includeEmpty=!!t.includeEmpty,this.root=this.parent?this.parent.root:this.path,this.follow=!!t.follow,this.result=this.parent?this.parent.result:new Set,this.entries=null,this.sawError=!1}sort(t,u){return t.localeCompare(u,"en")}emit(t,u){let i=!1;return this.sawError&&t==="error"||(t==="error"?this.sawError=!0:t==="done"&&!this.parent&&(u=Array.from(u).map(o=>/^@/.test(o)?`./${o}`:o).sort(this.sort),this.result=u),t==="error"&&this.parent?i=this.parent.emit("error",u):i=super.emit(t,u)),i}start(){return Zt.readdir(this.path,(t,u)=>t?this.emit("error",t):this.onReaddir(u)),this}isIgnoreFile(t){return t!=="."&&t!==".."&&this.ignoreFiles.indexOf(t)!==-1}onReaddir(t){this.entries=t,t.length===0?(this.includeEmpty&&this.result.add(this.path.slice(this.root.length+1)),this.emit("done",this.result)):this.entries.some(i=>this.isIgnoreFile(i))?this.addIgnoreFiles():this.filterEntries()}addIgnoreFiles(){const t=this.entries.filter(o=>this.isIgnoreFile(o));let u=t.length;const i=o=>{--u===0&&this.filterEntries()};t.forEach(o=>this.addIgnoreFile(o,i))}addIgnoreFile(t,u){const i=cs.resolve(this.path,t);Zt.readFile(i,"utf8",(o,s)=>o?this.emit("error",o):this.onReadIgnoreFile(t,s,u))}onReadIgnoreFile(t,u,i){const o={matchBase:!0,dot:!0,flipNegate:!0,nocase:!0},s=u.split(/\r?\n/).filter(l=>!/^#|^$/.test(l.trim())).map(l=>new _C(l.trim(),o));this.ignoreRules[t]=s,i()}filterEntries(){const t=this.entries.map(i=>{const o=this.filterEntry(i),s=this.filterEntry(i,!0);return o||s?[i,o,s]:!1}).filter(i=>i);let u=t.length;if(u===0)this.emit("done",this.result);else{const i=o=>{--u===0&&this.emit("done",this.result)};t.forEach(o=>{const s=o[0],l=o[1],c=o[2];this.stat({entry:s,file:l,dir:c},i)})}}onstat({st:t,entry:u,file:i,dir:o,isSymbolicLink:s},l){const c=this.path+"/"+u;t.isDirectory()?o?this.walker(u,{isSymbolicLink:s},l):l():(i&&this.result.add(c.slice(this.root.length+1)),l())}stat({entry:t,file:u,dir:i},o){const s=this.path+"/"+t;Zt.lstat(s,(l,c)=>{if(l)this.emit("error",l);else{const d=c.isSymbolicLink();this.follow&&d?Zt.stat(s,(h,m)=>{h?this.emit("error",h):this.onstat({st:m,entry:t,file:u,dir:i,isSymbolicLink:d},o)}):this.onstat({st:c,entry:t,file:u,dir:i,isSymbolicLink:d},o)}})}walkerOpt(t,u){return{path:this.path+"/"+t,parent:this,ignoreFiles:this.ignoreFiles,follow:this.follow,includeEmpty:this.includeEmpty,...u}}walker(t,u,i){new Wr(this.walkerOpt(t,u)).on("done",i).start()}filterEntry(t,u){let i=!0;if(this.parent&&this.parent.filterEntry){var o=this.basename+"/"+t;i=this.parent.filterEntry(o,u)}return this.ignoreFiles.forEach(s=>{this.ignoreRules[s]&&this.ignoreRules[s].forEach(l=>{l.negate!==i&&(l.match("/"+t)||l.match(t)||!!u&&(l.match("/"+t+"/")||l.match(t+"/"))||!!u&&l.negate&&(l.match("/"+t,!0)||l.match(t,!0)))&&(i=l.negate)})}),i}}class Ai extends Wr{start(){return this.onReaddir(Zt.readdirSync(this.path)),this}addIgnoreFile(t,u){const i=cs.resolve(this.path,t);this.onReadIgnoreFile(t,Zt.readFileSync(i,"utf8"),u)}stat({entry:t,file:u,dir:i},o){const s=this.path+"/"+t;let l=Zt.lstatSync(s);const c=l.isSymbolicLink();this.follow&&c&&(l=Zt.statSync(s)),this.onstat({st:l,entry:t,file:u,dir:i,isSymbolicLink:c},o)}walker(t,u,i){new Ai(this.walkerOpt(t,u)).start(),i()}}const Fi=(e,t)=>{const u=new Promise((i,o)=>{new Wr(e).on("done",i).on("error",o).start()});return t?u.then(i=>t(null,i),t):u},OC=e=>new Ai(e).start().result;var IC=Fi;Fi.sync=OC,Fi.Walker=Wr,Fi.WalkerSync=Ai;var Ds={},En=Oe.default,en=process.platform==="win32",tn=rt.default,RC=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function PC(){var e;if(RC){var t=new Error;e=u}else e=i;return e;function u(o){o&&(t.message=o.message,o=t,i(o))}function i(o){if(o){if(process.throwDeprecation)throw o;if(!process.noDeprecation){var s="fs: missing callback "+(o.stack||o.message);process.traceDeprecation?console.trace(s):console.error(s)}}}}function NC(e){return typeof e=="function"?e:PC()}if(En.normalize,en)var Cn=/(.*?)(?:[\/\\]+|$)/g;else var Cn=/(.*?)(?:[\/]+|$)/g;if(en)var Es=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else var Es=/^[\/]*/;Ds.realpathSync=function(t,u){if(t=En.resolve(t),u&&Object.prototype.hasOwnProperty.call(u,t))return u[t];var i=t,o={},s={},l,c,d,h;m();function m(){var k=Es.exec(t);l=k[0].length,c=k[0],d=k[0],h="",en&&!s[d]&&(tn.lstatSync(d),s[d]=!0)}for(;l<t.length;){Cn.lastIndex=l;var E=Cn.exec(t);if(h=c,c+=E[0],d=h+E[1],l=Cn.lastIndex,!(s[d]||u&&u[d]===d)){var g;if(u&&Object.prototype.hasOwnProperty.call(u,d))g=u[d];else{var C=tn.lstatSync(d);if(!C.isSymbolicLink()){s[d]=!0,u&&(u[d]=d);continue}var y=null;if(!en){var v=C.dev.toString(32)+":"+C.ino.toString(32);o.hasOwnProperty(v)&&(y=o[v])}y===null&&(tn.statSync(d),y=tn.readlinkSync(d)),g=En.resolve(h,y),u&&(u[d]=g),en||(o[v]=y)}t=En.resolve(g,t.slice(l)),m()}}return u&&(u[i]=t),t},Ds.realpath=function(t,u,i){if(typeof i!="function"&&(i=NC(u),u=null),t=En.resolve(t),u&&Object.prototype.hasOwnProperty.call(u,t))return process.nextTick(i.bind(null,null,u[t]));var o=t,s={},l={},c,d,h,m;E();function E(){var k=Es.exec(t);c=k[0].length,d=k[0],h=k[0],m="",en&&!l[h]?tn.lstat(h,function(R){if(R)return i(R);l[h]=!0,g()}):process.nextTick(g)}function g(){if(c>=t.length)return u&&(u[o]=t),i(null,t);Cn.lastIndex=c;var k=Cn.exec(t);return m=d,d+=k[0],h=m+k[1],c=Cn.lastIndex,l[h]||u&&u[h]===h?process.nextTick(g):u&&Object.prototype.hasOwnProperty.call(u,h)?v(u[h]):tn.lstat(h,C)}function C(k,R){if(k)return i(k);if(!R.isSymbolicLink())return l[h]=!0,u&&(u[h]=h),process.nextTick(g);if(!en){var N=R.dev.toString(32)+":"+R.ino.toString(32);if(s.hasOwnProperty(N))return y(null,s[N],h)}tn.stat(h,function(z){if(z)return i(z);tn.readlink(h,function(w,B){en||(s[N]=B),y(w,B)})})}function y(k,R,N){if(k)return i(k);var z=En.resolve(m,R);u&&(u[N]=z),v(z)}function v(k){t=En.resolve(k,t.slice(c)),E()}};var Ed=nn;nn.realpath=nn,nn.sync=hs,nn.realpathSync=hs,nn.monkeypatch=$C,nn.unmonkeypatch=LC;var Jn=rt.default,fs=Jn.realpath,ds=Jn.realpathSync,TC=process.version,Cd=/^v[0-5]\./.test(TC),bd=Ds;function yd(e){return e&&e.syscall==="realpath"&&(e.code==="ELOOP"||e.code==="ENOMEM"||e.code==="ENAMETOOLONG")}function nn(e,t,u){if(Cd)return fs(e,t,u);typeof t=="function"&&(u=t,t=null),fs(e,t,function(i,o){yd(i)?bd.realpath(e,t,u):u(i,o)})}function hs(e,t){if(Cd)return ds(e,t);try{return ds(e,t)}catch(u){if(yd(u))return bd.realpathSync(e,t);throw u}}function $C(){Jn.realpath=nn,Jn.realpathSync=hs}function LC(){Jn.realpath=fs,Jn.realpathSync=ds}var jC=require,Fd={exports:{}},vi={exports:{}},vd;function MC(){return vd||(vd=1,typeof Object.create=="function"?vi.exports=function(t,u){u&&(t.super_=u,t.prototype=Object.create(u.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:vi.exports=function(t,u){if(u){t.super_=u;var i=function(){};i.prototype=u.prototype,t.prototype=new i,t.prototype.constructor=t}}),vi.exports}(function(e){try{var t=jC("util");if(typeof t.inherits!="function")throw"";e.exports=t.inherits}catch{e.exports=MC()}})(Fd);var Vn={exports:{}};function wd(e){return e.charAt(0)==="/"}function Sd(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,u=t.exec(e),i=u[1]||"",o=Boolean(i&&i.charAt(1)!==":");return Boolean(u[2]||o)}Vn.exports=process.platform==="win32"?Sd:wd,Vn.exports.posix=wd,Vn.exports.win32=Sd;var Pt={};Pt.setopts=qC,Pt.ownProp=Bd,Pt.makeAbs=zr,Pt.finish=QC,Pt.mark=JC,Pt.isIgnored=xd,Pt.childrenIgnored=VC;function Bd(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var zC=rt.default,Kn=Oe.default,UC=Mr,Ad=Vn.exports,ps=UC.Minimatch;function GC(e,t){return e.localeCompare(t,"en")}function HC(e,t){e.ignore=t.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]),e.ignore.length&&(e.ignore=e.ignore.map(WC))}function WC(e){var t=null;if(e.slice(-3)==="/**"){var u=e.replace(/(\/\*\*)+$/,"");t=new ps(u,{dot:!0})}return{matcher:new ps(e,{dot:!0}),gmatcher:t}}function qC(e,t,u){if(u||(u={}),u.matchBase&&t.indexOf("/")===-1){if(u.noglobstar)throw new Error("base matching requires globstar");t="**/"+t}e.silent=!!u.silent,e.pattern=t,e.strict=u.strict!==!1,e.realpath=!!u.realpath,e.realpathCache=u.realpathCache||Object.create(null),e.follow=!!u.follow,e.dot=!!u.dot,e.mark=!!u.mark,e.nodir=!!u.nodir,e.nodir&&(e.mark=!0),e.sync=!!u.sync,e.nounique=!!u.nounique,e.nonull=!!u.nonull,e.nosort=!!u.nosort,e.nocase=!!u.nocase,e.stat=!!u.stat,e.noprocess=!!u.noprocess,e.absolute=!!u.absolute,e.fs=u.fs||zC,e.maxLength=u.maxLength||1/0,e.cache=u.cache||Object.create(null),e.statCache=u.statCache||Object.create(null),e.symlinks=u.symlinks||Object.create(null),HC(e,u),e.changedCwd=!1;var i=process.cwd();Bd(u,"cwd")?(e.cwd=Kn.resolve(u.cwd),e.changedCwd=e.cwd!==i):e.cwd=i,e.root=u.root||Kn.resolve(e.cwd,"/"),e.root=Kn.resolve(e.root),process.platform==="win32"&&(e.root=e.root.replace(/\\/g,"/")),e.cwdAbs=Ad(e.cwd)?e.cwd:zr(e,e.cwd),process.platform==="win32"&&(e.cwdAbs=e.cwdAbs.replace(/\\/g,"/")),e.nomount=!!u.nomount,u.nonegate=!0,u.nocomment=!0,u.allowWindowsEscape=!0,e.minimatch=new ps(t,u),e.options=e.minimatch.options}function QC(e){for(var t=e.nounique,u=t?[]:Object.create(null),i=0,o=e.matches.length;i<o;i++){var s=e.matches[i];if(!s||Object.keys(s).length===0){if(e.nonull){var l=e.minimatch.globSet[i];t?u.push(l):u[l]=!0}}else{var c=Object.keys(s);t?u.push.apply(u,c):c.forEach(function(d){u[d]=!0})}}if(t||(u=Object.keys(u)),e.nosort||(u=u.sort(GC)),e.mark){for(var i=0;i<u.length;i++)u[i]=e._mark(u[i]);e.nodir&&(u=u.filter(function(d){var h=!/\/$/.test(d),m=e.cache[d]||e.cache[zr(e,d)];return h&&m&&(h=m!=="DIR"&&!Array.isArray(m)),h}))}e.ignore.length&&(u=u.filter(function(d){return!xd(e,d)})),e.found=u}function JC(e,t){var u=zr(e,t),i=e.cache[u],o=t;if(i){var s=i==="DIR"||Array.isArray(i),l=t.slice(-1)==="/";if(s&&!l?o+="/":!s&&l&&(o=o.slice(0,-1)),o!==t){var c=zr(e,o);e.statCache[c]=e.statCache[u],e.cache[c]=e.cache[u]}}return o}function zr(e,t){var u=t;return t.charAt(0)==="/"?u=Kn.join(e.root,t):Ad(t)||t===""?u=t:e.changedCwd?u=Kn.resolve(e.cwd,t):u=Kn.resolve(t),process.platform==="win32"&&(u=u.replace(/\\/g,"/")),u}function xd(e,t){return e.ignore.length?e.ignore.some(function(u){return u.matcher.match(t)||!!(u.gmatcher&&u.gmatcher.match(t))}):!1}function VC(e,t){return e.ignore.length?e.ignore.some(function(u){return!!(u.gmatcher&&u.gmatcher.match(t))}):!1}var gs,kd;function KC(){if(kd)return gs;kd=1,gs=m,m.GlobSync=E;var e=Ed,t=Mr;t.Minimatch,Nd().Glob;var u=Oe.default,i=Lu.default,o=Vn.exports,s=Pt,l=s.setopts,c=s.ownProp,d=s.childrenIgnored,h=s.isIgnored;function m(g,C){if(typeof C=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
|
|
100
|
+
See: https://github.com/isaacs/node-glob/issues/167`);return new E(g,C).found}function E(g,C){if(!g)throw new Error("must provide pattern");if(typeof C=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
|
|
101
|
+
See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof E))return new E(g,C);if(l(this,g,C),this.noprocess)return this;var y=this.minimatch.set.length;this.matches=new Array(y);for(var v=0;v<y;v++)this._process(this.minimatch.set[v],v,!1);this._finish()}return E.prototype._finish=function(){if(i(this instanceof E),this.realpath){var g=this;this.matches.forEach(function(C,y){var v=g.matches[y]=Object.create(null);for(var k in C)try{k=g._makeAbs(k);var R=e.realpathSync(k,g.realpathCache);v[R]=!0}catch(N){if(N.syscall==="stat")v[g._makeAbs(k)]=!0;else throw N}})}s.finish(this)},E.prototype._process=function(g,C,y){i(this instanceof E);for(var v=0;typeof g[v]=="string";)v++;var k;switch(v){case g.length:this._processSimple(g.join("/"),C);return;case 0:k=null;break;default:k=g.slice(0,v).join("/");break}var R=g.slice(v),N;k===null?N=".":((o(k)||o(g.map(function(B){return typeof B=="string"?B:"[*]"}).join("/")))&&(!k||!o(k))&&(k="/"+k),N=k);var z=this._makeAbs(N);if(!d(this,N)){var w=R[0]===t.GLOBSTAR;w?this._processGlobStar(k,N,z,R,C,y):this._processReaddir(k,N,z,R,C,y)}},E.prototype._processReaddir=function(g,C,y,v,k,R){var N=this._readdir(y,R);if(!!N){for(var z=v[0],w=!!this.minimatch.negate,B=z._glob,x=this.dot||B.charAt(0)===".",P=[],_=0;_<N.length;_++){var T=N[_];if(T.charAt(0)!=="."||x){var H;w&&!g?H=!T.match(z):H=T.match(z),H&&P.push(T)}}var G=P.length;if(G!==0){if(v.length===1&&!this.mark&&!this.stat){this.matches[k]||(this.matches[k]=Object.create(null));for(var _=0;_<G;_++){var T=P[_];g&&(g.slice(-1)!=="/"?T=g+"/"+T:T=g+T),T.charAt(0)==="/"&&!this.nomount&&(T=u.join(this.root,T)),this._emitMatch(k,T)}return}v.shift();for(var _=0;_<G;_++){var T=P[_],X;g?X=[g,T]:X=[T],this._process(X.concat(v),k,R)}}}},E.prototype._emitMatch=function(g,C){if(!h(this,C)){var y=this._makeAbs(C);if(this.mark&&(C=this._mark(C)),this.absolute&&(C=y),!this.matches[g][C]){if(this.nodir){var v=this.cache[y];if(v==="DIR"||Array.isArray(v))return}this.matches[g][C]=!0,this.stat&&this._stat(C)}}},E.prototype._readdirInGlobStar=function(g){if(this.follow)return this._readdir(g,!1);var C,y;try{y=this.fs.lstatSync(g)}catch(k){if(k.code==="ENOENT")return null}var v=y&&y.isSymbolicLink();return this.symlinks[g]=v,!v&&y&&!y.isDirectory()?this.cache[g]="FILE":C=this._readdir(g,!1),C},E.prototype._readdir=function(g,C){if(C&&!c(this.symlinks,g))return this._readdirInGlobStar(g);if(c(this.cache,g)){var y=this.cache[g];if(!y||y==="FILE")return null;if(Array.isArray(y))return y}try{return this._readdirEntries(g,this.fs.readdirSync(g))}catch(v){return this._readdirError(g,v),null}},E.prototype._readdirEntries=function(g,C){if(!this.mark&&!this.stat)for(var y=0;y<C.length;y++){var v=C[y];g==="/"?v=g+v:v=g+"/"+v,this.cache[v]=!0}return this.cache[g]=C,C},E.prototype._readdirError=function(g,C){switch(C.code){case"ENOTSUP":case"ENOTDIR":var y=this._makeAbs(g);if(this.cache[y]="FILE",y===this.cwdAbs){var v=new Error(C.code+" invalid cwd "+this.cwd);throw v.path=this.cwd,v.code=C.code,v}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(g)]=!1;break;default:if(this.cache[this._makeAbs(g)]=!1,this.strict)throw C;this.silent||console.error("glob error",C);break}},E.prototype._processGlobStar=function(g,C,y,v,k,R){var N=this._readdir(y,R);if(!!N){var z=v.slice(1),w=g?[g]:[],B=w.concat(z);this._process(B,k,!1);var x=N.length,P=this.symlinks[y];if(!(P&&R))for(var _=0;_<x;_++){var T=N[_];if(!(T.charAt(0)==="."&&!this.dot)){var H=w.concat(N[_],z);this._process(H,k,!0);var G=w.concat(N[_],v);this._process(G,k,!0)}}}},E.prototype._processSimple=function(g,C){var y=this._stat(g);if(this.matches[C]||(this.matches[C]=Object.create(null)),!!y){if(g&&o(g)&&!this.nomount){var v=/[\/\\]$/.test(g);g.charAt(0)==="/"?g=u.join(this.root,g):(g=u.resolve(this.root,g),v&&(g+="/"))}process.platform==="win32"&&(g=g.replace(/\\/g,"/")),this._emitMatch(C,g)}},E.prototype._stat=function(g){var C=this._makeAbs(g),y=g.slice(-1)==="/";if(g.length>this.maxLength)return!1;if(!this.stat&&c(this.cache,C)){var R=this.cache[C];if(Array.isArray(R)&&(R="DIR"),!y||R==="DIR")return R;if(y&&R==="FILE")return!1}var v=this.statCache[C];if(!v){var k;try{k=this.fs.lstatSync(C)}catch(N){if(N&&(N.code==="ENOENT"||N.code==="ENOTDIR"))return this.statCache[C]=!1,!1}if(k&&k.isSymbolicLink())try{v=this.fs.statSync(C)}catch{v=k}else v=k}this.statCache[C]=v;var R=!0;return v&&(R=v.isDirectory()?"DIR":"FILE"),this.cache[C]=this.cache[C]||R,y&&R==="FILE"?!1:R},E.prototype._mark=function(g){return s.mark(this,g)},E.prototype._makeAbs=function(g){return s.makeAbs(this,g)},gs}var _d=Od;function Od(e,t){if(e&&t)return Od(e)(t);if(typeof e!="function")throw new TypeError("need wrapper function");return Object.keys(e).forEach(function(i){u[i]=e[i]}),u;function u(){for(var i=new Array(arguments.length),o=0;o<i.length;o++)i[o]=arguments[o];var s=e.apply(this,i),l=i[i.length-1];return typeof s=="function"&&s!==l&&Object.keys(l).forEach(function(c){s[c]=l[c]}),s}}var wi={exports:{}},Id=_d;wi.exports=Id(Si),wi.exports.strict=Id(Rd),Si.proto=Si(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return Si(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return Rd(this)},configurable:!0})});function Si(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function Rd(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},u=e.name||"Function wrapped with `once`";return t.onceError=u+" shouldn't be called more than once",t.called=!1,t}var YC=_d,Ur=Object.create(null),XC=wi.exports,ZC=YC(eb);function eb(e,t){return Ur[e]?(Ur[e].push(t),null):(Ur[e]=[t],tb(e))}function tb(e){return XC(function t(){var u=Ur[e],i=u.length,o=nb(arguments);try{for(var s=0;s<i;s++)u[s].apply(null,o)}finally{u.length>i?(u.splice(0,i),process.nextTick(function(){t.apply(null,o)})):delete Ur[e]}})}function nb(e){for(var t=e.length,u=[],i=0;i<t;i++)u[i]=e[i];return u}var ms,Pd;function Nd(){if(Pd)return ms;Pd=1,ms=v;var e=Ed,t=Mr;t.Minimatch;var u=Fd.exports,i=wr.default.EventEmitter,o=Oe.default,s=Lu.default,l=Vn.exports,c=KC(),d=Pt,h=d.setopts,m=d.ownProp,E=ZC,g=d.childrenIgnored,C=d.isIgnored,y=wi.exports;function v(w,B,x){if(typeof B=="function"&&(x=B,B={}),B||(B={}),B.sync){if(x)throw new TypeError("callback provided to sync glob");return c(w,B)}return new N(w,B,x)}v.sync=c;var k=v.GlobSync=c.GlobSync;v.glob=v;function R(w,B){if(B===null||typeof B!="object")return w;for(var x=Object.keys(B),P=x.length;P--;)w[x[P]]=B[x[P]];return w}v.hasMagic=function(w,B){var x=R({},B);x.noprocess=!0;var P=new N(w,x),_=P.minimatch.set;if(!w)return!1;if(_.length>1)return!0;for(var T=0;T<_[0].length;T++)if(typeof _[0][T]!="string")return!0;return!1},v.Glob=N,u(N,i);function N(w,B,x){if(typeof B=="function"&&(x=B,B=null),B&&B.sync){if(x)throw new TypeError("callback provided to sync glob");return new k(w,B)}if(!(this instanceof N))return new N(w,B,x);h(this,w,B),this._didRealPath=!1;var P=this.minimatch.set.length;this.matches=new Array(P),typeof x=="function"&&(x=y(x),this.on("error",x),this.on("end",function(X){x(null,X)}));var _=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(P===0)return G();for(var T=!0,H=0;H<P;H++)this._process(this.minimatch.set[H],H,!1,G);T=!1;function G(){--_._processing,_._processing<=0&&(T?process.nextTick(function(){_._finish()}):_._finish())}}N.prototype._finish=function(){if(s(this instanceof N),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();d.finish(this),this.emit("end",this.found)}},N.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=!0;var w=this.matches.length;if(w===0)return this._finish();for(var B=this,x=0;x<this.matches.length;x++)this._realpathSet(x,P);function P(){--w===0&&B._finish()}},N.prototype._realpathSet=function(w,B){var x=this.matches[w];if(!x)return B();var P=Object.keys(x),_=this,T=P.length;if(T===0)return B();var H=this.matches[w]=Object.create(null);P.forEach(function(G,X){G=_._makeAbs(G),e.realpath(G,_.realpathCache,function(ee,we){ee?ee.syscall==="stat"?H[G]=!0:_.emit("error",ee):H[we]=!0,--T===0&&(_.matches[w]=H,B())})})},N.prototype._mark=function(w){return d.mark(this,w)},N.prototype._makeAbs=function(w){return d.makeAbs(this,w)},N.prototype.abort=function(){this.aborted=!0,this.emit("abort")},N.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))},N.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var w=this._emitQueue.slice(0);this._emitQueue.length=0;for(var B=0;B<w.length;B++){var x=w[B];this._emitMatch(x[0],x[1])}}if(this._processQueue.length){var P=this._processQueue.slice(0);this._processQueue.length=0;for(var B=0;B<P.length;B++){var _=P[B];this._processing--,this._process(_[0],_[1],_[2],_[3])}}}},N.prototype._process=function(w,B,x,P){if(s(this instanceof N),s(typeof P=="function"),!this.aborted){if(this._processing++,this.paused){this._processQueue.push([w,B,x,P]);return}for(var _=0;typeof w[_]=="string";)_++;var T;switch(_){case w.length:this._processSimple(w.join("/"),B,P);return;case 0:T=null;break;default:T=w.slice(0,_).join("/");break}var H=w.slice(_),G;T===null?G=".":((l(T)||l(w.map(function(we){return typeof we=="string"?we:"[*]"}).join("/")))&&(!T||!l(T))&&(T="/"+T),G=T);var X=this._makeAbs(G);if(g(this,G))return P();var ee=H[0]===t.GLOBSTAR;ee?this._processGlobStar(T,G,X,H,B,x,P):this._processReaddir(T,G,X,H,B,x,P)}},N.prototype._processReaddir=function(w,B,x,P,_,T,H){var G=this;this._readdir(x,T,function(X,ee){return G._processReaddir2(w,B,x,P,_,T,ee,H)})},N.prototype._processReaddir2=function(w,B,x,P,_,T,H,G){if(!H)return G();for(var X=P[0],ee=!!this.minimatch.negate,we=X._glob,Fe=this.dot||we.charAt(0)===".",Ae=[],oe=0;oe<H.length;oe++){var ie=H[oe];if(ie.charAt(0)!=="."||Fe){var it;ee&&!w?it=!ie.match(X):it=ie.match(X),it&&Ae.push(ie)}}var Ft=Ae.length;if(Ft===0)return G();if(P.length===1&&!this.mark&&!this.stat){this.matches[_]||(this.matches[_]=Object.create(null));for(var oe=0;oe<Ft;oe++){var ie=Ae[oe];w&&(w!=="/"?ie=w+"/"+ie:ie=w+ie),ie.charAt(0)==="/"&&!this.nomount&&(ie=o.join(this.root,ie)),this._emitMatch(_,ie)}return G()}P.shift();for(var oe=0;oe<Ft;oe++){var ie=Ae[oe];w&&(w!=="/"?ie=w+"/"+ie:ie=w+ie),this._process([ie].concat(P),_,T,G)}G()},N.prototype._emitMatch=function(w,B){if(!this.aborted&&!C(this,B)){if(this.paused){this._emitQueue.push([w,B]);return}var x=l(B)?B:this._makeAbs(B);if(this.mark&&(B=this._mark(B)),this.absolute&&(B=x),!this.matches[w][B]){if(this.nodir){var P=this.cache[x];if(P==="DIR"||Array.isArray(P))return}this.matches[w][B]=!0;var _=this.statCache[x];_&&this.emit("stat",B,_),this.emit("match",B)}}},N.prototype._readdirInGlobStar=function(w,B){if(this.aborted)return;if(this.follow)return this._readdir(w,!1,B);var x="lstat\0"+w,P=this,_=E(x,T);_&&P.fs.lstat(w,_);function T(H,G){if(H&&H.code==="ENOENT")return B();var X=G&&G.isSymbolicLink();P.symlinks[w]=X,!X&&G&&!G.isDirectory()?(P.cache[w]="FILE",B()):P._readdir(w,!1,B)}},N.prototype._readdir=function(w,B,x){if(!this.aborted&&(x=E("readdir\0"+w+"\0"+B,x),!!x)){if(B&&!m(this.symlinks,w))return this._readdirInGlobStar(w,x);if(m(this.cache,w)){var P=this.cache[w];if(!P||P==="FILE")return x();if(Array.isArray(P))return x(null,P)}var _=this;_.fs.readdir(w,z(this,w,x))}};function z(w,B,x){return function(P,_){P?w._readdirError(B,P,x):w._readdirEntries(B,_,x)}}return N.prototype._readdirEntries=function(w,B,x){if(!this.aborted){if(!this.mark&&!this.stat)for(var P=0;P<B.length;P++){var _=B[P];w==="/"?_=w+_:_=w+"/"+_,this.cache[_]=!0}return this.cache[w]=B,x(null,B)}},N.prototype._readdirError=function(w,B,x){if(!this.aborted){switch(B.code){case"ENOTSUP":case"ENOTDIR":var P=this._makeAbs(w);if(this.cache[P]="FILE",P===this.cwdAbs){var _=new Error(B.code+" invalid cwd "+this.cwd);_.path=this.cwd,_.code=B.code,this.emit("error",_),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(w)]=!1;break;default:this.cache[this._makeAbs(w)]=!1,this.strict&&(this.emit("error",B),this.abort()),this.silent||console.error("glob error",B);break}return x()}},N.prototype._processGlobStar=function(w,B,x,P,_,T,H){var G=this;this._readdir(x,T,function(X,ee){G._processGlobStar2(w,B,x,P,_,T,ee,H)})},N.prototype._processGlobStar2=function(w,B,x,P,_,T,H,G){if(!H)return G();var X=P.slice(1),ee=w?[w]:[],we=ee.concat(X);this._process(we,_,!1,G);var Fe=this.symlinks[x],Ae=H.length;if(Fe&&T)return G();for(var oe=0;oe<Ae;oe++){var ie=H[oe];if(!(ie.charAt(0)==="."&&!this.dot)){var it=ee.concat(H[oe],X);this._process(it,_,!0,G);var Ft=ee.concat(H[oe],P);this._process(Ft,_,!0,G)}}G()},N.prototype._processSimple=function(w,B,x){var P=this;this._stat(w,function(_,T){P._processSimple2(w,B,_,T,x)})},N.prototype._processSimple2=function(w,B,x,P,_){if(this.matches[B]||(this.matches[B]=Object.create(null)),!P)return _();if(w&&l(w)&&!this.nomount){var T=/[\/\\]$/.test(w);w.charAt(0)==="/"?w=o.join(this.root,w):(w=o.resolve(this.root,w),T&&(w+="/"))}process.platform==="win32"&&(w=w.replace(/\\/g,"/")),this._emitMatch(B,w),_()},N.prototype._stat=function(w,B){var x=this._makeAbs(w),P=w.slice(-1)==="/";if(w.length>this.maxLength)return B();if(!this.stat&&m(this.cache,x)){var _=this.cache[x];if(Array.isArray(_)&&(_="DIR"),!P||_==="DIR")return B(null,_);if(P&&_==="FILE")return B()}var T=this.statCache[x];if(T!==void 0){if(T===!1)return B(null,T);var H=T.isDirectory()?"DIR":"FILE";return P&&H==="FILE"?B():B(null,H,T)}var G=this,X=E("stat\0"+x,ee);X&&G.fs.lstat(x,X);function ee(we,Fe){if(Fe&&Fe.isSymbolicLink())return G.fs.stat(x,function(Ae,oe){Ae?G._stat2(w,x,null,Fe,B):G._stat2(w,x,Ae,oe,B)});G._stat2(w,x,we,Fe,B)}},N.prototype._stat2=function(w,B,x,P,_){if(x&&(x.code==="ENOENT"||x.code==="ENOTDIR"))return this.statCache[B]=!1,_();var T=w.slice(-1)==="/";if(this.statCache[B]=P,B.slice(-1)==="/"&&P&&!P.isDirectory())return _(null,!1,P);var H=!0;return P&&(H=P.isDirectory()?"DIR":"FILE"),this.cache[B]=this.cache[B]||H,T&&H==="FILE"?_():_(null,H,P)},ms}const rb=cC,ub=rb.BundleWalker,ib=IC,ab=ib.Walker,Td=Symbol("root-builtin-rules"),$d=Symbol("package-necessary-rules"),Le=Oe.default,ob=rd,Ld="readme|copying|license|licence",sb=`@(${Ld}){,.*[^~$]}`,lb=new RegExp(`^(${Ld})(\\..*[^~$])?$`,"i"),jd=rt.default,cb=Nd(),Gr=e=>e.split("\\").join("/"),Md=(e,t,u="")=>{for(const l of[".npmignore",".gitignore"])try{u+=jd.readFileSync(Le.join(e,l),{encoding:"utf8"})+`
|
|
102
|
+
`;break}catch(c){if(c.code!=="ENOENT")throw c}if(!t)return u;const i=t.split(Le.sep)[0],o=Le.join(e,i),s=Le.relative(o,Le.join(e,t));return Md(o,s,u)},Db=e=>{if(!e.startsWith("node_modules/"))return!1;const t=e.slice(13).split("/",2);return t[0].startsWith("@")?t.length===2:!0},fb=e=>{const t=e.slice(13).split("/",2);return t[0].startsWith("@")?t.join("/"):t[0]},db=[".npmignore",".gitignore","**/.git","**/.svn","**/.hg","**/CVS","**/.git/**","**/.svn/**","**/.hg/**","**/CVS/**","/.lock-wscript","/.wafpickle-*","/build/config.gypi","npm-debug.log","**/.npmrc",".*.swp",".DS_Store","**/.DS_Store/**","._*","**/._*/**","*.orig","/package-lock.json","/yarn.lock","/pnpm-lock.yaml","/archived-packages/**"],hb=e=>/\*/.test(e);class xi extends ab{constructor(t){t=t||{},t.ignoreFiles=[Td,"package.json",".npmignore",".gitignore",$d],t.includeEmpty=!1,t.path=t.path||process.cwd();const u=/^(?:\/node_modules\/(?:@[^/]+\/[^/]+|[^/]+)\/)*\/node_modules(?:\/@[^/]+)?$/,i=t.parent?t.parent.root:t.path,o=t.path.replace(/\\/g,"/").slice(i.length);if(t.follow=u.test(o),super(t),this.isProject){this.bundled=t.bundled||[],this.bundledScopes=Array.from(new Set(this.bundled.filter(l=>/^@/.test(l)).map(l=>l.split("/")[0]))),this.packageJsonCache=this.parent?this.parent.packageJsonCache:t.packageJsonCache||new Map;let s=db.join(`
|
|
103
|
+
`)+`
|
|
104
|
+
`;if(t.prefix&&t.workspaces){const l=Gr(t.path),c=Gr(t.prefix),d=t.workspaces.map(h=>Gr(h));if(l!==c&&d.includes(l)){const h=Le.relative(t.prefix,Le.dirname(t.path));s+=Md(t.prefix,h)}else l===c&&(s+=t.workspaces.map(h=>Gr(Le.relative(t.path,h))).join(`
|
|
105
|
+
`))}super.onReadIgnoreFile(Td,s,l=>l)}else this.bundled=[],this.bundledScopes=[],this.packageJsonCache=this.parent.packageJsonCache}get isProject(){return!this.parent||this.parent.follow&&this.isSymbolicLink}onReaddir(t){if(this.isProject&&(t=t.filter(i=>i!==".git"&&!(i==="node_modules"&&this.bundled.length===0))),!this.isProject||!t.includes("package.json"))return super.onReaddir(t);const u=Le.resolve(this.path,"package.json");if(this.packageJsonCache.has(u)){const i=this.packageJsonCache.get(u);return!i||typeof i!="object"?this.readPackageJson(t):this.getPackageFiles(t,JSON.stringify(i))}this.readPackageJson(t)}onReadPackageJson(t,u,i){u?this.emit("error",u):this.getPackageFiles(t,i)}mustHaveFilesFromPackage(t){const u=[];if(t.browser&&u.push("/"+t.browser),t.main&&u.push("/"+t.main),t.bin)for(const i in t.bin)u.push("/"+t.bin[i]);return u.push("/package.json","/npm-shrinkwrap.json","!/package-lock.json",sb),u}getPackageFiles(t,u){try{u=ob(JSON.parse(u.toString()))}catch{return super.onReaddir(t)}const i=Le.resolve(this.path,"package.json");if(this.packageJsonCache.set(i,u),!Array.isArray(u.files))return super.onReaddir(t);u.files.push(...this.mustHaveFilesFromPackage(u)),(u.bundleDependencies||u.bundledDependencies)&&t.includes("node_modules")&&u.files.push("node_modules");const o=Array.from(new Set(u.files)).reduce((E,g)=>{const C=g.match(/^!+/);C&&(g=g.slice(C[0].length)),g=g.replace(/^\.?\/+/,"");const y=C&&C[0].length%2===1;return E.push({pattern:g,negate:y}),E},[]);let s=o.length;const l=new Set,c=new Set,d=[],h=(E,g,C,y,v)=>{if(C)return this.emit("error",C);d[v]={negate:g,fileList:y},--s===0&&m(d)},m=E=>{for(const{negate:y,fileList:v}of E)y?v.forEach(k=>{k=k.replace(/\/+$/,""),l.delete(k),c.add(k)}):v.forEach(k=>{k=k.replace(/\/+$/,""),l.add(k),c.delete(k)});const g=Array.from(l);u.files=g.concat(Array.from(c).map(y=>"!"+y));const C=Array.from(new Set(g.map(y=>y.replace(/^\/+/,""))));super.onReaddir(C)};o.forEach(({pattern:E,negate:g},C)=>this.globFiles(E,(y,v)=>h(E,g,y,v,C)))}filterEntry(t,u){const i=this.path.slice(this.root.length+1),{isProject:o}=this,s=o&&Db(t)?fb(t):null,l=o&&t==="node_modules",c=o&&t==="package.json";return/^node_modules($|\/)/i.test(i)&&!this.isProject?this.parent.filterEntry(this.basename+"/"+t,u):s?this.bundled.indexOf(s)!==-1||this.bundledScopes.indexOf(s)!==-1:l?!!this.bundled.length:c||lb.test(t)||o&&(t==="npm-shrinkwrap.json"||t==="package.json")?!0:o&&t==="package-lock.json"?!1:super.filterEntry(t,u)}filterEntries(){this.ignoreRules[".npmignore"]&&(this.ignoreRules[".gitignore"]=null),this.filterEntries=super.filterEntries,super.filterEntries()}addIgnoreFile(t,u){const i=Le.resolve(this.path,t);t==="package.json"&&!this.isProject?u():this.packageJsonCache.has(i)?this.onPackageJson(i,this.packageJsonCache.get(i),u):super.addIgnoreFile(t,u)}onPackageJson(t,u,i){if(this.packageJsonCache.set(t,u),Array.isArray(u.files))super.onReadIgnoreFile("package.json",u.files.map(o=>"!"+o).join(`
|
|
106
|
+
`)+`
|
|
107
|
+
`,i);else{const s=this.mustHaveFilesFromPackage(u).map(l=>`!${l}`).join(`
|
|
108
|
+
`)+`
|
|
109
|
+
`;super.onReadIgnoreFile($d,s,i)}}stat({entry:t,file:u,dir:i},o){hb(t)?o():super.stat({entry:t,file:u,dir:i},o)}onstat({st:t,entry:u,file:i,dir:o,isSymbolicLink:s},l){t.isSymbolicLink()?l():super.onstat({st:t,entry:u,file:i,dir:o,isSymbolicLink:s},l)}onReadIgnoreFile(t,u,i){if(t==="package.json")try{const o=Le.resolve(this.path,t);this.onPackageJson(o,JSON.parse(u),i)}catch{i()}else super.onReadIgnoreFile(t,u,i)}sort(t,u){const i=Le.extname(t).toLowerCase(),o=Le.extname(u).toLowerCase(),s=Le.basename(t).toLowerCase(),l=Le.basename(u).toLowerCase();return i.localeCompare(o,"en")||s.localeCompare(l,"en")||t.localeCompare(u,"en")}globFiles(t,u){cb(Gr(t),{dot:!0,cwd:this.path,nocase:!0},u)}readPackageJson(t){jd.readFile(this.path+"/package.json",(u,i)=>this.onReadPackageJson(t,u,i))}walker(t,u,i){new xi(this.walkerOpt(t,u)).on("done",i).start()}}const zd=(e,t)=>{e=e||{};const u=new Promise((i,o)=>{const s=new ub(e);s.on("done",l=>{e.bundled=l,e.packageJsonCache=s.packageJsonCache,new xi(e).on("done",i).on("error",o).start()}),s.start()});return t?u.then(i=>t(null,i),t):u};var pb=zd;zd.Walker=xi;var gb="git-publish",mb="1.0.1",Eb="Publish your npm package to a GitHub repository branch";async function Cb(){const{stdout:e}=await Qe("git",["status","--porcelain","--untracked-files=no"]).catch(t=>{throw t.stderr.includes("not a git repository")?new Error("Not in a git repository"):t});if(e)throw new Error("Working tree is not clean")}async function bb(){const e=()=>{},t=await Qe("git",["symbolic-ref","--short","-q","HEAD"]).then(({stdout:i})=>i,e);if(t)return t;const u=await Qe("git",["describe","--tags"]).then(({stdout:i})=>i,e);if(u)return u;throw new Error("Failed to get current branch name")}async function yb(e){const t=await rt.default.promises.readFile(e,"utf8");try{return JSON.parse(t)}catch{throw new Error(`Failed to parse JSON file: ${e}`)}}const{stringify:rn}=JSON;(async()=>{const e=tC({name:gb,version:mb,flags:{branch:{type:String,alias:"b",placeholder:"<branch name>",description:'The branch to publish the package to. Defaults to prefixing "npm/" to the current branch or tag name.'},remote:{type:String,alias:"r",placeholder:"<remote>",description:"The remote to push to.",default:"origin"},dry:{type:Boolean,alias:"d",description:"Dry run mode. Will not commit or push to the remote."}},help:{description:Eb}});await Cb();const t=await bb(),u="package.json";await rt.default.promises.access(u).catch(()=>{throw new Error("No package.json found in current working directory")});const{branch:i=`npm/${t}`,remote:o,dry:s}=e.flags;await T2(`Publishing branch ${rn(t)} \u2192 ${rn(i)}`,async({task:l,setTitle:c,setStatus:d,setOutput:h})=>{s&&d("Dry run");const m=`git-publish/${i}-${Date.now()}`;let E=!1;try{let g=[];const C=await l("Running hooks",async({setWarning:z,setTitle:w})=>{if(s){z("");return}w('Running hook "prepare"'),await Qe("npm",["run","--if-present","prepare"]),w('Running hook "prepack"'),await Qe("npm",["run","--if-present","prepack"])});s||C.clear();const y=await l("Getting publish files",async({setWarning:z})=>{if(s){z("");return}if(g=await pb(),g.length===0)throw new Error("No publish files found")});s||y.clear();const v=await l('Removing "prepare" & "prepack" hooks',async({setWarning:z})=>{if(s){z("");return}const w=await yb(u);if(!("scripts"in w))return;const{scripts:B}=w;let x=!1;"prepare"in B&&(delete B.prepare,x=!0),"prepack"in B&&(delete B.prepack,x=!0),x&&await rt.default.promises.writeFile(u,rn(w,null,2))});s||v.clear();const k=await l(`Checking out branch ${rn(i)}`,async({setWarning:z})=>{if(s){z("");return}await Qe("git",["checkout","--orphan",m]),await Qe("git",["reset"])});s||k.clear();const R=await l("Commiting publish assets",async({setWarning:z})=>{if(s){z("");return}await Qe("git",["add","-f",...g]),await Qe("git",["commit","-nm",`Published branch ${rn(t)}`])});s||R.clear();const N=await l(`Force pushing branch ${rn(i)} to remote ${rn(o)}`,async({setWarning:z})=>{if(s){z("");return}await Qe("git",["push","-f",o,`${m}:${i}`]),E=!0});s||N.clear()}finally{(await l(`Switching branch back to ${rn(t)}`,async({setWarning:C})=>{if(s){C("");return}await Qe("git",["reset","--hard"]),await Qe("git",["checkout","-f",t]),await Qe("git",["branch","-D",m])})).clear()}if(E){let g=o;try{const{stdout:y}=await Qe("git",["remote","get-url",g]);g=y.trim()}catch{}const C=g.match(/github\.com:(.+)\.git$/);if(C){const[,y]=C;c("Successfully published branch! Install with command:"),h(`npm i '${y}#${i}'`)}}})})().catch(e=>{console.error("Error:",e.message),process.exit(1)});
|
package/package.json
CHANGED
|
@@ -1,24 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "git-publish",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
5
|
-
"main": "git-publish.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
-
},
|
|
9
|
-
"repository": {
|
|
10
|
-
"type": "git",
|
|
11
|
-
"url": "https://github.com/mugendi/git-publish.js.git"
|
|
12
|
-
},
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "Publish your npm package to a GitHub repository branch",
|
|
13
5
|
"keywords": [
|
|
6
|
+
"npm",
|
|
7
|
+
"publish",
|
|
14
8
|
"git",
|
|
15
|
-
"
|
|
16
|
-
"
|
|
9
|
+
"github",
|
|
10
|
+
"branch",
|
|
11
|
+
"branches"
|
|
17
12
|
],
|
|
18
|
-
"author": "Anthony Mugendi (ngurumugz@gmail.com)",
|
|
19
13
|
"license": "MIT",
|
|
20
|
-
"
|
|
21
|
-
|
|
14
|
+
"repository": "privatenumber/git-publish",
|
|
15
|
+
"funding": "https://github.com/privatenumber/git-publish?sponsor=1",
|
|
16
|
+
"author": {
|
|
17
|
+
"name": "Hiroki Osame",
|
|
18
|
+
"email": "hiroki.osame@gmail.com"
|
|
22
19
|
},
|
|
23
|
-
"
|
|
24
|
-
|
|
20
|
+
"files": [
|
|
21
|
+
"dist"
|
|
22
|
+
],
|
|
23
|
+
"bin": "dist/index.js",
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"yoga-layout-prebuilt": "^1.10.0"
|
|
26
|
+
}
|
|
27
|
+
}
|
package/git-publish.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
//push to git
|
|
2
|
-
var shell = require('shelljs');
|
|
3
|
-
|
|
4
|
-
var cmd ='git status && git add -A && git commit -m "natural_number Auto-commit" && git push -u --all';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
console.log("\n\nPushing to git....");
|
|
8
|
-
|
|
9
|
-
shell.exec(cmd, {silent:true}, function(code, output) {
|
|
10
|
-
// console.log('Exit code:', code);
|
|
11
|
-
console.log("DONE!\n\n" , output);
|
|
12
|
-
});
|
|
13
|
-
|