mirror of
https://github.com/docker/bake-action.git
synced 2026-11-29 13:17:46 +01:00
Merge pull request #381 from docker/dependabot/npm_and_yarn/docker/actions-toolkit-0.77.0
chore(deps): Bump @docker/actions-toolkit from 0.68.0 to 0.77.0
This commit is contained in:
10 files changed
+596
-1185
No files matched your search
+28
-104
@@ -6,7 +6,6 @@ import * as path from 'path';
|
||||
import {Bake} from '@docker/actions-toolkit/lib/buildx/bake.js';
|
||||
import {Builder} from '@docker/actions-toolkit/lib/buildx/builder.js';
|
||||
import {Buildx} from '@docker/actions-toolkit/lib/buildx/buildx.js';
|
||||
import {Context} from '@docker/actions-toolkit/lib/context.js';
|
||||
import {Docker} from '@docker/actions-toolkit/lib/docker/docker.js';
|
||||
import {Toolkit} from '@docker/actions-toolkit/lib/toolkit.js';
|
||||
|
||||
@@ -16,18 +15,7 @@ import {BuilderInfo} from '@docker/actions-toolkit/lib/types/buildx/builder.js';
|
||||
import * as context from '../src/context.js';
|
||||
|
||||
const tmpDir = fs.mkdtempSync(path.join(process.env.TEMP || os.tmpdir(), 'context-'));
|
||||
const tmpName = path.join(tmpDir, '.tmpname-vi');
|
||||
|
||||
vi.spyOn(Context, 'tmpDir').mockImplementation((): string => {
|
||||
if (!fs.existsSync(tmpDir)) {
|
||||
fs.mkdirSync(tmpDir, {recursive: true});
|
||||
}
|
||||
return tmpDir;
|
||||
});
|
||||
|
||||
vi.spyOn(Context, 'tmpName').mockImplementation((): string => {
|
||||
return tmpName;
|
||||
});
|
||||
const fixturesDir = path.join(__dirname, 'fixtures');
|
||||
|
||||
vi.spyOn(Docker, 'isAvailable').mockImplementation(async (): Promise<boolean> => {
|
||||
return true;
|
||||
@@ -38,81 +26,17 @@ vi.spyOn(Bake.prototype, 'getMetadataFilePath').mockImplementation((): string =>
|
||||
return metadataJson;
|
||||
});
|
||||
|
||||
type BuilderInfoFixture = Omit<BuilderInfo, 'lastActivity'> & {lastActivity: string};
|
||||
const builderInfoFixture = <BuilderInfoFixture>JSON.parse(fs.readFileSync(path.join(fixturesDir, 'builder-info.json'), {encoding: 'utf-8'}).trim());
|
||||
vi.spyOn(Builder.prototype, 'inspect').mockImplementation(async (): Promise<BuilderInfo> => {
|
||||
return {
|
||||
name: 'builder2',
|
||||
driver: 'docker-container',
|
||||
lastActivity: new Date('2023-01-16 09:45:23 +0000 UTC'),
|
||||
nodes: [
|
||||
{
|
||||
buildkit: 'v0.11.0',
|
||||
'buildkitd-flags': '--debug --allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host',
|
||||
'driver-opts': ['BUILDKIT_STEP_LOG_MAX_SIZE=10485760', 'BUILDKIT_STEP_LOG_MAX_SPEED=10485760', 'JAEGER_TRACE=localhost:6831', 'image=moby/buildkit:latest', 'network=host'],
|
||||
endpoint: 'unix:///var/run/docker.sock',
|
||||
name: 'builder20',
|
||||
platforms: 'linux/amd64,linux/amd64/v2,linux/amd64/v3,linux/arm64,linux/riscv64,linux/ppc64le,linux/s390x,linux/386,linux/mips64le,linux/mips64,linux/arm/v7,linux/arm/v6',
|
||||
status: 'running'
|
||||
}
|
||||
]
|
||||
...builderInfoFixture,
|
||||
lastActivity: new Date(builderInfoFixture.lastActivity)
|
||||
};
|
||||
});
|
||||
|
||||
vi.spyOn(Bake.prototype, 'getDefinition').mockImplementation(async (): Promise<BakeDefinition> => {
|
||||
return JSON.parse(`{
|
||||
"group": {
|
||||
"default": {
|
||||
"targets": [
|
||||
"validate"
|
||||
]
|
||||
},
|
||||
"validate": {
|
||||
"targets": [
|
||||
"lint",
|
||||
"validate-vendor",
|
||||
"validate-docs"
|
||||
]
|
||||
}
|
||||
},
|
||||
"target": {
|
||||
"lint": {
|
||||
"context": ".",
|
||||
"dockerfile": "./hack/dockerfiles/lint.Dockerfile",
|
||||
"args": {
|
||||
"BUILDKIT_CONTEXT_KEEP_GIT_DIR": "1",
|
||||
"GO_VERSION": "1.20"
|
||||
},
|
||||
"output": [
|
||||
"type=cacheonly"
|
||||
]
|
||||
},
|
||||
"validate-docs": {
|
||||
"context": ".",
|
||||
"dockerfile": "./hack/dockerfiles/docs.Dockerfile",
|
||||
"args": {
|
||||
"BUILDKIT_CONTEXT_KEEP_GIT_DIR": "1",
|
||||
"BUILDX_EXPERIMENTAL": "1",
|
||||
"FORMATS": "md",
|
||||
"GO_VERSION": "1.20"
|
||||
},
|
||||
"target": "validate",
|
||||
"output": [
|
||||
"type=cacheonly"
|
||||
]
|
||||
},
|
||||
"validate-vendor": {
|
||||
"context": ".",
|
||||
"dockerfile": "./hack/dockerfiles/vendor.Dockerfile",
|
||||
"args": {
|
||||
"BUILDKIT_CONTEXT_KEEP_GIT_DIR": "1",
|
||||
"GO_VERSION": "1.20"
|
||||
},
|
||||
"target": "validate",
|
||||
"output": [
|
||||
"type=cacheonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
}`) as BakeDefinition;
|
||||
return <BakeDefinition>JSON.parse(fs.readFileSync(path.join(fixturesDir, 'bake-def.json'), {encoding: 'utf-8'}).trim());
|
||||
});
|
||||
|
||||
describe('getArgs', () => {
|
||||
@@ -212,9 +136,9 @@ describe('getArgs', () => {
|
||||
[
|
||||
'bake',
|
||||
'--metadata-file', metadataJson,
|
||||
'--set', `lint.attest=type=provenance,mode=min,inline-only=true,builder-id=https://github.com/docker/build-push-action/actions/runs/123456789/attempts/1`,
|
||||
'--set', `validate-docs.attest=type=provenance,mode=min,inline-only=true,builder-id=https://github.com/docker/build-push-action/actions/runs/123456789/attempts/1`,
|
||||
'--set', `validate-vendor.attest=type=provenance,mode=min,inline-only=true,builder-id=https://github.com/docker/build-push-action/actions/runs/123456789/attempts/1`,
|
||||
'--set', `lint.attest=type=provenance,mode=min,inline-only=true,builder-id=https://github.com/docker/bake-action/actions/runs/123456789/attempts/1`,
|
||||
'--set', `validate-docs.attest=type=provenance,mode=min,inline-only=true,builder-id=https://github.com/docker/bake-action/actions/runs/123456789/attempts/1`,
|
||||
'--set', `validate-vendor.attest=type=provenance,mode=min,inline-only=true,builder-id=https://github.com/docker/bake-action/actions/runs/123456789/attempts/1`,
|
||||
],
|
||||
undefined
|
||||
],
|
||||
@@ -232,7 +156,7 @@ describe('getArgs', () => {
|
||||
[
|
||||
'bake',
|
||||
'--metadata-file', metadataJson,
|
||||
"--provenance", `builder-id=https://github.com/docker/build-push-action/actions/runs/123456789/attempts/1`
|
||||
"--provenance", `builder-id=https://github.com/docker/bake-action/actions/runs/123456789/attempts/1`
|
||||
],
|
||||
undefined
|
||||
],
|
||||
@@ -250,7 +174,7 @@ describe('getArgs', () => {
|
||||
[
|
||||
'bake',
|
||||
'--metadata-file', metadataJson,
|
||||
"--provenance", `mode=max,builder-id=https://github.com/docker/build-push-action/actions/runs/123456789/attempts/1`
|
||||
"--provenance", `mode=max,builder-id=https://github.com/docker/bake-action/actions/runs/123456789/attempts/1`
|
||||
],
|
||||
undefined
|
||||
],
|
||||
@@ -307,9 +231,9 @@ describe('getArgs', () => {
|
||||
'--set', '*.platform=linux/amd64,linux/ppc64le,linux/s390x',
|
||||
'--set', `*.output=type=image,"name=moby/buildkit:v0.11.0,moby/buildkit:latest",push=true`,
|
||||
'--metadata-file', metadataJson,
|
||||
'--set', `lint.attest=type=provenance,mode=min,inline-only=true,builder-id=https://github.com/docker/build-push-action/actions/runs/123456789/attempts/1`,
|
||||
'--set', `validate-docs.attest=type=provenance,mode=min,inline-only=true,builder-id=https://github.com/docker/build-push-action/actions/runs/123456789/attempts/1`,
|
||||
'--set', `validate-vendor.attest=type=provenance,mode=min,inline-only=true,builder-id=https://github.com/docker/build-push-action/actions/runs/123456789/attempts/1`,
|
||||
'--set', `lint.attest=type=provenance,mode=min,inline-only=true,builder-id=https://github.com/docker/bake-action/actions/runs/123456789/attempts/1`,
|
||||
'--set', `validate-docs.attest=type=provenance,mode=min,inline-only=true,builder-id=https://github.com/docker/bake-action/actions/runs/123456789/attempts/1`,
|
||||
'--set', `validate-vendor.attest=type=provenance,mode=min,inline-only=true,builder-id=https://github.com/docker/bake-action/actions/runs/123456789/attempts/1`,
|
||||
'image-all'
|
||||
],
|
||||
undefined
|
||||
@@ -330,9 +254,9 @@ describe('getArgs', () => {
|
||||
'bake',
|
||||
'--set', `*.labels.foo=bar=#baz`,
|
||||
'--metadata-file', metadataJson,
|
||||
'--set', `lint.attest=type=provenance,mode=min,inline-only=true,builder-id=https://github.com/docker/build-push-action/actions/runs/123456789/attempts/1`,
|
||||
'--set', `validate-docs.attest=type=provenance,mode=min,inline-only=true,builder-id=https://github.com/docker/build-push-action/actions/runs/123456789/attempts/1`,
|
||||
'--set', `validate-vendor.attest=type=provenance,mode=min,inline-only=true,builder-id=https://github.com/docker/build-push-action/actions/runs/123456789/attempts/1`,
|
||||
'--set', `lint.attest=type=provenance,mode=min,inline-only=true,builder-id=https://github.com/docker/bake-action/actions/runs/123456789/attempts/1`,
|
||||
'--set', `validate-docs.attest=type=provenance,mode=min,inline-only=true,builder-id=https://github.com/docker/bake-action/actions/runs/123456789/attempts/1`,
|
||||
'--set', `validate-vendor.attest=type=provenance,mode=min,inline-only=true,builder-id=https://github.com/docker/bake-action/actions/runs/123456789/attempts/1`,
|
||||
'image-all'
|
||||
],
|
||||
undefined
|
||||
@@ -349,12 +273,12 @@ describe('getArgs', () => {
|
||||
]),
|
||||
[
|
||||
'bake',
|
||||
'https://github.com/docker/build-push-action.git#refs/heads/master',
|
||||
'https://github.com/docker/bake-action.git#refs/heads/master',
|
||||
'--file', './foo.hcl',
|
||||
'--metadata-file', metadataJson,
|
||||
'--set', `lint.attest=type=provenance,mode=min,inline-only=true,builder-id=https://github.com/docker/build-push-action/actions/runs/123456789/attempts/1`,
|
||||
'--set', `validate-docs.attest=type=provenance,mode=min,inline-only=true,builder-id=https://github.com/docker/build-push-action/actions/runs/123456789/attempts/1`,
|
||||
'--set', `validate-vendor.attest=type=provenance,mode=min,inline-only=true,builder-id=https://github.com/docker/build-push-action/actions/runs/123456789/attempts/1`
|
||||
'--set', `lint.attest=type=provenance,mode=min,inline-only=true,builder-id=https://github.com/docker/bake-action/actions/runs/123456789/attempts/1`,
|
||||
'--set', `validate-docs.attest=type=provenance,mode=min,inline-only=true,builder-id=https://github.com/docker/bake-action/actions/runs/123456789/attempts/1`,
|
||||
'--set', `validate-vendor.attest=type=provenance,mode=min,inline-only=true,builder-id=https://github.com/docker/bake-action/actions/runs/123456789/attempts/1`
|
||||
],
|
||||
undefined
|
||||
],
|
||||
@@ -373,9 +297,9 @@ describe('getArgs', () => {
|
||||
'bake',
|
||||
'--allow', 'network.host',
|
||||
'--metadata-file', metadataJson,
|
||||
'--set', `lint.attest=type=provenance,mode=min,inline-only=true,builder-id=https://github.com/docker/build-push-action/actions/runs/123456789/attempts/1`,
|
||||
'--set', `validate-docs.attest=type=provenance,mode=min,inline-only=true,builder-id=https://github.com/docker/build-push-action/actions/runs/123456789/attempts/1`,
|
||||
'--set', `validate-vendor.attest=type=provenance,mode=min,inline-only=true,builder-id=https://github.com/docker/build-push-action/actions/runs/123456789/attempts/1`
|
||||
'--set', `lint.attest=type=provenance,mode=min,inline-only=true,builder-id=https://github.com/docker/bake-action/actions/runs/123456789/attempts/1`,
|
||||
'--set', `validate-docs.attest=type=provenance,mode=min,inline-only=true,builder-id=https://github.com/docker/bake-action/actions/runs/123456789/attempts/1`,
|
||||
'--set', `validate-vendor.attest=type=provenance,mode=min,inline-only=true,builder-id=https://github.com/docker/bake-action/actions/runs/123456789/attempts/1`
|
||||
],
|
||||
undefined
|
||||
],
|
||||
@@ -392,12 +316,12 @@ describe('getArgs', () => {
|
||||
]),
|
||||
[
|
||||
'bake',
|
||||
'https://github.com/docker/build-push-action.git#refs/heads/master:subdir',
|
||||
'https://github.com/docker/bake-action.git#refs/heads/master:subdir',
|
||||
'--file', './foo.hcl',
|
||||
'--metadata-file', metadataJson,
|
||||
'--set', `lint.attest=type=provenance,mode=min,inline-only=true,builder-id=https://github.com/docker/build-push-action/actions/runs/123456789/attempts/1`,
|
||||
'--set', `validate-docs.attest=type=provenance,mode=min,inline-only=true,builder-id=https://github.com/docker/build-push-action/actions/runs/123456789/attempts/1`,
|
||||
'--set', `validate-vendor.attest=type=provenance,mode=min,inline-only=true,builder-id=https://github.com/docker/build-push-action/actions/runs/123456789/attempts/1`
|
||||
'--set', `lint.attest=type=provenance,mode=min,inline-only=true,builder-id=https://github.com/docker/bake-action/actions/runs/123456789/attempts/1`,
|
||||
'--set', `validate-docs.attest=type=provenance,mode=min,inline-only=true,builder-id=https://github.com/docker/bake-action/actions/runs/123456789/attempts/1`,
|
||||
'--set', `validate-vendor.attest=type=provenance,mode=min,inline-only=true,builder-id=https://github.com/docker/bake-action/actions/runs/123456789/attempts/1`
|
||||
],
|
||||
undefined
|
||||
],
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"group": {
|
||||
"default": {
|
||||
"targets": [
|
||||
"validate"
|
||||
]
|
||||
},
|
||||
"validate": {
|
||||
"targets": [
|
||||
"lint",
|
||||
"validate-vendor",
|
||||
"validate-docs"
|
||||
]
|
||||
}
|
||||
},
|
||||
"target": {
|
||||
"lint": {
|
||||
"context": ".",
|
||||
"dockerfile": "./hack/dockerfiles/lint.Dockerfile",
|
||||
"args": {
|
||||
"BUILDKIT_CONTEXT_KEEP_GIT_DIR": "1",
|
||||
"GO_VERSION": "1.20"
|
||||
},
|
||||
"output": [
|
||||
"type=cacheonly"
|
||||
]
|
||||
},
|
||||
"validate-docs": {
|
||||
"context": ".",
|
||||
"dockerfile": "./hack/dockerfiles/docs.Dockerfile",
|
||||
"args": {
|
||||
"BUILDKIT_CONTEXT_KEEP_GIT_DIR": "1",
|
||||
"BUILDX_EXPERIMENTAL": "1",
|
||||
"FORMATS": "md",
|
||||
"GO_VERSION": "1.20"
|
||||
},
|
||||
"target": "validate",
|
||||
"output": [
|
||||
"type=cacheonly"
|
||||
]
|
||||
},
|
||||
"validate-vendor": {
|
||||
"context": ".",
|
||||
"dockerfile": "./hack/dockerfiles/vendor.Dockerfile",
|
||||
"args": {
|
||||
"BUILDKIT_CONTEXT_KEEP_GIT_DIR": "1",
|
||||
"GO_VERSION": "1.20"
|
||||
},
|
||||
"target": "validate",
|
||||
"output": [
|
||||
"type=cacheonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"name": "builder2",
|
||||
"driver": "docker-container",
|
||||
"lastActivity": "2023-01-16 09:45:23 +0000 UTC",
|
||||
"nodes": [
|
||||
{
|
||||
"buildkit": "v0.11.0",
|
||||
"buildkitd-flags": "--debug --allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host",
|
||||
"driver-opts": [
|
||||
"BUILDKIT_STEP_LOG_MAX_SIZE=10485760",
|
||||
"BUILDKIT_STEP_LOG_MAX_SPEED=10485760",
|
||||
"JAEGER_TRACE=localhost:6831",
|
||||
"image=moby/buildkit:latest",
|
||||
"network=host"
|
||||
],
|
||||
"endpoint": "unix:///var/run/docker.sock",
|
||||
"name": "builder20",
|
||||
"platforms": "linux/amd64,linux/amd64/v2,linux/amd64/v3,linux/arm64,linux/riscv64,linux/ppc64le,linux/s390x,linux/386,linux/mips64le,linux/mips64,linux/arm/v7,linux/arm/v6",
|
||||
"status": "running"
|
||||
}
|
||||
]
|
||||
}
|
||||
+17
-236
@@ -1,258 +1,39 @@
|
||||
import fs from 'node:fs';
|
||||
import {createRequire} from 'node:module';
|
||||
import os from 'node:os';
|
||||
import path from 'node:path';
|
||||
import {vi} from 'vitest';
|
||||
|
||||
const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'docker-bake-action-'));
|
||||
|
||||
const githubPayload = {
|
||||
repository: {
|
||||
private: true
|
||||
}
|
||||
};
|
||||
|
||||
const githubEventPath = path.join(tmpDir, 'github-event.json');
|
||||
fs.writeFileSync(githubEventPath, JSON.stringify(githubPayload));
|
||||
|
||||
process.env = Object.assign({}, process.env, {
|
||||
TEMP: tmpDir,
|
||||
GITHUB_REPOSITORY: 'docker/bake-action',
|
||||
GITHUB_REF: 'refs/heads/master',
|
||||
GITHUB_RUN_ID: '123456789',
|
||||
GITHUB_RUN_ATTEMPT: '1',
|
||||
GITHUB_EVENT_PATH: githubEventPath,
|
||||
RUNNER_TEMP: path.join(tmpDir, 'runner-temp'),
|
||||
RUNNER_TOOL_CACHE: path.join(tmpDir, 'runner-tool-cache')
|
||||
});
|
||||
|
||||
const require = createRequire(import.meta.url);
|
||||
type RequireCacheEntry = NonNullable<(typeof require.cache)[string]>;
|
||||
|
||||
const githubMock = {
|
||||
vi.mock('@actions/github', () => ({
|
||||
context: {
|
||||
repo: {
|
||||
owner: 'docker',
|
||||
repo: 'build-push-action'
|
||||
repo: 'bake-action'
|
||||
},
|
||||
ref: 'refs/heads/master',
|
||||
runId: 123456789,
|
||||
payload: {
|
||||
after: '860c1904a1ce19322e91ac35af1ab07466440c37',
|
||||
base_ref: null,
|
||||
before: '5f3331d7f7044c18ca9f12c77d961c4d7cf3276a',
|
||||
commits: [
|
||||
{
|
||||
author: {
|
||||
email: 'crazy-max@users.noreply.github.com',
|
||||
name: 'CrazyMax',
|
||||
username: 'crazy-max'
|
||||
},
|
||||
committer: {
|
||||
email: 'crazy-max@users.noreply.github.com',
|
||||
name: 'CrazyMax',
|
||||
username: 'crazy-max'
|
||||
},
|
||||
distinct: true,
|
||||
id: '860c1904a1ce19322e91ac35af1ab07466440c37',
|
||||
message: 'hello dev',
|
||||
timestamp: '2022-04-19T11:27:24+02:00',
|
||||
tree_id: 'd2c60af597e863787d2d27f569e30495b0b92820',
|
||||
url: 'https://github.com/docker/test-docker-action/commit/860c1904a1ce19322e91ac35af1ab07466440c37'
|
||||
}
|
||||
],
|
||||
compare: 'https://github.com/docker/test-docker-action/compare/5f3331d7f704...860c1904a1ce',
|
||||
created: false,
|
||||
deleted: false,
|
||||
forced: false,
|
||||
head_commit: {
|
||||
author: {
|
||||
email: 'crazy-max@users.noreply.github.com',
|
||||
name: 'CrazyMax',
|
||||
username: 'crazy-max'
|
||||
},
|
||||
committer: {
|
||||
email: 'crazy-max@users.noreply.github.com',
|
||||
name: 'CrazyMax',
|
||||
username: 'crazy-max'
|
||||
},
|
||||
distinct: true,
|
||||
id: '860c1904a1ce19322e91ac35af1ab07466440c37',
|
||||
message: 'hello dev',
|
||||
timestamp: '2022-04-19T11:27:24+02:00',
|
||||
tree_id: 'd2c60af597e863787d2d27f569e30495b0b92820',
|
||||
url: 'https://github.com/docker/test-docker-action/commit/860c1904a1ce19322e91ac35af1ab07466440c37'
|
||||
},
|
||||
organization: {
|
||||
avatar_url: 'https://avatars.githubusercontent.com/u/5429470?v=4',
|
||||
description: 'Docker helps developers bring their ideas to life by conquering the complexity of app development.',
|
||||
events_url: 'https://api.github.com/orgs/docker/events',
|
||||
hooks_url: 'https://api.github.com/orgs/docker/hooks',
|
||||
id: 5429470,
|
||||
issues_url: 'https://api.github.com/orgs/docker/issues',
|
||||
login: 'docker',
|
||||
members_url: 'https://api.github.com/orgs/docker/members{/member}',
|
||||
node_id: 'MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=',
|
||||
public_members_url: 'https://api.github.com/orgs/docker/public_members{/member}',
|
||||
repos_url: 'https://api.github.com/orgs/docker/repos',
|
||||
url: 'https://api.github.com/orgs/docker'
|
||||
},
|
||||
pusher: {
|
||||
email: 'github@crazymax.dev',
|
||||
name: 'crazy-max'
|
||||
},
|
||||
ref: 'refs/heads/dev',
|
||||
repository: {
|
||||
allow_forking: true,
|
||||
archive_url: 'https://api.github.com/repos/docker/test-docker-action/{archive_format}{/ref}',
|
||||
archived: false,
|
||||
assignees_url: 'https://api.github.com/repos/docker/test-docker-action/assignees{/user}',
|
||||
blobs_url: 'https://api.github.com/repos/docker/test-docker-action/git/blobs{/sha}',
|
||||
branches_url: 'https://api.github.com/repos/docker/test-docker-action/branches{/branch}',
|
||||
clone_url: 'https://github.com/docker/test-docker-action.git',
|
||||
collaborators_url: 'https://api.github.com/repos/docker/test-docker-action/collaborators{/collaborator}',
|
||||
comments_url: 'https://api.github.com/repos/docker/test-docker-action/comments{/number}',
|
||||
commits_url: 'https://api.github.com/repos/docker/test-docker-action/commits{/sha}',
|
||||
compare_url: 'https://api.github.com/repos/docker/test-docker-action/compare/{base}...{head}',
|
||||
contents_url: 'https://api.github.com/repos/docker/test-docker-action/contents/{+path}',
|
||||
contributors_url: 'https://api.github.com/repos/docker/test-docker-action/contributors',
|
||||
created_at: 1596792180,
|
||||
default_branch: 'master',
|
||||
deployments_url: 'https://api.github.com/repos/docker/test-docker-action/deployments',
|
||||
description: 'Test "Docker" Actions',
|
||||
disabled: false,
|
||||
downloads_url: 'https://api.github.com/repos/docker/test-docker-action/downloads',
|
||||
events_url: 'https://api.github.com/repos/docker/test-docker-action/events',
|
||||
fork: false,
|
||||
forks: 1,
|
||||
forks_count: 1,
|
||||
forks_url: 'https://api.github.com/repos/docker/test-docker-action/forks',
|
||||
full_name: 'docker/test-docker-action',
|
||||
git_commits_url: 'https://api.github.com/repos/docker/test-docker-action/git/commits{/sha}',
|
||||
git_refs_url: 'https://api.github.com/repos/docker/test-docker-action/git/refs{/sha}',
|
||||
git_tags_url: 'https://api.github.com/repos/docker/test-docker-action/git/tags{/sha}',
|
||||
git_url: 'git://github.com/docker/test-docker-action.git',
|
||||
has_downloads: true,
|
||||
has_issues: true,
|
||||
has_pages: false,
|
||||
has_projects: true,
|
||||
has_wiki: true,
|
||||
homepage: '',
|
||||
hooks_url: 'https://api.github.com/repos/docker/test-docker-action/hooks',
|
||||
html_url: 'https://github.com/docker/test-docker-action',
|
||||
id: 285789493,
|
||||
is_template: false,
|
||||
issue_comment_url: 'https://api.github.com/repos/docker/test-docker-action/issues/comments{/number}',
|
||||
issue_events_url: 'https://api.github.com/repos/docker/test-docker-action/issues/events{/number}',
|
||||
issues_url: 'https://api.github.com/repos/docker/test-docker-action/issues{/number}',
|
||||
keys_url: 'https://api.github.com/repos/docker/test-docker-action/keys{/key_id}',
|
||||
labels_url: 'https://api.github.com/repos/docker/test-docker-action/labels{/name}',
|
||||
language: 'JavaScript',
|
||||
languages_url: 'https://api.github.com/repos/docker/test-docker-action/languages',
|
||||
license: {
|
||||
key: 'mit',
|
||||
name: 'MIT License',
|
||||
node_id: 'MDc6TGljZW5zZTEz',
|
||||
spdx_id: 'MIT',
|
||||
url: 'https://api.github.com/licenses/mit'
|
||||
},
|
||||
master_branch: 'master',
|
||||
merges_url: 'https://api.github.com/repos/docker/test-docker-action/merges',
|
||||
milestones_url: 'https://api.github.com/repos/docker/test-docker-action/milestones{/number}',
|
||||
mirror_url: null,
|
||||
name: 'test-docker-action',
|
||||
node_id: 'MDEwOlJlcG9zaXRvcnkyODU3ODk0OTM=',
|
||||
notifications_url: 'https://api.github.com/repos/docker/test-docker-action/notifications{?since,all,participating}',
|
||||
open_issues: 6,
|
||||
open_issues_count: 6,
|
||||
organization: 'docker',
|
||||
owner: {
|
||||
avatar_url: 'https://avatars.githubusercontent.com/u/5429470?v=4',
|
||||
email: 'info@docker.com',
|
||||
events_url: 'https://api.github.com/users/docker/events{/privacy}',
|
||||
followers_url: 'https://api.github.com/users/docker/followers',
|
||||
following_url: 'https://api.github.com/users/docker/following{/other_user}',
|
||||
gists_url: 'https://api.github.com/users/docker/gists{/gist_id}',
|
||||
gravatar_id: '',
|
||||
html_url: 'https://github.com/docker',
|
||||
id: 5429470,
|
||||
login: 'docker',
|
||||
name: 'docker',
|
||||
node_id: 'MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=',
|
||||
organizations_url: 'https://api.github.com/users/docker/orgs',
|
||||
received_events_url: 'https://api.github.com/users/docker/received_events',
|
||||
repos_url: 'https://api.github.com/users/docker/repos',
|
||||
site_admin: false,
|
||||
starred_url: 'https://api.github.com/users/docker/starred{/owner}{/repo}',
|
||||
subscriptions_url: 'https://api.github.com/users/docker/subscriptions',
|
||||
type: 'Organization',
|
||||
url: 'https://api.github.com/users/docker'
|
||||
},
|
||||
private: true,
|
||||
pulls_url: 'https://api.github.com/repos/docker/test-docker-action/pulls{/number}',
|
||||
pushed_at: 1650360446,
|
||||
releases_url: 'https://api.github.com/repos/docker/test-docker-action/releases{/id}',
|
||||
size: 796,
|
||||
ssh_url: 'git@github.com:docker/test-docker-action.git',
|
||||
stargazers: 0,
|
||||
stargazers_count: 0,
|
||||
stargazers_url: 'https://api.github.com/repos/docker/test-docker-action/stargazers',
|
||||
statuses_url: 'https://api.github.com/repos/docker/test-docker-action/statuses/{sha}',
|
||||
subscribers_url: 'https://api.github.com/repos/docker/test-docker-action/subscribers',
|
||||
subscription_url: 'https://api.github.com/repos/docker/test-docker-action/subscription',
|
||||
svn_url: 'https://github.com/docker/test-docker-action',
|
||||
tags_url: 'https://api.github.com/repos/docker/test-docker-action/tags',
|
||||
teams_url: 'https://api.github.com/repos/docker/test-docker-action/teams',
|
||||
topics: [],
|
||||
trees_url: 'https://api.github.com/repos/docker/test-docker-action/git/trees{/sha}',
|
||||
updated_at: '2022-04-19T09:05:09Z',
|
||||
url: 'https://github.com/docker/test-docker-action',
|
||||
visibility: 'private',
|
||||
watchers: 0,
|
||||
watchers_count: 0
|
||||
},
|
||||
sender: {
|
||||
avatar_url: 'https://avatars.githubusercontent.com/u/1951866?v=4',
|
||||
events_url: 'https://api.github.com/users/crazy-max/events{/privacy}',
|
||||
followers_url: 'https://api.github.com/users/crazy-max/followers',
|
||||
following_url: 'https://api.github.com/users/crazy-max/following{/other_user}',
|
||||
gists_url: 'https://api.github.com/users/crazy-max/gists{/gist_id}',
|
||||
gravatar_id: '',
|
||||
html_url: 'https://github.com/crazy-max',
|
||||
id: 1951866,
|
||||
login: 'crazy-max',
|
||||
node_id: 'MDQ6VXNlcjE5NTE4NjY=',
|
||||
organizations_url: 'https://api.github.com/users/crazy-max/orgs',
|
||||
received_events_url: 'https://api.github.com/users/crazy-max/received_events',
|
||||
repos_url: 'https://api.github.com/users/crazy-max/repos',
|
||||
site_admin: false,
|
||||
starred_url: 'https://api.github.com/users/crazy-max/starred{/owner}{/repo}',
|
||||
subscriptions_url: 'https://api.github.com/users/crazy-max/subscriptions',
|
||||
type: 'User',
|
||||
url: 'https://api.github.com/users/crazy-max'
|
||||
}
|
||||
}
|
||||
payload: githubPayload
|
||||
},
|
||||
getOctokit: vi.fn()
|
||||
};
|
||||
|
||||
vi.mock('@actions/github', () => githubMock);
|
||||
const githubModuleIds = new Set<string>(['@actions/github']);
|
||||
try {
|
||||
githubModuleIds.add(require.resolve('@actions/github'));
|
||||
} catch {
|
||||
// Ignore unresolved optional paths.
|
||||
}
|
||||
try {
|
||||
const toolkitRequire = createRequire(require.resolve('@docker/actions-toolkit/package.json'));
|
||||
githubModuleIds.add(toolkitRequire.resolve('@actions/github'));
|
||||
} catch {
|
||||
// Ignore when toolkit or its transitive github dependency cannot be resolved.
|
||||
}
|
||||
|
||||
for (const mod of githubModuleIds) {
|
||||
vi.doMock(mod, () => githubMock);
|
||||
}
|
||||
|
||||
for (const mod of githubModuleIds) {
|
||||
try {
|
||||
const resolved = require.resolve(mod);
|
||||
require.cache[resolved] = {
|
||||
id: resolved,
|
||||
filename: resolved,
|
||||
loaded: true,
|
||||
exports: githubMock,
|
||||
children: [],
|
||||
paths: []
|
||||
} as RequireCacheEntry;
|
||||
} catch {
|
||||
// Ignore unresolved optional paths; vi.mock handles module-level mocking.
|
||||
}
|
||||
}
|
||||
}));
|
||||
+25
-42
@@ -1,6 +1,4 @@
|
||||
import './sourcemap-register.cjs';import{createRequire as r}from"module";var i={76846:function(r,i,s){var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;var c=Object.getOwnPropertyDescriptor(i,s);if(!c||("get"in c?!i.__esModule:c.writable||c.configurable)){c={enumerable:true,get:function(){return i[s]}}}Object.defineProperty(r,a,c)}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var c=this&&this.__exportStar||function(r,i){for(var s in r)if(s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s))a(i,r,s)};Object.defineProperty(i,"__esModule",{value:true});const l=s(64487);c(s(13776),i);c(s(45655),i);c(s(64487),i);const u=new l.DefaultArtifactClient;i["default"]=u},35592:(r,i,s)=>{Object.defineProperty(i,"__esModule",{value:true});i.Timestamp=void 0;const a=s(68886);const c=s(68886);const l=s(68886);const u=s(68886);const d=s(68886);const p=s(68886);const A=s(68886);class Timestamp$Type extends A.MessageType{constructor(){super("google.protobuf.Timestamp",[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}])}now(){const r=this.create();const i=Date.now();r.seconds=p.PbLong.from(Math.floor(i/1e3)).toString();r.nanos=i%1e3*1e6;return r}toDate(r){return new Date(p.PbLong.from(r.seconds).toNumber()*1e3+Math.ceil(r.nanos/1e6))}fromDate(r){const i=this.create();const s=r.getTime();i.seconds=p.PbLong.from(Math.floor(s/1e3)).toString();i.nanos=s%1e3*1e6;return i}internalJsonWrite(r,i){let s=p.PbLong.from(r.seconds).toNumber()*1e3;if(s<Date.parse("0001-01-01T00:00:00Z")||s>Date.parse("9999-12-31T23:59:59Z"))throw new Error("Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(r.nanos<0)throw new Error("Unable to encode invalid Timestamp to JSON. Nanos must not be negative.");let a="Z";if(r.nanos>0){let i=(r.nanos+1e9).toString().substring(1);if(i.substring(3)==="000000")a="."+i.substring(0,3)+"Z";else if(i.substring(6)==="000")a="."+i.substring(0,6)+"Z";else a="."+i+"Z"}return new Date(s).toISOString().replace(".000Z",a)}internalJsonRead(r,i,s){if(typeof r!=="string")throw new Error("Unable to parse Timestamp from JSON "+(0,d.typeofJsonValue)(r)+".");let a=r.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!a)throw new Error("Unable to parse Timestamp from JSON. Invalid format.");let c=Date.parse(a[1]+"-"+a[2]+"-"+a[3]+"T"+a[4]+":"+a[5]+":"+a[6]+(a[8]?a[8]:"Z"));if(Number.isNaN(c))throw new Error("Unable to parse Timestamp from JSON. Invalid value.");if(c<Date.parse("0001-01-01T00:00:00Z")||c>Date.parse("9999-12-31T23:59:59Z"))throw new globalThis.Error("Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(!s)s=this.create();s.seconds=p.PbLong.from(c/1e3).toString();s.nanos=0;if(a[7])s.nanos=parseInt("1"+a[7]+"0".repeat(9-a[7].length))-1e9;return s}create(r){const i={seconds:"0",nanos:0};globalThis.Object.defineProperty(i,u.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,l.reflectionMergePartial)(this,i,r);return i}internalBinaryRead(r,i,s,a){let l=a!==null&&a!==void 0?a:this.create(),u=r.pos+i;while(r.pos<u){let[i,a]=r.tag();switch(i){case 1:l.seconds=r.int64().toString();break;case 2:l.nanos=r.int32();break;default:let u=s.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${i} (wire type ${a}) for ${this.typeName}`);let d=r.skip(a);if(u!==false)(u===true?c.UnknownFieldHandler.onRead:u)(this.typeName,l,i,a,d)}}return l}internalBinaryWrite(r,i,s){if(r.seconds!=="0")i.tag(1,a.WireType.Varint).int64(r.seconds);if(r.nanos!==0)i.tag(2,a.WireType.Varint).int32(r.nanos);let l=s.writeUnknownFields;if(l!==false)(l==true?c.UnknownFieldHandler.onWrite:l)(this.typeName,r,i);return i}}i.Timestamp=new Timestamp$Type},78806:(r,i,s)=>{Object.defineProperty(i,"__esModule",{value:true});i.BytesValue=i.StringValue=i.BoolValue=i.UInt32Value=i.Int32Value=i.UInt64Value=i.Int64Value=i.FloatValue=i.DoubleValue=void 0;const a=s(68886);const c=s(68886);const l=s(68886);const u=s(68886);const d=s(68886);const p=s(68886);const A=s(68886);class DoubleValue$Type extends A.MessageType{constructor(){super("google.protobuf.DoubleValue",[{no:1,name:"value",kind:"scalar",T:1}])}internalJsonWrite(r,i){return this.refJsonWriter.scalar(2,r.value,"value",false,true)}internalJsonRead(r,i,s){if(!s)s=this.create();s.value=this.refJsonReader.scalar(r,1,undefined,"value");return s}create(r){const i={value:0};globalThis.Object.defineProperty(i,p.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,d.reflectionMergePartial)(this,i,r);return i}internalBinaryRead(r,i,s,a){let c=a!==null&&a!==void 0?a:this.create(),l=r.pos+i;while(r.pos<l){let[i,a]=r.tag();switch(i){case 1:c.value=r.double();break;default:let l=s.readUnknownField;if(l==="throw")throw new globalThis.Error(`Unknown field ${i} (wire type ${a}) for ${this.typeName}`);let d=r.skip(a);if(l!==Line truncated
|
||||
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */;const escape=r=>r.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=r=>r.replace(/\r?\n|\r/g,"\r\n");const a=[];const c=new Uint8Array([13,10]);h=0;let l=false;for(const[i,u]of r){if(typeof u==="string"){const r=_.encode(s+`; name="${escape(normalizeLinefeeds(i))}"`+`\r\n\r\n${normalizeLinefeeds(u)}\r\n`);a.push(r);h+=r.byteLength}else{const r=_.encode(`${s}; name="${escape(normalizeLinefeeds(i))}"`+(u.name?`; filename="${escape(u.name)}"`:"")+"\r\n"+`Content-Type: ${u.type||"application/octet-stream"}\r\n\r\n`);a.push(r,u,c);if(typeof u.size==="number"){h+=r.byteLength+u.size+c.byteLength}else{l=true}}}const u=_.encode(`--${i}--\r\n`);a.push(u);h+=u.byteLength;if(l){h=null}A=r;p=async function*(){for(const r of a){if(r.stream){yield*r.stream()}else{yield r}}};g=`multipart/form-data; boundary=${i}`}else if(l(r)){A=r;h=r.size;if(r.type){g=r.type}}else if(typeof r[Symbol.asyncIterator]==="function"){if(i){throw new TypeError("keepalive")}if(a.isDisturbed(r)||r.locked){throw new TypeError("Response body object should not be disturbed or locked")}s=r instanceof ReadableStream?r:c(r)}if(typeof A==="string"||a.isBuffer(A)){h=Buffer.byteLength(A)}if(p!=null){let i;s=new ReadableStream({async start(){i=p(r)[Symbol.asyncIterator]()},async pull(r){const{value:a,done:c}=await i.next();if(c){queueMicrotask((()=>{r.close();r.byobRequest?.respond(0)}))}else{if(!B(s)){const i=new Uint8Array(a);if(i.byteLength){r.enqueue(i)}}}return r.desiredSize>0},async cancel(r){await i.return()},type:"bytes"})}const y={stream:s,source:A,length:h};return[y,g]}function safelyExtractBody(r,i=false){if(r instanceof ReadableStream){w(!a.isDisturbed(r),"The body has already been consumed.");w(!r.locked,"The stream is locked.")}return extractBody(r,i)}function cloneBody(r,i){const[s,a]=i.stream.tee();i.stream=s;return{stream:a,length:i.length,source:i.source}}function throwIfAborted(r){if(r.aborted){throw new DOMException("The operation was aborted.","AbortError")}}function bodyMixinMethods(r){const i={blob(){return consumeBody(this,(r=>{let i=bodyMimeType(this);if(i===null){i=""}else if(i){i=Q(i)}return new I([r],{type:i})}),r)},arrayBuffer(){return consumeBody(this,(r=>new Uint8Array(r).buffer),r)},text(){return consumeBody(this,g,r)},json(){return consumeBody(this,parseJSONFromBytes,r)},formData(){return consumeBody(this,(r=>{const i=bodyMimeType(this);if(i!==null){switch(i.essence){case"multipart/form-data":{const s=R(r,i);if(s==="failure"){throw new TypeError("Failed to parse body as FormData.")}const a=new y;a[b]=s;return a}case"application/x-www-form-urlencoded":{const i=new URLSearchParams(r.toString());const s=new y;for(const[r,a]of i){s.append(r,a)}return s}}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')}),r)},bytes(){return consumeBody(this,(r=>new Uint8Array(r)),r)}};return i}function mixinBody(r){Object.assign(r.prototype,bodyMixinMethods(r))}async function consumeBody(r,i,s){C.brandCheck(r,s);if(bodyUnusable(r)){throw new TypeError("Body is unusable: Body has already been read")}throwIfAborted(r[b]);const a=p();const errorSteps=r=>a.reject(r);const successSteps=r=>{try{a.resolve(i(r))}catch(r){errorSteps(r)}};if(r[b].body==null){successSteps(Buffer.allocUnsafe(0));return a.promise}await A(r[b].body,successSteps,errorSteps);return a.promise}function bodyUnusable(r){const i=r[b].body;return i!=null&&(i.stream.locked||a.isDisturbed(i.stream))}function parseJSONFromBytes(r){return JSON.parse(g(r))}function bodyMimeType(r){const i=r[b].headersList;const s=h(i);if(s==="failure"){return null}return s}r.exports={extractBody:extractBody,safelyExtractBody:safelyExtractBody,cloneBody:cloneBody,mixinBody:mixinBody,streamRegistry:x,hasFinalizationRegistry:k,bodyUnusable:bodyUnusable}},74832:r=>{const i=["GET","HEAD","POST"];const s=new Set(i);const a=[101,204,205,304];const c=[301,302,303,307,308];const l=new Set(c);const u=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","4190","5060","5061","6000","6566","6665","6666","6667","6668","6669","6679","6697","10080"];const d=new Set(u);const p=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"];const A=new Set(p);const h=["follow","manual","error"];const g=["GET","HEAD","OPTIONS","TRACE"];const y=new Set(g);const b=["navigate","same-origin","no-cors","cors"];const C=["omit","same-origin","include"];const I=["default","no-store","reload","no-cache","force-Line truncated
|
||||
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */d[u-4]=s[0];d[u-3]=s[1];d[u-2]=s[2];d[u-1]=s[3];d[1]=l;if(l===126){d.writeUInt16BE(c,2)}else if(l===127){d[2]=d[3]=0;d.writeUIntBE(c,4,6)}d[1]|=128;for(let r=0;r<c;++r){d[u+r]=i[r]^s[r&3]}return d}}r.exports={WebsocketFrameSend:WebsocketFrameSend}},10908:(r,i,s)=>{const{createInflateRaw:a,Z_DEFAULT_WINDOWBITS:c}=s(38522);const{isValidClientWindowBits:l}=s(51484);const u=Buffer.from([0,0,255,255]);const d=Symbol("kBuffer");const p=Symbol("kLength");class PerMessageDeflate{#$;#A={};constructor(r){this.#A.serverNoContextTakeover=r.has("server_no_context_takeover");this.#A.serverMaxWindowBits=r.get("server_max_window_bits")}decompress(r,i,s){if(!this.#$){let r=c;if(this.#A.serverMaxWindowBits){if(!l(this.#A.serverMaxWindowBits)){s(new Error("Invalid server_max_window_bits"));return}r=Number.parseInt(this.#A.serverMaxWindowBits)}this.#$=a({windowBits:r});this.#$[d]=[];this.#$[p]=0;this.#$.on("data",(r=>{this.#$[d].push(r);this.#$[p]+=r.length}));this.#$.on("error",(r=>{this.#$=null;s(r)}))}this.#$.write(r);if(i){this.#$.write(u)}this.#$.flush((()=>{const r=Buffer.concat(this.#$[d],this.#$[p]);this.#$[d].length=0;this.#$[p]=0;s(null,r)}))}}r.exports={PerMessageDeflate:PerMessageDeflate}},21601:(r,i,s)=>{const{Writable:a}=s(57075);const c=s(34589);const{parserStates:l,opcodes:u,states:d,emptyBuffer:p,sentCloseFrameState:A}=s(23715);const{kReadyState:h,kSentClose:g,kResponse:y,kReceivedClose:b}=s(21503);const{channels:C}=s(92527);const{isValidStatusCode:I,isValidOpcode:w,failWebsocketConnection:B,websocketMessageReceived:v,utf8Decode:S,isControlFrame:Q,isTextBinaryFrame:R,isContinuationFrame:T}=s(51484);const{WebsocketFrameSend:_}=s(29879);const{closeWebSocketConnection:k}=s(60896);const{PerMessageDeflate:x}=s(10908);class ByteParser extends a{#K=[];#X=0;#Z=false;#b=l.INFO;#ee={};#te=[];#re;constructor(r,i){super();this.ws=r;this.#re=i==null?new Map:i;if(this.#re.has("permessage-deflate")){this.#re.set("permessage-deflate",new x(i))}}_write(r,i,s){this.#K.push(r);this.#X+=r.length;this.#Z=true;this.run(s)}run(r){while(this.#Z){if(this.#b===l.INFO){if(this.#X<2){return r()}const i=this.consume(2);const s=(i[0]&128)!==0;const a=i[0]&15;const c=(i[1]&128)===128;const d=!s&&a!==u.CONTINUATION;const p=i[1]&127;const A=i[0]&64;const h=i[0]&32;const g=i[0]&16;if(!w(a)){B(this.ws,"Invalid opcode received");return r()}if(c){B(this.ws,"Frame cannot be masked");return r()}if(A!==0&&!this.#re.has("permessage-deflate")){B(this.ws,"Expected RSV1 to be clear.");return}if(h!==0||g!==0){B(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(d&&!R(a)){B(this.ws,"Invalid frame type was fragmented.");return}if(R(a)&&this.#te.length>0){B(this.ws,"Expected continuation frame");return}if(this.#ee.fragmented&&d){B(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((p>125||d)&&Q(a)){B(this.ws,"Control frame either too large or fragmented");return}if(T(a)&&this.#te.length===0&&!this.#ee.compressed){B(this.ws,"Unexpected continuation frame");return}if(p<=125){this.#ee.payloadLength=p;this.#b=l.READ_DATA}else if(p===126){this.#b=l.PAYLOADLENGTH_16}else if(p===127){this.#b=l.PAYLOADLENGTH_64}if(R(a)){this.#ee.binaryType=a;this.#ee.compressed=A!==0}this.#ee.opcode=a;this.#ee.masked=c;this.#ee.fin=s;this.#ee.fragmented=d}else if(this.#b===l.PAYLOADLENGTH_16){if(this.#X<2){return r()}const i=this.consume(2);this.#ee.payloadLength=i.readUInt16BE(0);this.#b=l.READ_DATA}else if(this.#b===l.PAYLOADLENGTH_64){if(this.#X<8){return r()}const i=this.consume(8);const s=i.readUInt32BE(0);if(s>2**31-1){B(this.ws,"Received payload length > 2^31 bytes.");return}const a=i.readUInt32BE(4);this.#ee.payloadLength=(s<<8)+a;this.#b=l.READ_DATA}else if(this.#b===l.READ_DATA){if(this.#X<this.#ee.payloadLength){return r()}const i=this.consume(this.#ee.payloadLength);if(Q(this.#ee.opcode)){this.#Z=this.parseControlFrame(i);this.#b=l.INFO}else{if(!this.#ee.compressed){this.#te.push(i);if(!this.#ee.fragmented&&this.#ee.fin){const r=Buffer.concat(this.#te);v(this.ws,this.#ee.binaryType,r);this.#te.length=0}this.#b=l.INFO}else{this.#re.get("permessage-deflate").decompress(i,this.#ee.fin,((i,s)=>{if(i){k(this.ws,1007,i.message,i.message.length);return}this.#te.push(s);if(!this.#ee.fin){this.#b=l.INFO;this.#Z=true;this.run(r);return}v(this.ws,this.#ee.binaryType,Buffer.concat(this.#te));this.#Z=true;this.#b=l.INFO;this.#te.length=0;this.run(r)}));this.#Z=false;break}}}}}consume(r){if(r>this.#X){throw new Error("Called consume() before buffers satiated.")}else if(r===0){return p}if(this.#K[0].length===r){this.#X-=this.#K[0].length;return this.#K.shift()}const i=Buffer.allocUnsafe(r);let s=0;while(s!==r){const a=this.#K[0];const{length:c}=a;if(c+s===r){i.set(this.#K.shift(),s);break}else if(c+s>r){i.set(a.subarray(0,r-s),s);this.#K[0]=a.subarray(r-s);break}else{i.set(this.#K.shift(),s);s+=a.length}}this.#X-=r;return i}parseCloseBody(r){c(r.length!==1);let i;if(r.length>=2){i=r.readUInt16BE(0)}if(i!==undefineLine truncated
|
||||
import './sourcemap-register.cjs';import{createRequire as e}from"module";var t={23311:function(e,t){var r=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.ClientStreamingCall=void 0;class ClientStreamingCall{constructor(e,t,r,n,i,s,o){this.method=e;this.requestHeaders=t;this.requests=r;this.headers=n;this.response=i;this.status=s;this.trailers=o}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return r(this,void 0,void 0,(function*(){let[e,t,r,n]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,response:t,status:r,trailers:n}}))}}t.ClientStreamingCall=ClientStreamingCall},69499:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Deferred=t.DeferredState=void 0;var r;(function(e){e[e["PENDING"]=0]="PENDING";e[e["REJECTED"]=1]="REJECTED";e[e["RESOLVED"]=2]="RESOLVED"})(r=t.DeferredState||(t.DeferredState={}));class Deferred{constructor(e=true){this._state=r.PENDING;this._promise=new Promise(((e,t)=>{this._resolve=e;this._reject=t}));if(e){this._promise.catch((e=>{}))}}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==r.PENDING)throw new Error(`cannot resolve ${r[this.state].toLowerCase()}`);this._resolve(e);this._state=r.RESOLVED}reject(e){if(this.state!==r.PENDING)throw new Error(`cannot reject ${r[this.state].toLowerCase()}`);this._reject(e);this._state=r.REJECTED}resolvePending(e){if(this._state===r.PENDING)this.resolve(e)}rejectPending(e){if(this._state===r.PENDING)this.reject(e)}}t.Deferred=Deferred},40800:function(e,t){var r=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.DuplexStreamingCall=void 0;class DuplexStreamingCall{constructor(e,t,r,n,i,s,o){this.method=e;this.requestHeaders=t;this.requests=r;this.headers=n;this.responses=i;this.status=s;this.trailers=o}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return r(this,void 0,void 0,(function*(){let[e,t,r]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,status:t,trailers:r}}))}}t.DuplexStreamingCall=DuplexStreamingCall},76762:(e,t,r)=>{var n;n={value:true};var i=r(42554);Object.defineProperty(t,"C0",{enumerable:true,get:function(){return i.ServiceType}});var s=r(83402);n={enumerable:true,get:function(){return s.readMethodOptions}};n={enumerable:true,get:function(){return s.readMethodOption}};n={enumerable:true,get:function(){return s.readServiceOption}};var o=r(50422);n={enumerable:true,get:function(){return o.RpcError}};var a=r(63474);n={enumerable:true,get:function(){return a.mergeRpcOptions}};var c=r(58788);n={enumerable:true,get:function(){return c.RpcOutputStreamController}};var l=r(37816);n={enumerable:true,get:function(){return l.TestTransport}};var u=r(69499);n={enumerable:true,get:function(){return u.Deferred}};n={enumerable:true,get:function(){return u.DeferredState}};var d=r(40800);n={enumerable:true,get:function(){return d.DuplexStreamingCall}};var h=r(23311);n={enumerable:true,get:function(){return h.ClientStreamingCall}};var f=r(22715);n={enumerable:true,get:function(){return f.ServerStreamingCall}};var p=r(80738);n={enumerable:true,get:function(){return p.UnaryCall}};var g=r(84359);n={enumerable:true,get:function(){return g.stackIntercept}};n={enumerable:true,get:function(){return g.stackDuplexStreamingInterceptors}};n={enumerable:true,get:function(){return g.stackClientStreamingInterceptors}};n={enumerable:true,get:function(){return g.stackServerStreamingInterceptors}};n={enumerable:true,get:function(){return g.stackUnaryInterceptors}};var A=r(44626);n={enumerable:true,get:function(){return A.ServerCallContextController}}},83402:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.readServiceOption=t.readMethodOption=t.readMethodOptions=t.normalizeMethodInfo=void 0;const n=r(88372);function normalizeMethodInfo(e,t){var r,i,s;let o=e;o.service=t;o.localName=(r=o.localName)!==null&&r!==void 0?r:n.lowerCamelCase(o.name);o.serverStreaming=!!o.serverStreaming;o.Line truncated
|
||||
/**
|
||||
* Archiver Vending
|
||||
*
|
||||
@@ -8,7 +6,7 @@ import './sourcemap-register.cjs';import{createRequire as r}from"module";var i={
|
||||
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
||||
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
||||
*/
|
||||
var a=s(50549);var c={};var vending=function(r,i){return vending.create(r,i)};vending.create=function(r,i){if(c[r]){var s=new a(r,i);s.setFormat(r);s.setModule(new c[r](i));return s}else{throw new Error("create("+r+"): format not registered")}};vending.registerFormat=function(r,i){if(c[r]){throw new Error("register("+r+"): format already registered")}if(typeof i!=="function"){throw new Error("register("+r+"): format module invalid")}if(typeof i.prototype.append!=="function"||typeof i.prototype.finalize!=="function"){throw new Error("register("+r+"): format module missing methods")}c[r]=i};vending.isRegisteredFormat=function(r){if(c[r]){return true}return false};vending.registerFormat("zip",s(22836));vending.registerFormat("tar",s(10396));vending.registerFormat("json",s(54693));r.exports=vending},50549:(r,i,s)=>{
|
||||
var n=r(50549);var i={};var vending=function(e,t){return vending.create(e,t)};vending.create=function(e,t){if(i[e]){var r=new n(e,t);r.setFormat(e);r.setModule(new i[e](t));return r}else{throw new Error("create("+e+"): format not registered")}};vending.registerFormat=function(e,t){if(i[e]){throw new Error("register("+e+"): format already registered")}if(typeof t!=="function"){throw new Error("register("+e+"): format module invalid")}if(typeof t.prototype.append!=="function"||typeof t.prototype.finalize!=="function"){throw new Error("register("+e+"): format module missing methods")}i[e]=t};vending.isRegisteredFormat=function(e){if(i[e]){return true}return false};vending.registerFormat("zip",r(22836));vending.registerFormat("tar",r(10396));vending.registerFormat("json",r(54693));e.exports=vending},50549:(e,t,r)=>{
|
||||
/**
|
||||
* Archiver Core
|
||||
*
|
||||
@@ -16,7 +14,7 @@ var a=s(50549);var c={};var vending=function(r,i){return vending.create(r,i)};ve
|
||||
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
||||
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
||||
*/
|
||||
var a=s(79896);var c=s(51364);var l=s(97329);var u=s(16928);var d=s(53296);var p=s(39023).inherits;var A=s(13110);var h=s(29963).Transform;var g=process.platform==="win32";var Archiver=function(r,i){if(!(this instanceof Archiver)){return new Archiver(r,i)}if(typeof r!=="string"){i=r;r="zip"}i=this.options=d.defaults(i,{highWaterMark:1024*1024,statConcurrency:4});h.call(this,i);this._format=false;this._module=false;this._pending=0;this._pointer=0;this._entriesCount=0;this._entriesProcessedCount=0;this._fsEntriesTotalBytes=0;this._fsEntriesProcessedBytes=0;this._queue=l.queue(this._onQueueTask.bind(this),1);this._queue.drain(this._onQueueDrain.bind(this));this._statQueue=l.queue(this._onStatQueueTask.bind(this),i.statConcurrency);this._statQueue.drain(this._onQueueDrain.bind(this));this._state={aborted:false,finalize:false,finalizing:false,finalized:false,modulePiped:false};this._streams=[]};p(Archiver,h);Archiver.prototype._abort=function(){this._state.aborted=true;this._queue.kill();this._statQueue.kill();if(this._queue.idle()){this._shutdown()}};Archiver.prototype._append=function(r,i){i=i||{};var s={source:null,filepath:r};if(!i.name){i.name=r}i.sourcePath=r;s.data=i;this._entriesCount++;if(i.stats&&i.stats instanceof a.Stats){s=this._updateQueueTaskWithStats(s,i.stats);if(s){if(i.stats.size){this._fsEntriesTotalBytes+=i.stats.size}this._queue.push(s)}}else{this._statQueue.push(s)}};Archiver.prototype._finalize=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted){return}this._state.finalizing=true;this._moduleFinalize();this._state.finalizing=false;this._state.finalized=true};Archiver.prototype._maybeFinalize=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted){return false}if(this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()){this._finalize();return true}return false};Archiver.prototype._moduleAppend=function(r,i,s){if(this._state.aborted){s();return}this._module.append(r,i,function(r){this._task=null;if(this._state.aborted){this._shutdown();return}if(r){this.emit("error",r);setImmediate(s);return}this.emit("entry",i);this._entriesProcessedCount++;if(i.stats&&i.stats.size){this._fsEntriesProcessedBytes+=i.stats.size}this.emit("progress",{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}});setImmediate(s)}.bind(this))};Archiver.prototype._moduleFinalize=function(){if(typeof this._module.finalize==="function"){this._module.finalize()}else if(typeof this._module.end==="function"){this._module.end()}else{this.emit("error",new A("NOENDMETHOD"))}};Archiver.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this));this._module.pipe(this);this._state.modulePiped=true};Archiver.prototype._moduleSupports=function(r){if(!this._module.supports||!this._module.supports[r]){return false}return this._module.supports[r]};Archiver.prototype._moduleUnpipe=function(){this._module.unpipe(this);this._state.modulePiped=false};Archiver.prototype._normalizeEntryData=function(r,i){r=d.defaults(r,{type:"file",name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:false});if(i&&r.stats===false){r.stats=i}var s=r.type==="directory";if(r.name){if(typeof r.prefix==="string"&&""!==r.prefix){r.name=r.prefix+"/"+r.name;r.prefix=null}r.name=d.sanitizePath(r.name);if(r.type!=="symlink"&&r.name.slice(-1)==="/"){s=true;r.type="directory"}else if(s){r.name+="/"}}if(typeof r.mode==="number"){if(g){r.mode&=511}else{r.mode&=4095}}else if(r.stats&&r.mode===null){if(g){r.mode=r.stats.mode&511}else{r.mode=r.stats.mode&4095}if(g&&s){r.mode=493}}else if(r.mode===null){r.mode=s?493:420}if(r.stats&&r.date===null){r.date=r.stats.mtime}else{r.date=d.dateify(r.date)}return r};Archiver.prototype._onModuleError=function(r){this.emit("error",r)};Archiver.prototype._onQueueDrain=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted){return}if(this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()){this._finalize()}};Archiver.prototype._onQueueTask=function(r,i){var fullCallback=()=>{if(r.data.callback){r.data.callback()}i()};if(this._state.finalizing||this._state.finalized||this._state.aborted){fullCallback();return}this._task=r;this._moduleAppend(r.source,r.data,fullCallback)};Archiver.prototype._onStatQueueTask=function(r,i){if(this._state.finalizing||this._state.finalized||this._state.aborted){i();return}a.lstat(r.filepath,function(s,a){if(this._state.aborted){setImmediate(i);return}if(s){this._entriesCount--;this.emit("warning",s);setImmediate(i);return}r=this._updateQueueTaskWithStats(r,a);if(r){if(a.size){this._fsEntriesTotalBytes+=a.size}this._queue.push(r)}setImmediate(i)}.bind(this))};Archiver.prototype._shutdown=function(){this._moduleUnpipe();this.end()};Archiver.prototype._transform=function(r,i,s){if(r){this._pointer+=r.length}s(null,r)};Archiver.prototLine truncated
|
||||
var n=r(79896);var i=r(51364);var s=r(97329);var o=r(16928);var a=r(53296);var c=r(39023).inherits;var l=r(13110);var u=r(29963).Transform;var d=process.platform==="win32";var Archiver=function(e,t){if(!(this instanceof Archiver)){return new Archiver(e,t)}if(typeof e!=="string"){t=e;e="zip"}t=this.options=a.defaults(t,{highWaterMark:1024*1024,statConcurrency:4});u.call(this,t);this._format=false;this._module=false;this._pending=0;this._pointer=0;this._entriesCount=0;this._entriesProcessedCount=0;this._fsEntriesTotalBytes=0;this._fsEntriesProcessedBytes=0;this._queue=s.queue(this._onQueueTask.bind(this),1);this._queue.drain(this._onQueueDrain.bind(this));this._statQueue=s.queue(this._onStatQueueTask.bind(this),t.statConcurrency);this._statQueue.drain(this._onQueueDrain.bind(this));this._state={aborted:false,finalize:false,finalizing:false,finalized:false,modulePiped:false};this._streams=[]};c(Archiver,u);Archiver.prototype._abort=function(){this._state.aborted=true;this._queue.kill();this._statQueue.kill();if(this._queue.idle()){this._shutdown()}};Archiver.prototype._append=function(e,t){t=t||{};var r={source:null,filepath:e};if(!t.name){t.name=e}t.sourcePath=e;r.data=t;this._entriesCount++;if(t.stats&&t.stats instanceof n.Stats){r=this._updateQueueTaskWithStats(r,t.stats);if(r){if(t.stats.size){this._fsEntriesTotalBytes+=t.stats.size}this._queue.push(r)}}else{this._statQueue.push(r)}};Archiver.prototype._finalize=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted){return}this._state.finalizing=true;this._moduleFinalize();this._state.finalizing=false;this._state.finalized=true};Archiver.prototype._maybeFinalize=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted){return false}if(this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()){this._finalize();return true}return false};Archiver.prototype._moduleAppend=function(e,t,r){if(this._state.aborted){r();return}this._module.append(e,t,function(e){this._task=null;if(this._state.aborted){this._shutdown();return}if(e){this.emit("error",e);setImmediate(r);return}this.emit("entry",t);this._entriesProcessedCount++;if(t.stats&&t.stats.size){this._fsEntriesProcessedBytes+=t.stats.size}this.emit("progress",{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}});setImmediate(r)}.bind(this))};Archiver.prototype._moduleFinalize=function(){if(typeof this._module.finalize==="function"){this._module.finalize()}else if(typeof this._module.end==="function"){this._module.end()}else{this.emit("error",new l("NOENDMETHOD"))}};Archiver.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this));this._module.pipe(this);this._state.modulePiped=true};Archiver.prototype._moduleSupports=function(e){if(!this._module.supports||!this._module.supports[e]){return false}return this._module.supports[e]};Archiver.prototype._moduleUnpipe=function(){this._module.unpipe(this);this._state.modulePiped=false};Archiver.prototype._normalizeEntryData=function(e,t){e=a.defaults(e,{type:"file",name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:false});if(t&&e.stats===false){e.stats=t}var r=e.type==="directory";if(e.name){if(typeof e.prefix==="string"&&""!==e.prefix){e.name=e.prefix+"/"+e.name;e.prefix=null}e.name=a.sanitizePath(e.name);if(e.type!=="symlink"&&e.name.slice(-1)==="/"){r=true;e.type="directory"}else if(r){e.name+="/"}}if(typeof e.mode==="number"){if(d){e.mode&=511}else{e.mode&=4095}}else if(e.stats&&e.mode===null){if(d){e.mode=e.stats.mode&511}else{e.mode=e.stats.mode&4095}if(d&&r){e.mode=493}}else if(e.mode===null){e.mode=r?493:420}if(e.stats&&e.date===null){e.date=e.stats.mtime}else{e.date=a.dateify(e.date)}return e};Archiver.prototype._onModuleError=function(e){this.emit("error",e)};Archiver.prototype._onQueueDrain=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted){return}if(this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()){this._finalize()}};Archiver.prototype._onQueueTask=function(e,t){var fullCallback=()=>{if(e.data.callback){e.data.callback()}t()};if(this._state.finalizing||this._state.finalized||this._state.aborted){fullCallback();return}this._task=e;this._moduleAppend(e.source,e.data,fullCallback)};Archiver.prototype._onStatQueueTask=function(e,t){if(this._state.finalizing||this._state.finalized||this._state.aborted){t();return}n.lstat(e.filepath,function(r,n){if(this._state.aborted){setImmediate(t);return}if(r){this._entriesCount--;this.emit("warning",r);setImmediate(t);return}e=this._updateQueueTaskWithStats(e,n);if(e){if(n.size){this._fsEntriesTotalBytes+=n.size}this._queue.push(e)}setImmediate(t)}.bind(this))};Archiver.prototype._shutdown=function(){this._moduleUnpipe();this.end()};Archiver.prototype._transform=function(e,t,r){if(e){this._pointer+=e.length}r(null,e)};Archiver.prototLine truncated
|
||||
/**
|
||||
* Archiver Core
|
||||
*
|
||||
@@ -24,7 +22,7 @@ var a=s(79896);var c=s(51364);var l=s(97329);var u=s(16928);var d=s(53296);var p
|
||||
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
||||
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
||||
*/
|
||||
var a=s(39023);const c={ABORTED:"archive was aborted",DIRECTORYDIRPATHREQUIRED:"diretory dirpath argument must be a non-empty string value",DIRECTORYFUNCTIONINVALIDDATA:"invalid data returned by directory custom data function",ENTRYNAMEREQUIRED:"entry name must be a non-empty string value",FILEFILEPATHREQUIRED:"file filepath argument must be a non-empty string value",FINALIZING:"archive already finalizing",QUEUECLOSED:"queue closed",NOENDMETHOD:"no suitable finalize/end method defined by module",DIRECTORYNOTSUPPORTED:"support for directory entries not defined by module",FORMATSET:"archive format already set",INPUTSTEAMBUFFERREQUIRED:"input source must be valid Stream or Buffer instance",MODULESET:"module already set",SYMLINKNOTSUPPORTED:"support for symlink entries not defined by module",SYMLINKFILEPATHREQUIRED:"symlink filepath argument must be a non-empty string value",SYMLINKTARGETREQUIRED:"symlink target argument must be a non-empty string value",ENTRYNOTSUPPORTED:"entry not supported"};function ArchiverError(r,i){Error.captureStackTrace(this,this.constructor);this.message=c[r]||r;this.code=r;this.data=i}a.inherits(ArchiverError,Error);i=r.exports=ArchiverError},54693:(r,i,s)=>{
|
||||
var n=r(39023);const i={ABORTED:"archive was aborted",DIRECTORYDIRPATHREQUIRED:"diretory dirpath argument must be a non-empty string value",DIRECTORYFUNCTIONINVALIDDATA:"invalid data returned by directory custom data function",ENTRYNAMEREQUIRED:"entry name must be a non-empty string value",FILEFILEPATHREQUIRED:"file filepath argument must be a non-empty string value",FINALIZING:"archive already finalizing",QUEUECLOSED:"queue closed",NOENDMETHOD:"no suitable finalize/end method defined by module",DIRECTORYNOTSUPPORTED:"support for directory entries not defined by module",FORMATSET:"archive format already set",INPUTSTEAMBUFFERREQUIRED:"input source must be valid Stream or Buffer instance",MODULESET:"module already set",SYMLINKNOTSUPPORTED:"support for symlink entries not defined by module",SYMLINKFILEPATHREQUIRED:"symlink filepath argument must be a non-empty string value",SYMLINKTARGETREQUIRED:"symlink target argument must be a non-empty string value",ENTRYNOTSUPPORTED:"entry not supported"};function ArchiverError(e,t){Error.captureStackTrace(this,this.constructor);this.message=i[e]||e;this.code=e;this.data=t}n.inherits(ArchiverError,Error);t=e.exports=ArchiverError},54693:(e,t,r)=>{
|
||||
/**
|
||||
* JSON Format Plugin
|
||||
*
|
||||
@@ -32,7 +30,7 @@ var a=s(39023);const c={ABORTED:"archive was aborted",DIRECTORYDIRPATHREQUIRED:"
|
||||
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
||||
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
||||
*/
|
||||
var a=s(39023).inherits;var c=s(29963).Transform;var l=s(84928);var u=s(53296);var Json=function(r){if(!(this instanceof Json)){return new Json(r)}r=this.options=u.defaults(r,{});c.call(this,r);this.supports={directory:true,symlink:true};this.files=[]};a(Json,c);Json.prototype._transform=function(r,i,s){s(null,r)};Json.prototype._writeStringified=function(){var r=JSON.stringify(this.files);this.write(r)};Json.prototype.append=function(r,i,s){var a=this;i.crc32=0;function onend(r,c){if(r){s(r);return}i.size=c.length||0;i.crc32=l.unsigned(c);a.files.push(i);s(null,i)}if(i.sourceType==="buffer"){onend(null,r)}else if(i.sourceType==="stream"){u.collectStream(r,onend)}};Json.prototype.finalize=function(){this._writeStringified();this.end()};r.exports=Json},10396:(r,i,s)=>{
|
||||
var n=r(39023).inherits;var i=r(29963).Transform;var s=r(84928);var o=r(53296);var Json=function(e){if(!(this instanceof Json)){return new Json(e)}e=this.options=o.defaults(e,{});i.call(this,e);this.supports={directory:true,symlink:true};this.files=[]};n(Json,i);Json.prototype._transform=function(e,t,r){r(null,e)};Json.prototype._writeStringified=function(){var e=JSON.stringify(this.files);this.write(e)};Json.prototype.append=function(e,t,r){var n=this;t.crc32=0;function onend(e,i){if(e){r(e);return}t.size=i.length||0;t.crc32=s.unsigned(i);n.files.push(t);r(null,t)}if(t.sourceType==="buffer"){onend(null,e)}else if(t.sourceType==="stream"){o.collectStream(e,onend)}};Json.prototype.finalize=function(){this._writeStringified();this.end()};e.exports=Json},10396:(e,t,r)=>{
|
||||
/**
|
||||
* TAR Format Plugin
|
||||
*
|
||||
@@ -40,7 +38,7 @@ var a=s(39023).inherits;var c=s(29963).Transform;var l=s(84928);var u=s(53296);v
|
||||
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
||||
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
||||
*/
|
||||
var a=s(43106);var c=s(56118);var l=s(53296);var Tar=function(r){if(!(this instanceof Tar)){return new Tar(r)}r=this.options=l.defaults(r,{gzip:false});if(typeof r.gzipOptions!=="object"){r.gzipOptions={}}this.supports={directory:true,symlink:true};this.engine=c.pack(r);this.compressor=false;if(r.gzip){this.compressor=a.createGzip(r.gzipOptions);this.compressor.on("error",this._onCompressorError.bind(this))}};Tar.prototype._onCompressorError=function(r){this.engine.emit("error",r)};Tar.prototype.append=function(r,i,s){var a=this;i.mtime=i.date;function append(r,c){if(r){s(r);return}a.engine.entry(i,c,(function(r){s(r,i)}))}if(i.sourceType==="buffer"){append(null,r)}else if(i.sourceType==="stream"&&i.stats){i.size=i.stats.size;var c=a.engine.entry(i,(function(r){s(r,i)}));r.pipe(c)}else if(i.sourceType==="stream"){l.collectStream(r,append)}};Tar.prototype.finalize=function(){this.engine.finalize()};Tar.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Tar.prototype.pipe=function(r,i){if(this.compressor){return this.engine.pipe.apply(this.engine,[this.compressor]).pipe(r,i)}else{return this.engine.pipe.apply(this.engine,arguments)}};Tar.prototype.unpipe=function(){if(this.compressor){return this.compressor.unpipe.apply(this.compressor,arguments)}else{return this.engine.unpipe.apply(this.engine,arguments)}};r.exports=Tar},22836:(r,i,s)=>{
|
||||
var n=r(43106);var i=r(56118);var s=r(53296);var Tar=function(e){if(!(this instanceof Tar)){return new Tar(e)}e=this.options=s.defaults(e,{gzip:false});if(typeof e.gzipOptions!=="object"){e.gzipOptions={}}this.supports={directory:true,symlink:true};this.engine=i.pack(e);this.compressor=false;if(e.gzip){this.compressor=n.createGzip(e.gzipOptions);this.compressor.on("error",this._onCompressorError.bind(this))}};Tar.prototype._onCompressorError=function(e){this.engine.emit("error",e)};Tar.prototype.append=function(e,t,r){var n=this;t.mtime=t.date;function append(e,i){if(e){r(e);return}n.engine.entry(t,i,(function(e){r(e,t)}))}if(t.sourceType==="buffer"){append(null,e)}else if(t.sourceType==="stream"&&t.stats){t.size=t.stats.size;var i=n.engine.entry(t,(function(e){r(e,t)}));e.pipe(i)}else if(t.sourceType==="stream"){s.collectStream(e,append)}};Tar.prototype.finalize=function(){this.engine.finalize()};Tar.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Tar.prototype.pipe=function(e,t){if(this.compressor){return this.engine.pipe.apply(this.engine,[this.compressor]).pipe(e,t)}else{return this.engine.pipe.apply(this.engine,arguments)}};Tar.prototype.unpipe=function(){if(this.compressor){return this.compressor.unpipe.apply(this.compressor,arguments)}else{return this.engine.unpipe.apply(this.engine,arguments)}};e.exports=Tar},22836:(e,t,r)=>{
|
||||
/**
|
||||
* ZIP Format Plugin
|
||||
*
|
||||
@@ -48,16 +46,16 @@ var a=s(43106);var c=s(56118);var l=s(53296);var Tar=function(r){if(!(this insta
|
||||
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
||||
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
||||
*/
|
||||
var a=s(41622);var c=s(53296);var Zip=function(r){if(!(this instanceof Zip)){return new Zip(r)}r=this.options=c.defaults(r,{comment:"",forceUTC:false,namePrependSlash:false,store:false});this.supports={directory:true,symlink:true};this.engine=new a(r)};Zip.prototype.append=function(r,i,s){this.engine.entry(r,i,s)};Zip.prototype.finalize=function(){this.engine.finalize()};Zip.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Zip.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)};Zip.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)};r.exports=Zip},97329:function(r,i){(function(r,s){true?s(i):0})(this,(function(r){"use strict";function apply(r,...i){return(...s)=>r(...i,...s)}function initialParams(r){return function(...i){var s=i.pop();return r.call(this,i,s)}}var i=typeof queueMicrotask==="function"&&queueMicrotask;var s=typeof setImmediate==="function"&&setImmediate;var a=typeof process==="object"&&typeof process.nextTick==="function";function fallback(r){setTimeout(r,0)}function wrap(r){return(i,...s)=>r((()=>i(...s)))}var c;if(i){c=queueMicrotask}else if(s){c=setImmediate}else if(a){c=process.nextTick}else{c=fallback}var l=wrap(c);function asyncify(r){if(isAsync(r)){return function(...i){const s=i.pop();const a=r.apply(this,i);return handlePromise(a,s)}}return initialParams((function(i,s){var a;try{a=r.apply(this,i)}catch(r){return s(r)}if(a&&typeof a.then==="function"){return handlePromise(a,s)}else{s(null,a)}}))}function handlePromise(r,i){return r.then((r=>{invokeCallback(i,null,r)}),(r=>{invokeCallback(i,r&&(r instanceof Error||r.message)?r:new Error(r))}))}function invokeCallback(r,i,s){try{r(i,s)}catch(r){l((r=>{throw r}),r)}}function isAsync(r){return r[Symbol.toStringTag]==="AsyncFunction"}function isAsyncGenerator(r){return r[Symbol.toStringTag]==="AsyncGenerator"}function isAsyncIterable(r){return typeof r[Symbol.asyncIterator]==="function"}function wrapAsync(r){if(typeof r!=="function")throw new Error("expected a function");return isAsync(r)?asyncify(r):r}function awaitify(r,i){if(!i)i=r.length;if(!i)throw new Error("arity is undefined");function awaitable(...s){if(typeof s[i-1]==="function"){return r.apply(this,s)}return new Promise(((a,c)=>{s[i-1]=(r,...i)=>{if(r)return c(r);a(i.length>1?i:i[0])};r.apply(this,s)}))}return awaitable}function applyEach$1(r){return function applyEach(i,...s){const a=awaitify((function(a){var c=this;return r(i,((r,i)=>{wrapAsync(r).apply(c,s.concat(i))}),a)}));return a}}function _asyncMap(r,i,s,a){i=i||[];var c=[];var l=0;var u=wrapAsync(s);return r(i,((r,i,s)=>{var a=l++;u(r,((r,i)=>{c[a]=i;s(r)}))}),(r=>{a(r,c)}))}function isArrayLike(r){return r&&typeof r.length==="number"&&r.length>=0&&r.length%1===0}const u={};var d=u;function once(r){function wrapper(...i){if(r===null)return;var s=r;r=null;s.apply(this,i)}Object.assign(wrapper,r);return wrapper}function getIterator(r){return r[Symbol.iterator]&&r[Symbol.iterator]()}function createArrayIterator(r){var i=-1;var s=r.length;return function next(){return++i<s?{value:r[i],key:i}:null}}function createES2015Iterator(r){var i=-1;return function next(){var s=r.next();if(s.done)return null;i++;return{value:s.value,key:i}}}function createObjectIterator(r){var i=r?Object.keys(r):[];var s=-1;var a=i.length;return function next(){var c=i[++s];if(c==="__proto__"){return next()}return s<a?{value:r[c],key:c}:null}}function createIterator(r){if(isArrayLike(r)){return createArrayIterator(r)}var i=getIterator(r);return i?createES2015Iterator(i):createObjectIterator(r)}function onlyOnce(r){return function(...i){if(r===null)throw new Error("Callback was already called.");var s=r;r=null;s.apply(this,i)}}function asyncEachOfLimit(r,i,s,a){let c=false;let l=false;let u=false;let p=0;let A=0;function replenish(){if(p>=i||u||c)return;u=true;r.next().then((({value:r,done:i})=>{if(l||c)return;u=false;if(i){c=true;if(p<=0){a(null)}return}p++;s(r,A,iterateeCallback);A++;replenish()})).catch(handleError)}function iterateeCallback(r,i){p-=1;if(l)return;if(r)return handleError(r);if(r===false){c=true;l=true;return}if(i===d||c&&p<=0){c=true;return a(null)}replenish()}function handleError(r){if(l)return;u=false;c=true;a(r)}replenish()}var eachOfLimit$2=r=>(i,s,a)=>{a=once(a);if(r<=0){throw new RangeError("concurrency limit cannot be less than 1")}if(!i){return a(null)}if(isAsyncGenerator(i)){return asyncEachOfLimit(i,r,s,a)}if(isAsyncIterable(i)){return asyncEachOfLimit(i[Symbol.asyncIterator](),r,s,a)}var c=createIterator(i);var l=false;var u=false;var p=0;var A=false;function iterateeCallback(r,i){if(u)return;p-=1;if(r){l=true;a(r)}else if(r===false){l=true;u=true}else if(i===d||l&&p<=0){l=true;return a(null)}else if(!A){replenish()}}function replenish(){A=true;while(p<r&&!l){var i=c();if(i===null){l=true;if(p<=0){a(null)}return}p+=1;s(i.value,i.key,onlyOnce(iterateeCallback))}A=false}replenish()};function eachOfLimit(r,i,s,a){return eachOfLimit$2(i)(r,Line truncated
|
||||
var n=r(41622);var i=r(53296);var Zip=function(e){if(!(this instanceof Zip)){return new Zip(e)}e=this.options=i.defaults(e,{comment:"",forceUTC:false,namePrependSlash:false,store:false});this.supports={directory:true,symlink:true};this.engine=new n(e)};Zip.prototype.append=function(e,t,r){this.engine.entry(e,t,r)};Zip.prototype.finalize=function(){this.engine.finalize()};Zip.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Zip.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)};Zip.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)};e.exports=Zip},97329:function(e,t){(function(e,r){true?r(t):0})(this,(function(e){"use strict";function apply(e,...t){return(...r)=>e(...t,...r)}function initialParams(e){return function(...t){var r=t.pop();return e.call(this,t,r)}}var t=typeof queueMicrotask==="function"&&queueMicrotask;var r=typeof setImmediate==="function"&&setImmediate;var n=typeof process==="object"&&typeof process.nextTick==="function";function fallback(e){setTimeout(e,0)}function wrap(e){return(t,...r)=>e((()=>t(...r)))}var i;if(t){i=queueMicrotask}else if(r){i=setImmediate}else if(n){i=process.nextTick}else{i=fallback}var s=wrap(i);function asyncify(e){if(isAsync(e)){return function(...t){const r=t.pop();const n=e.apply(this,t);return handlePromise(n,r)}}return initialParams((function(t,r){var n;try{n=e.apply(this,t)}catch(e){return r(e)}if(n&&typeof n.then==="function"){return handlePromise(n,r)}else{r(null,n)}}))}function handlePromise(e,t){return e.then((e=>{invokeCallback(t,null,e)}),(e=>{invokeCallback(t,e&&(e instanceof Error||e.message)?e:new Error(e))}))}function invokeCallback(e,t,r){try{e(t,r)}catch(e){s((e=>{throw e}),e)}}function isAsync(e){return e[Symbol.toStringTag]==="AsyncFunction"}function isAsyncGenerator(e){return e[Symbol.toStringTag]==="AsyncGenerator"}function isAsyncIterable(e){return typeof e[Symbol.asyncIterator]==="function"}function wrapAsync(e){if(typeof e!=="function")throw new Error("expected a function");return isAsync(e)?asyncify(e):e}function awaitify(e,t){if(!t)t=e.length;if(!t)throw new Error("arity is undefined");function awaitable(...r){if(typeof r[t-1]==="function"){return e.apply(this,r)}return new Promise(((n,i)=>{r[t-1]=(e,...t)=>{if(e)return i(e);n(t.length>1?t:t[0])};e.apply(this,r)}))}return awaitable}function applyEach$1(e){return function applyEach(t,...r){const n=awaitify((function(n){var i=this;return e(t,((e,t)=>{wrapAsync(e).apply(i,r.concat(t))}),n)}));return n}}function _asyncMap(e,t,r,n){t=t||[];var i=[];var s=0;var o=wrapAsync(r);return e(t,((e,t,r)=>{var n=s++;o(e,((e,t)=>{i[n]=t;r(e)}))}),(e=>{n(e,i)}))}function isArrayLike(e){return e&&typeof e.length==="number"&&e.length>=0&&e.length%1===0}const o={};var a=o;function once(e){function wrapper(...t){if(e===null)return;var r=e;e=null;r.apply(this,t)}Object.assign(wrapper,e);return wrapper}function getIterator(e){return e[Symbol.iterator]&&e[Symbol.iterator]()}function createArrayIterator(e){var t=-1;var r=e.length;return function next(){return++t<r?{value:e[t],key:t}:null}}function createES2015Iterator(e){var t=-1;return function next(){var r=e.next();if(r.done)return null;t++;return{value:r.value,key:t}}}function createObjectIterator(e){var t=e?Object.keys(e):[];var r=-1;var n=t.length;return function next(){var i=t[++r];if(i==="__proto__"){return next()}return r<n?{value:e[i],key:i}:null}}function createIterator(e){if(isArrayLike(e)){return createArrayIterator(e)}var t=getIterator(e);return t?createES2015Iterator(t):createObjectIterator(e)}function onlyOnce(e){return function(...t){if(e===null)throw new Error("Callback was already called.");var r=e;e=null;r.apply(this,t)}}function asyncEachOfLimit(e,t,r,n){let i=false;let s=false;let o=false;let c=0;let l=0;function replenish(){if(c>=t||o||i)return;o=true;e.next().then((({value:e,done:t})=>{if(s||i)return;o=false;if(t){i=true;if(c<=0){n(null)}return}c++;r(e,l,iterateeCallback);l++;replenish()})).catch(handleError)}function iterateeCallback(e,t){c-=1;if(s)return;if(e)return handleError(e);if(e===false){i=true;s=true;return}if(t===a||i&&c<=0){i=true;return n(null)}replenish()}function handleError(e){if(s)return;o=false;i=true;n(e)}replenish()}var eachOfLimit$2=e=>(t,r,n)=>{n=once(n);if(e<=0){throw new RangeError("concurrency limit cannot be less than 1")}if(!t){return n(null)}if(isAsyncGenerator(t)){return asyncEachOfLimit(t,e,r,n)}if(isAsyncIterable(t)){return asyncEachOfLimit(t[Symbol.asyncIterator](),e,r,n)}var i=createIterator(t);var s=false;var o=false;var c=0;var l=false;function iterateeCallback(e,t){if(o)return;c-=1;if(e){s=true;n(e)}else if(e===false){s=true;o=true}else if(t===a||s&&c<=0){s=true;return n(null)}else if(!l){replenish()}}function replenish(){l=true;while(c<e&&!s){var t=i();if(t===null){s=true;if(c<=0){n(null)}return}c+=1;r(t.value,t.key,onlyOnce(iterateeCallback))}l=false}replenish()};function eachOfLimit(e,t,r,n){return eachOfLimit$2(t)(e,Line truncated
|
||||
/*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */
|
||||
var s;(function(r){if(typeof DO_NOT_EXPORT_CRC==="undefined"){if(true){r(i)}else{}}else{r(s={})}})((function(r){r.version="1.2.2";function signed_crc_table(){var r=0,i=new Array(256);for(var s=0;s!=256;++s){r=s;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;i[s]=r}return typeof Int32Array!=="undefined"?new Int32Array(i):i}var i=signed_crc_table();function slice_by_16_tables(r){var i=0,s=0,a=0,c=typeof Int32Array!=="undefined"?new Int32Array(4096):new Array(4096);for(a=0;a!=256;++a)c[a]=r[a];for(a=0;a!=256;++a){s=r[a];for(i=256+a;i<4096;i+=256)s=c[i]=s>>>8^r[s&255]}var l=[];for(a=1;a!=16;++a)l[a-1]=typeof Int32Array!=="undefined"?c.subarray(a*256,a*256+256):c.slice(a*256,a*256+256);return l}var s=slice_by_16_tables(i);var a=s[0],c=s[1],l=s[2],u=s[3],d=s[4];var p=s[5],A=s[6],h=s[7],g=s[8],y=s[9];var b=s[10],C=s[11],I=s[12],w=s[13],B=s[14];function crc32_bstr(r,s){var a=s^-1;for(var c=0,l=r.length;c<l;)a=a>>>8^i[(a^r.charCodeAt(c++))&255];return~a}function crc32_buf(r,s){var v=s^-1,S=r.length-15,Q=0;for(;Q<S;)v=B[r[Q++]^v&255]^w[r[Q++]^v>>8&255]^I[r[Q++]^v>>16&255]^C[r[Q++]^v>>>24]^b[r[Q++]]^y[r[Q++]]^g[r[Q++]]^h[r[Q++]]^A[r[Q++]]^p[r[Q++]]^d[r[Q++]]^u[r[Q++]]^l[r[Q++]]^c[r[Q++]]^a[r[Q++]]^i[r[Q++]];S+=15;while(Q<S)v=v>>>8^i[(v^r[Q++])&255];return~v}function crc32_str(r,s){var a=s^-1;for(var c=0,l=r.length,u=0,d=0;c<l;){u=r.charCodeAt(c++);if(u<128){a=a>>>8^i[(a^u)&255]}else if(u<2048){a=a>>>8^i[(a^(192|u>>6&31))&255];a=a>>>8^i[(a^(128|u&63))&255]}else if(u>=55296&&u<57344){u=(u&1023)+64;d=r.charCodeAt(c++)&1023;a=a>>>8^i[(a^(240|u>>8&7))&255];a=a>>>8^i[(a^(128|u>>2&63))&255];a=a>>>8^i[(a^(128|d>>6&15|(u&3)<<4))&255];a=a>>>8^i[(a^(128|d&63))&255]}else{a=a>>>8^i[(a^(224|u>>12&15))&255];a=a>>>8^i[(a^(128|u>>6&63))&255];a=a>>>8^i[(a^(128|u&63))&255]}}return~a}r.table=i;r.bstr=crc32_bstr;r.buf=crc32_buf;r.str=crc32_str}))},3662:(r,i,s)=>{const{Transform:a}=s(29963);const c=s(84891);class CRC32Stream extends a{constructor(r){super(r);this.checksum=Buffer.allocUnsafe(4);this.checksum.writeInt32BE(0,0);this.rawSize=0}_transform(r,i,s){if(r){this.checksum=c.buf(r,this.checksum)>>>0;this.rawSize+=r.length}s(null,r)}digest(r){const i=Buffer.allocUnsafe(4);i.writeUInt32BE(this.checksum>>>0,0);return r?i.toString(r):i}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}}r.exports=CRC32Stream},76252:(r,i,s)=>{const{DeflateRaw:a}=s(43106);const c=s(84891);class DeflateCRC32Stream extends a{constructor(r){super(r);this.checksum=Buffer.allocUnsafe(4);this.checksum.writeInt32BE(0,0);this.rawSize=0;this.compressedSize=0}push(r,i){if(r){this.compressedSize+=r.length}return super.push(r,i)}_transform(r,i,s){if(r){this.checksum=c.buf(r,this.checksum)>>>0;this.rawSize+=r.length}super._transform(r,i,s)}digest(r){const i=Buffer.allocUnsafe(4);i.writeUInt32BE(this.checksum>>>0,0);return r?i.toString(r):i}hex(){return this.digest("hex").toUpperCase()}size(r=false){if(r){return this.compressedSize}else{return this.rawSize}}}r.exports=DeflateCRC32Stream},82770:(r,i,s)=>{r.exports={CRC32Stream:s(3662),DeflateCRC32Stream:s(76252)}},6110:(r,i,s)=>{i.formatArgs=formatArgs;i.save=save;i.load=load;i.useColors=useColors;i.storage=localstorage();i.destroy=(()=>{let r=false;return()=>{if(!r){r=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();i.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/Line truncated
|
||||
var r;(function(e){if(typeof DO_NOT_EXPORT_CRC==="undefined"){if(true){e(t)}else{}}else{e(r={})}})((function(e){e.version="1.2.2";function signed_crc_table(){var e=0,t=new Array(256);for(var r=0;r!=256;++r){e=r;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;t[r]=e}return typeof Int32Array!=="undefined"?new Int32Array(t):t}var t=signed_crc_table();function slice_by_16_tables(e){var t=0,r=0,n=0,i=typeof Int32Array!=="undefined"?new Int32Array(4096):new Array(4096);for(n=0;n!=256;++n)i[n]=e[n];for(n=0;n!=256;++n){r=e[n];for(t=256+n;t<4096;t+=256)r=i[t]=r>>>8^e[r&255]}var s=[];for(n=1;n!=16;++n)s[n-1]=typeof Int32Array!=="undefined"?i.subarray(n*256,n*256+256):i.slice(n*256,n*256+256);return s}var r=slice_by_16_tables(t);var n=r[0],i=r[1],s=r[2],o=r[3],a=r[4];var c=r[5],l=r[6],u=r[7],d=r[8],h=r[9];var f=r[10],p=r[11],g=r[12],A=r[13],y=r[14];function crc32_bstr(e,r){var n=r^-1;for(var i=0,s=e.length;i<s;)n=n>>>8^t[(n^e.charCodeAt(i++))&255];return~n}function crc32_buf(e,r){var b=r^-1,w=e.length-15,C=0;for(;C<w;)b=y[e[C++]^b&255]^A[e[C++]^b>>8&255]^g[e[C++]^b>>16&255]^p[e[C++]^b>>>24]^f[e[C++]]^h[e[C++]]^d[e[C++]]^u[e[C++]]^l[e[C++]]^c[e[C++]]^a[e[C++]]^o[e[C++]]^s[e[C++]]^i[e[C++]]^n[e[C++]]^t[e[C++]];w+=15;while(C<w)b=b>>>8^t[(b^e[C++])&255];return~b}function crc32_str(e,r){var n=r^-1;for(var i=0,s=e.length,o=0,a=0;i<s;){o=e.charCodeAt(i++);if(o<128){n=n>>>8^t[(n^o)&255]}else if(o<2048){n=n>>>8^t[(n^(192|o>>6&31))&255];n=n>>>8^t[(n^(128|o&63))&255]}else if(o>=55296&&o<57344){o=(o&1023)+64;a=e.charCodeAt(i++)&1023;n=n>>>8^t[(n^(240|o>>8&7))&255];n=n>>>8^t[(n^(128|o>>2&63))&255];n=n>>>8^t[(n^(128|a>>6&15|(o&3)<<4))&255];n=n>>>8^t[(n^(128|a&63))&255]}else{n=n>>>8^t[(n^(224|o>>12&15))&255];n=n>>>8^t[(n^(128|o>>6&63))&255];n=n>>>8^t[(n^(128|o&63))&255]}}return~n}e.table=t;e.bstr=crc32_bstr;e.buf=crc32_buf;e.str=crc32_str}))},3662:(e,t,r)=>{const{Transform:n}=r(29963);const i=r(84891);class CRC32Stream extends n{constructor(e){super(e);this.checksum=Buffer.allocUnsafe(4);this.checksum.writeInt32BE(0,0);this.rawSize=0}_transform(e,t,r){if(e){this.checksum=i.buf(e,this.checksum)>>>0;this.rawSize+=e.length}r(null,e)}digest(e){const t=Buffer.allocUnsafe(4);t.writeUInt32BE(this.checksum>>>0,0);return e?t.toString(e):t}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}}e.exports=CRC32Stream},76252:(e,t,r)=>{const{DeflateRaw:n}=r(43106);const i=r(84891);class DeflateCRC32Stream extends n{constructor(e){super(e);this.checksum=Buffer.allocUnsafe(4);this.checksum.writeInt32BE(0,0);this.rawSize=0;this.compressedSize=0}push(e,t){if(e){this.compressedSize+=e.length}return super.push(e,t)}_transform(e,t,r){if(e){this.checksum=i.buf(e,this.checksum)>>>0;this.rawSize+=e.length}super._transform(e,t,r)}digest(e){const t=Buffer.allocUnsafe(4);t.writeUInt32BE(this.checksum>>>0,0);return e?t.toString(e):t}hex(){return this.digest("hex").toUpperCase()}size(e=false){if(e){return this.compressedSize}else{return this.rawSize}}}e.exports=DeflateCRC32Stream},82770:(e,t,r)=>{e.exports={CRC32Stream:r(3662),DeflateCRC32Stream:r(76252)}},6110:(e,t,r)=>{t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/Line truncated
|
||||
/**
|
||||
* @author Toru Nagashima <https://github.com/mysticatea>
|
||||
* @copyright 2015 Toru Nagashima. All rights reserved.
|
||||
* See LICENSE file in root directory for full license.
|
||||
*/
|
||||
Object.defineProperty(i,"__esModule",{value:true});const s=new WeakMap;const a=new WeakMap;function pd(r){const i=s.get(r);console.assert(i!=null,"'this' is expected an Event object, but got",r);return i}function setCancelFlag(r){if(r.passiveListener!=null){if(typeof console!=="undefined"&&typeof console.error==="function"){console.error("Unable to preventDefault inside passive event listener invocation.",r.passiveListener)}return}if(!r.event.cancelable){return}r.canceled=true;if(typeof r.event.preventDefault==="function"){r.event.preventDefault()}}function Event(r,i){s.set(this,{eventTarget:r,event:i,eventPhase:2,currentTarget:r,canceled:false,stopped:false,immediateStopped:false,passiveListener:null,timeStamp:i.timeStamp||Date.now()});Object.defineProperty(this,"isTrusted",{value:false,enumerable:true});const a=Object.keys(i);for(let r=0;r<a.length;++r){const i=a[r];if(!(i in this)){Object.defineProperty(this,i,defineRedirectDescriptor(i))}}}Event.prototype={get type(){return pd(this).event.type},get target(){return pd(this).eventTarget},get currentTarget(){return pd(this).currentTarget},composedPath(){const r=pd(this).currentTarget;if(r==null){return[]}return[r]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return pd(this).eventPhase},stopPropagation(){const r=pd(this);r.stopped=true;if(typeof r.event.stopPropagation==="function"){r.event.stopPropagation()}},stopImmediatePropagation(){const r=pd(this);r.stopped=true;r.immediateStopped=true;if(typeof r.event.stopImmediatePropagation==="function"){r.event.stopImmediatePropagation()}},get bubbles(){return Boolean(pd(this).event.bubbles)},get cancelable(){return Boolean(pd(this).event.cancelable)},preventDefault(){setCancelFlag(pd(this))},get defaultPrevented(){return pd(this).canceled},get composed(){return Boolean(pd(this).event.composed)},get timeStamp(){return pd(this).timeStamp},get srcElement(){return pd(this).eventTarget},get cancelBubble(){return pd(this).stopped},set cancelBubble(r){if(!r){return}const i=pd(this);i.stopped=true;if(typeof i.event.cancelBubble==="boolean"){i.event.cancelBubble=true}},get returnValue(){return!pd(this).canceled},set returnValue(r){if(!r){setCancelFlag(pd(this))}},initEvent(){}};Object.defineProperty(Event.prototype,"constructor",{value:Event,configurable:true,writable:true});if(typeof window!=="undefined"&&typeof window.Event!=="undefined"){Object.setPrototypeOf(Event.prototype,window.Event.prototype);a.set(window.Event.prototype,Event)}function defineRedirectDescriptor(r){return{get(){return pd(this).event[r]},set(i){pd(this).event[r]=i},configurable:true,enumerable:true}}function defineCallDescriptor(r){return{value(){const i=pd(this).event;return i[r].apply(i,arguments)},configurable:true,enumerable:true}}function defineWrapper(r,i){const s=Object.keys(i);if(s.length===0){return r}function CustomEvent(i,s){r.call(this,i,s)}CustomEvent.prototype=Object.create(r.prototype,{constructor:{value:CustomEvent,configurable:true,writable:true}});for(let a=0;a<s.length;++a){const c=s[a];if(!(c in r.prototype)){const r=Object.getOwnPropertyDescriptor(i,c);const s=typeof r.value==="function";Object.defineProperty(CustomEvent.prototype,c,s?defineCallDescriptor(c):defineRedirectDescriptor(c))}}return CustomEvent}function getWrapper(r){if(r==null||r===Object.prototype){return Event}let i=a.get(r);if(i==null){i=defineWrapper(getWrapper(Object.getPrototypeOf(r)),r);a.set(r,i)}return i}function wrapEvent(r,i){const s=getWrapper(Object.getPrototypeOf(i));return new s(r,i)}function isStopped(r){return pd(r).immediateStopped}function setEventPhase(r,i){pd(r).eventPhase=i}function setCurrentTarget(r,i){pd(r).currentTarget=i}function setPassiveListener(r,i){pd(r).passiveListener=i}const c=new WeakMap;const l=1;const u=2;const d=3;function isObject(r){return r!==null&&typeof r==="object"}function getListeners(r){const i=c.get(r);if(i==null){throw new TypeError("'this' is expected an EventTarget object, but got another value.")}return i}function defineEventAttributeDescriptor(r){return{get(){const i=getListeners(this);let s=i.get(r);while(s!=null){if(s.listenerType===d){return s.listener}s=s.next}return null},set(i){if(typeof i!=="function"&&!isObject(i)){i=null}const s=getListeners(this);let a=null;let c=s.get(r);while(c!=null){if(c.listenerType===d){if(a!==null){a.next=c.next}else if(c.next!==null){s.set(r,c.next)}else{s.delete(r)}}else{a=c}c=c.next}if(i!==null){const c={listener:i,listenerType:d,passive:false,once:false,next:null};if(a===null){s.set(r,c)}else{a.next=c}}},configurable:true,enumerable:true}}function defineEventAttribute(r,i){Object.defineProperty(r,`on${i}`,defineEventAttributeDescriptor(i))}function defineCustomEventTarget(r){function CustomEventTarget(){EventTarget.call(this)}CustomEventTarget.prototype=Object.create(EventTarget.prototype,{constructor:{value:CustomEventTarget,configurable:true,writable:true}});for(let i=0;i<r.length;++i){defLine truncated
|
||||
/*! https://mths.be/he v1.2.0 by @mathias | MIT license */(function(s){var a=true&&i;var c=true&&r&&r.exports==a&&r;var l=typeof global=="object"&&global;if(l.global===l||l.window===l){s=l}var u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;var d=/[\x01-\x7F]/g;var p=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g;var A=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g;var h={"":"shy","":"zwnj","":"zwj","":"lrm","":"ic","":"it","":"af","":"rlm","":"ZeroWidthSpace","":"NoBreak","̑":"DownBreve","⃛":"tdot","⃜":"DotDot","\t":"Tab","\n":"NewLine"," ":"puncsp"," ":"MediumSpace"," ":"thinsp"," ":"hairsp"," ":"emsp13"," ":"ensp"," ":"emsp14"," ":"emsp"," ":"numsp"," ":"nbsp"," ":"ThickSpace","‾":"oline",_:"lowbar","‐":"dash","–":"ndash","—":"mdash","―":"horbar",",":"comma",";":"semi","⁏":"bsemi",":":"colon","⩴":"Colone","!":"excl","¡":"iexcl","?":"quest","¿":"iquest",".":"period","‥":"nldr","…":"mldr","·":"middot","'":"apos","‘":"lsquo","’":"rsquo","‚":"sbquo","‹":"lsaquo","›":"rsaquo",'"':"quot","“":"ldquo","”":"rdquo","„":"bdquo","«":"laquo","»":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","⌈":"lceil","⌉":"rceil","⌊":"lfloor","⌋":"rfloor","⦅":"lopar","⦆":"ropar","⦋":"lbrke","⦌":"rbrke","⦍":"lbrkslu","⦎":"rbrksld","⦏":"lbrksld","⦐":"rbrkslu","⦑":"langd","⦒":"rangd","⦓":"lparlt","⦔":"rpargt","⦕":"gtlPar","⦖":"ltrPar","⟦":"lobrk","⟧":"robrk","⟨":"lang","⟩":"rang","⟪":"Lang","⟫":"Rang","⟬":"loang","⟭":"roang","❲":"lbbrk","❳":"rbbrk","‖":"Vert","§":"sect","¶":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","‰":"permil","‱":"pertenk","†":"dagger","‡":"Dagger","•":"bull","⁃":"hybull","′":"prime","″":"Prime","‴":"tprime","⁗":"qprimeLine truncated
|
||||
Object.defineProperty(t,"__esModule",{value:true});const r=new WeakMap;const n=new WeakMap;function pd(e){const t=r.get(e);console.assert(t!=null,"'this' is expected an Event object, but got",e);return t}function setCancelFlag(e){if(e.passiveListener!=null){if(typeof console!=="undefined"&&typeof console.error==="function"){console.error("Unable to preventDefault inside passive event listener invocation.",e.passiveListener)}return}if(!e.event.cancelable){return}e.canceled=true;if(typeof e.event.preventDefault==="function"){e.event.preventDefault()}}function Event(e,t){r.set(this,{eventTarget:e,event:t,eventPhase:2,currentTarget:e,canceled:false,stopped:false,immediateStopped:false,passiveListener:null,timeStamp:t.timeStamp||Date.now()});Object.defineProperty(this,"isTrusted",{value:false,enumerable:true});const n=Object.keys(t);for(let e=0;e<n.length;++e){const t=n[e];if(!(t in this)){Object.defineProperty(this,t,defineRedirectDescriptor(t))}}}Event.prototype={get type(){return pd(this).event.type},get target(){return pd(this).eventTarget},get currentTarget(){return pd(this).currentTarget},composedPath(){const e=pd(this).currentTarget;if(e==null){return[]}return[e]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return pd(this).eventPhase},stopPropagation(){const e=pd(this);e.stopped=true;if(typeof e.event.stopPropagation==="function"){e.event.stopPropagation()}},stopImmediatePropagation(){const e=pd(this);e.stopped=true;e.immediateStopped=true;if(typeof e.event.stopImmediatePropagation==="function"){e.event.stopImmediatePropagation()}},get bubbles(){return Boolean(pd(this).event.bubbles)},get cancelable(){return Boolean(pd(this).event.cancelable)},preventDefault(){setCancelFlag(pd(this))},get defaultPrevented(){return pd(this).canceled},get composed(){return Boolean(pd(this).event.composed)},get timeStamp(){return pd(this).timeStamp},get srcElement(){return pd(this).eventTarget},get cancelBubble(){return pd(this).stopped},set cancelBubble(e){if(!e){return}const t=pd(this);t.stopped=true;if(typeof t.event.cancelBubble==="boolean"){t.event.cancelBubble=true}},get returnValue(){return!pd(this).canceled},set returnValue(e){if(!e){setCancelFlag(pd(this))}},initEvent(){}};Object.defineProperty(Event.prototype,"constructor",{value:Event,configurable:true,writable:true});if(typeof window!=="undefined"&&typeof window.Event!=="undefined"){Object.setPrototypeOf(Event.prototype,window.Event.prototype);n.set(window.Event.prototype,Event)}function defineRedirectDescriptor(e){return{get(){return pd(this).event[e]},set(t){pd(this).event[e]=t},configurable:true,enumerable:true}}function defineCallDescriptor(e){return{value(){const t=pd(this).event;return t[e].apply(t,arguments)},configurable:true,enumerable:true}}function defineWrapper(e,t){const r=Object.keys(t);if(r.length===0){return e}function CustomEvent(t,r){e.call(this,t,r)}CustomEvent.prototype=Object.create(e.prototype,{constructor:{value:CustomEvent,configurable:true,writable:true}});for(let n=0;n<r.length;++n){const i=r[n];if(!(i in e.prototype)){const e=Object.getOwnPropertyDescriptor(t,i);const r=typeof e.value==="function";Object.defineProperty(CustomEvent.prototype,i,r?defineCallDescriptor(i):defineRedirectDescriptor(i))}}return CustomEvent}function getWrapper(e){if(e==null||e===Object.prototype){return Event}let t=n.get(e);if(t==null){t=defineWrapper(getWrapper(Object.getPrototypeOf(e)),e);n.set(e,t)}return t}function wrapEvent(e,t){const r=getWrapper(Object.getPrototypeOf(t));return new r(e,t)}function isStopped(e){return pd(e).immediateStopped}function setEventPhase(e,t){pd(e).eventPhase=t}function setCurrentTarget(e,t){pd(e).currentTarget=t}function setPassiveListener(e,t){pd(e).passiveListener=t}const i=new WeakMap;const s=1;const o=2;const a=3;function isObject(e){return e!==null&&typeof e==="object"}function getListeners(e){const t=i.get(e);if(t==null){throw new TypeError("'this' is expected an EventTarget object, but got another value.")}return t}function defineEventAttributeDescriptor(e){return{get(){const t=getListeners(this);let r=t.get(e);while(r!=null){if(r.listenerType===a){return r.listener}r=r.next}return null},set(t){if(typeof t!=="function"&&!isObject(t)){t=null}const r=getListeners(this);let n=null;let i=r.get(e);while(i!=null){if(i.listenerType===a){if(n!==null){n.next=i.next}else if(i.next!==null){r.set(e,i.next)}else{r.delete(e)}}else{n=i}i=i.next}if(t!==null){const i={listener:t,listenerType:a,passive:false,once:false,next:null};if(n===null){r.set(e,i)}else{n.next=i}}},configurable:true,enumerable:true}}function defineEventAttribute(e,t){Object.defineProperty(e,`on${t}`,defineEventAttributeDescriptor(t))}function defineCustomEventTarget(e){function CustomEventTarget(){EventTarget.call(this)}CustomEventTarget.prototype=Object.create(EventTarget.prototype,{constructor:{value:CustomEventTarget,configurable:true,writable:true}});for(let t=0;t<e.length;++t){defLine truncated
|
||||
/*! https://mths.be/he v1.2.0 by @mathias | MIT license */(function(r){var n=true&&t;var i=true&&e&&e.exports==n&&e;var s=typeof global=="object"&&global;if(s.global===s||s.window===s){r=s}var o=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;var a=/[\x01-\x7F]/g;var c=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g;var l=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g;var u={"":"shy","":"zwnj","":"zwj","":"lrm","":"ic","":"it","":"af","":"rlm","":"ZeroWidthSpace","":"NoBreak","̑":"DownBreve","⃛":"tdot","⃜":"DotDot","\t":"Tab","\n":"NewLine"," ":"puncsp"," ":"MediumSpace"," ":"thinsp"," ":"hairsp"," ":"emsp13"," ":"ensp"," ":"emsp14"," ":"emsp"," ":"numsp"," ":"nbsp"," ":"ThickSpace","‾":"oline",_:"lowbar","‐":"dash","–":"ndash","—":"mdash","―":"horbar",",":"comma",";":"semi","⁏":"bsemi",":":"colon","⩴":"Colone","!":"excl","¡":"iexcl","?":"quest","¿":"iquest",".":"period","‥":"nldr","…":"mldr","·":"middot","'":"apos","‘":"lsquo","’":"rsquo","‚":"sbquo","‹":"lsaquo","›":"rsaquo",'"':"quot","“":"ldquo","”":"rdquo","„":"bdquo","«":"laquo","»":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","⌈":"lceil","⌉":"rceil","⌊":"lfloor","⌋":"rfloor","⦅":"lopar","⦆":"ropar","⦋":"lbrke","⦌":"rbrke","⦍":"lbrkslu","⦎":"rbrksld","⦏":"lbrksld","⦐":"rbrkslu","⦑":"langd","⦒":"rangd","⦓":"lparlt","⦔":"rpargt","⦕":"gtlPar","⦖":"ltrPar","⟦":"lobrk","⟧":"robrk","⟨":"lang","⟩":"rang","⟪":"Lang","⟫":"Rang","⟬":"loang","⟭":"roang","❲":"lbbrk","❳":"rbbrk","‖":"Vert","§":"sect","¶":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","‰":"permil","‱":"pertenk","†":"dagger","‡":"Dagger","•":"bull","⁃":"hybull","′":"prime","″":"Prime","‴":"tprime","⁗":"qprimeLine truncated
|
||||
/**
|
||||
* @preserve
|
||||
* JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013)
|
||||
@@ -69,13 +67,7 @@ Object.defineProperty(i,"__esModule",{value:true});const s=new WeakMap;const a=n
|
||||
* @author <a href="mailto:aappleby@gmail.com">Austin Appleby</a>
|
||||
* @see http://sites.google.com/site/murmurhash/
|
||||
*/
|
||||
(function(){var i;function MurmurHash3(r,s){var a=this instanceof MurmurHash3?this:i;a.reset(s);if(typeof r==="string"&&r.length>0){a.hash(r)}if(a!==this){return a}}MurmurHash3.prototype.hash=function(r){var i,s,a,c,l;l=r.length;this.len+=l;s=this.k1;a=0;switch(this.rem){case 0:s^=l>a?r.charCodeAt(a++)&65535:0;case 1:s^=l>a?(r.charCodeAt(a++)&65535)<<8:0;case 2:s^=l>a?(r.charCodeAt(a++)&65535)<<16:0;case 3:s^=l>a?(r.charCodeAt(a)&255)<<24:0;s^=l>a?(r.charCodeAt(a++)&65280)>>8:0}this.rem=l+this.rem&3;l-=this.rem;if(l>0){i=this.h1;while(1){s=s*11601+(s&65535)*3432906752&4294967295;s=s<<15|s>>>17;s=s*13715+(s&65535)*461832192&4294967295;i^=s;i=i<<13|i>>>19;i=i*5+3864292196&4294967295;if(a>=l){break}s=r.charCodeAt(a++)&65535^(r.charCodeAt(a++)&65535)<<8^(r.charCodeAt(a++)&65535)<<16;c=r.charCodeAt(a++);s^=(c&255)<<24^(c&65280)>>8}s=0;switch(this.rem){case 3:s^=(r.charCodeAt(a+2)&65535)<<16;case 2:s^=(r.charCodeAt(a+1)&65535)<<8;case 1:s^=r.charCodeAt(a)&65535}this.h1=i}this.k1=s;return this};MurmurHash3.prototype.result=function(){var r,i;r=this.k1;i=this.h1;if(r>0){r=r*11601+(r&65535)*3432906752&4294967295;r=r<<15|r>>>17;r=r*13715+(r&65535)*461832192&4294967295;i^=r}i^=this.len;i^=i>>>16;i=i*51819+(i&65535)*2246770688&4294967295;i^=i>>>13;i=i*44597+(i&65535)*3266445312&4294967295;i^=i>>>16;return i>>>0};MurmurHash3.prototype.reset=function(r){this.h1=typeof r==="number"?r:0;this.rem=this.k1=this.len=0;return this};i=new MurmurHash3;if(true){r.exports=MurmurHash3}else{}})()},39598:(r,i,s)=>{try{var a=s(39023);if(typeof a.inherits!=="function")throw"";r.exports=a.inherits}catch(i){r.exports=s(26589)}},26589:r=>{if(typeof Object.create==="function"){r.exports=function inherits(r,i){if(i){r.super_=i;r.prototype=Object.create(i.prototype,{constructor:{value:r,enumerable:false,writable:true,configurable:true}})}}}else{r.exports=function inherits(r,i){if(i){r.super_=i;var TempCtor=function(){};TempCtor.prototype=i.prototype;r.prototype=new TempCtor;r.prototype.constructor=r}}}},68850:(r,i)=>{Object.defineProperty(i,"__esModule",{value:true});i.AddressError=void 0;class AddressError extends Error{constructor(r,i){super(r);this.name="AddressError";if(i!==null){this.parseMessage=i}}}i.AddressError=AddressError},45864:(r,i)=>{Object.defineProperty(i,"__esModule",{value:true});i.isCorrect=i.isInSubnet=void 0;function isInSubnet(r){if(this.subnetMask<r.subnetMask){return false}if(this.mask(r.subnetMask)===r.mask()){return true}return false}i.isInSubnet=isInSubnet;function isCorrect(r){return function(){if(this.addressMinusSuffix!==this.correctForm()){return false}if(this.subnetMask===r&&!this.parsedSubnet){return true}return this.parsedSubnet===String(this.subnetMask)}}i.isCorrect=isCorrect},79253:function(r,i,s){var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;var c=Object.getOwnPropertyDescriptor(i,s);if(!c||("get"in c?!i.__esModule:c.writable||c.configurable)){c={enumerable:true,get:function(){return i[s]}}}Object.defineProperty(r,a,c)}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var c=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.prototype.hasOwnProperty.call(r,s))a(i,r,s);c(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.v6=i.AddressError=i.Address6=i.Address4=void 0;const u=s(17946);Object.defineProperty(i,"Address4",{enumerable:true,get:function(){return u.Address4}});const d=s(38096);Object.defineProperty(i,"Address6",{enumerable:true,get:function(){return d.Address6}});const p=s(68850);Object.defineProperty(i,"AddressError",{enumerable:true,get:function(){return p.AddressError}});const A=l(s(20339));i.v6={helpers:A}},17946:function(r,i,s){var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;var c=Object.getOwnPropertyDescriptor(i,s);if(!c||("get"in c?!i.__esModule:c.writable||c.configurable)){c={enumerable:true,get:function(){return i[s]}}}Object.defineProperty(r,a,c)}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var c=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.prototype.hasOwnProperty.call(r,s))a(i,r,s);c(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.Address4=void 0;const u=l(s(45864));const d=l(s(66437));const p=s(68850);const A=s(95947);const h=s(19973);class Address4{constructor(r){this.groups=d.GROUPS;this.parsedAddress=[];this.parsedSubnet="";this.subnet="/32";this.subnetMask=32;this.v4=true;this.isCorrect=u.isCorrect(d.BITS);this.isInSubnet=u.isInSubnet;this.address=r;const i=d.RE_SUBNET_STRING.exec(r);if(i){tLine truncated
|
||||
/*!
|
||||
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
||||
*
|
||||
* Copyright (c) 2014-2017, Jon Schlinkert.
|
||||
* Released under the MIT License.
|
||||
*/function isObject(r){return Object.prototype.toString.call(r)==="[object Object]"}function isPlainObject(r){var i,s;if(isObject(r)===false)return false;i=r.constructor;if(i===undefined)return true;s=i.prototype;if(isObject(s)===false)return false;if(s.hasOwnProperty("isPrototypeOf")===false){return false}return true}i.isPlainObject=isPlainObject},96543:r=>{const isStream=r=>r!==null&&typeof r==="object"&&typeof r.pipe==="function";isStream.writable=r=>isStream(r)&&r.writable!==false&&typeof r._write==="function"&&typeof r._writableState==="object";isStream.readable=r=>isStream(r)&&r.readable!==false&&typeof r._read==="function"&&typeof r._readableState==="object";isStream.duplex=r=>isStream.writable(r)&&isStream.readable(r);isStream.transform=r=>isStream.duplex(r)&&typeof r._transform==="function";r.exports=isStream},82513:r=>{var i={}.toString;r.exports=Array.isArray||function(r){return i.call(r)=="[object Array]"}},74281:(r,i,s)=>{var a=s(91950);var c=s(59980);function renamed(r,i){return function(){throw new Error("Function yaml."+r+" is removed in js-yaml 4. "+"Use yaml."+i+" instead, which is now safe by default.")}}r.exports.Type=s(9557);r.exports.Schema=s(62046);r.exports.FAILSAFE_SCHEMA=s(69832);r.exports.JSON_SCHEMA=s(58927);r.exports.CORE_SCHEMA=s(55746);r.exports.DEFAULT_SCHEMA=s(97336);r.exports.load=a.load;r.exports.loadAll=a.loadAll;r.exports.dump=c.dump;r.exports.YAMLException=s(41248);r.exports.types={binary:s(8149),float:s(57584),map:s(47316),null:s(4333),pairs:s(16267),set:s(78758),timestamp:s(28966),bool:s(67296),int:s(62271),merge:s(76854),omap:s(58649),seq:s(77161),str:s(53929)};r.exports.safeLoad=renamed("safeLoad","load");r.exports.safeLoadAll=renamed("safeLoadAll","loadAll");r.exports.safeDump=renamed("safeDump","dump")},19816:r=>{function isNothing(r){return typeof r==="undefined"||r===null}function isObject(r){return typeof r==="object"&&r!==null}function toArray(r){if(Array.isArray(r))return r;else if(isNothing(r))return[];return[r]}function extend(r,i){var s,a,c,l;if(i){l=Object.keys(i);for(s=0,a=l.length;s<a;s+=1){c=l[s];r[c]=i[c]}}return r}function repeat(r,i){var s="",a;for(a=0;a<i;a+=1){s+=r}return s}function isNegativeZero(r){return r===0&&Number.NEGATIVE_INFINITY===1/r}r.exports.isNothing=isNothing;r.exports.isObject=isObject;r.exports.toArray=toArray;r.exports.repeat=repeat;r.exports.isNegativeZero=isNegativeZero;r.exports.extend=extend},59980:(r,i,s)=>{var a=s(19816);var c=s(41248);var l=s(97336);var u=Object.prototype.toString;var d=Object.prototype.hasOwnProperty;var p=65279;var A=9;var h=10;var g=13;var y=32;var b=33;var C=34;var I=35;var w=37;var B=38;var v=39;var S=42;var Q=44;var R=45;var T=58;var _=61;var k=62;var x=63;var D=64;var N=91;var O=93;var P=96;var L=123;var M=124;var U=125;var G={};G[0]="\\0";G[7]="\\a";G[8]="\\b";G[9]="\\t";G[10]="\\n";G[11]="\\v";G[12]="\\f";G[13]="\\r";G[27]="\\e";G[34]='\\"';G[92]="\\\\";G[133]="\\N";G[160]="\\_";G[8232]="\\L";G[8233]="\\P";var H=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];var j=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function compileStyleMap(r,i){var s,a,c,l,u,p,A;if(i===null)return{};s={};a=Object.keys(i);for(c=0,l=a.length;c<l;c+=1){u=a[c];p=String(i[u]);if(u.slice(0,2)==="!!"){u="tag:yaml.org,2002:"+u.slice(2)}A=r.compiledTypeMap["fallback"][u];if(A&&d.call(A.styleAliases,p)){p=A.styleAliases[p]}s[u]=p}return s}function encodeHex(r){var i,s,l;i=r.toString(16).toUpperCase();if(r<=255){s="x";l=2}else if(r<=65535){s="u";l=4}else if(r<=4294967295){s="U";l=8}else{throw new c("code point within a string may not be greater than 0xFFFFFFFF")}return"\\"+s+a.repeat("0",l-i.length)+i}var V=1,q=2;function State(r){this.schema=r["schema"]||l;this.indent=Math.max(1,r["indent"]||2);this.noArrayIndent=r["noArrayIndent"]||false;this.skipInvalid=r["skipInvalid"]||false;this.flowLevel=a.isNothing(r["flowLevel"])?-1:r["flowLevel"];this.styleMap=compileStyleMap(this.schema,r["styles"]||null);this.sortKeys=r["sortKeys"]||false;this.lineWidth=r["lineWidth"]||80;this.noRefs=r["noRefs"]||false;this.noCompatMode=r["noCompatMode"]||false;this.condenseFlow=r["condenseFlow"]||false;this.quotingType=r["quotingType"]==='"'?q:V;this.forceQuotes=r["forceQuotes"]||false;this.replacer=typeof r["replacer"]==="function"?r["replacer"]:null;this.implicitTypes=this.schema.compiledImplicit;this.explicitTypes=this.schema.compiledExplicit;this.tag=null;this.result="";this.duplicates=[];this.usedDuplicates=null}function indentString(r,i){var s=a.repeat(" ",i),c=0,l=-1,u="",d,p=r.length;while(c<p){l=r.indexOf("\n",c);if(l===-1){d=r.slice(c);c=p}else{d=r.slice(c,l+1);c=l+1}if(d.length&&d!=="\n")u+=s;u+=d}return u}function generateNextLine(r,i){return"\n"+a.repeat(" ",r.indent*i)}function testImplicitResolving(r,i){var s,a,c;for(s=0,a=r.implicitTypes.length;s<a;s+=1){c=r.implicitTypes[s];if(c.resolve(i)){return true}}return false}function isWhitespace(r){return r===y||r===A}function isPrintable(r){return 32<=r&&Line truncated
|
||||
(function(){var t;function MurmurHash3(e,r){var n=this instanceof MurmurHash3?this:t;n.reset(r);if(typeof e==="string"&&e.length>0){n.hash(e)}if(n!==this){return n}}MurmurHash3.prototype.hash=function(e){var t,r,n,i,s;s=e.length;this.len+=s;r=this.k1;n=0;switch(this.rem){case 0:r^=s>n?e.charCodeAt(n++)&65535:0;case 1:r^=s>n?(e.charCodeAt(n++)&65535)<<8:0;case 2:r^=s>n?(e.charCodeAt(n++)&65535)<<16:0;case 3:r^=s>n?(e.charCodeAt(n)&255)<<24:0;r^=s>n?(e.charCodeAt(n++)&65280)>>8:0}this.rem=s+this.rem&3;s-=this.rem;if(s>0){t=this.h1;while(1){r=r*11601+(r&65535)*3432906752&4294967295;r=r<<15|r>>>17;r=r*13715+(r&65535)*461832192&4294967295;t^=r;t=t<<13|t>>>19;t=t*5+3864292196&4294967295;if(n>=s){break}r=e.charCodeAt(n++)&65535^(e.charCodeAt(n++)&65535)<<8^(e.charCodeAt(n++)&65535)<<16;i=e.charCodeAt(n++);r^=(i&255)<<24^(i&65280)>>8}r=0;switch(this.rem){case 3:r^=(e.charCodeAt(n+2)&65535)<<16;case 2:r^=(e.charCodeAt(n+1)&65535)<<8;case 1:r^=e.charCodeAt(n)&65535}this.h1=t}this.k1=r;return this};MurmurHash3.prototype.result=function(){var e,t;e=this.k1;t=this.h1;if(e>0){e=e*11601+(e&65535)*3432906752&4294967295;e=e<<15|e>>>17;e=e*13715+(e&65535)*461832192&4294967295;t^=e}t^=this.len;t^=t>>>16;t=t*51819+(t&65535)*2246770688&4294967295;t^=t>>>13;t=t*44597+(t&65535)*3266445312&4294967295;t^=t>>>16;return t>>>0};MurmurHash3.prototype.reset=function(e){this.h1=typeof e==="number"?e:0;this.rem=this.k1=this.len=0;return this};t=new MurmurHash3;if(true){e.exports=MurmurHash3}else{}})()},39598:(e,t,r)=>{try{var n=r(39023);if(typeof n.inherits!=="function")throw"";e.exports=n.inherits}catch(t){e.exports=r(26589)}},26589:e=>{if(typeof Object.create==="function"){e.exports=function inherits(e,t){if(t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}}}else{e.exports=function inherits(e,t){if(t){e.super_=t;var TempCtor=function(){};TempCtor.prototype=t.prototype;e.prototype=new TempCtor;e.prototype.constructor=e}}}},68850:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.AddressError=void 0;class AddressError extends Error{constructor(e,t){super(e);this.name="AddressError";if(t!==null){this.parseMessage=t}}}t.AddressError=AddressError},45864:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isCorrect=t.isInSubnet=void 0;function isInSubnet(e){if(this.subnetMask<e.subnetMask){return false}if(this.mask(e.subnetMask)===e.mask()){return true}return false}t.isInSubnet=isInSubnet;function isCorrect(e){return function(){if(this.addressMinusSuffix!==this.correctForm()){return false}if(this.subnetMask===e&&!this.parsedSubnet){return true}return this.parsedSubnet===String(this.subnetMask)}}t.isCorrect=isCorrect},79253:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var i=Object.getOwnPropertyDescriptor(t,r);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,i)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.v6=t.AddressError=t.Address6=t.Address4=void 0;const o=r(17946);Object.defineProperty(t,"Address4",{enumerable:true,get:function(){return o.Address4}});const a=r(38096);Object.defineProperty(t,"Address6",{enumerable:true,get:function(){return a.Address6}});const c=r(68850);Object.defineProperty(t,"AddressError",{enumerable:true,get:function(){return c.AddressError}});const l=s(r(20339));t.v6={helpers:l}},17946:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var i=Object.getOwnPropertyDescriptor(t,r);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,i)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.Address4=void 0;const o=s(r(45864));const a=s(r(66437));const c=r(68850);const l=r(95947);const u=r(19973);class Address4{constructor(e){this.groups=a.GROUPS;this.parsedAddress=[];this.parsedSubnet="";this.subnet="/32";this.subnetMask=32;this.v4=true;this.isCorrect=o.isCorrect(a.BITS);this.isInSubnet=o.isInSubnet;this.address=e;const t=a.RE_SUBNET_STRING.exec(e);if(t){tLine truncated
|
||||
/**
|
||||
* @license
|
||||
* Copyright (c) 2010-2012 Mikeal Rogers
|
||||
@@ -88,21 +80,7 @@ Object.defineProperty(i,"__esModule",{value:true});const s=new WeakMap;const a=n
|
||||
* IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
||||
* express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*/if(new u.URL(r.url).hostname!==d.hostname){r.headers.delete("authorization");r.headers.delete("cookie")}if(i.status===303||r.method==="POST"&&[301,302].includes(i.status)){a.method="GET";a.body=null;r.headers.delete("content-length")}a.headers={};r.headers.forEach(((r,i)=>{a.headers[i]=r}));a.counter=++r.counter;const p=new c(u.format(d),a);return{request:p,options:a}};const fetch=async(r,i)=>{const s=d.storable(r,i)?await p(r,i):await A(r,i);if(!["GET","HEAD"].includes(r.method)&&s.status>=200&&s.status<=399){await p.invalidate(r,i)}if(!canFollowRedirect(r,s,i)){return s}const a=getRedirect(r,s,i);return fetch(a.request,a.options)};r.exports=fetch},39310:(r,i,s)=>{const{FetchError:a,Headers:c,Request:l,Response:u}=s(88483);const d=s(99824);const p=s(67242);const makeFetchHappen=(r,i)=>{const s=d(i);const a=new l(r,s);return p(a,s)};makeFetchHappen.defaults=(r,i={},s=makeFetchHappen)=>{if(typeof r==="object"){i=r;r=null}const defaultedFetch=(a,c={})=>{const l=a||r;const u={...i,...c,headers:{...i.headers,...c.headers}};return s(l,u)};defaultedFetch.defaults=(r,i={})=>makeFetchHappen.defaults(r,i,defaultedFetch);return defaultedFetch};r.exports=makeFetchHappen;r.exports.FetchError=a;r.exports.Headers=c;r.exports.Request=l;r.exports.Response=u},99824:(r,i,s)=>{const a=s(72250);const c=["if-modified-since","if-none-match","if-unmodified-since","if-match","if-range"];const configureOptions=r=>{const{strictSSL:i,...s}={...r};s.method=s.method?s.method.toUpperCase():"GET";if(i===undefined||i===null){s.rejectUnauthorized=process.env.NODE_TLS_REJECT_UNAUTHORIZED!=="0"}else{s.rejectUnauthorized=i!==false}if(!s.retry){s.retry={retries:0}}else if(typeof s.retry==="string"){const r=parseInt(s.retry,10);if(isFinite(r)){s.retry={retries:r}}else{s.retry={retries:0}}}else if(typeof s.retry==="number"){s.retry={retries:s.retry}}else{s.retry={retries:0,...s.retry}}s.dns={ttl:5*60*1e3,lookup:a.lookup,...s.dns};s.cache=s.cache||"default";if(s.cache==="default"){const r=Object.keys(s.headers||{}).some((r=>c.includes(r.toLowerCase())));if(r){s.cache="no-store"}}s.cacheAdditionalHeaders=s.cacheAdditionalHeaders||[];if(s.cacheManager&&!s.cachePath){s.cachePath=s.cacheManager}return s};r.exports=configureOptions},22314:(r,i,s)=>{const a=s(52899);class CachingMinipassPipeline extends a{#O=[];#ge=new Map;constructor(r,...i){super();this.#O=r.events;if(i.length){this.push(...i)}}on(r,i){if(this.#O.includes(r)&&this.#ge.has(r)){return i(...this.#ge.get(r))}return super.on(r,i)}emit(r,...i){if(this.#O.includes(r)){this.#ge.set(r,i)}return super.emit(r,...i)}}r.exports=CachingMinipassPipeline},20766:(r,i,s)=>{const{Minipass:a}=s(78275);const c=s(88483);const l=s(90390);const u=s(68951);const{log:d}=s(26687);const p=s(22314);const{getAgent:A}=s(57995);const h=s(96734);const g=`${h.name}/${h.version} (+https://npm.im/${h.name})`;const y=["ECONNRESET","ECONNREFUSED","EADDRINUSE","ETIMEDOUT","ECONNECTIONTIMEOUT","EIDLETIMEOUT","ERESPONSETIMEOUT","ETRANSFERTIMEOUT"];const b=["request-timeout"];const remoteFetch=(r,i)=>{const s=A(r.url,{...i,signal:undefined});if(!r.headers.has("connection")){r.headers.set("connection",s?"keep-alive":"close")}if(!r.headers.has("user-agent")){r.headers.set("user-agent",g)}const h={...i,agent:s,redirect:"manual"};return l((async(s,l)=>{const A=new c.Request(r,h);try{let r=await c(A,h);if(h.integrity&&r.status===200){const i=u.integrityStream({algorithms:h.algorithms,integrity:h.integrity,size:h.size});const s=new p({events:["integrity","size"]},r.body,i);i.on("integrity",(r=>s.emit("integrity",r)));i.on("size",(r=>s.emit("size",r)));r=new c.Response(s,r);r.body.hasIntegrityEmitter=true}r.headers.set("x-fetch-attempts",l);const g=a.isStream(A.body);const y=A.method!=="POST"&&!g&&([408,420,429].includes(r.status)||r.status>=500);if(y){if(typeof i.onRetry==="function"){i.onRetry(r)}d.http("fetch",`${A.method} ${A.url} attempt ${l} failed with ${r.status}`);return s(r)}return r}catch(r){const a=r.code==="EPROMISERETRY"?r.retried.code:r.code;const u=r.retried instanceof c.Response||y.includes(a)&&b.includes(r.type);if(A.method==="POST"||u){throw r}if(typeof i.onRetry==="function"){i.onRetry(r)}d.http("fetch",`${A.method} ${A.url} attempt ${l} failed with ${r.code}`);return s(r)}}),i.retry).catch((r=>{if(r.status>=400&&r.type!=="system"){return r}throw r}))};r.exports=remoteFetch},99829:(r,i,s)=>{
|
||||
/*!
|
||||
* mime-db
|
||||
* Copyright(c) 2014 Jonathan Ong
|
||||
* Copyright(c) 2015-2022 Douglas Christopher Wilson
|
||||
* MIT Licensed
|
||||
*/
|
||||
r.exports=s(81813)},14096:(r,i,s)=>{
|
||||
/*!
|
||||
* mime-types
|
||||
* Copyright(c) 2014 Jonathan Ong
|
||||
* Copyright(c) 2015 Douglas Christopher Wilson
|
||||
* MIT Licensed
|
||||
*/
|
||||
var a=s(99829);var c=s(16928).extname;var l=/^\s*([^;\s]*)(?:;|\s|$)/;var u=/^text\//i;i.charset=charset;i.charsets={lookup:charset};i.contentType=contentType;i.extension=extension;i.extensions=Object.create(null);i.lookup=lookup;i.types=Object.create(null);populateMaps(i.extensions,i.types);function charset(r){if(!r||typeof r!=="string"){return false}var i=l.exec(r);var s=i&&a[i[1].toLowerCase()];if(s&&s.charset){return s.charset}if(i&&u.test(i[1])){return"UTF-8"}return false}function contentType(r){if(!r||typeof r!=="string"){return false}var s=r.indexOf("/")===-1?i.lookup(r):r;if(!s){return false}if(s.indexOf("charset")===-1){var a=i.charset(s);if(a)s+="; charset="+a.toLowerCase()}return s}function extension(r){if(!r||typeof r!=="string"){return false}var s=l.exec(r);var a=s&&i.extensions[s[1].toLowerCase()];if(!a||!a.length){return false}return a[0]}function lookup(r){if(!r||typeof r!=="string"){return false}var s=c("x."+r).toLowerCase().substr(1);if(!s){return false}return i.types[s]||false}function populateMaps(r,i){var s=["nginx","apache",undefined,"iana"];Object.keys(a).forEach((function forEachMimeType(c){var l=a[c];var u=l.extensions;if(!u||!u.length){return}r[c]=u;for(var d=0;d<u.length;d++){var p=u[d];if(i[p]){var A=s.indexOf(a[i[p]].source);var h=s.indexOf(l.source);if(i[p]!=="application/octet-stream"&&(A>h||A===h&&i[p].substr(0,12)==="application/")){continue}}i[p]=c}}))}},43772:(r,i,s)=>{r.exports=minimatch;minimatch.Minimatch=Minimatch;var a=function(){try{return s(16928)}catch(r){}}()||{sep:"/"};minimatch.sep=a.sep;var c=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var l=s(73783);var u={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var d="[^/]";var p=d+"*?";var A="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var h="(?:(?!(?:\\/|^)\\.).)*?";var g=charSet("().*{}+?[]^$\\!");function charSet(r){return r.split("").reduce((function(r,i){r[i]=true;return r}),{})}var y=/\/+/;minimatch.filter=filter;function filter(r,i){i=i||{};return function(s,a,c){return minimatch(s,r,i)}}function ext(r,i){i=i||{};var s={};Object.keys(r).forEach((function(i){s[i]=r[i]}));Object.keys(i).forEach((function(r){s[r]=i[r]}));return s}minimatch.defaults=function(r){if(!r||typeof r!=="object"||!Object.keys(r).length){return minimatch}var i=minimatch;var s=function minimatch(s,a,c){return i(s,a,ext(r,c))};s.Minimatch=function Minimatch(s,a){return new i.Minimatch(s,ext(r,a))};s.Minimatch.defaults=function defaults(s){return i.defaults(ext(r,s)).Minimatch};s.filter=function filter(s,a){return i.filter(s,ext(r,a))};s.defaults=function defaults(s){return i.defaults(ext(r,s))};s.makeRe=function makeRe(s,a){return i.makeRe(s,ext(r,a))};s.braceExpand=function braceExpand(s,a){return i.braceExpand(s,ext(r,a))};s.match=function(s,a,c){return i.match(s,a,ext(r,c))};return s};Minimatch.defaults=function(r){return minimatch.defaults(r).Minimatch};function minimatch(r,i,s){assertValidPattern(i);if(!s)s={};if(!s.nocomment&&i.charAt(0)==="#"){return false}return new Minimatch(i,s).match(r)}function Minimatch(r,i){if(!(this instanceof Minimatch)){return new Minimatch(r,i)}assertValidPattern(r);if(!i)i={};r=r.trim();if(!i.allowWindowsEscape&&a.sep!=="/"){r=r.split(a.sep).join("/")}this.options=i;this.set=[];this.pattern=r;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!i.partial;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){var r=this.pattern;var i=this.options;if(!i.nocomment&&r.charAt(0)==="#"){this.comment=true;return}if(!r){this.empty=true;return}this.parseNegate();var s=this.globSet=this.braceExpand();if(i.debug)this.debug=function debug(){console.error.apply(console,arguments)};this.debug(this.pattern,s);s=this.globParts=s.map((function(r){return r.split(y)}));this.debug(this.pattern,s);s=s.map((function(r,i,s){return r.map(this.parse,this)}),this);this.debug(this.pattern,s);s=s.filter((function(r){return r.indexOf(false)===-1}));this.debug(this.pattern,s);this.set=s}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var r=this.pattern;var i=false;var s=this.options;var a=0;if(s.nonegate)return;for(var c=0,l=r.length;c<l&&r.charAt(c)==="!";c++){i=!i;a++}if(a)this.pattern=r.substr(a);this.negate=i}minimatch.braceExpand=function(r,i){return braceExpand(r,i)};Minimatch.prototype.braceExpand=braceExpand;function braceExpand(r,i){if(!i){if(this instanceof Minimatch){i=this.options}else{i={}}}r=typeof r==="undefined"?this.pattern:r;assertValidPattern(r);if(i.nobrace||!/\{(?:(?!\{).)*\}/.test(r)){return[r]}return l(r)}var b=1024*64;var assertValidPattern=function(r){if(typeof r!=="string"){throw new TypeError("invalid pattern")}if(r.length>b){throw new TypeError("pattern is too long")}};Minimatch.prototype.parse=parse;var C={};function parse(r,i){assertValidPattern(r);var s=this.options;if(r==="**"){if(!s.noglobstar)return c;else r="*"Line truncated
|
||||
*/if(new o.URL(e.url).hostname!==a.hostname){e.headers.delete("authorization");e.headers.delete("cookie")}if(t.status===303||e.method==="POST"&&[301,302].includes(t.status)){n.method="GET";n.body=null;e.headers.delete("content-length")}n.headers={};e.headers.forEach(((e,t)=>{n.headers[t]=e}));n.counter=++e.counter;const c=new i(o.format(a),n);return{request:c,options:n}};const fetch=async(e,t)=>{const r=a.storable(e,t)?await c(e,t):await l(e,t);if(!["GET","HEAD"].includes(e.method)&&r.status>=200&&r.status<=399){await c.invalidate(e,t)}if(!canFollowRedirect(e,r,t)){return r}const n=getRedirect(e,r,t);return fetch(n.request,n.options)};e.exports=fetch},39310:(e,t,r)=>{const{FetchError:n,Headers:i,Request:s,Response:o}=r(88483);const a=r(99824);const c=r(67242);const makeFetchHappen=(e,t)=>{const r=a(t);const n=new s(e,r);return c(n,r)};makeFetchHappen.defaults=(e,t={},r=makeFetchHappen)=>{if(typeof e==="object"){t=e;e=null}const defaultedFetch=(n,i={})=>{const s=n||e;const o={...t,...i,headers:{...t.headers,...i.headers}};return r(s,o)};defaultedFetch.defaults=(e,t={})=>makeFetchHappen.defaults(e,t,defaultedFetch);return defaultedFetch};e.exports=makeFetchHappen;e.exports.FetchError=n;e.exports.Headers=i;e.exports.Request=s;e.exports.Response=o},99824:(e,t,r)=>{const n=r(72250);const i=["if-modified-since","if-none-match","if-unmodified-since","if-match","if-range"];const configureOptions=e=>{const{strictSSL:t,...r}={...e};r.method=r.method?r.method.toUpperCase():"GET";if(t===undefined||t===null){r.rejectUnauthorized=process.env.NODE_TLS_REJECT_UNAUTHORIZED!=="0"}else{r.rejectUnauthorized=t!==false}if(!r.retry){r.retry={retries:0}}else if(typeof r.retry==="string"){const e=parseInt(r.retry,10);if(isFinite(e)){r.retry={retries:e}}else{r.retry={retries:0}}}else if(typeof r.retry==="number"){r.retry={retries:r.retry}}else{r.retry={retries:0,...r.retry}}r.dns={ttl:5*60*1e3,lookup:n.lookup,...r.dns};r.cache=r.cache||"default";if(r.cache==="default"){const e=Object.keys(r.headers||{}).some((e=>i.includes(e.toLowerCase())));if(e){r.cache="no-store"}}r.cacheAdditionalHeaders=r.cacheAdditionalHeaders||[];if(r.cacheManager&&!r.cachePath){r.cachePath=r.cacheManager}return r};e.exports=configureOptions},22314:(e,t,r)=>{const n=r(52899);class CachingMinipassPipeline extends n{#a=[];#c=new Map;constructor(e,...t){super();this.#a=e.events;if(t.length){this.push(...t)}}on(e,t){if(this.#a.includes(e)&&this.#c.has(e)){return t(...this.#c.get(e))}return super.on(e,t)}emit(e,...t){if(this.#a.includes(e)){this.#c.set(e,t)}return super.emit(e,...t)}}e.exports=CachingMinipassPipeline},20766:(e,t,r)=>{const{Minipass:n}=r(78275);const i=r(88483);const{promiseRetry:s}=r(49498);const o=r(68951);const{log:a}=r(26687);const c=r(22314);const{getAgent:l}=r(57995);const u=r(96734);const d=`${u.name}/${u.version} (+https://npm.im/${u.name})`;const h=["ECONNRESET","ECONNREFUSED","EADDRINUSE","ETIMEDOUT","ECONNECTIONTIMEOUT","EIDLETIMEOUT","ERESPONSETIMEOUT","ETRANSFERTIMEOUT"];const f=["request-timeout"];const remoteFetch=(e,t)=>{const r=l(e.url,{...t,signal:undefined});if(!e.headers.has("connection")){e.headers.set("connection",r?"keep-alive":"close")}if(!e.headers.has("user-agent")){e.headers.set("user-agent",d)}const u={...t,agent:r,redirect:"manual"};return s((async(r,s)=>{const l=new i.Request(e,u);try{let e=await i(l,u);if(u.integrity&&e.status===200){const t=o.integrityStream({algorithms:u.algorithms,integrity:u.integrity,size:u.size});const r=new c({events:["integrity","size"]},e.body,t);t.on("integrity",(e=>r.emit("integrity",e)));t.on("size",(e=>r.emit("size",e)));e=new i.Response(r,e);e.body.hasIntegrityEmitter=true}e.headers.set("x-fetch-attempts",s);const d=n.isStream(l.body);const h=l.method!=="POST"&&!d&&([408,420,429].includes(e.status)||e.status>=500);if(h){if(typeof t.onRetry==="function"){t.onRetry(e)}a.http("fetch",`${l.method} ${l.url} attempt ${s} failed with ${e.status}`);return r(e)}return e}catch(e){const n=e.code==="EPROMISERETRY"?e.retried.code:e.code;const o=e.retried instanceof i.Response||h.includes(n)&&f.includes(e.type);if(l.method==="POST"||o){throw e}if(typeof t.onRetry==="function"){t.onRetry(e)}a.http("fetch",`${l.method} ${l.url} attempt ${s} failed with ${e.code}`);return r(e)}}),t.retry).catch((e=>{if(e.status>=400&&e.type!=="system"){return e}throw e}))};e.exports=remoteFetch},43772:(e,t,r)=>{e.exports=minimatch;minimatch.Minimatch=Minimatch;var n=function(){try{return r(16928)}catch(e){}}()||{sep:"/"};minimatch.sep=n.sep;var i=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var s=r(73783);var o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var a="[^/]";var c=a+"*?";var l="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var u="(?:(?!(?:\\/|^)\\.).)*?";var d=charSet("().*{}+?[]^$\\!");function charSet(e){return e.split("").reduce((function(e,t){e[t]=true;return e}),{})}var h=/\/+/;minimatch.filter=filter;fu
Line truncated
|
||||
/*!
|
||||
* negotiator
|
||||
* Copyright(c) 2012 Federico Romero
|
||||
@@ -110,25 +88,23 @@ var a=s(99829);var c=s(16928).extname;var l=/^\s*([^;\s]*)(?:;|\s|$)/;var u=/^te
|
||||
* Copyright(c) 2015 Douglas Christopher Wilson
|
||||
* MIT Licensed
|
||||
*/
|
||||
var a=s(79168);var c=s(25111);var l=s(56008);var u=s(53672);r.exports=Negotiator;r.exports.Negotiator=Negotiator;function Negotiator(r){if(!(this instanceof Negotiator)){return new Negotiator(r)}this.request=r}Negotiator.prototype.charset=function charset(r){var i=this.charsets(r);return i&&i[0]};Negotiator.prototype.charsets=function charsets(r){return a(this.request.headers["accept-charset"],r)};Negotiator.prototype.encoding=function encoding(r,i){var s=this.encodings(r,i);return s&&s[0]};Negotiator.prototype.encodings=function encodings(r,i){var s=i||{};return c(this.request.headers["accept-encoding"],r,s.preferred)};Negotiator.prototype.language=function language(r){var i=this.languages(r);return i&&i[0]};Negotiator.prototype.languages=function languages(r){return l(this.request.headers["accept-language"],r)};Negotiator.prototype.mediaType=function mediaType(r){var i=this.mediaTypes(r);return i&&i[0]};Negotiator.prototype.mediaTypes=function mediaTypes(r){return u(this.request.headers.accept,r)};Negotiator.prototype.preferredCharset=Negotiator.prototype.charset;Negotiator.prototype.preferredCharsets=Negotiator.prototype.charsets;Negotiator.prototype.preferredEncoding=Negotiator.prototype.encoding;Negotiator.prototype.preferredEncodings=Negotiator.prototype.encodings;Negotiator.prototype.preferredLanguage=Negotiator.prototype.language;Negotiator.prototype.preferredLanguages=Negotiator.prototype.languages;Negotiator.prototype.preferredMediaType=Negotiator.prototype.mediaType;Negotiator.prototype.preferredMediaTypes=Negotiator.prototype.mediaTypes},79168:r=>{r.exports=preferredCharsets;r.exports.preferredCharsets=preferredCharsets;var i=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function parseAcceptCharset(r){var i=r.split(",");for(var s=0,a=0;s<i.length;s++){var c=parseCharset(i[s].trim(),s);if(c){i[a++]=c}}i.length=a;return i}function parseCharset(r,s){var a=i.exec(r);if(!a)return null;var c=a[1];var l=1;if(a[2]){var u=a[2].split(";");for(var d=0;d<u.length;d++){var p=u[d].trim().split("=");if(p[0]==="q"){l=parseFloat(p[1]);break}}}return{charset:c,q:l,i:s}}function getCharsetPriority(r,i,s){var a={o:-1,q:0,s:0};for(var c=0;c<i.length;c++){var l=specify(r,i[c],s);if(l&&(a.s-l.s||a.q-l.q||a.o-l.o)<0){a=l}}return a}function specify(r,i,s){var a=0;if(i.charset.toLowerCase()===r.toLowerCase()){a|=1}else if(i.charset!=="*"){return null}return{i:s,o:i.i,q:i.q,s:a}}function preferredCharsets(r,i){var s=parseAcceptCharset(r===undefined?"*":r||"");if(!i){return s.filter(isQuality).sort(compareSpecs).map(getFullCharset)}var a=i.map((function getPriority(r,i){return getCharsetPriority(r,s,i)}));return a.filter(isQuality).sort(compareSpecs).map((function getCharset(r){return i[a.indexOf(r)]}))}function compareSpecs(r,i){return i.q-r.q||i.s-r.s||r.o-i.o||r.i-i.i||0}function getFullCharset(r){return r.charset}function isQuality(r){return r.q>0}},25111:r=>{r.exports=preferredEncodings;r.exports.preferredEncodings=preferredEncodings;var i=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function parseAcceptEncoding(r){var i=r.split(",");var s=false;var a=1;for(var c=0,l=0;c<i.length;c++){var u=parseEncoding(i[c].trim(),c);if(u){i[l++]=u;s=s||specify("identity",u);a=Math.min(a,u.q||1)}}if(!s){i[l++]={encoding:"identity",q:a,i:c}}i.length=l;return i}function parseEncoding(r,s){var a=i.exec(r);if(!a)return null;var c=a[1];var l=1;if(a[2]){var u=a[2].split(";");for(var d=0;d<u.length;d++){var p=u[d].trim().split("=");if(p[0]==="q"){l=parseFloat(p[1]);break}}}return{encoding:c,q:l,i:s}}function getEncodingPriority(r,i,s){var a={encoding:r,o:-1,q:0,s:0};for(var c=0;c<i.length;c++){var l=specify(r,i[c],s);if(l&&(a.s-l.s||a.q-l.q||a.o-l.o)<0){a=l}}return a}function specify(r,i,s){var a=0;if(i.encoding.toLowerCase()===r.toLowerCase()){a|=1}else if(i.encoding!=="*"){return null}return{encoding:r,i:s,o:i.i,q:i.q,s:a}}function preferredEncodings(r,i,s){var a=parseAcceptEncoding(r||"");var c=s?function comparator(r,i){if(r.q!==i.q){return i.q-r.q}var a=s.indexOf(r.encoding);var c=s.indexOf(i.encoding);if(a===-1&&c===-1){return i.s-r.s||r.o-i.o||r.i-i.i}if(a!==-1&&c!==-1){return a-c}return a===-1?1:-1}:compareSpecs;if(!i){return a.filter(isQuality).sort(c).map(getFullEncoding)}var l=i.map((function getPriority(r,i){return getEncodingPriority(r,a,i)}));return l.filter(isQuality).sort(c).map((function getEncoding(r){return i[l.indexOf(r)]}))}function compareSpecs(r,i){return i.q-r.q||i.s-r.s||r.o-i.o||r.i-i.i}function getFullEncoding(r){return r.encoding}function isQuality(r){return r.q>0}},56008:r=>{r.exports=preferredLanguages;r.exports.preferredLanguages=preferredLanguages;var i=/^\s*([^\s\-;]+)(?:-([^\s;]+))?\s*(?:;(.*))?$/;function parseAcceptLanguage(r){var i=r.split(",");for(var s=0,a=0;s<i.length;s++){var c=parseLanguage(i[s].trim(),s);if(c){i[a++]=c}}i.length=a;return i}function parseLanguage(r,s){var a=i.exec(r);if(!a)return null;var c=a[1];var l=a[2];var u=c;if(l)u+="-"+l;var d=1;if(a[3]){var p=a[3].split(";");for(var A=0;A<p.length;A++){var h=p[A].split(Line truncated
|
||||
var n=r(79168);var i=r(25111);var s=r(56008);var o=r(53672);e.exports=Negotiator;e.exports.Negotiator=Negotiator;function Negotiator(e){if(!(this instanceof Negotiator)){return new Negotiator(e)}this.request=e}Negotiator.prototype.charset=function charset(e){var t=this.charsets(e);return t&&t[0]};Negotiator.prototype.charsets=function charsets(e){return n(this.request.headers["accept-charset"],e)};Negotiator.prototype.encoding=function encoding(e,t){var r=this.encodings(e,t);return r&&r[0]};Negotiator.prototype.encodings=function encodings(e,t){var r=t||{};return i(this.request.headers["accept-encoding"],e,r.preferred)};Negotiator.prototype.language=function language(e){var t=this.languages(e);return t&&t[0]};Negotiator.prototype.languages=function languages(e){return s(this.request.headers["accept-language"],e)};Negotiator.prototype.mediaType=function mediaType(e){var t=this.mediaTypes(e);return t&&t[0]};Negotiator.prototype.mediaTypes=function mediaTypes(e){return o(this.request.headers.accept,e)};Negotiator.prototype.preferredCharset=Negotiator.prototype.charset;Negotiator.prototype.preferredCharsets=Negotiator.prototype.charsets;Negotiator.prototype.preferredEncoding=Negotiator.prototype.encoding;Negotiator.prototype.preferredEncodings=Negotiator.prototype.encodings;Negotiator.prototype.preferredLanguage=Negotiator.prototype.language;Negotiator.prototype.preferredLanguages=Negotiator.prototype.languages;Negotiator.prototype.preferredMediaType=Negotiator.prototype.mediaType;Negotiator.prototype.preferredMediaTypes=Negotiator.prototype.mediaTypes},79168:e=>{e.exports=preferredCharsets;e.exports.preferredCharsets=preferredCharsets;var t=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function parseAcceptCharset(e){var t=e.split(",");for(var r=0,n=0;r<t.length;r++){var i=parseCharset(t[r].trim(),r);if(i){t[n++]=i}}t.length=n;return t}function parseCharset(e,r){var n=t.exec(e);if(!n)return null;var i=n[1];var s=1;if(n[2]){var o=n[2].split(";");for(var a=0;a<o.length;a++){var c=o[a].trim().split("=");if(c[0]==="q"){s=parseFloat(c[1]);break}}}return{charset:i,q:s,i:r}}function getCharsetPriority(e,t,r){var n={o:-1,q:0,s:0};for(var i=0;i<t.length;i++){var s=specify(e,t[i],r);if(s&&(n.s-s.s||n.q-s.q||n.o-s.o)<0){n=s}}return n}function specify(e,t,r){var n=0;if(t.charset.toLowerCase()===e.toLowerCase()){n|=1}else if(t.charset!=="*"){return null}return{i:r,o:t.i,q:t.q,s:n}}function preferredCharsets(e,t){var r=parseAcceptCharset(e===undefined?"*":e||"");if(!t){return r.filter(isQuality).sort(compareSpecs).map(getFullCharset)}var n=t.map((function getPriority(e,t){return getCharsetPriority(e,r,t)}));return n.filter(isQuality).sort(compareSpecs).map((function getCharset(e){return t[n.indexOf(e)]}))}function compareSpecs(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function getFullCharset(e){return e.charset}function isQuality(e){return e.q>0}},25111:e=>{e.exports=preferredEncodings;e.exports.preferredEncodings=preferredEncodings;var t=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function parseAcceptEncoding(e){var t=e.split(",");var r=false;var n=1;for(var i=0,s=0;i<t.length;i++){var o=parseEncoding(t[i].trim(),i);if(o){t[s++]=o;r=r||specify("identity",o);n=Math.min(n,o.q||1)}}if(!r){t[s++]={encoding:"identity",q:n,i:i}}t.length=s;return t}function parseEncoding(e,r){var n=t.exec(e);if(!n)return null;var i=n[1];var s=1;if(n[2]){var o=n[2].split(";");for(var a=0;a<o.length;a++){var c=o[a].trim().split("=");if(c[0]==="q"){s=parseFloat(c[1]);break}}}return{encoding:i,q:s,i:r}}function getEncodingPriority(e,t,r){var n={encoding:e,o:-1,q:0,s:0};for(var i=0;i<t.length;i++){var s=specify(e,t[i],r);if(s&&(n.s-s.s||n.q-s.q||n.o-s.o)<0){n=s}}return n}function specify(e,t,r){var n=0;if(t.encoding.toLowerCase()===e.toLowerCase()){n|=1}else if(t.encoding!=="*"){return null}return{encoding:e,i:r,o:t.i,q:t.q,s:n}}function preferredEncodings(e,t,r){var n=parseAcceptEncoding(e||"");var i=r?function comparator(e,t){if(e.q!==t.q){return t.q-e.q}var n=r.indexOf(e.encoding);var i=r.indexOf(t.encoding);if(n===-1&&i===-1){return t.s-e.s||e.o-t.o||e.i-t.i}if(n!==-1&&i!==-1){return n-i}return n===-1?1:-1}:compareSpecs;if(!t){return n.filter(isQuality).sort(i).map(getFullEncoding)}var s=t.map((function getPriority(e,t){return getEncodingPriority(e,n,t)}));return s.filter(isQuality).sort(i).map((function getEncoding(e){return t[s.indexOf(e)]}))}function compareSpecs(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i}function getFullEncoding(e){return e.encoding}function isQuality(e){return e.q>0}},56008:e=>{e.exports=preferredLanguages;e.exports.preferredLanguages=preferredLanguages;var t=/^\s*([^\s\-;]+)(?:-([^\s;]+))?\s*(?:;(.*))?$/;function parseAcceptLanguage(e){var t=e.split(",");for(var r=0,n=0;r<t.length;r++){var i=parseLanguage(t[r].trim(),r);if(i){t[n++]=i}}t.length=n;return t}function parseLanguage(e,r){var n=t.exec(e);if(!n)return null;var i=n[1];var s=n[2];var o=i;if(s)o+="-"+s;var a=1;if(n[3]){var c=n[3].split(";");for(var l=0;l<c.length;l++){var u=c[l].split(Line truncated
|
||||
/*!
|
||||
* normalize-path <https://github.com/jonschlinkert/normalize-path>
|
||||
*
|
||||
* Copyright (c) 2014-2018, Jon Schlinkert.
|
||||
* Released under the MIT License.
|
||||
*/
|
||||
r.exports=function(r,i){if(typeof r!=="string"){throw new TypeError("expected path to be a string")}if(r==="\\"||r==="/")return"/";var s=r.length;if(s<=1)return r;var a="";if(s>4&&r[3]==="\\"){var c=r[2];if((c==="?"||c===".")&&r.slice(0,2)==="\\\\"){r=r.slice(2);a="//"}}var l=r.split(/[/\\]+/);if(i!==false&&l[l.length-1]===""){l.pop()}return a+l.join("/")}},55560:(r,i,s)=>{var a=s(58264);r.exports=a(once);r.exports.strict=a(onceStrict);once.proto=once((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})}));function once(r){var f=function(){if(f.called)return f.value;f.called=true;return f.value=r.apply(this,arguments)};f.called=false;return f}function onceStrict(r){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=r.apply(this,arguments)};var i=r.name||"Function wrapped with `once`";f.onceError=i+" shouldn't be called more than once";f.called=false;return f}},26687:r=>{const i=Symbol("proc-log.meta");r.exports={META:i,output:{LEVELS:["standard","error","buffer","flush"],KEYS:{standard:"standard",error:"error",buffer:"buffer",flush:"flush"},standard:function(...r){return process.emit("output","standard",...r)},error:function(...r){return process.emit("output","error",...r)},buffer:function(...r){return process.emit("output","buffer",...r)},flush:function(...r){return process.emit("output","flush",...r)}},log:{LEVELS:["notice","error","warn","info","verbose","http","silly","timing","pause","resume"],KEYS:{notice:"notice",error:"error",warn:"warn",info:"info",verbose:"verbose",http:"http",silly:"silly",timing:"timing",pause:"pause",resume:"resume"},error:function(...r){return process.emit("log","error",...r)},notice:function(...r){return process.emit("log","notice",...r)},warn:function(...r){return process.emit("log","warn",...r)},info:function(...r){return process.emit("log","info",...r)},verbose:function(...r){return process.emit("log","verbose",...r)},http:function(...r){return process.emit("log","http",...r)},silly:function(...r){return process.emit("log","silly",...r)},timing:function(...r){return process.emit("log","timing",...r)},pause:function(){return process.emit("log","pause")},resume:function(){return process.emit("log","resume")}},time:{LEVELS:["start","end"],KEYS:{start:"start",end:"end"},start:function(r,i){process.emit("time","start",r);function end(){return process.emit("time","end",r)}if(typeof i==="function"){const r=i();if(r&&r.finally){return r.finally(end)}end();return r}return end},end:function(r){return process.emit("time","end",r)}},input:{LEVELS:["start","end","read"],KEYS:{start:"start",end:"end",read:"read"},start:function(...r){let i;if(typeof r[0]==="function"){i=r.shift()}process.emit("input","start",...r);function end(){return process.emit("input","end",...r)}if(typeof i==="function"){const r=i();if(r&&r.finally){return r.finally(end)}end();return r}return end},end:function(...r){return process.emit("input","end",...r)},read:function(...r){let i,s;const a=new Promise(((r,a)=>{i=r;s=a}));process.emit("input","read",i,s,...r);return a}}}},41564:r=>{if(typeof process==="undefined"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0){r.exports={nextTick:nextTick}}else{r.exports=process}function nextTick(r,i,s,a){if(typeof r!=="function"){throw new TypeError('"callback" argument must be a function')}var c=arguments.length;var l,u;switch(c){case 0:case 1:return process.nextTick(r);case 2:return process.nextTick((function afterTickOne(){r.call(null,i)}));case 3:return process.nextTick((function afterTickTwo(){r.call(null,i,s)}));case 4:return process.nextTick((function afterTickThree(){r.call(null,i,s,a)}));default:l=new Array(c-1);u=0;while(u<l.length){l[u++]=arguments[u]}return process.nextTick((function afterTick(){r.apply(null,l)}))}}},7945:r=>{r.exports=global.process},90390:(r,i,s)=>{var a=s(14339);var c=s(5546);var l=Object.prototype.hasOwnProperty;function isRetryError(r){return r&&r.code==="EPROMISERETRY"&&l.call(r,"retried")}function promiseRetry(r,i){var s;var l;if(typeof r==="object"&&typeof i==="function"){s=i;i=r;r=s}l=c.operation(i);return new Promise((function(i,s){l.attempt((function(c){Promise.resolve().then((function(){return r((function(r){if(isRetryError(r)){r=r.retried}throw a(new Error("Retrying"),"EPROMISERETRY",{retried:r})}),c)})).then(i,(function(r){if(isRetryError(r)){r=r.retried;if(l.retry(r||new Error)){return}}s(r)}))}))}))}r.exports=promiseRetry},5506:(r,i,s)=>{r.exports=typeof process!=="undefined"&&typeof process.nextTick==="function"?process.nextTick.bind(process):s(36828)},36828:r=>{r.exports=typeof queueMicrotask==="function"?queueMicrotask:r=>Promise.resolve().then(r)},80652:(r,i,s)=>{const{SymbolDispose:a}=s(50999);const{AbortError:c,codes:l}=s(69220);const{Line truncated
|
||||
/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */if(!String.fromCodePoint){(function(){var r=String.fromCharCode;var i=Math.floor;var fromCodePoint=function(){var s=16384;var a=[];var c;var l;var u=-1;var d=arguments.length;if(!d){return""}var p="";while(++u<d){var A=Number(arguments[u]);if(!isFinite(A)||A<0||A>1114111||i(A)!==A){throw RangeError("Invalid code point: "+A)}if(A<=65535){a.push(A)}else{A-=65536;c=(A>>10)+55296;l=A%1024+56320;a.push(c,l)}if(u+1===d||a.length>s){p+=r.apply(null,a);a.length=0}}return p};if(Object.defineProperty){Object.defineProperty(String,"fromCodePoint",{value:fromCodePoint,configurable:true,writable:true})}else{String.fromCodePoint=fromCodePoint}})()}})(false?0:i)},39318:(r,i)=>{i=r.exports=SemVer;var s;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){s=function(){var r=Array.prototype.slice.call(arguments,0);r.unshift("SEMVER");console.log.apply(console,r)}}else{s=function(){}}i.SEMVER_SPEC_VERSION="2.0.0";var a=256;var c=Number.MAX_SAFE_INTEGER||9007199254740991;var l=16;var u=a-6;var d=i.re=[];var p=i.safeRe=[];var A=i.src=[];var h=i.tokens={};var g=0;function tok(r){h[r]=g++}var y="[a-zA-Z0-9-]";var b=[["\\s",1],["\\d",a],[y,u]];function makeSafeRe(r){for(var i=0;i<b.length;i++){var s=b[i][0];var a=b[i][1];r=r.split(s+"*").join(s+"{0,"+a+"}").split(s+"+").join(s+"{1,"+a+"}")}return r}tok("NUMERICIDENTIFIER");A[h.NUMERICIDENTIFIER]="0|[1-9]\\d*";tok("NUMERICIDENTIFIERLOOSE");A[h.NUMERICIDENTIFIERLOOSE]="\\d+";tok("NONNUMERICIDENTIFIER");A[h.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+y+"*";tok("MAINVERSION");A[h.MAINVERSION]="("+A[h.NUMERICIDENTIFIER]+")\\."+"("+A[h.NUMERICIDENTIFIER]+")\\."+"("+A[h.NUMERICIDENTIFIER]+")";tok("MAINVERSIONLOOSE");A[h.MAINVERSIONLOOSE]="("+A[h.NUMERICIDENTIFIERLOOSE]+")\\."+"("+A[h.NUMERICIDENTIFIERLOOSE]+")\\."+"("+A[h.NUMERICIDENTIFIERLOOSE]+")";tok("PRERELEASEIDENTIFIER");A[h.PRERELEASEIDENTIFIER]="(?:"+A[h.NUMERICIDENTIFIER]+"|"+A[h.NONNUMERICIDENTIFIER]+")";tok("PRERELEASEIDENTIFIERLOOSE");A[h.PRERELEASEIDENTIFIERLOOSE]="(?:"+A[h.NUMERICIDENTIFIERLOOSE]+"|"+A[h.NONNUMERICIDENTIFIER]+")";tok("PRERELEASE");A[h.PRERELEASE]="(?:-("+A[h.PRERELEASEIDENTIFIER]+"(?:\\."+A[h.PRERELEASEIDENTIFIER]+")*))";tok("PRERELEASELOOSE");A[h.PRERELEASELOOSE]="(?:-?("+A[h.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+A[h.PRERELEASEIDENTIFIERLOOSE]+")*))";tok("BUILDIDENTIFIER");A[h.BUILDIDENTIFIER]=y+"+";tok("BUILD");A[h.BUILD]="(?:\\+("+A[h.BUILDIDENTIFIER]+"(?:\\."+A[h.BUILDIDENTIFIER]+")*))";tok("FULL");tok("FULLPLAIN");A[h.FULLPLAIN]="v?"+A[h.MAINVERSION]+A[h.PRERELEASE]+"?"+A[h.BUILD]+"?";A[h.FULL]="^"+A[h.FULLPLAIN]+"$";tok("LOOSEPLAIN");A[h.LOOSEPLAIN]="[v=\\s]*"+A[h.MAINVERSIONLOOSE]+A[h.PRERELEASELOOSE]+"?"+A[h.BUILD]+"?";tok("LOOSE");A[h.LOOSE]="^"+A[h.LOOSEPLAIN]+"$";tok("GTLT");A[h.GTLT]="((?:<|>)?=?)";tok("XRANGEIDENTIFIERLOOSE");A[h.XRANGEIDENTIFIERLOOSE]=A[h.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");A[h.XRANGEIDENTIFIER]=A[h.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");A[h.XRANGEPLAIN]="[v=\\s]*("+A[h.XRANGEIDENTIFIER]+")"+"(?:\\.("+A[h.XRANGEIDENTIFIER]+")"+"(?:\\.("+A[h.XRANGEIDENTIFIER]+")"+"(?:"+A[h.PRERELEASE]+")?"+A[h.BUILD]+"?"+")?)?";tok("XRANGEPLAINLOOSE");A[h.XRANGEPLAINLOOSE]="[v=\\s]*("+A[h.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+A[h.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+A[h.XRANGEIDENTIFIERLOOSE]+")"+"(?:"+A[h.PRERELEASELOOSE]+")?"+A[h.BUILD]+"?"+")?)?";tok("XRANGE");A[h.XRANGE]="^"+A[h.GTLT]+"\\s*"+A[h.XRANGEPLAIN]+"$";tok("XRANGELOOSE");A[h.XRANGELOOSE]="^"+A[h.GTLT]+"\\s*"+A[h.XRANGEPLAINLOOSE]+"$";tok("COERCE");A[h.COERCE]="(^|[^\\d])"+"(\\d{1,"+l+"})"+"(?:\\.(\\d{1,"+l+"}))?"+"(?:\\.(\\d{1,"+l+"}))?"+"(?:$|[^\\d])";tok("COERCERTL");d[h.COERCERTL]=new RegExp(A[h.COERCE],"g");p[h.COERCERTL]=new RegExp(makeSafeRe(A[h.COERCE]),"g");tok("LONETILDE");A[h.LONETILDE]="(?:~>?)";tok("TILDETRIM");A[h.TILDETRIM]="(\\s*)"+A[h.LONETILDE]+"\\s+";d[h.TILDETRIM]=new RegExp(A[h.TILDETRIM],"g");p[h.TILDETRIM]=new RegExp(makeSafeRe(A[h.TILDETRIM]),"g");var C="$1~";tok("TILDE");A[h.TILDE]="^"+A[h.LONETILDE]+A[h.XRANGEPLAIN]+"$";tok("TILDELOOSE");A[h.TILDELOOSE]="^"+A[h.LONETILDE]+A[h.XRANGEPLAINLOOSE]+"$";tok("LONECARET");A[h.LONECARET]="(?:\\^)";tok("CARETTRIM");A[h.CARETTRIM]="(\\s*)"+A[h.LONECARET]+"\\s+";d[h.CARETTRIM]=new RegExp(A[h.CARETTRIM],"g");p[h.CARETTRIM]=new RegExp(makeSafeRe(A[h.CARETTRIM]),"g");var I="$1^";tok("CARET");A[h.CARET]="^"+A[h.LONECARET]+A[h.XRANGEPLAIN]+"$";tok("CARETLOOSE");A[h.CARETLOOSE]="^"+A[h.LONECARET]+A[h.XRANGEPLAINLOOSE]+"$";tok("COMPARATORLOOSE");A[h.COMPARATORLOOSE]="^"+A[h.GTLT]+"\\s*("+A[h.LOOSEPLAIN]+")$|^$";tok("COMPARATOR");A[h.COMPARATOR]="^"+A[h.GTLT]+"\\s*("+A[h.FULLPLAIN]+")$|^$";tok("COMPARATORTRIM");A[h.COMPARATORTRIM]="(\\s*)"+A[h.GTLT]+"\\s*("+A[h.LOOSEPLAIN]+"|"+A[h.XRANGEPLAIN]+")";d[h.COMPARATORTRIM]=new RegExp(A[h.COMPARATORTRIM],"g");p[h.COMPARATORTRIM]=new RegExp(makeSafeRe(A[h.COMPARATORTRIM]),"g");var w="$1$2$3";tok("HYLine truncated
|
||||
e.exports=function(e,t){if(typeof e!=="string"){throw new TypeError("expected path to be a string")}if(e==="\\"||e==="/")return"/";var r=e.length;if(r<=1)return e;var n="";if(r>4&&e[3]==="\\"){var i=e[2];if((i==="?"||i===".")&&e.slice(0,2)==="\\\\"){e=e.slice(2);n="//"}}var s=e.split(/[/\\]+/);if(t!==false&&s[s.length-1]===""){s.pop()}return n+s.join("/")}},26687:e=>{const t=Symbol("proc-log.meta");e.exports={META:t,output:{LEVELS:["standard","error","buffer","flush"],KEYS:{standard:"standard",error:"error",buffer:"buffer",flush:"flush"},standard:function(...e){return process.emit("output","standard",...e)},error:function(...e){return process.emit("output","error",...e)},buffer:function(...e){return process.emit("output","buffer",...e)},flush:function(...e){return process.emit("output","flush",...e)}},log:{LEVELS:["notice","error","warn","info","verbose","http","silly","timing","pause","resume"],KEYS:{notice:"notice",error:"error",warn:"warn",info:"info",verbose:"verbose",http:"http",silly:"silly",timing:"timing",pause:"pause",resume:"resume"},error:function(...e){return process.emit("log","error",...e)},notice:function(...e){return process.emit("log","notice",...e)},warn:function(...e){return process.emit("log","warn",...e)},info:function(...e){return process.emit("log","info",...e)},verbose:function(...e){return process.emit("log","verbose",...e)},http:function(...e){return process.emit("log","http",...e)},silly:function(...e){return process.emit("log","silly",...e)},timing:function(...e){return process.emit("log","timing",...e)},pause:function(){return process.emit("log","pause")},resume:function(){return process.emit("log","resume")}},time:{LEVELS:["start","end"],KEYS:{start:"start",end:"end"},start:function(e,t){process.emit("time","start",e);function end(){return process.emit("time","end",e)}if(typeof t==="function"){const e=t();if(e&&e.finally){return e.finally(end)}end();return e}return end},end:function(e){return process.emit("time","end",e)}},input:{LEVELS:["start","end","read"],KEYS:{start:"start",end:"end",read:"read"},start:function(...e){let t;if(typeof e[0]==="function"){t=e.shift()}process.emit("input","start",...e);function end(){return process.emit("input","end",...e)}if(typeof t==="function"){const e=t();if(e&&e.finally){return e.finally(end)}end();return e}return end},end:function(...e){return process.emit("input","end",...e)},read:function(...e){let t,r;const n=new Promise(((e,n)=>{t=e;r=n}));process.emit("input","read",t,r,...e);return n}}}},41564:e=>{if(typeof process==="undefined"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0){e.exports={nextTick:nextTick}}else{e.exports=process}function nextTick(e,t,r,n){if(typeof e!=="function"){throw new TypeError('"callback" argument must be a function')}var i=arguments.length;var s,o;switch(i){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick((function afterTickOne(){e.call(null,t)}));case 3:return process.nextTick((function afterTickTwo(){e.call(null,t,r)}));case 4:return process.nextTick((function afterTickThree(){e.call(null,t,r,n)}));default:s=new Array(i-1);o=0;while(o<s.length){s[o++]=arguments[o]}return process.nextTick((function afterTick(){e.apply(null,s)}))}}},7945:e=>{e.exports=global.process},90390:(e,t,r)=>{var n=r(14339);var i=r(8464);var s=Object.prototype.hasOwnProperty;function isRetryError(e){return e&&e.code==="EPROMISERETRY"&&s.call(e,"retried")}function promiseRetry(e,t){var r;var s;if(typeof e==="object"&&typeof t==="function"){r=t;t=e;e=r}s=i.operation(t);return new Promise((function(t,r){s.attempt((function(i){Promise.resolve().then((function(){return e((function(e){if(isRetryError(e)){e=e.retried}throw n(new Error("Retrying"),"EPROMISERETRY",{retried:e})}),i)})).then(t,(function(e){if(isRetryError(e)){e=e.retried;if(s.retry(e||new Error)){return}}r(e)}))}))}))}e.exports=promiseRetry},8464:(e,t,r)=>{e.exports=r(32462)},32462:(e,t,r)=>{var n=r(31440);t.operation=function(e){var r=t.timeouts(e);return new n(r,{forever:e&&e.forever,unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})};t.timeouts=function(e){if(e instanceof Array){return[].concat(e)}var t={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:Infinity,randomize:false};for(var r in e){t[r]=e[r]}if(t.minTimeout>t.maxTimeout){throw new Error("minTimeout is greater than maxTimeout")}var n=[];for(var i=0;i<t.retries;i++){n.push(this.createTimeout(i,t))}if(e&&e.forever&&!n.length){n.push(this.createTimeout(i,t))}n.sort((function(e,t){return e-t}));return n};t.createTimeout=function(e,t){var r=t.randomize?Math.random()+1:1;var n=Math.round(r*t.minTimeout*Math.pow(t.factor,e));n=Math.min(n,t.maxTimeout);return n};t.wrap=function(e,r,n){if(r instanceof Array){n=r;r=null}if(!n){n=[];for(var i in e){if(typeof e[i]==="function"){n.push(i)}}}for(var s=0;s<n.length;s++){var o=n[s];var a=e[o];e[o]=function retryWrapper(n){var i=t.operation(r);var s=Array.prototype.slice.call(arguLine truncated
|
||||
/*!
|
||||
* Tmp
|
||||
*
|
||||
* Copyright (c) 2011-2017 KARASZI Istvan <github@spam.raszi.hu>
|
||||
*
|
||||
* MIT Licensed
|
||||
*/
|
||||
const a=s(79896);const c=s(70857);const l=s(16928);const u=s(76982);const d={fs:a.constants,os:c.constants};const p="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",A=/XXXXXX/,h=3,g=(d.O_CREAT||d.fs.O_CREAT)|(d.O_EXCL||d.fs.O_EXCL)|(d.O_RDWR||d.fs.O_RDWR),y=c.platform()==="win32",b=d.EBADF||d.os.errno.EBADF,C=d.ENOENT||d.os.errno.ENOENT,I=448,w=384,B="exit",v=[],S=a.rmdirSync.bind(a);let Q=false;function rimraf(r,i){return a.rm(r,{recursive:true},i)}function FN_RIMRAF_SYNC(r){return a.rmSync(r,{recursive:true})}function tmpName(r,i){const s=_parseArguments(r,i),c=s[0],l=s[1];_assertAndSanitizeOptions(c,(function(r,i){if(r)return l(r);let s=i.tries;(function _getUniqueName(){try{const r=_generateTmpName(i);a.stat(r,(function(i){if(!i){if(s-- >0)return _getUniqueName();return l(new Error("Could not get a unique tmp filename, max tries reached "+r))}l(null,r)}))}catch(r){l(r)}})()}))}function tmpNameSync(r){const i=_parseArguments(r),s=i[0];const c=_assertAndSanitizeOptionsSync(s);let l=c.tries;do{const r=_generateTmpName(c);try{a.statSync(r)}catch(i){return r}}while(l-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function file(r,i){const s=_parseArguments(r,i),c=s[0],l=s[1];tmpName(c,(function _tmpNameCreated(r,i){if(r)return l(r);a.open(i,g,c.mode||w,(function _fileCreated(r,s){if(r)return l(r);if(c.discardDescriptor){return a.close(s,(function _discardCallback(r){return l(r,i,undefined,_prepareTmpFileRemoveCallback(i,-1,c,false))}))}else{const r=c.discardDescriptor||c.detachDescriptor;l(null,i,s,_prepareTmpFileRemoveCallback(i,r?-1:s,c,false))}}))}))}function fileSync(r){const i=_parseArguments(r),s=i[0];const c=s.discardDescriptor||s.detachDescriptor;const l=tmpNameSync(s);let u=a.openSync(l,g,s.mode||w);if(s.discardDescriptor){a.closeSync(u);u=undefined}return{name:l,fd:u,removeCallback:_prepareTmpFileRemoveCallback(l,c?-1:u,s,true)}}function dir(r,i){const s=_parseArguments(r,i),c=s[0],l=s[1];tmpName(c,(function _tmpNameCreated(r,i){if(r)return l(r);a.mkdir(i,c.mode||I,(function _dirCreated(r){if(r)return l(r);l(null,i,_prepareTmpDirRemoveCallback(i,c,false))}))}))}function dirSync(r){const i=_parseArguments(r),s=i[0];const c=tmpNameSync(s);a.mkdirSync(c,s.mode||I);return{name:c,removeCallback:_prepareTmpDirRemoveCallback(c,s,true)}}function _removeFileAsync(r,i){const _handler=function(r){if(r&&!_isENOENT(r)){return i(r)}i()};if(0<=r[0])a.close(r[0],(function(){a.unlink(r[1],_handler)}));else a.unlink(r[1],_handler)}function _removeFileSync(r){let i=null;try{if(0<=r[0])a.closeSync(r[0])}catch(r){if(!_isEBADF(r)&&!_isENOENT(r))throw r}finally{try{a.unlinkSync(r[1])}catch(r){if(!_isENOENT(r))i=r}}if(i!==null){throw i}}function _prepareTmpFileRemoveCallback(r,i,s,a){const c=_prepareRemoveCallback(_removeFileSync,[i,r],a);const l=_prepareRemoveCallback(_removeFileAsync,[i,r],a,c);if(!s.keep)v.unshift(c);return a?c:l}function _prepareTmpDirRemoveCallback(r,i,s){const c=i.unsafeCleanup?rimraf:a.rmdir.bind(a);const l=i.unsafeCleanup?FN_RIMRAF_SYNC:S;const u=_prepareRemoveCallback(l,r,s);const d=_prepareRemoveCallback(c,r,s,u);if(!i.keep)v.unshift(u);return s?u:d}function _prepareRemoveCallback(r,i,s,a){let c=false;return function _cleanupCallback(l){if(!c){const u=a||_cleanupCallback;const d=v.indexOf(u);if(d>=0)v.splice(d,1);c=true;if(s||r===S||r===FN_RIMRAF_SYNC){return r(i)}else{return r(i,l||function(){})}}}}function _garbageCollector(){if(!Q)return;while(v.length){try{v[0]()}catch(r){}}}function _randomChars(r){let i=[],s=null;try{s=u.randomBytes(r)}catch(i){s=u.pseudoRandomBytes(r)}for(let a=0;a<r;a++){i.push(p[s[a]%p.length])}return i.join("")}function _isUndefined(r){return typeof r==="undefined"}function _parseArguments(r,i){if(typeof r==="function"){return[{},r]}if(_isUndefined(r)){return[{},i]}const s={};for(const i of Object.getOwnPropertyNames(r)){s[i]=r[i]}return[s,i]}function _resolvePath(r,i,s){const c=l.isAbsolute(r)?r:l.join(i,r);a.stat(c,(function(r){if(r){a.realpath(l.dirname(c),(function(r,i){if(r)return s(r);s(null,l.join(i,l.basename(c)))}))}else{a.realpath(c,s)}}))}function _resolvePathSync(r,i){const s=l.isAbsolute(r)?r:l.join(i,r);try{a.statSync(s);return a.realpathSync(s)}catch(r){const i=a.realpathSync(l.dirname(s));return l.join(i,l.basename(s))}}function _generateTmpName(r){const i=r.tmpdir;if(!_isUndefined(r.name)){return l.join(i,r.dir,r.name)}if(!_isUndefined(r.template)){return l.join(i,r.dir,r.template).replace(A,_randomChars(6))}const s=[r.prefix?r.prefix:"tmp","-",process.pid,"-",_randomChars(12),r.postfix?"-"+r.postfix:""].join("");return l.join(i,r.dir,s)}function _assertOptionsBase(r){if(!_isUndefined(r.name)){const i=r.name;if(l.isAbsolute(i))throw new Error(`name option must not contain an absolute path, found "${i}".`);const s=l.basename(i);if(s===".."||s==="."||s!==i)throw new Error(`name option must not contain a path, found "${i}".`)}if(!_isUndefined(r.template)&&!r.template.match(A)){throw new Error(`Invalid templ
Line truncated
|
||||
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */;const escape=r=>r.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=r=>r.replace(/\r?\n|\r/g,"\r\n");const a=[];const c=new Uint8Array([13,10]);g=0;let l=false;for(const[i,u]of r){if(typeof u==="string"){const r=P.encode(s+`; name="${escape(normalizeLinefeeds(i))}"`+`\r\n\r\n${normalizeLinefeeds(u)}\r\n`);a.push(r);g+=r.byteLength}else{const r=P.encode(`${s}; name="${escape(normalizeLinefeeds(i))}"`+(u.name?`; filename="${escape(u.name)}"`:"")+"\r\n"+`Content-Type: ${u.type||"application/octet-stream"}\r\n\r\n`);a.push(r,u,c);if(typeof u.size==="number"){g+=r.byteLength+u.size+c.byteLength}else{l=true}}}const u=P.encode(`--${i}--`);a.push(u);g+=u.byteLength;if(l){g=null}h=r;A=async function*(){for(const r of a){if(r.stream){yield*r.stream()}else{yield r}}};y="multipart/form-data; boundary="+i}else if(u(r)){h=r;g=r.size;if(r.type){y=r.type}}else if(typeof r[Symbol.asyncIterator]==="function"){if(i){throw new TypeError("keepalive")}if(c.isDisturbed(r)||r.locked){throw new TypeError("Response body object should not be disturbed or locked")}a=r instanceof N?r:l(r)}if(typeof h==="string"||c.isBuffer(h)){g=Buffer.byteLength(h)}if(A!=null){let i;a=new N({async start(){i=A(r)[Symbol.asyncIterator]()},async pull(r){const{value:s,done:c}=await i.next();if(c){queueMicrotask((()=>{r.close()}))}else{if(!Q(a)){r.enqueue(new Uint8Array(s))}}return r.desiredSize>0},async cancel(r){await i.return()},type:undefined})}const b={stream:a,source:h,length:g};return[b,y]}function safelyExtractBody(r,i=false){if(!N){N=s(63774).ReadableStream}if(r instanceof N){S(!c.isDisturbed(r),"The body has already been consumed.");S(!r.locked,"The stream is locked.")}return extractBody(r,i)}function cloneBody(r){const[i,s]=r.stream.tee();const a=I(s,{transfer:[s]});const[,c]=a.tee();r.stream=i;return{stream:c,length:r.length,source:r.source}}async function*consumeBody(r){if(r){if(R(r)){yield r}else{const i=r.stream;if(c.isDisturbed(i)){throw new TypeError("The body has already been consumed.")}if(i.locked){throw new TypeError("The stream is locked.")}i[v]=true;yield*i}}}function throwIfAborted(r){if(r.aborted){throw new C("The operation was aborted.","AbortError")}}function bodyMixinMethods(r){const i={blob(){return specConsumeBody(this,(r=>{let i=bodyMimeType(this);if(i==="failure"){i=""}else if(i){i=x(i)}return new w([r],{type:i})}),r)},arrayBuffer(){return specConsumeBody(this,(r=>new Uint8Array(r).buffer),r)},text(){return specConsumeBody(this,utf8DecodeBytes,r)},json(){return specConsumeBody(this,parseJSONFromBytes,r)},async formData(){b.brandCheck(this,r);throwIfAborted(this[y]);const i=this.headers.get("Content-Type");if(/multipart\/form-data/.test(i)){const r={};for(const[i,s]of this.headers)r[i.toLowerCase()]=s;const i=new g;let s;try{s=new a({headers:r,preservePath:true})}catch(r){throw new C(`${r}`,"AbortError")}s.on("field",((r,s)=>{i.append(r,s)}));s.on("file",((r,s,a,c,l)=>{const u=[];if(c==="base64"||c.toLowerCase()==="base64"){let c="";s.on("data",(r=>{c+=r.toString().replace(/[\r\n]/gm,"");const i=c.length-c.length%4;u.push(Buffer.from(c.slice(0,i),"base64"));c=c.slice(i)}));s.on("end",(()=>{u.push(Buffer.from(c,"base64"));i.append(r,new O(u,a,{type:l}))}))}else{s.on("data",(r=>{u.push(r)}));s.on("end",(()=>{i.append(r,new O(u,a,{type:l}))}))}}));const c=new Promise(((r,i)=>{s.on("finish",r);s.on("error",(r=>i(new TypeError(r))))}));if(this.body!==null)for await(const r of consumeBody(this[y].body))s.write(r);s.end();await c;return i}else if(/application\/x-www-form-urlencoded/.test(i)){let r;try{let i="";const s=new TextDecoder("utf-8",{ignoreBOM:true});for await(const r of consumeBody(this[y].body)){if(!R(r)){throw new TypeError("Expected Uint8Array chunk")}i+=s.decode(r,{stream:true})}i+=s.decode();r=new URLSearchParams(i)}catch(r){throw Object.assign(new TypeError,{cause:r})}const i=new g;for(const[s,a]of r){i.append(s,a)}return i}else{await Promise.resolve();throwIfAborted(this[y]);throw b.errors.exception({header:`${r.name}.formData`,message:"Could not parse content as FormData."})}}};return i}function mixinBody(r){Object.assign(r.prototype,bodyMixinMethods(r))}async function specConsumeBody(r,i,s){b.brandCheck(r,s);throwIfAborted(r[y]);if(bodyUnusable(r[y].body)){throw new TypeError("Body is unusable")}const a=A();const errorSteps=r=>a.reject(r);const successSteps=r=>{try{a.resolve(i(r))}catch(r){errorSteps(r)}};if(r[y].body==null){successSteps(new Uint8Array);return a.promise}await h(r[y].body,successSteps,errorSteps);return a.promise}function bodyUnusable(r){return r!=null&&(r.stream.locked||c.isDisturbed(r.stream))}function utf8DecodeBytes(r){if(r.length===0){return""}if(r[0]===239&&r[1]===187&&r[2]===191){r=r.subarray(3)}const i=L.decode(r);return i}function parseJSONFromBytes(r){return JSON.parse(utf8DecodeBytes(r))}function bodyMimeType(r){const{headersList:i}=r[y];const s=i.get("contentLine truncated
|
||||
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */l[c-4]=this.maskKey[0];l[c-3]=this.maskKey[1];l[c-2]=this.maskKey[2];l[c-1]=this.maskKey[3];l[1]=s;if(s===126){l.writeUInt16BE(i,2)}else if(s===127){l[2]=l[3]=0;l.writeUIntBE(i,4,6)}l[1]|=128;for(let r=0;r<i;r++){l[c+r]=this.frameData[r]^this.maskKey[r%4]}return l}}r.exports={WebsocketFrameSend:WebsocketFrameSend}},43171:(r,i,s)=>{const{Writable:a}=s(2203);const c=s(31637);const{parserStates:l,opcodes:u,states:d,emptyBuffer:p}=s(45913);const{kReadyState:A,kSentClose:h,kResponse:g,kReceivedClose:y}=s(62933);const{isValidStatusCode:b,failWebsocketConnection:C,websocketMessageReceived:I}=s(3574);const{WebsocketFrameSend:w}=s(31237);const B={};B.ping=c.channel("undici:websocket:ping");B.pong=c.channel("undici:websocket:pong");class ByteParser extends a{#K=[];#X=0;#b=l.INFO;#ee={};#te=[];constructor(r){super();this.ws=r}_write(r,i,s){this.#K.push(r);this.#X+=r.length;this.run(s)}run(r){while(true){if(this.#b===l.INFO){if(this.#X<2){return r()}const i=this.consume(2);this.#ee.fin=(i[0]&128)!==0;this.#ee.opcode=i[0]&15;this.#ee.originalOpcode??=this.#ee.opcode;this.#ee.fragmented=!this.#ee.fin&&this.#ee.opcode!==u.CONTINUATION;if(this.#ee.fragmented&&this.#ee.opcode!==u.BINARY&&this.#ee.opcode!==u.TEXT){C(this.ws,"Invalid frame type was fragmented.");return}const s=i[1]&127;if(s<=125){this.#ee.payloadLength=s;this.#b=l.READ_DATA}else if(s===126){this.#b=l.PAYLOADLENGTH_16}else if(s===127){this.#b=l.PAYLOADLENGTH_64}if(this.#ee.fragmented&&s>125){C(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#ee.opcode===u.PING||this.#ee.opcode===u.PONG||this.#ee.opcode===u.CLOSE)&&s>125){C(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#ee.opcode===u.CLOSE){if(s===1){C(this.ws,"Received close frame with a 1-byte body.");return}const r=this.consume(s);this.#ee.closeInfo=this.parseCloseBody(false,r);if(!this.ws[h]){const r=Buffer.allocUnsafe(2);r.writeUInt16BE(this.#ee.closeInfo.code,0);const i=new w(r);this.ws[g].socket.write(i.createFrame(u.CLOSE),(r=>{if(!r){this.ws[h]=true}}))}this.ws[A]=d.CLOSING;this.ws[y]=true;this.end();return}else if(this.#ee.opcode===u.PING){const i=this.consume(s);if(!this.ws[y]){const r=new w(i);this.ws[g].socket.write(r.createFrame(u.PONG));if(B.ping.hasSubscribers){B.ping.publish({payload:i})}}this.#b=l.INFO;if(this.#X>0){continue}else{r();return}}else if(this.#ee.opcode===u.PONG){const i=this.consume(s);if(B.pong.hasSubscribers){B.pong.publish({payload:i})}if(this.#X>0){continue}else{r();return}}}else if(this.#b===l.PAYLOADLENGTH_16){if(this.#X<2){return r()}const i=this.consume(2);this.#ee.payloadLength=i.readUInt16BE(0);this.#b=l.READ_DATA}else if(this.#b===l.PAYLOADLENGTH_64){if(this.#X<8){return r()}const i=this.consume(8);const s=i.readUInt32BE(0);if(s>2**31-1){C(this.ws,"Received payload length > 2^31 bytes.");return}const a=i.readUInt32BE(4);this.#ee.payloadLength=(s<<8)+a;this.#b=l.READ_DATA}else if(this.#b===l.READ_DATA){if(this.#X<this.#ee.payloadLength){return r()}else if(this.#X>=this.#ee.payloadLength){const r=this.consume(this.#ee.payloadLength);this.#te.push(r);if(!this.#ee.fragmented||this.#ee.fin&&this.#ee.opcode===u.CONTINUATION){const r=Buffer.concat(this.#te);I(this.ws,this.#ee.originalOpcode,r);this.#ee={};this.#te.length=0}this.#b=l.INFO}}if(this.#X>0){continue}else{r();break}}}consume(r){if(r>this.#X){return null}else if(r===0){return p}if(this.#K[0].length===r){this.#X-=this.#K[0].length;return this.#K.shift()}const i=Buffer.allocUnsafe(r);let s=0;while(s!==r){const a=this.#K[0];const{length:c}=a;if(c+s===r){i.set(this.#K.shift(),s);break}else if(c+s>r){i.set(a.subarray(0,r-s),s);this.#K[0]=a.subarray(r-s);break}else{i.set(this.#K.shift(),s);s+=a.length}}this.#X-=r;return i}parseCloseBody(r,i){let s;if(i.length>=2){s=i.readUInt16BE(0)}if(r){if(!b(s)){return null}return{code:s}}let a=i.subarray(2);if(a[0]===239&&a[1]===187&&a[2]===191){a=a.subarray(3)}if(s!==undefined&&!b(s)){return null}try{a=new TextDecoder("utf-8",{fatal:true}).decode(a)}catch{return null}return{code:s,reason:a}}get closingInfo(){return this.#ee.closeInfo}}r.exports={ByteParser:ByteParser}},62933:r=>{r.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},3574:(r,i,s)=>{const{kReadyState:a,kController:c,kResponse:l,kBinaryType:u,kWebSocketURL:d}=s(62933);const{states:p,opcodes:A}=s(45913);const{MessageEvent:h,ErrorEvent:g}=s(46255);function isEstablished(r){return r[a]===p.OPEN}function isClosing(r){return r[a]===p.CLOSING}function isClosed(r){return r[a]===p.CLOSED}function fireEvent(r,i,s=Event,a){const c=new s(r,a);i.dispatchEvent(c)}function websocketMessageReceived(r,i,s){if(r[a]!==p.OPEN){return}let c;if(i===A.TEXT){try{c=new TextDecoder("utf-8",{fatal:true}).decLine truncated
|
||||
*/const i=r(79896);const s=r(70857);const o=r(16928);const a=r(76982);const c={fs:i.constants,os:s.constants};const l="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",u=/XXXXXX/,d=3,h=(c.O_CREAT||c.fs.O_CREAT)|(c.O_EXCL||c.fs.O_EXCL)|(c.O_RDWR||c.fs.O_RDWR),f=s.platform()==="win32",p=c.EBADF||c.os.errno.EBADF,g=c.ENOENT||c.os.errno.ENOENT,A=448,y=384,b="exit",w=[],C=i.rmdirSync.bind(i);let S=false;function rimraf(e,t){return i.rm(e,{recursive:true},t)}function FN_RIMRAF_SYNC(e){return i.rmSync(e,{recursive:true})}function tmpName(e,t){const r=_parseArguments(e,t),n=r[0],s=r[1];_assertAndSanitizeOptions(n,(function(e,t){if(e)return s(e);let r=t.tries;(function _getUniqueName(){try{const e=_generateTmpName(t);i.stat(e,(function(t){if(!t){if(r-- >0)return _getUniqueName();return s(new Error("Could not get a unique tmp filename, max tries reached "+e))}s(null,e)}))}catch(e){s(e)}})()}))}function tmpNameSync(e){const t=_parseArguments(e),r=t[0];const n=_assertAndSanitizeOptionsSync(r);let s=n.tries;do{const e=_generateTmpName(n);try{i.statSync(e)}catch(t){return e}}while(s-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function file(e,t){const r=_parseArguments(e,t),n=r[0],s=r[1];tmpName(n,(function _tmpNameCreated(e,t){if(e)return s(e);i.open(t,h,n.mode||y,(function _fileCreated(e,r){if(e)return s(e);if(n.discardDescriptor){return i.close(r,(function _discardCallback(e){return s(e,t,undefined,_prepareTmpFileRemoveCallback(t,-1,n,false))}))}else{const e=n.discardDescriptor||n.detachDescriptor;s(null,t,r,_prepareTmpFileRemoveCallback(t,e?-1:r,n,false))}}))}))}function fileSync(e){const t=_parseArguments(e),r=t[0];const n=r.discardDescriptor||r.detachDescriptor;const s=tmpNameSync(r);let o=i.openSync(s,h,r.mode||y);if(r.discardDescriptor){i.closeSync(o);o=undefined}return{name:s,fd:o,removeCallback:_prepareTmpFileRemoveCallback(s,n?-1:o,r,true)}}function dir(e,t){const r=_parseArguments(e,t),n=r[0],s=r[1];tmpName(n,(function _tmpNameCreated(e,t){if(e)return s(e);i.mkdir(t,n.mode||A,(function _dirCreated(e){if(e)return s(e);s(null,t,_prepareTmpDirRemoveCallback(t,n,false))}))}))}function dirSync(e){const t=_parseArguments(e),r=t[0];const n=tmpNameSync(r);i.mkdirSync(n,r.mode||A);return{name:n,removeCallback:_prepareTmpDirRemoveCallback(n,r,true)}}function _removeFileAsync(e,t){const _handler=function(e){if(e&&!_isENOENT(e)){return t(e)}t()};if(0<=e[0])i.close(e[0],(function(){i.unlink(e[1],_handler)}));else i.unlink(e[1],_handler)}function _removeFileSync(e){let t=null;try{if(0<=e[0])i.closeSync(e[0])}catch(e){if(!_isEBADF(e)&&!_isENOENT(e))throw e}finally{try{i.unlinkSync(e[1])}catch(e){if(!_isENOENT(e))t=e}}if(t!==null){throw t}}function _prepareTmpFileRemoveCallback(e,t,r,n){const i=_prepareRemoveCallback(_removeFileSync,[t,e],n);const s=_prepareRemoveCallback(_removeFileAsync,[t,e],n,i);if(!r.keep)w.unshift(i);return n?i:s}function _prepareTmpDirRemoveCallback(e,t,r){const n=t.unsafeCleanup?rimraf:i.rmdir.bind(i);const s=t.unsafeCleanup?FN_RIMRAF_SYNC:C;const o=_prepareRemoveCallback(s,e,r);const a=_prepareRemoveCallback(n,e,r,o);if(!t.keep)w.unshift(o);return r?o:a}function _prepareRemoveCallback(e,t,r,n){let i=false;return function _cleanupCallback(s){if(!i){const o=n||_cleanupCallback;const a=w.indexOf(o);if(a>=0)w.splice(a,1);i=true;if(r||e===C||e===FN_RIMRAF_SYNC){return e(t)}else{return e(t,s||function(){})}}}}function _garbageCollector(){if(!S)return;while(w.length){try{w[0]()}catch(e){}}}function _randomChars(e){let t=[],r=null;try{r=a.randomBytes(e)}catch(t){r=a.pseudoRandomBytes(e)}for(let n=0;n<e;n++){t.push(l[r[n]%l.length])}return t.join("")}function _isUndefined(e){return typeof e==="undefined"}function _parseArguments(e,t){if(typeof e==="function"){return[{},e]}if(_isUndefined(e)){return[{},t]}const r={};for(const t of Object.getOwnPropertyNames(e)){r[t]=e[t]}return[r,t]}function _resolvePath(e,t,r){const n=o.isAbsolute(e)?e:o.join(t,e);i.stat(n,(function(e){if(e){i.realpath(o.dirname(n),(function(e,t){if(e)return r(e);r(null,o.join(t,o.basename(n)))}))}else{i.realpath(n,r)}}))}function _resolvePathSync(e,t){const r=o.isAbsolute(e)?e:o.join(t,e);try{i.statSync(r);return i.realpathSync(r)}catch(e){const t=i.realpathSync(o.dirname(r));return o.join(t,o.basename(r))}}function _generateTmpName(e){const t=e.tmpdir;if(!_isUndefined(e.name)){return o.join(t,e.dir,e.name)}if(!_isUndefined(e.template)){return o.join(t,e.dir,e.template).replace(u,_randomChars(6))}const r=[e.prefix?e.prefix:"tmp","-",process.pid,"-",_randomChars(12),e.postfix?"-"+e.postfix:""].join("");return o.join(t,e.dir,r)}function _assertOptionsBase(e){if(!_isUndefined(e.name)){const t=e.name;if(o.isAbsolute(t))throw new Error(`name option must not contain an absolute path, found "${t}".`);const r=o.basename(t);if(r===".."||r==="."||r!==t)throw new Error(`name option must not contain a path, found "${t}".`)}if(!_isUndefined(e.template)&&!e.template.match(u)){throw new Error(`Invalid teLine truncated
|
||||
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */;const escape=e=>e.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=e=>e.replace(/\r?\n|\r/g,"\r\n");const n=[];const i=new Uint8Array([13,10]);u=0;let s=false;for(const[t,o]of e){if(typeof o==="string"){const e=v.encode(r+`; name="${escape(normalizeLinefeeds(t))}"`+`\r\n\r\n${normalizeLinefeeds(o)}\r\n`);n.push(e);u+=e.byteLength}else{const e=v.encode(`${r}; name="${escape(normalizeLinefeeds(t))}"`+(o.name?`; filename="${escape(o.name)}"`:"")+"\r\n"+`Content-Type: ${o.type||"application/octet-stream"}\r\n\r\n`);n.push(e,o,i);if(typeof o.size==="number"){u+=e.byteLength+o.size+i.byteLength}else{s=true}}}const o=v.encode(`--${t}--\r\n`);n.push(o);u+=o.byteLength;if(s){u=null}l=e;c=async function*(){for(const e of n){if(e.stream){yield*e.stream()}else{yield e}}};d=`multipart/form-data; boundary=${t}`}else if(s(e)){l=e;u=e.size;if(e.type){d=e.type}}else if(typeof e[Symbol.asyncIterator]==="function"){if(t){throw new TypeError("keepalive")}if(n.isDisturbed(e)||e.locked){throw new TypeError("Response body object should not be disturbed or locked")}r=e instanceof ReadableStream?e:i(e)}if(typeof l==="string"||n.isBuffer(l)){u=Buffer.byteLength(l)}if(c!=null){let t;r=new ReadableStream({async start(){t=c(e)[Symbol.asyncIterator]()},async pull(e){const{value:n,done:i}=await t.next();if(i){queueMicrotask((()=>{e.close();e.byobRequest?.respond(0)}))}else{if(!y(r)){const t=new Uint8Array(n);if(t.byteLength){e.enqueue(t)}}}return e.desiredSize>0},async cancel(e){await t.return()},type:"bytes"})}const h={stream:r,source:l,length:u};return[h,d]}function safelyExtractBody(e,t=false){if(e instanceof ReadableStream){A(!n.isDisturbed(e),"The body has already been consumed.");A(!e.locked,"The stream is locked.")}return extractBody(e,t)}function cloneBody(e,t){const[r,n]=t.stream.tee();t.stream=r;return{stream:n,length:t.length,source:t.source}}function throwIfAborted(e){if(e.aborted){throw new DOMException("The operation was aborted.","AbortError")}}function bodyMixinMethods(e){const t={blob(){return consumeBody(this,(e=>{let t=bodyMimeType(this);if(t===null){t=""}else if(t){t=C(t)}return new g([e],{type:t})}),e)},arrayBuffer(){return consumeBody(this,(e=>new Uint8Array(e).buffer),e)},text(){return consumeBody(this,d,e)},json(){return consumeBody(this,parseJSONFromBytes,e)},formData(){return consumeBody(this,(e=>{const t=bodyMimeType(this);if(t!==null){switch(t.essence){case"multipart/form-data":{const r=S(e,t);if(r==="failure"){throw new TypeError("Failed to parse body as FormData.")}const n=new h;n[f]=r;return n}case"application/x-www-form-urlencoded":{const t=new URLSearchParams(e.toString());const r=new h;for(const[e,n]of t){r.append(e,n)}return r}}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')}),e)},bytes(){return consumeBody(this,(e=>new Uint8Array(e)),e)}};return t}function mixinBody(e){Object.assign(e.prototype,bodyMixinMethods(e))}async function consumeBody(e,t,r){p.brandCheck(e,r);if(bodyUnusable(e)){throw new TypeError("Body is unusable: Body has already been read")}throwIfAborted(e[f]);const n=c();const errorSteps=e=>n.reject(e);const successSteps=e=>{try{n.resolve(t(e))}catch(e){errorSteps(e)}};if(e[f].body==null){successSteps(Buffer.allocUnsafe(0));return n.promise}await l(e[f].body,successSteps,errorSteps);return n.promise}function bodyUnusable(e){const t=e[f].body;return t!=null&&(t.stream.locked||n.isDisturbed(t.stream))}function parseJSONFromBytes(e){return JSON.parse(d(e))}function bodyMimeType(e){const t=e[f].headersList;const r=u(t);if(r==="failure"){return null}return r}e.exports={extractBody:extractBody,safelyExtractBody:safelyExtractBody,cloneBody:cloneBody,mixinBody:mixinBody,streamRegistry:_,hasFinalizationRegistry:B,bodyUnusable:bodyUnusable}},4495:e=>{const t=["GET","HEAD","POST"];const r=new Set(t);const n=[101,204,205,304];const i=[301,302,303,307,308];const s=new Set(i);const o=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","4190","5060","5061","6000","6566","6665","6666","6667","6668","6669","6679","6697","10080"];const a=new Set(o);const c=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"];const l=new Set(c);const u=["follow","manual","error"];const d=["GET","HEAD","OPTIONS","TRACE"];const h=new Set(d);const f=["navigate","same-origin","no-cors","cors"];const p=["omit","same-origin","include"];const g=["default","no-store","reload","no-cache","force-cLine truncated
|
||||
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */a[o-4]=r[0];a[o-3]=r[1];a[o-2]=r[2];a[o-1]=r[3];a[1]=s;if(s===126){a.writeUInt16BE(i,2)}else if(s===127){a[2]=a[3]=0;a.writeUIntBE(i,4,6)}a[1]|=128;for(let e=0;e<i;++e){a[o+e]=t[e]^r[e&3]}return a}}e.exports={WebsocketFrameSend:WebsocketFrameSend}},19469:(e,t,r)=>{const{createInflateRaw:n,Z_DEFAULT_WINDOWBITS:i}=r(38522);const{isValidClientWindowBits:s}=r(98625);const o=Buffer.from([0,0,255,255]);const a=Symbol("kBuffer");const c=Symbol("kLength");class PerMessageDeflate{#ce;#e={};constructor(e){this.#e.serverNoContextTakeover=e.has("server_no_context_takeover");this.#e.serverMaxWindowBits=e.get("server_max_window_bits")}decompress(e,t,r){if(!this.#ce){let e=i;if(this.#e.serverMaxWindowBits){if(!s(this.#e.serverMaxWindowBits)){r(new Error("Invalid server_max_window_bits"));return}e=Number.parseInt(this.#e.serverMaxWindowBits)}this.#ce=n({windowBits:e});this.#ce[a]=[];this.#ce[c]=0;this.#ce.on("data",(e=>{this.#ce[a].push(e);this.#ce[c]+=e.length}));this.#ce.on("error",(e=>{this.#ce=null;r(e)}))}this.#ce.write(e);if(t){this.#ce.write(o)}this.#ce.flush((()=>{const e=Buffer.concat(this.#ce[a],this.#ce[c]);this.#ce[a].length=0;this.#ce[c]=0;r(null,e)}))}}e.exports={PerMessageDeflate:PerMessageDeflate}},81652:(e,t,r)=>{const{Writable:n}=r(57075);const i=r(34589);const{parserStates:s,opcodes:o,states:a,emptyBuffer:c,sentCloseFrameState:l}=r(20736);const{kReadyState:u,kSentClose:d,kResponse:h,kReceivedClose:f}=r(61216);const{channels:p}=r(42414);const{isValidStatusCode:g,isValidOpcode:A,failWebsocketConnection:y,websocketMessageReceived:b,utf8Decode:w,isControlFrame:C,isTextBinaryFrame:S,isContinuationFrame:I}=r(98625);const{WebsocketFrameSend:v}=r(3264);const{closeWebSocketConnection:B}=r(86897);const{PerMessageDeflate:_}=r(19469);class ByteParser extends n{#le=[];#ue=0;#de=false;#D=s.INFO;#he={};#fe=[];#pe;constructor(e,t){super();this.ws=e;this.#pe=t==null?new Map:t;if(this.#pe.has("permessage-deflate")){this.#pe.set("permessage-deflate",new _(t))}}_write(e,t,r){this.#le.push(e);this.#ue+=e.length;this.#de=true;this.run(r)}run(e){while(this.#de){if(this.#D===s.INFO){if(this.#ue<2){return e()}const t=this.consume(2);const r=(t[0]&128)!==0;const n=t[0]&15;const i=(t[1]&128)===128;const a=!r&&n!==o.CONTINUATION;const c=t[1]&127;const l=t[0]&64;const u=t[0]&32;const d=t[0]&16;if(!A(n)){y(this.ws,"Invalid opcode received");return e()}if(i){y(this.ws,"Frame cannot be masked");return e()}if(l!==0&&!this.#pe.has("permessage-deflate")){y(this.ws,"Expected RSV1 to be clear.");return}if(u!==0||d!==0){y(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(a&&!S(n)){y(this.ws,"Invalid frame type was fragmented.");return}if(S(n)&&this.#fe.length>0){y(this.ws,"Expected continuation frame");return}if(this.#he.fragmented&&a){y(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((c>125||a)&&C(n)){y(this.ws,"Control frame either too large or fragmented");return}if(I(n)&&this.#fe.length===0&&!this.#he.compressed){y(this.ws,"Unexpected continuation frame");return}if(c<=125){this.#he.payloadLength=c;this.#D=s.READ_DATA}else if(c===126){this.#D=s.PAYLOADLENGTH_16}else if(c===127){this.#D=s.PAYLOADLENGTH_64}if(S(n)){this.#he.binaryType=n;this.#he.compressed=l!==0}this.#he.opcode=n;this.#he.masked=i;this.#he.fin=r;this.#he.fragmented=a}else if(this.#D===s.PAYLOADLENGTH_16){if(this.#ue<2){return e()}const t=this.consume(2);this.#he.payloadLength=t.readUInt16BE(0);this.#D=s.READ_DATA}else if(this.#D===s.PAYLOADLENGTH_64){if(this.#ue<8){return e()}const t=this.consume(8);const r=t.readUInt32BE(0);if(r>2**31-1){y(this.ws,"Received payload length > 2^31 bytes.");return}const n=t.readUInt32BE(4);this.#he.payloadLength=(r<<8)+n;this.#D=s.READ_DATA}else if(this.#D===s.READ_DATA){if(this.#ue<this.#he.payloadLength){return e()}const t=this.consume(this.#he.payloadLength);if(C(this.#he.opcode)){this.#de=this.parseControlFrame(t);this.#D=s.INFO}else{if(!this.#he.compressed){this.#fe.push(t);if(!this.#he.fragmented&&this.#he.fin){const e=Buffer.concat(this.#fe);b(this.ws,this.#he.binaryType,e);this.#fe.length=0}this.#D=s.INFO}else{this.#pe.get("permessage-deflate").decompress(t,this.#he.fin,((t,r)=>{if(t){B(this.ws,1007,t.message,t.message.length);return}this.#fe.push(r);if(!this.#he.fin){this.#D=s.INFO;this.#de=true;this.run(e);return}b(this.ws,this.#he.binaryType,Buffer.concat(this.#fe));this.#de=true;this.#D=s.INFO;this.#fe.length=0;this.run(e)}));this.#de=false;break}}}}}consume(e){if(e>this.#ue){throw new Error("Called consume() before buffers satiated.")}else if(e===0){return c}if(this.#le[0].length===e){this.#ue-=this.#le[0].length;return this.#le.shift()}const t=Buffer.allocUnsafe(e);let r=0;while(r!==e){const n=this.#le[0];const{length:i}=n;if(i+r===e){t.set(this.#le.shift(),r);break}else if(i+r>e){t.set(n.subarray(0,e-r),r);this.#le[0]=n.subarray(e-r);break}else{t.set(this.#le.shift(),r);r+=n.length}}this.#ue-=e;return t}parseCloseBody(e){i(e.length!==1);let t;if(e.lengtLine truncated
|
||||
/**
|
||||
* ZipStream
|
||||
*
|
||||
@@ -136,5 +112,12 @@ const a=s(79896);const c=s(70857);const l=s(16928);const u=s(76982);const d={fs:
|
||||
* @license [MIT]{@link https://github.com/archiverjs/node-zip-stream/blob/master/LICENSE}
|
||||
* @copyright (c) 2014 Chris Talkington, contributors.
|
||||
*/
|
||||
var a=s(39023).inherits;var c=s(47544).ZipArchiveOutputStream;var l=s(47544).ZipArchiveEntry;var u=s(53296);var d=r.exports=function(r){if(!(this instanceof d)){return new d(r)}r=this.options=r||{};r.zlib=r.zlib||{};c.call(this,r);if(typeof r.level==="number"&&r.level>=0){r.zlib.level=r.level;delete r.level}if(!r.forceZip64&&typeof r.zlib.level==="number"&&r.zlib.level===0){r.store=true}r.namePrependSlash=r.namePrependSlash||false;if(r.comment&&r.comment.length>0){this.setComment(r.comment)}};a(d,c);d.prototype._normalizeFileData=function(r){r=u.defaults(r,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var i=r.type==="directory";var s=r.type==="symlink";if(r.name){r.name=u.sanitizePath(r.name);if(!s&&r.name.slice(-1)==="/"){i=true;r.type="directory"}else if(i){r.name+="/"}}if(i||s){r.store=true}r.date=u.dateify(r.date);return r};d.prototype.entry=function(r,i,s){if(typeof s!=="function"){s=this._emitErrorCallback.bind(this)}i=this._normalizeFileData(i);if(i.type!=="file"&&i.type!=="directory"&&i.type!=="symlink"){s(new Error(i.type+" entries not currently supported"));return}if(typeof i.name!=="string"||i.name.length===0){s(new Error("entry name must be a non-empty string value"));return}if(i.type==="symlink"&&typeof i.linkname!=="string"){s(new Error("entry linkname must be a non-empty string value when type equals symlink"));return}var a=new l(i.name);a.setTime(i.date,this.options.forceLocalTime);if(i.namePrependSlash){a.setName(i.name,true)}if(i.store){a.setMethod(0)}if(i.comment.length>0){a.setComment(i.comment)}if(i.type==="symlink"&&typeof i.mode!=="number"){i.mode=40960}if(typeof i.mode==="number"){if(i.type==="symlink"){i.mode|=40960}a.setUnixMode(i.mode)}if(i.type==="symlink"&&typeof i.linkname==="string"){r=Buffer.from(i.linkname)}return c.prototype.entry.call(this,a,r,s)};d.prototype.finalize=function(){this.finish()}},42613:i=>{i.exports=r(import.meta.url)("assert")},90290:i=>{i.exports=r(import.meta.url)("async_hooks")},20181:i=>{i.exports=r(import.meta.url)("buffer")},35317:i=>{i.exports=r(import.meta.url)("child_process")},64236:i=>{i.exports=r(import.meta.url)("console")},49140:i=>{i.exports=r(import.meta.url)("constants")},76982:i=>{i.exports=r(import.meta.url)("crypto")},31637:i=>{i.exports=r(import.meta.url)("diagnostics_channel")},72250:i=>{i.exports=r(import.meta.url)("dns")},24434:i=>{i.exports=r(import.meta.url)("events")},79896:i=>{i.exports=r(import.meta.url)("fs")},91943:i=>{i.exports=r(import.meta.url)("fs/promises")},58611:i=>{i.exports=r(import.meta.url)("http")},85675:i=>{i.exports=r(import.meta.url)("http2")},65692:i=>{i.exports=r(import.meta.url)("https")},69278:i=>{i.exports=r(import.meta.url)("net")},34589:i=>{i.exports=r(import.meta.url)("node:assert")},16698:i=>{i.exports=r(import.meta.url)("node:async_hooks")},4573:i=>{i.exports=r(import.meta.url)("node:buffer")},37540:i=>{i.exports=r(import.meta.url)("node:console")},77598:i=>{i.exports=r(import.meta.url)("node:crypto")},53053:i=>{i.exports=r(import.meta.url)("node:diagnostics_channel")},40610:i=>{i.exports=r(import.meta.url)("node:dns")},78474:i=>{i.exports=r(import.meta.url)("node:events")},73024:i=>{i.exports=r(import.meta.url)("node:fs")},51455:i=>{i.exports=r(import.meta.url)("node:fs/promises")},37067:i=>{i.exports=r(import.meta.url)("node:http")},32467:i=>{i.exports=r(import.meta.url)("node:http2")},77030:i=>{i.exports=r(import.meta.url)("node:net")},76760:i=>{i.exports=r(import.meta.url)("node:path")},643:i=>{i.exports=r(import.meta.url)("node:perf_hooks")},41792:i=>{i.exports=r(import.meta.url)("node:querystring")},57075:i=>{i.exports=r(import.meta.url)("node:stream")},46193:i=>{i.exports=r(import.meta.url)("node:string_decoder")},41692:i=>{i.exports=r(import.meta.url)("node:tls")},73136:i=>{i.exports=r(import.meta.url)("node:url")},57975:i=>{i.exports=r(import.meta.url)("node:util")},73429:i=>{i.exports=r(import.meta.url)("node:util/types")},75919:i=>{i.exports=r(import.meta.url)("node:worker_threads")},38522:i=>{i.exports=r(import.meta.url)("node:zlib")},70857:i=>{i.exports=r(import.meta.url)("os")},16928:i=>{i.exports=r(import.meta.url)("path")},82987:i=>{i.exports=r(import.meta.url)("perf_hooks")},24876:i=>{i.exports=r(import.meta.url)("punycode")},83480:i=>{i.exports=r(import.meta.url)("querystring")},2203:i=>{i.exports=r(import.meta.url)("stream")},63774:i=>{i.exports=r(import.meta.url)("stream/web")},13193:i=>{i.exports=r(import.meta.url)("string_decoder")},53557:i=>{i.exports=r(import.meta.url)("timers")},16460:i=>{i.exports=r(import.meta.url)("timers/promises")},64756:i=>{i.exports=r(import.meta.url)("tls")},52018:i=>{i.exports=r(import.meta.url)("tty")},87016:i=>{i.exports=r(import.meta.url)("url")},39023:i=>{i.exports=r(import.meta.url)("util")},98253:i=>{i.exports=r(import.meta.url)("util/types")},28167:i=>{i.exports=r(import.meta.url)("worker_threads")},43106:i=>{i.exports=r(import.meta.url)("zlib")},756Line truncated
|
||||
var n=r(39023).inherits;var i=r(47544).ZipArchiveOutputStream;var s=r(47544).ZipArchiveEntry;var o=r(53296);var a=e.exports=function(e){if(!(this instanceof a)){return new a(e)}e=this.options=e||{};e.zlib=e.zlib||{};i.call(this,e);if(typeof e.level==="number"&&e.level>=0){e.zlib.level=e.level;delete e.level}if(!e.forceZip64&&typeof e.zlib.level==="number"&&e.zlib.level===0){e.store=true}e.namePrependSlash=e.namePrependSlash||false;if(e.comment&&e.comment.length>0){this.setComment(e.comment)}};n(a,i);a.prototype._normalizeFileData=function(e){e=o.defaults(e,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var t=e.type==="directory";var r=e.type==="symlink";if(e.name){e.name=o.sanitizePath(e.name);if(!r&&e.name.slice(-1)==="/"){t=true;e.type="directory"}else if(t){e.name+="/"}}if(t||r){e.store=true}e.date=o.dateify(e.date);return e};a.prototype.entry=function(e,t,r){if(typeof r!=="function"){r=this._emitErrorCallback.bind(this)}t=this._normalizeFileData(t);if(t.type!=="file"&&t.type!=="directory"&&t.type!=="symlink"){r(new Error(t.type+" entries not currently supported"));return}if(typeof t.name!=="string"||t.name.length===0){r(new Error("entry name must be a non-empty string value"));return}if(t.type==="symlink"&&typeof t.linkname!=="string"){r(new Error("entry linkname must be a non-empty string value when type equals symlink"));return}var n=new s(t.name);n.setTime(t.date,this.options.forceLocalTime);if(t.namePrependSlash){n.setName(t.name,true)}if(t.store){n.setMethod(0)}if(t.comment.length>0){n.setComment(t.comment)}if(t.type==="symlink"&&typeof t.mode!=="number"){t.mode=40960}if(typeof t.mode==="number"){if(t.type==="symlink"){t.mode|=40960}n.setUnixMode(t.mode)}if(t.type==="symlink"&&typeof t.linkname==="string"){e=Buffer.from(t.linkname)}return i.prototype.entry.call(this,n,e,r)};a.prototype.finalize=function(){this.finish()}},42613:t=>{t.exports=e(import.meta.url)("assert")},20181:t=>{t.exports=e(import.meta.url)("buffer")},49140:t=>{t.exports=e(import.meta.url)("constants")},76982:t=>{t.exports=e(import.meta.url)("crypto")},72250:t=>{t.exports=e(import.meta.url)("dns")},24434:t=>{t.exports=e(import.meta.url)("events")},79896:t=>{t.exports=e(import.meta.url)("fs")},91943:t=>{t.exports=e(import.meta.url)("fs/promises")},58611:t=>{t.exports=e(import.meta.url)("http")},85675:t=>{t.exports=e(import.meta.url)("http2")},65692:t=>{t.exports=e(import.meta.url)("https")},69278:t=>{t.exports=e(import.meta.url)("net")},34589:t=>{t.exports=e(import.meta.url)("node:assert")},16698:t=>{t.exports=e(import.meta.url)("node:async_hooks")},4573:t=>{t.exports=e(import.meta.url)("node:buffer")},37540:t=>{t.exports=e(import.meta.url)("node:console")},77598:t=>{t.exports=e(import.meta.url)("node:crypto")},53053:t=>{t.exports=e(import.meta.url)("node:diagnostics_channel")},40610:t=>{t.exports=e(import.meta.url)("node:dns")},78474:t=>{t.exports=e(import.meta.url)("node:events")},73024:t=>{t.exports=e(import.meta.url)("node:fs")},51455:t=>{t.exports=e(import.meta.url)("node:fs/promises")},37067:t=>{t.exports=e(import.meta.url)("node:http")},32467:t=>{t.exports=e(import.meta.url)("node:http2")},77030:t=>{t.exports=e(import.meta.url)("node:net")},76760:t=>{t.exports=e(import.meta.url)("node:path")},643:t=>{t.exports=e(import.meta.url)("node:perf_hooks")},41792:t=>{t.exports=e(import.meta.url)("node:querystring")},57075:t=>{t.exports=e(import.meta.url)("node:stream")},46193:t=>{t.exports=e(import.meta.url)("node:string_decoder")},41692:t=>{t.exports=e(import.meta.url)("node:tls")},73136:t=>{t.exports=e(import.meta.url)("node:url")},57975:t=>{t.exports=e(import.meta.url)("node:util")},73429:t=>{t.exports=e(import.meta.url)("node:util/types")},75919:t=>{t.exports=e(import.meta.url)("node:worker_threads")},38522:t=>{t.exports=e(import.meta.url)("node:zlib")},70857:t=>{t.exports=e(import.meta.url)("os")},16928:t=>{t.exports=e(import.meta.url)("path")},2203:t=>{t.exports=e(import.meta.url)("stream")},13193:t=>{t.exports=e(import.meta.url)("string_decoder")},16460:t=>{t.exports=e(import.meta.url)("timers/promises")},64756:t=>{t.exports=e(import.meta.url)("tls")},52018:t=>{t.exports=e(import.meta.url)("tty")},87016:t=>{t.exports=e(import.meta.url)("url")},39023:t=>{t.exports=e(import.meta.url)("util")},43106:t=>{t.exports=e(import.meta.url)("zlib")},33345:(e,t)=>{var r;r={value:true};t.w=void 0;t.w={operationRequestMap:new WeakMap}},38914:(e,t)=>{var r;r={value:true};t.w=void 0;t.w={instrumenterImplementation:undefined}},49498:(e,t,r)=>{const n=r(5546);const isRetryError=e=>e?.code==="EPROMISERETRY"&&Object.hasOwn(e,"retried");async function promiseRetry(e,t={}){const r=n.operation(t);return new Promise((function(t,n){r.attempt((async i=>{try{const n=await e((e=>{throw Object.assign(new Error("Retrying"),{code:"EPROMISERETRY",retried:e})}),i,r);return t(n)}catch(e){if(isRetryError(e)){if(r.retry(e.retried||new Error)){return}return n(e.retried)Line truncated
|
||||
/* v8 ignore else -- @preserve -- Bug with vitest coverage where it sees an else branch that doesn't exist */if("response"in r){this.response=r.response}const n=Object.assign({},r.request);if(r.request.headers.authorization){n.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})}n.url=n.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=n}}var lp="10.0.8";var up={headers:{"user-agent":`octokit-request.js/${lp} ${getUserAgent()}`}};function dist_bundle_isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}var noop=()=>"";async function fetchWrapper(e){const t=e.request?.fetch||globalThis.fetch;if(!t){throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing")}const r=e.request?.log||console;const n=e.request?.parseSuccessResponseBody!==false;const i=dist_bundle_isPlainObject(e.body)||Array.isArray(e.body)?JSONStringify(e.body):e.body;const s=Object.fromEntries(Object.entries(e.headers).map((([e,t])=>[e,String(t)])));let o;try{o=await t(e.url,{method:e.method,body:i,redirect:e.request?.redirect,headers:s,signal:e.request?.signal,...e.body&&{duplex:"half"}})}catch(t){let r="Unknown Error";if(t instanceof Error){if(t.name==="AbortError"){t.status=500;throw t}r=t.message;if(t.name==="TypeError"&&"cause"in t){if(t.cause instanceof Error){r=t.cause.message}else if(typeof t.cause==="string"){r=t.cause}}}const n=new RequestError(r,500,{request:e});n.cause=t;throw n}const a=o.status;const c=o.url;const l={};for(const[e,t]of o.headers){l[e]=t}const u={url:c,status:a,headers:l,data:""};if("deprecation"in l){const t=l.link&&l.link.match(/<([^<>]+)>; rel="deprecation"/);const n=t&&t.pop();r.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${l.sunset}${n?`. See ${n}`:""}`)}if(a===204||a===205){return u}if(e.method==="HEAD"){if(a<400){return u}throw new RequestError(o.statusText,a,{response:u,request:e})}if(a===304){u.data=await getResponseData(o);throw new RequestError("Not modified",a,{response:u,request:e})}if(a>=400){u.data=await getResponseData(o);throw new RequestError(toErrorMessage(u.data),a,{response:u,request:e})}u.data=n?await getResponseData(o):o.body;return u}async function getResponseData(e){const t=e.headers.get("content-type");if(!t){return e.text().catch(noop)}const r=(0,Yf.xL)(t);if(isJSONResponse(r)){let t="";try{t=await e.text();return JSONParse(t)}catch(e){return t}}else if(r.type.startsWith("text/")||r.parameters.charset?.toLowerCase()==="utf-8"){return e.text().catch(noop)}else{return e.arrayBuffer().catch((
|
||||
/* v8 ignore next -- @preserve */
|
||||
()=>new ArrayBuffer(0)))}}function isJSONResponse(e){return e.type==="application/json"||e.type==="application/scim+json"}function toErrorMessage(e){if(typeof e==="string"){return e}if(e instanceof ArrayBuffer){return"Unknown error"}if("message"in e){const t="documentation_url"in e?` - ${e.documentation_url}`:"";return Array.isArray(e.errors)?`${e.message}: ${e.errors.map((e=>JSON.stringify(e))).join(", ")}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}function dist_bundle_withDefaults(e,t){const r=e.defaults(t);const newApi=function(e,t){const n=r.merge(e,t);if(!n.request||!n.request.hook){return fetchWrapper(r.parse(n))}const request2=(e,t)=>fetchWrapper(r.parse(r.merge(e,t)));Object.assign(request2,{endpoint:r,defaults:dist_bundle_withDefaults.bind(null,r)});return n.request.hook(request2,n)};return Object.assign(newApi,{endpoint:r,defaults:dist_bundle_withDefaults.bind(null,r)})}var dp=dist_bundle_withDefaults(Jf,up);
|
||||
/* v8 ignore next -- @preserve */
|
||||
/* v8 ignore else -- @preserve */var hp="0.0.0-development";function _buildMessageForResponseErrors(e){return`Request failed due to following response errors:\n`+e.errors.map((e=>` - ${e.message}`)).join("\n")}var fp=class extends Error{constructor(e,t,r){super(_buildMessageForResponseErrors(r));this.request=e;this.headers=t;this.response=r;this.errors=r.errors;this.data=r.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}name="GraphqlResponseError";errors;data};var pp=["method","baseUrl","url","headers","request","query","mediaType","operationName"];var gp=["query","method","url"];var mp=/\/api\/v3\/?$/;function graphql(e,t,r){if(r){if(typeof t==="string"&&"query"in r){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const e in r){if(!gp.includes(e))continue;return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}}const n=typeof t==="string"?Object.assign({query:t},r):t;const i=Object.keys(n).reduce(((e,t)=>{if(pp.includes(t)){e[t]=n[t];return e}if(!e.variables){e.variables={}}e.variables[t]=n[t];return e}),{});const s=n.baseUrl||e.endpoint.DEFAULTS.baseUrl;if(mp.test(s)){i.url=s.replace(mp,"/api/graphql")}return e(i).then((e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers)){t[r]=e.headers[r]}throw new fp(i,t,e.data)}return e.data.data}))}function graphql_dist_bundle_withDefaults(e,t){const r=e.defaults(t);const newApi=(e,t)=>graphql(r,e,t);return Object.assign(newApi,{defaults:graphql_dist_bundle_withDefaults.bind(null,r),endpoint:r.endpoint})}var Ap=graphql_dist_bundle_withDefaults(dp,{headers:{"user-agent":`octokit-graphql.js/${hp} ${getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return graphql_dist_bundle_withDefaults(e,{method:"POST",url:"/graphql"})}var yp="(?:[a-zA-Z0-9_-]+)";var bp="\\.";var Ep=new RegExp(`^${yp}${bp}${yp}${bp}${yp}$`);var wp=Ep.test.bind(Ep);async function auth(e){const t=wp(e);const r=e.startsWith("v1.")||e.startsWith("ghs_");const n=e.startsWith("ghu_");const i=t?"app":r?"installation":n?"user-to-server":"oauth";return{type:"token",token:e,tokenType:i}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,r,n){const i=t.endpoint.merge(r,n);i.headers.authorization=withAuthorizationPrefix(e);return t(i)}var Cp=function createTokenAuth2(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};const Sp="7.0.6";const dist_src_noop=()=>{};const Ip=console.warn.bind(console);const vp=console.error.bind(console);function createLogger(e={}){if(typeof e.debug!=="function"){e.debug=dist_src_noop}if(typeof e.info!=="function"){e.info=dist_src_noop}if(typeof e.warn!=="function"){e.warn=Ip}if(typeof e.error!=="function"){e.error=vp}return e}const Bp=`octokit-core.js/${Sp} ${getUserAgent()}`;class Octokit{static VERSION=Sp;static defaults(e){const t=class extends(this){constructor(...t){const r=t[0]||{};if(typeof e==="function"){super(e(r));return}super(Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:`${r.userAgent} ${e.userAgent}`}:null))}};return t}static plugins=[];static plugin(...e){const t=this.plugins;const r=class extends(this){static plugins=t.concat(e.filter((e=>!t.includes(e))))};return r}constructor(e={}){const t=new zf.Collection;const r={baseUrl:dp.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};r.headers["user-agent"]=e.userAgent?`${e.userAgent} ${Bp}`:Bp;if(e.baseUrl){r.baseUrl=e.baseUrl}if(e.previews){r.mediaType.previews=e.previews}if(e.timeZone){r.headers["time-zone"]=e.timeZone}this.request=dp.defaults(r);this.graphql=withCustomRequest(this.request).defaults(r);this.log=createLogger(e.log);this.hook=t;if(!e.authStrategy){if(!e.auth){this.auth=async()=>({type:"unauthenticated"})}else{const r=Cp(e.auth);t.wrap("request",r.hook);this.auth=r}}else{const{authStrategy:r,...n}=e;const i=r(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:n},e.auth));t.wrap("request",i.hook);this.auth=i}const n=this.constructor;for(let t=0;t<n.plugins.length;++t){Object.assign(this,n.plugins[t](this,e))}}request;graphql;log;hook;auth}const _p="17.0.0";const Rp={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repositoLine truncated
|
||||
/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */
|
||||
function isNothing(e){return typeof e==="undefined"||e===null}function js_yaml_isObject(e){return typeof e==="object"&&e!==null}function toArray(e){if(Array.isArray(e))return e;else if(isNothing(e))return[];return[e]}function js_yaml_extend(e,t){var r,n,i,s;if(t){s=Object.keys(t);for(r=0,n=s.length;r<n;r+=1){i=s[r];e[i]=t[i]}}return e}function repeat(e,t){var r="",n;for(n=0;n<t;n+=1){r+=e}return r}function isNegativeZero(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Yg=isNothing;var Kg=js_yaml_isObject;var Zg=toArray;var Xg=repeat;var em=isNegativeZero;var tm=js_yaml_extend;var nm={isNothing:Yg,isObject:Kg,toArray:Zg,repeat:Xg,isNegativeZero:em,extend:tm};function formatError(e,t){var r="",n=e.reason||"(unknown reason)";if(!e.mark)return n;if(e.mark.name){r+='in "'+e.mark.name+'" '}r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")";if(!t&&e.mark.snippet){r+="\n\n"+e.mark.snippet}return n+" "+r}function YAMLException$1(e,t){Error.call(this);this.name="YAMLException";this.reason=e;this.mark=t;this.message=formatError(this,false);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack||""}}YAMLException$1.prototype=Object.create(Error.prototype);YAMLException$1.prototype.constructor=YAMLException$1;YAMLException$1.prototype.toString=function toString(e){return this.name+": "+formatError(this,e)};var im=YAMLException$1;function getLine(e,t,r,n,i){var s="";var o="";var a=Math.floor(i/2)-1;if(n-t>a){s=" ... ";t=n-a+s.length}if(r-n>a){o=" ...";r=n+a-o.length}return{str:s+e.slice(t,r).replace(/\t/g,"→")+o,pos:n-t+s.length}}function js_yaml_padStart(e,t){return nm.repeat(" ",t-e.length)+e}function makeSnippet(e,t){t=Object.create(t||null);if(!e.buffer)return null;if(!t.maxLength)t.maxLength=79;if(typeof t.indent!=="number")t.indent=1;if(typeof t.linesBefore!=="number")t.linesBefore=3;if(typeof t.linesAfter!=="number")t.linesAfter=2;var r=/\r?\n|\r|\0/g;var n=[0];var i=[];var s;var o=-1;while(s=r.exec(e.buffer)){i.push(s.index);n.push(s.index+s[0].length);if(e.position<=s.index&&o<0){o=n.length-2}}if(o<0)o=n.length-1;var a="",c,l;var u=Math.min(e.line+t.linesAfter,i.length).toString().length;var d=t.maxLength-(t.indent+u+3);for(c=1;c<=t.linesBefore;c++){if(o-c<0)break;l=getLine(e.buffer,n[o-c],i[o-c],e.position-(n[o]-n[o-c]),d);a=nm.repeat(" ",t.indent)+js_yaml_padStart((e.line-c+1).toString(),u)+" | "+l.str+"\n"+a}l=getLine(e.buffer,n[o],i[o],e.position,d);a+=nm.repeat(" ",t.indent)+js_yaml_padStart((e.line+1).toString(),u)+" | "+l.str+"\n";a+=nm.repeat("-",t.indent+u+3+l.pos)+"^"+"\n";for(c=1;c<=t.linesAfter;c++){if(o+c>=i.length)break;l=getLine(e.buffer,n[o+c],i[o+c],e.position-(n[o]-n[o+c]),d);a+=nm.repeat(" ",t.indent)+js_yaml_padStart((e.line+c+1).toString(),u)+" | "+l.str+"\n"}return a.replace(/\n$/,"")}var sm=makeSnippet;var om=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"];var am=["scalar","sequence","mapping"];function compileStyleAliases(e){var t={};if(e!==null){Object.keys(e).forEach((function(r){e[r].forEach((function(e){t[String(e)]=r}))}))}return t}function Type$1(e,t){t=t||{};Object.keys(t).forEach((function(t){if(om.indexOf(t)===-1){throw new im('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}}));this.options=t;this.tag=e;this.kind=t["kind"]||null;this.resolve=t["resolve"]||function(){return true};this.construct=t["construct"]||function(e){return e};this.instanceOf=t["instanceOf"]||null;this.predicate=t["predicate"]||null;this.represent=t["represent"]||null;this.representName=t["representName"]||null;this.defaultStyle=t["defaultStyle"]||null;this.multi=t["multi"]||false;this.styleAliases=compileStyleAliases(t["styleAliases"]||null);if(am.indexOf(this.kind)===-1){throw new im('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}var cm=Type$1;function compileList(e,t){var r=[];e[t].forEach((function(e){var t=r.length;r.forEach((function(r,n){if(r.tag===e.tag&&r.kind===e.kind&&r.multi===e.multi){t=n}}));r[t]=e}));return r}function compileMap(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function collectType(t){if(t.multi){e.multi[t.kind].push(t);e.multi["fallback"].push(t)}else{e[t.kind][t.tag]=e["fallback"][t.tag]=t}}for(t=0,r=arguments.length;t<r;t+=1){arguments[t].forEach(collectType)}return e}function Schema$1(e){return this.extend(e)}Schema$1.prototype.extend=function extend(e){var t=[];var r=[];if(e instanceof cm){r.push(e)}else if(Array.isArray(e)){r=r.concat(e)}else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit))){if(e.implicit)t=t.concat(e.implicit);if(e.explicit)r=r.concat(e.explicit)}else{throw new im("Schema.extend argument should be a Type, [ Type ], "+"or a schema definition ({ implicit: [...], explicit: [...] })")}t.forEach((function(e){if(!(e instanceof cm)){throw new im("Specified list of YAML types (or a single Type object) contains a non-Line truncated
|
||||
//# sourceMappingURL=index.js.map
|
||||
+1
-1
@@ -1 +1 @@
|
||||
{"version":3,"file":"index.js","names":["__createBinding","this","Object","create","o","m","k","k2","undefined","desc","getOwnPropertyDescriptor","__esModule","writable","configurable","enumerable","get","defineProperty","__exportStar","exports","p","prototype","hasOwnProperty","call","value","client_1","__webpack_require__","client","DefaultArtifactClient","Timestamp","runtime_1","runtime_2","runtime_3","runtime_4","runtime_5","runtime_6","runtime_7","Timestamp$Type","MessageType","constructor","super","no","name","kind","T","now","msg","ms","Date","seconds","PbLong","from","Math","floor","toString","nanos","toDate","message","toNumber","ceil","fromDate","date","getTime","internalJsonWrite","options","parse","Error","z","nanosStr","substring","toISOString","replace","internalJsonRead","json","target","typeofJsonValue","matches","match","Number","isNaN","globalThis","parseInt","repeat","length","MESSAGE_TYPE","reflectionMergePartial","internalBinaryRead","reader","end","pos","fieldNo","wireType","tag","int64","int32","u","readUnknownField","typeName","d","skip","UnknownFieldHandler","onRead","internalBinaryWrite","writer","WireType","Varint","writeUnknownFields","onWrite","BytesValue","StringValue","BoolValue","UInt32Value","Int32Value","UInt64Value","Int64Value","FloatValue","DoubleValue","DoubleValue$Type","refJsonWriter","scalar","refJsonReader","double","Bit64","FloatValue$Type","float","Bit32","Int64Value$Type","ScalarType","INT64","LongType","STRING","UInt64Value$Type","UINT64","uint64","Int32Value$Type","UInt32Value$Type","uint32","BoolValue$Type","bool","StringValue$Type","string","LengthDelimited","BytesValue$Type","Uint8Array","bytes","ArtifactService","DeleteArtifactResponse","DeleteArtifactRequest","GetSignedArtifactURLResponse","GetSignedArtifactURLRequest","ListArtifactsResponse_MonolithArtifact","ListArtifactsResponse","ListArtifactsRequest","FinalizeArtifactResponse","FinalizeArtifactRequest","CreateArtifactResponse","CreateArtifactRequest","FinalizeMigratedArtifactResponse","FinalizeMigratedArtifactRequest","MigrateArtifactResponse","MigrateArtifactRequest","runtime_rpc_1","wrappers_1","wrappers_2","timestamp_1","MigrateArtifactRequest$Type","workflowRunBackendId","expiresAt","fork","join","MigrateArtifactResponse$Type","ok","signedUploadUrl","FinalizeMigratedArtifactRequest$Type","size","FinalizeMigratedArtifactResponse$Type","artifactId","CreateArtifactRequest$Type","workflowJobRunBackendId","version","CreateArtifactResponse$Type","FinalizeArtifactRequest$Type","hash","FinalizeArtifactResponse$Type","ListArtifactsRequest$Type","nameFilter","idFilter","ListArtifactsResponse$Type","artifacts","push","i","ListArtifactsResponse_MonolithArtifact$Type","databaseId","createdAt","digest","GetSignedArtifactURLRequest$Type","GetSignedArtifactURLResponse$Type","signedUrl","DeleteArtifactRequest$Type","DeleteArtifactResponse$Type","ServiceType","I","O","ArtifactServiceClientProtobuf","ArtifactServiceClientJSON","artifact_1","rpc","CreateArtifact","bind","FinalizeArtifact","ListArtifacts","GetSignedArtifactURL","DeleteArtifact","request","data","toJson","useProtoFieldName","emitDefaultValues","promise","then","fromJson","ignoreUnknownFields","toBinary","fromBinary","__awaiter","thisArg","_arguments","P","generator","adopt","resolve","Promise","reject","fulfilled","step","next","e","rejected","result","done","apply","__rest","s","t","indexOf","getOwnPropertySymbols","propertyIsEnumerable","core_1","config_1","upload_artifact_1","download_artifact_1","delete_artifact_1","get_artifact_1","list_artifacts_1","errors_1","uploadArtifact","files","rootDirectory","isGhes","GHESNotSupportedError","error","warning","downloadArtifact","findBy","repositoryOwner","repositoryName","token","downloadOptions","downloadArtifactPublic","downloadArtifactInternal","listArtifacts","workflowRunId","listArtifactsPublic","latest","listArtifactsInternal","getArtifact","artifactName","getArtifactPublic","getArtifactInternal","deleteArtifact","deleteArtifactPublic","deleteArtifactInternal","github_1","user_agent_1","retry_options_1","utils_1","plugin_request_log_1","plugin_retry_1","artifact_twirp_client_1","util_1","generated_1","_a","retryOpts","requestOpts","getRetryOptions","defaults","opts","log","userAgent","getUserAgentString","previews","retry","github","getOctokit","requestLog","getArtifactResp","deleteArtifactResp","rest","actions","owner","repo","artifact_id","artifact","id","status","InvalidResponseError","headers","artifactClient","internalArtifactTwirpClient","getBackendIdsFromToken","listReq","listRes","ArtifactNotFoundError","sort","a","b","debug","req","res","info","__setModuleDefault","v","__importStar","ownKeys","getOwnPropertyNames","ar","mod","__importDefault","default","streamExtractExternal","promises_1","crypto","stream","core","httpClient","unzip_stream_1","scrubQueryParameters","url","parsed","URL","search","exists","path","access","code","streamExtract","directory","retryCount","setTimeout","url_1","diLine truncated
|
||||
{"version":3,"file":"index.js","names":["__awaiter","this","thisArg","_arguments","P","generator","adopt","value","resolve","Promise","reject","fulfilled","step","next","e","rejected","result","done","then","apply","Object","defineProperty","exports","ClientStreamingCall","constructor","method","requestHeaders","request","headers","response","status","trailers","requests","onfulfilled","onrejected","promiseFinished","reason","all","Deferred","DeferredState","preventUnhandledRejectionWarning","_state","PENDING","_promise","_resolve","_reject","catch","_","state","promise","Error","toLowerCase","RESOLVED","REJECTED","resolvePending","val","rejectPending","DuplexStreamingCall","responses","__webpack_unused_export__","service_type_1","__webpack_require__","enumerable","get","ServiceType","reflection_info_1","readMethodOptions","readMethodOption","readServiceOption","rpc_error_1","RpcError","rpc_options_1","mergeRpcOptions","rpc_output_stream_1","RpcOutputStreamController","test_transport_1","TestTransport","deferred_1","duplex_streaming_call_1","client_streaming_call_1","server_streaming_call_1","ServerStreamingCall","unary_call_1","UnaryCall","rpc_interceptor_1","stackIntercept","stackDuplexStreamingInterceptors","stackClientStreamingInterceptors","stackServerStreamingInterceptors","stackUnaryInterceptors","server_call_context_1","ServerCallContextController","normalizeMethodInfo","runtime_1","service","_a","_b","_c","m","localName","lowerCamelCase","name","serverStreaming","clientStreaming","options","idempotency","undefined","methodName","extensionName","extensionType","methods","find","i","fromJson","optionVal","message","code","meta","super","setPrototypeOf","prototype","toString","l","push","serviceName","entries","length","k","v","join","kind","transport","input","_d","tail","mtd","inp","opt","unary","curr","interceptors","filter","interceptUnary","reverse","interceptServerStreaming","interceptClientStreaming","duplex","interceptDuplex","assertNever","defaults","o","copy","key","keys","jsonOptions","mergeJsonOptions","binaryOptions","mergeBinaryOptions","concat","a","into","c","Date","getTime","Array","isArray","_lis","nxt","msg","err","cmp","_closed","_itState","q","onNext","callback","addLis","onMessage","onError","onComplete","list","indexOf","splice","clearLis","values","closed","notifyNext","error","complete","assert","notifyMessage","notifyError","notifyComplete","pushIt","forEach","Symbol","asyncIterator","p","first","shift","deadline","sendResponseHeadersFn","defaultStatus","detail","_cancelled","_listeners","_sendRH","notifyCancelled","sendResponseHeaders","data","cancelled","onCancel","typeName","map","suppressUncaughtRejections","headerDelay","responseDelay","betweenResponseDelay","afterResponseDelay","sentMessages","lastInput","TestInputStream","sent","single","sendComplete","completed","promiseHeaders","defaultHeaders","promiseSingleResponse","r","O","create","is","streamResponses","stream","abort","messages","delay","promiseStatus","promiseTrailers","defaultTrailers","maybeSuppressUncaught","mergeOptions","headersPromise","responsePromise","statusPromise","trailersPromise","outputStream","responseStreamClosedPromise","responseHeader","responseTrailer","ms","aborted","id","setTimeout","addEventListener","ev","clearTimeout","_completed","_sent","send","inputMessage","delayMs","inputComplete","assertFloat32","assertUInt32","assertInt32","condition","FLOAT32_MAX","FLOAT32_MIN","UINT32_MAX","INT32_MAX","INT32_MIN","arg","Number","isInteger","isFinite","base64encode","base64decode","encTable","split","decTable","charCodeAt","base64Str","es","bytes","Uint8Array","bytePos","groupPos","b","subarray","base64","WireType","UnknownFieldHandler","symbol","for","onRead","fieldNo","wireType","container","no","onWrite","writer","tag","raw","uf","last","slice","assign","BinaryReader","binaryReadOptions","binary_format_contract_1","pb_long_1","goog_varint_1","defaultsRead","readUnknownField","readerFactory","buf","textDecoder","varint64","varint64read","uint32","varint32read","len","pos","view","DataView","buffer","byteOffset","byteLength","TextDecoder","fatal","ignoreBOM","skip","start","Varint","Bit64","Bit32","LengthDelimited","StartGroup","t","EndGroup","assertBounds","RangeError","int32","sint32","zze","int64","PbLong","uint64","PbULong","sint64","lo","hi","s","bool","fixed32","getUint32","sfixed32","getInt32","fixed64","sfixed64","float","getFloat32","double","getFloat64","string","decode","BinaryWriter","binaryWriteOptions","assert_1","defaultsWrite","writeUnknownFields","writerFactory","textEncoder","stack","TextEncoder","chunks","finish","offset","set","fork","chunk","prev","pop","type","varint32write","encode","setFloat32","setFloat64","setUint32","setInt32","long","from","varint64write","sign","listEnumNumbers","listEnumNames","listEnumValues","isEnumObject","hasOwnProperty","num","parseInt","isNaN","nam","enumObject","number","index","arr","int64toString","int64fromString","lowBits","highBits","mLine truncated
|
||||
+1
-1
@@ -24,7 +24,7 @@
|
||||
"packageManager": "yarn@4.9.2",
|
||||
"dependencies": {
|
||||
"@actions/core": "^3.0.0",
|
||||
"@docker/actions-toolkit": "^0.68.0",
|
||||
"@docker/actions-toolkit": "^0.77.0",
|
||||
"handlebars": "^4.7.8"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ import * as handlebars from 'handlebars';
|
||||
import {Bake} from '@docker/actions-toolkit/lib/buildx/bake.js';
|
||||
import {Build} from '@docker/actions-toolkit/lib/buildx/build.js';
|
||||
import {Context} from '@docker/actions-toolkit/lib/context.js';
|
||||
import {GitHub} from '@docker/actions-toolkit/lib/github.js';
|
||||
import {GitHub} from '@docker/actions-toolkit/lib/github/github.js';
|
||||
import {Toolkit} from '@docker/actions-toolkit/lib/toolkit.js';
|
||||
import {Util} from '@docker/actions-toolkit/lib/util.js';
|
||||
|
||||
|
||||
+6
-5
@@ -8,14 +8,16 @@ import {History as BuildxHistory} from '@docker/actions-toolkit/lib/buildx/histo
|
||||
import {Context} from '@docker/actions-toolkit/lib/context.js';
|
||||
import {Docker} from '@docker/actions-toolkit/lib/docker/docker.js';
|
||||
import {Exec} from '@docker/actions-toolkit/lib/exec.js';
|
||||
import {GitHub} from '@docker/actions-toolkit/lib/github.js';
|
||||
import {GitHub} from '@docker/actions-toolkit/lib/github/github.js';
|
||||
import {GitHubArtifact} from '@docker/actions-toolkit/lib/github/artifact.js';
|
||||
import {GitHubSummary} from '@docker/actions-toolkit/lib/github/summary.js';
|
||||
import {Toolkit} from '@docker/actions-toolkit/lib/toolkit.js';
|
||||
import {Util} from '@docker/actions-toolkit/lib/util.js';
|
||||
|
||||
import {BakeDefinition} from '@docker/actions-toolkit/lib/types/buildx/bake.js';
|
||||
import {BuilderInfo} from '@docker/actions-toolkit/lib/types/buildx/builder.js';
|
||||
import {ConfigFile} from '@docker/actions-toolkit/lib/types/docker/docker.js';
|
||||
import {UploadArtifactResponse} from '@docker/actions-toolkit/lib/types/github.js';
|
||||
import {UploadResponse as UploadArtifactResponse} from '@docker/actions-toolkit/lib/types/github/artifact.js';
|
||||
|
||||
import * as context from './context.js';
|
||||
import * as stateHelper from './state-helper.js';
|
||||
@@ -247,14 +249,13 @@ actionsToolkit.run(
|
||||
|
||||
let uploadRes: UploadArtifactResponse | undefined;
|
||||
if (recordUploadEnabled) {
|
||||
uploadRes = await GitHub.uploadArtifact({
|
||||
uploadRes = await GitHubArtifact.upload({
|
||||
filename: exportRes.dockerbuildFilename,
|
||||
mimeType: 'application/gzip',
|
||||
retentionDays: recordRetentionDays
|
||||
});
|
||||
}
|
||||
|
||||
await GitHub.writeBuildSummary({
|
||||
await GitHubSummary.writeBuildSummary({
|
||||
exportRes: exportRes,
|
||||
uploadRes: uploadRes,
|
||||
inputs: stateHelper.summaryInputs,
|
||||
|
||||
Reference in new issue
Block a user