Compare commits
52
Commits
v4.3.0
...
releases/v4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
818d4b7b91 | ||
|
|
948134af5e | ||
|
|
ef7eee951a | ||
|
|
8ec80c3be6 | ||
|
|
38650bbf6b | ||
|
|
ebbd9b4df7 | ||
|
|
2dadb92b6b | ||
|
|
2c0bd771b4 | ||
|
|
b10b364e15 | ||
|
|
40a1c6ff52 | ||
|
|
be8ea87c5a | ||
|
|
dbbf01822b | ||
|
|
72b4ec2b60 | ||
|
|
00e2c9d34e | ||
|
|
c4ee3adeed | ||
|
|
3bea1eeada | ||
|
|
88c7f0d3f6 | ||
|
|
101f9cbeaf | ||
|
|
0e44559303 | ||
|
|
517f8b0c3b | ||
|
|
bfaa9197f7 | ||
|
|
16dbdc96f6 | ||
|
|
bf095b87d3 | ||
|
|
2ed3c45f27 | ||
|
|
5076359ba6 | ||
|
|
d8f57c18fa | ||
|
|
80530e08c5 | ||
|
|
da933fb889 | ||
|
|
3f6690a76c | ||
|
|
dda839d15b | ||
|
|
37f1d84442 | ||
|
|
1ce942256d | ||
|
|
8f8c795666 | ||
|
|
9ec57ed1fc | ||
|
|
2bdac1078b | ||
|
|
9e02960866 | ||
|
|
ea910e3ad4 | ||
|
|
8b6629002b | ||
|
|
1db8e21e35 | ||
|
|
b30cff8c11 | ||
|
|
916b4b90e3 | ||
|
|
0ef9f130fa | ||
|
|
f5c49ece12 | ||
|
|
18df8a69c4 | ||
|
|
3343011071 | ||
|
|
0524f79273 | ||
|
|
b5c378621c | ||
|
|
a103499e09 | ||
|
|
766400ca14 | ||
|
|
e2ffd4cc94 | ||
|
|
6c3ca5dfa6 | ||
|
|
235becadd8 |
No files matched your search
@@ -2,7 +2,7 @@ name: ci
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 */4 * * *' # every 4 hours
|
||||
- cron: '0 10 * * *'
|
||||
push:
|
||||
branches:
|
||||
- 'master'
|
||||
@@ -10,9 +10,6 @@ on:
|
||||
tags:
|
||||
- 'v*.*.*'
|
||||
pull_request:
|
||||
branches:
|
||||
- 'master'
|
||||
- 'releases/v*'
|
||||
|
||||
env:
|
||||
DOCKER_IMAGE: localhost:5000/name/app
|
||||
@@ -227,14 +224,6 @@ jobs:
|
||||
echo "version=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}"
|
||||
echo "revision=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }}"
|
||||
echo "created=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }}"
|
||||
-
|
||||
name: JSON build arg
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
context: ./test
|
||||
file: ./test/json.Dockerfile
|
||||
build-args: |
|
||||
BUILDINFO=${{ steps.meta.outputs.json }}
|
||||
|
||||
docker-push:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -273,7 +262,7 @@ jobs:
|
||||
driver-opts: network=host
|
||||
-
|
||||
name: Build and push to local registry
|
||||
uses: docker/build-push-action@v3
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
context: ./test
|
||||
file: ./test/Dockerfile
|
||||
@@ -293,7 +282,7 @@ jobs:
|
||||
-
|
||||
name: Dump context
|
||||
if: always()
|
||||
uses: crazy-max/ghaction-dump-context@v1
|
||||
uses: crazy-max/ghaction-dump-context@v2
|
||||
|
||||
bake:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -326,7 +315,7 @@ jobs:
|
||||
uses: docker/setup-buildx-action@v2
|
||||
-
|
||||
name: Build
|
||||
uses: docker/bake-action@v2
|
||||
uses: docker/bake-action@v3
|
||||
with:
|
||||
files: |
|
||||
./test/docker-bake.hcl
|
||||
@@ -380,7 +369,7 @@ jobs:
|
||||
maintainer=CrazyMax
|
||||
-
|
||||
name: Build
|
||||
uses: docker/build-push-action@v3
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
context: ./test
|
||||
file: ./test/output.Dockerfile
|
||||
|
||||
@@ -6,9 +6,6 @@ on:
|
||||
- 'master'
|
||||
- 'releases/v*'
|
||||
pull_request:
|
||||
branches:
|
||||
- 'master'
|
||||
- 'releases/v*'
|
||||
|
||||
jobs:
|
||||
test:
|
||||
@@ -17,14 +14,9 @@ jobs:
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
-
|
||||
name: Validate
|
||||
uses: docker/bake-action@v2
|
||||
with:
|
||||
targets: validate
|
||||
-
|
||||
name: Test
|
||||
uses: docker/bake-action@v2
|
||||
uses: docker/bake-action@v3
|
||||
with:
|
||||
targets: test
|
||||
-
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
name: validate
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'master'
|
||||
- 'releases/v*'
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
prepare:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
targets: ${{ steps.targets.outputs.matrix }}
|
||||
steps:
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
-
|
||||
name: Targets matrix
|
||||
id: targets
|
||||
run: |
|
||||
echo "matrix=$(docker buildx bake validate --print | jq -cr '.group.validate.targets')" >> $GITHUB_OUTPUT
|
||||
|
||||
validate:
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
- prepare
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
target: ${{ fromJson(needs.prepare.outputs.targets) }}
|
||||
steps:
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
-
|
||||
name: Validate
|
||||
uses: docker/bake-action@v3
|
||||
with:
|
||||
targets: ${{ matrix.target }}
|
||||
@@ -22,6 +22,7 @@ ___
|
||||
* [inputs](#inputs)
|
||||
* [outputs](#outputs)
|
||||
* [environment variables](#environment-variables)
|
||||
* [`context` input](#context-input)
|
||||
* [`images` input](#images-input)
|
||||
* [`flavor` input](#flavor-input)
|
||||
* [`tags` input](#tags-input)
|
||||
@@ -89,7 +90,7 @@ jobs:
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
-
|
||||
name: Build and push
|
||||
uses: docker/build-push-action@v3
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
context: .
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
@@ -149,7 +150,7 @@ jobs:
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
-
|
||||
name: Build and push
|
||||
uses: docker/build-push-action@v3
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
context: .
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
@@ -275,15 +276,16 @@ Following inputs can be used as `step.with` keys
|
||||
> org.opencontainers.image.vendor=MyCompany
|
||||
> ```
|
||||
|
||||
| Name | Type | Description |
|
||||
|---------------------|--------|----------------------------------------------------------|
|
||||
| `images` | List | List of Docker images to use as base name for tags |
|
||||
| `tags` | List | List of [tags](#tags-input) as key-value pair attributes |
|
||||
| `flavor` | List | [Flavor](#flavor-input) to apply |
|
||||
| `labels` | List | List of custom labels |
|
||||
| `sep-tags` | String | Separator to use for tags output (default `\n`) |
|
||||
| `sep-labels` | String | Separator to use for labels output (default `\n`) |
|
||||
| `bake-target` | String | Bake target name (default `docker-metadata-action`) |
|
||||
| Name | Type | Description |
|
||||
|---------------------|--------|-------------------------------------------------------------------------------|
|
||||
| `context` | String | Where to get context data. Allowed options are: `workflow` (default), `git`. |
|
||||
| `images` | List | List of Docker images to use as base name for tags |
|
||||
| `tags` | List | List of [tags](#tags-input) as key-value pair attributes |
|
||||
| `flavor` | List | [Flavor](#flavor-input) to apply |
|
||||
| `labels` | List | List of custom labels |
|
||||
| `sep-tags` | String | Separator to use for tags output (default `\n`) |
|
||||
| `sep-labels` | String | Separator to use for labels output (default `\n`) |
|
||||
| `bake-target` | String | Bake target name (default `docker-metadata-action`) |
|
||||
|
||||
### outputs
|
||||
|
||||
@@ -308,7 +310,7 @@ Alternatively, each output is also exported as an environment variable:
|
||||
So it can be used with our [Docker Build Push action](https://github.com/docker/build-push-action/):
|
||||
|
||||
```yaml
|
||||
- uses: docker/build-push-action@v3
|
||||
- uses: docker/build-push-action@v4
|
||||
with:
|
||||
build-args: |
|
||||
DOCKER_METADATA_OUTPUT_JSON
|
||||
@@ -320,6 +322,20 @@ So it can be used with our [Docker Build Push action](https://github.com/docker/
|
||||
|-------------------------------|------|------------------------------------------------------------------------------------------------------------|
|
||||
| `DOCKER_METADATA_PR_HEAD_SHA` | Bool | If `true`, set associated head SHA instead of commit SHA that triggered the workflow on pull request event |
|
||||
|
||||
## `context` input
|
||||
|
||||
`context` defines where to get context metadata:
|
||||
|
||||
```yaml
|
||||
# default
|
||||
context: workflow
|
||||
# or
|
||||
context: git
|
||||
```
|
||||
|
||||
* `workflow`: Get context metadata from the workflow (GitHub context). See https://docs.github.com/en/actions/learn-github-actions/contexts#github-context
|
||||
* `git`: Get context metadata from the workflow and overrides some of them with current Git context, such as `ref` and `sha`.
|
||||
|
||||
## `images` input
|
||||
|
||||
`images` defines a list of Docker images to use as base name for [`tags`](#tags-input):
|
||||
@@ -841,7 +857,7 @@ that you can reuse them further in your workflow using the [`fromJSON` function]
|
||||
images: name/app
|
||||
-
|
||||
name: Build and push
|
||||
uses: docker/build-push-action@v3
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
|
||||
+4
-4
@@ -149,7 +149,7 @@ jobs:
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
-
|
||||
name: Build and push
|
||||
uses: docker/build-push-action@v3
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
context: .
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
@@ -193,7 +193,7 @@ jobs:
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
-
|
||||
name: Build and push
|
||||
uses: docker/build-push-action@v3
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
context: .
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
@@ -242,7 +242,7 @@ jobs:
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
-
|
||||
name: Build and push
|
||||
uses: docker/build-push-action@v3
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
context: .
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
@@ -291,7 +291,7 @@ jobs:
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
-
|
||||
name: Build and push
|
||||
uses: docker/build-push-action@v3
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
context: .
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
|
||||
@@ -0,0 +1,207 @@
|
||||
import {jest} from '@jest/globals';
|
||||
|
||||
export const context = {
|
||||
repo: {
|
||||
owner: 'docker',
|
||||
repo: 'actions-toolkit'
|
||||
},
|
||||
ref: 'refs/heads/master',
|
||||
runId: 123,
|
||||
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'
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const getOctokit = jest.fn();
|
||||
+114
-155
@@ -1,167 +1,126 @@
|
||||
import {describe, expect, it, jest} from '@jest/globals';
|
||||
import {afterEach, beforeEach, describe, expect, test, it, jest} from '@jest/globals';
|
||||
import * as dotenv from 'dotenv';
|
||||
import * as fs from 'fs';
|
||||
import * as path from 'path';
|
||||
import {Context} from '@actions/github/lib/context';
|
||||
import {Git} from '@docker/actions-toolkit/lib/git';
|
||||
import {GitHub} from '@docker/actions-toolkit/lib/github';
|
||||
|
||||
import * as context from '../src/context';
|
||||
import {ContextSource, getContext, getInputs, Inputs} from '../src/context';
|
||||
|
||||
jest.spyOn(context, 'tmpDir').mockImplementation((): string => {
|
||||
const tmpDir = path.join('/tmp/.docker-metadata-action-jest').split(path.sep).join(path.posix.sep);
|
||||
if (!fs.existsSync(tmpDir)) {
|
||||
fs.mkdirSync(tmpDir, {recursive: true});
|
||||
}
|
||||
return tmpDir;
|
||||
});
|
||||
|
||||
describe('getInputList', () => {
|
||||
it('single line correctly', async () => {
|
||||
await setInput('foo', 'bar');
|
||||
const res = context.getInputList('foo');
|
||||
expect(res).toEqual(['bar']);
|
||||
});
|
||||
|
||||
it('multiline correctly', async () => {
|
||||
setInput('foo', 'bar\nbaz');
|
||||
const res = context.getInputList('foo');
|
||||
expect(res).toEqual(['bar', 'baz']);
|
||||
});
|
||||
|
||||
it('empty lines correctly', async () => {
|
||||
setInput('foo', 'bar\n\nbaz');
|
||||
const res = context.getInputList('foo');
|
||||
expect(res).toEqual(['bar', 'baz']);
|
||||
});
|
||||
|
||||
it('comment correctly', async () => {
|
||||
setInput('foo', 'bar\n#com\n"#taken"\nhello#comment\nbaz');
|
||||
const res = context.getInputList('foo');
|
||||
expect(res).toEqual(['bar', '#taken', 'hello', 'baz']);
|
||||
});
|
||||
|
||||
it('comma correctly', async () => {
|
||||
setInput('foo', 'bar,baz');
|
||||
const res = context.getInputList('foo');
|
||||
expect(res).toEqual(['bar', 'baz']);
|
||||
});
|
||||
|
||||
it('empty result correctly', async () => {
|
||||
setInput('foo', 'bar,baz,');
|
||||
const res = context.getInputList('foo');
|
||||
expect(res).toEqual(['bar', 'baz']);
|
||||
});
|
||||
|
||||
it('different new lines correctly', async () => {
|
||||
setInput('foo', 'bar\r\nbaz');
|
||||
const res = context.getInputList('foo');
|
||||
expect(res).toEqual(['bar', 'baz']);
|
||||
});
|
||||
|
||||
it('different new lines and comma correctly', async () => {
|
||||
setInput('foo', 'bar\r\nbaz,bat');
|
||||
const res = context.getInputList('foo');
|
||||
expect(res).toEqual(['bar', 'baz', 'bat']);
|
||||
});
|
||||
|
||||
it('multiline and ignoring comma correctly', async () => {
|
||||
setInput('cache-from', 'user/app:cache\ntype=local,src=path/to/dir');
|
||||
const res = context.getInputList('cache-from', true);
|
||||
expect(res).toEqual(['user/app:cache', 'type=local,src=path/to/dir']);
|
||||
});
|
||||
|
||||
it('different new lines and ignoring comma correctly', async () => {
|
||||
setInput('cache-from', 'user/app:cache\r\ntype=local,src=path/to/dir');
|
||||
const res = context.getInputList('cache-from', true);
|
||||
expect(res).toEqual(['user/app:cache', 'type=local,src=path/to/dir']);
|
||||
});
|
||||
|
||||
it('multiline values', async () => {
|
||||
setInput(
|
||||
'secrets',
|
||||
`GIT_AUTH_TOKEN=abcdefgh,ijklmno=0123456789
|
||||
"MYSECRET=aaaaaaaa
|
||||
bbbbbbb
|
||||
ccccccccc"
|
||||
FOO=bar`
|
||||
);
|
||||
const res = context.getInputList('secrets', true);
|
||||
expect(res).toEqual([
|
||||
'GIT_AUTH_TOKEN=abcdefgh,ijklmno=0123456789',
|
||||
`MYSECRET=aaaaaaaa
|
||||
bbbbbbb
|
||||
ccccccccc`,
|
||||
'FOO=bar'
|
||||
]);
|
||||
});
|
||||
|
||||
it('multiline values with empty lines', async () => {
|
||||
setInput(
|
||||
'secrets',
|
||||
`GIT_AUTH_TOKEN=abcdefgh,ijklmno=0123456789
|
||||
"MYSECRET=aaaaaaaa
|
||||
bbbbbbb
|
||||
ccccccccc"
|
||||
FOO=bar
|
||||
"EMPTYLINE=aaaa
|
||||
|
||||
bbbb
|
||||
ccc"`
|
||||
);
|
||||
const res = context.getInputList('secrets', true);
|
||||
expect(res).toEqual([
|
||||
'GIT_AUTH_TOKEN=abcdefgh,ijklmno=0123456789',
|
||||
`MYSECRET=aaaaaaaa
|
||||
bbbbbbb
|
||||
ccccccccc`,
|
||||
'FOO=bar',
|
||||
`EMPTYLINE=aaaa
|
||||
|
||||
bbbb
|
||||
ccc`
|
||||
]);
|
||||
});
|
||||
|
||||
it('multiline values without quotes', async () => {
|
||||
setInput(
|
||||
'secrets',
|
||||
`GIT_AUTH_TOKEN=abcdefgh,ijklmno=0123456789
|
||||
MYSECRET=aaaaaaaa
|
||||
bbbbbbb
|
||||
ccccccccc
|
||||
FOO=bar`
|
||||
);
|
||||
const res = context.getInputList('secrets', true);
|
||||
expect(res).toEqual(['GIT_AUTH_TOKEN=abcdefgh,ijklmno=0123456789', 'MYSECRET=aaaaaaaa', 'bbbbbbb', 'ccccccccc', 'FOO=bar']);
|
||||
});
|
||||
|
||||
it('multiline values escape quotes', async () => {
|
||||
setInput(
|
||||
'secrets',
|
||||
`GIT_AUTH_TOKEN=abcdefgh,ijklmno=0123456789
|
||||
"MYSECRET=aaaaaaaa
|
||||
bbbb""bbb
|
||||
ccccccccc"
|
||||
FOO=bar`
|
||||
);
|
||||
const res = context.getInputList('secrets', true);
|
||||
expect(res).toEqual([
|
||||
'GIT_AUTH_TOKEN=abcdefgh,ijklmno=0123456789',
|
||||
`MYSECRET=aaaaaaaa
|
||||
bbbb"bbb
|
||||
ccccccccc`,
|
||||
'FOO=bar'
|
||||
]);
|
||||
beforeEach(() => {
|
||||
jest.clearAllMocks();
|
||||
jest.spyOn(GitHub, 'context', 'get').mockImplementation((): Context => {
|
||||
return new Context();
|
||||
});
|
||||
});
|
||||
|
||||
describe('asyncForEach', () => {
|
||||
it('executes async tasks sequentially', async () => {
|
||||
const testValues = [1, 2, 3, 4, 5];
|
||||
const results: number[] = [];
|
||||
describe('getInputs', () => {
|
||||
beforeEach(() => {
|
||||
process.env = Object.keys(process.env).reduce((object, key) => {
|
||||
if (!key.startsWith('INPUT_')) {
|
||||
object[key] = process.env[key];
|
||||
}
|
||||
return object;
|
||||
}, {});
|
||||
});
|
||||
|
||||
await context.asyncForEach(testValues, async value => {
|
||||
results.push(value);
|
||||
// prettier-ignore
|
||||
test.each([
|
||||
[
|
||||
0,
|
||||
new Map<string, string>([
|
||||
['images', 'moby/buildkit\nghcr.io/moby/mbuildkit'],
|
||||
]),
|
||||
{
|
||||
context: ContextSource.workflow,
|
||||
bakeTarget: 'docker-metadata-action',
|
||||
flavor: [],
|
||||
githubToken: '',
|
||||
images: ['moby/buildkit', 'ghcr.io/moby/mbuildkit'],
|
||||
labels: [],
|
||||
sepLabels: '\n',
|
||||
sepTags: '\n',
|
||||
tags: [],
|
||||
} as Inputs
|
||||
],
|
||||
[
|
||||
1,
|
||||
new Map<string, string>([
|
||||
['bake-target', 'metadata'],
|
||||
['images', 'moby/buildkit'],
|
||||
['sep-labels', ','],
|
||||
['sep-tags', ','],
|
||||
]),
|
||||
{
|
||||
context: ContextSource.workflow,
|
||||
bakeTarget: 'metadata',
|
||||
flavor: [],
|
||||
githubToken: '',
|
||||
images: ['moby/buildkit'],
|
||||
labels: [],
|
||||
sepLabels: ',',
|
||||
sepTags: ',',
|
||||
tags: [],
|
||||
} as Inputs
|
||||
],
|
||||
[
|
||||
2,
|
||||
new Map<string, string>([
|
||||
['images', 'moby/buildkit\n#comment\nghcr.io/moby/mbuildkit'],
|
||||
]),
|
||||
{
|
||||
context: ContextSource.workflow,
|
||||
bakeTarget: 'docker-metadata-action',
|
||||
flavor: [],
|
||||
githubToken: '',
|
||||
images: ['moby/buildkit', 'ghcr.io/moby/mbuildkit'],
|
||||
labels: [],
|
||||
sepLabels: '\n',
|
||||
sepTags: '\n',
|
||||
tags: [],
|
||||
} as Inputs
|
||||
],
|
||||
])(
|
||||
'[%d] given %p as inputs, returns %p',
|
||||
async (num: number, inputs: Map<string, string>, expected: Inputs) => {
|
||||
inputs.forEach((value: string, name: string) => {
|
||||
setInput(name, value);
|
||||
});
|
||||
expect(await getInputs()).toEqual(expected);
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
describe('getContext', () => {
|
||||
const originalEnv = process.env;
|
||||
beforeEach(() => {
|
||||
jest.resetModules();
|
||||
process.env = {
|
||||
...originalEnv,
|
||||
...dotenv.parse(fs.readFileSync(path.join(__dirname, 'fixtures/event_create_branch.env')))
|
||||
};
|
||||
});
|
||||
afterEach(() => {
|
||||
process.env = originalEnv;
|
||||
});
|
||||
|
||||
it('workflow', async () => {
|
||||
const context = await getContext(ContextSource.workflow);
|
||||
expect(context.ref).toEqual('refs/heads/dev');
|
||||
expect(context.sha).toEqual('5f3331d7f7044c18ca9f12c77d961c4d7cf3276a');
|
||||
});
|
||||
|
||||
it('git', async () => {
|
||||
jest.spyOn(Git, 'context').mockImplementation((): Promise<Context> => {
|
||||
return Promise.resolve({
|
||||
ref: 'refs/heads/git-test',
|
||||
sha: 'git-test-sha'
|
||||
} as Context);
|
||||
});
|
||||
|
||||
expect(results).toEqual(testValues);
|
||||
const context = await getContext(ContextSource.git);
|
||||
expect(context.ref).toEqual('refs/heads/git-test');
|
||||
expect(context.sha).toEqual('git-test-sha');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import {describe, expect, test} from '@jest/globals';
|
||||
|
||||
import {Flavor, Transform} from '../src/flavor';
|
||||
|
||||
describe('transform', () => {
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
import {describe, expect, jest, it} from '@jest/globals';
|
||||
import * as github from '../src/github';
|
||||
|
||||
import * as repoFixture from './fixtures/repo.json';
|
||||
jest.spyOn(github, 'repo').mockImplementation((): Promise<github.ReposGetResponseData> => {
|
||||
return <Promise<github.ReposGetResponseData>>(repoFixture as unknown);
|
||||
});
|
||||
|
||||
describe('repo', () => {
|
||||
it('returns GitHub repository', async () => {
|
||||
const repo = await github.repo(process.env.GITHUB_TOKEN || '');
|
||||
expect(repo.name).not.toBeNull();
|
||||
});
|
||||
});
|
||||
@@ -1,4 +1,5 @@
|
||||
import {describe, expect, test} from '@jest/globals';
|
||||
|
||||
import {Transform, Image} from '../src/image';
|
||||
|
||||
describe('transform', () => {
|
||||
@@ -86,7 +87,7 @@ describe('transform', () => {
|
||||
[
|
||||
[`name/foo,name=name/bar,enable=true`], undefined, true
|
||||
]
|
||||
])('given %p', async (l: string[], expected: Image[], invalid: boolean) => {
|
||||
])('given %p', async (l: string[], expected: Image[] | undefined, invalid: boolean) => {
|
||||
try {
|
||||
const images = Transform(l);
|
||||
expect(images).toEqual(expected);
|
||||
|
||||
+752
-749
File diff suppressed because it is too large.
Load diff
@@ -1,4 +1,5 @@
|
||||
import {describe, expect, test} from '@jest/globals';
|
||||
|
||||
import {Transform, Parse, Tag, Type, RefEvent, ShaFormat, DefaultPriorities} from '../src/tag';
|
||||
|
||||
describe('transform', () => {
|
||||
|
||||
@@ -7,6 +7,10 @@ branding:
|
||||
color: 'blue'
|
||||
|
||||
inputs:
|
||||
context:
|
||||
description: 'Where to get context data. Allowed options are "workflow" (default), "git".'
|
||||
default: "workflow"
|
||||
required: true
|
||||
images:
|
||||
description: 'List of Docker images to use as base name for tags'
|
||||
required: true
|
||||
|
||||
+16
-16
@@ -16,14 +16,14 @@ COPY --from=deps /vendor /
|
||||
|
||||
FROM deps AS vendor-validate
|
||||
RUN --mount=type=bind,target=.,rw <<EOT
|
||||
set -e
|
||||
git add -A
|
||||
cp -rf /vendor/* .
|
||||
if [ -n "$(git status --porcelain -- yarn.lock)" ]; then
|
||||
echo >&2 'ERROR: Vendor result differs. Please vendor your package with "docker buildx bake vendor-update"'
|
||||
git status --porcelain -- yarn.lock
|
||||
exit 1
|
||||
fi
|
||||
set -e
|
||||
git add -A
|
||||
cp -rf /vendor/* .
|
||||
if [ -n "$(git status --porcelain -- yarn.lock)" ]; then
|
||||
echo >&2 'ERROR: Vendor result differs. Please vendor your package with "docker buildx bake vendor-update"'
|
||||
git status --porcelain -- yarn.lock
|
||||
exit 1
|
||||
fi
|
||||
EOT
|
||||
|
||||
FROM deps AS build
|
||||
@@ -36,14 +36,14 @@ COPY --from=build /out /
|
||||
|
||||
FROM build AS build-validate
|
||||
RUN --mount=type=bind,target=.,rw <<EOT
|
||||
set -e
|
||||
git add -A
|
||||
cp -rf /out/* .
|
||||
if [ -n "$(git status --porcelain -- dist)" ]; then
|
||||
echo >&2 'ERROR: Build result differs. Please build first with "docker buildx bake build"'
|
||||
git status --porcelain -- dist
|
||||
exit 1
|
||||
fi
|
||||
set -e
|
||||
git add -A
|
||||
cp -rf /out/* .
|
||||
if [ -n "$(git status --porcelain -- dist)" ]; then
|
||||
echo >&2 'ERROR: Build result differs. Please build first with "docker buildx bake build"'
|
||||
git status --porcelain -- dist
|
||||
exit 1
|
||||
fi
|
||||
EOT
|
||||
|
||||
FROM deps AS format
|
||||
|
||||
+22
-14
@@ -1,66 +1,74 @@
|
||||
require('./sourcemap-register.js');(()=>{var __webpack_modules__={7351:function(p,o,a){"use strict";var t=this&&this.__createBinding||(Object.create?function(p,o,a,t){if(t===undefined)t=a;Object.defineProperty(p,t,{enumerable:true,get:function(){return o[a]}})}:function(p,o,a,t){if(t===undefined)t=a;p[t]=o[a]});var b=this&&this.__setModuleDefault||(Object.create?function(p,o){Object.defineProperty(p,"default",{enumerable:true,value:o})}:function(p,o){p["default"]=o});var d=this&&this.__importStar||function(p){if(p&&p.__esModule)return p;var o={};if(p!=null)for(var a in p)if(a!=="default"&&Object.hasOwnProperty.call(p,a))t(o,p,a);b(o,p);return o};Object.defineProperty(o,"__esModule",{value:true});o.issue=o.issueCommand=void 0;const M=d(a(2037));const r=a(5278);function issueCommand(p,o,a){const t=new Command(p,o,a);process.stdout.write(t.toString()+M.EOL)}o.issueCommand=issueCommand;function issue(p,o=""){issueCommand(p,{},o)}o.issue=issue;const z="::";class Command{constructor(p,o,a){if(!p){p="missing.command"}this.command=p;this.properties=o;this.message=a}toString(){let p=z+this.command;if(this.properties&&Object.keys(this.properties).length>0){p+=" ";let o=true;for(const a in this.properties){if(this.properties.hasOwnProperty(a)){const t=this.properties[a];if(t){if(o){o=false}else{p+=","}p+=`${a}=${escapeProperty(t)}`}}}}p+=`${z}${escapeData(this.message)}`;return p}}function escapeData(p){return r.toCommandValue(p).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(p){return r.toCommandValue(p).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(p,o,a){"use strict";var t=this&&this.__createBinding||(Object.create?function(p,o,a,t){if(t===undefined)t=a;Object.defineProperty(p,t,{enumerable:true,get:function(){return o[a]}})}:function(p,o,a,t){if(t===undefined)t=a;p[t]=o[a]});var b=this&&this.__setModuleDefault||(Object.create?function(p,o){Object.defineProperty(p,"default",{enumerable:true,value:o})}:function(p,o){p["default"]=o});var d=this&&this.__importStar||function(p){if(p&&p.__esModule)return p;var o={};if(p!=null)for(var a in p)if(a!=="default"&&Object.hasOwnProperty.call(p,a))t(o,p,a);b(o,p);return o};var M=this&&this.__awaiter||function(p,o,a,t){function adopt(p){return p instanceof a?p:new a((function(o){o(p)}))}return new(a||(a=Promise))((function(a,b){function fulfilled(p){try{step(t.next(p))}catch(p){b(p)}}function rejected(p){try{step(t["throw"](p))}catch(p){b(p)}}function step(p){p.done?a(p.value):adopt(p.value).then(fulfilled,rejected)}step((t=t.apply(p,o||[])).next())}))};Object.defineProperty(o,"__esModule",{value:true});o.getIDToken=o.getState=o.saveState=o.group=o.endGroup=o.startGroup=o.info=o.notice=o.warning=o.error=o.debug=o.isDebug=o.setFailed=o.setCommandEcho=o.setOutput=o.getBooleanInput=o.getMultilineInput=o.getInput=o.addPath=o.setSecret=o.exportVariable=o.ExitCode=void 0;const r=a(7351);const z=a(717);const c=a(5278);const i=d(a(2037));const O=d(a(1017));const u=a(8041);var l;(function(p){p[p["Success"]=0]="Success";p[p["Failure"]=1]="Failure"})(l=o.ExitCode||(o.ExitCode={}));function exportVariable(p,o){const a=c.toCommandValue(o);process.env[p]=a;const t=process.env["GITHUB_ENV"]||"";if(t){return z.issueFileCommand("ENV",z.prepareKeyValueMessage(p,o))}r.issueCommand("set-env",{name:p},a)}o.exportVariable=exportVariable;function setSecret(p){r.issueCommand("add-mask",{},p)}o.setSecret=setSecret;function addPath(p){const o=process.env["GITHUB_PATH"]||"";if(o){z.issueFileCommand("PATH",p)}else{r.issueCommand("add-path",{},p)}process.env["PATH"]=`${p}${O.delimiter}${process.env["PATH"]}`}o.addPath=addPath;function getInput(p,o){const a=process.env[`INPUT_${p.replace(/ /g,"_").toUpperCase()}`]||"";if(o&&o.required&&!a){throw new Error(`Input required and not supplied: ${p}`)}if(o&&o.trimWhitespace===false){return a}return a.trim()}o.getInput=getInput;function getMultilineInput(p,o){const a=getInput(p,o).split("\n").filter((p=>p!==""));if(o&&o.trimWhitespace===false){return a}return a.map((p=>p.trim()))}o.getMultilineInput=getMultilineInput;function getBooleanInput(p,o){const a=["true","True","TRUE"];const t=["false","False","FALSE"];const b=getInput(p,o);if(a.includes(b))return true;if(t.includes(b))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${p}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}o.getBooleanInput=getBooleanInput;function setOutput(p,o){const a=process.env["GITHUB_OUTPUT"]||"";if(a){return z.issueFileCommand("OUTPUT",z.prepareKeyValueMessage(p,o))}process.stdout.write(i.EOL);r.issueCommand("set-output",{name:p},c.toCommandValue(o))}o.setOutput=setOutput;function setCommandEcho(p){r.issue("echo",p?"on":"off")}o.setCommandEcho=setCommandEcho;function setFailed(p){process.exitCode=l.Failure;error(p)}o.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}o.isDeLine truncated
|
||||
require('./sourcemap-register.js');(()=>{var __webpack_modules__={7351:function(p,r,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(p,r,a,i){if(i===undefined)i=a;Object.defineProperty(p,i,{enumerable:true,get:function(){return r[a]}})}:function(p,r,a,i){if(i===undefined)i=a;p[i]=r[a]});var d=this&&this.__setModuleDefault||(Object.create?function(p,r){Object.defineProperty(p,"default",{enumerable:true,value:r})}:function(p,r){p["default"]=r});var c=this&&this.__importStar||function(p){if(p&&p.__esModule)return p;var r={};if(p!=null)for(var a in p)if(a!=="default"&&Object.hasOwnProperty.call(p,a))i(r,p,a);d(r,p);return r};Object.defineProperty(r,"__esModule",{value:true});r.issue=r.issueCommand=void 0;const b=c(a(2037));const M=a(5278);function issueCommand(p,r,a){const i=new Command(p,r,a);process.stdout.write(i.toString()+b.EOL)}r.issueCommand=issueCommand;function issue(p,r=""){issueCommand(p,{},r)}r.issue=issue;const z="::";class Command{constructor(p,r,a){if(!p){p="missing.command"}this.command=p;this.properties=r;this.message=a}toString(){let p=z+this.command;if(this.properties&&Object.keys(this.properties).length>0){p+=" ";let r=true;for(const a in this.properties){if(this.properties.hasOwnProperty(a)){const i=this.properties[a];if(i){if(r){r=false}else{p+=","}p+=`${a}=${escapeProperty(i)}`}}}}p+=`${z}${escapeData(this.message)}`;return p}}function escapeData(p){return M.toCommandValue(p).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(p){return M.toCommandValue(p).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(p,r,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(p,r,a,i){if(i===undefined)i=a;Object.defineProperty(p,i,{enumerable:true,get:function(){return r[a]}})}:function(p,r,a,i){if(i===undefined)i=a;p[i]=r[a]});var d=this&&this.__setModuleDefault||(Object.create?function(p,r){Object.defineProperty(p,"default",{enumerable:true,value:r})}:function(p,r){p["default"]=r});var c=this&&this.__importStar||function(p){if(p&&p.__esModule)return p;var r={};if(p!=null)for(var a in p)if(a!=="default"&&Object.hasOwnProperty.call(p,a))i(r,p,a);d(r,p);return r};var b=this&&this.__awaiter||function(p,r,a,i){function adopt(p){return p instanceof a?p:new a((function(r){r(p)}))}return new(a||(a=Promise))((function(a,d){function fulfilled(p){try{step(i.next(p))}catch(p){d(p)}}function rejected(p){try{step(i["throw"](p))}catch(p){d(p)}}function step(p){p.done?a(p.value):adopt(p.value).then(fulfilled,rejected)}step((i=i.apply(p,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.getIDToken=r.getState=r.saveState=r.group=r.endGroup=r.startGroup=r.info=r.notice=r.warning=r.error=r.debug=r.isDebug=r.setFailed=r.setCommandEcho=r.setOutput=r.getBooleanInput=r.getMultilineInput=r.getInput=r.addPath=r.setSecret=r.exportVariable=r.ExitCode=void 0;const M=a(7351);const z=a(717);const u=a(5278);const O=c(a(2037));const l=c(a(1017));const A=a(8041);var m;(function(p){p[p["Success"]=0]="Success";p[p["Failure"]=1]="Failure"})(m=r.ExitCode||(r.ExitCode={}));function exportVariable(p,r){const a=u.toCommandValue(r);process.env[p]=a;const i=process.env["GITHUB_ENV"]||"";if(i){return z.issueFileCommand("ENV",z.prepareKeyValueMessage(p,r))}M.issueCommand("set-env",{name:p},a)}r.exportVariable=exportVariable;function setSecret(p){M.issueCommand("add-mask",{},p)}r.setSecret=setSecret;function addPath(p){const r=process.env["GITHUB_PATH"]||"";if(r){z.issueFileCommand("PATH",p)}else{M.issueCommand("add-path",{},p)}process.env["PATH"]=`${p}${l.delimiter}${process.env["PATH"]}`}r.addPath=addPath;function getInput(p,r){const a=process.env[`INPUT_${p.replace(/ /g,"_").toUpperCase()}`]||"";if(r&&r.required&&!a){throw new Error(`Input required and not supplied: ${p}`)}if(r&&r.trimWhitespace===false){return a}return a.trim()}r.getInput=getInput;function getMultilineInput(p,r){const a=getInput(p,r).split("\n").filter((p=>p!==""));if(r&&r.trimWhitespace===false){return a}return a.map((p=>p.trim()))}r.getMultilineInput=getMultilineInput;function getBooleanInput(p,r){const a=["true","True","TRUE"];const i=["false","False","FALSE"];const d=getInput(p,r);if(a.includes(d))return true;if(i.includes(d))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${p}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}r.getBooleanInput=getBooleanInput;function setOutput(p,r){const a=process.env["GITHUB_OUTPUT"]||"";if(a){return z.issueFileCommand("OUTPUT",z.prepareKeyValueMessage(p,r))}process.stdout.write(O.EOL);M.issueCommand("set-output",{name:p},u.toCommandValue(r))}r.setOutput=setOutput;function setCommandEcho(p){M.issue("echo",p?"on":"off")}r.setCommandEcho=setCommandEcho;function setFailed(p){process.exitCode=m.Failure;error(p)}r.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}r.isDeLine truncated
|
||||
/*!
|
||||
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
||||
*
|
||||
* Copyright (c) 2014-2017, Jon Schlinkert.
|
||||
* Released under the MIT License.
|
||||
*/function isObject(p){return Object.prototype.toString.call(p)==="[object Object]"}function isPlainObject(p){var o,a;if(isObject(p)===false)return false;o=p.constructor;if(o===undefined)return true;a=o.prototype;if(isObject(a)===false)return false;if(a.hasOwnProperty("isPrototypeOf")===false){return false}return true}o.isPlainObject=isPlainObject},7129:(p,o,a)=>{"use strict";const t=a(665);const b=Symbol("max");const d=Symbol("length");const M=Symbol("lengthCalculator");const r=Symbol("allowStale");const z=Symbol("maxAge");const c=Symbol("dispose");const i=Symbol("noDisposeOnSet");const O=Symbol("lruList");const u=Symbol("cache");const l=Symbol("updateAgeOnGet");const naiveLength=()=>1;class LRUCache{constructor(p){if(typeof p==="number")p={max:p};if(!p)p={};if(p.max&&(typeof p.max!=="number"||p.max<0))throw new TypeError("max must be a non-negative number");const o=this[b]=p.max||Infinity;const a=p.length||naiveLength;this[M]=typeof a!=="function"?naiveLength:a;this[r]=p.stale||false;if(p.maxAge&&typeof p.maxAge!=="number")throw new TypeError("maxAge must be a number");this[z]=p.maxAge||0;this[c]=p.dispose;this[i]=p.noDisposeOnSet||false;this[l]=p.updateAgeOnGet||false;this.reset()}set max(p){if(typeof p!=="number"||p<0)throw new TypeError("max must be a non-negative number");this[b]=p||Infinity;trim(this)}get max(){return this[b]}set allowStale(p){this[r]=!!p}get allowStale(){return this[r]}set maxAge(p){if(typeof p!=="number")throw new TypeError("maxAge must be a non-negative number");this[z]=p;trim(this)}get maxAge(){return this[z]}set lengthCalculator(p){if(typeof p!=="function")p=naiveLength;if(p!==this[M]){this[M]=p;this[d]=0;this[O].forEach((p=>{p.length=this[M](p.value,p.key);this[d]+=p.length}))}trim(this)}get lengthCalculator(){return this[M]}get length(){return this[d]}get itemCount(){return this[O].length}rforEach(p,o){o=o||this;for(let a=this[O].tail;a!==null;){const t=a.prev;forEachStep(this,p,a,o);a=t}}forEach(p,o){o=o||this;for(let a=this[O].head;a!==null;){const t=a.next;forEachStep(this,p,a,o);a=t}}keys(){return this[O].toArray().map((p=>p.key))}values(){return this[O].toArray().map((p=>p.value))}reset(){if(this[c]&&this[O]&&this[O].length){this[O].forEach((p=>this[c](p.key,p.value)))}this[u]=new Map;this[O]=new t;this[d]=0}dump(){return this[O].map((p=>isStale(this,p)?false:{k:p.key,v:p.value,e:p.now+(p.maxAge||0)})).toArray().filter((p=>p))}dumpLru(){return this[O]}set(p,o,a){a=a||this[z];if(a&&typeof a!=="number")throw new TypeError("maxAge must be a number");const t=a?Date.now():0;const r=this[M](o,p);if(this[u].has(p)){if(r>this[b]){del(this,this[u].get(p));return false}const M=this[u].get(p);const z=M.value;if(this[c]){if(!this[i])this[c](p,z.value)}z.now=t;z.maxAge=a;z.value=o;this[d]+=r-z.length;z.length=r;this.get(p);trim(this);return true}const l=new Entry(p,o,r,t,a);if(l.length>this[b]){if(this[c])this[c](p,o);return false}this[d]+=l.length;this[O].unshift(l);this[u].set(p,this[O].head);trim(this);return true}has(p){if(!this[u].has(p))return false;const o=this[u].get(p).value;return!isStale(this,o)}get(p){return get(this,p,true)}peek(p){return get(this,p,false)}pop(){const p=this[O].tail;if(!p)return null;del(this,p);return p.value}del(p){del(this,this[u].get(p))}load(p){this.reset();const o=Date.now();for(let a=p.length-1;a>=0;a--){const t=p[a];const b=t.e||0;if(b===0)this.set(t.k,t.v);else{const p=b-o;if(p>0){this.set(t.k,t.v,p)}}}}prune(){this[u].forEach(((p,o)=>get(this,o,false)))}}const get=(p,o,a)=>{const t=p[u].get(o);if(t){const o=t.value;if(isStale(p,o)){del(p,t);if(!p[r])return undefined}else{if(a){if(p[l])t.value.now=Date.now();p[O].unshiftNode(t)}}return o.value}};const isStale=(p,o)=>{if(!o||!o.maxAge&&!p[z])return false;const a=Date.now()-o.now;return o.maxAge?a>o.maxAge:p[z]&&a>p[z]};const trim=p=>{if(p[d]>p[b]){for(let o=p[O].tail;p[d]>p[b]&&o!==null;){const a=o.prev;del(p,o);o=a}}};const del=(p,o)=>{if(o){const a=o.value;if(p[c])p[c](a.key,a.value);p[d]-=a.length;p[u].delete(a.key);p[O].removeNode(o)}};class Entry{constructor(p,o,a,t,b){this.key=p;this.value=o;this.length=a;this.now=t;this.maxAge=b||0}}const forEachStep=(p,o,a,t)=>{let b=a.value;if(isStale(p,b)){del(p,a);if(!p[r])b=undefined}if(b)o.call(t,b.value,b.key,p)};p.exports=LRUCache},7936:(p,o,a)=>{var t=p.exports=a(6345);t.tz.load(a(1128))},6345:function(p,o,a){
|
||||
*/function isObject(p){return Object.prototype.toString.call(p)==="[object Object]"}function isPlainObject(p){var r,a;if(isObject(p)===false)return false;r=p.constructor;if(r===undefined)return true;a=r.prototype;if(isObject(a)===false)return false;if(a.hasOwnProperty("isPrototypeOf")===false){return false}return true}r.isPlainObject=isPlainObject},4329:p=>{"use strict";function e(p){this.message=p}e.prototype=new Error,e.prototype.name="InvalidCharacterError";var r="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(p){var r=String(p).replace(/=+$/,"");if(r.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var a,i,d=0,c=0,b="";i=r.charAt(c++);~i&&(a=d%4?64*a+i:i,d++%4)?b+=String.fromCharCode(255&a>>(-2*d&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return b};function t(p){var a=p.replace(/-/g,"+").replace(/_/g,"/");switch(a.length%4){case 0:break;case 2:a+="==";break;case 3:a+="=";break;default:throw"Illegal base64url string!"}try{return function(p){return decodeURIComponent(r(p).replace(/(.)/g,(function(p,r){var a=r.charCodeAt(0).toString(16).toUpperCase();return a.length<2&&(a="0"+a),"%"+a})))}(a)}catch(p){return r(a)}}function n(p){this.message=p}function o(p,r){if("string"!=typeof p)throw new n("Invalid token specified");var a=!0===(r=r||{}).header?0:1;try{return JSON.parse(t(p.split(".")[a]))}catch(p){throw new n("Invalid token specified: "+p.message)}}n.prototype=new Error,n.prototype.name="InvalidTokenError";const a=o;a.default=o,a.InvalidTokenError=n,p.exports=a},7129:(p,r,a)=>{"use strict";const i=a(665);const d=Symbol("max");const c=Symbol("length");const b=Symbol("lengthCalculator");const M=Symbol("allowStale");const z=Symbol("maxAge");const u=Symbol("dispose");const O=Symbol("noDisposeOnSet");const l=Symbol("lruList");const A=Symbol("cache");const m=Symbol("updateAgeOnGet");const naiveLength=()=>1;class LRUCache{constructor(p){if(typeof p==="number")p={max:p};if(!p)p={};if(p.max&&(typeof p.max!=="number"||p.max<0))throw new TypeError("max must be a non-negative number");const r=this[d]=p.max||Infinity;const a=p.length||naiveLength;this[b]=typeof a!=="function"?naiveLength:a;this[M]=p.stale||false;if(p.maxAge&&typeof p.maxAge!=="number")throw new TypeError("maxAge must be a number");this[z]=p.maxAge||0;this[u]=p.dispose;this[O]=p.noDisposeOnSet||false;this[m]=p.updateAgeOnGet||false;this.reset()}set max(p){if(typeof p!=="number"||p<0)throw new TypeError("max must be a non-negative number");this[d]=p||Infinity;trim(this)}get max(){return this[d]}set allowStale(p){this[M]=!!p}get allowStale(){return this[M]}set maxAge(p){if(typeof p!=="number")throw new TypeError("maxAge must be a non-negative number");this[z]=p;trim(this)}get maxAge(){return this[z]}set lengthCalculator(p){if(typeof p!=="function")p=naiveLength;if(p!==this[b]){this[b]=p;this[c]=0;this[l].forEach((p=>{p.length=this[b](p.value,p.key);this[c]+=p.length}))}trim(this)}get lengthCalculator(){return this[b]}get length(){return this[c]}get itemCount(){return this[l].length}rforEach(p,r){r=r||this;for(let a=this[l].tail;a!==null;){const i=a.prev;forEachStep(this,p,a,r);a=i}}forEach(p,r){r=r||this;for(let a=this[l].head;a!==null;){const i=a.next;forEachStep(this,p,a,r);a=i}}keys(){return this[l].toArray().map((p=>p.key))}values(){return this[l].toArray().map((p=>p.value))}reset(){if(this[u]&&this[l]&&this[l].length){this[l].forEach((p=>this[u](p.key,p.value)))}this[A]=new Map;this[l]=new i;this[c]=0}dump(){return this[l].map((p=>isStale(this,p)?false:{k:p.key,v:p.value,e:p.now+(p.maxAge||0)})).toArray().filter((p=>p))}dumpLru(){return this[l]}set(p,r,a){a=a||this[z];if(a&&typeof a!=="number")throw new TypeError("maxAge must be a number");const i=a?Date.now():0;const M=this[b](r,p);if(this[A].has(p)){if(M>this[d]){del(this,this[A].get(p));return false}const b=this[A].get(p);const z=b.value;if(this[u]){if(!this[O])this[u](p,z.value)}z.now=i;z.maxAge=a;z.value=r;this[c]+=M-z.length;z.length=M;this.get(p);trim(this);return true}const m=new Entry(p,r,M,i,a);if(m.length>this[d]){if(this[u])this[u](p,r);return false}this[c]+=m.length;this[l].unshift(m);this[A].set(p,this[l].head);trim(this);return true}has(p){if(!this[A].has(p))return false;const r=this[A].get(p).value;return!isStale(this,r)}get(p){return get(this,p,true)}peek(p){return get(this,p,false)}pop(){const p=this[l].tail;if(!p)return null;del(this,p);return p.value}del(p){del(this,this[A].get(p))}load(p){this.reset();const r=Date.now();for(let a=p.length-1;a>=0;a--){const i=p[a];const d=i.e||0;if(d===0)this.set(i.k,i.v);else{const p=d-r;if(p>0){this.set(i.k,i.v,p)}}}}prune(){this[A].forEach(((p,r)=>get(this,r,false)))}}const get=(p,r,a)=>{const i=p[A].get(r);if(i){const r=i.value;if(isStale(p,r)){del(p,i);if(!p[M])return undefined}else{if(a){if(p[m])i.value.now=Date.now();p[l].unshiftNode(i)}}return r.value}};const isStale=(p,r)=>{if(!r||!r.maxAge&&!p[z])return false;const
Line truncated
|
||||
//! moment-timezone.js
|
||||
//! version : 0.5.40
|
||||
//! version : 0.5.43
|
||||
//! Copyright (c) JS Foundation and other contributors
|
||||
//! license : MIT
|
||||
//! github.com/moment/moment-timezone
|
||||
(function(o,t){"use strict";if(true&&p.exports){p.exports=t(a(9623))}else if(typeof define==="function"&&define.amd){define(["moment"],t)}else{t(o.moment)}})(this,(function(p){"use strict";if(p.version===undefined&&p.default){p=p.default}var o="0.5.40",a={},t={},b={},d={},M={},r;if(!p||typeof p.version!=="string"){logError("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/")}var z=p.version.split("."),c=+z[0],i=+z[1];if(c<2||c===2&&i<6){logError("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+p.version+". See momentjs.com")}function charCodeToInt(p){if(p>96){return p-87}else if(p>64){return p-29}return p-48}function unpackBase60(p){var o=0,a=p.split("."),t=a[0],b=a[1]||"",d=1,M,r=0,z=1;if(p.charCodeAt(0)===45){o=1;z=-1}for(o;o<t.length;o++){M=charCodeToInt(t.charCodeAt(o));r=60*r+M}for(o=0;o<b.length;o++){d=d/60;M=charCodeToInt(b.charCodeAt(o));r+=M*d}return r*z}function arrayToInt(p){for(var o=0;o<p.length;o++){p[o]=unpackBase60(p[o])}}function intToUntil(p,o){for(var a=0;a<o;a++){p[a]=Math.round((p[a-1]||0)+p[a]*6e4)}p[o-1]=Infinity}function mapIndices(p,o){var a=[],t;for(t=0;t<o.length;t++){a[t]=p[o[t]]}return a}function unpack(p){var o=p.split("|"),a=o[2].split(" "),t=o[3].split(""),b=o[4].split(" ");arrayToInt(a);arrayToInt(t);arrayToInt(b);intToUntil(b,t.length);return{name:o[0],abbrs:mapIndices(o[1].split(" "),t),offsets:mapIndices(a,t),untils:b,population:o[5]|0}}function Zone(p){if(p){this._set(unpack(p))}}Zone.prototype={_set:function(p){this.name=p.name;this.abbrs=p.abbrs;this.untils=p.untils;this.offsets=p.offsets;this.population=p.population},_index:function(p){var o=+p,a=this.untils,t;for(t=0;t<a.length;t++){if(o<a[t]){return t}}},countries:function(){var p=this.name;return Object.keys(b).filter((function(o){return b[o].zones.indexOf(p)!==-1}))},parse:function(p){var o=+p,a=this.offsets,t=this.untils,b=t.length-1,d,M,r,z;for(z=0;z<b;z++){d=a[z];M=a[z+1];r=a[z?z-1:z];if(d<M&&tz.moveAmbiguousForward){d=M}else if(d>r&&tz.moveInvalidForward){d=r}if(o<t[z]-d*6e4){return a[z]}}return a[b]},abbr:function(p){return this.abbrs[this._index(p)]},offset:function(p){logError("zone.offset has been deprecated in favor of zone.utcOffset");return this.offsets[this._index(p)]},utcOffset:function(p){return this.offsets[this._index(p)]}};function Country(p,o){this.name=p;this.zones=o}function OffsetAt(p){var o=p.toTimeString();var a=o.match(/\([a-z ]+\)/i);if(a&&a[0]){a=a[0].match(/[A-Z]/g);a=a?a.join(""):undefined}else{a=o.match(/[A-Z]{3,5}/g);a=a?a[0]:undefined}if(a==="GMT"){a=undefined}this.at=+p;this.abbr=a;this.offset=p.getTimezoneOffset()}function ZoneScore(p){this.zone=p;this.offsetScore=0;this.abbrScore=0}ZoneScore.prototype.scoreOffsetAt=function(p){this.offsetScore+=Math.abs(this.zone.utcOffset(p.at)-p.offset);if(this.zone.abbr(p.at).replace(/[^A-Z]/g,"")!==p.abbr){this.abbrScore++}};function findChange(p,o){var a,t;while(t=((o.at-p.at)/12e4|0)*6e4){a=new OffsetAt(new Date(p.at+t));if(a.offset===p.offset){p=a}else{o=a}}return p}function userOffsets(){var p=(new Date).getFullYear()-2,o=new OffsetAt(new Date(p,0,1)),a=[o],t,b,d;for(d=1;d<48;d++){b=new OffsetAt(new Date(p,d,1));if(b.offset!==o.offset){t=findChange(o,b);a.push(t);a.push(new OffsetAt(new Date(t.at+6e4)))}o=b}for(d=0;d<4;d++){a.push(new OffsetAt(new Date(p+d,0,1)));a.push(new OffsetAt(new Date(p+d,6,1)))}return a}function sortZoneScores(p,o){if(p.offsetScore!==o.offsetScore){return p.offsetScore-o.offsetScore}if(p.abbrScore!==o.abbrScore){return p.abbrScore-o.abbrScore}if(p.zone.population!==o.zone.population){return o.zone.population-p.zone.population}return o.zone.name.localeCompare(p.zone.name)}function addToGuesses(p,o){var a,t;arrayToInt(o);for(a=0;a<o.length;a++){t=o[a];M[t]=M[t]||{};M[t][p]=true}}function guessesForUserOffsets(p){var o=p.length,a={},t=[],b,r,z;for(b=0;b<o;b++){z=M[p[b].offset]||{};for(r in z){if(z.hasOwnProperty(r)){a[r]=true}}}for(b in a){if(a.hasOwnProperty(b)){t.push(d[b])}}return t}function rebuildGuess(){try{var p=Intl.DateTimeFormat().resolvedOptions().timeZone;if(p&&p.length>3){var o=d[normalizeName(p)];if(o){return o}logError("Moment Timezone found "+p+" from the Intl api, but did not have that data loaded.")}}catch(p){}var a=userOffsets(),t=a.length,b=guessesForUserOffsets(a),M=[],r,z,c;for(z=0;z<b.length;z++){r=new ZoneScore(getZone(b[z]),t);for(c=0;c<t;c++){r.scoreOffsetAt(a[c])}M.push(r)}M.sort(sortZoneScores);return M.length>0?M[0].zone.name:undefined}function guess(p){if(!r||p){r=rebuildGuess()}return r}function normalizeName(p){return(p||"").toLowerCase().replace(/\//g,"_")}function addZone(p){var o,t,b,M;if(typeof p==="string"){p=[p]}for(o=0;o<p.length;o++){b=p[o].split("|");t=b[0];M=normalizeName(t);a[M]=p[o];d[M]=t;addToGuesses(M,b[2].split(" "))}}function getZone(p,o){p=normalizeName(p);var b=a[p];var M;if(b instanceof Zone){return b}if(typeof b==="string"){b=new Zone(b);a[p]=b;return b}if(t[p]&&o!==getZone&&(M=getZone(t[p],getZone))Line truncated
|
||||
(function(r,i){"use strict";if(true&&p.exports){p.exports=i(a(9623))}else if(typeof define==="function"&&define.amd){define(["moment"],i)}else{i(r.moment)}})(this,(function(p){"use strict";if(p.version===undefined&&p.default){p=p.default}var r="0.5.43",a={},i={},d={},c={},b={},M;if(!p||typeof p.version!=="string"){logError("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/")}var z=p.version.split("."),u=+z[0],O=+z[1];if(u<2||u===2&&O<6){logError("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+p.version+". See momentjs.com")}function charCodeToInt(p){if(p>96){return p-87}else if(p>64){return p-29}return p-48}function unpackBase60(p){var r=0,a=p.split("."),i=a[0],d=a[1]||"",c=1,b,M=0,z=1;if(p.charCodeAt(0)===45){r=1;z=-1}for(r;r<i.length;r++){b=charCodeToInt(i.charCodeAt(r));M=60*M+b}for(r=0;r<d.length;r++){c=c/60;b=charCodeToInt(d.charCodeAt(r));M+=b*c}return M*z}function arrayToInt(p){for(var r=0;r<p.length;r++){p[r]=unpackBase60(p[r])}}function intToUntil(p,r){for(var a=0;a<r;a++){p[a]=Math.round((p[a-1]||0)+p[a]*6e4)}p[r-1]=Infinity}function mapIndices(p,r){var a=[],i;for(i=0;i<r.length;i++){a[i]=p[r[i]]}return a}function unpack(p){var r=p.split("|"),a=r[2].split(" "),i=r[3].split(""),d=r[4].split(" ");arrayToInt(a);arrayToInt(i);arrayToInt(d);intToUntil(d,i.length);return{name:r[0],abbrs:mapIndices(r[1].split(" "),i),offsets:mapIndices(a,i),untils:d,population:r[5]|0}}function Zone(p){if(p){this._set(unpack(p))}}Zone.prototype={_set:function(p){this.name=p.name;this.abbrs=p.abbrs;this.untils=p.untils;this.offsets=p.offsets;this.population=p.population},_index:function(p){var r=+p,a=this.untils,i;for(i=0;i<a.length;i++){if(r<a[i]){return i}}},countries:function(){var p=this.name;return Object.keys(d).filter((function(r){return d[r].zones.indexOf(p)!==-1}))},parse:function(p){var r=+p,a=this.offsets,i=this.untils,d=i.length-1,c,b,M,z;for(z=0;z<d;z++){c=a[z];b=a[z+1];M=a[z?z-1:z];if(c<b&&tz.moveAmbiguousForward){c=b}else if(c>M&&tz.moveInvalidForward){c=M}if(r<i[z]-c*6e4){return a[z]}}return a[d]},abbr:function(p){return this.abbrs[this._index(p)]},offset:function(p){logError("zone.offset has been deprecated in favor of zone.utcOffset");return this.offsets[this._index(p)]},utcOffset:function(p){return this.offsets[this._index(p)]}};function Country(p,r){this.name=p;this.zones=r}function OffsetAt(p){var r=p.toTimeString();var a=r.match(/\([a-z ]+\)/i);if(a&&a[0]){a=a[0].match(/[A-Z]/g);a=a?a.join(""):undefined}else{a=r.match(/[A-Z]{3,5}/g);a=a?a[0]:undefined}if(a==="GMT"){a=undefined}this.at=+p;this.abbr=a;this.offset=p.getTimezoneOffset()}function ZoneScore(p){this.zone=p;this.offsetScore=0;this.abbrScore=0}ZoneScore.prototype.scoreOffsetAt=function(p){this.offsetScore+=Math.abs(this.zone.utcOffset(p.at)-p.offset);if(this.zone.abbr(p.at).replace(/[^A-Z]/g,"")!==p.abbr){this.abbrScore++}};function findChange(p,r){var a,i;while(i=((r.at-p.at)/12e4|0)*6e4){a=new OffsetAt(new Date(p.at+i));if(a.offset===p.offset){p=a}else{r=a}}return p}function userOffsets(){var p=(new Date).getFullYear()-2,r=new OffsetAt(new Date(p,0,1)),a=[r],i,d,c;for(c=1;c<48;c++){d=new OffsetAt(new Date(p,c,1));if(d.offset!==r.offset){i=findChange(r,d);a.push(i);a.push(new OffsetAt(new Date(i.at+6e4)))}r=d}for(c=0;c<4;c++){a.push(new OffsetAt(new Date(p+c,0,1)));a.push(new OffsetAt(new Date(p+c,6,1)))}return a}function sortZoneScores(p,r){if(p.offsetScore!==r.offsetScore){return p.offsetScore-r.offsetScore}if(p.abbrScore!==r.abbrScore){return p.abbrScore-r.abbrScore}if(p.zone.population!==r.zone.population){return r.zone.population-p.zone.population}return r.zone.name.localeCompare(p.zone.name)}function addToGuesses(p,r){var a,i;arrayToInt(r);for(a=0;a<r.length;a++){i=r[a];b[i]=b[i]||{};b[i][p]=true}}function guessesForUserOffsets(p){var r=p.length,a={},i=[],d,M,z;for(d=0;d<r;d++){z=b[p[d].offset]||{};for(M in z){if(z.hasOwnProperty(M)){a[M]=true}}}for(d in a){if(a.hasOwnProperty(d)){i.push(c[d])}}return i}function rebuildGuess(){try{var p=Intl.DateTimeFormat().resolvedOptions().timeZone;if(p&&p.length>3){var r=c[normalizeName(p)];if(r){return r}logError("Moment Timezone found "+p+" from the Intl api, but did not have that data loaded.")}}catch(p){}var a=userOffsets(),i=a.length,d=guessesForUserOffsets(a),b=[],M,z,u;for(z=0;z<d.length;z++){M=new ZoneScore(getZone(d[z]),i);for(u=0;u<i;u++){M.scoreOffsetAt(a[u])}b.push(M)}b.sort(sortZoneScores);return b.length>0?b[0].zone.name:undefined}function guess(p){if(!M||p){M=rebuildGuess()}return M}function normalizeName(p){return(p||"").toLowerCase().replace(/\//g,"_")}function addZone(p){var r,i,d,b;if(typeof p==="string"){p=[p]}for(r=0;r<p.length;r++){d=p[r].split("|");i=d[0];b=normalizeName(i);a[b]=p[r];c[b]=i;addToGuesses(b,d[2].split(" "))}}function getZone(p,r){p=normalizeName(p);var d=a[p];var b;if(d instanceof Zone){return d}if(typeof d==="string"){d=new Zone(d);a[p]=d;return d}if(i[p]&&r!==getZone&&(b=getZone(i[p],getZone))Line truncated
|
||||
//! moment.js
|
||||
//! version : 2.29.4
|
||||
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
||||
//! license : MIT
|
||||
//! momentjs.com
|
||||
(function(o,a){true?p.exports=a():0})(this,(function(){"use strict";var o;function hooks(){return o.apply(null,arguments)}function setHookCallback(p){o=p}function isArray(p){return p instanceof Array||Object.prototype.toString.call(p)==="[object Array]"}function isObject(p){return p!=null&&Object.prototype.toString.call(p)==="[object Object]"}function hasOwnProp(p,o){return Object.prototype.hasOwnProperty.call(p,o)}function isObjectEmpty(p){if(Object.getOwnPropertyNames){return Object.getOwnPropertyNames(p).length===0}else{var o;for(o in p){if(hasOwnProp(p,o)){return false}}return true}}function isUndefined(p){return p===void 0}function isNumber(p){return typeof p==="number"||Object.prototype.toString.call(p)==="[object Number]"}function isDate(p){return p instanceof Date||Object.prototype.toString.call(p)==="[object Date]"}function map(p,o){var a=[],t,b=p.length;for(t=0;t<b;++t){a.push(o(p[t],t))}return a}function extend(p,o){for(var a in o){if(hasOwnProp(o,a)){p[a]=o[a]}}if(hasOwnProp(o,"toString")){p.toString=o.toString}if(hasOwnProp(o,"valueOf")){p.valueOf=o.valueOf}return p}function createUTC(p,o,a,t){return createLocalOrUTC(p,o,a,t,true).utc()}function defaultParsingFlags(){return{empty:false,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:false,invalidEra:null,invalidMonth:null,invalidFormat:false,userInvalidated:false,iso:false,parsedDateParts:[],era:null,meridiem:null,rfc2822:false,weekdayMismatch:false}}function getParsingFlags(p){if(p._pf==null){p._pf=defaultParsingFlags()}return p._pf}var a;if(Array.prototype.some){a=Array.prototype.some}else{a=function(p){var o=Object(this),a=o.length>>>0,t;for(t=0;t<a;t++){if(t in o&&p.call(this,o[t],t,o)){return true}}return false}}function isValid(p){if(p._isValid==null){var o=getParsingFlags(p),t=a.call(o.parsedDateParts,(function(p){return p!=null})),b=!isNaN(p._d.getTime())&&o.overflow<0&&!o.empty&&!o.invalidEra&&!o.invalidMonth&&!o.invalidWeekday&&!o.weekdayMismatch&&!o.nullInput&&!o.invalidFormat&&!o.userInvalidated&&(!o.meridiem||o.meridiem&&t);if(p._strict){b=b&&o.charsLeftOver===0&&o.unusedTokens.length===0&&o.bigHour===undefined}if(Object.isFrozen==null||!Object.isFrozen(p)){p._isValid=b}else{return b}}return p._isValid}function createInvalid(p){var o=createUTC(NaN);if(p!=null){extend(getParsingFlags(o),p)}else{getParsingFlags(o).userInvalidated=true}return o}var t=hooks.momentProperties=[],b=false;function copyConfig(p,o){var a,b,d,M=t.length;if(!isUndefined(o._isAMomentObject)){p._isAMomentObject=o._isAMomentObject}if(!isUndefined(o._i)){p._i=o._i}if(!isUndefined(o._f)){p._f=o._f}if(!isUndefined(o._l)){p._l=o._l}if(!isUndefined(o._strict)){p._strict=o._strict}if(!isUndefined(o._tzm)){p._tzm=o._tzm}if(!isUndefined(o._isUTC)){p._isUTC=o._isUTC}if(!isUndefined(o._offset)){p._offset=o._offset}if(!isUndefined(o._pf)){p._pf=getParsingFlags(o)}if(!isUndefined(o._locale)){p._locale=o._locale}if(M>0){for(a=0;a<M;a++){b=t[a];d=o[b];if(!isUndefined(d)){p[b]=d}}}return p}function Moment(p){copyConfig(this,p);this._d=new Date(p._d!=null?p._d.getTime():NaN);if(!this.isValid()){this._d=new Date(NaN)}if(b===false){b=true;hooks.updateOffset(this);b=false}}function isMoment(p){return p instanceof Moment||p!=null&&p._isAMomentObject!=null}function warn(p){if(hooks.suppressDeprecationWarnings===false&&typeof console!=="undefined"&&console.warn){console.warn("Deprecation warning: "+p)}}function deprecate(p,o){var a=true;return extend((function(){if(hooks.deprecationHandler!=null){hooks.deprecationHandler(null,p)}if(a){var t=[],b,d,M,r=arguments.length;for(d=0;d<r;d++){b="";if(typeof arguments[d]==="object"){b+="\n["+d+"] ";for(M in arguments[0]){if(hasOwnProp(arguments[0],M)){b+=M+": "+arguments[0][M]+", "}}b=b.slice(0,-2)}else{b=arguments[d]}t.push(b)}warn(p+"\nArguments: "+Array.prototype.slice.call(t).join("")+"\n"+(new Error).stack);a=false}return o.apply(this,arguments)}),o)}var d={};function deprecateSimple(p,o){if(hooks.deprecationHandler!=null){hooks.deprecationHandler(p,o)}if(!d[p]){warn(o);d[p]=true}}hooks.suppressDeprecationWarnings=false;hooks.deprecationHandler=null;function isFunction(p){return typeof Function!=="undefined"&&p instanceof Function||Object.prototype.toString.call(p)==="[object Function]"}function set(p){var o,a;for(a in p){if(hasOwnProp(p,a)){o=p[a];if(isFunction(o)){this[a]=o}else{this["_"+a]=o}}}this._config=p;this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function mergeConfigs(p,o){var a=extend({},p),t;for(t in o){if(hasOwnProp(o,t)){if(isObject(p[t])&&isObject(o[t])){a[t]={};extend(a[t],p[t]);extend(a[t],o[t])}else if(o[t]!=null){a[t]=o[t]}else{delete a[t]}}}for(t in p){if(hasOwnProp(p,t)&&!hasOwnProp(o,t)&&isObject(p[t])){a[t]=extend({},a[t])}}return a}function Locale(p){if(p!=null){this.set(p)}}var M;if(Object.keys){M=Object.keys}else{M=function(p){var o,a=[];for(o in p){if(hasOwnProp(p,o)){a.push(o)}}return a}}var r={sameDay:Line truncated
|
||||
(function(r,a){true?p.exports=a():0})(this,(function(){"use strict";var r;function hooks(){return r.apply(null,arguments)}function setHookCallback(p){r=p}function isArray(p){return p instanceof Array||Object.prototype.toString.call(p)==="[object Array]"}function isObject(p){return p!=null&&Object.prototype.toString.call(p)==="[object Object]"}function hasOwnProp(p,r){return Object.prototype.hasOwnProperty.call(p,r)}function isObjectEmpty(p){if(Object.getOwnPropertyNames){return Object.getOwnPropertyNames(p).length===0}else{var r;for(r in p){if(hasOwnProp(p,r)){return false}}return true}}function isUndefined(p){return p===void 0}function isNumber(p){return typeof p==="number"||Object.prototype.toString.call(p)==="[object Number]"}function isDate(p){return p instanceof Date||Object.prototype.toString.call(p)==="[object Date]"}function map(p,r){var a=[],i,d=p.length;for(i=0;i<d;++i){a.push(r(p[i],i))}return a}function extend(p,r){for(var a in r){if(hasOwnProp(r,a)){p[a]=r[a]}}if(hasOwnProp(r,"toString")){p.toString=r.toString}if(hasOwnProp(r,"valueOf")){p.valueOf=r.valueOf}return p}function createUTC(p,r,a,i){return createLocalOrUTC(p,r,a,i,true).utc()}function defaultParsingFlags(){return{empty:false,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:false,invalidEra:null,invalidMonth:null,invalidFormat:false,userInvalidated:false,iso:false,parsedDateParts:[],era:null,meridiem:null,rfc2822:false,weekdayMismatch:false}}function getParsingFlags(p){if(p._pf==null){p._pf=defaultParsingFlags()}return p._pf}var a;if(Array.prototype.some){a=Array.prototype.some}else{a=function(p){var r=Object(this),a=r.length>>>0,i;for(i=0;i<a;i++){if(i in r&&p.call(this,r[i],i,r)){return true}}return false}}function isValid(p){if(p._isValid==null){var r=getParsingFlags(p),i=a.call(r.parsedDateParts,(function(p){return p!=null})),d=!isNaN(p._d.getTime())&&r.overflow<0&&!r.empty&&!r.invalidEra&&!r.invalidMonth&&!r.invalidWeekday&&!r.weekdayMismatch&&!r.nullInput&&!r.invalidFormat&&!r.userInvalidated&&(!r.meridiem||r.meridiem&&i);if(p._strict){d=d&&r.charsLeftOver===0&&r.unusedTokens.length===0&&r.bigHour===undefined}if(Object.isFrozen==null||!Object.isFrozen(p)){p._isValid=d}else{return d}}return p._isValid}function createInvalid(p){var r=createUTC(NaN);if(p!=null){extend(getParsingFlags(r),p)}else{getParsingFlags(r).userInvalidated=true}return r}var i=hooks.momentProperties=[],d=false;function copyConfig(p,r){var a,d,c,b=i.length;if(!isUndefined(r._isAMomentObject)){p._isAMomentObject=r._isAMomentObject}if(!isUndefined(r._i)){p._i=r._i}if(!isUndefined(r._f)){p._f=r._f}if(!isUndefined(r._l)){p._l=r._l}if(!isUndefined(r._strict)){p._strict=r._strict}if(!isUndefined(r._tzm)){p._tzm=r._tzm}if(!isUndefined(r._isUTC)){p._isUTC=r._isUTC}if(!isUndefined(r._offset)){p._offset=r._offset}if(!isUndefined(r._pf)){p._pf=getParsingFlags(r)}if(!isUndefined(r._locale)){p._locale=r._locale}if(b>0){for(a=0;a<b;a++){d=i[a];c=r[d];if(!isUndefined(c)){p[d]=c}}}return p}function Moment(p){copyConfig(this,p);this._d=new Date(p._d!=null?p._d.getTime():NaN);if(!this.isValid()){this._d=new Date(NaN)}if(d===false){d=true;hooks.updateOffset(this);d=false}}function isMoment(p){return p instanceof Moment||p!=null&&p._isAMomentObject!=null}function warn(p){if(hooks.suppressDeprecationWarnings===false&&typeof console!=="undefined"&&console.warn){console.warn("Deprecation warning: "+p)}}function deprecate(p,r){var a=true;return extend((function(){if(hooks.deprecationHandler!=null){hooks.deprecationHandler(null,p)}if(a){var i=[],d,c,b,M=arguments.length;for(c=0;c<M;c++){d="";if(typeof arguments[c]==="object"){d+="\n["+c+"] ";for(b in arguments[0]){if(hasOwnProp(arguments[0],b)){d+=b+": "+arguments[0][b]+", "}}d=d.slice(0,-2)}else{d=arguments[c]}i.push(d)}warn(p+"\nArguments: "+Array.prototype.slice.call(i).join("")+"\n"+(new Error).stack);a=false}return r.apply(this,arguments)}),r)}var c={};function deprecateSimple(p,r){if(hooks.deprecationHandler!=null){hooks.deprecationHandler(p,r)}if(!c[p]){warn(r);c[p]=true}}hooks.suppressDeprecationWarnings=false;hooks.deprecationHandler=null;function isFunction(p){return typeof Function!=="undefined"&&p instanceof Function||Object.prototype.toString.call(p)==="[object Function]"}function set(p){var r,a;for(a in p){if(hasOwnProp(p,a)){r=p[a];if(isFunction(r)){this[a]=r}else{this["_"+a]=r}}}this._config=p;this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function mergeConfigs(p,r){var a=extend({},p),i;for(i in r){if(hasOwnProp(r,i)){if(isObject(p[i])&&isObject(r[i])){a[i]={};extend(a[i],p[i]);extend(a[i],r[i])}else if(r[i]!=null){a[i]=r[i]}else{delete a[i]}}}for(i in p){if(hasOwnProp(p,i)&&!hasOwnProp(r,i)&&isObject(p[i])){a[i]=extend({},a[i])}}return a}function Locale(p){if(p!=null){this.set(p)}}var b;if(Object.keys){b=Object.keys}else{b=function(p){var r,a=[];for(r in p){if(hasOwnProp(p,r)){a.push(r)}}return a}}var M={sameDay:Line truncated
|
||||
//! moment.js
|
||||
hooks.version="2.29.4";setHookCallback(createLocal);hooks.fn=He;hooks.min=min;hooks.max=max;hooks.now=now;hooks.utc=createUTC;hooks.unix=createUnix;hooks.months=listMonths;hooks.isDate=isDate;hooks.locale=getSetGlobalLocale;hooks.invalid=createInvalid;hooks.duration=createDuration;hooks.isMoment=isMoment;hooks.weekdays=listWeekdays;hooks.parseZone=createInZone;hooks.localeData=getLocale;hooks.isDuration=isDuration;hooks.monthsShort=listMonthsShort;hooks.weekdaysMin=listWeekdaysMin;hooks.defineLocale=defineLocale;hooks.updateLocale=updateLocale;hooks.locales=listLocales;hooks.weekdaysShort=listWeekdaysShort;hooks.normalizeUnits=normalizeUnits;hooks.relativeTimeRounding=getSetRelativeTimeRounding;hooks.relativeTimeThreshold=getSetRelativeTimeThreshold;hooks.calendarFormat=getCalendarFormat;hooks.prototype=He;hooks.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};return hooks}))},467:(p,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:true});function _interopDefault(p){return p&&typeof p==="object"&&"default"in p?p["default"]:p}var t=_interopDefault(a(2781));var b=_interopDefault(a(3685));var d=_interopDefault(a(7310));var M=_interopDefault(a(3323));var r=_interopDefault(a(5687));var z=_interopDefault(a(9796));const c=t.Readable;const i=Symbol("buffer");const O=Symbol("type");class Blob{constructor(){this[O]="";const p=arguments[0];const o=arguments[1];const a=[];let t=0;if(p){const o=p;const b=Number(o.length);for(let p=0;p<b;p++){const b=o[p];let d;if(b instanceof Buffer){d=b}else if(ArrayBuffer.isView(b)){d=Buffer.from(b.buffer,b.byteOffset,b.byteLength)}else if(b instanceof ArrayBuffer){d=Buffer.from(b)}else if(b instanceof Blob){d=b[i]}else{d=Buffer.from(typeof b==="string"?b:String(b))}t+=d.length;a.push(d)}}this[i]=Buffer.concat(a);let b=o&&o.type!==undefined&&String(o.type).toLowerCase();if(b&&!/[^\u0020-\u007E]/.test(b)){this[O]=b}}get size(){return this[i].length}get type(){return this[O]}text(){return Promise.resolve(this[i].toString())}arrayBuffer(){const p=this[i];const o=p.buffer.slice(p.byteOffset,p.byteOffset+p.byteLength);return Promise.resolve(o)}stream(){const p=new c;p._read=function(){};p.push(this[i]);p.push(null);return p}toString(){return"[object Blob]"}slice(){const p=this.size;const o=arguments[0];const a=arguments[1];let t,b;if(o===undefined){t=0}else if(o<0){t=Math.max(p+o,0)}else{t=Math.min(o,p)}if(a===undefined){b=p}else if(a<0){b=Math.max(p+a,0)}else{b=Math.min(a,p)}const d=Math.max(b-t,0);const M=this[i];const r=M.slice(t,t+d);const z=new Blob([],{type:arguments[2]});z[i]=r;return z}}Object.defineProperties(Blob.prototype,{size:{enumerable:true},type:{enumerable:true},slice:{enumerable:true}});Object.defineProperty(Blob.prototype,Symbol.toStringTag,{value:"Blob",writable:false,enumerable:false,configurable:true});function FetchError(p,o,a){Error.call(this,p);this.message=p;this.type=o;if(a){this.code=this.errno=a.code}Error.captureStackTrace(this,this.constructor)}FetchError.prototype=Object.create(Error.prototype);FetchError.prototype.constructor=FetchError;FetchError.prototype.name="FetchError";let u;try{u=a(2877).convert}catch(p){}const l=Symbol("Body internals");const A=t.PassThrough;function Body(p){var o=this;var a=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},b=a.size;let d=b===undefined?0:b;var M=a.timeout;let r=M===undefined?0:M;if(p==null){p=null}else if(isURLSearchParams(p)){p=Buffer.from(p.toString())}else if(isBlob(p));else if(Buffer.isBuffer(p));else if(Object.prototype.toString.call(p)==="[object ArrayBuffer]"){p=Buffer.from(p)}else if(ArrayBuffer.isView(p)){p=Buffer.from(p.buffer,p.byteOffset,p.byteLength)}else if(p instanceof t);else{p=Buffer.from(String(p))}this[l]={body:p,disturbed:false,error:null};this.size=d;this.timeout=r;if(p instanceof t){p.on("error",(function(p){const a=p.name==="AbortError"?p:new FetchError(`Invalid response body while trying to fetch ${o.url}: ${p.message}`,"system",p);o[l].error=a}))}}Body.prototype={get body(){return this[l].body},get bodyUsed(){return this[l].disturbed},arrayBuffer(){return consumeBody.call(this).then((function(p){return p.buffer.slice(p.byteOffset,p.byteOffset+p.byteLength)}))},blob(){let p=this.headers&&this.headers.get("content-type")||"";return consumeBody.call(this).then((function(o){return Object.assign(new Blob([],{type:p.toLowerCase()}),{[i]:o})}))},json(){var p=this;return consumeBody.call(this).then((function(o){try{return JSON.parse(o.toString())}catch(o){return Body.Promise.reject(new FetchError(`invalid json response body at ${p.url} reason: ${o.message}`,"invalid-json"))}}))},text(){return consumeBody.call(this).then((function(p){return p.toString()}))},buffer(){return consumeBody.call(this)},textConverted(){var p=this;return consumeBody.call(this).then((function(o){return coLine truncated
|
||||
hooks.version="2.29.4";setHookCallback(createLocal);hooks.fn=Ye;hooks.min=min;hooks.max=max;hooks.now=now;hooks.utc=createUTC;hooks.unix=createUnix;hooks.months=listMonths;hooks.isDate=isDate;hooks.locale=getSetGlobalLocale;hooks.invalid=createInvalid;hooks.duration=createDuration;hooks.isMoment=isMoment;hooks.weekdays=listWeekdays;hooks.parseZone=createInZone;hooks.localeData=getLocale;hooks.isDuration=isDuration;hooks.monthsShort=listMonthsShort;hooks.weekdaysMin=listWeekdaysMin;hooks.defineLocale=defineLocale;hooks.updateLocale=updateLocale;hooks.locales=listLocales;hooks.weekdaysShort=listWeekdaysShort;hooks.normalizeUnits=normalizeUnits;hooks.relativeTimeRounding=getSetRelativeTimeRounding;hooks.relativeTimeThreshold=getSetRelativeTimeThreshold;hooks.calendarFormat=getCalendarFormat;hooks.prototype=Ye;hooks.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};return hooks}))},467:(p,r,a)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});function _interopDefault(p){return p&&typeof p==="object"&&"default"in p?p["default"]:p}var i=_interopDefault(a(2781));var d=_interopDefault(a(3685));var c=_interopDefault(a(7310));var b=_interopDefault(a(8665));var M=_interopDefault(a(5687));var z=_interopDefault(a(9796));const u=i.Readable;const O=Symbol("buffer");const l=Symbol("type");class Blob{constructor(){this[l]="";const p=arguments[0];const r=arguments[1];const a=[];let i=0;if(p){const r=p;const d=Number(r.length);for(let p=0;p<d;p++){const d=r[p];let c;if(d instanceof Buffer){c=d}else if(ArrayBuffer.isView(d)){c=Buffer.from(d.buffer,d.byteOffset,d.byteLength)}else if(d instanceof ArrayBuffer){c=Buffer.from(d)}else if(d instanceof Blob){c=d[O]}else{c=Buffer.from(typeof d==="string"?d:String(d))}i+=c.length;a.push(c)}}this[O]=Buffer.concat(a);let d=r&&r.type!==undefined&&String(r.type).toLowerCase();if(d&&!/[^\u0020-\u007E]/.test(d)){this[l]=d}}get size(){return this[O].length}get type(){return this[l]}text(){return Promise.resolve(this[O].toString())}arrayBuffer(){const p=this[O];const r=p.buffer.slice(p.byteOffset,p.byteOffset+p.byteLength);return Promise.resolve(r)}stream(){const p=new u;p._read=function(){};p.push(this[O]);p.push(null);return p}toString(){return"[object Blob]"}slice(){const p=this.size;const r=arguments[0];const a=arguments[1];let i,d;if(r===undefined){i=0}else if(r<0){i=Math.max(p+r,0)}else{i=Math.min(r,p)}if(a===undefined){d=p}else if(a<0){d=Math.max(p+a,0)}else{d=Math.min(a,p)}const c=Math.max(d-i,0);const b=this[O];const M=b.slice(i,i+c);const z=new Blob([],{type:arguments[2]});z[O]=M;return z}}Object.defineProperties(Blob.prototype,{size:{enumerable:true},type:{enumerable:true},slice:{enumerable:true}});Object.defineProperty(Blob.prototype,Symbol.toStringTag,{value:"Blob",writable:false,enumerable:false,configurable:true});function FetchError(p,r,a){Error.call(this,p);this.message=p;this.type=r;if(a){this.code=this.errno=a.code}Error.captureStackTrace(this,this.constructor)}FetchError.prototype=Object.create(Error.prototype);FetchError.prototype.constructor=FetchError;FetchError.prototype.name="FetchError";let A;try{A=a(2877).convert}catch(p){}const m=Symbol("Body internals");const q=i.PassThrough;function Body(p){var r=this;var a=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},d=a.size;let c=d===undefined?0:d;var b=a.timeout;let M=b===undefined?0:b;if(p==null){p=null}else if(isURLSearchParams(p)){p=Buffer.from(p.toString())}else if(isBlob(p));else if(Buffer.isBuffer(p));else if(Object.prototype.toString.call(p)==="[object ArrayBuffer]"){p=Buffer.from(p)}else if(ArrayBuffer.isView(p)){p=Buffer.from(p.buffer,p.byteOffset,p.byteLength)}else if(p instanceof i);else{p=Buffer.from(String(p))}this[m]={body:p,disturbed:false,error:null};this.size=c;this.timeout=M;if(p instanceof i){p.on("error",(function(p){const a=p.name==="AbortError"?p:new FetchError(`Invalid response body while trying to fetch ${r.url}: ${p.message}`,"system",p);r[m].error=a}))}}Body.prototype={get body(){return this[m].body},get bodyUsed(){return this[m].disturbed},arrayBuffer(){return consumeBody.call(this).then((function(p){return p.buffer.slice(p.byteOffset,p.byteOffset+p.byteLength)}))},blob(){let p=this.headers&&this.headers.get("content-type")||"";return consumeBody.call(this).then((function(r){return Object.assign(new Blob([],{type:p.toLowerCase()}),{[O]:r})}))},json(){var p=this;return consumeBody.call(this).then((function(r){try{return JSON.parse(r.toString())}catch(r){return Body.Promise.reject(new FetchError(`invalid json response body at ${p.url} reason: ${r.message}`,"invalid-json"))}}))},text(){return consumeBody.call(this).then((function(p){return p.toString()}))},buffer(){return consumeBody.call(this)},textConverted(){var p=this;return consumeBody.call(this).then((function(r){return coLine truncated
|
||||
/*!
|
||||
* Tmp
|
||||
*
|
||||
* Copyright (c) 2011-2017 KARASZI Istvan <github@spam.raszi.hu>
|
||||
*
|
||||
* MIT Licensed
|
||||
*/
|
||||
const i=a(7147);const d=a(2037);const c=a(1017);const b=a(6113);const M={fs:i.constants,os:d.constants};const z=a(4959);const u="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",O=/XXXXXX/,l=3,A=(M.O_CREAT||M.fs.O_CREAT)|(M.O_EXCL||M.fs.O_EXCL)|(M.O_RDWR||M.fs.O_RDWR),m=d.platform()==="win32",q=M.EBADF||M.os.errno.EBADF,h=M.ENOENT||M.os.errno.ENOENT,W=448,g=384,v="exit",R=[],_=i.rmdirSync.bind(i),L=z.sync;let w=false;function tmpName(p,r){const a=_parseArguments(p,r),d=a[0],c=a[1];try{_assertAndSanitizeOptions(d)}catch(p){return c(p)}let b=d.tries;(function _getUniqueName(){try{const p=_generateTmpName(d);i.stat(p,(function(r){if(!r){if(b-- >0)return _getUniqueName();return c(new Error("Could not get a unique tmp filename, max tries reached "+p))}c(null,p)}))}catch(p){c(p)}})()}function tmpNameSync(p){const r=_parseArguments(p),a=r[0];_assertAndSanitizeOptions(a);let d=a.tries;do{const p=_generateTmpName(a);try{i.statSync(p)}catch(r){return p}}while(d-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function file(p,r){const a=_parseArguments(p,r),d=a[0],c=a[1];tmpName(d,(function _tmpNameCreated(p,r){if(p)return c(p);i.open(r,A,d.mode||g,(function _fileCreated(p,a){if(p)return c(p);if(d.discardDescriptor){return i.close(a,(function _discardCallback(p){return c(p,r,undefined,_prepareTmpFileRemoveCallback(r,-1,d,false))}))}else{const p=d.discardDescriptor||d.detachDescriptor;c(null,r,a,_prepareTmpFileRemoveCallback(r,p?-1:a,d,false))}}))}))}function fileSync(p){const r=_parseArguments(p),a=r[0];const d=a.discardDescriptor||a.detachDescriptor;const c=tmpNameSync(a);var b=i.openSync(c,A,a.mode||g);if(a.discardDescriptor){i.closeSync(b);b=undefined}return{name:c,fd:b,removeCallback:_prepareTmpFileRemoveCallback(c,d?-1:b,a,true)}}function dir(p,r){const a=_parseArguments(p,r),d=a[0],c=a[1];tmpName(d,(function _tmpNameCreated(p,r){if(p)return c(p);i.mkdir(r,d.mode||W,(function _dirCreated(p){if(p)return c(p);c(null,r,_prepareTmpDirRemoveCallback(r,d,false))}))}))}function dirSync(p){const r=_parseArguments(p),a=r[0];const d=tmpNameSync(a);i.mkdirSync(d,a.mode||W);return{name:d,removeCallback:_prepareTmpDirRemoveCallback(d,a,true)}}function _removeFileAsync(p,r){const _handler=function(p){if(p&&!_isENOENT(p)){return r(p)}r()};if(0<=p[0])i.close(p[0],(function(){i.unlink(p[1],_handler)}));else i.unlink(p[1],_handler)}function _removeFileSync(p){let r=null;try{if(0<=p[0])i.closeSync(p[0])}catch(p){if(!_isEBADF(p)&&!_isENOENT(p))throw p}finally{try{i.unlinkSync(p[1])}catch(p){if(!_isENOENT(p))r=p}}if(r!==null){throw r}}function _prepareTmpFileRemoveCallback(p,r,a,i){const d=_prepareRemoveCallback(_removeFileSync,[r,p],i);const c=_prepareRemoveCallback(_removeFileAsync,[r,p],i,d);if(!a.keep)R.unshift(d);return i?d:c}function _prepareTmpDirRemoveCallback(p,r,a){const d=r.unsafeCleanup?z:i.rmdir.bind(i);const c=r.unsafeCleanup?L:_;const b=_prepareRemoveCallback(c,p,a);const M=_prepareRemoveCallback(d,p,a,b);if(!r.keep)R.unshift(b);return a?b:M}function _prepareRemoveCallback(p,r,a,i){let d=false;return function _cleanupCallback(c){if(!d){const b=i||_cleanupCallback;const M=R.indexOf(b);if(M>=0)R.splice(M,1);d=true;if(a||p===_||p===L){return p(r)}else{return p(r,c||function(){})}}}}function _garbageCollector(){if(!w)return;while(R.length){try{R[0]()}catch(p){}}}function _randomChars(p){let r=[],a=null;try{a=b.randomBytes(p)}catch(r){a=b.pseudoRandomBytes(p)}for(var i=0;i<p;i++){r.push(u[a[i]%u.length])}return r.join("")}function _isBlank(p){return p===null||_isUndefined(p)||!p.trim()}function _isUndefined(p){return typeof p==="undefined"}function _parseArguments(p,r){if(typeof p==="function"){return[{},p]}if(_isUndefined(p)){return[{},r]}const a={};for(const r of Object.getOwnPropertyNames(p)){a[r]=p[r]}return[a,r]}function _generateTmpName(p){const r=p.tmpdir;if(!_isUndefined(p.name))return c.join(r,p.dir,p.name);if(!_isUndefined(p.template))return c.join(r,p.dir,p.template).replace(O,_randomChars(6));const a=[p.prefix?p.prefix:"tmp","-",process.pid,"-",_randomChars(12),p.postfix?"-"+p.postfix:""].join("");return c.join(r,p.dir,a)}function _assertAndSanitizeOptions(p){p.tmpdir=_getTmpDir(p);const r=p.tmpdir;if(!_isUndefined(p.name))_assertIsRelative(p.name,"name",r);if(!_isUndefined(p.dir))_assertIsRelative(p.dir,"dir",r);if(!_isUndefined(p.template)){_assertIsRelative(p.template,"template",r);if(!p.template.match(O))throw new Error(`Invalid template, found "${p.template}".`)}if(!_isUndefined(p.tries)&&isNaN(p.tries)||p.tries<0)throw new Error(`Invalid tries, found "${p.tries}".`);p.tries=_isUndefined(p.name)?p.tries||l:1;p.keep=!!p.keep;p.detachDescriptor=!!p.detachDescriptor;p.discardDescriptor=!!p.discardDescriptor;p.unsafeCleanup=!!p.unsafeCleanup;p.dir=_isUndefined(p.dir)?"":c.relative(r,_resolvePath(p.dir,r));p.template=_isUndefined(p.template)?undefined:c.relative(r,_resolvePath(p.template,r));p.template=_isBlank(p.template)?undefined:c.relative(p.dir,p.template);p.naLine truncated
|
||||
/*!
|
||||
* XRegExp.build 4.4.1
|
||||
* <xregexp.com>
|
||||
* Steven Levithan (c) 2012-present MIT License
|
||||
*/var c=function _default(p){var o="xregexp";var a=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g;var t=p.union([/\({{([\w$]+)}}\)|{{([\w$]+)}}/,a],"g",{conjunction:"or"});function deanchor(p){var o=/^(?:\(\?:\))*\^/;var a=/\$(?:\(\?:\))*$/;if(o.test(p)&&a.test(p)&&a.test(p.replace(/\\[\s\S]/g,""))){return p.replace(o,"").replace(a,"")}return p}function asXRegExp(a,t){var b=t?"x":"";return p.isRegExp(a)?a[o]&&a[o].captureNames?a:p(a.source,b):p(a,b)}function interpolate(o){return o instanceof RegExp?o:p.escape(o)}function reduceToSubpatternsObject(p,o,a){p["subpattern".concat(a)]=o;return p}function embedSubpatternAfter(p,o,a){var t=o<a.length-1;return p+(t?"{{subpattern".concat(o,"}}"):"")}p.tag=function(o){return function(a){var t,b;for(var d=arguments.length,M=new Array(d>1?d-1:0),c=1;c<d;c++){M[c-1]=arguments[c]}var i=(0,z["default"])(t=(0,r["default"])(M).call(M,interpolate)).call(t,reduceToSubpatternsObject,{});var O=(0,r["default"])(b=a.raw).call(b,embedSubpatternAfter).join("");return p.build(O,i,o)}};p.build=function(b,r,z){z=z||"";var c=(0,M["default"])(z).call(z,"x");var i=/^\(\?([\w$]+)\)/.exec(b);if(i){z=p._clipDuplicates(z+i[1])}var O={};for(var u in r){if(r.hasOwnProperty(u)){var l=asXRegExp(r[u],c);O[u]={pattern:deanchor(l.source),names:l[o].captureNames||[]}}}var A=asXRegExp(b,c);var q=0;var m;var W=0;var h=[0];var R=A[o].captureNames||[];var g=A.source.replace(t,(function(p,o,t,b,M){var r=o||t;var z;var c;var i;if(r){var u;if(!O.hasOwnProperty(r)){throw new ReferenceError("Undefined property ".concat(p))}if(o){z=R[W];h[++W]=++q;c="(?<".concat(z||r,">")}else{c="(?:"}m=q;var l=O[r].pattern.replace(a,(function(p,o,a){if(o){z=O[r].names[q-m];++q;if(z){return"(?<".concat(z,">")}}else if(a){i=+a-1;return O[r].names[i]?"\\k<".concat(O[r].names[i],">"):"\\".concat(+a+m)}return p}));return(0,d["default"])(u="".concat(c)).call(u,l,")")}if(b){z=R[W];h[++W]=++q;if(z){return"(?<".concat(z,">")}}else if(M){i=+M-1;return R[i]?"\\k<".concat(R[i],">"):"\\".concat(h[+M])}return p}));return p(g,z)}};o["default"]=c;p.exports=o.default},4811:(p,o,a)=>{"use strict";var t=a(515);var b=a(4218);b(o,"__esModule",{value:true});o["default"]=void 0;var d=t(a(9188));var M=t(a(466));var r=t(a(6611));
|
||||
*/var u=function _default(p){var r="xregexp";var a=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g;var i=p.union([/\({{([\w$]+)}}\)|{{([\w$]+)}}/,a],"g",{conjunction:"or"});function deanchor(p){var r=/^(?:\(\?:\))*\^/;var a=/\$(?:\(\?:\))*$/;if(r.test(p)&&a.test(p)&&a.test(p.replace(/\\[\s\S]/g,""))){return p.replace(r,"").replace(a,"")}return p}function asXRegExp(a,i){var d=i?"x":"";return p.isRegExp(a)?a[r]&&a[r].captureNames?a:p(a.source,d):p(a,d)}function interpolate(r){return r instanceof RegExp?r:p.escape(r)}function reduceToSubpatternsObject(p,r,a){p["subpattern".concat(a)]=r;return p}function embedSubpatternAfter(p,r,a){var i=r<a.length-1;return p+(i?"{{subpattern".concat(r,"}}"):"")}p.tag=function(r){return function(a){var i,d;for(var c=arguments.length,b=new Array(c>1?c-1:0),u=1;u<c;u++){b[u-1]=arguments[u]}var O=(0,z["default"])(i=(0,M["default"])(b).call(b,interpolate)).call(i,reduceToSubpatternsObject,{});var l=(0,M["default"])(d=a.raw).call(d,embedSubpatternAfter).join("");return p.build(l,O,r)}};p.build=function(d,M,z){z=z||"";var u=(0,b["default"])(z).call(z,"x");var O=/^\(\?([\w$]+)\)/.exec(d);if(O){z=p._clipDuplicates(z+O[1])}var l={};for(var A in M){if(M.hasOwnProperty(A)){var m=asXRegExp(M[A],u);l[A]={pattern:deanchor(m.source),names:m[r].captureNames||[]}}}var q=asXRegExp(d,u);var h=0;var W;var g=0;var v=[0];var R=q[r].captureNames||[];var _=q.source.replace(i,(function(p,r,i,d,b){var M=r||i;var z;var u;var O;if(M){var A;if(!l.hasOwnProperty(M)){throw new ReferenceError("Undefined property ".concat(p))}if(r){z=R[g];v[++g]=++h;u="(?<".concat(z||M,">")}else{u="(?:"}W=h;var m=l[M].pattern.replace(a,(function(p,r,a){if(r){z=l[M].names[h-W];++h;if(z){return"(?<".concat(z,">")}}else if(a){O=+a-1;return l[M].names[O]?"\\k<".concat(l[M].names[O],">"):"\\".concat(+a+W)}return p}));return(0,c["default"])(A="".concat(u)).call(A,m,")")}if(d){z=R[g];v[++g]=++h;if(z){return"(?<".concat(z,">")}}else if(b){O=+b-1;return R[O]?"\\k<".concat(R[O],">"):"\\".concat(v[+b])}return p}));return p(_,z)}};r["default"]=u;p.exports=r.default},4811:(p,r,a)=>{"use strict";var i=a(515);var d=a(4218);d(r,"__esModule",{value:true});r["default"]=void 0;var c=i(a(9188));var b=i(a(466));var M=i(a(6611));
|
||||
/*!
|
||||
* XRegExp.matchRecursive 4.4.1
|
||||
* <xregexp.com>
|
||||
* Steven Levithan (c) 2009-present MIT License
|
||||
*/var z=function _default(p){function row(p,o,a,t){return{name:p,value:o,start:a,end:t}}p.matchRecursive=function(o,a,t,b,z){b=b||"";z=z||{};var c=(0,r["default"])(b).call(b,"g");var i=(0,r["default"])(b).call(b,"y");var O=b.replace(/y/g,"");var u=z,l=u.escapeChar;var A=z.valueNames;var q=[];var m=0;var W=0;var h=0;var R=0;var g;var v;var L;var _;var N;a=p(a,O);t=p(t,O);if(l){var w,B;if(l.length>1){throw new Error("Cannot use more than one escape character")}l=p.escape(l);N=new RegExp((0,M["default"])(w=(0,M["default"])(B="(?:".concat(l,"[\\S\\s]|(?:(?!")).call(B,p.union([a,t],"",{conjunction:"or"}).source,")[^")).call(w,l,"])+)+"),b.replace(/[^imu]+/g,""))}while(true){if(l){h+=(p.exec(o,N,h,"sticky")||[""])[0].length}L=p.exec(o,a,h);_=p.exec(o,t,h);if(L&&_){if(L.index<=_.index){_=null}else{L=null}}if(L||_){W=(L||_).index;h=W+(L||_)[0].length}else if(!m){break}if(i&&!m&&W>R){break}if(L){if(!m){g=W;v=h}++m}else if(_&&m){if(!--m){if(A){if(A[0]&&g>R){q.push(row(A[0],(0,d["default"])(o).call(o,R,g),R,g))}if(A[1]){q.push(row(A[1],(0,d["default"])(o).call(o,g,v),g,v))}if(A[2]){q.push(row(A[2],(0,d["default"])(o).call(o,v,W),v,W))}if(A[3]){q.push(row(A[3],(0,d["default"])(o).call(o,W,h),W,h))}}else{q.push((0,d["default"])(o).call(o,v,W))}R=h;if(!c){break}}}else{throw new Error("Unbalanced delimiter found in string")}if(W===h){++h}}if(c&&!i&&A&&A[0]&&o.length>R){q.push(row(A[0],(0,d["default"])(o).call(o,R),R,o.length))}return q}};o["default"]=z;p.exports=o.default},3110:(p,o,a)=>{"use strict";var t=a(515);var b=a(4218);b(o,"__esModule",{value:true});o["default"]=void 0;var d=t(a(2038));var M=t(a(5401));var r=t(a(9640));var z=t(a(7652));var c=t(a(3361));var i=t(a(9188));var O=t(a(6611));var u=t(a(466));var l=t(a(669));function _createForOfIteratorHelper(p,o){var a;if(typeof z["default"]==="undefined"||(0,r["default"])(p)==null){if((0,M["default"])(p)||(a=_unsupportedIterableToArray(p))||o&&p&&typeof p.length==="number"){if(a)p=a;var t=0;var b=function F(){};return{s:b,n:function n(){if(t>=p.length)return{done:true};return{done:false,value:p[t++]}},e:function e(p){throw p},f:b}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c=true,i=false,O;return{s:function s(){a=(0,d["default"])(p)},n:function n(){var p=a.next();c=p.done;return p},e:function e(p){i=true;O=p},f:function f(){try{if(!c&&a["return"]!=null)a["return"]()}finally{if(i)throw O}}}}function _unsupportedIterableToArray(p,o){var a;if(!p)return;if(typeof p==="string")return _arrayLikeToArray(p,o);var t=(0,i["default"])(a=Object.prototype.toString.call(p)).call(a,8,-1);if(t==="Object"&&p.constructor)t=p.constructor.name;if(t==="Map"||t==="Set")return(0,c["default"])(p);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return _arrayLikeToArray(p,o)}function _arrayLikeToArray(p,o){if(o==null||o>p.length)o=p.length;for(var a=0,t=new Array(o);a<o;a++){t[a]=p[a]}return t}
|
||||
*/var z=function _default(p){function row(p,r,a,i){return{name:p,value:r,start:a,end:i}}p.matchRecursive=function(r,a,i,d,z){d=d||"";z=z||{};var u=(0,M["default"])(d).call(d,"g");var O=(0,M["default"])(d).call(d,"y");var l=d.replace(/y/g,"");var A=z,m=A.escapeChar;var q=z.valueNames;var h=[];var W=0;var g=0;var v=0;var R=0;var _;var L;var w;var E;var T;a=p(a,l);i=p(i,l);if(m){var N,y;if(m.length>1){throw new Error("Cannot use more than one escape character")}m=p.escape(m);T=new RegExp((0,b["default"])(N=(0,b["default"])(y="(?:".concat(m,"[\\S\\s]|(?:(?!")).call(y,p.union([a,i],"",{conjunction:"or"}).source,")[^")).call(N,m,"])+)+"),d.replace(/[^imu]+/g,""))}while(true){if(m){v+=(p.exec(r,T,v,"sticky")||[""])[0].length}w=p.exec(r,a,v);E=p.exec(r,i,v);if(w&&E){if(w.index<=E.index){E=null}else{w=null}}if(w||E){g=(w||E).index;v=g+(w||E)[0].length}else if(!W){break}if(O&&!W&&g>R){break}if(w){if(!W){_=g;L=v}++W}else if(E&&W){if(!--W){if(q){if(q[0]&&_>R){h.push(row(q[0],(0,c["default"])(r).call(r,R,_),R,_))}if(q[1]){h.push(row(q[1],(0,c["default"])(r).call(r,_,L),_,L))}if(q[2]){h.push(row(q[2],(0,c["default"])(r).call(r,L,g),L,g))}if(q[3]){h.push(row(q[3],(0,c["default"])(r).call(r,g,v),g,v))}}else{h.push((0,c["default"])(r).call(r,L,g))}R=v;if(!u){break}}}else{throw new Error("Unbalanced delimiter found in string")}if(g===v){++v}}if(u&&!O&&q&&q[0]&&r.length>R){h.push(row(q[0],(0,c["default"])(r).call(r,R),R,r.length))}return h}};r["default"]=z;p.exports=r.default},3110:(p,r,a)=>{"use strict";var i=a(515);var d=a(4218);d(r,"__esModule",{value:true});r["default"]=void 0;var c=i(a(2038));var b=i(a(5401));var M=i(a(9640));var z=i(a(7652));var u=i(a(3361));var O=i(a(9188));var l=i(a(6611));var A=i(a(466));var m=i(a(669));function _createForOfIteratorHelper(p,r){var a;if(typeof z["default"]==="undefined"||(0,M["default"])(p)==null){if((0,b["default"])(p)||(a=_unsupportedIterableToArray(p))||r&&p&&typeof p.length==="number"){if(a)p=a;var i=0;var d=function F(){};return{s:d,n:function n(){if(i>=p.length)return{done:true};return{done:false,value:p[i++]}},e:function e(p){throw p},f:d}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u=true,O=false,l;return{s:function s(){a=(0,c["default"])(p)},n:function n(){var p=a.next();u=p.done;return p},e:function e(p){O=true;l=p},f:function f(){try{if(!u&&a["return"]!=null)a["return"]()}finally{if(O)throw l}}}}function _unsupportedIterableToArray(p,r){var a;if(!p)return;if(typeof p==="string")return _arrayLikeToArray(p,r);var i=(0,O["default"])(a=Object.prototype.toString.call(p)).call(a,8,-1);if(i==="Object"&&p.constructor)i=p.constructor.name;if(i==="Map"||i==="Set")return(0,u["default"])(p);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return _arrayLikeToArray(p,r)}function _arrayLikeToArray(p,r){if(r==null||r>p.length)r=p.length;for(var a=0,i=new Array(r);a<r;a++){i[a]=p[a]}return i}
|
||||
/*!
|
||||
* XRegExp Unicode Base 4.4.1
|
||||
* <xregexp.com>
|
||||
* Steven Levithan (c) 2008-present MIT License
|
||||
*/var A=function _default(p){var o={};var a=p._dec;var t=p._hex;var b=p._pad4;function normalize(p){return p.replace(/[- _]+/g,"").toLowerCase()}function charCode(p){var o=/^\\[xu](.+)/.exec(p);return o?a(o[1]):p.charCodeAt(p[0]==="\\"?1:0)}function invertBmp(o){var a="";var d=-1;(0,l["default"])(p).call(p,o,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,(function(p){var o=charCode(p[1]);if(o>d+1){a+="\\u".concat(b(t(d+1)));if(o>d+2){a+="-\\u".concat(b(t(o-1)))}}d=charCode(p[2]||p[1])}));if(d<65535){a+="\\u".concat(b(t(d+1)));if(d<65534){a+="-\\uFFFF"}}return a}function cacheInvertedBmp(p){var a="b!";return o[p][a]||(o[p][a]=invertBmp(o[p].bmp))}function buildAstral(p,a){var t=o[p];var b="";if(t.bmp&&!t.isBmpLast){var d;b=(0,u["default"])(d="[".concat(t.bmp,"]")).call(d,t.astral?"|":"")}if(t.astral){b+=t.astral}if(t.isBmpLast&&t.bmp){var M;b+=(0,u["default"])(M="".concat(t.astral?"|":"","[")).call(M,t.bmp,"]")}return a?"(?:(?!".concat(b,")(?:[\ud800-\udbff][\udc00-\udfff]|[\0-]))"):"(?:".concat(b,")")}function cacheAstral(p,a){var t=a?"a!":"a=";return o[p][t]||(o[p][t]=buildAstral(p,a))}p.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,(function(p,a,t){var b="Invalid double negation ";var d="Unknown Unicode token ";var M="Unicode token missing data ";var r="Astral mode required for Unicode token ";var z="Astral mode does not support Unicode tokens within character classes";var c=p[1]==="P"||!!p[2];var i=(0,O["default"])(t).call(t,"A");var l=normalize(p[4]||p[3]);var A=o[l];if(p[1]==="P"&&p[2]){throw new SyntaxError(b+p[0])}if(!o.hasOwnProperty(l)){throw new SyntaxError(d+p[0])}if(A.inverseOf){l=normalize(A.inverseOf);if(!o.hasOwnProperty(l)){var q;throw new ReferenceError((0,u["default"])(q="".concat(M+p[0]," -> ")).call(q,A.inverseOf))}A=o[l];c=!c}if(!(A.bmp||i)){throw new SyntaxError(r+p[0])}if(i){if(a==="class"){throw new SyntaxError(z)}return cacheAstral(l,c)}return a==="class"?c?cacheInvertedBmp(l):A.bmp:"".concat((c?"[^":"[")+A.bmp,"]")}),{scope:"all",optionalFlags:"A",leadChar:"\\"});p.addUnicodeData=function(a){var t="Unicode token requires name";var b="Unicode token has no character data ";var d=_createForOfIteratorHelper(a),M;try{for(d.s();!(M=d.n()).done;){var r=M.value;if(!r.name){throw new Error(t)}if(!(r.inverseOf||r.bmp||r.astral)){throw new Error(b+r.name)}o[normalize(r.name)]=r;if(r.alias){o[normalize(r.alias)]=r}}}catch(p){d.e(p)}finally{d.f()}p.cache.flush("patterns")};p._getUnicodeProperty=function(p){var a=normalize(p);return o[a]}};o["default"]=A;p.exports=o.default},4686:(p,o,a)=>{"use strict";var t=a(515);var b=a(4218);b(o,"__esModule",{value:true});o["default"]=void 0;var d=t(a(5826));
|
||||
*/var q=function _default(p){var r={};var a=p._dec;var i=p._hex;var d=p._pad4;function normalize(p){return p.replace(/[- _]+/g,"").toLowerCase()}function charCode(p){var r=/^\\[xu](.+)/.exec(p);return r?a(r[1]):p.charCodeAt(p[0]==="\\"?1:0)}function invertBmp(r){var a="";var c=-1;(0,m["default"])(p).call(p,r,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,(function(p){var r=charCode(p[1]);if(r>c+1){a+="\\u".concat(d(i(c+1)));if(r>c+2){a+="-\\u".concat(d(i(r-1)))}}c=charCode(p[2]||p[1])}));if(c<65535){a+="\\u".concat(d(i(c+1)));if(c<65534){a+="-\\uFFFF"}}return a}function cacheInvertedBmp(p){var a="b!";return r[p][a]||(r[p][a]=invertBmp(r[p].bmp))}function buildAstral(p,a){var i=r[p];var d="";if(i.bmp&&!i.isBmpLast){var c;d=(0,A["default"])(c="[".concat(i.bmp,"]")).call(c,i.astral?"|":"")}if(i.astral){d+=i.astral}if(i.isBmpLast&&i.bmp){var b;d+=(0,A["default"])(b="".concat(i.astral?"|":"","[")).call(b,i.bmp,"]")}return a?"(?:(?!".concat(d,")(?:[\ud800-\udbff][\udc00-\udfff]|[\0-]))"):"(?:".concat(d,")")}function cacheAstral(p,a){var i=a?"a!":"a=";return r[p][i]||(r[p][i]=buildAstral(p,a))}p.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,(function(p,a,i){var d="Invalid double negation ";var c="Unknown Unicode token ";var b="Unicode token missing data ";var M="Astral mode required for Unicode token ";var z="Astral mode does not support Unicode tokens within character classes";var u=p[1]==="P"||!!p[2];var O=(0,l["default"])(i).call(i,"A");var m=normalize(p[4]||p[3]);var q=r[m];if(p[1]==="P"&&p[2]){throw new SyntaxError(d+p[0])}if(!r.hasOwnProperty(m)){throw new SyntaxError(c+p[0])}if(q.inverseOf){m=normalize(q.inverseOf);if(!r.hasOwnProperty(m)){var h;throw new ReferenceError((0,A["default"])(h="".concat(b+p[0]," -> ")).call(h,q.inverseOf))}q=r[m];u=!u}if(!(q.bmp||O)){throw new SyntaxError(M+p[0])}if(O){if(a==="class"){throw new SyntaxError(z)}return cacheAstral(m,u)}return a==="class"?u?cacheInvertedBmp(m):q.bmp:"".concat((u?"[^":"[")+q.bmp,"]")}),{scope:"all",optionalFlags:"A",leadChar:"\\"});p.addUnicodeData=function(a){var i="Unicode token requires name";var d="Unicode token has no character data ";var c=_createForOfIteratorHelper(a),b;try{for(c.s();!(b=c.n()).done;){var M=b.value;if(!M.name){throw new Error(i)}if(!(M.inverseOf||M.bmp||M.astral)){throw new Error(d+M.name)}r[normalize(M.name)]=M;if(M.alias){r[normalize(M.alias)]=M}}}catch(p){c.e(p)}finally{c.f()}p.cache.flush("patterns")};p._getUnicodeProperty=function(p){var a=normalize(p);return r[a]}};r["default"]=q;p.exports=r.default},4686:(p,r,a)=>{"use strict";var i=a(515);var d=a(4218);d(r,"__esModule",{value:true});r["default"]=void 0;var c=i(a(5826));
|
||||
/*!
|
||||
* XRegExp Unicode Blocks 4.4.1
|
||||
* <xregexp.com>
|
||||
* Steven Levithan (c) 2010-present MIT License
|
||||
* Unicode data by Mathias Bynens <mathiasbynens.be>
|
||||
*/var M=function _default(p){if(!p.addUnicodeData){throw new ReferenceError("Unicode Base must be loaded before Unicode Blocks")}p.addUnicodeData(d["default"])};o["default"]=M;p.exports=o.default},1996:(p,o,a)=>{"use strict";var t=a(515);var b=a(4218);b(o,"__esModule",{value:true});o["default"]=void 0;var d=t(a(8537));
|
||||
*/var b=function _default(p){if(!p.addUnicodeData){throw new ReferenceError("Unicode Base must be loaded before Unicode Blocks")}p.addUnicodeData(c["default"])};r["default"]=b;p.exports=r.default},1996:(p,r,a)=>{"use strict";var i=a(515);var d=a(4218);d(r,"__esModule",{value:true});r["default"]=void 0;var c=i(a(8537));
|
||||
/*!
|
||||
* XRegExp Unicode Categories 4.4.1
|
||||
* <xregexp.com>
|
||||
* Steven Levithan (c) 2010-present MIT License
|
||||
* Unicode data by Mathias Bynens <mathiasbynens.be>
|
||||
*/var M=function _default(p){if(!p.addUnicodeData){throw new ReferenceError("Unicode Base must be loaded before Unicode Categories")}p.addUnicodeData(d["default"])};o["default"]=M;p.exports=o.default},9250:(p,o,a)=>{"use strict";var t=a(515);var b=a(4218);b(o,"__esModule",{value:true});o["default"]=void 0;var d=t(a(616));
|
||||
*/var b=function _default(p){if(!p.addUnicodeData){throw new ReferenceError("Unicode Base must be loaded before Unicode Categories")}p.addUnicodeData(c["default"])};r["default"]=b;p.exports=r.default},9250:(p,r,a)=>{"use strict";var i=a(515);var d=a(4218);d(r,"__esModule",{value:true});r["default"]=void 0;var c=i(a(616));
|
||||
/*!
|
||||
* XRegExp Unicode Properties 4.4.1
|
||||
* <xregexp.com>
|
||||
* Steven Levithan (c) 2012-present MIT License
|
||||
* Unicode data by Mathias Bynens <mathiasbynens.be>
|
||||
*/var M=function _default(p){if(!p.addUnicodeData){throw new ReferenceError("Unicode Base must be loaded before Unicode Properties")}var o=d["default"];o.push({name:"Assigned",inverseOf:"Cn"});p.addUnicodeData(o)};o["default"]=M;p.exports=o.default},5715:(p,o,a)=>{"use strict";var t=a(515);var b=a(4218);b(o,"__esModule",{value:true});o["default"]=void 0;var d=t(a(2524));
|
||||
*/var b=function _default(p){if(!p.addUnicodeData){throw new ReferenceError("Unicode Base must be loaded before Unicode Properties")}var r=c["default"];r.push({name:"Assigned",inverseOf:"Cn"});p.addUnicodeData(r)};r["default"]=b;p.exports=r.default},5715:(p,r,a)=>{"use strict";var i=a(515);var d=a(4218);d(r,"__esModule",{value:true});r["default"]=void 0;var c=i(a(2524));
|
||||
/*!
|
||||
* XRegExp Unicode Scripts 4.4.1
|
||||
* <xregexp.com>
|
||||
* Steven Levithan (c) 2010-present MIT License
|
||||
* Unicode data by Mathias Bynens <mathiasbynens.be>
|
||||
*/var M=function _default(p){if(!p.addUnicodeData){throw new ReferenceError("Unicode Base must be loaded before Unicode Scripts")}p.addUnicodeData(d["default"])};o["default"]=M;p.exports=o.default},7750:(p,o,a)=>{"use strict";var t=a(515);var b=a(4218);b(o,"__esModule",{value:true});o["default"]=void 0;var d=t(a(8612));var M=t(a(380));var r=t(a(4811));var z=t(a(3110));var c=t(a(4686));var i=t(a(1996));var O=t(a(9250));var u=t(a(5715));(0,M["default"])(d["default"]);(0,r["default"])(d["default"]);(0,z["default"])(d["default"]);(0,c["default"])(d["default"]);(0,i["default"])(d["default"]);(0,O["default"])(d["default"]);(0,u["default"])(d["default"]);var l=d["default"];o["default"]=l;p.exports=o.default},8612:(p,o,a)=>{"use strict";var t=a(515);var b=a(4218);b(o,"__esModule",{value:true});o["default"]=void 0;var d=t(a(2038));var M=t(a(5401));var r=t(a(9640));var z=t(a(7652));var c=t(a(3361));var i=t(a(466));var O=t(a(3781));var u=t(a(6761));var l=t(a(8135));var A=t(a(669));var q=t(a(6611));var m=t(a(1308));var W=t(a(9188));var h=t(a(8979));var R=t(a(3046));function _createForOfIteratorHelper(p,o){var a;if(typeof z["default"]==="undefined"||(0,r["default"])(p)==null){if((0,M["default"])(p)||(a=_unsupportedIterableToArray(p))||o&&p&&typeof p.length==="number"){if(a)p=a;var t=0;var b=function F(){};return{s:b,n:function n(){if(t>=p.length)return{done:true};return{done:false,value:p[t++]}},e:function e(p){throw p},f:b}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c=true,i=false,O;return{s:function s(){a=(0,d["default"])(p)},n:function n(){var p=a.next();c=p.done;return p},e:function e(p){i=true;O=p},f:function f(){try{if(!c&&a["return"]!=null)a["return"]()}finally{if(i)throw O}}}}function _unsupportedIterableToArray(p,o){var a;if(!p)return;if(typeof p==="string")return _arrayLikeToArray(p,o);var t=(0,W["default"])(a=Object.prototype.toString.call(p)).call(a,8,-1);if(t==="Object"&&p.constructor)t=p.constructor.name;if(t==="Map"||t==="Set")return(0,c["default"])(p);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return _arrayLikeToArray(p,o)}function _arrayLikeToArray(p,o){if(o==null||o>p.length)o=p.length;for(var a=0,t=new Array(o);a<o;a++){t[a]=p[a]}return t}
|
||||
*/var b=function _default(p){if(!p.addUnicodeData){throw new ReferenceError("Unicode Base must be loaded before Unicode Scripts")}p.addUnicodeData(c["default"])};r["default"]=b;p.exports=r.default},7750:(p,r,a)=>{"use strict";var i=a(515);var d=a(4218);d(r,"__esModule",{value:true});r["default"]=void 0;var c=i(a(8612));var b=i(a(380));var M=i(a(4811));var z=i(a(3110));var u=i(a(4686));var O=i(a(1996));var l=i(a(9250));var A=i(a(5715));(0,b["default"])(c["default"]);(0,M["default"])(c["default"]);(0,z["default"])(c["default"]);(0,u["default"])(c["default"]);(0,O["default"])(c["default"]);(0,l["default"])(c["default"]);(0,A["default"])(c["default"]);var m=c["default"];r["default"]=m;p.exports=r.default},8612:(p,r,a)=>{"use strict";var i=a(515);var d=a(4218);d(r,"__esModule",{value:true});r["default"]=void 0;var c=i(a(2038));var b=i(a(5401));var M=i(a(9640));var z=i(a(7652));var u=i(a(3361));var O=i(a(466));var l=i(a(3781));var A=i(a(6761));var m=i(a(8135));var q=i(a(669));var h=i(a(6611));var W=i(a(1308));var g=i(a(9188));var v=i(a(8979));var R=i(a(3046));function _createForOfIteratorHelper(p,r){var a;if(typeof z["default"]==="undefined"||(0,M["default"])(p)==null){if((0,b["default"])(p)||(a=_unsupportedIterableToArray(p))||r&&p&&typeof p.length==="number"){if(a)p=a;var i=0;var d=function F(){};return{s:d,n:function n(){if(i>=p.length)return{done:true};return{done:false,value:p[i++]}},e:function e(p){throw p},f:d}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u=true,O=false,l;return{s:function s(){a=(0,c["default"])(p)},n:function n(){var p=a.next();u=p.done;return p},e:function e(p){O=true;l=p},f:function f(){try{if(!u&&a["return"]!=null)a["return"]()}finally{if(O)throw l}}}}function _unsupportedIterableToArray(p,r){var a;if(!p)return;if(typeof p==="string")return _arrayLikeToArray(p,r);var i=(0,g["default"])(a=Object.prototype.toString.call(p)).call(a,8,-1);if(i==="Object"&&p.constructor)i=p.constructor.name;if(i==="Map"||i==="Set")return(0,u["default"])(p);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return _arrayLikeToArray(p,r)}function _arrayLikeToArray(p,r){if(r==null||r>p.length)r=p.length;for(var a=0,i=new Array(r);a<r;a++){i[a]=p[a]}return i}
|
||||
/*!
|
||||
* XRegExp 4.4.1
|
||||
* <xregexp.com>
|
||||
* Steven Levithan (c) 2007-present MIT License
|
||||
*/var g="xregexp";var v={astral:false,namespacing:false};var L={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split};var _={};var N={};var w={};var B=[];var T="default";var y="class";var E={default:/\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|\(\?(?:[:=!]|<[=!])|[?*+]\?|{\d+(?:,\d*)?}\??|[\s\S]/,class:/\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|[\s\S]/};var S=/\$(?:{([\w$]+)}|<([\w$]+)>|(\d\d?|[\s\S]))/g;var X=L.exec.call(/()??/,"")[1]===undefined;var k=(0,R["default"])(/x/)!==undefined;var P={},C=P.toString;function hasNativeFlag(p){var o=true;try{new RegExp("",p);if(p==="y"){var a=function(){return"gy"}();var t=".a".replace(new RegExp("a",a),".")==="..";if(t){o=false}}}catch(p){o=false}return o}var D=hasNativeFlag("u");var x=hasNativeFlag("y");var I={g:true,i:true,m:true,u:D,y:x};function augment(p,o,a,t,b){var d;p[g]={captureNames:o};if(b){return p}if(p.__proto__){p.__proto__=XRegExp.prototype}else{for(var M in XRegExp.prototype){p[M]=XRegExp.prototype[M]}}p[g].source=a;p[g].flags=t?(0,h["default"])(d=t.split("")).call(d).join(""):t;return p}function clipDuplicates(p){return L.replace.call(p,/([\s\S])(?=[\s\S]*\1)/g,"")}function copyRegex(p,o){var a;if(!XRegExp.isRegExp(p)){throw new TypeError("Type RegExp expected")}var t=p[g]||{};var b=getNativeFlags(p);var d="";var M="";var r=null;var z=null;o=o||{};if(o.removeG){M+="g"}if(o.removeY){M+="y"}if(M){b=L.replace.call(b,new RegExp("[".concat(M,"]+"),"g"),"")}if(o.addG){d+="g"}if(o.addY){d+="y"}if(d){b=clipDuplicates(b+d)}if(!o.isInternalOnly){if(t.source!==undefined){r=t.source}if((0,R["default"])(t)!=null){z=d?clipDuplicates((0,R["default"])(t)+d):(0,R["default"])(t)}}p=augment(new RegExp(o.source||p.source,b),hasNamedCapture(p)?(0,W["default"])(a=t.captureNames).call(a,0):null,r,z,o.isInternalOnly);return p}function dec(p){return(0,m["default"])(p,16)}function getContextualTokenSeparator(p,o,a){if(p.input[p.index-1]==="("||p.input[p.index+p[0].length]===")"||p.input[p.index-1]==="|"||p.input[p.index+p[0].length]==="|"||p.index<1||p.index+p[0].length>=p.input.length||L.test.call(/^\(\?[:=!]/,p.input.substr(p.index-3,3))||isQuantifierNext(p.input,p.index+p[0].length,a)){return""}return"(?:)"}function getNativeFlags(p){return k?(0,R["default"])(p):L.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(p))[1]}function hasNamedCapture(p){return!!(p[g]&&p[g].captureNames)}function hex(p){return(0,m["default"])(p,10).toString(16)}function isQuantifierNext(p,o,a){var t="\\(\\?#[^)]*\\)";var b="#[^#\\n]*";var d="[?*+]|{\\d+(?:,\\d*)?}";return L.test.call((0,q["default"])(a).call(a,"x")?/^(?:\s|#[^#\n]*|\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/:/^(?:\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/,(0,W["default"])(p).call(p,o))}function isType(p,o){return C.call(p)==="[object ".concat(o,"]")}function pad4(p){while(p.length<4){p="0".concat(p)}return p}function prepareFlags(p,o){if(clipDuplicates(o)!==o){throw new SyntaxError("Invalid duplicate regex flag ".concat(o))}p=L.replace.call(p,/^\(\?([\w$]+)\)/,(function(p,a){if(L.test.call(/[gy]/,a)){throw new SyntaxError("Cannot use flag g or y in mode modifier ".concat(p))}o=clipDuplicates(o+a);return""}));var a=_createForOfIteratorHelper(o),t;try{for(a.s();!(t=a.n()).done;){var b=t.value;if(!I[b]){throw new SyntaxError("Unknown regex flag ".concat(b))}}}catch(p){a.e(p)}finally{a.f()}return{pattern:p,flags:o}}function prepareOptions(p){var o={};if(isType(p,"String")){(0,A["default"])(XRegExp).call(XRegExp,p,/[^\s,]+/,(function(p){o[p]=true}));return o}return p}function registerFlag(p){if(!/^[\w$]$/.test(p)){throw new Error("Flag must be a single character A-Za-z0-9_$")}I[p]=true}function runTokens(p,o,a,t,b){var d=B.length;var M=p[a];var r=null;var z;var c;while(d--){c=B[d];if(c.leadChar&&c.leadChar!==M||c.scope!==t&&c.scope!=="all"||c.flag&&!(0,q["default"])(o).call(o,c.flag)){continue}z=XRegExp.exec(p,c.regex,a,"sticky");if(z){r={matchLength:z[0].length,output:c.handler.call(b,z,t,o),reparse:c.reparse};break}}return r}function setAstral(p){v.astral=p}function setNamespacing(p){v.namespacing=p}function toObject(p){if(p==null){throw new TypeError("Cannot convert null or undefined to object")}return p}function XRegExp(p,o){if(XRegExp.isRegExp(p)){if(o!==undefined){throw new TypeError("Cannot supply flags when copying a RegExp")}return copyRegex(p)}p=p===undefined?"":String(p);o=o===undefined?"":String(o);if(XRegExp.isInstalled("astral")&&!(0,q["default"])(o).call(o,"A")){o+="A"}if(!w[p]){w[p]={}}if(!w[p][o]){var a={hasNamedCapture:false,captureNames:[]};var t=T;var b="";var d=0;var M;var r=prepareFlags(p,o);var z=r.pattern;var c=(0,R["default"])(r);while(d<z.length){do{M=runTokens(z,c,d,t,a);if(M&&M.reparse){z=(0,W["default"])(z).call(z,0,d)+M.output+(0,W["default"])(z).call(z,d+M.matchLength)}}while(M&&M.reparsLine truncated
|
||||
*/var _="xregexp";var L={astral:false,namespacing:false};var w={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split};var E={};var T={};var N={};var y=[];var S="default";var B="class";var k={default:/\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|\(\?(?:[:=!]|<[=!])|[?*+]\?|{\d+(?:,\d*)?}\??|[\s\S]/,class:/\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|[\s\S]/};var P=/\$(?:{([\w$]+)}|<([\w$]+)>|(\d\d?|[\s\S]))/g;var X=w.exec.call(/()??/,"")[1]===undefined;var C=(0,R["default"])(/x/)!==undefined;var D={},x=D.toString;function hasNativeFlag(p){var r=true;try{new RegExp("",p);if(p==="y"){var a=function(){return"gy"}();var i=".a".replace(new RegExp("a",a),".")==="..";if(i){r=false}}}catch(p){r=false}return r}var I=hasNativeFlag("u");var G=hasNativeFlag("y");var U={g:true,i:true,m:true,u:I,y:G};function augment(p,r,a,i,d){var c;p[_]={captureNames:r};if(d){return p}if(p.__proto__){p.__proto__=XRegExp.prototype}else{for(var b in XRegExp.prototype){p[b]=XRegExp.prototype[b]}}p[_].source=a;p[_].flags=i?(0,v["default"])(c=i.split("")).call(c).join(""):i;return p}function clipDuplicates(p){return w.replace.call(p,/([\s\S])(?=[\s\S]*\1)/g,"")}function copyRegex(p,r){var a;if(!XRegExp.isRegExp(p)){throw new TypeError("Type RegExp expected")}var i=p[_]||{};var d=getNativeFlags(p);var c="";var b="";var M=null;var z=null;r=r||{};if(r.removeG){b+="g"}if(r.removeY){b+="y"}if(b){d=w.replace.call(d,new RegExp("[".concat(b,"]+"),"g"),"")}if(r.addG){c+="g"}if(r.addY){c+="y"}if(c){d=clipDuplicates(d+c)}if(!r.isInternalOnly){if(i.source!==undefined){M=i.source}if((0,R["default"])(i)!=null){z=c?clipDuplicates((0,R["default"])(i)+c):(0,R["default"])(i)}}p=augment(new RegExp(r.source||p.source,d),hasNamedCapture(p)?(0,g["default"])(a=i.captureNames).call(a,0):null,M,z,r.isInternalOnly);return p}function dec(p){return(0,W["default"])(p,16)}function getContextualTokenSeparator(p,r,a){if(p.input[p.index-1]==="("||p.input[p.index+p[0].length]===")"||p.input[p.index-1]==="|"||p.input[p.index+p[0].length]==="|"||p.index<1||p.index+p[0].length>=p.input.length||w.test.call(/^\(\?[:=!]/,p.input.substr(p.index-3,3))||isQuantifierNext(p.input,p.index+p[0].length,a)){return""}return"(?:)"}function getNativeFlags(p){return C?(0,R["default"])(p):w.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(p))[1]}function hasNamedCapture(p){return!!(p[_]&&p[_].captureNames)}function hex(p){return(0,W["default"])(p,10).toString(16)}function isQuantifierNext(p,r,a){var i="\\(\\?#[^)]*\\)";var d="#[^#\\n]*";var c="[?*+]|{\\d+(?:,\\d*)?}";return w.test.call((0,h["default"])(a).call(a,"x")?/^(?:\s|#[^#\n]*|\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/:/^(?:\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/,(0,g["default"])(p).call(p,r))}function isType(p,r){return x.call(p)==="[object ".concat(r,"]")}function pad4(p){while(p.length<4){p="0".concat(p)}return p}function prepareFlags(p,r){if(clipDuplicates(r)!==r){throw new SyntaxError("Invalid duplicate regex flag ".concat(r))}p=w.replace.call(p,/^\(\?([\w$]+)\)/,(function(p,a){if(w.test.call(/[gy]/,a)){throw new SyntaxError("Cannot use flag g or y in mode modifier ".concat(p))}r=clipDuplicates(r+a);return""}));var a=_createForOfIteratorHelper(r),i;try{for(a.s();!(i=a.n()).done;){var d=i.value;if(!U[d]){throw new SyntaxError("Unknown regex flag ".concat(d))}}}catch(p){a.e(p)}finally{a.f()}return{pattern:p,flags:r}}function prepareOptions(p){var r={};if(isType(p,"String")){(0,q["default"])(XRegExp).call(XRegExp,p,/[^\s,]+/,(function(p){r[p]=true}));return r}return p}function registerFlag(p){if(!/^[\w$]$/.test(p)){throw new Error("Flag must be a single character A-Za-z0-9_$")}U[p]=true}function runTokens(p,r,a,i,d){var c=y.length;var b=p[a];var M=null;var z;var u;while(c--){u=y[c];if(u.leadChar&&u.leadChar!==b||u.scope!==i&&u.scope!=="all"||u.flag&&!(0,h["default"])(r).call(r,u.flag)){continue}z=XRegExp.exec(p,u.regex,a,"sticky");if(z){M={matchLength:z[0].length,output:u.handler.call(d,z,i,r),reparse:u.reparse};break}}return M}function setAstral(p){L.astral=p}function setNamespacing(p){L.namespacing=p}function toObject(p){if(p==null){throw new TypeError("Cannot convert null or undefined to object")}return p}function XRegExp(p,r){if(XRegExp.isRegExp(p)){if(r!==undefined){throw new TypeError("Cannot supply flags when copying a RegExp")}return copyRegex(p)}p=p===undefined?"":String(p);r=r===undefined?"":String(r);if(XRegExp.isInstalled("astral")&&!(0,h["default"])(r).call(r,"A")){r+="A"}if(!N[p]){N[p]={}}if(!N[p][r]){var a={hasNamedCapture:false,captureNames:[]};var i=S;var d="";var c=0;var b;var M=prepareFlags(p,r);var z=M.pattern;var u=(0,R["default"])(M);while(c<z.length){do{b=runTokens(z,u,c,i,a);if(b&&b.reparse){z=(0,g["default"])(z).call(z,0,c)+b.output+(0,g["default"])(z).call(z,c+b.matchLength)}}while(b&&b.reparsLine truncated
|
||||
//# sourceMappingURL=index.js.map
|
||||
+1
-1
@@ -1 +1 @@
|
||||
{"version":3,"sources":["../webpack:/docker-metadata-action/node_modules/@actions/core/lib/command.js","../webpack:/docker-metadata-action/node_modules/@actions/core/lib/core.js","../webpack:/docker-metadata-action/node_modules/@actions/core/lib/file-command.js","../webpack:/docker-metadata-action/node_modules/@actions/core/lib/oidc-utils.js","../webpack:/docker-metadata-action/node_modules/@actions/core/lib/path-utils.js","../webpack:/docker-metadata-action/node_modules/@actions/core/lib/summary.js","../webpack:/docker-metadata-action/node_modules/@actions/core/lib/utils.js","../webpack:/docker-metadata-action/node_modules/@actions/github/lib/context.js","../webpack:/docker-metadata-action/node_modules/@actions/github/lib/github.js","../webpack:/docker-metadata-action/node_modules/@actions/github/lib/internal/utils.js","../webpack:/docker-metadata-action/node_modules/@actions/github/lib/utils.js","../webpack:/docker-metadata-action/node_modules/@actions/http-client/lib/auth.js","../webpack:/docker-metadata-action/node_modules/@actions/http-client/lib/index.js","../webpack:/docker-metadata-action/node_modules/@actions/http-client/lib/proxy.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/array/from.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/array/is-array.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/flags.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/for-each.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/includes.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/index-of.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/reduce.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/slice.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/sort.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/object/create.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/parse-int.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/symbol.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js/array/from.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js/array/is-array.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js/get-iterator-method.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js/get-iterator.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js/instance/slice.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js/symbol.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/helpers/arrayLikeToArray.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/helpers/arrayWithHoles.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/helpers/iterableToArrayLimit.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/helpers/nonIterableRest.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/helpers/unsupportedIterableToArray.js","../webpack:/docker-metadata-action/node_modules/@octokit/auth-token/dist-node/index.js","../webpack:/docker-metadata-action/node_modules/@octokit/core/dist-node/index.js","../webpack:/docker-metadata-action/node_modules/@octokit/endpoint/dist-node/index.js","../webpack:/docker-metadata-action/node_modules/@octokit/graphql/dist-node/index.js","../webpack:/docker-metadata-action/node_modules/@octokit/graphql/node_modules/@octokit/request-error/dist-node/index.js","../webpack:/docker-metadata-action/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-node/index.js","../webpack:/docker-metadata-action/node_modules/@octokit/plugin-paginate-rest/dist-node/index.js","../webpack:/docker-metadata-action/node_modules/@octokit/plugin-rest-endpoint-methods/dist-node/index.js","../webpack:/docker-metadata-action/node_modules/@octokit/request/dist-node/index.js","../webpack:/docker-metadata-action/node_modules/@octokit/request/nodLine truncated
|
||||
{"version":3,"sources":["../webpack:/docker-metadata-action/node_modules/@actions/core/lib/command.js","../webpack:/docker-metadata-action/node_modules/@actions/core/lib/core.js","../webpack:/docker-metadata-action/node_modules/@actions/core/lib/file-command.js","../webpack:/docker-metadata-action/node_modules/@actions/core/lib/oidc-utils.js","../webpack:/docker-metadata-action/node_modules/@actions/core/lib/path-utils.js","../webpack:/docker-metadata-action/node_modules/@actions/core/lib/summary.js","../webpack:/docker-metadata-action/node_modules/@actions/core/lib/utils.js","../webpack:/docker-metadata-action/node_modules/@actions/exec/lib/exec.js","../webpack:/docker-metadata-action/node_modules/@actions/exec/lib/toolrunner.js","../webpack:/docker-metadata-action/node_modules/@actions/github/lib/context.js","../webpack:/docker-metadata-action/node_modules/@actions/github/lib/github.js","../webpack:/docker-metadata-action/node_modules/@actions/github/lib/internal/utils.js","../webpack:/docker-metadata-action/node_modules/@actions/github/lib/utils.js","../webpack:/docker-metadata-action/node_modules/@actions/http-client/lib/auth.js","../webpack:/docker-metadata-action/node_modules/@actions/http-client/lib/index.js","../webpack:/docker-metadata-action/node_modules/@actions/http-client/lib/proxy.js","../webpack:/docker-metadata-action/node_modules/@actions/io/lib/io-util.js","../webpack:/docker-metadata-action/node_modules/@actions/io/lib/io.js","../webpack:/docker-metadata-action/node_modules/@actions/tool-cache/lib/manifest.js","../webpack:/docker-metadata-action/node_modules/@actions/tool-cache/lib/retry-helper.js","../webpack:/docker-metadata-action/node_modules/@actions/tool-cache/lib/tool-cache.js","../webpack:/docker-metadata-action/node_modules/@actions/tool-cache/node_modules/semver/semver.js","../webpack:/docker-metadata-action/node_modules/@actions/tool-cache/node_modules/uuid/lib/bytesToUuid.js","../webpack:/docker-metadata-action/node_modules/@actions/tool-cache/node_modules/uuid/lib/rng.js","../webpack:/docker-metadata-action/node_modules/@actions/tool-cache/node_modules/uuid/v4.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/array/from.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/array/is-array.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/flags.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/for-each.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/includes.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/index-of.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/reduce.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/slice.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/sort.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/object/create.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/parse-int.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/symbol.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js/array/from.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js/array/is-array.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js/get-iterator-method.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js/get-iterator.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js/instance/slice.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js/symbol.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/helpers/arrayLikeToArray.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/helpers/arrayWithHoles.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/helpers/iterableToArrayLimit.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/helpers/nonIterableRest.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/helpers/unsuLine truncated
|
||||
+527
@@ -10,6 +10,18 @@ The above copyright notice and this permission notice shall be included in all c
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
@actions/exec
|
||||
MIT
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright 2019 GitHub
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
@actions/github
|
||||
MIT
|
||||
The MIT License (MIT)
|
||||
@@ -47,6 +59,30 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
|
||||
@actions/io
|
||||
MIT
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright 2019 GitHub
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
@actions/tool-cache
|
||||
MIT
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright 2019 GitHub
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
@babel/runtime-corejs3
|
||||
MIT
|
||||
MIT License
|
||||
@@ -73,6 +109,201 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
|
||||
@docker/actions-toolkit
|
||||
Apache-2.0
|
||||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
https://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
Copyright 2013-2018 Docker, Inc.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
https://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS 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.
|
||||
|
||||
|
||||
@octokit/auth-token
|
||||
MIT
|
||||
The MIT License
|
||||
@@ -262,6 +493,31 @@ The above copyright notice and this permission notice shall be included in all c
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
balanced-match
|
||||
MIT
|
||||
(MIT)
|
||||
|
||||
Copyright (c) 2013 Julian Gruber <julian@juliangruber.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
||||
of the Software, and to permit persons to whom the Software is furnished to do
|
||||
so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
||||
|
||||
before-after-hook
|
||||
Apache-2.0
|
||||
Apache License
|
||||
@@ -467,6 +723,53 @@ Apache-2.0
|
||||
limitations under the License.
|
||||
|
||||
|
||||
brace-expansion
|
||||
MIT
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2013 Julian Gruber <julian@juliangruber.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
||||
|
||||
concat-map
|
||||
MIT
|
||||
This software is released under the MIT license:
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
|
||||
core-js-pure
|
||||
MIT
|
||||
Copyright (c) 2014-2021 Denis Pushkarev
|
||||
@@ -534,6 +837,78 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
||||
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
|
||||
fs.realpath
|
||||
ISC
|
||||
The ISC License
|
||||
|
||||
Copyright (c) Isaac Z. Schlueter and Contributors
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
||||
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
----
|
||||
|
||||
This library bundles a version of the `fs.realpath` and `fs.realpathSync`
|
||||
methods from Node.js v0.10 under the terms of the Node.js MIT license.
|
||||
|
||||
Node's license follows, also included at the header of `old.js` which contains
|
||||
the licensed code:
|
||||
|
||||
Copyright Joyent, Inc. and other Node contributors.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a
|
||||
copy of this software and associated documentation files (the "Software"),
|
||||
to deal in the Software without restriction, including without limitation
|
||||
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
and/or sell copies of the Software, and to permit persons to whom the
|
||||
Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
DEALINGS IN THE SOFTWARE.
|
||||
|
||||
|
||||
glob
|
||||
ISC
|
||||
The ISC License
|
||||
|
||||
Copyright (c) Isaac Z. Schlueter and Contributors
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
||||
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
## Glob Logo
|
||||
|
||||
Glob's logo created by Tanya Brassie <http://tanyabrassie.com/>, licensed
|
||||
under a Creative Commons Attribution-ShareAlike 4.0 International License
|
||||
https://creativecommons.org/licenses/by-sa/4.0/
|
||||
|
||||
|
||||
handlebars
|
||||
MIT
|
||||
Copyright (C) 2011-2019 by Yehuda Katz
|
||||
@@ -557,6 +932,45 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
||||
|
||||
inflight
|
||||
ISC
|
||||
The ISC License
|
||||
|
||||
Copyright (c) Isaac Z. Schlueter
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
||||
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
|
||||
inherits
|
||||
ISC
|
||||
The ISC License
|
||||
|
||||
Copyright (c) Isaac Z. Schlueter
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
|
||||
|
||||
is-plain-object
|
||||
MIT
|
||||
The MIT License (MIT)
|
||||
@@ -582,6 +996,31 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
||||
|
||||
jwt-decode
|
||||
MIT
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015 Auth0, Inc. <support@auth0.com> (http://auth0.com)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
||||
|
||||
lru-cache
|
||||
ISC
|
||||
The ISC License
|
||||
@@ -601,6 +1040,25 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
||||
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
|
||||
minimatch
|
||||
ISC
|
||||
The ISC License
|
||||
|
||||
Copyright (c) Isaac Z. Schlueter and Contributors
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
||||
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
|
||||
moment
|
||||
MIT
|
||||
Copyright (c) JS Foundation and other contributors
|
||||
@@ -695,6 +1153,50 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
||||
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
|
||||
path-is-absolute
|
||||
MIT
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
||||
|
||||
rimraf
|
||||
ISC
|
||||
The ISC License
|
||||
|
||||
Copyright (c) Isaac Z. Schlueter and Contributors
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
||||
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
|
||||
semver
|
||||
ISC
|
||||
The ISC License
|
||||
@@ -746,6 +1248,31 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
tmp
|
||||
MIT
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2014 KARASZI István
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
||||
|
||||
tr46
|
||||
MIT
|
||||
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
(()=>{var e={650:e=>{var r=Object.prototype.toString;var n=typeof Buffer.alloc==="function"&&typeof Buffer.allocUnsafe==="function"&&typeof Buffer.from==="function";function isArrayBuffer(e){return r.call(e).slice(8,-1)==="ArrayBuffer"}function fromArrayBuffer(e,r,t){r>>>=0;var o=e.byteLength-r;if(o<0){throw new RangeError("'offset' is out of bounds")}if(t===undefined){t=o}else{t>>>=0;if(t>o){throw new RangeError("'length' is out of bounds")}}return n?Buffer.from(e.slice(r,r+t)):new Buffer(new Uint8Array(e.slice(r,r+t)))}function fromString(e,r){if(typeof r!=="string"||r===""){r="utf8"}if(!Buffer.isEncoding(r)){throw new TypeError('"encoding" must be a valid string encoding')}return n?Buffer.from(e,r):new Buffer(e,r)}function bufferFrom(e,r,t){if(typeof e==="number"){throw new TypeError('"value" argument must not be a number')}if(isArrayBuffer(e)){return fromArrayBuffer(e,r,t)}if(typeof e==="string"){return fromString(e,r)}return n?Buffer.from(e):new Buffer(e)}e.exports=bufferFrom},284:(e,r,n)=>{e=n.nmd(e);var t=n(596).SourceMapConsumer;var o=n(17);var i;try{i=n(147);if(!i.existsSync||!i.readFileSync){i=null}}catch(e){}var a=n(650);function dynamicRequire(e,r){return e.require(r)}var u=false;var s=false;var l=false;var c="auto";var p={};var f={};var g=/^data:application\/json[^,]+base64,/;var h=[];var d=[];function isInBrowser(){if(c==="browser")return true;if(c==="node")return false;return typeof window!=="undefined"&&typeof XMLHttpRequest==="function"&&!(window.require&&window.module&&window.process&&window.process.type==="renderer")}function hasGlobalProcessEventEmitter(){return typeof process==="object"&&process!==null&&typeof process.on==="function"}function globalProcessVersion(){if(typeof process==="object"&&process!==null){return process.version}else{return""}}function globalProcessStderr(){if(typeof process==="object"&&process!==null){return process.stderr}}function globalProcessExit(e){if(typeof process==="object"&&process!==null&&typeof process.exit==="function"){return process.exit(e)}}function handlerExec(e){return function(r){for(var n=0;n<e.length;n++){var t=e[n](r);if(t){return t}}return null}}var m=handlerExec(h);h.push((function(e){e=e.trim();if(/^file:/.test(e)){e=e.replace(/file:\/\/\/(\w:)?/,(function(e,r){return r?"":"/"}))}if(e in p){return p[e]}var r="";try{if(!i){var n=new XMLHttpRequest;n.open("GET",e,false);n.send(null);if(n.readyState===4&&n.status===200){r=n.responseText}}else if(i.existsSync(e)){r=i.readFileSync(e,"utf8")}}catch(e){}return p[e]=r}));function supportRelativeURL(e,r){if(!e)return r;var n=o.dirname(e);var t=/^\w+:\/\/[^\/]*/.exec(n);var i=t?t[0]:"";var a=n.slice(i.length);if(i&&/^\/\w\:/.test(a)){i+="/";return i+o.resolve(n.slice(i.length),r).replace(/\\/g,"/")}return i+o.resolve(n.slice(i.length),r)}function retrieveSourceMapURL(e){var r;if(isInBrowser()){try{var n=new XMLHttpRequest;n.open("GET",e,false);n.send(null);r=n.readyState===4?n.responseText:null;var t=n.getResponseHeader("SourceMap")||n.getResponseHeader("X-SourceMap");if(t){return t}}catch(e){}}r=m(e);var o=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/gm;var i,a;while(a=o.exec(r))i=a;if(!i)return null;return i[1]}var v=handlerExec(d);d.push((function(e){var r=retrieveSourceMapURL(e);if(!r)return null;var n;if(g.test(r)){var t=r.slice(r.indexOf(",")+1);n=a(t,"base64").toString();r=e}else{r=supportRelativeURL(e,r);n=m(r)}if(!n){return null}return{url:r,map:n}}));function mapSourcePosition(e){var r=f[e.source];if(!r){var n=v(e.source);if(n){r=f[e.source]={url:n.url,map:new t(n.map)};if(r.map.sourcesContent){r.map.sources.forEach((function(e,n){var t=r.map.sourcesContent[n];if(t){var o=supportRelativeURL(r.url,e);p[o]=t}}))}}else{r=f[e.source]={url:null,map:null}}}if(r&&r.map&&typeof r.map.originalPositionFor==="function"){var o=r.map.originalPositionFor(e);if(o.source!==null){o.source=supportRelativeURL(r.url,o.source);return o}}return e}function mapEvalOrigin(e){var r=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(e);if(r){var n=mapSourcePosition({source:r[2],line:+r[3],column:r[4]-1});return"eval at "+r[1]+" ("+n.source+":"+n.line+":"+(n.column+1)+")"}r=/^eval at ([^(]+) \((.+)\)$/.exec(e);if(r){return"eval at "+r[1]+" ("+mapEvalOrigin(r[2])+")"}return e}function CallSiteToString(){var e;var r="";if(this.isNative()){r="native"}else{e=this.getScriptNameOrSourceURL();if(!e&&this.isEval()){r=this.getEvalOrigin();r+=", "}if(e){r+=e}else{r+="<anonymous>"}var n=this.getLineNumber();if(n!=null){r+=":"+n;var t=this.getColumnNumber();if(t){r+=":"+t}}}var o="";var i=this.getFunctionName();var a=true;var u=this.isConstructor();var s=!(this.isToplevel()||u);if(s){var l=this.getTypeName();if(l==="[object Object]"){l="null"}var c=this.getMethodName();if(i){if(l&&i.indexOf(l)!=0){o+=l+"."}o+=i;if(c&&i.indexOf("."+c)!=i.length-c.length-1){o+=" [as "+c+"]"}}else{o+=l+"."+(c||"<anonymous>")}}else if(u){o+="new "+(i||"<anonymous>")}else if(i){o+=i}elLine truncated
|
||||
(()=>{var e={650:e=>{var r=Object.prototype.toString;var n=typeof Buffer.alloc==="function"&&typeof Buffer.allocUnsafe==="function"&&typeof Buffer.from==="function";function isArrayBuffer(e){return r.call(e).slice(8,-1)==="ArrayBuffer"}function fromArrayBuffer(e,r,t){r>>>=0;var o=e.byteLength-r;if(o<0){throw new RangeError("'offset' is out of bounds")}if(t===undefined){t=o}else{t>>>=0;if(t>o){throw new RangeError("'length' is out of bounds")}}return n?Buffer.from(e.slice(r,r+t)):new Buffer(new Uint8Array(e.slice(r,r+t)))}function fromString(e,r){if(typeof r!=="string"||r===""){r="utf8"}if(!Buffer.isEncoding(r)){throw new TypeError('"encoding" must be a valid string encoding')}return n?Buffer.from(e,r):new Buffer(e,r)}function bufferFrom(e,r,t){if(typeof e==="number"){throw new TypeError('"value" argument must not be a number')}if(isArrayBuffer(e)){return fromArrayBuffer(e,r,t)}if(typeof e==="string"){return fromString(e,r)}return n?Buffer.from(e):new Buffer(e)}e.exports=bufferFrom},274:(e,r,n)=>{var t=n(339);var o=Object.prototype.hasOwnProperty;var i=typeof Map!=="undefined";function ArraySet(){this._array=[];this._set=i?new Map:Object.create(null)}ArraySet.fromArray=function ArraySet_fromArray(e,r){var n=new ArraySet;for(var t=0,o=e.length;t<o;t++){n.add(e[t],r)}return n};ArraySet.prototype.size=function ArraySet_size(){return i?this._set.size:Object.getOwnPropertyNames(this._set).length};ArraySet.prototype.add=function ArraySet_add(e,r){var n=i?e:t.toSetString(e);var a=i?this.has(e):o.call(this._set,n);var u=this._array.length;if(!a||r){this._array.push(e)}if(!a){if(i){this._set.set(e,u)}else{this._set[n]=u}}};ArraySet.prototype.has=function ArraySet_has(e){if(i){return this._set.has(e)}else{var r=t.toSetString(e);return o.call(this._set,r)}};ArraySet.prototype.indexOf=function ArraySet_indexOf(e){if(i){var r=this._set.get(e);if(r>=0){return r}}else{var n=t.toSetString(e);if(o.call(this._set,n)){return this._set[n]}}throw new Error('"'+e+'" is not in the set.')};ArraySet.prototype.at=function ArraySet_at(e){if(e>=0&&e<this._array.length){return this._array[e]}throw new Error("No element indexed by "+e)};ArraySet.prototype.toArray=function ArraySet_toArray(){return this._array.slice()};r.I=ArraySet},449:(e,r,n)=>{var t=n(190);var o=5;var i=1<<o;var a=i-1;var u=i;function toVLQSigned(e){return e<0?(-e<<1)+1:(e<<1)+0}function fromVLQSigned(e){var r=(e&1)===1;var n=e>>1;return r?-n:n}r.encode=function base64VLQ_encode(e){var r="";var n;var i=toVLQSigned(e);do{n=i&a;i>>>=o;if(i>0){n|=u}r+=t.encode(n)}while(i>0);return r};r.decode=function base64VLQ_decode(e,r,n){var i=e.length;var s=0;var l=0;var c,p;do{if(r>=i){throw new Error("Expected more digits in base 64 VLQ value.")}p=t.decode(e.charCodeAt(r++));if(p===-1){throw new Error("Invalid base64 digit: "+e.charAt(r-1))}c=!!(p&u);p&=a;s=s+(p<<l);l+=o}while(c);n.value=fromVLQSigned(s);n.rest=r}},190:(e,r)=>{var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");r.encode=function(e){if(0<=e&&e<n.length){return n[e]}throw new TypeError("Must be between 0 and 63: "+e)};r.decode=function(e){var r=65;var n=90;var t=97;var o=122;var i=48;var a=57;var u=43;var s=47;var l=26;var c=52;if(r<=e&&e<=n){return e-r}if(t<=e&&e<=o){return e-t+l}if(i<=e&&e<=a){return e-i+c}if(e==u){return 62}if(e==s){return 63}return-1}},345:(e,r)=>{r.GREATEST_LOWER_BOUND=1;r.LEAST_UPPER_BOUND=2;function recursiveSearch(e,n,t,o,i,a){var u=Math.floor((n-e)/2)+e;var s=i(t,o[u],true);if(s===0){return u}else if(s>0){if(n-u>1){return recursiveSearch(u,n,t,o,i,a)}if(a==r.LEAST_UPPER_BOUND){return n<o.length?n:-1}else{return u}}else{if(u-e>1){return recursiveSearch(e,u,t,o,i,a)}if(a==r.LEAST_UPPER_BOUND){return u}else{return e<0?-1:e}}}r.search=function search(e,n,t,o){if(n.length===0){return-1}var i=recursiveSearch(-1,n.length,e,n,t,o||r.GREATEST_LOWER_BOUND);if(i<0){return-1}while(i-1>=0){if(t(n[i],n[i-1],true)!==0){break}--i}return i}},680:(e,r,n)=>{var t=n(339);function generatedPositionAfter(e,r){var n=e.generatedLine;var o=r.generatedLine;var i=e.generatedColumn;var a=r.generatedColumn;return o>n||o==n&&a>=i||t.compareByGeneratedPositionsInflated(e,r)<=0}function MappingList(){this._array=[];this._sorted=true;this._last={generatedLine:-1,generatedColumn:0}}MappingList.prototype.unsortedForEach=function MappingList_forEach(e,r){this._array.forEach(e,r)};MappingList.prototype.add=function MappingList_add(e){if(generatedPositionAfter(this._last,e)){this._last=e;this._array.push(e)}else{this._sorted=false;this._array.push(e)}};MappingList.prototype.toArray=function MappingList_toArray(){if(!this._sorted){this._array.sort(t.compareByGeneratedPositionsInflated);this._sorted=true}return this._array};r.H=MappingList},758:(e,r)=>{function swap(e,r,n){var t=e[r];e[r]=e[n];e[n]=t}function randomIntInRange(e,r){return Math.round(e+Math.random()*(r-e))}function doQuickSort(e,r,n,t){if(n<t){var o=randomIntInRange(n,t);var i=n-1;swap(e,o,t);var a=e[t];for(var u=n;u<t;u++){if(r(e[u],Line truncated
|
||||
@@ -1,5 +1,21 @@
|
||||
import fs from 'fs';
|
||||
import os from 'os';
|
||||
import path from 'path';
|
||||
|
||||
const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'docker-metadata-action-'));
|
||||
|
||||
process.env = Object.assign({}, process.env, {
|
||||
TEMP: tmpDir,
|
||||
GITHUB_REPOSITORY: 'docker/metadata-action',
|
||||
RUNNER_TEMP: path.join(tmpDir, 'runner-temp'),
|
||||
RUNNER_TOOL_CACHE: path.join(tmpDir, 'runner-tool-cache')
|
||||
}) as {
|
||||
[key: string]: string;
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
clearMocks: true,
|
||||
testEnvironment: 'node',
|
||||
moduleFileExtensions: ['js', 'ts'],
|
||||
setupFiles: ['dotenv/config'],
|
||||
testMatch: ['**/*.test.ts'],
|
||||
@@ -9,5 +25,7 @@ module.exports = {
|
||||
moduleNameMapper: {
|
||||
'^csv-parse/sync': '<rootDir>/node_modules/csv-parse/dist/cjs/sync.cjs'
|
||||
},
|
||||
collectCoverageFrom: ['src/**/{!(main.ts),}.ts'],
|
||||
coveragePathIgnorePatterns: ['lib/', 'node_modules/', '__mocks__/', '__tests__/'],
|
||||
verbose: true
|
||||
};
|
||||
+19
-18
@@ -31,29 +31,30 @@
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.10.0",
|
||||
"@actions/github": "^5.1.1",
|
||||
"@docker/actions-toolkit": "^0.5.0",
|
||||
"@renovate/pep440": "^1.0.0",
|
||||
"csv-parse": "^5.3.3",
|
||||
"csv-parse": "^5.4.0",
|
||||
"handlebars": "^4.7.7",
|
||||
"moment": "^2.29.4",
|
||||
"moment-timezone": "^0.5.40",
|
||||
"semver": "^7.3.7"
|
||||
"moment-timezone": "^0.5.43",
|
||||
"semver": "^7.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/csv-parse": "^1.2.2",
|
||||
"@types/node": "^16.11.26",
|
||||
"@types/semver": "^7.3.9",
|
||||
"@typescript-eslint/eslint-plugin": "^5.14.0",
|
||||
"@typescript-eslint/parser": "^5.14.0",
|
||||
"@vercel/ncc": "^0.33.3",
|
||||
"dotenv": "^16.0.0",
|
||||
"eslint": "^8.11.0",
|
||||
"eslint-config-prettier": "^8.5.0",
|
||||
"eslint-plugin-jest": "^26.1.1",
|
||||
"eslint-plugin-prettier": "^4.0.0",
|
||||
"jest": "^27.2.5",
|
||||
"prettier": "^2.3.1",
|
||||
"ts-jest": "^27.1.2",
|
||||
"ts-node": "^10.7.0",
|
||||
"typescript": "^4.4.4"
|
||||
"@types/node": "^16.18.23",
|
||||
"@types/semver": "^7.3.13",
|
||||
"@typescript-eslint/eslint-plugin": "^5.56.0",
|
||||
"@typescript-eslint/parser": "^5.56.0",
|
||||
"@vercel/ncc": "^0.36.1",
|
||||
"dotenv": "^16.0.3",
|
||||
"eslint": "^8.36.0",
|
||||
"eslint-config-prettier": "^8.8.0",
|
||||
"eslint-plugin-jest": "^27.2.1",
|
||||
"eslint-plugin-prettier": "^4.2.1",
|
||||
"jest": "^29.5.0",
|
||||
"prettier": "^2.8.7",
|
||||
"ts-jest": "^29.0.5",
|
||||
"ts-node": "^10.9.1",
|
||||
"typescript": "^4.9.5"
|
||||
}
|
||||
}
|
||||
+48
-49
@@ -1,12 +1,11 @@
|
||||
import * as fs from 'fs';
|
||||
import * as os from 'os';
|
||||
import * as path from 'path';
|
||||
import * as core from '@actions/core';
|
||||
import {parse} from 'csv-parse/sync';
|
||||
|
||||
let _tmpDir: string;
|
||||
import {Context} from '@actions/github/lib/context';
|
||||
import {Util} from '@docker/actions-toolkit/lib/util';
|
||||
import {Git} from '@docker/actions-toolkit/lib/git';
|
||||
import {GitHub} from '@docker/actions-toolkit/lib/github';
|
||||
|
||||
export interface Inputs {
|
||||
context: ContextSource;
|
||||
images: string[];
|
||||
tags: string[];
|
||||
flavor: string[];
|
||||
@@ -17,19 +16,13 @@ export interface Inputs {
|
||||
githubToken: string;
|
||||
}
|
||||
|
||||
export function tmpDir(): string {
|
||||
if (!_tmpDir) {
|
||||
_tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'docker-metadata-action-')).split(path.sep).join(path.posix.sep);
|
||||
}
|
||||
return _tmpDir;
|
||||
}
|
||||
|
||||
export function getInputs(): Inputs {
|
||||
return {
|
||||
images: getInputList('images', true),
|
||||
tags: getInputList('tags', true),
|
||||
flavor: getInputList('flavor', true),
|
||||
labels: getInputList('labels', true),
|
||||
context: (core.getInput('context') || ContextSource.workflow) as ContextSource,
|
||||
images: Util.getInputList('images', {ignoreComma: true, comment: '#'}),
|
||||
tags: Util.getInputList('tags', {ignoreComma: true, comment: '#'}),
|
||||
flavor: Util.getInputList('flavor', {ignoreComma: true, comment: '#'}),
|
||||
labels: Util.getInputList('labels', {ignoreComma: true, comment: '#'}),
|
||||
sepTags: core.getInput('sep-tags', {trimWhitespace: false}) || `\n`,
|
||||
sepLabels: core.getInput('sep-labels', {trimWhitespace: false}) || `\n`,
|
||||
bakeTarget: core.getInput('bake-target') || `docker-metadata-action`,
|
||||
@@ -37,38 +30,44 @@ export function getInputs(): Inputs {
|
||||
};
|
||||
}
|
||||
|
||||
export function getInputList(name: string, ignoreComma?: boolean): string[] {
|
||||
const res: Array<string> = [];
|
||||
|
||||
const items = core.getInput(name);
|
||||
if (items == '') {
|
||||
return res;
|
||||
}
|
||||
|
||||
const records = parse(items, {
|
||||
columns: false,
|
||||
relaxQuotes: true,
|
||||
comment: '#',
|
||||
relaxColumnCount: true,
|
||||
skipEmptyLines: true
|
||||
});
|
||||
|
||||
for (const record of records as Array<string[]>) {
|
||||
if (record.length == 1) {
|
||||
res.push(record[0]);
|
||||
continue;
|
||||
} else if (!ignoreComma) {
|
||||
res.push(...record);
|
||||
continue;
|
||||
}
|
||||
res.push(record.join(','));
|
||||
}
|
||||
|
||||
return res.filter(item => item).map(pat => pat.trim());
|
||||
export enum ContextSource {
|
||||
workflow = 'workflow',
|
||||
git = 'git'
|
||||
}
|
||||
|
||||
export const asyncForEach = async (array, callback) => {
|
||||
for (let index = 0; index < array.length; index++) {
|
||||
await callback(array[index], index, array);
|
||||
export async function getContext(source: ContextSource): Promise<Context> {
|
||||
switch (source) {
|
||||
case ContextSource.workflow:
|
||||
return getContextFromWorkflow();
|
||||
case ContextSource.git:
|
||||
return await getContextFromGit();
|
||||
default:
|
||||
throw new Error(`Invalid context source: ${source}`);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
function getContextFromWorkflow(): Context {
|
||||
const context = GitHub.context;
|
||||
|
||||
// Needs to override Git reference with pr ref instead of upstream branch ref
|
||||
// for pull_request_target event
|
||||
// https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target
|
||||
if (/pull_request_target/.test(context.eventName)) {
|
||||
context.ref = `refs/pull/${context.payload.number}/merge`;
|
||||
}
|
||||
|
||||
// DOCKER_METADATA_PR_HEAD_SHA env var can be used to set associated head
|
||||
// SHA instead of commit SHA that triggered the workflow on pull request
|
||||
// event.
|
||||
if (/true/i.test(process.env.DOCKER_METADATA_PR_HEAD_SHA || '')) {
|
||||
if ((/pull_request/.test(context.eventName) || /pull_request_target/.test(context.eventName)) && context.payload?.pull_request?.head?.sha != undefined) {
|
||||
context.sha = context.payload.pull_request.head.sha;
|
||||
}
|
||||
}
|
||||
|
||||
return context;
|
||||
}
|
||||
|
||||
async function getContextFromGit(): Promise<Context> {
|
||||
return await Git.context();
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
import * as github from '@actions/github';
|
||||
import {Context} from '@actions/github/lib/context';
|
||||
import {components as OctoOpenApiTypes} from '@octokit/openapi-types';
|
||||
|
||||
export type ReposGetResponseData = OctoOpenApiTypes['schemas']['repository'];
|
||||
|
||||
export function context(): Context {
|
||||
return github.context;
|
||||
}
|
||||
|
||||
export async function repo(token: string): Promise<ReposGetResponseData> {
|
||||
return github
|
||||
.getOctokit(token)
|
||||
.rest.repos.get({...github.context.repo})
|
||||
.then(response => response.data as ReposGetResponseData);
|
||||
}
|
||||
+54
-54
@@ -1,34 +1,43 @@
|
||||
import * as fs from 'fs';
|
||||
import {getInputs, Inputs} from './context';
|
||||
import * as github from './github';
|
||||
import {Meta, Version} from './meta';
|
||||
import * as core from '@actions/core';
|
||||
import {Context} from '@actions/github/lib/context';
|
||||
import * as actionsToolkit from '@docker/actions-toolkit';
|
||||
import {Toolkit} from '@docker/actions-toolkit/lib/toolkit';
|
||||
|
||||
async function run() {
|
||||
try {
|
||||
const inputs: Inputs = await getInputs();
|
||||
import {getContext, getInputs, Inputs} from './context';
|
||||
import {Meta, Version} from './meta';
|
||||
|
||||
function setOutput(name: string, value: string) {
|
||||
core.setOutput(name, value);
|
||||
core.exportVariable(`DOCKER_METADATA_OUTPUT_${name.replace(/\W/g, '_').toUpperCase()}`, value);
|
||||
}
|
||||
|
||||
actionsToolkit.run(
|
||||
// main
|
||||
async () => {
|
||||
const inputs: Inputs = getInputs();
|
||||
if (inputs.images.length == 0) {
|
||||
throw new Error(`images input required`);
|
||||
}
|
||||
|
||||
const context: Context = github.context();
|
||||
const repo: github.ReposGetResponseData = await github.repo(inputs.githubToken);
|
||||
core.startGroup(`Context info`);
|
||||
core.info(`eventName: ${context.eventName}`);
|
||||
core.info(`sha: ${context.sha}`);
|
||||
core.info(`ref: ${context.ref}`);
|
||||
core.info(`workflow: ${context.workflow}`);
|
||||
core.info(`action: ${context.action}`);
|
||||
core.info(`actor: ${context.actor}`);
|
||||
core.info(`runNumber: ${context.runNumber}`);
|
||||
core.info(`runId: ${context.runId}`);
|
||||
core.endGroup();
|
||||
const toolkit = new Toolkit({githubToken: inputs.githubToken});
|
||||
const context = await getContext(inputs.context);
|
||||
const repo = await toolkit.github.repoData();
|
||||
|
||||
await core.group(`Context info`, async () => {
|
||||
core.info(`eventName: ${context.eventName}`);
|
||||
core.info(`sha: ${context.sha}`);
|
||||
core.info(`ref: ${context.ref}`);
|
||||
core.info(`workflow: ${context.workflow}`);
|
||||
core.info(`action: ${context.action}`);
|
||||
core.info(`actor: ${context.actor}`);
|
||||
core.info(`runNumber: ${context.runNumber}`);
|
||||
core.info(`runId: ${context.runId}`);
|
||||
});
|
||||
|
||||
if (core.isDebug()) {
|
||||
core.startGroup(`Webhook payload`);
|
||||
core.info(JSON.stringify(context.payload, null, 2));
|
||||
core.endGroup();
|
||||
await core.group(`Webhook payload`, async () => {
|
||||
core.info(JSON.stringify(context.payload, null, 2));
|
||||
});
|
||||
}
|
||||
|
||||
const meta: Meta = new Meta(inputs, context, repo);
|
||||
@@ -37,9 +46,9 @@ async function run() {
|
||||
if (meta.version.main == undefined || meta.version.main.length == 0) {
|
||||
core.warning(`No Docker image version has been generated. Check tags input.`);
|
||||
} else {
|
||||
core.startGroup(`Docker image version`);
|
||||
core.info(version.main || '');
|
||||
core.endGroup();
|
||||
await core.group(`Docker image version`, async () => {
|
||||
core.info(version.main || '');
|
||||
});
|
||||
}
|
||||
setOutput('version', version.main || '');
|
||||
|
||||
@@ -48,44 +57,35 @@ async function run() {
|
||||
if (tags.length == 0) {
|
||||
core.warning('No Docker tag has been generated. Check tags input.');
|
||||
} else {
|
||||
core.startGroup(`Docker tags`);
|
||||
for (const tag of tags) {
|
||||
core.info(tag);
|
||||
}
|
||||
core.endGroup();
|
||||
await core.group(`Docker tags`, async () => {
|
||||
for (const tag of tags) {
|
||||
core.info(tag);
|
||||
}
|
||||
});
|
||||
}
|
||||
setOutput('tags', tags.join(inputs.sepTags));
|
||||
|
||||
// Docker labels
|
||||
const labels: Array<string> = meta.getLabels();
|
||||
core.startGroup(`Docker labels`);
|
||||
for (const label of labels) {
|
||||
core.info(label);
|
||||
}
|
||||
core.endGroup();
|
||||
setOutput('labels', labels.join(inputs.sepLabels));
|
||||
await core.group(`Docker labels`, async () => {
|
||||
for (const label of labels) {
|
||||
core.info(label);
|
||||
}
|
||||
setOutput('labels', labels.join(inputs.sepLabels));
|
||||
});
|
||||
|
||||
// JSON
|
||||
const jsonOutput = meta.getJSON();
|
||||
core.startGroup(`JSON output`);
|
||||
core.info(JSON.stringify(jsonOutput, null, 2));
|
||||
core.endGroup();
|
||||
setOutput('json', JSON.stringify(jsonOutput));
|
||||
await core.group(`JSON output`, async () => {
|
||||
core.info(JSON.stringify(jsonOutput, null, 2));
|
||||
setOutput('json', JSON.stringify(jsonOutput));
|
||||
});
|
||||
|
||||
// Bake file definition
|
||||
const bakeFile: string = meta.getBakeFile();
|
||||
core.startGroup(`Bake file definition`);
|
||||
core.info(fs.readFileSync(bakeFile, 'utf8'));
|
||||
core.endGroup();
|
||||
setOutput('bake-file', bakeFile);
|
||||
} catch (error) {
|
||||
core.setFailed(error.message);
|
||||
await core.group(`Bake file definition`, async () => {
|
||||
core.info(fs.readFileSync(bakeFile, 'utf8'));
|
||||
setOutput('bake-file', bakeFile);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function setOutput(name: string, value: string) {
|
||||
core.setOutput(name, value);
|
||||
core.exportVariable(`DOCKER_METADATA_OUTPUT_${name.replace(/\W/g, '_').toUpperCase()}`, value);
|
||||
}
|
||||
|
||||
run();
|
||||
);
|
||||
+37
-40
@@ -4,13 +4,15 @@ import * as path from 'path';
|
||||
import moment from 'moment-timezone';
|
||||
import * as pep440 from '@renovate/pep440';
|
||||
import * as semver from 'semver';
|
||||
import {Inputs, tmpDir} from './context';
|
||||
import {ReposGetResponseData} from './github';
|
||||
import * as core from '@actions/core';
|
||||
import {Context} from '@actions/github/lib/context';
|
||||
import {Context as ToolkitContext} from '@docker/actions-toolkit/lib/context';
|
||||
import {GitHubRepo} from '@docker/actions-toolkit/lib/types/github';
|
||||
|
||||
import {Inputs} from './context';
|
||||
import * as icl from './image';
|
||||
import * as tcl from './tag';
|
||||
import * as fcl from './flavor';
|
||||
import * as core from '@actions/core';
|
||||
import {Context} from '@actions/github/lib/context';
|
||||
|
||||
export interface Version {
|
||||
main: string | undefined;
|
||||
@@ -23,29 +25,13 @@ export class Meta {
|
||||
|
||||
private readonly inputs: Inputs;
|
||||
private readonly context: Context;
|
||||
private readonly repo: ReposGetResponseData;
|
||||
private readonly repo: GitHubRepo;
|
||||
private readonly images: icl.Image[];
|
||||
private readonly tags: tcl.Tag[];
|
||||
private readonly flavor: fcl.Flavor;
|
||||
private readonly date: Date;
|
||||
|
||||
constructor(inputs: Inputs, context: Context, repo: ReposGetResponseData) {
|
||||
// Needs to override Git reference with pr ref instead of upstream branch ref
|
||||
// for pull_request_target event
|
||||
// https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target
|
||||
if (/pull_request_target/.test(context.eventName)) {
|
||||
context.ref = `refs/pull/${context.payload.number}/merge`;
|
||||
}
|
||||
|
||||
// DOCKER_METADATA_PR_HEAD_SHA env var can be used to set associated head
|
||||
// SHA instead of commit SHA that triggered the workflow on pull request
|
||||
// event.
|
||||
if (/true/i.test(process.env.DOCKER_METADATA_PR_HEAD_SHA || '')) {
|
||||
if ((/pull_request/.test(context.eventName) || /pull_request_target/.test(context.eventName)) && context.payload?.pull_request?.head?.sha != undefined) {
|
||||
context.sha = context.payload.pull_request.head.sha;
|
||||
}
|
||||
}
|
||||
|
||||
constructor(inputs: Inputs, context: Context, repo: GitHubRepo) {
|
||||
this.inputs = inputs;
|
||||
this.context = context;
|
||||
this.repo = repo;
|
||||
@@ -168,7 +154,7 @@ export class Meta {
|
||||
|
||||
let latest = false;
|
||||
const sver = semver.parse(vraw, {
|
||||
includePrerelease: true
|
||||
loose: true
|
||||
});
|
||||
if (semver.prerelease(vraw)) {
|
||||
if (Meta.isRawStatement(tag.attrs['pattern'])) {
|
||||
@@ -371,53 +357,53 @@ export class Meta {
|
||||
}
|
||||
|
||||
private setGlobalExp(val): string {
|
||||
const ctx = this.context;
|
||||
const context = this.context;
|
||||
const currentDate = this.date;
|
||||
return handlebars.compile(val)({
|
||||
branch: function () {
|
||||
if (!/^refs\/heads\//.test(ctx.ref)) {
|
||||
if (!/^refs\/heads\//.test(context.ref)) {
|
||||
return '';
|
||||
}
|
||||
return ctx.ref.replace(/^refs\/heads\//g, '');
|
||||
return context.ref.replace(/^refs\/heads\//g, '');
|
||||
},
|
||||
tag: function () {
|
||||
if (!/^refs\/tags\//.test(ctx.ref)) {
|
||||
if (!/^refs\/tags\//.test(context.ref)) {
|
||||
return '';
|
||||
}
|
||||
return ctx.ref.replace(/^refs\/tags\//g, '');
|
||||
return context.ref.replace(/^refs\/tags\//g, '');
|
||||
},
|
||||
sha: function () {
|
||||
return ctx.sha.substring(0, 7);
|
||||
return context.sha.substring(0, 7);
|
||||
},
|
||||
base_ref: function () {
|
||||
if (/^refs\/tags\//.test(ctx.ref) && ctx.payload?.base_ref != undefined) {
|
||||
return ctx.payload.base_ref.replace(/^refs\/heads\//g, '');
|
||||
if (/^refs\/tags\//.test(context.ref) && context.payload?.base_ref != undefined) {
|
||||
return context.payload.base_ref.replace(/^refs\/heads\//g, '');
|
||||
}
|
||||
// FIXME: keep this for backward compatibility even if doesn't always seem
|
||||
// to return the expected branch. See the comment below.
|
||||
if (/^refs\/pull\//.test(ctx.ref) && ctx.payload?.pull_request?.base?.ref != undefined) {
|
||||
return ctx.payload.pull_request.base.ref;
|
||||
if (/^refs\/pull\//.test(context.ref) && context.payload?.pull_request?.base?.ref != undefined) {
|
||||
return context.payload.pull_request.base.ref;
|
||||
}
|
||||
return '';
|
||||
},
|
||||
is_default_branch: function () {
|
||||
const branch = ctx.ref.replace(/^refs\/heads\//g, '');
|
||||
const branch = context.ref.replace(/^refs\/heads\//g, '');
|
||||
// TODO: "base_ref" is available in the push payload but doesn't always seem to
|
||||
// return the expected branch when the push tag event occurs. It's also not
|
||||
// documented in GitHub docs: https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#push
|
||||
// more context: https://github.com/docker/metadata-action/pull/192#discussion_r854673012
|
||||
// if (/^refs\/tags\//.test(ctx.ref) && ctx.payload?.base_ref != undefined) {
|
||||
// branch = ctx.payload.base_ref.replace(/^refs\/heads\//g, '');
|
||||
// if (/^refs\/tags\//.test(context.ref) && context.payload?.base_ref != undefined) {
|
||||
// branch = context.payload.base_ref.replace(/^refs\/heads\//g, '');
|
||||
// }
|
||||
if (branch == undefined || branch.length == 0) {
|
||||
return 'false';
|
||||
}
|
||||
if (ctx.payload?.repository?.default_branch == branch) {
|
||||
if (context.payload?.repository?.default_branch == branch) {
|
||||
return 'true';
|
||||
}
|
||||
// following events always trigger for last commit on default branch
|
||||
// https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows
|
||||
if (/create/.test(ctx.eventName) || /discussion/.test(ctx.eventName) || /issues/.test(ctx.eventName) || /schedule/.test(ctx.eventName)) {
|
||||
if (/create/.test(context.eventName) || /discussion/.test(context.eventName) || /issues/.test(context.eventName) || /schedule/.test(context.eventName)) {
|
||||
return 'true';
|
||||
}
|
||||
return 'false';
|
||||
@@ -480,7 +466,18 @@ export class Meta {
|
||||
`org.opencontainers.image.licenses=${this.repo.license?.spdx_id || ''}`
|
||||
];
|
||||
labels.push(...this.inputs.labels);
|
||||
return labels;
|
||||
|
||||
return Array.from(
|
||||
new Map<string, string>(
|
||||
labels
|
||||
.map(label => label.split('='))
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
.filter(([_key, ...values]) => values.length > 0)
|
||||
.map(([key, ...values]) => [key, values.join('=')] as [string, string])
|
||||
)
|
||||
)
|
||||
.sort((a, b) => a[0].localeCompare(b[0]))
|
||||
.map(([key, value]) => `${key}=${value}`);
|
||||
}
|
||||
|
||||
public getJSON(): unknown {
|
||||
@@ -498,7 +495,7 @@ export class Meta {
|
||||
}
|
||||
|
||||
public getBakeFile(): string {
|
||||
const bakeFile = path.join(tmpDir(), 'docker-metadata-action-bake.json').split(path.sep).join(path.posix.sep);
|
||||
const bakeFile = path.join(ToolkitContext.tmpDir(), 'docker-metadata-action-bake.json');
|
||||
fs.writeFileSync(
|
||||
bakeFile,
|
||||
JSON.stringify(
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
FROM alpine
|
||||
RUN apk add --no-cache coreutils jq
|
||||
ARG BUILDINFO
|
||||
RUN printenv BUILDINFO
|
||||
RUN echo $BUILDINFO | jq
|
||||
+5
-3
@@ -1,20 +1,22 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"esModuleInterop": true,
|
||||
"target": "es6",
|
||||
"module": "commonjs",
|
||||
"strict": true,
|
||||
"newLine": "lf",
|
||||
"outDir": "./lib",
|
||||
"rootDir": "./src",
|
||||
"esModuleInterop": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"strict": true,
|
||||
"noImplicitAny": false,
|
||||
"resolveJsonModule": true,
|
||||
"useUnknownInCatchVariables": false,
|
||||
},
|
||||
"exclude": [
|
||||
"./__mocks__/**/*",
|
||||
"./__tests__/**/*",
|
||||
"./lib/**/*",
|
||||
"node_modules",
|
||||
"**/*.test.ts",
|
||||
"jest.config.ts"
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user