renovate-report-html 0.0.0-stage → 0.1.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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Jonas Vacek
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 CHANGED
@@ -1,3 +1,42 @@
1
- # Temporary Holding Version
1
+ # renovate-report-html
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Turn a [Renovate](https://docs.renovatebot.com/) JSON report into one interactive HTML page. Think coverage report, but for dependency updates across all your repositories.
4
+
5
+ **[See the demo](https://jvacek.github.io/renovate-report-html/demo/)**
6
+
7
+ - Pending updates by type, skipped dependencies and Renovate's problems, at a glance
8
+ - Every repository, down to each package file and dependency
9
+ - Every package across repositories: who is on which version, with outliers marked
10
+ - Colour-coded dependency age, sortable tables, search, and a link for every view
11
+ - One self-contained file: open it locally, attach it to a CI job, or publish it on Pages
12
+
13
+ ## Usage
14
+
15
+ Have Renovate write a report:
16
+
17
+ ```sh
18
+ npx renovate --platform=github --dry-run=lookup \
19
+ --report-type=file --report-path=renovate-report.json \
20
+ my-org/repo-a my-org/repo-b
21
+ ```
22
+
23
+ Turn it into a page:
24
+
25
+ ```sh
26
+ npx renovate-report-html renovate-report.json -o public/ --title "Renovate report"
27
+ ```
28
+
29
+ This writes `public/index.html`. Requires Node 22 or later.
30
+
31
+ Supported and tested, including a weekly check against the latest Renovate release: **GitHub**, **GitLab** and **local** checkouts. Setup guides with ready-to-use CI pipelines: [GitHub](docs/github.md), [GitLab](docs/gitlab.md), [local](docs/local.md). Reports from other Renovate platforms may work but aren't tested.
32
+
33
+ > [!WARNING]
34
+ > Renovate's report format is experimental and can change between minor releases. If a Renovate version breaks the page, the CLI names the field that changed; please [open an issue](https://github.com/jvacek/renovate-report-html/issues) with that output.
35
+
36
+ ## Contributing
37
+
38
+ See [CONTRIBUTING.md](CONTRIBUTING.md).
39
+
40
+ ## License
41
+
42
+ [MIT](LICENSE). Datasource logos are from [Simple Icons](https://simpleicons.org) (CC0).
package/dist/cli.mjs ADDED
@@ -0,0 +1,261 @@
1
+ #!/usr/bin/env node
2
+ import { mkdir, readFile, writeFile } from "node:fs/promises";
3
+ import { join, resolve } from "node:path";
4
+ import { parseArgs } from "node:util";
5
+ import { z } from "zod";
6
+ /** Log record fields that are noise in a report page. */
7
+ const HIDDEN_PROBLEM_KEYS = /* @__PURE__ */ new Set([
8
+ "msg",
9
+ "level",
10
+ "name",
11
+ "logContext",
12
+ "hostname",
13
+ "pid",
14
+ "time",
15
+ "v"
16
+ ]);
17
+ const MAX_CONTEXT_LENGTH = 500;
18
+ function toProblem(raw) {
19
+ const context = {};
20
+ for (const [key, value] of Object.entries(raw)) {
21
+ if (HIDDEN_PROBLEM_KEYS.has(key) || value === void 0 || value === null) continue;
22
+ const text = typeof value === "string" ? value : JSON.stringify(value);
23
+ context[key] = text.length > MAX_CONTEXT_LENGTH ? `${text.slice(0, MAX_CONTEXT_LENGTH)}…` : text;
24
+ }
25
+ return {
26
+ level: raw.level,
27
+ message: raw.msg,
28
+ context
29
+ };
30
+ }
31
+ function toDep({ depName, warnings, ...rest }) {
32
+ return {
33
+ ...rest,
34
+ name: depName ?? rest.packageName ?? "(unnamed)",
35
+ warnings: warnings.map((w) => typeof w === "string" ? w : w.message)
36
+ };
37
+ }
38
+ function toRepository(name, raw) {
39
+ return {
40
+ name,
41
+ problems: raw.problems.map(toProblem),
42
+ branches: raw.branches,
43
+ managers: Object.entries(raw.packageFiles).map(([manager, files]) => ({
44
+ name: manager,
45
+ packageFiles: files.map((file) => ({
46
+ path: file.packageFile,
47
+ lockFiles: file.lockFiles,
48
+ deps: file.deps.map(toDep)
49
+ }))
50
+ })).sort((a, b) => a.name.localeCompare(b.name)),
51
+ libYears: raw.libYearsWithStatus?.libYears?.total,
52
+ dependencyStatus: raw.libYearsWithStatus?.dependencyStatus,
53
+ platform: raw.platform,
54
+ defaultBranch: raw.defaultBranch,
55
+ status: raw.status,
56
+ configFileName: raw.configFileName
57
+ };
58
+ }
59
+ function toReportData(report, options = {}) {
60
+ return {
61
+ version: 1,
62
+ title: options.title ?? "Renovate report",
63
+ generatedAt: (options.generatedAt ?? /* @__PURE__ */ new Date()).toISOString(),
64
+ problems: report.problems.map(toProblem),
65
+ repositories: Object.entries(report.repositories).map(([name, repo]) => toRepository(name, repo)).sort((a, b) => a.name.localeCompare(b.name))
66
+ };
67
+ }
68
+ // src/report/render.ts
69
+ /** Marker inside the viewer's `<script id="report-data">` tag that the CLI replaces. */
70
+ const DATA_PLACEHOLDER = "__RENOVATE_REPORT_DATA__";
71
+ const DATA_TAG = `<script id="report-data" type="application/json">${DATA_PLACEHOLDER}<\/script>`;
72
+ /**
73
+ * Serialise data so it is safe inside a `<script>` element: escaping `<` rules
74
+ * out `<\/script>` and `<!--`, and U+2028/U+2029 are escaped for old parsers.
75
+ */
76
+ function serializeForScript(data) {
77
+ return JSON.stringify(data).replaceAll("<", "\\u003c").replaceAll("\u2028", "\\u2028").replaceAll("\u2029", "\\u2029");
78
+ }
79
+ function escapeHtml(text) {
80
+ return text.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll("\"", "&quot;");
81
+ }
82
+ /** Put the report data and page title into the prebuilt viewer template. */
83
+ function renderHtml(template, data) {
84
+ if (!template.includes(DATA_TAG)) throw new Error("Viewer template is missing the report data placeholder. Was it built with `pnpm build`?");
85
+ return template.replace(/<title>[^<]*<\/title>/, () => `<title>${escapeHtml(data.title)}</title>`).replace(DATA_TAG, () => DATA_TAG.split(DATA_PLACEHOLDER).join(serializeForScript(data)));
86
+ }
87
+ // src/report/schema.ts
88
+ /**
89
+ * Zod schema for the subset of Renovate's `reportType=file` output that we use.
90
+ *
91
+ * The report format is experimental upstream and can change between minor
92
+ * versions, so this schema is deliberately narrow: it only describes fields the
93
+ * viewer needs and strips everything else. Fields we do use are type checked, so
94
+ * a changed shape fails loudly instead of rendering a misleading page. Fields
95
+ * are optional unless the page cannot be built without them.
96
+ */
97
+ const optionalString = z.string().optional();
98
+ const optionalNumber = z.number().optional();
99
+ const optionalBoolean = z.boolean().optional();
100
+ /** Bunyan-style log record. Extra keys are kept and shown as context. */
101
+ const problemSchema = z.looseObject({
102
+ level: z.number().optional(),
103
+ msg: z.string()
104
+ });
105
+ const warningSchema = z.union([z.string(), z.looseObject({
106
+ topic: z.string().optional(),
107
+ message: z.string()
108
+ })]);
109
+ const updateSchema = z.object({
110
+ updateType: optionalString,
111
+ newVersion: optionalString,
112
+ newValue: optionalString,
113
+ newDigest: z.string().nullish(),
114
+ newMajor: optionalNumber,
115
+ releaseTimestamp: optionalString,
116
+ newVersionAgeInDays: optionalNumber,
117
+ isBreaking: optionalBoolean,
118
+ branchName: optionalString,
119
+ libYears: optionalNumber
120
+ });
121
+ const depSchema = z.object({
122
+ depName: optionalString,
123
+ packageName: optionalString,
124
+ datasource: optionalString,
125
+ depType: optionalString,
126
+ currentValue: optionalString,
127
+ currentVersion: optionalString,
128
+ currentDigest: optionalString,
129
+ lockedVersion: optionalString,
130
+ currentVersionTimestamp: optionalString,
131
+ currentVersionAgeInDays: optionalNumber,
132
+ skipReason: optionalString,
133
+ registryUrl: optionalString,
134
+ sourceUrl: optionalString,
135
+ homepage: optionalString,
136
+ changelogUrl: optionalString,
137
+ updates: z.array(updateSchema).default([]),
138
+ warnings: z.array(warningSchema).default([])
139
+ });
140
+ const packageFileSchema = z.object({
141
+ packageFile: z.string(),
142
+ lockFiles: z.array(z.string()).optional(),
143
+ deps: z.array(depSchema).default([])
144
+ });
145
+ const branchUpgradeSchema = z.object({
146
+ depName: optionalString,
147
+ packageName: optionalString,
148
+ manager: optionalString,
149
+ packageFile: optionalString,
150
+ currentVersion: optionalString,
151
+ currentValue: optionalString,
152
+ newVersion: optionalString,
153
+ newValue: optionalString,
154
+ updateType: optionalString,
155
+ isVulnerabilityAlert: optionalBoolean
156
+ });
157
+ const branchSchema = z.object({
158
+ branchName: z.string(),
159
+ prNo: z.number().nullish(),
160
+ prTitle: optionalString,
161
+ result: optionalString,
162
+ baseBranch: optionalString,
163
+ automerge: optionalBoolean,
164
+ isConflicted: optionalBoolean,
165
+ isModified: optionalBoolean,
166
+ upgrades: z.array(branchUpgradeSchema).default([])
167
+ });
168
+ const repositorySchema = z.object({
169
+ problems: z.array(problemSchema).default([]),
170
+ branches: z.array(branchSchema).default([]),
171
+ packageFiles: z.record(z.string(), z.array(packageFileSchema)).default({}),
172
+ libYearsWithStatus: z.object({
173
+ libYears: z.object({ total: z.number() }).optional(),
174
+ dependencyStatus: z.object({
175
+ outdated: z.number(),
176
+ total: z.number()
177
+ }).optional()
178
+ }).optional(),
179
+ platform: optionalString,
180
+ defaultBranch: optionalString,
181
+ status: optionalString,
182
+ configFileName: optionalString
183
+ });
184
+ const reportSchema = z.object({
185
+ problems: z.array(problemSchema).default([]),
186
+ repositories: z.record(z.string(), repositorySchema)
187
+ });
188
+ var ReportFormatError = class extends Error {
189
+ name = "ReportFormatError";
190
+ };
191
+ /** Validate an already parsed JSON value. Throws ReportFormatError with a readable message. */
192
+ function parseReport(input) {
193
+ const result = reportSchema.safeParse(input);
194
+ if (!result.success) throw new ReportFormatError(`This does not look like a Renovate report (reportType=file), or its format changed:\n${z.prettifyError(result.error)}`);
195
+ return result.data;
196
+ }
197
+ // src/cli.ts
198
+ const USAGE = `Usage: renovate-report-html <report.json> [-o <dir>] [--title <title>]
199
+
200
+ Turn a Renovate JSON report (reportType=file) into a self-contained HTML page.
201
+
202
+ Options:
203
+ -o, --output <dir> Output directory (default: current directory). Writes index.html.
204
+ -t, --title <title> Page title (default: "Renovate report").
205
+ -h, --help Show this help.`;
206
+ /** Resolved next to the bundled CLI: dist/cli.mjs reads dist/viewer/index.html. */
207
+ const TEMPLATE_URL = new URL("./viewer/index.html", import.meta.url);
208
+ async function readJson(path) {
209
+ const text = await readFile(path, "utf8");
210
+ try {
211
+ return JSON.parse(text);
212
+ } catch (error) {
213
+ throw new ReportFormatError(`${path} is not valid JSON: ${error.message}`);
214
+ }
215
+ }
216
+ async function main(argv) {
217
+ const { values, positionals } = parseArgs({
218
+ args: argv,
219
+ allowPositionals: true,
220
+ options: {
221
+ output: {
222
+ type: "string",
223
+ short: "o",
224
+ default: "."
225
+ },
226
+ title: {
227
+ type: "string",
228
+ short: "t"
229
+ },
230
+ help: {
231
+ type: "boolean",
232
+ short: "h"
233
+ }
234
+ }
235
+ });
236
+ if (values.help) {
237
+ console.log(USAGE);
238
+ return 0;
239
+ }
240
+ const [input] = positionals;
241
+ if (!input || positionals.length > 1) {
242
+ console.error(USAGE);
243
+ return 2;
244
+ }
245
+ const data = toReportData(parseReport(await readJson(input)), { title: values.title });
246
+ const template = await readFile(TEMPLATE_URL, "utf8");
247
+ const outDir = resolve(values.output);
248
+ const outFile = join(outDir, "index.html");
249
+ await mkdir(outDir, { recursive: true });
250
+ await writeFile(outFile, renderHtml(template, data));
251
+ console.log(`Wrote ${outFile} (${data.repositories.length} repositories)`);
252
+ return 0;
253
+ }
254
+ main(process.argv.slice(2)).then((code) => {
255
+ process.exitCode = code;
256
+ }, (error) => {
257
+ const known = error instanceof ReportFormatError || error.code === "ENOENT";
258
+ console.error(`renovate-report-html: ${known ? error.message : error}`);
259
+ process.exitCode = 1;
260
+ });
261
+ export {};
@@ -0,0 +1,16 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <meta name="generator" content="renovate-report-html" />
7
+ <title>Renovate report</title>
8
+ <script type="module">var e,t,n,r,i,a,o,s,c,l,u=Symbol.for(`pv`),d={},f=[],p=/^m(i|n|o|s|text|space)$/,m=Array.isArray,h=f.slice,g=Object.assign;function _(e){e&&e.parentNode&&e.remove()}function v(n,r,i,a,o){var s={type:n,props:r,key:i,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:u,__v:o||++t,__i:-1,__u:0};return!o&&e.vnode&&e.vnode(s),s}function y(e){return e.children}function b(e,t){this.props=e,this.context=t,this.__g=0}function x(e,t){if(t==null)return e.__&&x(e.__,e.__i+1);for(var n;t<e.__k.length;t++)if((n=e.__k[t])&&n.__e)return n.__e;return typeof e.type!=`function`||e.props.__P?null:x(e)}function S(t){var n,r=t.__v,i=r.__e,a=[],o=[],s=t.__P;s&&((n=g({constructor:u},r)).__v=r.__v+1,e.vnode&&e.vnode(n),j(s,n,r,t.__n,s.namespaceURI,32&r.__u?[i]:null,a,i||x(r),32&r.__u,o),n.__v=r.__v,n.__.__k[n.__i]=n,N(a,n,o),r.__=r.__e=null,n.__e!=i&&C(n))}function C(e){if((e=e.__)&&e.__c&&!e.props.__P)return e.__e=null,e.__k.some(function(t){return t&&(e.__e=t.__e)}),C(e)}function w(t){(8&t.__g||(t.__g|=8,n.push(t),i++))&&r==e.debounceRendering||((r=e.debounceRendering)||queueMicrotask)(T)}function T(){try{for(var e,t=1;n.length;)n.length>t&&n.sort(a),e=n.shift(),t=n.length,8&e.__g&&S(e)}finally{(i=n.length)&&(r||queueMicrotask)(T)}}function ee(e,t,n,r,i,a,o,s,c,l,u){var p,m,h,g,_,v,y=r.__k||f,b=t.length;for(c=E(n,t,y,c,b),p=0;p<b;p++)(h=n.__k[p])!=null&&(m=~h.__i&&y[h.__i]||d,h.__i=p,v=j(e,h,m,i,a,o,s,c,l,u),g=h.__e,(m.ref!=h.ref||8&m.__u)&&(m.ref&&P(m.ref,null,h,m),h.ref&&u.push(h.ref,h.__c||g,h)),_||=g,4&h.__u?(c=D(h,c,e,!m.__v),m.__e&&(m.__e=null)):typeof h.type==`function`&&v!==void 0?c=v:g&&(c=g.nextSibling),h.__u&=-21);return n.__e=_,c}function E(e,t,n,r,i){var a,o,s,c,l,d,f,p,h,g=n.length,_=g,b=0,S=0,C=e.__k=Array(i);for(a=0;a<i;a++)(o=t[a])!=null&&typeof o!=`boolean`&&typeof o!=`function`?(typeof o!=`object`||o.constructor===String?o=C[a]=v(null,o):m(o)?o=C[a]=v(y,{children:o}):o.constructor===u&&o.__b?o=C[a]=v(o.type,o.props,o.key,o.ref,o.__v):C[a]=o,c=a+b,o.__=e,o.__b=e.__b+1,s=null,~(l=o.__i=O(o,n,c,_))&&(_--,(s=n[l])&&(s.__u|=2)),s&&s.__v?(o.__u|=16,l==c-1?b--:l==c+1?b++:l!=c&&(l>c?b--:b++,S=1)):(~l||(i>g?b--:i<g&&b++),typeof o.type!=`function`&&(o.__u|=4))):C[a]=null;if(S){for(d=[],f=[],a=0;a<i;a++)if((o=C[a])&&16&o.__u){for(b=0,p=d.length;b<p;)d[h=b+p>>1]<o.__i?b=h+1:p=h;d[b]=o.__i,f[a]=b+1}for(b=d.length;a--;)f[a]&&(f[a]==b?b--:C[a].__u|=4)}if(_)for(a=0;a<g;a++)!(s=n[a])||2&s.__u||(s.__e==r&&(r=x(s)),ie(s,s));return r}function D(e,t,n,r){var i,a,o,s;if(typeof e.type==`function`){if(e.props.__P)return t;if(i=e.__k)for(a=0;a<i.length;a++)i[a]&&(i[a].__=e,t=D(i[a],t,n,!1));return t}for(t&&!t.parentNode&&(t=x(e))&&!t.parentNode&&(t=null),o=e.__e,s=t;s&&s.nodeType==8;)s=s.nextSibling;for(o!=s&&(!r&&n.moveBefore&&o.parentNode?n.moveBefore(o,t):n.insertBefore(o,t||null)),t=o;(t&&=t.nextSibling)&&t.nodeType==8&&!t.data.startsWith(`$s`););return t}function O(e,t,n,r){var i,a=e.key,o=e.type,s=t[n],c=s&&!(2&s.__u);if(s===null&&a==null||c&&a==s.key&&o==s.type)return n;if(r>+!!c){for(i=n-1;i>=0;i--)if((s=t[i])&&!(2&s.__u)&&a==s.key&&o==s.type)return i;for(i=n+1;i<t.length;i++)if((s=t[i])&&!(2&s.__u)&&a==s.key&&o==s.type)return i}return-1}function k(e,t,n){n??=``,t[0]==`-`?e.setProperty(t,n):e[t]=n}function A(e,t,n,r,i){var a,o;if(t==`style`){if(typeof n==`string`)e.style.cssText=n;else{if(typeof r==`string`&&(e.style.cssText=r=``),r)for(t in r)n&&t in n||k(e.style,t);if(n)for(t in n)r&&n[t]==r[t]||k(e.style,t,n[t])}}else if(t[0]==`o`&&t[1]==`n`)typeof n!=`function`&&(n=null),typeof r!=`function`&&(r=null),(e.__e||={})[t]=n,n&&r||(o=l[t]||(l[t]=te(t)),(e.__a||={})[t]=c,a=t!=(t=t.replace(s,`$1`)),(t=t.slice(2))[0]<`a`&&(t=t.toLowerCase()),n?e.addEventListener(t,o,a):e.removeEventListener(t,o,a));else{if(i==`http://www.w3.org/2000/svg`)t=t.replace(/xlink(H|:h)/,`h`).replace(/sName$/,`s`);else if(t!=`width`&&t!=`height`&&t!=`href`&&t!=`list`&&t!=`form`&&t!=`tabIndex`&&t!=`download`&&t!=`rowSpan`&&t!=`colSpan`&&t!=`role`&&t!=`popover`&&t in e)try{e[t]=n??``;return}catch{}if(typeof n==`function`)return;n==null||!1===n&&t[4]!=`-`?e.removeAttribute(t):e.setAttribute(t,t==`popover`&&n==1?``:n)}}function te(t){return function(n){var r=this.__e;if(r){if(r=r[t],n[o]==null)n[o]=c++;else if(n[o]<this.__a[t])return;return r(e.event?e.event(n):n)}}}function j(t,n,r,i,a,o,s,c,l,d){var p,h,v,S,C,w,T,E,D,O,k,A,te,j,N,P,F,I,L=n.type;if(n.constructor!==u)return null;128&r.__u&&(l=32&r.__u,p=r.__c.__z)&&(n.__u|=l,h=o=[],p.nodeType==8?c=M(p,o):o.push(p),c=o[0]||c),(p=e.__b)&&p(n);n:if(typeof L==`function`){v=s.length;try{if(E=n.props,D=(p=L.prototype)&&p.render,O=(p=L.contextType)&&i[p.__c],k=p?O?O.props.value:p.__:i,(S=r.__c)?(n.__c=S,2&S.__g&&(S.__g|=1)):(D?n.__c=S=new L(E,k):(n.__c=S=new b(E,k),S.constructor=L,S.render=ae),O&&O.sub(S),S.state||(S.state={}),S.__n=i,S.__g|=8,S.__h=[],S.__k=[]),D&&(S.__s||(S.__s=S.state),L.getDerivedStateFromProps&&(S.__s==S.state&&(S.__s=g({},S.__s)),g(S.__s,L.getDerivedStateFromProps(E,S.__s)))),C=S.props,w=S.state,S.__v=n,r.__c){if(E!==C&&D&&!L.getDerivedStateFromProps&&S.componentWillReceiveProps&&S.componentWillReceiveProps(E,k),n.__v==r.__v&&!(8&S.__g)||!(4&S.__g)&&S.shouldComponentUpdate&&!1===S.shouldComponentUpdate(E,S.__s,k)){n.__v!=r.__v&&(S.props=E,S.state=S.__s,S.__g&=-9),n.__e=r.__e,n.__k=r.__k,n.__k.some(function(e){e&&(e.__=n)}),f.push.apply(S.__h,S.__k),S.__k=[],S.__h.length&&s.push(S),c=x(r);break n}S.componentWillUpdate&&S.componentWillUpdate(E,S.__s,k),D&&S.componentDidUpdate&&S.__h.push(function(){S.componentDidUpdate(C,w,T)})}else D&&!L.getDerivedStateFromProps&&S.componentWillMount&&S.componentWillMount(),D&&S.componentDidMount&&S.__h.push(S.componentDidMount);S.context=k,S.props=E,S.__P=t,S.__g&=-5,A=e.__r,te=D?25:0;do S.__g&=-9,A&&A(n),p=S.render(S.props,S.state=S.__s,S.context);while(8&S.__g&&++te<25);D&&(f.push.apply(S.__h,S.__k),S.__k=[]),S.state=S.__s,S.getChildContext&&(i=g({},i,S.getChildContext())),D&&r.__c&&S.getSnapshotBeforeUpdate&&(T=S.getSnapshotBeforeUpdate(C,w)),j=p&&p.type===y&&p.key==null?p.props.children:p,E.__P&&(p=c,a=(t=E.__P).namespaceURI,l=o=null,r.props&&r.props.__P!=t&&(r.__k.some(function(e){e&&ie(e,e)}),r.__k=null),c=r.__k?x(r,0):null),c=ee(t,m(j)?j:[j],n,r,i,a,o,s,c,l,d),E.__P&&(n.__e=null,c=p),n.__u&=-161,h&&h.some(_),S.__h.length&&s.push(S),1&S.__g&&(S.__g&=-4)}catch(t){if(s.length=v,n.__v=null,l||o){if(t&&t.then){if(n.__u|=128|l,o){for(~(F=o.indexOf(c||void 0))||(F=o.length);(I=o[F-1])&&I.nodeType==8;)F--;for(;F<o.length;F++)if(I=o[F]){if(o[F]=null,N){if(I==P)break}else{if(I.nodeType!=8)break;I.data.startsWith(`$s`)&&(P=M(N=I))}}}if(!N){for(;c&&c.nodeType==8&&c.nextSibling;)c=c.nextSibling;N=c}(p=M(N=n.__c.__z||(n.__c.__z=N)))?(n.__e=N,c=p):n.__e=c,c&&=c.nextSibling}else o&&o.some(_)}else n.__e=r.__e;n.__k||=r.__k||[],t&&t.then||ne(n),e.__e(t,n,r)}}else c=n.__e=re(r.__e,n,r,i,a,o,s,l,d,t);return(p=e.diffed)&&p(n),c}function M(e,t){if(e&&e.nodeType==8&&e.data.startsWith(`$s`))for(var n=1;e=e.nextSibling;){if(e.nodeType==8){if(e.data.startsWith(`$s`))n++;else if(e.data.startsWith(`/$s`)&&!--n)return e}t&&t.push(e)}}function ne(e){e&&(e.__c&&(e.__c.__g|=4),e.__k&&e.__k.some(ne))}function N(t,n,r){for(var i=0;i<r.length;)P(r[i++],r[i++],r[i++]);e.__c&&e.__c(n,t),t.some(function(n){try{t=n.__h,n.__h=[],t.some(function(e){e.call(n)})}catch(t){e.__e(t,n.__v)}})}function re(t,n,r,i,a,o,s,c,l,u){var f,g,v,y,b,S,C,w,T=r.props||d,E=n.props,D=n.type;if(D==`svg`?a=`http://www.w3.org/2000/svg`:D==`math`?a=`http://www.w3.org/1998/Math/MathML`:a||=`http://www.w3.org/1999/xhtml`,o){for(f=0;f<o.length;f++)if((b=o[f])&&(D?b.localName==D:b.nodeType==3)){t=b,o[f]=null;break}}if(!t){if(w=u.ownerDocument||document,!D)return w.createTextNode(E);t=w.createElementNS(a,D,E.is?E:u),c&&=(e.__m&&e.__m(n,o),!1),o=null}if(D){if(u=D==`template`&&t.content||t,o=D==`textarea`&&E.defaultValue!=null?null:o&&h.call(u.childNodes),!c&&o)for(T={},f=0;f<t.attributes.length;f++)T[(b=t.attributes[f]).name]=b.value;for(f in T)b=T[f],f==`dangerouslySetInnerHTML`?v=b:f==`children`||f in E||f==`value`&&`defaultValue`in E||f==`checked`&&`defaultChecked`in E||A(t,f,null,b,a);for(f in E)b=E[f],f==`children`?y=b:f==`dangerouslySetInnerHTML`?g=b:f==`value`?S=b:f==`checked`?C=b:c&&typeof b!=`function`||T[f]===b||A(t,f,b,T[f],a);g?(c||v&&(g.__html==v.__html||g.__html==t.innerHTML)||(t.innerHTML=g.__html),n.__k=[]):(v&&(t.textContent=``),(D==`foreignObject`||a==`http://www.w3.org/1998/Math/MathML`&&p.test(D))&&(a=`http://www.w3.org/1999/xhtml`),ee(u,m(y)?y:[y],n,r,i,a,o,s,o?o[0]:r.__k&&x(r,0),c,l),o&&o.some(_)),c&&D!=`textarea`||(f=`value`,D==`progress`&&S==null?t.removeAttribute(f):S==null||S===t[f]&&(D!=`progress`||S)||A(t,f,S,T[f],a),f=`checked`,C!=null&&C!=t[f]&&A(t,f,C,T[f],a))}else T===E||c&&t.data==E||(t.data=E);return t}function P(t,n,r,i){try{typeof t==`function`?n?n.__x=t(n)||1:(i&&=i.__c||i.__e)&&(n=i.__x)&&(i.__x=null,typeof n==`function`?n():t(null)):t.current=n}catch(t){e.__e(t,r)}}function ie(t,n,r){var i,a,o,s;if(e.unmount&&e.unmount(t),!(i=t.ref)||i.current&&i.current!=t.__e||P(i,null,n,t),i=t.__c){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(t){e.__e(t,n)}i.__P=i.__n=null}if(i=t.__k)for(s=0;s<i.length;s++)i[s]&&ie(i[s],n,typeof t.type!=`function`||r&&!t.props.__P);!r&&(i=t.__c)&&(i=i.__z)&&(a=M(i,o=[]))&&(i==t.__e&&o.some(_),_(a),_(i)),r||_(t.__e),t.__e=t.__c=t.__=null}function ae(e,t,n){return this.constructor(e,n)}function F(t,n){var r,i,a,o;e.__&&e.__(t,n),n.nodeType==9&&(n=n.documentElement),i=(r=t&&32&t.__u)?null:n.__k,n.__k=v(y,{children:[t]}),a=[],o=[],j(n,n.__k,i||d,d,n.namespaceURI,i?null:n.firstChild?h.call(n.childNodes):null,a,i?i.__e:n.firstChild,r,o),N(a,n.__k,o),n.__k.props.children=null}e={__e:function(e,t,n,r){for(var a,o,s;t=t.__;)if((a=t.__c)&&!(1&a.__g)){a.__g|=4;try{if((s=(o=a.constructor)&&o.getDerivedStateFromError)&&a.setState(o.getDerivedStateFromError(e)),a.componentDidCatch&&(a.componentDidCatch(e,r||{}),s=1),s&&8&a.__g)return void(a.__g|=2)}catch(t){e=t}}throw i=0,e}},t=0,b.prototype.setState=function(e,t){var n=this.__s;n&&n!=this.state||(n=this.__s=g({},this.state)),typeof e==`function`&&(e=e(g({},n),this.props)),e&&(g(n,e),this.__v&&(t&&this.__k.push(t),w(this)))},b.prototype.forceUpdate=function(e){this.__v&&(this.__g|=4,e&&this.__h.push(e),w(this))},b.prototype.render=y,n=[],i=0,a=function(e,t){return e.__v.__b-t.__v.__b},o=Symbol(),s=/(PointerCapture)$|Capture$/i,c=0,l={};var I,L,oe,se,ce=Object.is,le=0,ue=[],de=[],R=e,fe=R.__b,pe=R.__r,me=R.diffed,he=R.__c,ge=R.unmount,_e=R.__;function ve(e,t){R.__h&&R.__h(L,e,le||t),le=0;var n=L.__H||(L.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function z(e){return le=1,ye(De,e)}function ye(e,t,n){var r=ve(I++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):De(void 0,t),function(e){var t=(r.__N||r.__)[0],n=r.t(t,e);ce(t,n)||(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=L,!L.__f)){L.__f=!0;var i=L.shouldComponentUpdate;L.shouldComponentUpdate=function(e,t,n){var r=this.__H;if(!r)return!0;var a=!1,o=this.props!=e;if(r.__.some(function(e){e.__N&&(a=!0,ce(e.__[0],e.__N[0])||(o=!0))}),i){var s=i.call(this,e,t,n);return a?s||o:s}return!a||o}}return r.__}function be(e,t){var n=ve(I++,3);!R.__s&&Ee(n.__H,t)&&(n.__P=!0,n.__=e,n.u=t,L.__H.__h.push(n))}function B(e,t){var n=ve(I++,7);return Ee(n.__H,t)&&(n.__=e(),n.__H=t),n.__}function xe(){var e;do{for(;e=de.shift();)try{V(e)}catch(t){R.__e(t,{__:(e=e.__P)&&e.__v})}for(;e=ue.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(V),t.__h.some(Te),t.__h=[]}catch(n){t.__h=[],R.__e(n,e.__v)}}}while(de.length)}R.__b=function(e){L=null,fe&&fe(e)},R.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),_e&&_e(e,t)},R.__r=function(e){pe&&pe(e),I=0;var t=(L=e.__c).__H;t&&(oe==L?L.__h=[]:(t.__h.some(V),t.__h.some(Te),I=0),t.__h=[],t.__.some(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})),oe=L},R.diffed=function(e){me&&me(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&we(ue.push(t)),t.__H.__.some(function(e){e.u&&(e.__H=e.u)})),oe=L=null},R.__c=function(e,t){t.some(function(e){try{e.__h.some(V),e.__h=e.__h.filter(function(e){return!e.__||Te(e)})}catch(t){e.__h=[function(){throw t}]}}),he&&he(e,t)},R.unmount=function(e){ge&&ge(e);var t,n,r=e.__c;r&&r.__H&&(r.__H.__.some(function(r){try{if(r.__P&&r.__c){if(n===void 0){for(n=e.__;n&&(!n.__c||!n.__c.__P);)n=n.__;n&&=n.__c}r.__P=n,we(de.push(r))}else V(r)}catch(e){t=e}}),r.__H=void 0,t&&R.__e(t,r.__v))};var Se=typeof requestAnimationFrame==`function`;function Ce(e){var t,n=function(){clearTimeout(r),Se&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);Se&&(t=requestAnimationFrame(n))}function we(e){e!=1&&se==R.requestAnimationFrame||((se=R.requestAnimationFrame)||Ce)(xe)}function V(e){var t=L,n=e.__c;typeof n==`function`&&(e.__c=void 0,n()),L=t}function Te(e){var t=L;e.__c=e.__(),L=t}function Ee(e,t){return!e||e.length!=t.length||t.some(function(t,n){return!ce(t,e[n])})}function De(e,t){return typeof t==`function`?t(e):t}function*H(e){for(let t of e)for(let e of t.managers)for(let n of e.packageFiles)for(let r of n.deps)yield{repo:t.name,manager:e.name,packageFile:n.path,dep:r}}function Oe(e){return e.updateType??`unknown`}function ke(e){let t={repositories:e.repositories.length,deps:0,depsWithUpdates:0,updatesByType:{},skippedByReason:{},problems:e.problems.length+e.repositories.reduce((e,t)=>e+t.problems.length,0)};for(let{dep:n}of H(e.repositories)){t.deps++,n.updates.length>0&&t.depsWithUpdates++;for(let e of n.updates)Ae(t.updatesByType,Oe(e));n.skipReason&&Ae(t.skippedByReason,n.skipReason)}return t}function Ae(e,t){e[t]=(e[t]??0)+1}function je(e){return`${e.datasource??`unknown`}:${e.packageName??e.name}`}function Me(e){let t=new Map;for(let n of H(e)){let e=je(n.dep),r=t.get(e);r||(r={id:e,name:n.dep.packageName??n.dep.name,datasource:n.dep.datasource,usages:[],repos:[]},t.set(e,r)),r.usages.push(n),r.repos.includes(n.repo)||r.repos.push(n.repo);let i=n.dep.currentVersionAgeInDays;i!==void 0&&(r.maxAgeInDays===void 0||i>r.maxAgeInDays)&&(r.maxAgeInDays=i);for(let e of n.dep.updates)e.newVersion&&(!r.latest||Ne(e.newVersion,r.latest)>0)&&(r.latest=e.newVersion)}return[...t.values()].sort((e,t)=>t.repos.length-e.repos.length||e.name.localeCompare(t.name))}function Ne(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:`base`})}function Pe(e){return e===void 0?`unknown`:e<90?`fresh`:e<365?`aging`:e<730?`stale`:`ancient`}function Fe(e){let t=new Map;for(let{repo:n,dep:r}of e.usages){let e=r.currentVersion??r.currentValue??r.lockedVersion;if(e===void 0)continue;let i=t.get(e);i||(i={version:e,uses:0,repos:[],ageInDays:r.currentVersionAgeInDays},t.set(e,i)),i.uses++,i.repos.includes(n)||i.repos.push(n)}return[...t.values()].sort((e,t)=>t.uses-e.uses||Ne(t.version,e.version))}var Ie={query:``,datasources:[]};function Le(e){let[t=``,n=``]=e.replace(/^#\/?/,``).split(`?`),[r,...i]=t.split(`/`),a=decodeURIComponent(i.join(`/`)),o=new URLSearchParams(n);switch(r){case``:return{name:`overview`};case`repos`:return{name:`repos`};case`repo`:return a?{name:`repo`,repo:a}:{name:`repos`};case`packages`:return{name:`packages`,query:o.get(`q`)??``,datasources:(o.get(`ds`)??``).split(`,`).filter(Boolean)};case`package`:return a?{name:`package`,id:a}:{name:`packages`,...Ie};case`problems`:return{name:`problems`};default:return{name:`notFound`,path:t}}}var U={overview:()=>`#/`,repos:()=>`#/repos`,repo:e=>`#/repo/${encodeURIComponent(e)}`,packages:({query:e,datasources:t}=Ie)=>{let n=new URLSearchParams;e&&n.set(`q`,e),t.length&&n.set(`ds`,t.join(`,`));let r=n.toString().replaceAll(`%2C`,`,`);return r?`#/packages?${r}`:`#/packages`},package:e=>`#/package/${encodeURIComponent(e)}`,problems:()=>`#/problems`};function Re(){let[e,t]=z(()=>Le(location.hash));return be(()=>{let e=()=>{let e=Le(location.hash);t(t=>(t.name!==e.name&&window.scrollTo(0,0),e))};return window.addEventListener(`hashchange`,e),()=>window.removeEventListener(`hashchange`,e)},[]),e}function ze(e){history.replaceState(null,``,e),window.dispatchEvent(new HashChangeEvent(`hashchange`))}var Be=Symbol.for(`pv`),Ve=0;Array.isArray;function W(t,n,r,i,a,o){n||={};var s,c,l=n;if(`ref`in l&&typeof t!=`function`)for(c in l={},n)c==`ref`?s=n[c]:l[c]=n[c];var u={type:t,props:l,key:r,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:Be,__v:--Ve,__i:-1,__u:0};return(a||o)&&(u.__source=a,u.__self=o),e.vnode&&e.vnode(u),u}function He(e){return e<60?`${e} d`:e<730?`${Math.round(e/30.44)} mo`:`${(e/365.25).toFixed(1)} y`}function G({days:e,timestamp:t}){if(e===void 0)return W(`span`,{class:`muted`,children:`n/a`});let n=t?`Released ${t.slice(0,10)} (${e} days ago)`:`${e} days old`;return W(`span`,{class:`age age-${Pe(e)}`,title:n,children:He(e)})}var Ue=e=>e.replace(/^sha256:/,``).slice(0,7);function We({dep:e}){let t=e.currentVersion??e.lockedVersion,n=e.currentValue;return W(`span`,{class:`version`,children:[n??t??W(`span`,{class:`muted`,children:`none`}),n&&t&&t!==n&&W(`span`,{class:`muted`,children:[` (`,t,`)`]}),e.currentDigest&&W(`span`,{class:`muted digest`,children:[` @`,Ue(e.currentDigest)]})]})}function K({type:e}){return W(`span`,{class:`badge type-${e}`,children:e})}function Ge({updates:e}){return e.length===0?null:W(`ul`,{class:`updates`,children:e.map(e=>W(`li`,{children:[W(K,{type:Oe(e)}),` `,W(`span`,{class:`version`,children:e.newValue??e.newVersion??(e.newDigest&&`@${Ue(e.newDigest)}`)}),e.isBreaking&&W(`span`,{class:`badge breaking`,children:`breaking`})]},`${e.updateType}-${e.newVersion}-${e.newDigest}`))})}var Ke=[[60,`fatal`],[50,`error`],[40,`warn`],[30,`info`]];function qe(e){return e===void 0?`unknown`:Ke.find(([t])=>e>=t)?.[1]??`debug`}var Je=e=>/^https?:\/\//.test(e);function Ye({problems:e}){return W(`ul`,{class:`problems`,children:e.map((e,t)=>{let n=qe(e.level);return W(`li`,{class:`problem level-${n}`,children:[W(`div`,{class:`problem-head`,children:W(`span`,{class:`badge level-${n}`,children:n})}),W(`p`,{class:`problem-msg`,children:e.message}),Object.keys(e.context).length>0&&W(`dl`,{class:`problem-context`,children:Object.entries(e.context).map(([e,t])=>W(`div`,{children:[W(`dt`,{children:e}),W(`dd`,{children:Je(t)?W(`a`,{href:t,target:`_blank`,rel:`noreferrer`,children:t}):W(`code`,{children:t})})]},e))})]},t)})})}function q({label:e,value:t,tone:n}){return W(`div`,{class:`stat ${n?`tone-${n}`:``}`,children:[W(`div`,{class:`stat-value`,children:t}),W(`div`,{class:`stat-label`,children:e})]})}function Xe({counts:e,order:t,classFor:n,label:r=e=>e}){let i=t?.filter(t=>t in e)??[],a=Object.keys(e).filter(e=>!i.includes(e)).sort((t,n)=>(e[n]??0)-(e[t]??0)),o=[...i,...a],s=Math.max(1,...Object.values(e));return o.length===0?W(`p`,{class:`muted`,children:`None.`}):W(`ul`,{class:`bars`,children:o.map(t=>W(`li`,{children:[W(`span`,{class:`bar-label`,children:r(t)}),W(`span`,{class:`bar-track`,children:W(`span`,{class:`bar ${n?.(t)??``}`,style:{width:`${(e[t]??0)/s*100}%`}})}),W(`span`,{class:`bar-count`,children:e[t]})]},t))})}function J({columns:e,rows:t,rowKey:n,initialSort:r,empty:i=`Nothing to show.`}){let[a,o]=z(r),s=B(()=>{let r=t.map((e,t)=>({row:e,key:`${n(e)}#${t}`})),i=a&&e[a.column]?.sort;if(!a||!i)return r;let o=a.desc?-1:1;return r.sort(({row:e},{row:t})=>{let n=i(e),r=i(t);return n===void 0||r===void 0?n===r?0:n===void 0?1:-1:typeof n==`number`&&typeof r==`number`?(n-r)*o:String(n).localeCompare(String(r),void 0,{numeric:!0})*o})},[t,e,a,n]);return t.length===0?W(`p`,{class:`muted`,children:i}):W(`div`,{class:`table-wrap`,children:W(`table`,{children:[W(`thead`,{children:W(`tr`,{children:e.map((e,t)=>{let n=a?.column===t,r=n?a.desc?`descending`:`ascending`:void 0;return W(`th`,{class:e.class,"aria-sort":r,children:e.sort?W(`button`,{type:`button`,class:`sort`,onClick:()=>o({column:t,desc:n?!a.desc:!!e.descFirst}),children:[e.label,W(`span`,{class:`sort-arrow`,children:n?a.desc?`▼`:`▲`:``})]}):e.label},e.label)})})}),W(`tbody`,{children:s.map(({row:t,key:n})=>W(`tr`,{children:e.map(e=>W(`td`,{class:e.class,children:e.render(t)},e.label))},n))})]})})}function Y(){return W(`p`,{class:`legend muted`,children:[`Age of the version in use: `,W(`span`,{class:`age age-fresh`,children:`under 3 mo`}),` `,W(`span`,{class:`age age-aging`,children:`under 1 y`}),` `,W(`span`,{class:`age age-stale`,children:`under 2 y`}),` `,W(`span`,{class:`age age-ancient`,children:`2 y or more`})]})}var Ze=[`major`,`minor`,`patch`,`digest`,`pin`,`pinDigest`,`lockFileMaintenance`,`bump`,`replacement`,`rollback`];function X(e,t,n=`${t}s`){return`${e} ${e===1?t:n}`}function Qe(e){let t=e=>{let t=Ze.indexOf(e);return t===-1?Ze.length:t};return[...new Set(e)].sort((e,n)=>t(e)-t(n)||e.localeCompare(n))}function $e({counts:e,types:t}){return W(`span`,{class:`update-counts`,children:t.map(t=>W(`span`,{class:`update-count`,children:e[t]?W(y,{children:[W(K,{type:t}),` `,W(`span`,{class:`count`,children:e[t]})]}):null},t))})}function Z({href:e,children:t,primary:n}){return W(`a`,{class:`button ${n?`button-primary`:``}`,href:e,target:`_blank`,rel:`noreferrer`,children:t})}var et=({repos:e})=>W(`ul`,{children:e.map(e=>W(`li`,{children:W(`a`,{href:U.repo(e),children:e})},e))});function tt({repos:e,limit:t=5}){let n=[...e].sort((e,t)=>e.localeCompare(t)),r=n.slice(t);return W(`div`,{class:`repo-list`,children:[W(et,{repos:n.slice(0,t)}),r.length>0&&W(`details`,{children:[W(`summary`,{children:[`Show `,r.length,` more`]}),W(et,{repos:r})]})]})}function nt({data:e,summary:t}){let n=Object.values(t.updatesByType).reduce((e,t)=>e+t,0),r=e.repositories.filter(e=>e.problems.length>0),i=Object.values(t.skippedByReason).reduce((e,t)=>e+t,0);return W(y,{children:[W(`h1`,{children:`Overview`}),W(`div`,{class:`stats`,children:[W(q,{label:`Repositories`,value:W(`a`,{href:U.repos(),children:t.repositories})}),W(q,{label:`Dependencies`,value:t.deps}),W(q,{label:`Dependencies with updates`,value:t.depsWithUpdates}),W(q,{label:`Pending updates`,value:n}),W(q,{label:`Skipped`,value:i}),W(q,{label:`Problems`,value:W(`a`,{href:U.problems(),children:t.problems}),tone:t.problems?`warn`:void 0})]}),t.problems>0&&W(`section`,{class:`callout callout-warn`,children:[W(`h2`,{children:`Problems`}),W(`p`,{children:[e.problems.length>0&&W(y,{children:[X(e.problems.length,`global problem`),`. `]}),r.length>0&&W(y,{children:[X(r.length,`repository`,`repositories`),` with problems:`,` `,r.map((e,t)=>W(`span`,{children:[t>0&&`, `,W(`a`,{href:U.repo(e.name),children:e.name}),` (`,e.problems.length,`)`]},e.name)),`.`]})]}),W(`a`,{class:`button`,href:U.problems(),children:`See all problems`})]}),W(`div`,{class:`columns`,children:[W(`section`,{children:[W(`h2`,{children:`Pending updates by type`}),W(Xe,{counts:t.updatesByType,order:Ze,classFor:e=>`type-${e}`,label:e=>W(K,{type:e})})]}),W(`section`,{children:[W(`h2`,{children:`Skipped dependencies`}),W(Xe,{counts:t.skippedByReason})]})]}),W(`p`,{class:`actions`,children:[W(`a`,{class:`button`,href:U.repos(),children:[`View all `,X(t.repositories,`repository`,`repositories`)]}),W(`a`,{class:`button`,href:U.packages(),children:`Browse packages`})]})]})}var rt={npm:{hosts:[`registry.npmjs.org`],link:e=>({label:`npm`,url:`https://www.npmjs.com/package/${e}`})},pypi:{hosts:[`pypi.org`],link:e=>({label:`PyPI`,url:`https://pypi.org/project/${e}/`})},go:{hosts:[`proxy.golang.org`],link:e=>({label:`pkg.go.dev`,url:`https://pkg.go.dev/${e}`})},"github-tags":{hosts:[`github.com`,`api.github.com`],link:it},"github-releases":{hosts:[`github.com`,`api.github.com`],link:it},"github-digest":{hosts:[`github.com`,`api.github.com`],link:it},"github-runners":{hosts:[],link:()=>({label:`GitHub`,url:`https://github.com/actions/runner-images`})},docker:{hosts:[],link:at},crate:{hosts:[`crates.io`,`index.crates.io`],link:e=>({label:`crates.io`,url:`https://crates.io/crates/${e}`})},rubygems:{hosts:[`rubygems.org`],link:e=>({label:`RubyGems`,url:`https://rubygems.org/gems/${e}`})},nuget:{hosts:[`api.nuget.org`,`www.nuget.org`],link:e=>({label:`NuGet`,url:`https://www.nuget.org/packages/${e}`})},packagist:{hosts:[`repo.packagist.org`,`packagist.org`],link:e=>({label:`Packagist`,url:`https://packagist.org/packages/${e}`})},hex:{hosts:[`hex.pm`],link:e=>({label:`Hex`,url:`https://hex.pm/packages/${e}`})},dart:{hosts:[`pub.dartlang.org`,`pub.dev`],link:e=>({label:`pub.dev`,url:`https://pub.dev/packages/${e}`})},maven:{hosts:[`repo1.maven.org`,`repo.maven.apache.org`],link:ot},"terraform-provider":{hosts:[`registry.terraform.io`],link:e=>({label:`Terraform Registry`,url:`https://registry.terraform.io/providers/${e}`})},"terraform-module":{hosts:[`registry.terraform.io`],link:e=>({label:`Terraform Registry`,url:`https://registry.terraform.io/modules/${e}`})},"golang-version":{hosts:[],link:()=>({label:`go.dev`,url:`https://go.dev/doc/devel/release`})},"node-version":{hosts:[],link:()=>({label:`nodejs.org`,url:`https://nodejs.org/en/about/previous-releases`})},"python-version":{hosts:[],link:()=>({label:`python.org`,url:`https://www.python.org/downloads/`})}};function it(e){return/^[\w.-]+\/[\w.-]+$/.test(e)?{label:`GitHub`,url:`https://github.com/${e}`}:void 0}function at(e){let[t=``,...n]=e.split(`/`),r=n.join(`/`);if(t===`docker.io`||t===`index.docker.io`)return at(r);if(t===`ghcr.io`)return{label:`GitHub Packages`,url:`https://ghcr.io/${r}`};if(t===`quay.io`)return{label:`Quay`,url:`https://quay.io/repository/${r}`};if(t===`mcr.microsoft.com`)return{label:`Microsoft Artifact Registry`,url:`https://mcr.microsoft.com/artifact/mar/${r}`};if(!(n.length>0&&(t.includes(`.`)||t.includes(`:`)||t===`localhost`)))return{label:`Docker Hub`,url:`https://hub.docker.com/${n.length===0||t===`library`?`_/${n.length?r:t}`:`r/${e}`}`}}function ot(e){let[t,n]=e.split(`:`);if(t&&n)return{label:`Maven Central`,url:`https://central.sonatype.com/artifact/${t}/${n}`}}function st(e){try{return new URL(e).host}catch{return}}function ct(e){let t=e.datasource?rt[e.datasource]:void 0;if(t){if(e.registryUrl&&t.hosts.length>0){let n=st(e.registryUrl);if(!n||!t.hosts.includes(n))return}return t.link(e.packageName??e.name)}}var Q={siNpm:{path:`M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z`,hex:`CB3837`},siNodedotjs:{path:`M11.998,24c-0.321,0-0.641-0.084-0.922-0.247l-2.936-1.737c-0.438-0.245-0.224-0.332-0.08-0.383 c0.585-0.203,0.703-0.25,1.328-0.604c0.065-0.037,0.151-0.023,0.218,0.017l2.256,1.339c0.082,0.045,0.197,0.045,0.272,0l8.795-5.076 c0.082-0.047,0.134-0.141,0.134-0.238V6.921c0-0.099-0.053-0.192-0.137-0.242l-8.791-5.072c-0.081-0.047-0.189-0.047-0.271,0 L3.075,6.68C2.99,6.729,2.936,6.825,2.936,6.921v10.15c0,0.097,0.054,0.189,0.139,0.235l2.409,1.392 c1.307,0.654,2.108-0.116,2.108-0.89V7.787c0-0.142,0.114-0.253,0.256-0.253h1.115c0.139,0,0.255,0.112,0.255,0.253v10.021 c0,1.745-0.95,2.745-2.604,2.745c-0.508,0-0.909,0-2.026-0.551L2.28,18.675c-0.57-0.329-0.922-0.945-0.922-1.604V6.921 c0-0.659,0.353-1.275,0.922-1.603l8.795-5.082c0.557-0.315,1.296-0.315,1.848,0l8.794,5.082c0.57,0.329,0.924,0.944,0.924,1.603 v10.15c0,0.659-0.354,1.273-0.924,1.604l-8.794,5.078C12.643,23.916,12.324,24,11.998,24z M19.099,13.993 c0-1.9-1.284-2.406-3.987-2.763c-2.731-0.361-3.009-0.548-3.009-1.187c0-0.528,0.235-1.233,2.258-1.233 c1.807,0,2.473,0.389,2.747,1.607c0.024,0.115,0.129,0.199,0.247,0.199h1.141c0.071,0,0.138-0.031,0.186-0.081 c0.048-0.054,0.074-0.123,0.067-0.196c-0.177-2.098-1.571-3.076-4.388-3.076c-2.508,0-4.004,1.058-4.004,2.833 c0,1.925,1.488,2.457,3.895,2.695c2.88,0.282,3.103,0.703,3.103,1.269c0,0.983-0.789,1.402-2.642,1.402 c-2.327,0-2.839-0.584-3.011-1.742c-0.02-0.124-0.126-0.215-0.253-0.215h-1.137c-0.141,0-0.254,0.112-0.254,0.253 c0,1.482,0.806,3.248,4.655,3.248C17.501,17.007,19.099,15.91,19.099,13.993z`,hex:`5FA04E`},siPypi:{path:`M23.922 13.58v3.912L20.55 18.72l-.078.055.052.037 3.45-1.256.026-.036v-3.997l-.053-.036-.025.092z M23.621 5.618l-3.04 1.107v3.912l3.339-1.215V5.509zM23.92 13.457V9.544l-3.336 1.215v3.913zM20.47 14.71V10.8L17.17 12v3.913zM17.034 19.996v-3.912l-3.313 1.206v3.912zM17.17 16.057v3.868l3.314-1.206V14.85l-3.314 1.206zm2.093 1.882c-.367.134-.663-.074-.663-.463s.296-.814.663-.947c.365-.133.662.075.662.464s-.297.814-.662.946z M13.225 9.315l.365-.132-3.285-1.197-3.323 1.21.102.037 3.184 1.16zM20.507 10.664V6.751L17.17 7.965v3.913zM17.058 11.918V8.005l-3.302 1.202v3.912zM13.643 9.246l-3.336 1.215v3.913l3.336-1.215zM6.907 13.165l3.322 1.209v-3.913L6.907 9.252z M10.34 7.873l3.281 1.193V5.198l-3.28-1.193zM20.507 2.715L17.19 3.922v3.913l3.317-1.207zM16.95 3.903L13.724 2.73l-3.269 1.19 3.225 1.174zM15.365 4.606l-1.624.592v3.868l3.317-1.207V3.991l-1.693.615zm-.391 2.778c-.367.134-.662-.074-.662-.464s.295-.813.662-.946c.366-.133.663.074.663.464s-.297.813-.663.946z M10.229 18.41v-3.914l-3.322-1.209V17.2zM13.678 17.182v-3.913l-3.371 1.227v3.913z M13.756 17.154l3.3-1.2V12.04l-3.3 1.2zM13.678 21.217l-3.371 1.227v-3.912h-.078v3.912l-3.322-1.209v-3.913l-.053-.058-.025-.06-3.336-1.21v-3.948l.034.013 3.287 1.196.015-.078-3.261-1.187 3.26-1.187v-.109L3.876 9.62l-.307-.112 3.26-1.188v.877l.079-.055V6.769l3.257 1.185.058-.061L7.084 6.75l-.102-.037 3.24-1.179v-.083L6.854 6.677v.018l-.025.018v1.523L3.44 9.47v.02l-.025.017v4.007l-3.39 1.233v.019L0 14.784v3.995l.025.037 3.4 1.237.008-.006.007.01 3.4 1.238.008-.006.006.01 3.4 1.237.014-.009.012.01 3.45-1.256.026-.037-.078-.027zM3.493 9.563l3.257 1.185-3.257 1.187V9.562zM3.4 19.96L.078 18.752v-3.913l2.361.86.96.349v3.913zm.015-3.99L.335 14.85l-.182-.066 3.262-1.187v2.374zm3.399 5.231l-3.321-1.209v-3.912l3.321 1.209v3.912zM23.791 5.434l-3.21-1.17v2.338zM20.387 2.643l-3.24-1.18-3.27 1.19 3.247 1.182z`,hex:`3775A9`},siPython:{path:`M11.858 0c-.978.005-1.913.088-2.736.234C6.7.662 6.26 1.558 6.26 3.21v2.182h5.725v.727H4.111c-1.664 0-3.121 1-3.577 2.903-.526 2.181-.549 3.542 0 5.82.407 1.694 1.379 2.902 3.043 2.902h1.969v-2.616c0-1.89 1.635-3.557 3.576-3.557h5.72c1.591 0 2.862-1.31 2.862-2.91v-5.45c0-1.553-1.309-2.718-2.863-2.977A18 18 0 0 0 11.858 0M8.762 1.755c.591 0 1.074.491 1.074 1.095 0 .601-.483 1.087-1.074 1.087A1.08 1.08 0 0 1 7.688 2.85c0-.604.48-1.095 1.074-1.095m9.656 4.364v2.543c0 1.971-1.671 3.63-3.577 3.63H9.122c-1.566 0-2.862 1.34-2.862 2.91v5.452c0 1.551 1.349 2.464 2.862 2.91 1.813.532 3.55.628 5.72 0 1.44-.418 2.862-1.258 2.862-2.91V18.47h-5.719v-.727h8.582c1.664 0 2.284-1.16 2.862-2.903.598-1.793.573-3.518 0-5.819-.41-1.656-1.196-2.903-2.862-2.903zm-3.216 13.807a1.08 1.08 0 0 1 1.074 1.088c0 .604-.48 1.094-1.074 1.094-.592 0-1.075-.49-1.075-1.094 0-.601.483-1.088 1.075-1.088`,hex:`3776AB`},siGo:{path:`M1.811 10.231c-.047 0-.058-.023-.035-.059l.246-.315c.023-.035.081-.058.128-.058h4.172c.046 0 .058.035.035.07l-.199.303c-.023.036-.082.07-.117.07zM.047 11.306c-.047 0-.059-.023-.035-.058l.245-.316c.023-.035.082-.058.129-.058h5.328c.047 0 .07.035.058.07l-.093.28c-.012.047-.058.07-.105.07zm2.828 1.075c-.047 0-.059-.035-.035-.07l.163-.292c.023-.035.07-.07.117-.07h2.337c.047 0 .07.035.07.082l-.023.28c0 .047-.047.082-.082.082zm12.129-2.36c-.736.187-1.239.327-1.963.514-.176.046-.187.058-.34-.117-.174-.199-.303-.327-.548-.444-.737-.362-1.45-.257-2.115.175-.795.514-1.204 1.274-1.192 2.22.011.935.654 1.706 1.577 1.835.795.105 1.46-.175 1.987-.77.105-.13.198-.27.315-.434H10.47c-.245 0-.304-.152-.222-.35.152-.362.432-.97.596-1.274a.315.315 0 01.292-.187h4.253c-.023.316-.023.631-.07.947a4.983 4.983 0 01-.958 2.29c-.841 1.11-1.94 1.8-3.33 1.986-1.145.152-2.209-.07-3.143-.77-.865-.655-1.356-1.52-1.484-2.595-.152-1.274.222-2.419.993-3.424.83-1.086 1.928-1.776 3.272-2.02 1.098-.2 2.15-.07 3.096.571.62.41 1.063.97 1.356 1.648.07.105.023.164-.117.2m3.868 6.461c-1.064-.024-2.034-.328-2.852-1.029a3.665 3.665 0 01-1.262-2.255c-.21-1.32.152-2.489.947-3.529.853-1.122 1.881-1.706 3.272-1.95 1.192-.21 2.314-.095 3.33.595.923.63 1.496 1.484 1.648 2.605.198 1.578-.257 2.863-1.344 3.962-.771.783-1.718 1.273-2.805 1.495-.315.06-.63.07-.934.106zm2.78-4.72c-.011-.153-.011-.27-.034-.387-.21-1.157-1.274-1.81-2.384-1.554-1.087.245-1.788.935-2.045 2.033-.21.912.234 1.835 1.075 2.21.643.28 1.285.244 1.905-.07.923-.48 1.425-1.228 1.484-2.233z`,hex:`00ADD8`},siDocker:{path:`M13.983 11.078h2.119a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.119a.185.185 0 00-.185.185v1.888c0 .102.083.185.185.185m-2.954-5.43h2.118a.186.186 0 00.186-.186V3.574a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m0 2.716h2.118a.187.187 0 00.186-.186V6.29a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.887c0 .102.082.185.185.186m-2.93 0h2.12a.186.186 0 00.184-.186V6.29a.185.185 0 00-.185-.185H8.1a.185.185 0 00-.185.185v1.887c0 .102.083.185.185.186m-2.964 0h2.119a.186.186 0 00.185-.186V6.29a.185.185 0 00-.185-.185H5.136a.186.186 0 00-.186.185v1.887c0 .102.084.185.186.186m5.893 2.715h2.118a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m-2.93 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.083.185.185.185m-2.964 0h2.119a.185.185 0 00.185-.185V9.006a.185.185 0 00-.184-.186h-2.12a.186.186 0 00-.186.186v1.887c0 .102.084.185.186.185m-2.92 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.082.185.185.185M23.763 9.89c-.065-.051-.672-.51-1.954-.51-.338.001-.676.03-1.01.087-.248-1.7-1.653-2.53-1.716-2.566l-.344-.199-.226.327c-.284.438-.49.922-.612 1.43-.23.97-.09 1.882.403 2.661-.595.332-1.55.413-1.744.42H.751a.751.751 0 00-.75.748 11.376 11.376 0 00.692 4.062c.545 1.428 1.355 2.48 2.41 3.124 1.18.723 3.1 1.137 5.275 1.137.983.003 1.963-.086 2.93-.266a12.248 12.248 0 003.823-1.389c.98-.567 1.86-1.288 2.61-2.136 1.252-1.418 1.998-2.997 2.553-4.4h.221c1.372 0 2.215-.549 2.68-1.009.309-.293.55-.65.707-1.046l.098-.288Z`,hex:`2496ED`},siGithub:{path:`M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12`,hex:`181717`},siGitlab:{path:`m23.6004 9.5927-.0337-.0862L20.3.9814a.851.851 0 0 0-.3362-.405.8748.8748 0 0 0-.9997.0539.8748.8748 0 0 0-.29.4399l-2.2055 6.748H7.5375l-2.2057-6.748a.8573.8573 0 0 0-.29-.4412.8748.8748 0 0 0-.9997-.0537.8585.8585 0 0 0-.3362.4049L.4332 9.5015l-.0325.0862a6.0657 6.0657 0 0 0 2.0119 7.0105l.0113.0087.03.0213 4.976 3.7264 2.462 1.8633 1.4995 1.1321a1.0085 1.0085 0 0 0 1.2197 0l1.4995-1.1321 2.4619-1.8633 5.006-3.7489.0125-.01a6.0682 6.0682 0 0 0 2.0094-7.003z`,hex:`FC6D26`},siDebian:{path:`M13.88 12.685c-.4 0 .08.2.601.28.14-.1.27-.22.39-.33a3.001 3.001 0 01-.99.05m2.14-.53c.23-.33.4-.69.47-1.06-.06.27-.2.5-.33.73-.75.47-.07-.27 0-.56-.8 1.01-.11.6-.14.89m.781-2.05c.05-.721-.14-.501-.2-.221.07.04.13.5.2.22M12.38.31c.2.04.45.07.42.12.23-.05.28-.1-.43-.12m.43.12l-.15.03.14-.01V.43m6.633 9.944c.02.64-.2.95-.38 1.5l-.35.181c-.28.54.03.35-.17.78-.44.39-1.34 1.22-1.62 1.301-.201 0 .14-.25.19-.34-.591.4-.481.6-1.371.85l-.03-.06c-2.221 1.04-5.303-1.02-5.253-3.842-.03.17-.07.13-.12.2a3.551 3.552 0 012.001-3.501 3.361 3.362 0 013.732.48 3.341 3.342 0 00-2.721-1.3c-1.18.01-2.281.76-2.651 1.57-.6.38-.67 1.47-.93 1.661-.361 2.601.66 3.722 2.38 5.042.27.19.08.21.12.35a4.702 4.702 0 01-1.53-1.16c.23.33.47.66.8.91-.55-.18-1.27-1.3-1.48-1.35.93 1.66 3.78 2.921 5.261 2.3a6.203 6.203 0 01-2.33-.28c-.33-.16-.77-.51-.7-.57a5.802 5.803 0 005.902-.84c.44-.35.93-.94 1.07-.95-.2.32.04.16-.12.44.44-.72-.2-.3.46-1.24l.24.33c-.09-.6.74-1.321.66-2.262.19-.3.2.3 0 .97.29-.74.08-.85.15-1.46.08.2.18.42.23.63-.18-.7.2-1.2.28-1.6-.09-.05-.28.3-.32-.53 0-.37.1-.2.14-.28-.08-.05-.26-.32-.38-.861.08-.13.22.33.34.34-.08-.42-.2-.75-.2-1.08-.34-.68-.12.1-.4-.3-.34-1.091.3-.25.34-.74.54.77.84 1.96.981 2.46-.1-.6-.28-1.2-.49-1.76.16.07-.26-1.241.21-.37A7.823 7.824 0 0017.702 1.6c.18.17.42.39.33.42-.75-.45-.62-.48-.73-.67-.61-.25-.65.02-1.06 0C15.082.73 14.862.8 13.8.4l.05.23c-.77-.25-.9.1-1.73 0-.05-.04.27-.14.53-.18-.741.1-.701-.14-1.431.03.17-.13.36-.21.55-.32-.6.04-1.44.35-1.18.07C9.6.68 7.847 1.3 6.867 2.22L6.838 2c-.45.54-1.96 1.611-2.08 2.311l-.131.03c-.23.4-.38.85-.57 1.261-.3.52-.45.2-.4.28-.6 1.22-.9 2.251-1.16 3.102.18.27 0 1.65.07 2.76-.3 5.463 3.84 10.776 8.363 12.006.67.23 1.65.23 2.49.25-.99-.28-1.12-.15-2.08-.49-.7-.32-.85-.7-1.34-1.13l.2.35c-.971-.34-.57-.42-1.361-.67l.21-.27c-.31-.03-.83-.53-.97-.81l-.34.01c-.41-.501-.63-.871-.61-1.161l-.111.2c-.13-.21-1.52-1.901-.8-1.511-.13-.12-.31-.2-.5-.55l.14-.17c-.35-.44-.64-1.02-.62-1.2.2.24.32.3.45.33-.88-2.172-.93-.12-1.601-2.202l.15-.02c-.1-.16-.18-.34-.26-.51l.06-.6c-.63-.74-.18-3.102-.09-4.402.07-.54.53-1.1.88-1.981l-.21-.04c.4-.71 2.341-2.872 3.241-2.761.43-.55-.09 0-.18-.14.96-.991 1.26-.7 1.901-.88.7-.401-.6.16-.27-.151 1.2-.3.85-.7 2.421-.85.16.1-.39.14-.52.26 1-.49 3.151-.37 4.562.27 1.63.77 3.461 3.011 3.531 5.132l.08.02c-.04.85.13 1.821-.17 2.711l.2-.42M9.54 13.236l-.05.28c.26.35.47.73.8 1.01-.24-.47-.42-.66-.75-1.3m.62-.02c-.14-.15-.22-.34-.31-.52.08.32.26.6.43.88l-.12-.36m10.945-2.382l-.07.15c-.1.76-.34 1.511-.69 2.212.4-.73.65-1.541.75-2.362M12.45.12c.27-.1.66-.05.95-.12-.37.03-.74.05-1.1.1l.15.02M3.006 5.142c.07.57-.43.8.11.42.3-.66-.11-.18-.1-.42m-.64 2.661c.12-.39.15-.62.2-.84-.35.44-.17.53-.2.83`,hex:`A81D33`},siGradle:{path:`M22.695 4.297a3.807 3.807 0 0 0-5.29-.09.368.368 0 0 0 0 .533l.46.47a.363.363 0 0 0 .474.032 2.182 2.182 0 0 1 2.86 3.291c-3.023 3.02-7.056-5.447-16.211-1.083a1.24 1.24 0 0 0-.534 1.745l1.571 2.713a1.238 1.238 0 0 0 1.681.461l.037-.02-.029.02.688-.384a16.083 16.083 0 0 0 2.193-1.635.384.384 0 0 1 .499-.016.357.357 0 0 1 .016.534 16.435 16.435 0 0 1-2.316 1.741H8.77l-.696.39a1.958 1.958 0 0 1-.963.25 1.987 1.987 0 0 1-1.726-.989L3.9 9.696C1.06 11.72-.686 15.603.26 20.522a.363.363 0 0 0 .354.296h1.675a.363.363 0 0 0 .37-.331 2.478 2.478 0 0 1 4.915 0 .36.36 0 0 0 .357.317h1.638a.363.363 0 0 0 .357-.317 2.478 2.478 0 0 1 4.914 0 .363.363 0 0 0 .358.317h1.627a.363.363 0 0 0 .363-.357c.037-2.294.656-4.93 2.42-6.25 6.108-4.57 4.502-8.486 3.088-9.9zm-6.229 6.901l-1.165-.584a.73.73 0 1 1 1.165.587z`,hex:`02303A`},siRust:{path:`M23.8346 11.7033l-1.0073-.6236a13.7268 13.7268 0 00-.0283-.2936l.8656-.8069a.3483.3483 0 00-.1154-.578l-1.1066-.414a8.4958 8.4958 0 00-.087-.2856l.6904-.9587a.3462.3462 0 00-.2257-.5446l-1.1663-.1894a9.3574 9.3574 0 00-.1407-.2622l.49-1.0761a.3437.3437 0 00-.0274-.3361.3486.3486 0 00-.3006-.154l-1.1845.0416a6.7444 6.7444 0 00-.1873-.2268l.2723-1.153a.3472.3472 0 00-.417-.4172l-1.1532.2724a14.0183 14.0183 0 00-.2278-.1873l.0415-1.1845a.3442.3442 0 00-.49-.328l-1.076.491c-.0872-.0476-.1742-.0952-.2623-.1407l-.1903-1.1673A.3483.3483 0 0016.256.955l-.9597.6905a8.4867 8.4867 0 00-.2855-.086l-.414-1.1066a.3483.3483 0 00-.5781-.1154l-.8069.8666a9.2936 9.2936 0 00-.2936-.0284L12.2946.1683a.3462.3462 0 00-.5892 0l-.6236 1.0073a13.7383 13.7383 0 00-.2936.0284L9.9803.3374a.3462.3462 0 00-.578.1154l-.4141 1.1065c-.0962.0274-.1903.0567-.2855.086L7.744.955a.3483.3483 0 00-.5447.2258L7.009 2.348a9.3574 9.3574 0 00-.2622.1407l-1.0762-.491a.3462.3462 0 00-.49.328l.0416 1.1845a7.9826 7.9826 0 00-.2278.1873L3.8413 3.425a.3472.3472 0 00-.4171.4171l.2713 1.1531c-.0628.075-.1255.1509-.1863.2268l-1.1845-.0415a.3462.3462 0 00-.328.49l.491 1.0761a9.167 9.167 0 00-.1407.2622l-1.1662.1894a.3483.3483 0 00-.2258.5446l.6904.9587a13.303 13.303 0 00-.087.2855l-1.1065.414a.3483.3483 0 00-.1155.5781l.8656.807a9.2936 9.2936 0 00-.0283.2935l-1.0073.6236a.3442.3442 0 000 .5892l1.0073.6236c.008.0982.0182.1964.0283.2936l-.8656.8079a.3462.3462 0 00.1155.578l1.1065.4141c.0273.0962.0567.1914.087.2855l-.6904.9587a.3452.3452 0 00.2268.5447l1.1662.1893c.0456.088.0922.1751.1408.2622l-.491 1.0762a.3462.3462 0 00.328.49l1.1834-.0415c.0618.0769.1235.1528.1873.2277l-.2713 1.1541a.3462.3462 0 00.4171.4161l1.153-.2713c.075.0638.151.1255.2279.1863l-.0415 1.1845a.3442.3442 0 00.49.327l1.0761-.49c.087.0486.1741.0951.2622.1407l.1903 1.1662a.3483.3483 0 00.5447.2268l.9587-.6904a9.299 9.299 0 00.2855.087l.414 1.1066a.3452.3452 0 00.5781.1154l.8079-.8656c.0972.0111.1954.0203.2936.0294l.6236 1.0073a.3472.3472 0 00.5892 0l.6236-1.0073c.0982-.0091.1964-.0183.2936-.0294l.8069.8656a.3483.3483 0 00.578-.1154l.4141-1.1066a8.4626 8.4626 0 00.2855-.087l.9587.6904a.3452.3452 0 00.5447-.2268l.1903-1.1662c.088-.0456.1751-.0931.2622-.1407l1.0762.49a.3472.3472 0 00.49-.327l-.0415-1.1845a6.7267 6.7267 0 00.2267-.1863l1.1531.2713a.3472.3472 0 00.4171-.416l-.2713-1.1542c.0628-.0749.1255-.1508.1863-.2278l1.1845.0415a.3442.3442 0 00.328-.49l-.49-1.076c.0475-.0872.0951-.1742.1407-.2623l1.1662-.1893a.3483.3483 0 00.2258-.5447l-.6904-.9587.087-.2855 1.1066-.414a.3462.3462 0 00.1154-.5781l-.8656-.8079c.0101-.0972.0202-.1954.0283-.2936l1.0073-.6236a.3442.3442 0 000-.5892zm-6.7413 8.3551a.7138.7138 0 01.2986-1.396.714.714 0 11-.2997 1.396zm-.3422-2.3142a.649.649 0 00-.7715.5l-.3573 1.6685c-1.1035.501-2.3285.7795-3.6193.7795a8.7368 8.7368 0 01-3.6951-.814l-.3574-1.6684a.648.648 0 00-.7714-.499l-1.473.3158a8.7216 8.7216 0 01-.7613-.898h7.1676c.081 0 .1356-.0141.1356-.088v-2.536c0-.074-.0536-.0881-.1356-.0881h-2.0966v-1.6077h2.2677c.2065 0 1.1065.0587 1.394 1.2088.0901.3533.2875 1.5044.4232 1.8729.1346.413.6833 1.2381 1.2685 1.2381h3.5716a.7492.7492 0 00.1296-.0131 8.7874 8.7874 0 01-.8119.9526zM6.8369 20.024a.714.714 0 11-.2997-1.396.714.714 0 01.2997 1.396zM4.1177 8.9972a.7137.7137 0 11-1.304.5791.7137.7137 0 011.304-.579zm-.8352 1.9813l1.5347-.6824a.65.65 0 00.33-.8585l-.3158-.7147h1.2432v5.6025H3.5669a8.7753 8.7753 0 01-.2834-3.348zm6.7343-.5437V8.7836h2.9601c.153 0 1.0792.1772 1.0792.8697 0 .575-.7107.7815-1.2948.7815zm10.7574 1.4862c0 .2187-.008.4363-.0243.651h-.9c-.09 0-.1265.0586-.1265.1477v.413c0 .973-.5487 1.1846-1.0296 1.2382-.4576.0517-.9648-.1913-1.0275-.4717-.2704-1.5186-.7198-1.8436-1.4305-2.4034.8817-.5599 1.799-1.386 1.799-2.4915 0-1.1936-.819-1.9458-1.3769-2.3153-.7825-.5163-1.6491-.6195-1.883-.6195H5.4682a8.7651 8.7651 0 014.907-2.7699l1.0974 1.151a.648.648 0 00.9182.0213l1.227-1.1743a8.7753 8.7753 0 016.0044 4.2762l-.8403 1.8982a.652.652 0 00.33.8585l1.6178.7188c.0283.2875.0425.577.0425.8717zm-9.3006-9.5993a.7128.7128 0 11.984 1.0316.7137.7137 0 01-.984-1.0316zm8.3389 6.71a.7107.7107 0 01.9395-.3625.7137.7137 0 11-.9405.3635z`,hex:`000000`},siRubygems:{path:`M7.81 7.9l-2.97 2.95 7.19 7.18 2.96-2.95 4.22-4.23-2.96-2.96v-.01H7.8zM12 0L1.53 6v12L12 24l10.47-6V6L12 0zm8.47 16.85L12 21.73l-8.47-4.88V7.12L12 2.24l8.47 4.88v9.73z`,hex:`E9573F`},siRuby:{path:`M20.156.083c3.033.525 3.893 2.598 3.829 4.77L24 4.822 22.635 22.71 4.89 23.926h.016C3.433 23.864.15 23.729 0 19.139l1.645-3 2.819 6.586.503 1.172 2.805-9.144-.03.007.016-.03 9.255 2.956-1.396-5.431-.99-3.9 8.82-.569-.615-.51L16.5 2.114 20.159.073l-.003.01zM0 19.089zM5.13 5.073c3.561-3.533 8.157-5.621 9.922-3.84 1.762 1.777-.105 6.105-3.673 9.636-3.563 3.532-8.103 5.734-9.864 3.957-1.766-1.777.045-6.217 3.612-9.75l.003-.003z`,hex:`CC342D`},siNuget:{path:`M1.998.342a1.997 1.997 0 1 0 0 3.995 1.997 1.997 0 0 0 0-3.995zm9.18 4.34a6.156 6.156 0 0 0-6.153 6.155v6.667c0 3.4 2.756 6.154 6.154 6.154h6.667c3.4 0 6.154-2.755 6.154-6.154v-6.667a6.154 6.154 0 0 0-6.154-6.155zm-1.477 2.8a2.496 2.496 0 1 1 0 4.993 2.496 2.496 0 0 1 0-4.993zm7.968 6.16a3.996 3.996 0 1 1-.002 7.992 3.996 3.996 0 0 1 .002-7.992z`,hex:`004880`},siDotnet:{path:`M24 8.77h-2.468v7.565h-1.425V8.77h-2.462V7.53H24zm-6.852 7.565h-4.821V7.53h4.63v1.24h-3.205v2.494h2.953v1.234h-2.953v2.604h3.396zm-6.708 0H8.882L4.78 9.863a2.896 2.896 0 0 1-.258-.51h-.036c.032.189.048.592.048 1.21v5.772H3.157V7.53h1.659l3.965 6.32c.167.261.275.442.323.54h.024c-.04-.233-.06-.629-.06-1.185V7.529h1.372zm-8.703-.693a.868.829 0 0 1-.869.829.868.829 0 0 1-.868-.83.868.829 0 0 1 .868-.828.868.829 0 0 1 .869.829Z`,hex:`512BD4`},siElixir:{path:`M19.793 16.575c0 3.752-2.927 7.426-7.743 7.426-5.249 0-7.843-3.71-7.843-8.29 0-5.21 3.892-12.952 8-15.647a.397.397 0 0 1 .61.371 9.716 9.716 0 0 0 1.694 6.518c.522.795 1.092 1.478 1.763 2.352.94 1.227 1.637 1.906 2.644 3.842l.015.028a7.107 7.107 0 0 1 .86 3.4z`,hex:`8847B9`},siDart:{path:`M4.105 4.105S9.158 1.58 11.684.316a3.079 3.079 0 0 1 1.481-.315c.766.047 1.677.788 1.677.788L24 9.948v9.789h-4.263V24H9.789l-9-9C.303 14.5 0 13.795 0 13.105c0-.319.18-.818.316-1.105l3.789-7.895zm.679.679v11.787c.002.543.021 1.024.498 1.508L10.204 23h8.533v-4.263L4.784 4.784zm12.055-.678c-.899-.896-1.809-1.78-2.74-2.643-.302-.267-.567-.468-1.07-.462-.37.014-.87.195-.87.195L6.341 4.105l10.498.001z`,hex:`0175C2`},siHelm:{path:`M12.337 0c-.475 0-.861 1.016-.861 2.269 0 .527.069 1.011.183 1.396a8.514 8.514 0 0 0-3.961 1.22 5.229 5.229 0 0 0-.595-1.093c-.606-.866-1.34-1.436-1.79-1.43a.381.381 0 0 0-.217.066c-.39.273-.123 1.326.596 2.353.267.381.559.705.84.948a8.683 8.683 0 0 0-1.528 1.716h1.734a7.179 7.179 0 0 1 5.381-2.421 7.18 7.18 0 0 1 5.382 2.42h1.733a8.687 8.687 0 0 0-1.32-1.53c.35-.249.735-.643 1.078-1.133.719-1.027.986-2.08.596-2.353a.382.382 0 0 0-.217-.065c-.45-.007-1.184.563-1.79 1.43a4.897 4.897 0 0 0-.676 1.325 8.52 8.52 0 0 0-3.899-1.42c.12-.39.193-.887.193-1.429 0-1.253-.386-2.269-.862-2.269zM1.624 9.443v5.162h1.358v-1.968h1.64v1.968h1.357V9.443H4.62v1.838H2.98V9.443zm5.912 0v5.162h3.21v-1.108H8.893v-.95h1.64v-1.142h-1.64v-.84h1.853V9.443zm4.698 0v5.162h3.218v-1.362h-1.86v-3.8zm4.706 0v5.162h1.364v-2.643l1.357 1.225 1.35-1.232v2.65h1.365V9.443h-.614l-2.1 1.914-2.109-1.914zm-11.82 7.28a8.688 8.688 0 0 0 1.412 1.548 5.206 5.206 0 0 0-.841.948c-.719 1.027-.985 2.08-.596 2.353.39.273 1.289-.338 2.007-1.364a5.23 5.23 0 0 0 .595-1.092 8.514 8.514 0 0 0 3.961 1.219 5.01 5.01 0 0 0-.183 1.396c0 1.253.386 2.269.861 2.269.476 0 .862-1.016.862-2.269 0-.542-.072-1.04-.193-1.43a8.52 8.52 0 0 0 3.9-1.42c.121.4.352.865.675 1.327.719 1.026 1.617 1.637 2.007 1.364.39-.273.123-1.326-.596-2.353-.343-.49-.727-.885-1.077-1.135a8.69 8.69 0 0 0 1.202-1.36h-1.771a7.174 7.174 0 0 1-5.227 2.252 7.174 7.174 0 0 1-5.226-2.252z`,hex:`0F1689`},siTerraform:{path:`M1.44 0v7.575l6.561 3.79V3.787zm21.12 4.227l-6.561 3.791v7.574l6.56-3.787zM8.72 4.23v7.575l6.561 3.787V8.018zm0 8.405v7.575L15.28 24v-7.578z`,hex:`844FBA`}},lt={npm:Q.siNpm,"node-version":Q.siNodedotjs,pypi:Q.siPypi,"python-version":Q.siPython,go:Q.siGo,"golang-version":Q.siGo,docker:Q.siDocker,"github-tags":Q.siGithub,"github-releases":Q.siGithub,"github-digest":Q.siGithub,"github-runners":Q.siGithub,"gitlab-tags":Q.siGitlab,"gitlab-releases":Q.siGitlab,"gitlab-packages":Q.siGitlab,deb:Q.siDebian,"gradle-version":Q.siGradle,crate:Q.siRust,"rust-version":Q.siRust,rubygems:Q.siRubygems,"ruby-version":Q.siRuby,nuget:Q.siNuget,"dotnet-version":Q.siDotnet,hex:Q.siElixir,dart:Q.siDart,helm:Q.siHelm,"terraform-provider":Q.siTerraform,"terraform-module":Q.siTerraform};function ut(e){let[t,n,r]=[0,2,4].map(t=>Number.parseInt(e.slice(t,t+2),16)/255);return .2126*t+.7152*n+.0722*r<.12?`currentColor`:`#${e}`}var dt=`M12 1.5 2.5 6.75v10.5L12 22.5l9.5-5.25V6.75L12 1.5Zm0 2.3 6.9 3.8L12 11.4 5.1 7.6 12 3.8ZM4.5 9.3l6.5 3.6v7.2l-6.5-3.6V9.3Zm8.5 10.8v-7.2l6.5-3.6v7.2L13 20.1Z`;function $({datasource:e}){let t=e?lt[e]:void 0;return W(`svg`,{class:`ds-icon`,viewBox:`0 0 24 24`,role:`img`,"aria-label":e??`unknown datasource`,children:[W(`title`,{children:e??`unknown datasource`}),W(`path`,{d:t?.path??dt,fill:t?ut(t.hex):`currentColor`,opacity:t?1:.45})]})}var ft=[{label:`Repository`,sort:e=>e.repo,render:e=>W(`a`,{href:U.repo(e.repo),children:e.repo})},{label:`Manager`,sort:e=>e.manager,render:e=>e.manager},{label:`File`,sort:e=>e.packageFile,render:e=>W(`code`,{children:e.packageFile})},{label:`Type`,sort:e=>e.dep.depType,render:e=>W(`span`,{class:`muted`,children:e.dep.depType})},{label:`Current`,sort:e=>e.dep.currentVersion??e.dep.currentValue,render:e=>W(We,{dep:e.dep})},{label:`Age`,class:`num`,descFirst:!0,sort:e=>e.dep.currentVersionAgeInDays,render:e=>W(G,{days:e.dep.currentVersionAgeInDays,timestamp:e.dep.currentVersionTimestamp})},{label:`Updates`,render:e=>W(Ge,{updates:e.dep.updates})},{label:`Notes`,sort:e=>e.dep.skipReason,render:e=>e.dep.skipReason&&W(`span`,{class:`badge skipped`,children:[`skipped: `,e.dep.skipReason]})}];function pt(e,t){return[{label:`Version`,sort:e=>e.version,render:n=>W(`span`,{class:`version`,children:[n.version,t>1&&n.uses<e&&W(`span`,{class:`badge outlier-badge`,children:`outlier`})]})},{label:`Uses`,class:`num`,descFirst:!0,sort:e=>e.uses,render:e=>e.uses},{label:`Age`,class:`num`,descFirst:!0,sort:e=>e.ageInDays,render:e=>W(G,{days:e.ageInDays})},{label:`Repositories`,descFirst:!0,sort:e=>e.repos.length,render:e=>W(tt,{repos:e.repos})}]}function mt({usage:e}){let t=e.usages[0]?.dep,n=e.usages.find(({dep:e})=>e.sourceUrl||e.homepage||e.changelogUrl)?.dep,r=t&&ct(t),i=[...new Set(e.usages.map(({dep:e})=>e.name))].filter(t=>t!==e.name),a=Fe(e);return W(y,{children:[W(`p`,{class:`crumbs`,children:[W(`a`,{href:U.packages(),children:`Packages`}),` /`]}),W(`h1`,{class:`with-icon`,children:[W($,{datasource:e.datasource}),e.name]}),W(`p`,{class:`muted`,children:[e.datasource&&W(y,{children:[`Datasource `,e.datasource,`. `]}),i.length>0&&W(y,{children:[`Also named `,i.join(`, `),`.`]})]}),W(`p`,{class:`actions`,children:[r&&W(Z,{href:r.url,primary:!0,children:[`View on `,r.label]}),n?.sourceUrl&&n.sourceUrl!==r?.url&&W(Z,{href:n.sourceUrl,children:`Source`}),n?.homepage&&W(Z,{href:n.homepage,children:`Homepage`}),n?.changelogUrl&&W(Z,{href:n.changelogUrl,children:`Changelog`})]}),W(`div`,{class:`stats`,children:[W(q,{label:`Repositories`,value:e.repos.length}),W(q,{label:`Uses`,value:e.usages.length}),W(q,{label:`Versions in use`,value:a.length,tone:a.length>1?`warn`:void 0}),e.latest&&W(q,{label:`Newest available`,value:e.latest})]}),W(`h2`,{children:`Versions in use`}),W(J,{columns:pt(a[0]?.uses??0,a.length),rows:a,rowKey:e=>e.version,initialSort:{column:1,desc:!0}}),W(`h2`,{children:`All uses`}),W(Y,{}),W(J,{columns:ft,rows:e.usages,rowKey:e=>`${e.repo}:${e.packageFile}:${e.dep.depType}`,initialSort:{column:5,desc:!0}})]})}function ht({versions:e}){let t=e[0]?.uses??0;return W(`span`,{class:`version-chips`,children:e.map(n=>W(`span`,{class:`version-chip ${e.length>1&&n.uses<t?`outlier`:``}`,title:`${n.uses} ${n.uses===1?`use`:`uses`} in ${n.repos.join(`, `)}`,children:[W(`span`,{class:`version`,children:n.version}),W(`span`,{class:`count`,children:[`×`,n.uses]})]},n.version))})}var gt=[{label:`Package`,sort:e=>e.usage.name,render:e=>W(`span`,{class:`with-icon`,children:[W($,{datasource:e.usage.datasource}),W(`a`,{href:U.package(e.usage.id),children:e.usage.name})]})},{label:`Datasource`,sort:e=>e.usage.datasource,render:e=>W(`span`,{class:`muted`,children:e.usage.datasource})},{label:`Repos`,class:`num`,descFirst:!0,sort:e=>e.usage.repos.length,render:e=>e.usage.repos.length},{label:`Uses`,class:`num`,descFirst:!0,sort:e=>e.usage.usages.length,render:e=>e.usage.usages.length},{label:`Versions in use`,descFirst:!0,sort:e=>e.versions.length,render:e=>W(ht,{versions:e.versions})},{label:`Newest available`,render:e=>W(`span`,{class:`version`,children:e.usage.latest})},{label:`Oldest in use`,class:`num`,descFirst:!0,sort:e=>e.usage.maxAgeInDays,render:e=>W(G,{days:e.usage.maxAgeInDays})}];function _t({packages:e,filter:t}){let n=B(()=>e.map(e=>({usage:e,versions:Fe(e)})),[e]),r=B(()=>{let t=new Map;for(let n of e)t.set(n.datasource??`unknown`,(t.get(n.datasource??`unknown`)??0)+1);return[...t].sort((e,t)=>t[1]-e[1]||e[0].localeCompare(t[0]))},[e]),i=t.query.trim().toLowerCase(),a=n.filter(({usage:e})=>(t.datasources.length===0||t.datasources.includes(e.datasource??`unknown`))&&(!i||e.name.toLowerCase().includes(i))),o=e=>ze(U.packages({...t,...e})),s=e=>o({datasources:t.datasources.includes(e)?t.datasources.filter(t=>t!==e):[...t.datasources,e]});return W(y,{children:[W(`h1`,{children:`Packages`}),W(`p`,{class:`muted`,children:`Every package across all repositories, with the versions each repository is on.`}),W(`div`,{class:`toolbar`,children:[W(`input`,{type:`search`,placeholder:`Search packages`,value:t.query,onInput:e=>o({query:e.currentTarget.value}),"aria-label":`Search packages`,autoFocus:!0}),W(`span`,{class:`muted`,children:[a.length,` of `,e.length]})]}),W(`fieldset`,{class:`filter-chips`,children:[W(`legend`,{class:`muted`,children:`Datasource`}),r.map(([e,n])=>W(`button`,{type:`button`,class:`filter-chip`,"aria-pressed":t.datasources.includes(e),onClick:()=>s(e),children:[W($,{datasource:e===`unknown`?void 0:e}),e,` `,W(`span`,{class:`count`,children:n})]},e)),t.datasources.length>0&&W(`button`,{type:`button`,class:`filter-clear`,onClick:()=>o({datasources:[]}),children:`Clear`})]}),W(Y,{}),W(J,{columns:gt,rows:a,rowKey:e=>e.usage.id,initialSort:{column:2,desc:!0},empty:`No packages match this search.`})]})}function vt({data:e}){let t=e.repositories.filter(e=>e.problems.length>0);return W(y,{children:[W(`h1`,{children:`Problems`}),W(`p`,{class:`muted`,children:`Warnings and errors Renovate reported while processing. Global problems are not tied to a repository.`}),e.problems.length===0&&t.length===0&&W(`p`,{children:`Renovate reported no problems.`}),e.problems.length>0&&W(`section`,{children:[W(`h2`,{children:`Global`}),W(Ye,{problems:e.problems})]}),t.map(e=>W(`section`,{children:[W(`h2`,{children:W(`a`,{href:U.repo(e.name),children:e.name})}),W(Ye,{problems:e.problems})]},e.name))]})}var yt=[{label:`Dependency`,sort:e=>e.name,render:e=>W(`span`,{class:`with-icon`,children:[W($,{datasource:e.datasource}),W(`a`,{href:U.package(je(e)),children:e.name})]})},{label:`Type`,sort:e=>e.depType,render:e=>W(`span`,{class:`muted`,children:e.depType})},{label:`Current`,render:e=>W(We,{dep:e})},{label:`Age`,class:`num`,descFirst:!0,sort:e=>e.currentVersionAgeInDays,render:e=>W(G,{days:e.currentVersionAgeInDays,timestamp:e.currentVersionTimestamp})},{label:`Updates`,descFirst:!0,sort:e=>e.updates.length,render:e=>W(Ge,{updates:e.updates})},{label:`Notes`,sort:e=>e.skipReason,render:e=>W(y,{children:[e.skipReason&&W(`span`,{class:`badge skipped`,children:[`skipped: `,e.skipReason]}),e.warnings.map(e=>W(`div`,{class:`warning`,children:e},e))]})}],bt=[{label:`Branch`,sort:e=>e.branchName,render:e=>W(`code`,{children:e.branchName})},{label:`PR title`,sort:e=>e.prTitle,render:e=>e.prTitle},{label:`PR`,class:`num`,sort:e=>e.prNo??void 0,render:e=>e.prNo?`#${e.prNo}`:``},{label:`Result`,sort:e=>e.result,render:e=>e.result&&W(`span`,{class:`badge`,children:e.result})},{label:`Upgrades`,render:e=>W(`span`,{class:`badges`,children:[Qe(e.upgrades.map(e=>e.updateType??`unknown`)).map(e=>W(K,{type:e},e)),` `,X(e.upgrades.length,`upgrade`)]})}];function xt(e,t,n){if(n&&e.updates.length===0)return!1;if(!t)return!0;let r=t.toLowerCase();return[e.name,e.packageName,e.depType,e.datasource].some(e=>e?.toLowerCase().includes(r))}function St({repo:e}){let[t,n]=z(``),[r,i]=z(!1),a=[...H([e])].map(e=>e.dep),o=a.filter(e=>e.updates.length>0).length,s=a.reduce((e,t)=>e+t.updates.length,0),c=[e.platform,e.defaultBranch&&`default branch ${e.defaultBranch}`,e.status,e.configFileName];return W(y,{children:[W(`p`,{class:`crumbs`,children:[W(`a`,{href:U.repos(),children:`Repositories`}),` /`]}),W(`h1`,{children:e.name}),c.some(Boolean)&&W(`p`,{class:`muted`,children:c.filter(Boolean).join(` · `)}),W(`div`,{class:`stats`,children:[W(q,{label:`Managers`,value:e.managers.length}),W(q,{label:`Dependencies`,value:a.length}),W(q,{label:`With updates`,value:o}),W(q,{label:`Pending updates`,value:s}),e.libYears!==void 0&&W(q,{label:`Libyears`,value:e.libYears.toFixed(1)}),W(q,{label:`Problems`,value:e.problems.length,tone:e.problems.length?`warn`:void 0})]}),e.problems.length>0&&W(`section`,{class:`callout callout-warn`,children:[W(`h2`,{children:`Problems`}),W(Ye,{problems:e.problems})]}),W(`section`,{children:[W(`h2`,{children:`Dependencies`}),W(`div`,{class:`toolbar`,children:[W(`input`,{type:`search`,placeholder:`Filter by name, type or datasource`,value:t,onInput:e=>n(e.currentTarget.value),"aria-label":`Filter dependencies`}),W(`label`,{children:[W(`input`,{type:`checkbox`,checked:r,onChange:e=>i(e.currentTarget.checked)}),` `,`Only with updates`]}),W(`span`,{class:`muted`,children:[`Managers:`,` `,e.managers.map((e,t)=>W(`span`,{children:[t>0&&`, `,W(`a`,{href:`#manager-${e.name}`,onClick:t=>Ct(t,`manager-${e.name}`),children:e.name})]},e.name))]})]}),W(Y,{}),e.managers.map(e=>{let n=e.packageFiles.map(e=>({...e,shown:e.deps.filter(e=>xt(e,t,r))})).filter(e=>e.shown.length>0||!t&&!r);return n.length===0?null:W(`section`,{id:`manager-${e.name}`,class:`manager`,children:[W(`h3`,{children:[e.name,` `,W(`span`,{class:`muted`,children:X(e.packageFiles.length,`file`)})]}),n.map(e=>W(`details`,{open:!0,class:`package-file`,children:[W(`summary`,{children:[W(`code`,{children:e.path}),` `,W(`span`,{class:`muted`,children:[X(e.deps.length,`dep`),e.lockFiles?.length?`, lock: ${e.lockFiles.join(`, `)}`:``]})]}),W(J,{columns:yt,rows:e.shown,rowKey:e=>`${e.depType}:${e.name}:${e.currentValue}`,initialSort:{column:3,desc:!0},empty:`No dependencies found in this file.`})]},e.path))]},e.name)})]}),W(`section`,{children:[W(`h2`,{children:`Branches`}),e.branches.length===0?W(`p`,{class:`muted`,children:[`No branch data. Renovate leaves this empty when run with `,W(`code`,{children:`--dry-run=lookup`}),`, or when no branches are needed.`]}):W(`details`,{children:[W(`summary`,{children:[X(e.branches.length,`branch`,`branches`),` Renovate would create or update`]}),W(J,{columns:bt,rows:e.branches,rowKey:e=>e.branchName,initialSort:{column:0,desc:!1}})]})]})]})}function Ct(e,t){e.preventDefault(),document.getElementById(t)?.scrollIntoView({behavior:`smooth`})}function wt(e){let t={repo:e,managers:e.managers.length,deps:0,outdated:0,updatesByType:{},updates:0},n=[];for(let{dep:r}of H([e])){t.deps++,r.updates.length>0&&t.outdated++;for(let e of r.updates){let n=Oe(e);t.updatesByType[n]=(t.updatesByType[n]??0)+1,t.updates++}r.currentVersionAgeInDays!==void 0&&n.push(r.currentVersionAgeInDays)}return n.sort((e,t)=>e-t),t.medianAge=n[Math.floor(n.length/2)],t.oldestAge=n.at(-1),t}function Tt(e){return[{label:`Repository`,sort:e=>e.repo.name,render:e=>W(`a`,{href:U.repo(e.repo.name),children:e.repo.name})},{label:`Problems`,class:`num`,descFirst:!0,sort:e=>e.repo.problems.length,render:e=>e.repo.problems.length?W(`span`,{class:`badge level-warn`,children:e.repo.problems.length}):``},{label:`Managers`,class:`num`,descFirst:!0,sort:e=>e.managers,render:e=>e.managers},{label:`Deps`,class:`num`,descFirst:!0,sort:e=>e.deps,render:e=>e.deps},{label:`Outdated`,class:`num`,descFirst:!0,sort:e=>e.outdated,render:e=>e.outdated},{label:`Updates`,descFirst:!0,sort:e=>e.updates,render:t=>W($e,{counts:t.updatesByType,types:e})},{label:`Median age`,class:`num`,descFirst:!0,sort:e=>e.medianAge,render:e=>W(G,{days:e.medianAge})},{label:`Oldest`,class:`num`,descFirst:!0,sort:e=>e.oldestAge,render:e=>W(G,{days:e.oldestAge})},{label:`Libyears`,class:`num`,descFirst:!0,sort:e=>e.repo.libYears,render:e=>e.repo.libYears===void 0?``:e.repo.libYears.toFixed(1)}]}function Et({repositories:e}){let[t,n]=z(``),r=B(()=>e.map(wt),[e]),i=B(()=>Tt(Qe(r.flatMap(e=>Object.keys(e.updatesByType)))),[r]),a=t.trim().toLowerCase(),o=a?r.filter(e=>e.repo.name.toLowerCase().includes(a)):r;return W(y,{children:[W(`h1`,{children:`Repositories`}),W(`div`,{class:`toolbar`,children:[W(`input`,{type:`search`,placeholder:`Filter repositories`,value:t,onInput:e=>n(e.currentTarget.value),"aria-label":`Filter repositories`}),W(`span`,{class:`muted`,children:[o.length,` of `,r.length]})]}),W(Y,{}),W(J,{columns:i,rows:o,rowKey:e=>e.repo.name,initialSort:{column:0,desc:!1},empty:r.length?`No repositories match this filter.`:`The report has no repositories.`})]})}function Dt({data:e}){let t=Re(),n=B(()=>ke(e),[e]),r=B(()=>Me(e.repositories),[e]);return W(y,{children:[W(`header`,{class:`topbar`,children:[W(`a`,{class:`brand`,href:U.overview(),children:e.title}),W(`nav`,{children:[W(Ot,{route:t,to:`overview`,label:`Overview`}),W(Ot,{route:t,to:`repos`,label:`Repositories`}),W(Ot,{route:t,to:`packages`,label:`Packages`}),W(Ot,{route:t,to:`problems`,label:`Problems`,count:n.problems})]})]}),W(`main`,{class:`page`,children:W(kt,{data:e,route:t,summary:n,packages:r})}),W(`footer`,{class:`footer muted`,children:[`Generated `,new Date(e.generatedAt).toLocaleString(),` from a Renovate report by renovate-report-html.`]})]})}function Ot({route:e,to:t,label:n,count:r}){let i=e.name===t||t===`packages`&&e.name===`package`||t===`repos`&&e.name===`repo`;return W(`a`,{href:U[t](),class:i?`active`:void 0,"aria-current":i?`page`:void 0,children:[n,r?W(`span`,{class:`badge level-warn nav-count`,children:r}):null]})}function kt({data:e,route:t,summary:n,packages:r}){switch(t.name){case`overview`:return W(nt,{data:e,summary:n});case`repos`:return W(Et,{repositories:e.repositories});case`repo`:{let n=e.repositories.find(e=>e.name===t.repo);return n?W(St,{repo:n}):W(At,{what:`repository ${t.repo}`})}case`packages`:return W(_t,{packages:r,filter:t});case`package`:{let e=r.find(e=>e.id===t.id);return e?W(mt,{usage:e}):W(At,{what:`package ${t.id}`})}case`problems`:return W(vt,{data:e});case`notFound`:return W(At,{what:`page /${t.path}`})}}function At({what:e}){return W(`section`,{children:[W(`h1`,{children:`Not found`}),W(`p`,{children:[`There is no `,e,` in this report. `,W(`a`,{href:U.overview(),children:`Back to the overview`}),`.`]})]})}async function jt(){let e=document.getElementById(`report-data`)?.textContent?.trim()??``;if(e===`__RENOVATE_REPORT_DATA__`)throw Error(`This is the empty viewer template. Generate a page with the renovate-report-html CLI.`);let t=JSON.parse(e);if(t.version!==1)throw Error(`Unsupported data version ${t.version}. Regenerate the page with a matching CLI version.`);return t}function Mt(){return document.readyState===`loading`?new Promise(e=>document.addEventListener(`DOMContentLoaded`,()=>e(),{once:!0})):Promise.resolve()}function Nt(e){F(e,document.getElementById(`app`))}Mt().then(jt).then(e=>{document.title=e.title,Nt(W(Dt,{data:e}))},e=>{Nt(W(`main`,{class:`page`,children:[W(`h1`,{children:`Could not load the report`}),W(`pre`,{class:`error`,children:e instanceof Error?e.message:String(e)})]}))});</script>
9
+ <style rel="stylesheet" crossorigin>:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--bg:#fff;--bg-soft:#f5f6f8;--fg:#1d2129;--muted:#5f6673;--border:#dde1e7;--link:#1a5fb4;--accent:#1a5fb4;--warn-bg:#fff6e0;--warn-border:#e6b84c;--warn-fg:#7a5200;--error-bg:#fdeceb;--error-fg:#a2231d;--info-bg:#e8f1fb;--info-fg:#1a5fb4;--fresh:#1f8a4c;--aging:#8a7a00;--stale:#c26100;--ancient:#c0262d;--major:#c0262d;--minor:#c26100;--patch:#1f8a4c;--digest:#6a4bb8;--other:#5f6673;--radius:6px;--mono:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#15171b;--bg-soft:#1e2127;--fg:#e4e6ea;--muted:#9aa1ad;--border:#2f343c;--link:#78aef0;--accent:#78aef0;--warn-bg:#2e2612;--warn-border:#8a6a1c;--warn-fg:#f0c766;--error-bg:#34191a;--error-fg:#f2908b;--info-bg:#172536;--info-fg:#78aef0;--fresh:#4cc27c;--aging:#d6c24a;--stale:#f0954a;--ancient:#f2716f;--major:#f2716f;--minor:#f0954a;--patch:#4cc27c;--digest:#a78bf0;--other:#9aa1ad}}*{box-sizing:border-box}body{background:var(--bg);color:var(--fg);margin:0;font:14px/1.5 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}a{color:var(--link);text-decoration:none}a:hover{text-decoration:underline}code,.version{font-family:var(--mono);font-size:.92em}h1{word-break:break-word;margin:.2rem 0 .8rem;font-size:1.6rem}h2{margin:1.8rem 0 .6rem;font-size:1.15rem}h3{margin:1.4rem 0 .4rem;font-size:1rem}.muted{color:var(--muted)}.topbar{z-index:10;background:var(--bg-soft);border-bottom:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:.5rem 1.5rem;padding:.6rem 1.5rem;display:flex;position:sticky;top:0}.brand{color:var(--fg);font-weight:600}.topbar nav{gap:.25rem;display:flex}.topbar nav a{border-radius:var(--radius);color:var(--fg);padding:.25rem .7rem}.topbar nav a.active{background:var(--bg);box-shadow:inset 0 0 0 1px var(--border)}.nav-count{margin-left:.4rem}.page{max-width:1280px;margin:0 auto;padding:1rem 1.5rem 2rem}.footer{max-width:1280px;margin:0 auto;padding:1rem 1.5rem 2rem;font-size:.85em}.crumbs{margin:0;font-size:.9em}.stats{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:.75rem;margin:1rem 0;display:grid}.stat{background:var(--bg-soft);border:1px solid var(--border);border-radius:var(--radius);padding:.75rem 1rem}.stat-value{font-variant-numeric:tabular-nums;font-size:1.5rem;font-weight:600}.stat-label{color:var(--muted);font-size:.85em}.stat.tone-warn{background:var(--warn-bg);border-color:var(--warn-border)}.callout{border-radius:var(--radius);border:1px solid var(--border);margin:1.2rem 0;padding:.25rem 1rem .75rem}.callout h2{margin-top:.75rem}.callout-warn{background:var(--warn-bg);border-color:var(--warn-border)}.columns{grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:0 2rem;display:grid}.bars{margin:0;padding:0;list-style:none}.bars li{grid-template-columns:11rem 1fr 3rem;align-items:center;gap:.6rem;padding:.15rem 0;display:grid}.bar-label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.bar-track{background:var(--bg-soft);border-radius:3px;height:.7rem}.bar{background:var(--accent);border-radius:3px;min-width:2px;height:100%;display:block}.bar-count{text-align:right;font-variant-numeric:tabular-nums}.toolbar{flex-wrap:wrap;align-items:center;gap:.75rem 1.25rem;margin:.5rem 0;display:flex}.toolbar input[type=search]{min-width:min(22rem,100%);font:inherit;color:var(--fg);background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);padding:.4rem .6rem}.legend{margin:.25rem 0 .5rem;font-size:.85em}.table-wrap{border:1px solid var(--border);border-radius:var(--radius);overflow-x:auto}table{border-collapse:collapse;width:100%}th,td{text-align:left;vertical-align:top;border-bottom:1px solid var(--border);padding:.4rem .7rem}tbody tr:last-child td{border-bottom:none}tbody tr:hover{background:var(--bg-soft)}th{background:var(--bg-soft);white-space:nowrap;font-weight:600}.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.sort{all:unset;cursor:pointer}.sort:focus-visible{outline:2px solid var(--accent)}.sort-arrow{width:1em;margin-left:.2em;font-size:.75em;display:inline-block}.badge{white-space:nowrap;color:var(--other);border-radius:999px;padding:0 .45em;font-size:.8em;font-weight:600;line-height:1.6;display:inline-block;box-shadow:inset 0 0 0 1px}.badges{flex-wrap:wrap;gap:.3rem .6rem;display:inline-flex}.type-major{color:var(--major)}.type-minor{color:var(--minor)}.type-patch{color:var(--patch)}.type-digest,.type-pinDigest{color:var(--digest)}.bar.type-major{background:var(--major)}.bar.type-minor{background:var(--minor)}.bar.type-patch{background:var(--patch)}.bar.type-digest,.bar.type-pinDigest{background:var(--digest)}.badge.breaking{color:var(--major);margin-left:.3rem}.badge.skipped{color:var(--muted);font-weight:400}.badge.level-warn{color:var(--warn-fg)}.badge.level-error,.badge.level-fatal{color:var(--error-fg)}.badge.level-info{color:var(--info-fg)}.updates{margin:0;padding:0;list-style:none}.updates li{white-space:nowrap}.age{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:600}.age-fresh{color:var(--fresh)}.age-aging{color:var(--aging)}.age-stale{color:var(--stale)}.age-ancient{color:var(--ancient)}.legend .age{margin-right:.4rem;font-weight:400}.digest{font-size:.85em}.warning{color:var(--warn-fg);font-size:.9em}.problems{gap:.6rem;margin:0;padding:0;list-style:none;display:grid}.problem{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);border-left-width:4px;padding:.6rem .9rem}.problem.level-warn{border-left-color:var(--warn-border)}.problem.level-error,.problem.level-fatal{border-left-color:var(--error-fg)}.problem-msg{margin:.3rem 0}.problem-context{margin:0;font-size:.85em}.problem-context div{gap:.5rem;display:flex}.problem-context dt{color:var(--muted)}.problem-context dd{word-break:break-all;margin:0}.manager h3{border-bottom:1px solid var(--border);padding-bottom:.3rem}.package-file{margin:.6rem 0 1rem}.package-file summary{cursor:pointer;padding:.3rem 0}.package-file .table-wrap{margin-top:.3rem}.error{white-space:pre-wrap;background:var(--error-bg);color:var(--error-fg);border-radius:var(--radius);padding:1rem}.button{border:1px solid var(--border);border-radius:var(--radius);background:var(--bg);color:var(--fg);align-items:center;gap:.4em;padding:.35rem .85rem;font-weight:500;display:inline-flex}.button:hover{border-color:var(--accent);text-decoration:none}.button-primary{background:var(--accent);border-color:var(--accent);color:var(--bg)}.button-primary:hover{filter:brightness(1.1)}.callout .button{margin-top:.25rem}.actions{flex-wrap:wrap;gap:.5rem;margin:1rem 0;display:flex}.count{font-variant-numeric:tabular-nums}.update-counts{gap:.5rem;display:inline-flex}.update-count{white-space:nowrap;align-items:center;gap:.3em;min-width:5.6em;display:inline-flex}.update-count .count{text-align:right;min-width:2ch}.with-icon{align-items:center;gap:.45em;display:inline-flex}.ds-icon{flex:none;width:1em;height:1em}h1 .ds-icon{width:.85em;height:.85em}.version-chips{flex-wrap:wrap;gap:.3rem;display:inline-flex}.version-chip{border-radius:var(--radius);background:var(--bg-soft);box-shadow:inset 0 0 0 1px var(--border);white-space:nowrap;align-items:baseline;gap:.35em;padding:0 .45em;display:inline-flex}.version-chip .count{color:var(--muted);font-size:.85em}.outlier-badge{color:var(--warn-fg);margin-left:.5rem;font-family:system-ui,sans-serif}.filter-chips{border:0;flex-wrap:wrap;align-items:center;gap:.4rem;margin:.5rem 0;padding:0;display:flex}.filter-chips legend{float:left;margin-right:.4rem;padding:0}.filter-chip,.filter-clear{font:inherit;color:var(--fg);background:var(--bg);border:1px solid var(--border);cursor:pointer;border-radius:999px;align-items:center;gap:.4em;padding:.2rem .6rem;font-size:.9em;display:inline-flex}.filter-chip .count{color:var(--muted)}.filter-chip[aria-pressed=true]{background:var(--info-bg);border-color:var(--accent)}.filter-clear{color:var(--muted);border-style:dashed}.repo-list ul{margin:0;padding-left:1.1em}.repo-list details summary{cursor:pointer;color:var(--link);margin-top:.15rem;font-size:.9em}.version-chip.outlier .count{color:var(--warn-fg);background:var(--warn-bg);box-shadow:inset 0 0 0 1px var(--warn-border);border-radius:3px;padding:0 .3em;font-weight:600}
10
+ /*$vite$:1*/</style>
11
+ </head>
12
+ <body>
13
+ <div id="app"></div>
14
+ <script id="report-data" type="application/json">__RENOVATE_REPORT_DATA__</script>
15
+ </body>
16
+ </html>
package/package.json CHANGED
@@ -1,6 +1,48 @@
1
1
  {
2
2
  "name": "renovate-report-html",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.1",
4
+ "description": "Turn a Renovate JSON report into one interactive, self-contained HTML page",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/jvacek/renovate-report-html.git"
10
+ },
11
+ "bin": {
12
+ "renovate-report-html": "dist/cli.mjs"
13
+ },
14
+ "files": [
15
+ "dist"
16
+ ],
17
+ "engines": {
18
+ "node": ">=22.12"
19
+ },
20
+ "packageManager": "pnpm@12.23.0",
21
+ "scripts": {
22
+ "dev": "vite",
23
+ "build": "vite build && tsdown",
24
+ "render:fixture": "node dist/cli.mjs fixtures/github-report-full.json -o out/demo/github/ --title \"Renovate report demo: GitHub\" && node dist/cli.mjs fixtures/gitlab-report-full.json -o out/demo/gitlab/ --title \"Renovate report demo: GitLab\" && node dist/cli.mjs fixtures/local-report.json -o out/demo/local/ --title \"Renovate report demo: local\"",
25
+ "test": "vitest run",
26
+ "test:watch": "vitest",
27
+ "lint": "biome check .",
28
+ "format": "biome check --write .",
29
+ "typecheck": "tsc --noEmit",
30
+ "prepack": "npm run build"
31
+ },
32
+ "dependencies": {
33
+ "zod": "^4.6.7"
34
+ },
35
+ "devDependencies": {
36
+ "@biomejs/biome": "^2.6.9",
37
+ "@preact/preset-vite": "^2.10.6",
38
+ "@types/node": "^22.20.7",
39
+ "happy-dom": "^21.0.4",
40
+ "preact": "^11.2.0",
41
+ "simple-icons": "^16.38.1",
42
+ "tsdown": "^0.23.7",
43
+ "typescript": "^7.0.2",
44
+ "vite": "^8.3.8",
45
+ "vite-plugin-singlefile": "^2.3.4",
46
+ "vitest": "^5.1.1"
47
+ }
48
+ }